3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
17 --disable-nls do not use Native Language Support"
19 --with-included-gettext use the GNU gettext library included here"
23 Optimization options:"
25 --with-tuning=ARCH enable special tuning for an architecture
26 (default i686 on IA-32 and 750 on PPC)"
28 --disable-optimizations disable compiler optimizations (default enabled)"
30 --disable-altivec disable AltiVec optimizations (default enabled on PPC)"
32 --enable-debug debug mode (default disabled)"
34 --enable-release activate extra optimizations (default disabled)"
38 --enable-dvd DVD input module (default enabled)"
40 --with-dvdcss=PATH libdvdcss headers and libraries"
42 --with-dvdcss-tree=PATH libdvdcss tree for static linking"
44 --enable-dvdread dvdread input module (default disabled)"
46 --with-dvdread=PATH libdvdread headers and libraries"
48 --enable-dvdplay dvdplay input module (default disabled)"
50 --with-dvdplay=PATH libdvdplay headers and libraries"
52 --enable-dvbpsi dvbpsi ts demux module (default disabled)"
54 --with-dvbpsi=PATH libdvbpsi headers and libraries"
56 --with-dvbpsi-tree=PATH libdvbpsi tree for static linking"
58 --enable-v4l Video4Linux input support (default disabled)"
60 --enable-vcd VCD support for Linux, FreeBSD and MacOS X (default enabled)"
62 --enable-satellite satellite card support (default disabled)"
64 --enable-avi AVI demux module (default enabled)"
68 --enable-mad libmad module (default disabled)"
70 --with-mad=PATH path to libmad"
72 --with-mad-tree=PATH mad tree for static linking"
74 --enable-ffmpeg ffmpeg codec (default disabled)"
76 --with-ffmpeg=PATH path to ffmpeg installation"
78 --with-ffmpeg-tree=PATH ffmpeg tree for static linking"
80 --enable-faad faad codec (default disabled)"
82 --with-faad=PATH path to faad installation"
84 --with-faad-tree=PATH faad tree for static linking"
86 --enable-mp4 MP4 demux module (default enabled)"
88 --enable-a52 A/52 support with liba52 (default enabled)"
90 --with-a52=PATH a52 headers and libraries"
92 --with-a52-tree=PATH a52dec tree for static linking "
94 --enable-cinepak Cinepak decoder (default enabled)"
96 --enable-vorbis Ogg/Vorbis decoder support (default enabled)"
98 --enable-dv DV decoder support (default disabled)"
102 --enable-x11 X11 support (default enabled)"
104 --enable-xvideo XVideo support (default enabled)"
106 --enable-sdl SDL support (default enabled)"
108 --with-sdl-config-path=PATH sdl-config path (default search in \$PATH)"
110 --enable-directx Win32 DirectX support (default enabled on Win32)"
112 --with-directx=PATH Win32 DirectX headers"
114 --enable-fb Linux framebuffer support (default enabled on Linux)"
116 --enable-mga Linux kernel Matrox support (default disabled)"
118 --enable-ggi GGI support (default disabled)"
120 --with-ggi=PATH path to libggi"
122 --enable-glide Glide (3dfx) support (default disabled)"
124 --with-glide=PATH path to libglide"
126 --enable-aa aalib output (default disabled)"
130 --enable-oss Linux OSS /dev/dsp support (enabled on Linux)"
132 --enable-esd Esound library support (default disabled)"
134 --enable-arts aRts sound server (default disabled)"
136 --enable-alsa ALSA sound support for Linux (default disabled)"
138 --enable-waveout Win32 waveOut module (default enabled on Win32)"
142 --enable-gtk Gtk+ support (default enabled)"
144 --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)"
146 --enable-familiar Familiar Gtk+ support (default disabled)"
148 --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)"
150 --enable-gnome Gnome interface support (default disabled)"
152 --enable-qt Qt interface support (default disabled)"
154 --enable-kde KDE interface support (default disabled)"
156 --enable-qte Qt embedded interface support (default disabled)"
158 --enable-macosx MacOS X support (default enabled on MacOS X)"
160 --enable-qnx QNX RTOS support (default enabled on QNX RTOS)"
162 --enable-intfwin Win32 interface support (default disabled)"
164 --with-bcbuilder=PATH Borland C++ Builder installation path"
166 --enable-ncurses ncurses interface support (default disabled)"
168 --enable-xosd xosd interface support (default disabled)"
170 --enable-lirc lirc support (default disabled)"
174 --with-words=endianness set endianness (big or little)"
176 --enable-gprof gprof profiling (default disabled)"
178 --enable-cprof cprof profiling (default disabled)"
180 --enable-pth GNU Pth support (default disabled)"
182 --enable-st State Threads (default disabled)"
184 --enable-mozilla build a vlc-based Mozilla plugin (default disabled)"
186 --disable-plugins make all plug-ins built-in (default plug-ins enabled)"
188 # Initialize some variables set by options.
189 # The variables have the same names as the options, with
190 # dashes changed to underlines.
192 cache_file=./config.cache
201 program_transform_name=s,x,x,
209 bindir='${exec_prefix}/bin'
210 sbindir='${exec_prefix}/sbin'
211 libexecdir='${exec_prefix}/libexec'
212 datadir='${prefix}/share'
213 sysconfdir='${prefix}/etc'
214 sharedstatedir='${prefix}/com'
215 localstatedir='${prefix}/var'
216 libdir='${exec_prefix}/lib'
217 includedir='${prefix}/include'
218 oldincludedir='/usr/include'
219 infodir='${prefix}/info'
220 mandir='${prefix}/man'
222 # Initialize some other variables.
225 SHELL=${CONFIG_SHELL-/bin/sh}
226 # Maximum number of lines to put in a shell here document.
233 # If the previous option needs an argument, assign it.
234 if test -n "$ac_prev"; then
235 eval "$ac_prev=\$ac_option"
241 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
245 # Accept the important Cygnus configure options, so we can diagnose typos.
249 -bindir | --bindir | --bindi | --bind | --bin | --bi)
251 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
252 bindir="$ac_optarg" ;;
254 -build | --build | --buil | --bui | --bu)
256 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
257 build="$ac_optarg" ;;
259 -cache-file | --cache-file | --cache-fil | --cache-fi \
260 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
261 ac_prev=cache_file ;;
262 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
263 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
264 cache_file="$ac_optarg" ;;
266 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
268 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
270 datadir="$ac_optarg" ;;
272 -disable-* | --disable-*)
273 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
274 # Reject names that are not valid shell variable names.
275 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
276 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
278 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
279 eval "enable_${ac_feature}=no" ;;
281 -enable-* | --enable-*)
282 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
283 # Reject names that are not valid shell variable names.
284 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
285 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
287 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
292 eval "enable_${ac_feature}='$ac_optarg'" ;;
294 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
295 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
296 | --exec | --exe | --ex)
297 ac_prev=exec_prefix ;;
298 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
299 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
300 | --exec=* | --exe=* | --ex=*)
301 exec_prefix="$ac_optarg" ;;
303 -gas | --gas | --ga | --g)
304 # Obsolete; use --with-gas.
307 -help | --help | --hel | --he)
308 # Omit some internal or obsolete options to make the list less imposing.
309 # This message is too long to be a string in the A/UX 3.1 sh.
311 Usage: configure [options] [host]
312 Options: [defaults in brackets after descriptions]
314 --cache-file=FILE cache test results in FILE
315 --help print this message
316 --no-create do not create output files
317 --quiet, --silent do not print \`checking...' messages
318 --version print the version of autoconf that created configure
319 Directory and file names:
320 --prefix=PREFIX install architecture-independent files in PREFIX
322 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
324 --bindir=DIR user executables in DIR [EPREFIX/bin]
325 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
326 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
327 --datadir=DIR read-only architecture-independent data in DIR
329 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
330 --sharedstatedir=DIR modifiable architecture-independent data in DIR
332 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
333 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
334 --includedir=DIR C header files in DIR [PREFIX/include]
335 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
336 --infodir=DIR info documentation in DIR [PREFIX/info]
337 --mandir=DIR man documentation in DIR [PREFIX/man]
338 --srcdir=DIR find the sources in DIR [configure dir or ..]
339 --program-prefix=PREFIX prepend PREFIX to installed program names
340 --program-suffix=SUFFIX append SUFFIX to installed program names
341 --program-transform-name=PROGRAM
342 run sed PROGRAM on installed program names
346 --build=BUILD configure for building on BUILD [BUILD=HOST]
347 --host=HOST configure for HOST [guessed]
348 --target=TARGET configure for TARGET [TARGET=HOST]
349 Features and packages:
350 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
351 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
352 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
353 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
354 --x-includes=DIR X include files are in DIR
355 --x-libraries=DIR X library files are in DIR
357 if test -n "$ac_help"; then
358 echo "--enable and --with options recognized:$ac_help"
362 -host | --host | --hos | --ho)
364 -host=* | --host=* | --hos=* | --ho=*)
367 -includedir | --includedir | --includedi | --included | --include \
368 | --includ | --inclu | --incl | --inc)
369 ac_prev=includedir ;;
370 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
371 | --includ=* | --inclu=* | --incl=* | --inc=*)
372 includedir="$ac_optarg" ;;
374 -infodir | --infodir | --infodi | --infod | --info | --inf)
376 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
377 infodir="$ac_optarg" ;;
379 -libdir | --libdir | --libdi | --libd)
381 -libdir=* | --libdir=* | --libdi=* | --libd=*)
382 libdir="$ac_optarg" ;;
384 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
385 | --libexe | --libex | --libe)
386 ac_prev=libexecdir ;;
387 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
388 | --libexe=* | --libex=* | --libe=*)
389 libexecdir="$ac_optarg" ;;
391 -localstatedir | --localstatedir | --localstatedi | --localstated \
392 | --localstate | --localstat | --localsta | --localst \
393 | --locals | --local | --loca | --loc | --lo)
394 ac_prev=localstatedir ;;
395 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
396 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
397 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
398 localstatedir="$ac_optarg" ;;
400 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
402 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
403 mandir="$ac_optarg" ;;
406 # Obsolete; use --without-fp.
409 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
413 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
414 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
417 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
418 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
419 | --oldin | --oldi | --old | --ol | --o)
420 ac_prev=oldincludedir ;;
421 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
422 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
423 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
424 oldincludedir="$ac_optarg" ;;
426 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
428 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
429 prefix="$ac_optarg" ;;
431 -program-prefix | --program-prefix | --program-prefi | --program-pref \
432 | --program-pre | --program-pr | --program-p)
433 ac_prev=program_prefix ;;
434 -program-prefix=* | --program-prefix=* | --program-prefi=* \
435 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
436 program_prefix="$ac_optarg" ;;
438 -program-suffix | --program-suffix | --program-suffi | --program-suff \
439 | --program-suf | --program-su | --program-s)
440 ac_prev=program_suffix ;;
441 -program-suffix=* | --program-suffix=* | --program-suffi=* \
442 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
443 program_suffix="$ac_optarg" ;;
445 -program-transform-name | --program-transform-name \
446 | --program-transform-nam | --program-transform-na \
447 | --program-transform-n | --program-transform- \
448 | --program-transform | --program-transfor \
449 | --program-transfo | --program-transf \
450 | --program-trans | --program-tran \
451 | --progr-tra | --program-tr | --program-t)
452 ac_prev=program_transform_name ;;
453 -program-transform-name=* | --program-transform-name=* \
454 | --program-transform-nam=* | --program-transform-na=* \
455 | --program-transform-n=* | --program-transform-=* \
456 | --program-transform=* | --program-transfor=* \
457 | --program-transfo=* | --program-transf=* \
458 | --program-trans=* | --program-tran=* \
459 | --progr-tra=* | --program-tr=* | --program-t=*)
460 program_transform_name="$ac_optarg" ;;
462 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
463 | -silent | --silent | --silen | --sile | --sil)
466 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
468 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
470 sbindir="$ac_optarg" ;;
472 -sharedstatedir | --sharedstatedir | --sharedstatedi \
473 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
474 | --sharedst | --shareds | --shared | --share | --shar \
476 ac_prev=sharedstatedir ;;
477 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
478 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
479 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
481 sharedstatedir="$ac_optarg" ;;
483 -site | --site | --sit)
485 -site=* | --site=* | --sit=*)
488 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
490 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
491 srcdir="$ac_optarg" ;;
493 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
494 | --syscon | --sysco | --sysc | --sys | --sy)
495 ac_prev=sysconfdir ;;
496 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
497 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
498 sysconfdir="$ac_optarg" ;;
500 -target | --target | --targe | --targ | --tar | --ta | --t)
502 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
503 target="$ac_optarg" ;;
505 -v | -verbose | --verbose | --verbos | --verbo | --verb)
508 -version | --version | --versio | --versi | --vers)
509 echo "configure generated by autoconf version 2.13"
513 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
514 # Reject names that are not valid shell variable names.
515 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
516 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
518 ac_package=`echo $ac_package| sed 's/-/_/g'`
523 eval "with_${ac_package}='$ac_optarg'" ;;
525 -without-* | --without-*)
526 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
527 # Reject names that are not valid shell variable names.
528 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
529 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
531 ac_package=`echo $ac_package| sed 's/-/_/g'`
532 eval "with_${ac_package}=no" ;;
535 # Obsolete; use --with-x.
538 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
539 | --x-incl | --x-inc | --x-in | --x-i)
540 ac_prev=x_includes ;;
541 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
542 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
543 x_includes="$ac_optarg" ;;
545 -x-libraries | --x-libraries | --x-librarie | --x-librari \
546 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
547 ac_prev=x_libraries ;;
548 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
549 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
550 x_libraries="$ac_optarg" ;;
552 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
556 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
557 echo "configure: warning: $ac_option: invalid host type" 1>&2
559 if test "x$nonopt" != xNONE; then
560 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
568 if test -n "$ac_prev"; then
569 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
572 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
574 # File descriptor usage:
577 # 2 errors and warnings
578 # 3 some systems may open it to /dev/tty
579 # 4 used on the Kubota Titan
580 # 6 checking for... messages and results
581 # 5 compiler messages saved in config.log
582 if test "$silent" = yes; then
590 This file contains any messages produced by compilers while
591 running configure, to aid debugging if configure makes a mistake.
594 # Strip out --no-create and --no-recursion so they do not pile up.
595 # Also quote any args containing shell metacharacters.
600 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
601 | --no-cr | --no-c) ;;
602 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
603 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
604 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
605 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
606 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
611 # Only set these to C if already set. These must not be set unconditionally
612 # because not all systems understand e.g. LANG=C (notably SCO).
613 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
614 # Non-C LC_CTYPE values break the ctype check.
615 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
616 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
617 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
618 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
620 # confdefs.h avoids OS command line length limits that DEFS can exceed.
621 rm -rf conftest* confdefs.h
622 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
625 # A filename unique to this package, relative to the directory that
626 # configure is in, which we can look for to find out if srcdir is correct.
627 ac_unique_file=include/main.h
629 # Find the source files, if location was not specified.
630 if test -z "$srcdir"; then
631 ac_srcdir_defaulted=yes
632 # Try the directory containing this script, then its parent.
634 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
635 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
637 if test ! -r $srcdir/$ac_unique_file; then
641 ac_srcdir_defaulted=no
643 if test ! -r $srcdir/$ac_unique_file; then
644 if test "$ac_srcdir_defaulted" = yes; then
645 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
647 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
650 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
652 # Prefer explicitly selected file to automatically selected ones.
653 if test -z "$CONFIG_SITE"; then
654 if test "x$prefix" != xNONE; then
655 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
657 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
660 for ac_site_file in $CONFIG_SITE; do
661 if test -r "$ac_site_file"; then
662 echo "loading site script $ac_site_file"
667 if test -r "$cache_file"; then
668 echo "loading cache $cache_file"
671 echo "creating cache $cache_file"
676 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
677 ac_cpp='$CPP $CPPFLAGS'
678 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
679 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
680 cross_compiling=$ac_cv_prog_cc_cross
684 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
685 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
686 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
693 ac_n= ac_c='\c' ac_t=
699 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
700 if test -f $ac_dir/install-sh; then
702 ac_install_sh="$ac_aux_dir/install-sh -c"
704 elif test -f $ac_dir/install.sh; then
706 ac_install_sh="$ac_aux_dir/install.sh -c"
710 if test -z "$ac_aux_dir"; then
711 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
713 ac_config_guess=$ac_aux_dir/config.guess
714 ac_config_sub=$ac_aux_dir/config.sub
715 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
718 # Do some error checking and defaulting for the host and target type.
720 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
723 # 1. You are not allowed to specify --host, --target, and nonopt at the
725 # 2. Host defaults to nonopt.
726 # 3. If nonopt is not specified, then host defaults to the current host,
727 # as determined by config.guess.
728 # 4. Target and build default to nonopt.
729 # 5. If nonopt is not specified, then target and build default to host.
731 # The aliases save the names the user supplied, while $host etc.
732 # will get canonicalized.
733 case $host---$target---$nonopt in
734 NONE---*---* | *---NONE---* | *---*---NONE) ;;
735 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
739 # Make sure we can run config.sub.
740 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
741 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
744 echo $ac_n "checking host system type""... $ac_c" 1>&6
745 echo "configure:746: checking host system type" >&5
748 case "$host_alias" in
752 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
753 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
755 *) host_alias=$nonopt ;;
759 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
760 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
761 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
762 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
763 echo "$ac_t""$host" 1>&6
765 echo $ac_n "checking target system type""... $ac_c" 1>&6
766 echo "configure:767: checking target system type" >&5
769 case "$target_alias" in
772 NONE) target_alias=$host_alias ;;
773 *) target_alias=$nonopt ;;
777 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
778 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
779 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
780 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
781 echo "$ac_t""$target" 1>&6
783 echo $ac_n "checking build system type""... $ac_c" 1>&6
784 echo "configure:785: checking build system type" >&5
787 case "$build_alias" in
790 NONE) build_alias=$host_alias ;;
791 *) build_alias=$nonopt ;;
795 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
796 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
797 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
798 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
799 echo "$ac_t""$build" 1>&6
801 test "$host_alias" != "$target_alias" &&
802 test "$program_prefix$program_suffix$program_transform_name" = \
804 program_prefix=${target_alias}-
807 CONFIGURE_LINE="$0 $*"
813 save_CPPFLAGS="${CPPFLAGS}"
814 save_CFLAGS="${CFLAGS}"
815 save_LDFLAGS="${LDFLAGS}"
817 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
818 echo "configure:819: checking whether ${MAKE-make} sets \${MAKE}" >&5
819 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
820 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
821 echo $ac_n "(cached) $ac_c" 1>&6
823 cat > conftestmake <<\EOF
825 @echo 'ac_maketemp="${MAKE}"'
827 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
828 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
829 if test -n "$ac_maketemp"; then
830 eval ac_cv_prog_make_${ac_make}_set=yes
832 eval ac_cv_prog_make_${ac_make}_set=no
836 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
837 echo "$ac_t""yes" 1>&6
840 echo "$ac_t""no" 1>&6
841 SET_MAKE="MAKE=${MAKE-make}"
844 # Extract the first word of "gcc", so it can be a program name with args.
845 set dummy gcc; ac_word=$2
846 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
847 echo "configure:848: checking for $ac_word" >&5
848 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
849 echo $ac_n "(cached) $ac_c" 1>&6
851 if test -n "$CC"; then
852 ac_cv_prog_CC="$CC" # Let the user override the test.
854 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
856 for ac_dir in $ac_dummy; do
857 test -z "$ac_dir" && ac_dir=.
858 if test -f $ac_dir/$ac_word; then
867 if test -n "$CC"; then
868 echo "$ac_t""$CC" 1>&6
870 echo "$ac_t""no" 1>&6
873 if test -z "$CC"; then
874 # Extract the first word of "cc", so it can be a program name with args.
875 set dummy cc; ac_word=$2
876 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
877 echo "configure:878: checking for $ac_word" >&5
878 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
879 echo $ac_n "(cached) $ac_c" 1>&6
881 if test -n "$CC"; then
882 ac_cv_prog_CC="$CC" # Let the user override the test.
884 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
887 for ac_dir in $ac_dummy; do
888 test -z "$ac_dir" && ac_dir=.
889 if test -f $ac_dir/$ac_word; then
890 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
899 if test $ac_prog_rejected = yes; then
900 # We found a bogon in the path, so make sure we never use it.
901 set dummy $ac_cv_prog_CC
903 if test $# -gt 0; then
904 # We chose a different compiler from the bogus one.
905 # However, it has the same basename, so the bogon will be chosen
906 # first if we set CC to just the basename; use the full file name.
908 set dummy "$ac_dir/$ac_word" "$@"
916 if test -n "$CC"; then
917 echo "$ac_t""$CC" 1>&6
919 echo "$ac_t""no" 1>&6
922 if test -z "$CC"; then
925 # Extract the first word of "cl", so it can be a program name with args.
926 set dummy cl; ac_word=$2
927 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
928 echo "configure:929: checking for $ac_word" >&5
929 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
930 echo $ac_n "(cached) $ac_c" 1>&6
932 if test -n "$CC"; then
933 ac_cv_prog_CC="$CC" # Let the user override the test.
935 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
937 for ac_dir in $ac_dummy; do
938 test -z "$ac_dir" && ac_dir=.
939 if test -f $ac_dir/$ac_word; then
948 if test -n "$CC"; then
949 echo "$ac_t""$CC" 1>&6
951 echo "$ac_t""no" 1>&6
956 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
959 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
960 echo "configure:961: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
963 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
964 ac_cpp='$CPP $CPPFLAGS'
965 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
966 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
967 cross_compiling=$ac_cv_prog_cc_cross
969 cat > conftest.$ac_ext << EOF
971 #line 972 "configure"
972 #include "confdefs.h"
976 if { (eval echo configure:977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
977 ac_cv_prog_cc_works=yes
978 # If we can't run a trivial program, we are probably using a cross compiler.
979 if (./conftest; exit) 2>/dev/null; then
980 ac_cv_prog_cc_cross=no
982 ac_cv_prog_cc_cross=yes
985 echo "configure: failed program was:" >&5
986 cat conftest.$ac_ext >&5
987 ac_cv_prog_cc_works=no
991 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
992 ac_cpp='$CPP $CPPFLAGS'
993 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
994 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
995 cross_compiling=$ac_cv_prog_cc_cross
997 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
998 if test $ac_cv_prog_cc_works = no; then
999 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1001 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1002 echo "configure:1003: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1003 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1004 cross_compiling=$ac_cv_prog_cc_cross
1006 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1007 echo "configure:1008: checking whether we are using GNU C" >&5
1008 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1009 echo $ac_n "(cached) $ac_c" 1>&6
1011 cat > conftest.c <<EOF
1016 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1017: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1023 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1025 if test $ac_cv_prog_gcc = yes; then
1031 ac_test_CFLAGS="${CFLAGS+set}"
1032 ac_save_CFLAGS="$CFLAGS"
1034 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1035 echo "configure:1036: checking whether ${CC-cc} accepts -g" >&5
1036 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1037 echo $ac_n "(cached) $ac_c" 1>&6
1039 echo 'void f(){}' > conftest.c
1040 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1049 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1050 if test "$ac_test_CFLAGS" = set; then
1051 CFLAGS="$ac_save_CFLAGS"
1052 elif test $ac_cv_prog_cc_g = yes; then
1053 if test "$GCC" = yes; then
1059 if test "$GCC" = yes; then
1066 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1067 echo "configure:1068: checking how to run the C preprocessor" >&5
1068 # On Suns, sometimes $CPP names a directory.
1069 if test -n "$CPP" && test -d "$CPP"; then
1072 if test -z "$CPP"; then
1073 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1074 echo $ac_n "(cached) $ac_c" 1>&6
1076 # This must be in double quotes, not single quotes, because CPP may get
1077 # substituted into the Makefile and "${CC-cc}" will confuse make.
1079 # On the NeXT, cc -E runs the code through the compiler's parser,
1080 # not just through cpp.
1081 cat > conftest.$ac_ext <<EOF
1082 #line 1083 "configure"
1083 #include "confdefs.h"
1087 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1088 { (eval echo configure:1089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1089 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1090 if test -z "$ac_err"; then
1094 echo "configure: failed program was:" >&5
1095 cat conftest.$ac_ext >&5
1097 CPP="${CC-cc} -E -traditional-cpp"
1098 cat > conftest.$ac_ext <<EOF
1099 #line 1100 "configure"
1100 #include "confdefs.h"
1104 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1105 { (eval echo configure:1106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1106 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1107 if test -z "$ac_err"; then
1111 echo "configure: failed program was:" >&5
1112 cat conftest.$ac_ext >&5
1114 CPP="${CC-cc} -nologo -E"
1115 cat > conftest.$ac_ext <<EOF
1116 #line 1117 "configure"
1117 #include "confdefs.h"
1121 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1122 { (eval echo configure:1123: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1123 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1124 if test -z "$ac_err"; then
1128 echo "configure: failed program was:" >&5
1129 cat conftest.$ac_ext >&5
1138 ac_cv_prog_CPP="$CPP"
1140 CPP="$ac_cv_prog_CPP"
1142 ac_cv_prog_CPP="$CPP"
1144 echo "$ac_t""$CPP" 1>&6
1147 if test $host != $build; then
1148 ac_tool_prefix=${host_alias}-
1153 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1154 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1155 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1156 echo "configure:1157: checking for $ac_word" >&5
1157 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1158 echo $ac_n "(cached) $ac_c" 1>&6
1160 if test -n "$RANLIB"; then
1161 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1163 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1165 for ac_dir in $ac_dummy; do
1166 test -z "$ac_dir" && ac_dir=.
1167 if test -f $ac_dir/$ac_word; then
1168 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1175 RANLIB="$ac_cv_prog_RANLIB"
1176 if test -n "$RANLIB"; then
1177 echo "$ac_t""$RANLIB" 1>&6
1179 echo "$ac_t""no" 1>&6
1183 if test -z "$ac_cv_prog_RANLIB"; then
1184 if test -n "$ac_tool_prefix"; then
1185 # Extract the first word of "ranlib", so it can be a program name with args.
1186 set dummy ranlib; ac_word=$2
1187 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1188 echo "configure:1189: checking for $ac_word" >&5
1189 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1190 echo $ac_n "(cached) $ac_c" 1>&6
1192 if test -n "$RANLIB"; then
1193 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1195 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1197 for ac_dir in $ac_dummy; do
1198 test -z "$ac_dir" && ac_dir=.
1199 if test -f $ac_dir/$ac_word; then
1200 ac_cv_prog_RANLIB="ranlib"
1205 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1208 RANLIB="$ac_cv_prog_RANLIB"
1209 if test -n "$RANLIB"; then
1210 echo "$ac_t""$RANLIB" 1>&6
1212 echo "$ac_t""no" 1>&6
1220 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1221 set dummy ${ac_tool_prefix}strip; ac_word=$2
1222 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1223 echo "configure:1224: checking for $ac_word" >&5
1224 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1225 echo $ac_n "(cached) $ac_c" 1>&6
1227 if test -n "$STRIP"; then
1228 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1230 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1232 for ac_dir in $ac_dummy; do
1233 test -z "$ac_dir" && ac_dir=.
1234 if test -f $ac_dir/$ac_word; then
1235 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1242 STRIP="$ac_cv_prog_STRIP"
1243 if test -n "$STRIP"; then
1244 echo "$ac_t""$STRIP" 1>&6
1246 echo "$ac_t""no" 1>&6
1250 if test -z "$ac_cv_prog_STRIP"; then
1251 if test -n "$ac_tool_prefix"; then
1252 # Extract the first word of "strip", so it can be a program name with args.
1253 set dummy strip; ac_word=$2
1254 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1255 echo "configure:1256: checking for $ac_word" >&5
1256 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1257 echo $ac_n "(cached) $ac_c" 1>&6
1259 if test -n "$STRIP"; then
1260 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1262 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1264 for ac_dir in $ac_dummy; do
1265 test -z "$ac_dir" && ac_dir=.
1266 if test -f $ac_dir/$ac_word; then
1267 ac_cv_prog_STRIP="strip"
1272 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1275 STRIP="$ac_cv_prog_STRIP"
1276 if test -n "$STRIP"; then
1277 echo "$ac_t""$STRIP" 1>&6
1279 echo "$ac_t""no" 1>&6
1288 # Extract the first word of "gmake", so it can be a program name with args.
1289 set dummy gmake; ac_word=$2
1290 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1291 echo "configure:1292: checking for $ac_word" >&5
1292 if eval "test \"`echo '$''{'ac_cv_path_GMAKE'+set}'`\" = set"; then
1293 echo $ac_n "(cached) $ac_c" 1>&6
1297 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
1300 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a dos path.
1303 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1305 for ac_dir in $ac_dummy; do
1306 test -z "$ac_dir" && ac_dir=.
1307 if test -f $ac_dir/$ac_word; then
1308 ac_cv_path_GMAKE="$ac_dir/$ac_word"
1313 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="no"
1317 GMAKE="$ac_cv_path_GMAKE"
1318 if test -n "$GMAKE"; then
1319 echo "$ac_t""$GMAKE" 1>&6
1321 echo "$ac_t""no" 1>&6
1324 if test "x${GMAKE}" = "xno"; then
1325 echo $ac_n "checking whether GNU make is installed""... $ac_c" 1>&6
1326 echo "configure:1327: checking whether GNU make is installed" >&5
1327 if eval "test \"`echo '$''{'ac_cv_gmake'+set}'`\" = set"; then
1328 echo $ac_n "(cached) $ac_c" 1>&6
1330 if make --version | grep -q -i gnu; then
1333 echo "This software needs you to install GNU make to compile properly."
1334 echo "You can get it from http://www.gnu.org/."
1339 echo "$ac_t""$ac_cv_gmake" 1>&6
1345 ALL_LINGUAS="de en_GB fr ja no ru nl pl se"
1347 cat >> confdefs.h <<EOF
1348 #define VLC_PACKAGE "${PACKAGE}"
1351 cat >> confdefs.h <<EOF
1352 #define VLC_VERSION "${VERSION}"
1355 # Extract the first word of "ranlib", so it can be a program name with args.
1356 set dummy ranlib; ac_word=$2
1357 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1358 echo "configure:1359: checking for $ac_word" >&5
1359 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1360 echo $ac_n "(cached) $ac_c" 1>&6
1362 if test -n "$RANLIB"; then
1363 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1365 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1367 for ac_dir in $ac_dummy; do
1368 test -z "$ac_dir" && ac_dir=.
1369 if test -f $ac_dir/$ac_word; then
1370 ac_cv_prog_RANLIB="ranlib"
1375 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1378 RANLIB="$ac_cv_prog_RANLIB"
1379 if test -n "$RANLIB"; then
1380 echo "$ac_t""$RANLIB" 1>&6
1382 echo "$ac_t""no" 1>&6
1386 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1387 echo "configure:1388: checking for strerror in -lcposix" >&5
1388 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1389 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1390 echo $ac_n "(cached) $ac_c" 1>&6
1392 ac_save_LIBS="$LIBS"
1393 LIBS="-lcposix $LIBS"
1394 cat > conftest.$ac_ext <<EOF
1395 #line 1396 "configure"
1396 #include "confdefs.h"
1397 /* Override any gcc2 internal prototype to avoid an error. */
1398 /* We use char because int might match the return type of a gcc2
1399 builtin and then its argument prototype would still apply. */
1406 if { (eval echo configure:1407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1408 eval "ac_cv_lib_$ac_lib_var=yes"
1410 echo "configure: failed program was:" >&5
1411 cat conftest.$ac_ext >&5
1413 eval "ac_cv_lib_$ac_lib_var=no"
1416 LIBS="$ac_save_LIBS"
1419 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1420 echo "$ac_t""yes" 1>&6
1421 LIBS="$LIBS -lcposix"
1423 echo "$ac_t""no" 1>&6
1428 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1429 echo "configure:1430: checking for ANSI C header files" >&5
1430 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1431 echo $ac_n "(cached) $ac_c" 1>&6
1433 cat > conftest.$ac_ext <<EOF
1434 #line 1435 "configure"
1435 #include "confdefs.h"
1441 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1442 { (eval echo configure:1443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1443 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1444 if test -z "$ac_err"; then
1446 ac_cv_header_stdc=yes
1449 echo "configure: failed program was:" >&5
1450 cat conftest.$ac_ext >&5
1452 ac_cv_header_stdc=no
1456 if test $ac_cv_header_stdc = yes; then
1457 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1458 cat > conftest.$ac_ext <<EOF
1459 #line 1460 "configure"
1460 #include "confdefs.h"
1463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1464 egrep "memchr" >/dev/null 2>&1; then
1468 ac_cv_header_stdc=no
1474 if test $ac_cv_header_stdc = yes; then
1475 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1476 cat > conftest.$ac_ext <<EOF
1477 #line 1478 "configure"
1478 #include "confdefs.h"
1481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1482 egrep "free" >/dev/null 2>&1; then
1486 ac_cv_header_stdc=no
1492 if test $ac_cv_header_stdc = yes; then
1493 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1494 if test "$cross_compiling" = yes; then
1497 cat > conftest.$ac_ext <<EOF
1498 #line 1499 "configure"
1499 #include "confdefs.h"
1501 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1502 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1503 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1504 int main () { int i; for (i = 0; i < 256; i++)
1505 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1509 if { (eval echo configure:1510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1513 echo "configure: failed program was:" >&5
1514 cat conftest.$ac_ext >&5
1516 ac_cv_header_stdc=no
1524 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1525 if test $ac_cv_header_stdc = yes; then
1526 cat >> confdefs.h <<\EOF
1527 #define STDC_HEADERS 1
1532 echo $ac_n "checking for working const""... $ac_c" 1>&6
1533 echo "configure:1534: checking for working const" >&5
1534 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1535 echo $ac_n "(cached) $ac_c" 1>&6
1537 cat > conftest.$ac_ext <<EOF
1538 #line 1539 "configure"
1539 #include "confdefs.h"
1543 /* Ultrix mips cc rejects this. */
1544 typedef int charset[2]; const charset x;
1545 /* SunOS 4.1.1 cc rejects this. */
1546 char const *const *ccp;
1548 /* NEC SVR4.0.2 mips cc rejects this. */
1549 struct point {int x, y;};
1550 static struct point const zero = {0,0};
1551 /* AIX XL C 1.02.0.0 rejects this.
1552 It does not let you subtract one const X* pointer from another in an arm
1553 of an if-expression whose if-part is not a constant expression */
1554 const char *g = "string";
1555 ccp = &g + (g ? g-g : 0);
1556 /* HPUX 7.0 cc rejects these. */
1559 ccp = (char const *const *) p;
1560 { /* SCO 3.2v4 cc rejects this. */
1562 char const *s = 0 ? (char *) 0 : (char const *) 0;
1566 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1568 const int *foo = &x[0];
1571 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1572 typedef const int *iptr;
1576 { /* AIX XL C 1.02.0.0 rejects this saying
1577 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1578 struct s { int j; const int *ap[3]; };
1579 struct s *b; b->j = 5;
1581 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1587 if { (eval echo configure:1588: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1591 echo "configure: failed program was:" >&5
1592 cat conftest.$ac_ext >&5
1599 echo "$ac_t""$ac_cv_c_const" 1>&6
1600 if test $ac_cv_c_const = no; then
1601 cat >> confdefs.h <<\EOF
1607 echo $ac_n "checking for inline""... $ac_c" 1>&6
1608 echo "configure:1609: checking for inline" >&5
1609 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1610 echo $ac_n "(cached) $ac_c" 1>&6
1613 for ac_kw in inline __inline__ __inline; do
1614 cat > conftest.$ac_ext <<EOF
1615 #line 1616 "configure"
1616 #include "confdefs.h"
1622 if { (eval echo configure:1623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1624 ac_cv_c_inline=$ac_kw; break
1626 echo "configure: failed program was:" >&5
1627 cat conftest.$ac_ext >&5
1634 echo "$ac_t""$ac_cv_c_inline" 1>&6
1635 case "$ac_cv_c_inline" in
1637 no) cat >> confdefs.h <<\EOF
1641 *) cat >> confdefs.h <<EOF
1642 #define inline $ac_cv_c_inline
1647 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1648 echo "configure:1649: checking for off_t" >&5
1649 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1650 echo $ac_n "(cached) $ac_c" 1>&6
1652 cat > conftest.$ac_ext <<EOF
1653 #line 1654 "configure"
1654 #include "confdefs.h"
1655 #include <sys/types.h>
1661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1662 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1664 ac_cv_type_off_t=yes
1672 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1673 if test $ac_cv_type_off_t = no; then
1674 cat >> confdefs.h <<\EOF
1680 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1681 echo "configure:1682: checking for size_t" >&5
1682 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1683 echo $ac_n "(cached) $ac_c" 1>&6
1685 cat > conftest.$ac_ext <<EOF
1686 #line 1687 "configure"
1687 #include "confdefs.h"
1688 #include <sys/types.h>
1694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1695 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1697 ac_cv_type_size_t=yes
1700 ac_cv_type_size_t=no
1705 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1706 if test $ac_cv_type_size_t = no; then
1707 cat >> confdefs.h <<\EOF
1708 #define size_t unsigned
1713 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1714 # for constant arguments. Useless!
1715 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1716 echo "configure:1717: checking for working alloca.h" >&5
1717 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1718 echo $ac_n "(cached) $ac_c" 1>&6
1720 cat > conftest.$ac_ext <<EOF
1721 #line 1722 "configure"
1722 #include "confdefs.h"
1725 char *p = alloca(2 * sizeof(int));
1728 if { (eval echo configure:1729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1730 ac_cv_header_alloca_h=yes
1732 echo "configure: failed program was:" >&5
1733 cat conftest.$ac_ext >&5
1735 ac_cv_header_alloca_h=no
1740 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1741 if test $ac_cv_header_alloca_h = yes; then
1742 cat >> confdefs.h <<\EOF
1743 #define HAVE_ALLOCA_H 1
1748 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1749 echo "configure:1750: checking for alloca" >&5
1750 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1751 echo $ac_n "(cached) $ac_c" 1>&6
1753 cat > conftest.$ac_ext <<EOF
1754 #line 1755 "configure"
1755 #include "confdefs.h"
1758 # define alloca __builtin_alloca
1761 # include <malloc.h>
1762 # define alloca _alloca
1765 # include <alloca.h>
1770 # ifndef alloca /* predefined by HP cc +Olibcalls */
1779 char *p = (char *) alloca(1);
1782 if { (eval echo configure:1783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1784 ac_cv_func_alloca_works=yes
1786 echo "configure: failed program was:" >&5
1787 cat conftest.$ac_ext >&5
1789 ac_cv_func_alloca_works=no
1794 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1795 if test $ac_cv_func_alloca_works = yes; then
1796 cat >> confdefs.h <<\EOF
1797 #define HAVE_ALLOCA 1
1802 if test $ac_cv_func_alloca_works = no; then
1803 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1804 # that cause trouble. Some versions do not even contain alloca or
1805 # contain a buggy version. If you still want to use their alloca,
1806 # use ar to extract alloca.o from them instead of compiling alloca.c.
1807 ALLOCA=alloca.${ac_objext}
1808 cat >> confdefs.h <<\EOF
1813 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1814 echo "configure:1815: checking whether alloca needs Cray hooks" >&5
1815 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1816 echo $ac_n "(cached) $ac_c" 1>&6
1818 cat > conftest.$ac_ext <<EOF
1819 #line 1820 "configure"
1820 #include "confdefs.h"
1821 #if defined(CRAY) && ! defined(CRAY2)
1828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1829 egrep "webecray" >/dev/null 2>&1; then
1840 echo "$ac_t""$ac_cv_os_cray" 1>&6
1841 if test $ac_cv_os_cray = yes; then
1842 for ac_func in _getb67 GETB67 getb67; do
1843 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1844 echo "configure:1845: checking for $ac_func" >&5
1845 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1846 echo $ac_n "(cached) $ac_c" 1>&6
1848 cat > conftest.$ac_ext <<EOF
1849 #line 1850 "configure"
1850 #include "confdefs.h"
1851 /* System header to define __stub macros and hopefully few prototypes,
1852 which can conflict with char $ac_func(); below. */
1854 /* Override any gcc2 internal prototype to avoid an error. */
1855 /* We use char because int might match the return type of a gcc2
1856 builtin and then its argument prototype would still apply. */
1861 /* The GNU C library defines this for functions which it implements
1862 to always fail with ENOSYS. Some functions are actually named
1863 something starting with __ and the normal name is an alias. */
1864 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1872 if { (eval echo configure:1873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1874 eval "ac_cv_func_$ac_func=yes"
1876 echo "configure: failed program was:" >&5
1877 cat conftest.$ac_ext >&5
1879 eval "ac_cv_func_$ac_func=no"
1884 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1885 echo "$ac_t""yes" 1>&6
1886 cat >> confdefs.h <<EOF
1887 #define CRAY_STACKSEG_END $ac_func
1892 echo "$ac_t""no" 1>&6
1898 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1899 echo "configure:1900: checking stack direction for C alloca" >&5
1900 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1901 echo $ac_n "(cached) $ac_c" 1>&6
1903 if test "$cross_compiling" = yes; then
1904 ac_cv_c_stack_direction=0
1906 cat > conftest.$ac_ext <<EOF
1907 #line 1908 "configure"
1908 #include "confdefs.h"
1909 find_stack_direction ()
1911 static char *addr = 0;
1916 return find_stack_direction ();
1919 return (&dummy > addr) ? 1 : -1;
1923 exit (find_stack_direction() < 0);
1926 if { (eval echo configure:1927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1928 ac_cv_c_stack_direction=1
1930 echo "configure: failed program was:" >&5
1931 cat conftest.$ac_ext >&5
1933 ac_cv_c_stack_direction=-1
1940 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1941 cat >> confdefs.h <<EOF
1942 #define STACK_DIRECTION $ac_cv_c_stack_direction
1947 for ac_hdr in unistd.h
1949 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1950 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1951 echo "configure:1952: checking for $ac_hdr" >&5
1952 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1953 echo $ac_n "(cached) $ac_c" 1>&6
1955 cat > conftest.$ac_ext <<EOF
1956 #line 1957 "configure"
1957 #include "confdefs.h"
1960 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1961 { (eval echo configure:1962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1962 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1963 if test -z "$ac_err"; then
1965 eval "ac_cv_header_$ac_safe=yes"
1968 echo "configure: failed program was:" >&5
1969 cat conftest.$ac_ext >&5
1971 eval "ac_cv_header_$ac_safe=no"
1975 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1976 echo "$ac_t""yes" 1>&6
1977 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1978 cat >> confdefs.h <<EOF
1979 #define $ac_tr_hdr 1
1983 echo "$ac_t""no" 1>&6
1987 for ac_func in getpagesize
1989 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1990 echo "configure:1991: checking for $ac_func" >&5
1991 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1992 echo $ac_n "(cached) $ac_c" 1>&6
1994 cat > conftest.$ac_ext <<EOF
1995 #line 1996 "configure"
1996 #include "confdefs.h"
1997 /* System header to define __stub macros and hopefully few prototypes,
1998 which can conflict with char $ac_func(); below. */
2000 /* Override any gcc2 internal prototype to avoid an error. */
2001 /* We use char because int might match the return type of a gcc2
2002 builtin and then its argument prototype would still apply. */
2007 /* The GNU C library defines this for functions which it implements
2008 to always fail with ENOSYS. Some functions are actually named
2009 something starting with __ and the normal name is an alias. */
2010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2018 if { (eval echo configure:2019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2020 eval "ac_cv_func_$ac_func=yes"
2022 echo "configure: failed program was:" >&5
2023 cat conftest.$ac_ext >&5
2025 eval "ac_cv_func_$ac_func=no"
2030 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2031 echo "$ac_t""yes" 1>&6
2032 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2033 cat >> confdefs.h <<EOF
2034 #define $ac_tr_func 1
2038 echo "$ac_t""no" 1>&6
2042 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2043 echo "configure:2044: checking for working mmap" >&5
2044 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2045 echo $ac_n "(cached) $ac_c" 1>&6
2047 if test "$cross_compiling" = yes; then
2048 ac_cv_func_mmap_fixed_mapped=no
2050 cat > conftest.$ac_ext <<EOF
2051 #line 2052 "configure"
2052 #include "confdefs.h"
2054 /* Thanks to Mike Haertel and Jim Avera for this test.
2055 Here is a matrix of mmap possibilities:
2056 mmap private not fixed
2057 mmap private fixed at somewhere currently unmapped
2058 mmap private fixed at somewhere already mapped
2059 mmap shared not fixed
2060 mmap shared fixed at somewhere currently unmapped
2061 mmap shared fixed at somewhere already mapped
2062 For private mappings, we should verify that changes cannot be read()
2063 back from the file, nor mmap's back from the file at a different
2064 address. (There have been systems where private was not correctly
2065 implemented like the infamous i386 svr4.0, and systems where the
2066 VM page cache was not coherent with the filesystem buffer cache
2067 like early versions of FreeBSD and possibly contemporary NetBSD.)
2068 For shared mappings, we should conversely verify that changes get
2069 propogated back to all the places they're supposed to be.
2071 Grep wants private fixed already mapped.
2072 The main things grep needs to know about mmap are:
2073 * does it exist and is it safe to write into the mmap'd area
2074 * how to use it (BSD variants) */
2075 #include <sys/types.h>
2077 #include <sys/mman.h>
2079 /* This mess was copied from the GNU getpagesize.h. */
2080 #ifndef HAVE_GETPAGESIZE
2081 # ifdef HAVE_UNISTD_H
2082 # include <unistd.h>
2085 /* Assume that all systems that can run configure have sys/param.h. */
2086 # ifndef HAVE_SYS_PARAM_H
2087 # define HAVE_SYS_PARAM_H 1
2090 # ifdef _SC_PAGESIZE
2091 # define getpagesize() sysconf(_SC_PAGESIZE)
2092 # else /* no _SC_PAGESIZE */
2093 # ifdef HAVE_SYS_PARAM_H
2094 # include <sys/param.h>
2095 # ifdef EXEC_PAGESIZE
2096 # define getpagesize() EXEC_PAGESIZE
2097 # else /* no EXEC_PAGESIZE */
2099 # define getpagesize() NBPG * CLSIZE
2102 # endif /* no CLSIZE */
2103 # else /* no NBPG */
2105 # define getpagesize() NBPC
2106 # else /* no NBPC */
2108 # define getpagesize() PAGESIZE
2109 # endif /* PAGESIZE */
2110 # endif /* no NBPC */
2111 # endif /* no NBPG */
2112 # endif /* no EXEC_PAGESIZE */
2113 # else /* no HAVE_SYS_PARAM_H */
2114 # define getpagesize() 8192 /* punt totally */
2115 # endif /* no HAVE_SYS_PARAM_H */
2116 # endif /* no _SC_PAGESIZE */
2118 #endif /* no HAVE_GETPAGESIZE */
2121 extern "C" { void *malloc(unsigned); }
2129 char *data, *data2, *data3;
2133 pagesize = getpagesize();
2136 * First, make a file with some known garbage in it.
2138 data = malloc(pagesize);
2141 for (i = 0; i < pagesize; ++i)
2142 *(data + i) = rand();
2144 fd = creat("conftestmmap", 0600);
2147 if (write(fd, data, pagesize) != pagesize)
2152 * Next, try to mmap the file at a fixed address which
2153 * already has something else allocated at it. If we can,
2154 * also make sure that we see the same garbage.
2156 fd = open("conftestmmap", O_RDWR);
2159 data2 = malloc(2 * pagesize);
2162 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2163 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2164 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2166 for (i = 0; i < pagesize; ++i)
2167 if (*(data + i) != *(data2 + i))
2171 * Finally, make sure that changes to the mapped area
2172 * do not percolate back to the file as seen by read().
2173 * (This is a bug on some variants of i386 svr4.0.)
2175 for (i = 0; i < pagesize; ++i)
2176 *(data2 + i) = *(data2 + i) + 1;
2177 data3 = malloc(pagesize);
2180 if (read(fd, data3, pagesize) != pagesize)
2182 for (i = 0; i < pagesize; ++i)
2183 if (*(data + i) != *(data3 + i))
2186 unlink("conftestmmap");
2191 if { (eval echo configure:2192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2193 ac_cv_func_mmap_fixed_mapped=yes
2195 echo "configure: failed program was:" >&5
2196 cat conftest.$ac_ext >&5
2198 ac_cv_func_mmap_fixed_mapped=no
2205 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2206 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2207 cat >> confdefs.h <<\EOF
2214 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
2215 echo "configure:2216: checking whether we are using the GNU C Library 2.1 or newer" >&5
2216 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
2217 echo $ac_n "(cached) $ac_c" 1>&6
2219 cat > conftest.$ac_ext <<EOF
2220 #line 2221 "configure"
2221 #include "confdefs.h"
2223 #include <features.h>
2224 #ifdef __GNU_LIBRARY__
2225 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2232 egrep "Lucky GNU user" >/dev/null 2>&1; then
2234 ac_cv_gnu_library_2_1=yes
2237 ac_cv_gnu_library_2_1=no
2245 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
2247 GLIBC21="$ac_cv_gnu_library_2_1"
2251 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
2252 stdlib.h string.h unistd.h sys/param.h
2254 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2255 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2256 echo "configure:2257: checking for $ac_hdr" >&5
2257 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2258 echo $ac_n "(cached) $ac_c" 1>&6
2260 cat > conftest.$ac_ext <<EOF
2261 #line 2262 "configure"
2262 #include "confdefs.h"
2265 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2266 { (eval echo configure:2267: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2267 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2268 if test -z "$ac_err"; then
2270 eval "ac_cv_header_$ac_safe=yes"
2273 echo "configure: failed program was:" >&5
2274 cat conftest.$ac_ext >&5
2276 eval "ac_cv_header_$ac_safe=no"
2280 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2281 echo "$ac_t""yes" 1>&6
2282 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2283 cat >> confdefs.h <<EOF
2284 #define $ac_tr_hdr 1
2288 echo "$ac_t""no" 1>&6
2292 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
2293 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
2294 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
2296 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2297 echo "configure:2298: checking for $ac_func" >&5
2298 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2299 echo $ac_n "(cached) $ac_c" 1>&6
2301 cat > conftest.$ac_ext <<EOF
2302 #line 2303 "configure"
2303 #include "confdefs.h"
2304 /* System header to define __stub macros and hopefully few prototypes,
2305 which can conflict with char $ac_func(); below. */
2307 /* Override any gcc2 internal prototype to avoid an error. */
2308 /* We use char because int might match the return type of a gcc2
2309 builtin and then its argument prototype would still apply. */
2314 /* The GNU C library defines this for functions which it implements
2315 to always fail with ENOSYS. Some functions are actually named
2316 something starting with __ and the normal name is an alias. */
2317 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2325 if { (eval echo configure:2326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2327 eval "ac_cv_func_$ac_func=yes"
2329 echo "configure: failed program was:" >&5
2330 cat conftest.$ac_ext >&5
2332 eval "ac_cv_func_$ac_func=no"
2337 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2338 echo "$ac_t""yes" 1>&6
2339 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2340 cat >> confdefs.h <<EOF
2341 #define $ac_tr_func 1
2345 echo "$ac_t""no" 1>&6
2352 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
2353 if test "${with_libiconv_prefix+set}" = set; then
2354 withval="$with_libiconv_prefix"
2356 for dir in `echo "$withval" | tr : ' '`; do
2357 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
2358 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
2364 echo $ac_n "checking for iconv""... $ac_c" 1>&6
2365 echo "configure:2366: checking for iconv" >&5
2366 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
2367 echo $ac_n "(cached) $ac_c" 1>&6
2370 am_cv_func_iconv="no, consider installing GNU libiconv"
2372 cat > conftest.$ac_ext <<EOF
2373 #line 2374 "configure"
2374 #include "confdefs.h"
2378 iconv_t cd = iconv_open("","");
2379 iconv(cd,NULL,NULL,NULL,NULL);
2383 if { (eval echo configure:2384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2385 am_cv_func_iconv=yes
2387 echo "configure: failed program was:" >&5
2388 cat conftest.$ac_ext >&5
2391 if test "$am_cv_func_iconv" != yes; then
2392 am_save_LIBS="$LIBS"
2393 LIBS="$LIBS -liconv"
2394 cat > conftest.$ac_ext <<EOF
2395 #line 2396 "configure"
2396 #include "confdefs.h"
2400 iconv_t cd = iconv_open("","");
2401 iconv(cd,NULL,NULL,NULL,NULL);
2405 if { (eval echo configure:2406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2408 am_cv_func_iconv=yes
2410 echo "configure: failed program was:" >&5
2411 cat conftest.$ac_ext >&5
2414 LIBS="$am_save_LIBS"
2419 echo "$ac_t""$am_cv_func_iconv" 1>&6
2420 if test "$am_cv_func_iconv" = yes; then
2421 cat >> confdefs.h <<\EOF
2422 #define HAVE_ICONV 1
2425 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
2426 echo "configure:2427: checking for iconv declaration" >&5
2427 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
2428 echo $ac_n "(cached) $ac_c" 1>&6
2431 cat > conftest.$ac_ext <<EOF
2432 #line 2433 "configure"
2433 #include "confdefs.h"
2441 #if defined(__STDC__) || defined(__cplusplus)
2442 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
2451 if { (eval echo configure:2452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2453 am_cv_proto_iconv_arg1=""
2455 echo "configure: failed program was:" >&5
2456 cat conftest.$ac_ext >&5
2458 am_cv_proto_iconv_arg1="const"
2461 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
2464 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
2465 echo "$ac_t""${ac_t:-
2466 }$am_cv_proto_iconv" 1>&6
2467 cat >> confdefs.h <<EOF
2468 #define ICONV_CONST $am_cv_proto_iconv_arg1
2473 if test "$am_cv_lib_iconv" = yes; then
2479 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
2480 echo "configure:2481: checking for nl_langinfo and CODESET" >&5
2481 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
2482 echo $ac_n "(cached) $ac_c" 1>&6
2484 cat > conftest.$ac_ext <<EOF
2485 #line 2486 "configure"
2486 #include "confdefs.h"
2487 #include <langinfo.h>
2489 char* cs = nl_langinfo(CODESET);
2492 if { (eval echo configure:2493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2494 am_cv_langinfo_codeset=yes
2496 echo "configure: failed program was:" >&5
2497 cat conftest.$ac_ext >&5
2499 am_cv_langinfo_codeset=no
2505 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
2506 if test $am_cv_langinfo_codeset = yes; then
2507 cat >> confdefs.h <<\EOF
2508 #define HAVE_LANGINFO_CODESET 1
2513 if test $ac_cv_header_locale_h = yes; then
2514 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2515 echo "configure:2516: checking for LC_MESSAGES" >&5
2516 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2517 echo $ac_n "(cached) $ac_c" 1>&6
2519 cat > conftest.$ac_ext <<EOF
2520 #line 2521 "configure"
2521 #include "confdefs.h"
2527 if { (eval echo configure:2528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2529 am_cv_val_LC_MESSAGES=yes
2531 echo "configure: failed program was:" >&5
2532 cat conftest.$ac_ext >&5
2534 am_cv_val_LC_MESSAGES=no
2539 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2540 if test $am_cv_val_LC_MESSAGES = yes; then
2541 cat >> confdefs.h <<\EOF
2542 #define HAVE_LC_MESSAGES 1
2547 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2548 echo "configure:2549: checking whether NLS is requested" >&5
2549 # Check whether --enable-nls or --disable-nls was given.
2550 if test "${enable_nls+set}" = set; then
2551 enableval="$enable_nls"
2557 echo "$ac_t""$USE_NLS" 1>&6
2560 BUILD_INCLUDED_LIBINTL=no
2561 USE_INCLUDED_LIBINTL=no
2564 if test "$USE_NLS" = "yes"; then
2565 cat >> confdefs.h <<\EOF
2566 #define ENABLE_NLS 1
2569 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2570 echo "configure:2571: checking whether included gettext is requested" >&5
2571 # Check whether --with-included-gettext or --without-included-gettext was given.
2572 if test "${with_included_gettext+set}" = set; then
2573 withval="$with_included_gettext"
2574 nls_cv_force_use_gnu_gettext=$withval
2576 nls_cv_force_use_gnu_gettext=no
2579 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2581 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2582 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2588 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2589 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2590 echo "configure:2591: checking for libintl.h" >&5
2591 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2592 echo $ac_n "(cached) $ac_c" 1>&6
2594 cat > conftest.$ac_ext <<EOF
2595 #line 2596 "configure"
2596 #include "confdefs.h"
2597 #include <libintl.h>
2599 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2600 { (eval echo configure:2601: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2601 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2602 if test -z "$ac_err"; then
2604 eval "ac_cv_header_$ac_safe=yes"
2607 echo "configure: failed program was:" >&5
2608 cat conftest.$ac_ext >&5
2610 eval "ac_cv_header_$ac_safe=no"
2614 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2615 echo "$ac_t""yes" 1>&6
2616 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
2617 echo "configure:2618: checking for GNU gettext in libc" >&5
2618 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
2619 echo $ac_n "(cached) $ac_c" 1>&6
2621 cat > conftest.$ac_ext <<EOF
2622 #line 2623 "configure"
2623 #include "confdefs.h"
2624 #include <libintl.h>
2625 extern int _nl_msg_cat_cntr;
2627 bindtextdomain ("", "");
2628 return (int) gettext ("") + _nl_msg_cat_cntr
2631 if { (eval echo configure:2632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2633 gt_cv_func_gnugettext1_libc=yes
2635 echo "configure: failed program was:" >&5
2636 cat conftest.$ac_ext >&5
2638 gt_cv_func_gnugettext1_libc=no
2643 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
2645 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
2646 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
2647 echo "configure:2648: checking for GNU gettext in libintl" >&5
2648 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
2649 echo $ac_n "(cached) $ac_c" 1>&6
2651 gt_save_LIBS="$LIBS"
2652 LIBS="$LIBS -lintl $LIBICONV"
2653 cat > conftest.$ac_ext <<EOF
2654 #line 2655 "configure"
2655 #include "confdefs.h"
2656 #include <libintl.h>
2657 extern int _nl_msg_cat_cntr;
2659 bindtextdomain ("", "");
2660 return (int) gettext ("") + _nl_msg_cat_cntr
2663 if { (eval echo configure:2664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2665 gt_cv_func_gnugettext1_libintl=yes
2667 echo "configure: failed program was:" >&5
2668 cat conftest.$ac_ext >&5
2670 gt_cv_func_gnugettext1_libintl=no
2673 LIBS="$gt_save_LIBS"
2676 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
2679 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
2680 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
2681 && test "$PACKAGE" != gettext; }; then
2682 cat >> confdefs.h <<\EOF
2683 #define HAVE_GETTEXT 1
2687 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
2688 INTLLIBS="-lintl $LIBICONV"
2691 gt_save_LIBS="$LIBS"
2692 LIBS="$LIBS $INTLLIBS"
2693 for ac_func in dcgettext
2695 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2696 echo "configure:2697: checking for $ac_func" >&5
2697 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2698 echo $ac_n "(cached) $ac_c" 1>&6
2700 cat > conftest.$ac_ext <<EOF
2701 #line 2702 "configure"
2702 #include "confdefs.h"
2703 /* System header to define __stub macros and hopefully few prototypes,
2704 which can conflict with char $ac_func(); below. */
2706 /* Override any gcc2 internal prototype to avoid an error. */
2707 /* We use char because int might match the return type of a gcc2
2708 builtin and then its argument prototype would still apply. */
2713 /* The GNU C library defines this for functions which it implements
2714 to always fail with ENOSYS. Some functions are actually named
2715 something starting with __ and the normal name is an alias. */
2716 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2724 if { (eval echo configure:2725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2726 eval "ac_cv_func_$ac_func=yes"
2728 echo "configure: failed program was:" >&5
2729 cat conftest.$ac_ext >&5
2731 eval "ac_cv_func_$ac_func=no"
2736 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2737 echo "$ac_t""yes" 1>&6
2738 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2739 cat >> confdefs.h <<EOF
2740 #define $ac_tr_func 1
2744 echo "$ac_t""no" 1>&6
2748 LIBS="$gt_save_LIBS"
2750 # Extract the first word of "msgfmt", so it can be a program name with args.
2751 set dummy msgfmt; ac_word=$2
2752 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2753 echo "configure:2754: checking for $ac_word" >&5
2754 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2755 echo $ac_n "(cached) $ac_c" 1>&6
2759 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2762 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2763 for ac_dir in $PATH; do
2764 test -z "$ac_dir" && ac_dir=.
2765 if test -f $ac_dir/$ac_word; then
2766 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2767 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2773 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2777 MSGFMT="$ac_cv_path_MSGFMT"
2778 if test "$MSGFMT" != ":"; then
2779 echo "$ac_t""$MSGFMT" 1>&6
2781 echo "$ac_t""no" 1>&6
2784 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2785 set dummy gmsgfmt; ac_word=$2
2786 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2787 echo "configure:2788: checking for $ac_word" >&5
2788 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2789 echo $ac_n "(cached) $ac_c" 1>&6
2793 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2796 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2799 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2801 for ac_dir in $ac_dummy; do
2802 test -z "$ac_dir" && ac_dir=.
2803 if test -f $ac_dir/$ac_word; then
2804 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2809 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2813 GMSGFMT="$ac_cv_path_GMSGFMT"
2814 if test -n "$GMSGFMT"; then
2815 echo "$ac_t""$GMSGFMT" 1>&6
2817 echo "$ac_t""no" 1>&6
2821 # Extract the first word of "xgettext", so it can be a program name with args.
2822 set dummy xgettext; ac_word=$2
2823 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2824 echo "configure:2825: checking for $ac_word" >&5
2825 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2826 echo $ac_n "(cached) $ac_c" 1>&6
2830 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2833 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2834 for ac_dir in $PATH; do
2835 test -z "$ac_dir" && ac_dir=.
2836 if test -f $ac_dir/$ac_word; then
2837 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2838 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2844 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2848 XGETTEXT="$ac_cv_path_XGETTEXT"
2849 if test "$XGETTEXT" != ":"; then
2850 echo "$ac_t""$XGETTEXT" 1>&6
2852 echo "$ac_t""no" 1>&6
2860 echo "$ac_t""no" 1>&6
2864 if test "$CATOBJEXT" = "NONE"; then
2865 nls_cv_use_gnu_gettext=yes
2869 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2870 INTLOBJS="\$(GETTOBJS)"
2871 # Extract the first word of "msgfmt", so it can be a program name with args.
2872 set dummy msgfmt; ac_word=$2
2873 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2874 echo "configure:2875: checking for $ac_word" >&5
2875 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2876 echo $ac_n "(cached) $ac_c" 1>&6
2880 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2883 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2884 for ac_dir in $PATH; do
2885 test -z "$ac_dir" && ac_dir=.
2886 if test -f $ac_dir/$ac_word; then
2887 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2888 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2894 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2898 MSGFMT="$ac_cv_path_MSGFMT"
2899 if test "$MSGFMT" != ":"; then
2900 echo "$ac_t""$MSGFMT" 1>&6
2902 echo "$ac_t""no" 1>&6
2905 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2906 set dummy gmsgfmt; ac_word=$2
2907 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2908 echo "configure:2909: checking for $ac_word" >&5
2909 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2910 echo $ac_n "(cached) $ac_c" 1>&6
2914 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2917 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2920 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2922 for ac_dir in $ac_dummy; do
2923 test -z "$ac_dir" && ac_dir=.
2924 if test -f $ac_dir/$ac_word; then
2925 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2930 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2934 GMSGFMT="$ac_cv_path_GMSGFMT"
2935 if test -n "$GMSGFMT"; then
2936 echo "$ac_t""$GMSGFMT" 1>&6
2938 echo "$ac_t""no" 1>&6
2941 # Extract the first word of "xgettext", so it can be a program name with args.
2942 set dummy xgettext; ac_word=$2
2943 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2944 echo "configure:2945: checking for $ac_word" >&5
2945 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2946 echo $ac_n "(cached) $ac_c" 1>&6
2950 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2953 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2954 for ac_dir in $PATH; do
2955 test -z "$ac_dir" && ac_dir=.
2956 if test -f $ac_dir/$ac_word; then
2957 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2958 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2964 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2968 XGETTEXT="$ac_cv_path_XGETTEXT"
2969 if test "$XGETTEXT" != ":"; then
2970 echo "$ac_t""$XGETTEXT" 1>&6
2972 echo "$ac_t""no" 1>&6
2976 BUILD_INCLUDED_LIBINTL=yes
2977 USE_INCLUDED_LIBINTL=yes
2979 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
2980 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
2983 if test "$GMSGFMT" != ":"; then
2984 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
2987 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
2992 if test "$XGETTEXT" != ":"; then
2993 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
2996 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
3006 if test "$PACKAGE" = gettext; then
3007 BUILD_INCLUDED_LIBINTL=yes
3010 for ac_prog in bison
3012 # Extract the first word of "$ac_prog", so it can be a program name with args.
3013 set dummy $ac_prog; ac_word=$2
3014 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3015 echo "configure:3016: checking for $ac_word" >&5
3016 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
3017 echo $ac_n "(cached) $ac_c" 1>&6
3019 if test -n "$INTLBISON"; then
3020 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
3022 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3024 for ac_dir in $ac_dummy; do
3025 test -z "$ac_dir" && ac_dir=.
3026 if test -f $ac_dir/$ac_word; then
3027 ac_cv_prog_INTLBISON="$ac_prog"
3034 INTLBISON="$ac_cv_prog_INTLBISON"
3035 if test -n "$INTLBISON"; then
3036 echo "$ac_t""$INTLBISON" 1>&6
3038 echo "$ac_t""no" 1>&6
3041 test -n "$INTLBISON" && break
3044 if test -z "$INTLBISON"; then
3047 echo $ac_n "checking version of bison""... $ac_c" 1>&6
3048 echo "configure:3049: checking version of bison" >&5
3049 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
3050 case $ac_prog_version in
3051 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3052 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
3053 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3054 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3056 echo "$ac_t""$ac_prog_version" 1>&6
3058 if test $ac_verc_fail = yes; then
3062 for lang in $ALL_LINGUAS; do
3063 GMOFILES="$GMOFILES $lang.gmo"
3064 POFILES="$POFILES $lang.po"
3078 nls_cv_header_libgt=
3090 if test "x$CATOBJEXT" != "x"; then
3091 if test "x$ALL_LINGUAS" = "x"; then
3094 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3095 echo "configure:3096: checking for catalogs to be installed" >&5
3097 for presentlang in $ALL_LINGUAS; do
3099 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
3100 # Use the presentlang catalog if desiredlang is
3101 # a. equal to presentlang, or
3102 # b. a variant of presentlang (because in this case,
3103 # presentlang can be used as a fallback for messages
3104 # which are not translated in the desiredlang catalog).
3105 case "$desiredlang" in
3106 "$presentlang"*) useit=yes;;
3109 if test $useit = yes; then
3110 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
3113 LINGUAS=$NEW_LINGUAS
3114 echo "$ac_t""$LINGUAS" 1>&6
3117 if test -n "$LINGUAS"; then
3118 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3123 if test -n "$ac_aux_dir"; then
3124 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3126 if test -z "$MKINSTALLDIRS"; then
3127 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3131 INTL_LIBTOOL_SUFFIX_PREFIX=
3135 # Find a good install program. We prefer a C program (faster),
3136 # so one script is as good as another. But avoid the broken or
3137 # incompatible versions:
3138 # SysV /etc/install, /usr/sbin/install
3139 # SunOS /usr/etc/install
3140 # IRIX /sbin/install
3142 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3143 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3144 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3145 # ./install, which can be erroneously created by make from ./install.sh.
3146 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3147 echo "configure:3148: checking for a BSD compatible install" >&5
3148 if test -z "$INSTALL"; then
3149 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3150 echo $ac_n "(cached) $ac_c" 1>&6
3152 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3153 for ac_dir in $PATH; do
3154 # Account for people who put trailing slashes in PATH elements.
3156 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3158 # OSF1 and SCO ODT 3.0 have their own names for install.
3159 # Don't use installbsd from OSF since it installs stuff as root
3161 for ac_prog in ginstall scoinst install; do
3162 if test -f $ac_dir/$ac_prog; then
3163 if test $ac_prog = install &&
3164 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3165 # AIX install. It has an incompatible calling convention.
3168 ac_cv_path_install="$ac_dir/$ac_prog -c"
3179 if test "${ac_cv_path_install+set}" = set; then
3180 INSTALL="$ac_cv_path_install"
3182 # As a last resort, use the slow shell script. We don't cache a
3183 # path for INSTALL within a source directory, because that will
3184 # break other packages using the cache if that directory is
3185 # removed, or if the path is relative.
3186 INSTALL="$ac_install_sh"
3189 echo "$ac_t""$INSTALL" 1>&6
3191 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3192 # It thinks the first close brace ends the variable substitution.
3193 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3195 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3197 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3200 echo $ac_n "checking for working const""... $ac_c" 1>&6
3201 echo "configure:3202: checking for working const" >&5
3202 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3203 echo $ac_n "(cached) $ac_c" 1>&6
3205 cat > conftest.$ac_ext <<EOF
3206 #line 3207 "configure"
3207 #include "confdefs.h"
3211 /* Ultrix mips cc rejects this. */
3212 typedef int charset[2]; const charset x;
3213 /* SunOS 4.1.1 cc rejects this. */
3214 char const *const *ccp;
3216 /* NEC SVR4.0.2 mips cc rejects this. */
3217 struct point {int x, y;};
3218 static struct point const zero = {0,0};
3219 /* AIX XL C 1.02.0.0 rejects this.
3220 It does not let you subtract one const X* pointer from another in an arm
3221 of an if-expression whose if-part is not a constant expression */
3222 const char *g = "string";
3223 ccp = &g + (g ? g-g : 0);
3224 /* HPUX 7.0 cc rejects these. */
3227 ccp = (char const *const *) p;
3228 { /* SCO 3.2v4 cc rejects this. */
3230 char const *s = 0 ? (char *) 0 : (char const *) 0;
3234 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3236 const int *foo = &x[0];
3239 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3240 typedef const int *iptr;
3244 { /* AIX XL C 1.02.0.0 rejects this saying
3245 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3246 struct s { int j; const int *ap[3]; };
3247 struct s *b; b->j = 5;
3249 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3255 if { (eval echo configure:3256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3259 echo "configure: failed program was:" >&5
3260 cat conftest.$ac_ext >&5
3267 echo "$ac_t""$ac_cv_c_const" 1>&6
3268 if test $ac_cv_c_const = no; then
3269 cat >> confdefs.h <<\EOF
3275 echo $ac_n "checking for inline""... $ac_c" 1>&6
3276 echo "configure:3277: checking for inline" >&5
3277 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3278 echo $ac_n "(cached) $ac_c" 1>&6
3281 for ac_kw in inline __inline__ __inline; do
3282 cat > conftest.$ac_ext <<EOF
3283 #line 3284 "configure"
3284 #include "confdefs.h"
3290 if { (eval echo configure:3291: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3292 ac_cv_c_inline=$ac_kw; break
3294 echo "configure: failed program was:" >&5
3295 cat conftest.$ac_ext >&5
3302 echo "$ac_t""$ac_cv_c_inline" 1>&6
3303 case "$ac_cv_c_inline" in
3305 no) cat >> confdefs.h <<\EOF
3309 *) cat >> confdefs.h <<EOF
3310 #define inline $ac_cv_c_inline
3316 vlc_LDFLAGS="${LDFLAGS}"
3318 case "x${target_os}" in
3327 save_CFLAGS="${save_CFLAGS} -pthread"; CFLAGS="${save_CFLAGS}"
3328 dvd_LDFLAGS="${dvd_LDFLAGS} -ldvd"
3329 vcd_LDFLAGS="${vcd_LDFLAGS} -ldvd"
3333 save_CFLAGS="${save_CFLAGS} -pthread"; CFLAGS="${save_CFLAGS}"
3337 save_CFLAGS="${save_CFLAGS} -no-cpp-precomp"; CFLAGS="${save_CFLAGS}"
3338 vlc_LDFLAGS="${vlc_LDFLAGS} -all_load"
3342 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3343 set dummy ${ac_tool_prefix}windres; ac_word=$2
3344 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3345 echo "configure:3346: checking for $ac_word" >&5
3346 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3347 echo $ac_n "(cached) $ac_c" 1>&6
3349 if test -n "$WINDRES"; then
3350 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3352 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3354 for ac_dir in $ac_dummy; do
3355 test -z "$ac_dir" && ac_dir=.
3356 if test -f $ac_dir/$ac_word; then
3357 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
3364 WINDRES="$ac_cv_prog_WINDRES"
3365 if test -n "$WINDRES"; then
3366 echo "$ac_t""$WINDRES" 1>&6
3368 echo "$ac_t""no" 1>&6
3372 if test -z "$ac_cv_prog_WINDRES"; then
3373 if test -n "$ac_tool_prefix"; then
3374 # Extract the first word of "windres", so it can be a program name with args.
3375 set dummy windres; ac_word=$2
3376 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3377 echo "configure:3378: checking for $ac_word" >&5
3378 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3379 echo $ac_n "(cached) $ac_c" 1>&6
3381 if test -n "$WINDRES"; then
3382 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3384 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3386 for ac_dir in $ac_dummy; do
3387 test -z "$ac_dir" && ac_dir=.
3388 if test -f $ac_dir/$ac_word; then
3389 ac_cv_prog_WINDRES="windres"
3394 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES=":"
3397 WINDRES="$ac_cv_prog_WINDRES"
3398 if test -n "$WINDRES"; then
3399 echo "$ac_t""$WINDRES" 1>&6
3401 echo "$ac_t""no" 1>&6
3409 save_CFLAGS="${save_CFLAGS} -fnative-struct -D_OFF_T_ -D_off_t=long"; CFLAGS="${save_CFLAGS}"
3410 vlc_LDFLAGS="${vlc_LDFLAGS} -mwindows -Xlinker --force-exe-suffix"
3411 vlc_LDFLAGS="${vlc_LDFLAGS} -lws2_32 -lnetapi32"
3412 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lws2_32"
3413 ipv6_LDFLAGS="${ipv6_LDFLAGS} -lws2_32"
3414 http_LDFLAGS="${http_LDFLAGS} -lws2_32"
3415 rc_LDFLAGS="${rc_LDFLAGS} -lws2_32"
3419 x11_LDFLAGS="${x11_LDFLAGS} -lsocket"
3420 xvideo_LDFLAGS="${xvideo_LDFLAGS} -lsocket"
3427 save_CFLAGS="${save_CFLAGS} -Wno-multichar -Wno-ctor-dtor-privacy -Woverloaded-virtual"; CFLAGS="${save_CFLAGS}"
3428 vlc_LDFLAGS="${vlc_LDFLAGS} -lbe"
3429 plugins_LDFLAGS="${plugins_LDFLAGS} -nostart"
3430 beos_LDFLAGS="${beos_LDFLAGS} -lbe -lgame -lroot -ltracker"
3431 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3438 if test "x${SYS}" = "xmingw32"
3440 plugins_CFLAGS="${plugins_CFLAGS} -fnative-struct"
3442 plugins_CFLAGS="${plugins_CFLAGS} -fPIC"
3443 plugins_LDFLAGS="${plugins_LDFLAGS} -fPIC"
3446 save_CFLAGS="${save_CFLAGS} -DSYS_`echo ${SYS} | sed -e 's/-.*//' | tr 'abcdefghijklmnopqrstuvwxyz.' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`"; CFLAGS="${save_CFLAGS}"
3448 for ac_func in gettimeofday select strerror strtod strtol isatty vasprintf swab sigrelse getpwuid memalign posix_memalign gethostbyname2 atoll strndup
3450 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3451 echo "configure:3452: checking for $ac_func" >&5
3452 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3453 echo $ac_n "(cached) $ac_c" 1>&6
3455 cat > conftest.$ac_ext <<EOF
3456 #line 3457 "configure"
3457 #include "confdefs.h"
3458 /* System header to define __stub macros and hopefully few prototypes,
3459 which can conflict with char $ac_func(); below. */
3461 /* Override any gcc2 internal prototype to avoid an error. */
3462 /* We use char because int might match the return type of a gcc2
3463 builtin and then its argument prototype would still apply. */
3468 /* The GNU C library defines this for functions which it implements
3469 to always fail with ENOSYS. Some functions are actually named
3470 something starting with __ and the normal name is an alias. */
3471 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3479 if { (eval echo configure:3480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3481 eval "ac_cv_func_$ac_func=yes"
3483 echo "configure: failed program was:" >&5
3484 cat conftest.$ac_ext >&5
3486 eval "ac_cv_func_$ac_func=no"
3491 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3492 echo "$ac_t""yes" 1>&6
3493 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3494 cat >> confdefs.h <<EOF
3495 #define $ac_tr_func 1
3499 echo "$ac_t""no" 1>&6
3504 echo $ac_n "checking for connect""... $ac_c" 1>&6
3505 echo "configure:3506: checking for connect" >&5
3506 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3507 echo $ac_n "(cached) $ac_c" 1>&6
3509 cat > conftest.$ac_ext <<EOF
3510 #line 3511 "configure"
3511 #include "confdefs.h"
3512 /* System header to define __stub macros and hopefully few prototypes,
3513 which can conflict with char connect(); below. */
3515 /* Override any gcc2 internal prototype to avoid an error. */
3516 /* We use char because int might match the return type of a gcc2
3517 builtin and then its argument prototype would still apply. */
3522 /* The GNU C library defines this for functions which it implements
3523 to always fail with ENOSYS. Some functions are actually named
3524 something starting with __ and the normal name is an alias. */
3525 #if defined (__stub_connect) || defined (__stub___connect)
3533 if { (eval echo configure:3534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3535 eval "ac_cv_func_connect=yes"
3537 echo "configure: failed program was:" >&5
3538 cat conftest.$ac_ext >&5
3540 eval "ac_cv_func_connect=no"
3545 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3546 echo "$ac_t""yes" 1>&6
3549 echo "$ac_t""no" 1>&6
3551 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3552 echo "configure:3553: checking for connect in -lsocket" >&5
3553 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3554 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3555 echo $ac_n "(cached) $ac_c" 1>&6
3557 ac_save_LIBS="$LIBS"
3558 LIBS="-lsocket $LIBS"
3559 cat > conftest.$ac_ext <<EOF
3560 #line 3561 "configure"
3561 #include "confdefs.h"
3562 /* Override any gcc2 internal prototype to avoid an error. */
3563 /* We use char because int might match the return type of a gcc2
3564 builtin and then its argument prototype would still apply. */
3571 if { (eval echo configure:3572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3573 eval "ac_cv_lib_$ac_lib_var=yes"
3575 echo "configure: failed program was:" >&5
3576 cat conftest.$ac_ext >&5
3578 eval "ac_cv_lib_$ac_lib_var=no"
3581 LIBS="$ac_save_LIBS"
3584 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3585 echo "$ac_t""yes" 1>&6
3586 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lsocket"
3587 vlc_LDFLAGS="${vlc_LDFLAGS} -lsocket"
3590 echo "$ac_t""no" 1>&6
3595 echo $ac_n "checking for send""... $ac_c" 1>&6
3596 echo "configure:3597: checking for send" >&5
3597 if eval "test \"`echo '$''{'ac_cv_func_send'+set}'`\" = set"; then
3598 echo $ac_n "(cached) $ac_c" 1>&6
3600 cat > conftest.$ac_ext <<EOF
3601 #line 3602 "configure"
3602 #include "confdefs.h"
3603 /* System header to define __stub macros and hopefully few prototypes,
3604 which can conflict with char send(); below. */
3606 /* Override any gcc2 internal prototype to avoid an error. */
3607 /* We use char because int might match the return type of a gcc2
3608 builtin and then its argument prototype would still apply. */
3613 /* The GNU C library defines this for functions which it implements
3614 to always fail with ENOSYS. Some functions are actually named
3615 something starting with __ and the normal name is an alias. */
3616 #if defined (__stub_send) || defined (__stub___send)
3624 if { (eval echo configure:3625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3626 eval "ac_cv_func_send=yes"
3628 echo "configure: failed program was:" >&5
3629 cat conftest.$ac_ext >&5
3631 eval "ac_cv_func_send=no"
3636 if eval "test \"`echo '$ac_cv_func_'send`\" = yes"; then
3637 echo "$ac_t""yes" 1>&6
3640 echo "$ac_t""no" 1>&6
3642 echo $ac_n "checking for send in -lsocket""... $ac_c" 1>&6
3643 echo "configure:3644: checking for send in -lsocket" >&5
3644 ac_lib_var=`echo socket'_'send | sed 'y%./+-%__p_%'`
3645 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3646 echo $ac_n "(cached) $ac_c" 1>&6
3648 ac_save_LIBS="$LIBS"
3649 LIBS="-lsocket $LIBS"
3650 cat > conftest.$ac_ext <<EOF
3651 #line 3652 "configure"
3652 #include "confdefs.h"
3653 /* Override any gcc2 internal prototype to avoid an error. */
3654 /* We use char because int might match the return type of a gcc2
3655 builtin and then its argument prototype would still apply. */
3662 if { (eval echo configure:3663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3664 eval "ac_cv_lib_$ac_lib_var=yes"
3666 echo "configure: failed program was:" >&5
3667 cat conftest.$ac_ext >&5
3669 eval "ac_cv_lib_$ac_lib_var=no"
3672 LIBS="$ac_save_LIBS"
3675 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3676 echo "$ac_t""yes" 1>&6
3677 http_LDFLAGS="${http_LDFLAGS} -lsocket"
3680 echo "$ac_t""no" 1>&6
3685 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3686 echo "configure:3687: checking for gethostbyname" >&5
3687 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3688 echo $ac_n "(cached) $ac_c" 1>&6
3690 cat > conftest.$ac_ext <<EOF
3691 #line 3692 "configure"
3692 #include "confdefs.h"
3693 /* System header to define __stub macros and hopefully few prototypes,
3694 which can conflict with char gethostbyname(); below. */
3696 /* Override any gcc2 internal prototype to avoid an error. */
3697 /* We use char because int might match the return type of a gcc2
3698 builtin and then its argument prototype would still apply. */
3699 char gethostbyname();
3703 /* The GNU C library defines this for functions which it implements
3704 to always fail with ENOSYS. Some functions are actually named
3705 something starting with __ and the normal name is an alias. */
3706 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3714 if { (eval echo configure:3715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3716 eval "ac_cv_func_gethostbyname=yes"
3718 echo "configure: failed program was:" >&5
3719 cat conftest.$ac_ext >&5
3721 eval "ac_cv_func_gethostbyname=no"
3726 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3727 echo "$ac_t""yes" 1>&6
3730 echo "$ac_t""no" 1>&6
3732 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3733 echo "configure:3734: checking for gethostbyname in -lnsl" >&5
3734 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3735 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3736 echo $ac_n "(cached) $ac_c" 1>&6
3738 ac_save_LIBS="$LIBS"
3740 cat > conftest.$ac_ext <<EOF
3741 #line 3742 "configure"
3742 #include "confdefs.h"
3743 /* Override any gcc2 internal prototype to avoid an error. */
3744 /* We use char because int might match the return type of a gcc2
3745 builtin and then its argument prototype would still apply. */
3746 char gethostbyname();
3752 if { (eval echo configure:3753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3754 eval "ac_cv_lib_$ac_lib_var=yes"
3756 echo "configure: failed program was:" >&5
3757 cat conftest.$ac_ext >&5
3759 eval "ac_cv_lib_$ac_lib_var=no"
3762 LIBS="$ac_save_LIBS"
3765 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3766 echo "$ac_t""yes" 1>&6
3767 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lnsl"
3769 echo "$ac_t""no" 1>&6
3775 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3776 echo "configure:3777: checking for gethostbyname" >&5
3777 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3778 echo $ac_n "(cached) $ac_c" 1>&6
3780 cat > conftest.$ac_ext <<EOF
3781 #line 3782 "configure"
3782 #include "confdefs.h"
3783 /* System header to define __stub macros and hopefully few prototypes,
3784 which can conflict with char gethostbyname(); below. */
3786 /* Override any gcc2 internal prototype to avoid an error. */
3787 /* We use char because int might match the return type of a gcc2
3788 builtin and then its argument prototype would still apply. */
3789 char gethostbyname();
3793 /* The GNU C library defines this for functions which it implements
3794 to always fail with ENOSYS. Some functions are actually named
3795 something starting with __ and the normal name is an alias. */
3796 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3804 if { (eval echo configure:3805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3806 eval "ac_cv_func_gethostbyname=yes"
3808 echo "configure: failed program was:" >&5
3809 cat conftest.$ac_ext >&5
3811 eval "ac_cv_func_gethostbyname=no"
3816 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3817 echo "$ac_t""yes" 1>&6
3820 echo "$ac_t""no" 1>&6
3822 echo $ac_n "checking for gethostbyname in -lbind""... $ac_c" 1>&6
3823 echo "configure:3824: checking for gethostbyname in -lbind" >&5
3824 ac_lib_var=`echo bind'_'gethostbyname | sed 'y%./+-%__p_%'`
3825 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3826 echo $ac_n "(cached) $ac_c" 1>&6
3828 ac_save_LIBS="$LIBS"
3830 cat > conftest.$ac_ext <<EOF
3831 #line 3832 "configure"
3832 #include "confdefs.h"
3833 /* Override any gcc2 internal prototype to avoid an error. */
3834 /* We use char because int might match the return type of a gcc2
3835 builtin and then its argument prototype would still apply. */
3836 char gethostbyname();
3842 if { (eval echo configure:3843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3844 eval "ac_cv_lib_$ac_lib_var=yes"
3846 echo "configure: failed program was:" >&5
3847 cat conftest.$ac_ext >&5
3849 eval "ac_cv_lib_$ac_lib_var=no"
3852 LIBS="$ac_save_LIBS"
3855 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3856 echo "$ac_t""yes" 1>&6
3857 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3859 echo "$ac_t""no" 1>&6
3866 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
3867 echo "configure:3868: checking for nanosleep" >&5
3868 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
3869 echo $ac_n "(cached) $ac_c" 1>&6
3871 cat > conftest.$ac_ext <<EOF
3872 #line 3873 "configure"
3873 #include "confdefs.h"