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)"
66 --enable-aac AAC demux module (default enabled)"
70 --enable-mad libmad module (default disabled)"
72 --with-mad=PATH path to libmad"
74 --with-mad-tree=PATH mad tree for static linking"
76 --enable-ffmpeg ffmpeg codec (default disabled)"
78 --with-ffmpeg=PATH path to ffmpeg installation"
80 --with-ffmpeg-tree=PATH ffmpeg tree for static linking"
82 --enable-faad faad codec (default disabled)"
84 --with-faad=PATH path to faad installation"
86 --with-faad-tree=PATH faad tree for static linking"
88 --enable-mp4 MP4 demux module (default enabled)"
90 --enable-a52 A/52 support with liba52 (default enabled)"
92 --with-a52=PATH a52 headers and libraries"
94 --with-a52-tree=PATH a52dec tree for static linking "
96 --enable-cinepak Cinepak decoder (default enabled)"
98 --enable-vorbis Ogg/Vorbis decoder support (default enabled)"
100 --enable-dv DV decoder support (default disabled)"
104 --enable-x11 X11 support (default enabled)"
106 --enable-xvideo XVideo support (default enabled)"
108 --enable-sdl SDL support (default enabled)"
110 --with-sdl-config-path=PATH sdl-config path (default search in \$PATH)"
112 --enable-directx Win32 DirectX support (default enabled on Win32)"
114 --with-directx=PATH Win32 DirectX headers"
116 --enable-fb Linux framebuffer support (default enabled on Linux)"
118 --enable-mga Linux kernel Matrox support (default disabled)"
120 --enable-svgalib SVGAlib support (default disabled)"
122 --enable-ggi GGI support (default disabled)"
124 --with-ggi=PATH path to libggi"
126 --enable-glide Glide (3dfx) support (default disabled)"
128 --with-glide=PATH path to libglide"
130 --enable-aa aalib output (default disabled)"
134 --enable-oss Linux OSS /dev/dsp support (enabled on Linux)"
136 --enable-esd Esound library support (default disabled)"
138 --enable-arts aRts sound server (default disabled)"
140 --enable-alsa ALSA sound support for Linux (default disabled)"
142 --enable-waveout Win32 waveOut module (default enabled on Win32)"
146 --enable-gtk Gtk+ support (default enabled)"
148 --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)"
150 --enable-familiar Familiar Gtk+ support (default disabled)"
152 --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)"
154 --enable-gnome Gnome interface support (default disabled)"
156 --enable-qt Qt interface support (default disabled)"
158 --enable-kde KDE interface support (default disabled)"
160 --enable-qte Qt embedded interface support (default disabled)"
162 --enable-macosx MacOS X support (default enabled on MacOS X)"
164 --enable-qnx QNX RTOS support (default enabled on QNX RTOS)"
166 --enable-intfwin Win32 interface support (default disabled)"
168 --with-bcbuilder=PATH Borland C++ Builder installation path"
170 --enable-ncurses ncurses interface support (default disabled)"
172 --enable-xosd xosd interface support (default disabled)"
174 --enable-lirc lirc support (default disabled)"
178 --with-words=endianness set endianness (big or little)"
180 --enable-gprof gprof profiling (default disabled)"
182 --enable-cprof cprof profiling (default disabled)"
184 --enable-pth GNU Pth support (default disabled)"
186 --enable-st State Threads (default disabled)"
188 --enable-mozilla build a vlc-based Mozilla plugin (default disabled)"
190 --disable-plugins make all plug-ins built-in (default plug-ins enabled)"
192 # Initialize some variables set by options.
193 # The variables have the same names as the options, with
194 # dashes changed to underlines.
196 cache_file=./config.cache
205 program_transform_name=s,x,x,
213 bindir='${exec_prefix}/bin'
214 sbindir='${exec_prefix}/sbin'
215 libexecdir='${exec_prefix}/libexec'
216 datadir='${prefix}/share'
217 sysconfdir='${prefix}/etc'
218 sharedstatedir='${prefix}/com'
219 localstatedir='${prefix}/var'
220 libdir='${exec_prefix}/lib'
221 includedir='${prefix}/include'
222 oldincludedir='/usr/include'
223 infodir='${prefix}/info'
224 mandir='${prefix}/man'
226 # Initialize some other variables.
229 SHELL=${CONFIG_SHELL-/bin/sh}
230 # Maximum number of lines to put in a shell here document.
237 # If the previous option needs an argument, assign it.
238 if test -n "$ac_prev"; then
239 eval "$ac_prev=\$ac_option"
245 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
249 # Accept the important Cygnus configure options, so we can diagnose typos.
253 -bindir | --bindir | --bindi | --bind | --bin | --bi)
255 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
256 bindir="$ac_optarg" ;;
258 -build | --build | --buil | --bui | --bu)
260 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
261 build="$ac_optarg" ;;
263 -cache-file | --cache-file | --cache-fil | --cache-fi \
264 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
265 ac_prev=cache_file ;;
266 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
267 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
268 cache_file="$ac_optarg" ;;
270 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
272 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
274 datadir="$ac_optarg" ;;
276 -disable-* | --disable-*)
277 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
278 # Reject names that are not valid shell variable names.
279 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
280 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
282 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
283 eval "enable_${ac_feature}=no" ;;
285 -enable-* | --enable-*)
286 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
287 # Reject names that are not valid shell variable names.
288 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
289 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
291 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
296 eval "enable_${ac_feature}='$ac_optarg'" ;;
298 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
299 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
300 | --exec | --exe | --ex)
301 ac_prev=exec_prefix ;;
302 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
303 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
304 | --exec=* | --exe=* | --ex=*)
305 exec_prefix="$ac_optarg" ;;
307 -gas | --gas | --ga | --g)
308 # Obsolete; use --with-gas.
311 -help | --help | --hel | --he)
312 # Omit some internal or obsolete options to make the list less imposing.
313 # This message is too long to be a string in the A/UX 3.1 sh.
315 Usage: configure [options] [host]
316 Options: [defaults in brackets after descriptions]
318 --cache-file=FILE cache test results in FILE
319 --help print this message
320 --no-create do not create output files
321 --quiet, --silent do not print \`checking...' messages
322 --version print the version of autoconf that created configure
323 Directory and file names:
324 --prefix=PREFIX install architecture-independent files in PREFIX
326 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
328 --bindir=DIR user executables in DIR [EPREFIX/bin]
329 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
330 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
331 --datadir=DIR read-only architecture-independent data in DIR
333 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
334 --sharedstatedir=DIR modifiable architecture-independent data in DIR
336 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
337 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
338 --includedir=DIR C header files in DIR [PREFIX/include]
339 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
340 --infodir=DIR info documentation in DIR [PREFIX/info]
341 --mandir=DIR man documentation in DIR [PREFIX/man]
342 --srcdir=DIR find the sources in DIR [configure dir or ..]
343 --program-prefix=PREFIX prepend PREFIX to installed program names
344 --program-suffix=SUFFIX append SUFFIX to installed program names
345 --program-transform-name=PROGRAM
346 run sed PROGRAM on installed program names
350 --build=BUILD configure for building on BUILD [BUILD=HOST]
351 --host=HOST configure for HOST [guessed]
352 --target=TARGET configure for TARGET [TARGET=HOST]
353 Features and packages:
354 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
355 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
356 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
357 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
358 --x-includes=DIR X include files are in DIR
359 --x-libraries=DIR X library files are in DIR
361 if test -n "$ac_help"; then
362 echo "--enable and --with options recognized:$ac_help"
366 -host | --host | --hos | --ho)
368 -host=* | --host=* | --hos=* | --ho=*)
371 -includedir | --includedir | --includedi | --included | --include \
372 | --includ | --inclu | --incl | --inc)
373 ac_prev=includedir ;;
374 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
375 | --includ=* | --inclu=* | --incl=* | --inc=*)
376 includedir="$ac_optarg" ;;
378 -infodir | --infodir | --infodi | --infod | --info | --inf)
380 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
381 infodir="$ac_optarg" ;;
383 -libdir | --libdir | --libdi | --libd)
385 -libdir=* | --libdir=* | --libdi=* | --libd=*)
386 libdir="$ac_optarg" ;;
388 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
389 | --libexe | --libex | --libe)
390 ac_prev=libexecdir ;;
391 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
392 | --libexe=* | --libex=* | --libe=*)
393 libexecdir="$ac_optarg" ;;
395 -localstatedir | --localstatedir | --localstatedi | --localstated \
396 | --localstate | --localstat | --localsta | --localst \
397 | --locals | --local | --loca | --loc | --lo)
398 ac_prev=localstatedir ;;
399 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
400 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
401 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
402 localstatedir="$ac_optarg" ;;
404 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
406 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
407 mandir="$ac_optarg" ;;
410 # Obsolete; use --without-fp.
413 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
417 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
418 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
421 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
422 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
423 | --oldin | --oldi | --old | --ol | --o)
424 ac_prev=oldincludedir ;;
425 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
426 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
427 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
428 oldincludedir="$ac_optarg" ;;
430 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
432 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
433 prefix="$ac_optarg" ;;
435 -program-prefix | --program-prefix | --program-prefi | --program-pref \
436 | --program-pre | --program-pr | --program-p)
437 ac_prev=program_prefix ;;
438 -program-prefix=* | --program-prefix=* | --program-prefi=* \
439 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
440 program_prefix="$ac_optarg" ;;
442 -program-suffix | --program-suffix | --program-suffi | --program-suff \
443 | --program-suf | --program-su | --program-s)
444 ac_prev=program_suffix ;;
445 -program-suffix=* | --program-suffix=* | --program-suffi=* \
446 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
447 program_suffix="$ac_optarg" ;;
449 -program-transform-name | --program-transform-name \
450 | --program-transform-nam | --program-transform-na \
451 | --program-transform-n | --program-transform- \
452 | --program-transform | --program-transfor \
453 | --program-transfo | --program-transf \
454 | --program-trans | --program-tran \
455 | --progr-tra | --program-tr | --program-t)
456 ac_prev=program_transform_name ;;
457 -program-transform-name=* | --program-transform-name=* \
458 | --program-transform-nam=* | --program-transform-na=* \
459 | --program-transform-n=* | --program-transform-=* \
460 | --program-transform=* | --program-transfor=* \
461 | --program-transfo=* | --program-transf=* \
462 | --program-trans=* | --program-tran=* \
463 | --progr-tra=* | --program-tr=* | --program-t=*)
464 program_transform_name="$ac_optarg" ;;
466 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
467 | -silent | --silent | --silen | --sile | --sil)
470 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
472 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
474 sbindir="$ac_optarg" ;;
476 -sharedstatedir | --sharedstatedir | --sharedstatedi \
477 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
478 | --sharedst | --shareds | --shared | --share | --shar \
480 ac_prev=sharedstatedir ;;
481 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
482 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
483 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
485 sharedstatedir="$ac_optarg" ;;
487 -site | --site | --sit)
489 -site=* | --site=* | --sit=*)
492 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
494 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
495 srcdir="$ac_optarg" ;;
497 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
498 | --syscon | --sysco | --sysc | --sys | --sy)
499 ac_prev=sysconfdir ;;
500 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
501 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
502 sysconfdir="$ac_optarg" ;;
504 -target | --target | --targe | --targ | --tar | --ta | --t)
506 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
507 target="$ac_optarg" ;;
509 -v | -verbose | --verbose | --verbos | --verbo | --verb)
512 -version | --version | --versio | --versi | --vers)
513 echo "configure generated by autoconf version 2.13"
517 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
518 # Reject names that are not valid shell variable names.
519 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
520 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
522 ac_package=`echo $ac_package| sed 's/-/_/g'`
527 eval "with_${ac_package}='$ac_optarg'" ;;
529 -without-* | --without-*)
530 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
531 # Reject names that are not valid shell variable names.
532 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
533 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
535 ac_package=`echo $ac_package| sed 's/-/_/g'`
536 eval "with_${ac_package}=no" ;;
539 # Obsolete; use --with-x.
542 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
543 | --x-incl | --x-inc | --x-in | --x-i)
544 ac_prev=x_includes ;;
545 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
546 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
547 x_includes="$ac_optarg" ;;
549 -x-libraries | --x-libraries | --x-librarie | --x-librari \
550 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
551 ac_prev=x_libraries ;;
552 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
553 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
554 x_libraries="$ac_optarg" ;;
556 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
560 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
561 echo "configure: warning: $ac_option: invalid host type" 1>&2
563 if test "x$nonopt" != xNONE; then
564 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
572 if test -n "$ac_prev"; then
573 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
576 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
578 # File descriptor usage:
581 # 2 errors and warnings
582 # 3 some systems may open it to /dev/tty
583 # 4 used on the Kubota Titan
584 # 6 checking for... messages and results
585 # 5 compiler messages saved in config.log
586 if test "$silent" = yes; then
594 This file contains any messages produced by compilers while
595 running configure, to aid debugging if configure makes a mistake.
598 # Strip out --no-create and --no-recursion so they do not pile up.
599 # Also quote any args containing shell metacharacters.
604 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
605 | --no-cr | --no-c) ;;
606 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
607 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
608 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
609 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
610 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
615 # Only set these to C if already set. These must not be set unconditionally
616 # because not all systems understand e.g. LANG=C (notably SCO).
617 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
618 # Non-C LC_CTYPE values break the ctype check.
619 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
620 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
621 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
622 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
624 # confdefs.h avoids OS command line length limits that DEFS can exceed.
625 rm -rf conftest* confdefs.h
626 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
629 # A filename unique to this package, relative to the directory that
630 # configure is in, which we can look for to find out if srcdir is correct.
631 ac_unique_file=include/main.h
633 # Find the source files, if location was not specified.
634 if test -z "$srcdir"; then
635 ac_srcdir_defaulted=yes
636 # Try the directory containing this script, then its parent.
638 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
639 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
641 if test ! -r $srcdir/$ac_unique_file; then
645 ac_srcdir_defaulted=no
647 if test ! -r $srcdir/$ac_unique_file; then
648 if test "$ac_srcdir_defaulted" = yes; then
649 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
651 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
654 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
656 # Prefer explicitly selected file to automatically selected ones.
657 if test -z "$CONFIG_SITE"; then
658 if test "x$prefix" != xNONE; then
659 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
661 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
664 for ac_site_file in $CONFIG_SITE; do
665 if test -r "$ac_site_file"; then
666 echo "loading site script $ac_site_file"
671 if test -r "$cache_file"; then
672 echo "loading cache $cache_file"
675 echo "creating cache $cache_file"
680 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
681 ac_cpp='$CPP $CPPFLAGS'
682 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
683 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
684 cross_compiling=$ac_cv_prog_cc_cross
688 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
689 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
690 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
697 ac_n= ac_c='\c' ac_t=
703 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
704 if test -f $ac_dir/install-sh; then
706 ac_install_sh="$ac_aux_dir/install-sh -c"
708 elif test -f $ac_dir/install.sh; then
710 ac_install_sh="$ac_aux_dir/install.sh -c"
714 if test -z "$ac_aux_dir"; then
715 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
717 ac_config_guess=$ac_aux_dir/config.guess
718 ac_config_sub=$ac_aux_dir/config.sub
719 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
722 # Do some error checking and defaulting for the host and target type.
724 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
727 # 1. You are not allowed to specify --host, --target, and nonopt at the
729 # 2. Host defaults to nonopt.
730 # 3. If nonopt is not specified, then host defaults to the current host,
731 # as determined by config.guess.
732 # 4. Target and build default to nonopt.
733 # 5. If nonopt is not specified, then target and build default to host.
735 # The aliases save the names the user supplied, while $host etc.
736 # will get canonicalized.
737 case $host---$target---$nonopt in
738 NONE---*---* | *---NONE---* | *---*---NONE) ;;
739 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
743 # Make sure we can run config.sub.
744 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
745 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
748 echo $ac_n "checking host system type""... $ac_c" 1>&6
749 echo "configure:750: checking host system type" >&5
752 case "$host_alias" in
756 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
757 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
759 *) host_alias=$nonopt ;;
763 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
764 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
765 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
766 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
767 echo "$ac_t""$host" 1>&6
769 echo $ac_n "checking target system type""... $ac_c" 1>&6
770 echo "configure:771: checking target system type" >&5
773 case "$target_alias" in
776 NONE) target_alias=$host_alias ;;
777 *) target_alias=$nonopt ;;
781 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
782 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
783 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
784 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
785 echo "$ac_t""$target" 1>&6
787 echo $ac_n "checking build system type""... $ac_c" 1>&6
788 echo "configure:789: checking build system type" >&5
791 case "$build_alias" in
794 NONE) build_alias=$host_alias ;;
795 *) build_alias=$nonopt ;;
799 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
800 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
801 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
802 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
803 echo "$ac_t""$build" 1>&6
805 test "$host_alias" != "$target_alias" &&
806 test "$program_prefix$program_suffix$program_transform_name" = \
808 program_prefix=${target_alias}-
811 CONFIGURE_LINE="$0 $*"
817 save_CPPFLAGS="${CPPFLAGS}"
818 save_CFLAGS="${CFLAGS}"
819 save_LDFLAGS="${LDFLAGS}"
821 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
822 echo "configure:823: checking whether ${MAKE-make} sets \${MAKE}" >&5
823 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
824 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
825 echo $ac_n "(cached) $ac_c" 1>&6
827 cat > conftestmake <<\EOF
829 @echo 'ac_maketemp="${MAKE}"'
831 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
832 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
833 if test -n "$ac_maketemp"; then
834 eval ac_cv_prog_make_${ac_make}_set=yes
836 eval ac_cv_prog_make_${ac_make}_set=no
840 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
841 echo "$ac_t""yes" 1>&6
844 echo "$ac_t""no" 1>&6
845 SET_MAKE="MAKE=${MAKE-make}"
848 # Extract the first word of "gcc", so it can be a program name with args.
849 set dummy gcc; ac_word=$2
850 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
851 echo "configure:852: checking for $ac_word" >&5
852 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
853 echo $ac_n "(cached) $ac_c" 1>&6
855 if test -n "$CC"; then
856 ac_cv_prog_CC="$CC" # Let the user override the test.
858 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
860 for ac_dir in $ac_dummy; do
861 test -z "$ac_dir" && ac_dir=.
862 if test -f $ac_dir/$ac_word; then
871 if test -n "$CC"; then
872 echo "$ac_t""$CC" 1>&6
874 echo "$ac_t""no" 1>&6
877 if test -z "$CC"; then
878 # Extract the first word of "cc", so it can be a program name with args.
879 set dummy cc; ac_word=$2
880 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
881 echo "configure:882: checking for $ac_word" >&5
882 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
883 echo $ac_n "(cached) $ac_c" 1>&6
885 if test -n "$CC"; then
886 ac_cv_prog_CC="$CC" # Let the user override the test.
888 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
891 for ac_dir in $ac_dummy; do
892 test -z "$ac_dir" && ac_dir=.
893 if test -f $ac_dir/$ac_word; then
894 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
903 if test $ac_prog_rejected = yes; then
904 # We found a bogon in the path, so make sure we never use it.
905 set dummy $ac_cv_prog_CC
907 if test $# -gt 0; then
908 # We chose a different compiler from the bogus one.
909 # However, it has the same basename, so the bogon will be chosen
910 # first if we set CC to just the basename; use the full file name.
912 set dummy "$ac_dir/$ac_word" "$@"
920 if test -n "$CC"; then
921 echo "$ac_t""$CC" 1>&6
923 echo "$ac_t""no" 1>&6
926 if test -z "$CC"; then
929 # Extract the first word of "cl", so it can be a program name with args.
930 set dummy cl; ac_word=$2
931 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
932 echo "configure:933: checking for $ac_word" >&5
933 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
934 echo $ac_n "(cached) $ac_c" 1>&6
936 if test -n "$CC"; then
937 ac_cv_prog_CC="$CC" # Let the user override the test.
939 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
941 for ac_dir in $ac_dummy; do
942 test -z "$ac_dir" && ac_dir=.
943 if test -f $ac_dir/$ac_word; then
952 if test -n "$CC"; then
953 echo "$ac_t""$CC" 1>&6
955 echo "$ac_t""no" 1>&6
960 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
963 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
964 echo "configure:965: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
967 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
968 ac_cpp='$CPP $CPPFLAGS'
969 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
970 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
971 cross_compiling=$ac_cv_prog_cc_cross
973 cat > conftest.$ac_ext << EOF
975 #line 976 "configure"
976 #include "confdefs.h"
980 if { (eval echo configure:981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
981 ac_cv_prog_cc_works=yes
982 # If we can't run a trivial program, we are probably using a cross compiler.
983 if (./conftest; exit) 2>/dev/null; then
984 ac_cv_prog_cc_cross=no
986 ac_cv_prog_cc_cross=yes
989 echo "configure: failed program was:" >&5
990 cat conftest.$ac_ext >&5
991 ac_cv_prog_cc_works=no
995 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
996 ac_cpp='$CPP $CPPFLAGS'
997 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
998 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
999 cross_compiling=$ac_cv_prog_cc_cross
1001 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1002 if test $ac_cv_prog_cc_works = no; then
1003 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1005 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1006 echo "configure:1007: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1007 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1008 cross_compiling=$ac_cv_prog_cc_cross
1010 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1011 echo "configure:1012: checking whether we are using GNU C" >&5
1012 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1013 echo $ac_n "(cached) $ac_c" 1>&6
1015 cat > conftest.c <<EOF
1020 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1021: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1027 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1029 if test $ac_cv_prog_gcc = yes; then
1035 ac_test_CFLAGS="${CFLAGS+set}"
1036 ac_save_CFLAGS="$CFLAGS"
1038 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1039 echo "configure:1040: checking whether ${CC-cc} accepts -g" >&5
1040 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1041 echo $ac_n "(cached) $ac_c" 1>&6
1043 echo 'void f(){}' > conftest.c
1044 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1053 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1054 if test "$ac_test_CFLAGS" = set; then
1055 CFLAGS="$ac_save_CFLAGS"
1056 elif test $ac_cv_prog_cc_g = yes; then
1057 if test "$GCC" = yes; then
1063 if test "$GCC" = yes; then
1070 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1071 echo "configure:1072: checking how to run the C preprocessor" >&5
1072 # On Suns, sometimes $CPP names a directory.
1073 if test -n "$CPP" && test -d "$CPP"; then
1076 if test -z "$CPP"; then
1077 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1078 echo $ac_n "(cached) $ac_c" 1>&6
1080 # This must be in double quotes, not single quotes, because CPP may get
1081 # substituted into the Makefile and "${CC-cc}" will confuse make.
1083 # On the NeXT, cc -E runs the code through the compiler's parser,
1084 # not just through cpp.
1085 cat > conftest.$ac_ext <<EOF
1086 #line 1087 "configure"
1087 #include "confdefs.h"
1091 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1092 { (eval echo configure:1093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1093 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1094 if test -z "$ac_err"; then
1098 echo "configure: failed program was:" >&5
1099 cat conftest.$ac_ext >&5
1101 CPP="${CC-cc} -E -traditional-cpp"
1102 cat > conftest.$ac_ext <<EOF
1103 #line 1104 "configure"
1104 #include "confdefs.h"
1108 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1109 { (eval echo configure:1110: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1110 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1111 if test -z "$ac_err"; then
1115 echo "configure: failed program was:" >&5
1116 cat conftest.$ac_ext >&5
1118 CPP="${CC-cc} -nologo -E"
1119 cat > conftest.$ac_ext <<EOF
1120 #line 1121 "configure"
1121 #include "confdefs.h"
1125 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1126 { (eval echo configure:1127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1127 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1128 if test -z "$ac_err"; then
1132 echo "configure: failed program was:" >&5
1133 cat conftest.$ac_ext >&5
1142 ac_cv_prog_CPP="$CPP"
1144 CPP="$ac_cv_prog_CPP"
1146 ac_cv_prog_CPP="$CPP"
1148 echo "$ac_t""$CPP" 1>&6
1151 if test $host != $build; then
1152 ac_tool_prefix=${host_alias}-
1157 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1158 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1159 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1160 echo "configure:1161: checking for $ac_word" >&5
1161 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1162 echo $ac_n "(cached) $ac_c" 1>&6
1164 if test -n "$RANLIB"; then
1165 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1167 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1169 for ac_dir in $ac_dummy; do
1170 test -z "$ac_dir" && ac_dir=.
1171 if test -f $ac_dir/$ac_word; then
1172 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1179 RANLIB="$ac_cv_prog_RANLIB"
1180 if test -n "$RANLIB"; then
1181 echo "$ac_t""$RANLIB" 1>&6
1183 echo "$ac_t""no" 1>&6
1187 if test -z "$ac_cv_prog_RANLIB"; then
1188 if test -n "$ac_tool_prefix"; then
1189 # Extract the first word of "ranlib", so it can be a program name with args.
1190 set dummy ranlib; ac_word=$2
1191 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1192 echo "configure:1193: checking for $ac_word" >&5
1193 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1194 echo $ac_n "(cached) $ac_c" 1>&6
1196 if test -n "$RANLIB"; then
1197 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1199 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1201 for ac_dir in $ac_dummy; do
1202 test -z "$ac_dir" && ac_dir=.
1203 if test -f $ac_dir/$ac_word; then
1204 ac_cv_prog_RANLIB="ranlib"
1209 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1212 RANLIB="$ac_cv_prog_RANLIB"
1213 if test -n "$RANLIB"; then
1214 echo "$ac_t""$RANLIB" 1>&6
1216 echo "$ac_t""no" 1>&6
1224 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1225 set dummy ${ac_tool_prefix}strip; ac_word=$2
1226 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1227 echo "configure:1228: checking for $ac_word" >&5
1228 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1229 echo $ac_n "(cached) $ac_c" 1>&6
1231 if test -n "$STRIP"; then
1232 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1234 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1236 for ac_dir in $ac_dummy; do
1237 test -z "$ac_dir" && ac_dir=.
1238 if test -f $ac_dir/$ac_word; then
1239 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1246 STRIP="$ac_cv_prog_STRIP"
1247 if test -n "$STRIP"; then
1248 echo "$ac_t""$STRIP" 1>&6
1250 echo "$ac_t""no" 1>&6
1254 if test -z "$ac_cv_prog_STRIP"; then
1255 if test -n "$ac_tool_prefix"; then
1256 # Extract the first word of "strip", so it can be a program name with args.
1257 set dummy strip; ac_word=$2
1258 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1259 echo "configure:1260: checking for $ac_word" >&5
1260 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1261 echo $ac_n "(cached) $ac_c" 1>&6
1263 if test -n "$STRIP"; then
1264 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1266 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1268 for ac_dir in $ac_dummy; do
1269 test -z "$ac_dir" && ac_dir=.
1270 if test -f $ac_dir/$ac_word; then
1271 ac_cv_prog_STRIP="strip"
1276 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1279 STRIP="$ac_cv_prog_STRIP"
1280 if test -n "$STRIP"; then
1281 echo "$ac_t""$STRIP" 1>&6
1283 echo "$ac_t""no" 1>&6
1292 # Extract the first word of "gmake", so it can be a program name with args.
1293 set dummy gmake; ac_word=$2
1294 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1295 echo "configure:1296: checking for $ac_word" >&5
1296 if eval "test \"`echo '$''{'ac_cv_path_GMAKE'+set}'`\" = set"; then
1297 echo $ac_n "(cached) $ac_c" 1>&6
1301 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
1304 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a dos path.
1307 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1309 for ac_dir in $ac_dummy; do
1310 test -z "$ac_dir" && ac_dir=.
1311 if test -f $ac_dir/$ac_word; then
1312 ac_cv_path_GMAKE="$ac_dir/$ac_word"
1317 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="no"
1321 GMAKE="$ac_cv_path_GMAKE"
1322 if test -n "$GMAKE"; then
1323 echo "$ac_t""$GMAKE" 1>&6
1325 echo "$ac_t""no" 1>&6
1328 if test "x${GMAKE}" = "xno"; then
1329 echo $ac_n "checking whether GNU make is installed""... $ac_c" 1>&6
1330 echo "configure:1331: checking whether GNU make is installed" >&5
1331 if eval "test \"`echo '$''{'ac_cv_gmake'+set}'`\" = set"; then
1332 echo $ac_n "(cached) $ac_c" 1>&6
1334 if make --version | grep -q -i gnu; then
1337 echo "This software needs you to install GNU make to compile properly."
1338 echo "You can get it from http://www.gnu.org/."
1343 echo "$ac_t""$ac_cv_gmake" 1>&6
1349 ALL_LINGUAS="de en_GB fr ja no ru nl pl se"
1351 cat >> confdefs.h <<EOF
1352 #define VLC_PACKAGE "${PACKAGE}"
1355 cat >> confdefs.h <<EOF
1356 #define VLC_VERSION "${VERSION}"
1359 # Extract the first word of "ranlib", so it can be a program name with args.
1360 set dummy ranlib; ac_word=$2
1361 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1362 echo "configure:1363: checking for $ac_word" >&5
1363 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1364 echo $ac_n "(cached) $ac_c" 1>&6
1366 if test -n "$RANLIB"; then
1367 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1369 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1371 for ac_dir in $ac_dummy; do
1372 test -z "$ac_dir" && ac_dir=.
1373 if test -f $ac_dir/$ac_word; then
1374 ac_cv_prog_RANLIB="ranlib"
1379 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1382 RANLIB="$ac_cv_prog_RANLIB"
1383 if test -n "$RANLIB"; then
1384 echo "$ac_t""$RANLIB" 1>&6
1386 echo "$ac_t""no" 1>&6
1390 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1391 echo "configure:1392: checking for strerror in -lcposix" >&5
1392 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1393 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1394 echo $ac_n "(cached) $ac_c" 1>&6
1396 ac_save_LIBS="$LIBS"
1397 LIBS="-lcposix $LIBS"
1398 cat > conftest.$ac_ext <<EOF
1399 #line 1400 "configure"
1400 #include "confdefs.h"
1401 /* Override any gcc2 internal prototype to avoid an error. */
1402 /* We use char because int might match the return type of a gcc2
1403 builtin and then its argument prototype would still apply. */
1410 if { (eval echo configure:1411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1412 eval "ac_cv_lib_$ac_lib_var=yes"
1414 echo "configure: failed program was:" >&5
1415 cat conftest.$ac_ext >&5
1417 eval "ac_cv_lib_$ac_lib_var=no"
1420 LIBS="$ac_save_LIBS"
1423 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1424 echo "$ac_t""yes" 1>&6
1425 LIBS="$LIBS -lcposix"
1427 echo "$ac_t""no" 1>&6
1432 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1433 echo "configure:1434: checking for ANSI C header files" >&5
1434 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1435 echo $ac_n "(cached) $ac_c" 1>&6
1437 cat > conftest.$ac_ext <<EOF
1438 #line 1439 "configure"
1439 #include "confdefs.h"
1445 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1446 { (eval echo configure:1447: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1447 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1448 if test -z "$ac_err"; then
1450 ac_cv_header_stdc=yes
1453 echo "configure: failed program was:" >&5
1454 cat conftest.$ac_ext >&5
1456 ac_cv_header_stdc=no
1460 if test $ac_cv_header_stdc = yes; then
1461 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1462 cat > conftest.$ac_ext <<EOF
1463 #line 1464 "configure"
1464 #include "confdefs.h"
1467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1468 egrep "memchr" >/dev/null 2>&1; then
1472 ac_cv_header_stdc=no
1478 if test $ac_cv_header_stdc = yes; then
1479 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1480 cat > conftest.$ac_ext <<EOF
1481 #line 1482 "configure"
1482 #include "confdefs.h"
1485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1486 egrep "free" >/dev/null 2>&1; then
1490 ac_cv_header_stdc=no
1496 if test $ac_cv_header_stdc = yes; then
1497 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1498 if test "$cross_compiling" = yes; then
1501 cat > conftest.$ac_ext <<EOF
1502 #line 1503 "configure"
1503 #include "confdefs.h"
1505 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1506 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1507 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1508 int main () { int i; for (i = 0; i < 256; i++)
1509 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1513 if { (eval echo configure:1514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1517 echo "configure: failed program was:" >&5
1518 cat conftest.$ac_ext >&5
1520 ac_cv_header_stdc=no
1528 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1529 if test $ac_cv_header_stdc = yes; then
1530 cat >> confdefs.h <<\EOF
1531 #define STDC_HEADERS 1
1536 echo $ac_n "checking for working const""... $ac_c" 1>&6
1537 echo "configure:1538: checking for working const" >&5
1538 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1539 echo $ac_n "(cached) $ac_c" 1>&6
1541 cat > conftest.$ac_ext <<EOF
1542 #line 1543 "configure"
1543 #include "confdefs.h"
1547 /* Ultrix mips cc rejects this. */
1548 typedef int charset[2]; const charset x;
1549 /* SunOS 4.1.1 cc rejects this. */
1550 char const *const *ccp;
1552 /* NEC SVR4.0.2 mips cc rejects this. */
1553 struct point {int x, y;};
1554 static struct point const zero = {0,0};
1555 /* AIX XL C 1.02.0.0 rejects this.
1556 It does not let you subtract one const X* pointer from another in an arm
1557 of an if-expression whose if-part is not a constant expression */
1558 const char *g = "string";
1559 ccp = &g + (g ? g-g : 0);
1560 /* HPUX 7.0 cc rejects these. */
1563 ccp = (char const *const *) p;
1564 { /* SCO 3.2v4 cc rejects this. */
1566 char const *s = 0 ? (char *) 0 : (char const *) 0;
1570 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1572 const int *foo = &x[0];
1575 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1576 typedef const int *iptr;
1580 { /* AIX XL C 1.02.0.0 rejects this saying
1581 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1582 struct s { int j; const int *ap[3]; };
1583 struct s *b; b->j = 5;
1585 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1591 if { (eval echo configure:1592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1595 echo "configure: failed program was:" >&5
1596 cat conftest.$ac_ext >&5
1603 echo "$ac_t""$ac_cv_c_const" 1>&6
1604 if test $ac_cv_c_const = no; then
1605 cat >> confdefs.h <<\EOF
1611 echo $ac_n "checking for inline""... $ac_c" 1>&6
1612 echo "configure:1613: checking for inline" >&5
1613 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1614 echo $ac_n "(cached) $ac_c" 1>&6
1617 for ac_kw in inline __inline__ __inline; do
1618 cat > conftest.$ac_ext <<EOF
1619 #line 1620 "configure"
1620 #include "confdefs.h"
1626 if { (eval echo configure:1627: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1628 ac_cv_c_inline=$ac_kw; break
1630 echo "configure: failed program was:" >&5
1631 cat conftest.$ac_ext >&5
1638 echo "$ac_t""$ac_cv_c_inline" 1>&6
1639 case "$ac_cv_c_inline" in
1641 no) cat >> confdefs.h <<\EOF
1645 *) cat >> confdefs.h <<EOF
1646 #define inline $ac_cv_c_inline
1651 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1652 echo "configure:1653: checking for off_t" >&5
1653 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1654 echo $ac_n "(cached) $ac_c" 1>&6
1656 cat > conftest.$ac_ext <<EOF
1657 #line 1658 "configure"
1658 #include "confdefs.h"
1659 #include <sys/types.h>
1665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1666 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1668 ac_cv_type_off_t=yes
1676 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1677 if test $ac_cv_type_off_t = no; then
1678 cat >> confdefs.h <<\EOF
1684 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1685 echo "configure:1686: checking for size_t" >&5
1686 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1687 echo $ac_n "(cached) $ac_c" 1>&6
1689 cat > conftest.$ac_ext <<EOF
1690 #line 1691 "configure"
1691 #include "confdefs.h"
1692 #include <sys/types.h>
1698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1699 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1701 ac_cv_type_size_t=yes
1704 ac_cv_type_size_t=no
1709 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1710 if test $ac_cv_type_size_t = no; then
1711 cat >> confdefs.h <<\EOF
1712 #define size_t unsigned
1717 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1718 # for constant arguments. Useless!
1719 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1720 echo "configure:1721: checking for working alloca.h" >&5
1721 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1722 echo $ac_n "(cached) $ac_c" 1>&6
1724 cat > conftest.$ac_ext <<EOF
1725 #line 1726 "configure"
1726 #include "confdefs.h"
1729 char *p = alloca(2 * sizeof(int));
1732 if { (eval echo configure:1733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1734 ac_cv_header_alloca_h=yes
1736 echo "configure: failed program was:" >&5
1737 cat conftest.$ac_ext >&5
1739 ac_cv_header_alloca_h=no
1744 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1745 if test $ac_cv_header_alloca_h = yes; then
1746 cat >> confdefs.h <<\EOF
1747 #define HAVE_ALLOCA_H 1
1752 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1753 echo "configure:1754: checking for alloca" >&5
1754 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1755 echo $ac_n "(cached) $ac_c" 1>&6
1757 cat > conftest.$ac_ext <<EOF
1758 #line 1759 "configure"
1759 #include "confdefs.h"
1762 # define alloca __builtin_alloca
1765 # include <malloc.h>
1766 # define alloca _alloca
1769 # include <alloca.h>
1774 # ifndef alloca /* predefined by HP cc +Olibcalls */
1783 char *p = (char *) alloca(1);
1786 if { (eval echo configure:1787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1788 ac_cv_func_alloca_works=yes
1790 echo "configure: failed program was:" >&5
1791 cat conftest.$ac_ext >&5
1793 ac_cv_func_alloca_works=no
1798 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1799 if test $ac_cv_func_alloca_works = yes; then
1800 cat >> confdefs.h <<\EOF
1801 #define HAVE_ALLOCA 1
1806 if test $ac_cv_func_alloca_works = no; then
1807 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1808 # that cause trouble. Some versions do not even contain alloca or
1809 # contain a buggy version. If you still want to use their alloca,
1810 # use ar to extract alloca.o from them instead of compiling alloca.c.
1811 ALLOCA=alloca.${ac_objext}
1812 cat >> confdefs.h <<\EOF
1817 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1818 echo "configure:1819: checking whether alloca needs Cray hooks" >&5
1819 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1820 echo $ac_n "(cached) $ac_c" 1>&6
1822 cat > conftest.$ac_ext <<EOF
1823 #line 1824 "configure"
1824 #include "confdefs.h"
1825 #if defined(CRAY) && ! defined(CRAY2)
1832 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1833 egrep "webecray" >/dev/null 2>&1; then
1844 echo "$ac_t""$ac_cv_os_cray" 1>&6
1845 if test $ac_cv_os_cray = yes; then
1846 for ac_func in _getb67 GETB67 getb67; do
1847 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1848 echo "configure:1849: checking for $ac_func" >&5
1849 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1850 echo $ac_n "(cached) $ac_c" 1>&6
1852 cat > conftest.$ac_ext <<EOF
1853 #line 1854 "configure"
1854 #include "confdefs.h"
1855 /* System header to define __stub macros and hopefully few prototypes,
1856 which can conflict with char $ac_func(); below. */
1858 /* Override any gcc2 internal prototype to avoid an error. */
1859 /* We use char because int might match the return type of a gcc2
1860 builtin and then its argument prototype would still apply. */
1865 /* The GNU C library defines this for functions which it implements
1866 to always fail with ENOSYS. Some functions are actually named
1867 something starting with __ and the normal name is an alias. */
1868 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1876 if { (eval echo configure:1877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1878 eval "ac_cv_func_$ac_func=yes"
1880 echo "configure: failed program was:" >&5
1881 cat conftest.$ac_ext >&5
1883 eval "ac_cv_func_$ac_func=no"
1888 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1889 echo "$ac_t""yes" 1>&6
1890 cat >> confdefs.h <<EOF
1891 #define CRAY_STACKSEG_END $ac_func
1896 echo "$ac_t""no" 1>&6
1902 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1903 echo "configure:1904: checking stack direction for C alloca" >&5
1904 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1905 echo $ac_n "(cached) $ac_c" 1>&6
1907 if test "$cross_compiling" = yes; then
1908 ac_cv_c_stack_direction=0
1910 cat > conftest.$ac_ext <<EOF
1911 #line 1912 "configure"
1912 #include "confdefs.h"
1913 find_stack_direction ()
1915 static char *addr = 0;
1920 return find_stack_direction ();
1923 return (&dummy > addr) ? 1 : -1;
1927 exit (find_stack_direction() < 0);
1930 if { (eval echo configure:1931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1932 ac_cv_c_stack_direction=1
1934 echo "configure: failed program was:" >&5
1935 cat conftest.$ac_ext >&5
1937 ac_cv_c_stack_direction=-1
1944 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1945 cat >> confdefs.h <<EOF
1946 #define STACK_DIRECTION $ac_cv_c_stack_direction
1951 for ac_hdr in unistd.h
1953 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1954 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1955 echo "configure:1956: checking for $ac_hdr" >&5
1956 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1957 echo $ac_n "(cached) $ac_c" 1>&6
1959 cat > conftest.$ac_ext <<EOF
1960 #line 1961 "configure"
1961 #include "confdefs.h"
1964 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1965 { (eval echo configure:1966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1966 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1967 if test -z "$ac_err"; then
1969 eval "ac_cv_header_$ac_safe=yes"
1972 echo "configure: failed program was:" >&5
1973 cat conftest.$ac_ext >&5
1975 eval "ac_cv_header_$ac_safe=no"
1979 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1980 echo "$ac_t""yes" 1>&6
1981 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1982 cat >> confdefs.h <<EOF
1983 #define $ac_tr_hdr 1
1987 echo "$ac_t""no" 1>&6
1991 for ac_func in getpagesize
1993 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1994 echo "configure:1995: checking for $ac_func" >&5
1995 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1996 echo $ac_n "(cached) $ac_c" 1>&6
1998 cat > conftest.$ac_ext <<EOF
1999 #line 2000 "configure"
2000 #include "confdefs.h"
2001 /* System header to define __stub macros and hopefully few prototypes,
2002 which can conflict with char $ac_func(); below. */
2004 /* Override any gcc2 internal prototype to avoid an error. */
2005 /* We use char because int might match the return type of a gcc2
2006 builtin and then its argument prototype would still apply. */
2011 /* The GNU C library defines this for functions which it implements
2012 to always fail with ENOSYS. Some functions are actually named
2013 something starting with __ and the normal name is an alias. */
2014 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2022 if { (eval echo configure:2023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2024 eval "ac_cv_func_$ac_func=yes"
2026 echo "configure: failed program was:" >&5
2027 cat conftest.$ac_ext >&5
2029 eval "ac_cv_func_$ac_func=no"
2034 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2035 echo "$ac_t""yes" 1>&6
2036 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2037 cat >> confdefs.h <<EOF
2038 #define $ac_tr_func 1
2042 echo "$ac_t""no" 1>&6
2046 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2047 echo "configure:2048: checking for working mmap" >&5
2048 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2049 echo $ac_n "(cached) $ac_c" 1>&6
2051 if test "$cross_compiling" = yes; then
2052 ac_cv_func_mmap_fixed_mapped=no
2054 cat > conftest.$ac_ext <<EOF
2055 #line 2056 "configure"
2056 #include "confdefs.h"
2058 /* Thanks to Mike Haertel and Jim Avera for this test.
2059 Here is a matrix of mmap possibilities:
2060 mmap private not fixed
2061 mmap private fixed at somewhere currently unmapped
2062 mmap private fixed at somewhere already mapped
2063 mmap shared not fixed
2064 mmap shared fixed at somewhere currently unmapped
2065 mmap shared fixed at somewhere already mapped
2066 For private mappings, we should verify that changes cannot be read()
2067 back from the file, nor mmap's back from the file at a different
2068 address. (There have been systems where private was not correctly
2069 implemented like the infamous i386 svr4.0, and systems where the
2070 VM page cache was not coherent with the filesystem buffer cache
2071 like early versions of FreeBSD and possibly contemporary NetBSD.)
2072 For shared mappings, we should conversely verify that changes get
2073 propogated back to all the places they're supposed to be.
2075 Grep wants private fixed already mapped.
2076 The main things grep needs to know about mmap are:
2077 * does it exist and is it safe to write into the mmap'd area
2078 * how to use it (BSD variants) */
2079 #include <sys/types.h>
2081 #include <sys/mman.h>
2083 /* This mess was copied from the GNU getpagesize.h. */
2084 #ifndef HAVE_GETPAGESIZE
2085 # ifdef HAVE_UNISTD_H
2086 # include <unistd.h>
2089 /* Assume that all systems that can run configure have sys/param.h. */
2090 # ifndef HAVE_SYS_PARAM_H
2091 # define HAVE_SYS_PARAM_H 1
2094 # ifdef _SC_PAGESIZE
2095 # define getpagesize() sysconf(_SC_PAGESIZE)
2096 # else /* no _SC_PAGESIZE */
2097 # ifdef HAVE_SYS_PARAM_H
2098 # include <sys/param.h>
2099 # ifdef EXEC_PAGESIZE
2100 # define getpagesize() EXEC_PAGESIZE
2101 # else /* no EXEC_PAGESIZE */
2103 # define getpagesize() NBPG * CLSIZE
2106 # endif /* no CLSIZE */
2107 # else /* no NBPG */
2109 # define getpagesize() NBPC
2110 # else /* no NBPC */
2112 # define getpagesize() PAGESIZE
2113 # endif /* PAGESIZE */
2114 # endif /* no NBPC */
2115 # endif /* no NBPG */
2116 # endif /* no EXEC_PAGESIZE */
2117 # else /* no HAVE_SYS_PARAM_H */
2118 # define getpagesize() 8192 /* punt totally */
2119 # endif /* no HAVE_SYS_PARAM_H */
2120 # endif /* no _SC_PAGESIZE */
2122 #endif /* no HAVE_GETPAGESIZE */
2125 extern "C" { void *malloc(unsigned); }
2133 char *data, *data2, *data3;
2137 pagesize = getpagesize();
2140 * First, make a file with some known garbage in it.
2142 data = malloc(pagesize);
2145 for (i = 0; i < pagesize; ++i)
2146 *(data + i) = rand();
2148 fd = creat("conftestmmap", 0600);
2151 if (write(fd, data, pagesize) != pagesize)
2156 * Next, try to mmap the file at a fixed address which
2157 * already has something else allocated at it. If we can,
2158 * also make sure that we see the same garbage.
2160 fd = open("conftestmmap", O_RDWR);
2163 data2 = malloc(2 * pagesize);
2166 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2167 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2168 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2170 for (i = 0; i < pagesize; ++i)
2171 if (*(data + i) != *(data2 + i))
2175 * Finally, make sure that changes to the mapped area
2176 * do not percolate back to the file as seen by read().
2177 * (This is a bug on some variants of i386 svr4.0.)
2179 for (i = 0; i < pagesize; ++i)
2180 *(data2 + i) = *(data2 + i) + 1;
2181 data3 = malloc(pagesize);
2184 if (read(fd, data3, pagesize) != pagesize)
2186 for (i = 0; i < pagesize; ++i)
2187 if (*(data + i) != *(data3 + i))
2190 unlink("conftestmmap");
2195 if { (eval echo configure:2196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2197 ac_cv_func_mmap_fixed_mapped=yes
2199 echo "configure: failed program was:" >&5
2200 cat conftest.$ac_ext >&5
2202 ac_cv_func_mmap_fixed_mapped=no
2209 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2210 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2211 cat >> confdefs.h <<\EOF
2218 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
2219 echo "configure:2220: checking whether we are using the GNU C Library 2.1 or newer" >&5
2220 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
2221 echo $ac_n "(cached) $ac_c" 1>&6
2223 cat > conftest.$ac_ext <<EOF
2224 #line 2225 "configure"
2225 #include "confdefs.h"
2227 #include <features.h>
2228 #ifdef __GNU_LIBRARY__
2229 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2236 egrep "Lucky GNU user" >/dev/null 2>&1; then
2238 ac_cv_gnu_library_2_1=yes
2241 ac_cv_gnu_library_2_1=no
2249 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
2251 GLIBC21="$ac_cv_gnu_library_2_1"
2255 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
2256 stdlib.h string.h unistd.h sys/param.h
2258 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2259 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2260 echo "configure:2261: checking for $ac_hdr" >&5
2261 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2262 echo $ac_n "(cached) $ac_c" 1>&6
2264 cat > conftest.$ac_ext <<EOF
2265 #line 2266 "configure"
2266 #include "confdefs.h"
2269 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2270 { (eval echo configure:2271: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2271 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2272 if test -z "$ac_err"; then
2274 eval "ac_cv_header_$ac_safe=yes"
2277 echo "configure: failed program was:" >&5
2278 cat conftest.$ac_ext >&5
2280 eval "ac_cv_header_$ac_safe=no"
2284 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2285 echo "$ac_t""yes" 1>&6
2286 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2287 cat >> confdefs.h <<EOF
2288 #define $ac_tr_hdr 1
2292 echo "$ac_t""no" 1>&6
2296 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
2297 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
2298 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
2300 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2301 echo "configure:2302: checking for $ac_func" >&5
2302 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2303 echo $ac_n "(cached) $ac_c" 1>&6
2305 cat > conftest.$ac_ext <<EOF
2306 #line 2307 "configure"
2307 #include "confdefs.h"
2308 /* System header to define __stub macros and hopefully few prototypes,
2309 which can conflict with char $ac_func(); below. */
2311 /* Override any gcc2 internal prototype to avoid an error. */
2312 /* We use char because int might match the return type of a gcc2
2313 builtin and then its argument prototype would still apply. */
2318 /* The GNU C library defines this for functions which it implements
2319 to always fail with ENOSYS. Some functions are actually named
2320 something starting with __ and the normal name is an alias. */
2321 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2329 if { (eval echo configure:2330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2331 eval "ac_cv_func_$ac_func=yes"
2333 echo "configure: failed program was:" >&5
2334 cat conftest.$ac_ext >&5
2336 eval "ac_cv_func_$ac_func=no"
2341 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2342 echo "$ac_t""yes" 1>&6
2343 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2344 cat >> confdefs.h <<EOF
2345 #define $ac_tr_func 1
2349 echo "$ac_t""no" 1>&6
2356 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
2357 if test "${with_libiconv_prefix+set}" = set; then
2358 withval="$with_libiconv_prefix"
2360 for dir in `echo "$withval" | tr : ' '`; do
2361 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
2362 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
2368 echo $ac_n "checking for iconv""... $ac_c" 1>&6
2369 echo "configure:2370: checking for iconv" >&5
2370 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
2371 echo $ac_n "(cached) $ac_c" 1>&6
2374 am_cv_func_iconv="no, consider installing GNU libiconv"
2376 cat > conftest.$ac_ext <<EOF
2377 #line 2378 "configure"
2378 #include "confdefs.h"
2382 iconv_t cd = iconv_open("","");
2383 iconv(cd,NULL,NULL,NULL,NULL);
2387 if { (eval echo configure:2388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2389 am_cv_func_iconv=yes
2391 echo "configure: failed program was:" >&5
2392 cat conftest.$ac_ext >&5
2395 if test "$am_cv_func_iconv" != yes; then
2396 am_save_LIBS="$LIBS"
2397 LIBS="$LIBS -liconv"
2398 cat > conftest.$ac_ext <<EOF
2399 #line 2400 "configure"
2400 #include "confdefs.h"
2404 iconv_t cd = iconv_open("","");
2405 iconv(cd,NULL,NULL,NULL,NULL);
2409 if { (eval echo configure:2410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2412 am_cv_func_iconv=yes
2414 echo "configure: failed program was:" >&5
2415 cat conftest.$ac_ext >&5
2418 LIBS="$am_save_LIBS"
2423 echo "$ac_t""$am_cv_func_iconv" 1>&6
2424 if test "$am_cv_func_iconv" = yes; then
2425 cat >> confdefs.h <<\EOF
2426 #define HAVE_ICONV 1
2429 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
2430 echo "configure:2431: checking for iconv declaration" >&5
2431 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
2432 echo $ac_n "(cached) $ac_c" 1>&6
2435 cat > conftest.$ac_ext <<EOF
2436 #line 2437 "configure"
2437 #include "confdefs.h"
2445 #if defined(__STDC__) || defined(__cplusplus)
2446 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
2455 if { (eval echo configure:2456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2457 am_cv_proto_iconv_arg1=""
2459 echo "configure: failed program was:" >&5
2460 cat conftest.$ac_ext >&5
2462 am_cv_proto_iconv_arg1="const"
2465 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);"
2468 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
2469 echo "$ac_t""${ac_t:-
2470 }$am_cv_proto_iconv" 1>&6
2471 cat >> confdefs.h <<EOF
2472 #define ICONV_CONST $am_cv_proto_iconv_arg1
2477 if test "$am_cv_lib_iconv" = yes; then
2483 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
2484 echo "configure:2485: checking for nl_langinfo and CODESET" >&5
2485 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
2486 echo $ac_n "(cached) $ac_c" 1>&6
2488 cat > conftest.$ac_ext <<EOF
2489 #line 2490 "configure"
2490 #include "confdefs.h"
2491 #include <langinfo.h>
2493 char* cs = nl_langinfo(CODESET);
2496 if { (eval echo configure:2497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2498 am_cv_langinfo_codeset=yes
2500 echo "configure: failed program was:" >&5
2501 cat conftest.$ac_ext >&5
2503 am_cv_langinfo_codeset=no
2509 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
2510 if test $am_cv_langinfo_codeset = yes; then
2511 cat >> confdefs.h <<\EOF
2512 #define HAVE_LANGINFO_CODESET 1
2517 if test $ac_cv_header_locale_h = yes; then
2518 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2519 echo "configure:2520: checking for LC_MESSAGES" >&5
2520 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2521 echo $ac_n "(cached) $ac_c" 1>&6
2523 cat > conftest.$ac_ext <<EOF
2524 #line 2525 "configure"
2525 #include "confdefs.h"
2531 if { (eval echo configure:2532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2533 am_cv_val_LC_MESSAGES=yes
2535 echo "configure: failed program was:" >&5
2536 cat conftest.$ac_ext >&5
2538 am_cv_val_LC_MESSAGES=no
2543 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2544 if test $am_cv_val_LC_MESSAGES = yes; then
2545 cat >> confdefs.h <<\EOF
2546 #define HAVE_LC_MESSAGES 1
2551 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2552 echo "configure:2553: checking whether NLS is requested" >&5
2553 # Check whether --enable-nls or --disable-nls was given.
2554 if test "${enable_nls+set}" = set; then
2555 enableval="$enable_nls"
2561 echo "$ac_t""$USE_NLS" 1>&6
2564 BUILD_INCLUDED_LIBINTL=no
2565 USE_INCLUDED_LIBINTL=no
2568 if test "$USE_NLS" = "yes"; then
2569 cat >> confdefs.h <<\EOF
2570 #define ENABLE_NLS 1
2573 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2574 echo "configure:2575: checking whether included gettext is requested" >&5
2575 # Check whether --with-included-gettext or --without-included-gettext was given.
2576 if test "${with_included_gettext+set}" = set; then
2577 withval="$with_included_gettext"
2578 nls_cv_force_use_gnu_gettext=$withval
2580 nls_cv_force_use_gnu_gettext=no
2583 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2585 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2586 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2592 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2593 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2594 echo "configure:2595: checking for libintl.h" >&5
2595 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2596 echo $ac_n "(cached) $ac_c" 1>&6
2598 cat > conftest.$ac_ext <<EOF
2599 #line 2600 "configure"
2600 #include "confdefs.h"
2601 #include <libintl.h>
2603 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2604 { (eval echo configure:2605: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2605 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2606 if test -z "$ac_err"; then
2608 eval "ac_cv_header_$ac_safe=yes"
2611 echo "configure: failed program was:" >&5
2612 cat conftest.$ac_ext >&5
2614 eval "ac_cv_header_$ac_safe=no"
2618 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2619 echo "$ac_t""yes" 1>&6
2620 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
2621 echo "configure:2622: checking for GNU gettext in libc" >&5
2622 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
2623 echo $ac_n "(cached) $ac_c" 1>&6
2625 cat > conftest.$ac_ext <<EOF
2626 #line 2627 "configure"
2627 #include "confdefs.h"
2628 #include <libintl.h>
2629 extern int _nl_msg_cat_cntr;
2631 bindtextdomain ("", "");
2632 return (int) gettext ("") + _nl_msg_cat_cntr
2635 if { (eval echo configure:2636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2637 gt_cv_func_gnugettext1_libc=yes
2639 echo "configure: failed program was:" >&5
2640 cat conftest.$ac_ext >&5
2642 gt_cv_func_gnugettext1_libc=no
2647 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
2649 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
2650 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
2651 echo "configure:2652: checking for GNU gettext in libintl" >&5
2652 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
2653 echo $ac_n "(cached) $ac_c" 1>&6
2655 gt_save_LIBS="$LIBS"
2656 LIBS="$LIBS -lintl $LIBICONV"
2657 cat > conftest.$ac_ext <<EOF
2658 #line 2659 "configure"
2659 #include "confdefs.h"
2660 #include <libintl.h>
2661 extern int _nl_msg_cat_cntr;
2663 bindtextdomain ("", "");
2664 return (int) gettext ("") + _nl_msg_cat_cntr
2667 if { (eval echo configure:2668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2669 gt_cv_func_gnugettext1_libintl=yes
2671 echo "configure: failed program was:" >&5
2672 cat conftest.$ac_ext >&5
2674 gt_cv_func_gnugettext1_libintl=no
2677 LIBS="$gt_save_LIBS"
2680 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
2683 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
2684 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
2685 && test "$PACKAGE" != gettext; }; then
2686 cat >> confdefs.h <<\EOF
2687 #define HAVE_GETTEXT 1
2691 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
2692 INTLLIBS="-lintl $LIBICONV"
2695 gt_save_LIBS="$LIBS"
2696 LIBS="$LIBS $INTLLIBS"
2697 for ac_func in dcgettext
2699 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2700 echo "configure:2701: checking for $ac_func" >&5
2701 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2702 echo $ac_n "(cached) $ac_c" 1>&6
2704 cat > conftest.$ac_ext <<EOF
2705 #line 2706 "configure"
2706 #include "confdefs.h"
2707 /* System header to define __stub macros and hopefully few prototypes,
2708 which can conflict with char $ac_func(); below. */
2710 /* Override any gcc2 internal prototype to avoid an error. */
2711 /* We use char because int might match the return type of a gcc2
2712 builtin and then its argument prototype would still apply. */
2717 /* The GNU C library defines this for functions which it implements
2718 to always fail with ENOSYS. Some functions are actually named
2719 something starting with __ and the normal name is an alias. */
2720 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2728 if { (eval echo configure:2729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2730 eval "ac_cv_func_$ac_func=yes"
2732 echo "configure: failed program was:" >&5
2733 cat conftest.$ac_ext >&5
2735 eval "ac_cv_func_$ac_func=no"
2740 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2741 echo "$ac_t""yes" 1>&6
2742 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2743 cat >> confdefs.h <<EOF
2744 #define $ac_tr_func 1
2748 echo "$ac_t""no" 1>&6
2752 LIBS="$gt_save_LIBS"
2754 # Extract the first word of "msgfmt", so it can be a program name with args.
2755 set dummy msgfmt; ac_word=$2
2756 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2757 echo "configure:2758: checking for $ac_word" >&5
2758 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2759 echo $ac_n "(cached) $ac_c" 1>&6
2763 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2766 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2767 for ac_dir in $PATH; do
2768 test -z "$ac_dir" && ac_dir=.
2769 if test -f $ac_dir/$ac_word; then
2770 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2771 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2777 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2781 MSGFMT="$ac_cv_path_MSGFMT"
2782 if test "$MSGFMT" != ":"; then
2783 echo "$ac_t""$MSGFMT" 1>&6
2785 echo "$ac_t""no" 1>&6
2788 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2789 set dummy gmsgfmt; ac_word=$2
2790 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2791 echo "configure:2792: checking for $ac_word" >&5
2792 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2793 echo $ac_n "(cached) $ac_c" 1>&6
2797 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2800 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2803 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2805 for ac_dir in $ac_dummy; do
2806 test -z "$ac_dir" && ac_dir=.
2807 if test -f $ac_dir/$ac_word; then
2808 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2813 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2817 GMSGFMT="$ac_cv_path_GMSGFMT"
2818 if test -n "$GMSGFMT"; then
2819 echo "$ac_t""$GMSGFMT" 1>&6
2821 echo "$ac_t""no" 1>&6
2825 # Extract the first word of "xgettext", so it can be a program name with args.
2826 set dummy xgettext; ac_word=$2
2827 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2828 echo "configure:2829: checking for $ac_word" >&5
2829 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2830 echo $ac_n "(cached) $ac_c" 1>&6
2834 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2837 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2838 for ac_dir in $PATH; do
2839 test -z "$ac_dir" && ac_dir=.
2840 if test -f $ac_dir/$ac_word; then
2841 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2842 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2848 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2852 XGETTEXT="$ac_cv_path_XGETTEXT"
2853 if test "$XGETTEXT" != ":"; then
2854 echo "$ac_t""$XGETTEXT" 1>&6
2856 echo "$ac_t""no" 1>&6
2864 echo "$ac_t""no" 1>&6
2868 if test "$CATOBJEXT" = "NONE"; then
2869 nls_cv_use_gnu_gettext=yes
2873 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2874 INTLOBJS="\$(GETTOBJS)"
2875 # Extract the first word of "msgfmt", so it can be a program name with args.
2876 set dummy msgfmt; ac_word=$2
2877 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2878 echo "configure:2879: checking for $ac_word" >&5
2879 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2880 echo $ac_n "(cached) $ac_c" 1>&6
2884 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2887 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2888 for ac_dir in $PATH; do
2889 test -z "$ac_dir" && ac_dir=.
2890 if test -f $ac_dir/$ac_word; then
2891 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2892 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2898 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2902 MSGFMT="$ac_cv_path_MSGFMT"
2903 if test "$MSGFMT" != ":"; then
2904 echo "$ac_t""$MSGFMT" 1>&6
2906 echo "$ac_t""no" 1>&6
2909 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2910 set dummy gmsgfmt; ac_word=$2
2911 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2912 echo "configure:2913: checking for $ac_word" >&5
2913 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2914 echo $ac_n "(cached) $ac_c" 1>&6
2918 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2921 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2924 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2926 for ac_dir in $ac_dummy; do
2927 test -z "$ac_dir" && ac_dir=.
2928 if test -f $ac_dir/$ac_word; then
2929 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2934 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2938 GMSGFMT="$ac_cv_path_GMSGFMT"
2939 if test -n "$GMSGFMT"; then
2940 echo "$ac_t""$GMSGFMT" 1>&6
2942 echo "$ac_t""no" 1>&6
2945 # Extract the first word of "xgettext", so it can be a program name with args.
2946 set dummy xgettext; ac_word=$2
2947 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2948 echo "configure:2949: checking for $ac_word" >&5
2949 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2950 echo $ac_n "(cached) $ac_c" 1>&6
2954 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2957 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2958 for ac_dir in $PATH; do
2959 test -z "$ac_dir" && ac_dir=.
2960 if test -f $ac_dir/$ac_word; then
2961 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2962 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2968 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2972 XGETTEXT="$ac_cv_path_XGETTEXT"
2973 if test "$XGETTEXT" != ":"; then
2974 echo "$ac_t""$XGETTEXT" 1>&6
2976 echo "$ac_t""no" 1>&6
2980 BUILD_INCLUDED_LIBINTL=yes
2981 USE_INCLUDED_LIBINTL=yes
2983 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
2984 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
2987 if test "$GMSGFMT" != ":"; then
2988 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
2991 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
2996 if test "$XGETTEXT" != ":"; then
2997 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
3000 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
3010 if test "$PACKAGE" = gettext; then
3011 BUILD_INCLUDED_LIBINTL=yes
3014 for ac_prog in bison
3016 # Extract the first word of "$ac_prog", so it can be a program name with args.
3017 set dummy $ac_prog; ac_word=$2
3018 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3019 echo "configure:3020: checking for $ac_word" >&5
3020 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
3021 echo $ac_n "(cached) $ac_c" 1>&6
3023 if test -n "$INTLBISON"; then
3024 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
3026 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3028 for ac_dir in $ac_dummy; do
3029 test -z "$ac_dir" && ac_dir=.
3030 if test -f $ac_dir/$ac_word; then
3031 ac_cv_prog_INTLBISON="$ac_prog"
3038 INTLBISON="$ac_cv_prog_INTLBISON"
3039 if test -n "$INTLBISON"; then
3040 echo "$ac_t""$INTLBISON" 1>&6
3042 echo "$ac_t""no" 1>&6
3045 test -n "$INTLBISON" && break
3048 if test -z "$INTLBISON"; then
3051 echo $ac_n "checking version of bison""... $ac_c" 1>&6
3052 echo "configure:3053: checking version of bison" >&5
3053 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
3054 case $ac_prog_version in
3055 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3056 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
3057 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3058 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3060 echo "$ac_t""$ac_prog_version" 1>&6
3062 if test $ac_verc_fail = yes; then
3066 for lang in $ALL_LINGUAS; do
3067 GMOFILES="$GMOFILES $lang.gmo"
3068 POFILES="$POFILES $lang.po"
3082 nls_cv_header_libgt=
3094 if test "x$CATOBJEXT" != "x"; then
3095 if test "x$ALL_LINGUAS" = "x"; then
3098 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3099 echo "configure:3100: checking for catalogs to be installed" >&5
3101 for presentlang in $ALL_LINGUAS; do
3103 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
3104 # Use the presentlang catalog if desiredlang is
3105 # a. equal to presentlang, or
3106 # b. a variant of presentlang (because in this case,
3107 # presentlang can be used as a fallback for messages
3108 # which are not translated in the desiredlang catalog).
3109 case "$desiredlang" in
3110 "$presentlang"*) useit=yes;;
3113 if test $useit = yes; then
3114 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
3117 LINGUAS=$NEW_LINGUAS
3118 echo "$ac_t""$LINGUAS" 1>&6
3121 if test -n "$LINGUAS"; then
3122 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3127 if test -n "$ac_aux_dir"; then
3128 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3130 if test -z "$MKINSTALLDIRS"; then
3131 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3135 INTL_LIBTOOL_SUFFIX_PREFIX=
3139 # Find a good install program. We prefer a C program (faster),
3140 # so one script is as good as another. But avoid the broken or
3141 # incompatible versions:
3142 # SysV /etc/install, /usr/sbin/install
3143 # SunOS /usr/etc/install
3144 # IRIX /sbin/install
3146 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3147 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3148 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3149 # ./install, which can be erroneously created by make from ./install.sh.
3150 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3151 echo "configure:3152: checking for a BSD compatible install" >&5
3152 if test -z "$INSTALL"; then
3153 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3154 echo $ac_n "(cached) $ac_c" 1>&6
3156 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3157 for ac_dir in $PATH; do
3158 # Account for people who put trailing slashes in PATH elements.
3160 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3162 # OSF1 and SCO ODT 3.0 have their own names for install.
3163 # Don't use installbsd from OSF since it installs stuff as root
3165 for ac_prog in ginstall scoinst install; do
3166 if test -f $ac_dir/$ac_prog; then
3167 if test $ac_prog = install &&
3168 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3169 # AIX install. It has an incompatible calling convention.
3172 ac_cv_path_install="$ac_dir/$ac_prog -c"
3183 if test "${ac_cv_path_install+set}" = set; then
3184 INSTALL="$ac_cv_path_install"
3186 # As a last resort, use the slow shell script. We don't cache a
3187 # path for INSTALL within a source directory, because that will
3188 # break other packages using the cache if that directory is
3189 # removed, or if the path is relative.
3190 INSTALL="$ac_install_sh"
3193 echo "$ac_t""$INSTALL" 1>&6
3195 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3196 # It thinks the first close brace ends the variable substitution.
3197 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3199 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3201 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3204 echo $ac_n "checking for working const""... $ac_c" 1>&6
3205 echo "configure:3206: checking for working const" >&5
3206 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3207 echo $ac_n "(cached) $ac_c" 1>&6
3209 cat > conftest.$ac_ext <<EOF
3210 #line 3211 "configure"
3211 #include "confdefs.h"
3215 /* Ultrix mips cc rejects this. */
3216 typedef int charset[2]; const charset x;
3217 /* SunOS 4.1.1 cc rejects this. */
3218 char const *const *ccp;
3220 /* NEC SVR4.0.2 mips cc rejects this. */
3221 struct point {int x, y;};
3222 static struct point const zero = {0,0};
3223 /* AIX XL C 1.02.0.0 rejects this.
3224 It does not let you subtract one const X* pointer from another in an arm
3225 of an if-expression whose if-part is not a constant expression */
3226 const char *g = "string";
3227 ccp = &g + (g ? g-g : 0);
3228 /* HPUX 7.0 cc rejects these. */
3231 ccp = (char const *const *) p;
3232 { /* SCO 3.2v4 cc rejects this. */
3234 char const *s = 0 ? (char *) 0 : (char const *) 0;
3238 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3240 const int *foo = &x[0];
3243 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3244 typedef const int *iptr;
3248 { /* AIX XL C 1.02.0.0 rejects this saying
3249 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3250 struct s { int j; const int *ap[3]; };
3251 struct s *b; b->j = 5;
3253 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3259 if { (eval echo configure:3260: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3263 echo "configure: failed program was:" >&5
3264 cat conftest.$ac_ext >&5
3271 echo "$ac_t""$ac_cv_c_const" 1>&6
3272 if test $ac_cv_c_const = no; then
3273 cat >> confdefs.h <<\EOF
3279 echo $ac_n "checking for inline""... $ac_c" 1>&6
3280 echo "configure:3281: checking for inline" >&5
3281 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3282 echo $ac_n "(cached) $ac_c" 1>&6
3285 for ac_kw in inline __inline__ __inline; do
3286 cat > conftest.$ac_ext <<EOF
3287 #line 3288 "configure"
3288 #include "confdefs.h"
3294 if { (eval echo configure:3295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3296 ac_cv_c_inline=$ac_kw; break
3298 echo "configure: failed program was:" >&5
3299 cat conftest.$ac_ext >&5
3306 echo "$ac_t""$ac_cv_c_inline" 1>&6
3307 case "$ac_cv_c_inline" in
3309 no) cat >> confdefs.h <<\EOF
3313 *) cat >> confdefs.h <<EOF
3314 #define inline $ac_cv_c_inline
3320 vlc_LDFLAGS="${LDFLAGS}"
3322 case "x${target_os}" in
3331 save_CFLAGS="${save_CFLAGS} -pthread"; CFLAGS="${save_CFLAGS}"
3332 dvd_LDFLAGS="${dvd_LDFLAGS} -ldvd"
3333 vcd_LDFLAGS="${vcd_LDFLAGS} -ldvd"
3337 save_CFLAGS="${save_CFLAGS} -pthread"; CFLAGS="${save_CFLAGS}"
3341 save_CFLAGS="${save_CFLAGS} -no-cpp-precomp"; CFLAGS="${save_CFLAGS}"
3342 vlc_LDFLAGS="${vlc_LDFLAGS} -all_load"
3346 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3347 set dummy ${ac_tool_prefix}windres; ac_word=$2
3348 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3349 echo "configure:3350: checking for $ac_word" >&5
3350 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3351 echo $ac_n "(cached) $ac_c" 1>&6
3353 if test -n "$WINDRES"; then
3354 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3356 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3358 for ac_dir in $ac_dummy; do
3359 test -z "$ac_dir" && ac_dir=.
3360 if test -f $ac_dir/$ac_word; then
3361 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
3368 WINDRES="$ac_cv_prog_WINDRES"
3369 if test -n "$WINDRES"; then
3370 echo "$ac_t""$WINDRES" 1>&6
3372 echo "$ac_t""no" 1>&6
3376 if test -z "$ac_cv_prog_WINDRES"; then
3377 if test -n "$ac_tool_prefix"; then
3378 # Extract the first word of "windres", so it can be a program name with args.
3379 set dummy windres; ac_word=$2
3380 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3381 echo "configure:3382: checking for $ac_word" >&5
3382 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3383 echo $ac_n "(cached) $ac_c" 1>&6
3385 if test -n "$WINDRES"; then
3386 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3388 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3390 for ac_dir in $ac_dummy; do
3391 test -z "$ac_dir" && ac_dir=.
3392 if test -f $ac_dir/$ac_word; then
3393 ac_cv_prog_WINDRES="windres"
3398 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES=":"
3401 WINDRES="$ac_cv_prog_WINDRES"
3402 if test -n "$WINDRES"; then
3403 echo "$ac_t""$WINDRES" 1>&6
3405 echo "$ac_t""no" 1>&6
3413 save_CFLAGS="${save_CFLAGS} -fnative-struct -D_OFF_T_ -D_off_t=long"; CFLAGS="${save_CFLAGS}"
3414 vlc_LDFLAGS="${vlc_LDFLAGS} -mwindows -Xlinker --force-exe-suffix"
3415 vlc_LDFLAGS="${vlc_LDFLAGS} -lws2_32 -lnetapi32"
3416 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lws2_32"
3417 ipv6_LDFLAGS="${ipv6_LDFLAGS} -lws2_32"
3418 http_LDFLAGS="${http_LDFLAGS} -lws2_32"
3419 rc_LDFLAGS="${rc_LDFLAGS} -lws2_32"
3423 x11_LDFLAGS="${x11_LDFLAGS} -lsocket"
3424 xvideo_LDFLAGS="${xvideo_LDFLAGS} -lsocket"
3431 save_CFLAGS="${save_CFLAGS} -Wno-multichar -Wno-ctor-dtor-privacy -Woverloaded-virtual"; CFLAGS="${save_CFLAGS}"
3432 vlc_LDFLAGS="${vlc_LDFLAGS} -lbe"
3433 plugins_LDFLAGS="${plugins_LDFLAGS} -nostart"
3434 beos_LDFLAGS="${beos_LDFLAGS} -lbe -lgame -lroot -ltracker -lstdc++.r4"
3435 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3442 if test "x${SYS}" = "xmingw32"
3444 plugins_CFLAGS="${plugins_CFLAGS} -fnative-struct"
3446 plugins_CFLAGS="${plugins_CFLAGS} -fPIC"
3447 plugins_LDFLAGS="${plugins_LDFLAGS} -fPIC"
3450 save_CFLAGS="${save_CFLAGS} -DSYS_`echo ${SYS} | sed -e 's/-.*//' | tr 'abcdefghijklmnopqrstuvwxyz.' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`"; CFLAGS="${save_CFLAGS}"
3452 for ac_func in gettimeofday select strerror strtod strtol isatty vasprintf swab sigrelse getpwuid memalign posix_memalign gethostbyname2 atoll strndup
3454 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3455 echo "configure:3456: checking for $ac_func" >&5
3456 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3457 echo $ac_n "(cached) $ac_c" 1>&6
3459 cat > conftest.$ac_ext <<EOF
3460 #line 3461 "configure"
3461 #include "confdefs.h"
3462 /* System header to define __stub macros and hopefully few prototypes,
3463 which can conflict with char $ac_func(); below. */
3465 /* Override any gcc2 internal prototype to avoid an error. */
3466 /* We use char because int might match the return type of a gcc2
3467 builtin and then its argument prototype would still apply. */
3472 /* The GNU C library defines this for functions which it implements
3473 to always fail with ENOSYS. Some functions are actually named
3474 something starting with __ and the normal name is an alias. */
3475 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3483 if { (eval echo configure:3484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3485 eval "ac_cv_func_$ac_func=yes"
3487 echo "configure: failed program was:" >&5
3488 cat conftest.$ac_ext >&5
3490 eval "ac_cv_func_$ac_func=no"
3495 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3496 echo "$ac_t""yes" 1>&6
3497 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3498 cat >> confdefs.h <<EOF
3499 #define $ac_tr_func 1
3503 echo "$ac_t""no" 1>&6
3508 echo $ac_n "checking for connect""... $ac_c" 1>&6
3509 echo "configure:3510: checking for connect" >&5
3510 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3511 echo $ac_n "(cached) $ac_c" 1>&6
3513 cat > conftest.$ac_ext <<EOF
3514 #line 3515 "configure"
3515 #include "confdefs.h"
3516 /* System header to define __stub macros and hopefully few prototypes,
3517 which can conflict with char connect(); below. */
3519 /* Override any gcc2 internal prototype to avoid an error. */
3520 /* We use char because int might match the return type of a gcc2
3521 builtin and then its argument prototype would still apply. */
3526 /* The GNU C library defines this for functions which it implements
3527 to always fail with ENOSYS. Some functions are actually named
3528 something starting with __ and the normal name is an alias. */
3529 #if defined (__stub_connect) || defined (__stub___connect)
3537 if { (eval echo configure:3538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3539 eval "ac_cv_func_connect=yes"
3541 echo "configure: failed program was:" >&5
3542 cat conftest.$ac_ext >&5
3544 eval "ac_cv_func_connect=no"
3549 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3550 echo "$ac_t""yes" 1>&6
3553 echo "$ac_t""no" 1>&6
3555 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3556 echo "configure:3557: checking for connect in -lsocket" >&5
3557 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3558 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3559 echo $ac_n "(cached) $ac_c" 1>&6
3561 ac_save_LIBS="$LIBS"
3562 LIBS="-lsocket $LIBS"
3563 cat > conftest.$ac_ext <<EOF
3564 #line 3565 "configure"
3565 #include "confdefs.h"
3566 /* Override any gcc2 internal prototype to avoid an error. */
3567 /* We use char because int might match the return type of a gcc2
3568 builtin and then its argument prototype would still apply. */
3575 if { (eval echo configure:3576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3577 eval "ac_cv_lib_$ac_lib_var=yes"
3579 echo "configure: failed program was:" >&5
3580 cat conftest.$ac_ext >&5
3582 eval "ac_cv_lib_$ac_lib_var=no"
3585 LIBS="$ac_save_LIBS"
3588 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3589 echo "$ac_t""yes" 1>&6
3590 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lsocket"
3591 vlc_LDFLAGS="${vlc_LDFLAGS} -lsocket"
3594 echo "$ac_t""no" 1>&6
3599 echo $ac_n "checking for send""... $ac_c" 1>&6
3600 echo "configure:3601: checking for send" >&5
3601 if eval "test \"`echo '$''{'ac_cv_func_send'+set}'`\" = set"; then
3602 echo $ac_n "(cached) $ac_c" 1>&6
3604 cat > conftest.$ac_ext <<EOF
3605 #line 3606 "configure"
3606 #include "confdefs.h"
3607 /* System header to define __stub macros and hopefully few prototypes,
3608 which can conflict with char send(); below. */
3610 /* Override any gcc2 internal prototype to avoid an error. */
3611 /* We use char because int might match the return type of a gcc2
3612 builtin and then its argument prototype would still apply. */
3617 /* The GNU C library defines this for functions which it implements
3618 to always fail with ENOSYS. Some functions are actually named
3619 something starting with __ and the normal name is an alias. */
3620 #if defined (__stub_send) || defined (__stub___send)
3628 if { (eval echo configure:3629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3630 eval "ac_cv_func_send=yes"
3632 echo "configure: failed program was:" >&5
3633 cat conftest.$ac_ext >&5
3635 eval "ac_cv_func_send=no"
3640 if eval "test \"`echo '$ac_cv_func_'send`\" = yes"; then
3641 echo "$ac_t""yes" 1>&6
3644 echo "$ac_t""no" 1>&6
3646 echo $ac_n "checking for send in -lsocket""... $ac_c" 1>&6
3647 echo "configure:3648: checking for send in -lsocket" >&5
3648 ac_lib_var=`echo socket'_'send | sed 'y%./+-%__p_%'`
3649 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3650 echo $ac_n "(cached) $ac_c" 1>&6
3652 ac_save_LIBS="$LIBS"
3653 LIBS="-lsocket $LIBS"
3654 cat > conftest.$ac_ext <<EOF
3655 #line 3656 "configure"
3656 #include "confdefs.h"
3657 /* Override any gcc2 internal prototype to avoid an error. */
3658 /* We use char because int might match the return type of a gcc2
3659 builtin and then its argument prototype would still apply. */
3666 if { (eval echo configure:3667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3668 eval "ac_cv_lib_$ac_lib_var=yes"
3670 echo "configure: failed program was:" >&5
3671 cat conftest.$ac_ext >&5
3673 eval "ac_cv_lib_$ac_lib_var=no"
3676 LIBS="$ac_save_LIBS"
3679 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3680 echo "$ac_t""yes" 1>&6
3681 http_LDFLAGS="${http_LDFLAGS} -lsocket"
3684 echo "$ac_t""no" 1>&6
3689 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3690 echo "configure:3691: checking for gethostbyname" >&5
3691 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3692 echo $ac_n "(cached) $ac_c" 1>&6
3694 cat > conftest.$ac_ext <<EOF
3695 #line 3696 "configure"
3696 #include "confdefs.h"
3697 /* System header to define __stub macros and hopefully few prototypes,
3698 which can conflict with char gethostbyname(); below. */
3700 /* Override any gcc2 internal prototype to avoid an error. */
3701 /* We use char because int might match the return type of a gcc2
3702 builtin and then its argument prototype would still apply. */
3703 char gethostbyname();
3707 /* The GNU C library defines this for functions which it implements
3708 to always fail with ENOSYS. Some functions are actually named
3709 something starting with __ and the normal name is an alias. */
3710 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3718 if { (eval echo configure:3719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3720 eval "ac_cv_func_gethostbyname=yes"
3722 echo "configure: failed program was:" >&5
3723 cat conftest.$ac_ext >&5
3725 eval "ac_cv_func_gethostbyname=no"
3730 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3731 echo "$ac_t""yes" 1>&6
3734 echo "$ac_t""no" 1>&6
3736 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3737 echo "configure:3738: checking for gethostbyname in -lnsl" >&5
3738 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3739 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3740 echo $ac_n "(cached) $ac_c" 1>&6
3742 ac_save_LIBS="$LIBS"
3744 cat > conftest.$ac_ext <<EOF
3745 #line 3746 "configure"
3746 #include "confdefs.h"
3747 /* Override any gcc2 internal prototype to avoid an error. */
3748 /* We use char because int might match the return type of a gcc2
3749 builtin and then its argument prototype would still apply. */
3750 char gethostbyname();
3756 if { (eval echo configure:3757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3758 eval "ac_cv_lib_$ac_lib_var=yes"
3760 echo "configure: failed program was:" >&5
3761 cat conftest.$ac_ext >&5
3763 eval "ac_cv_lib_$ac_lib_var=no"
3766 LIBS="$ac_save_LIBS"
3769 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3770 echo "$ac_t""yes" 1>&6
3771 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lnsl"
3773 echo "$ac_t""no" 1>&6
3775 echo $ac_n "checking for gethostbyname in -lbind""... $ac_c" 1>&6
3776 echo "configure:3777: checking for gethostbyname in -lbind" >&5
3777 ac_lib_var=`echo bind'_'gethostbyname | sed 'y%./+-%__p_%'`
3778 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3779 echo $ac_n "(cached) $ac_c" 1>&6
3781 ac_save_LIBS="$LIBS"
3783 cat > conftest.$ac_ext <<EOF
3784 #line 3785 "configure"
3785 #include "confdefs.h"
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();
3795 if { (eval echo configure:3796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3797 eval "ac_cv_lib_$ac_lib_var=yes"
3799 echo "configure: failed program was:" >&5
3800 cat conftest.$ac_ext >&5
3802 eval "ac_cv_lib_$ac_lib_var=no"
3805 LIBS="$ac_save_LIBS"
3808 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3809 echo "$ac_t""yes" 1>&6
3810 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3812 echo "$ac_t""no" 1>&6
3821 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
3822 echo "configure:3823: checking for nanosleep" >&5
3823 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
3824 echo $ac_n "(cached) $ac_c" 1>&6
3826 cat > conftest.$ac_ext <<EOF
3827 #line 3828 "configure"
3828 #include "confdefs.h"
3829 /* System header to define __stub macros and hopefully few prototypes,
3830 which can conflict with char nanosleep(); below. */
3832 /* Override any gcc2 internal prototype to avoid an error. */
3833 /* We use char because int might match the return type of a gcc2
3834 builtin and then its argument prototype would still apply. */
3839 /* The GNU C library defines this for functions which it implements
3840 to always fail with ENOSYS. Some functions are actually named
3841 something starting with __ and the normal name is an alias. */
3842 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
3850 if { (eval echo configure:3851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3852 eval "ac_cv_func_nanosleep=yes"
3854 echo "configure: failed program was:" >&5
3855 cat conftest.$ac_ext >&5
3857 eval "ac_cv_func_nanosleep=no"
3862 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
3863 echo "$ac_t""yes" 1>&6
3866 echo "$ac_t""no" 1>&6
3868 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
3869 echo "configure:3870: checking for nanosleep in -lrt" >&5
3870 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
3871 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3872 echo $ac_n "(cached) $ac_c" 1>&6
3874 ac_save_LIBS="$LIBS"
3876 cat > conftest.$ac_ext <<EOF