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 --disable-ppro Disable PentiumPro optimizations (default enabled for x86)"
17 --disable-mmx Disable MMX optimizations (default enabled for x86)"
19 --disable-css Disable DVD CSS decryption (default enabled)"
21 --enable-debug Enable debug mode (default disabled)"
23 --enable-stats Enable printing of statistics (default disabled)"
25 --disable-optimizations Disable compiler optimizations (default enabled)"
27 --disable-dummy dummy module (default enabled)"
29 --disable-null Null module (default enabled)"
31 --disable-dsp Linux /dev/dsp support (default enabled)"
33 --enable-esd Esound library support (default disabled)"
35 --enable-fb Linux framebuffer support (default disabled)"
37 --with-ggi[=name] GGI support (default disabled)"
39 --with-sdl[=name] SDL support (default enabled)"
41 --with-glide[=name] Glide (3dfx) support (default disabled)"
43 --enable-ncurses ncurses interface support (default disabled)"
45 --enable-kde KDE interface support (default disabled)"
47 --enable-gnome Gnome interface support (default disabled)"
49 --disable-gtk Gtk+ support (default enabled)"
51 --disable-x11 X11 support (default enabled)"
53 --enable-alsa Alsa sound drivers support (Only for linux) (default disabled)"
55 # Initialize some variables set by options.
56 # The variables have the same names as the options, with
57 # dashes changed to underlines.
59 cache_file=./config.cache
68 program_transform_name=s,x,x,
76 bindir='${exec_prefix}/bin'
77 sbindir='${exec_prefix}/sbin'
78 libexecdir='${exec_prefix}/libexec'
79 datadir='${prefix}/share'
80 sysconfdir='${prefix}/etc'
81 sharedstatedir='${prefix}/com'
82 localstatedir='${prefix}/var'
83 libdir='${exec_prefix}/lib'
84 includedir='${prefix}/include'
85 oldincludedir='/usr/include'
86 infodir='${prefix}/info'
87 mandir='${prefix}/man'
89 # Initialize some other variables.
92 SHELL=${CONFIG_SHELL-/bin/sh}
93 # Maximum number of lines to put in a shell here document.
100 # If the previous option needs an argument, assign it.
101 if test -n "$ac_prev"; then
102 eval "$ac_prev=\$ac_option"
108 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
112 # Accept the important Cygnus configure options, so we can diagnose typos.
116 -bindir | --bindir | --bindi | --bind | --bin | --bi)
118 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
119 bindir="$ac_optarg" ;;
121 -build | --build | --buil | --bui | --bu)
123 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
124 build="$ac_optarg" ;;
126 -cache-file | --cache-file | --cache-fil | --cache-fi \
127 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
128 ac_prev=cache_file ;;
129 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
130 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
131 cache_file="$ac_optarg" ;;
133 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
135 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
137 datadir="$ac_optarg" ;;
139 -disable-* | --disable-*)
140 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
141 # Reject names that are not valid shell variable names.
142 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
143 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
145 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
146 eval "enable_${ac_feature}=no" ;;
148 -enable-* | --enable-*)
149 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
150 # Reject names that are not valid shell variable names.
151 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
152 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
154 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
159 eval "enable_${ac_feature}='$ac_optarg'" ;;
161 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
162 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
163 | --exec | --exe | --ex)
164 ac_prev=exec_prefix ;;
165 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
166 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
167 | --exec=* | --exe=* | --ex=*)
168 exec_prefix="$ac_optarg" ;;
170 -gas | --gas | --ga | --g)
171 # Obsolete; use --with-gas.
174 -help | --help | --hel | --he)
175 # Omit some internal or obsolete options to make the list less imposing.
176 # This message is too long to be a string in the A/UX 3.1 sh.
178 Usage: configure [options] [host]
179 Options: [defaults in brackets after descriptions]
181 --cache-file=FILE cache test results in FILE
182 --help print this message
183 --no-create do not create output files
184 --quiet, --silent do not print \`checking...' messages
185 --version print the version of autoconf that created configure
186 Directory and file names:
187 --prefix=PREFIX install architecture-independent files in PREFIX
189 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
191 --bindir=DIR user executables in DIR [EPREFIX/bin]
192 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
193 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
194 --datadir=DIR read-only architecture-independent data in DIR
196 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
197 --sharedstatedir=DIR modifiable architecture-independent data in DIR
199 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
200 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
201 --includedir=DIR C header files in DIR [PREFIX/include]
202 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
203 --infodir=DIR info documentation in DIR [PREFIX/info]
204 --mandir=DIR man documentation in DIR [PREFIX/man]
205 --srcdir=DIR find the sources in DIR [configure dir or ..]
206 --program-prefix=PREFIX prepend PREFIX to installed program names
207 --program-suffix=SUFFIX append SUFFIX to installed program names
208 --program-transform-name=PROGRAM
209 run sed PROGRAM on installed program names
213 --build=BUILD configure for building on BUILD [BUILD=HOST]
214 --host=HOST configure for HOST [guessed]
215 --target=TARGET configure for TARGET [TARGET=HOST]
216 Features and packages:
217 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
218 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
219 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
220 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
221 --x-includes=DIR X include files are in DIR
222 --x-libraries=DIR X library files are in DIR
224 if test -n "$ac_help"; then
225 echo "--enable and --with options recognized:$ac_help"
229 -host | --host | --hos | --ho)
231 -host=* | --host=* | --hos=* | --ho=*)
234 -includedir | --includedir | --includedi | --included | --include \
235 | --includ | --inclu | --incl | --inc)
236 ac_prev=includedir ;;
237 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
238 | --includ=* | --inclu=* | --incl=* | --inc=*)
239 includedir="$ac_optarg" ;;
241 -infodir | --infodir | --infodi | --infod | --info | --inf)
243 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
244 infodir="$ac_optarg" ;;
246 -libdir | --libdir | --libdi | --libd)
248 -libdir=* | --libdir=* | --libdi=* | --libd=*)
249 libdir="$ac_optarg" ;;
251 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
252 | --libexe | --libex | --libe)
253 ac_prev=libexecdir ;;
254 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
255 | --libexe=* | --libex=* | --libe=*)
256 libexecdir="$ac_optarg" ;;
258 -localstatedir | --localstatedir | --localstatedi | --localstated \
259 | --localstate | --localstat | --localsta | --localst \
260 | --locals | --local | --loca | --loc | --lo)
261 ac_prev=localstatedir ;;
262 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
263 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
264 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
265 localstatedir="$ac_optarg" ;;
267 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
269 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
270 mandir="$ac_optarg" ;;
273 # Obsolete; use --without-fp.
276 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
280 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
281 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
284 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
285 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
286 | --oldin | --oldi | --old | --ol | --o)
287 ac_prev=oldincludedir ;;
288 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
289 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
290 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
291 oldincludedir="$ac_optarg" ;;
293 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
295 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
296 prefix="$ac_optarg" ;;
298 -program-prefix | --program-prefix | --program-prefi | --program-pref \
299 | --program-pre | --program-pr | --program-p)
300 ac_prev=program_prefix ;;
301 -program-prefix=* | --program-prefix=* | --program-prefi=* \
302 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
303 program_prefix="$ac_optarg" ;;
305 -program-suffix | --program-suffix | --program-suffi | --program-suff \
306 | --program-suf | --program-su | --program-s)
307 ac_prev=program_suffix ;;
308 -program-suffix=* | --program-suffix=* | --program-suffi=* \
309 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
310 program_suffix="$ac_optarg" ;;
312 -program-transform-name | --program-transform-name \
313 | --program-transform-nam | --program-transform-na \
314 | --program-transform-n | --program-transform- \
315 | --program-transform | --program-transfor \
316 | --program-transfo | --program-transf \
317 | --program-trans | --program-tran \
318 | --progr-tra | --program-tr | --program-t)
319 ac_prev=program_transform_name ;;
320 -program-transform-name=* | --program-transform-name=* \
321 | --program-transform-nam=* | --program-transform-na=* \
322 | --program-transform-n=* | --program-transform-=* \
323 | --program-transform=* | --program-transfor=* \
324 | --program-transfo=* | --program-transf=* \
325 | --program-trans=* | --program-tran=* \
326 | --progr-tra=* | --program-tr=* | --program-t=*)
327 program_transform_name="$ac_optarg" ;;
329 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
330 | -silent | --silent | --silen | --sile | --sil)
333 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
335 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
337 sbindir="$ac_optarg" ;;
339 -sharedstatedir | --sharedstatedir | --sharedstatedi \
340 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
341 | --sharedst | --shareds | --shared | --share | --shar \
343 ac_prev=sharedstatedir ;;
344 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
345 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
346 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
348 sharedstatedir="$ac_optarg" ;;
350 -site | --site | --sit)
352 -site=* | --site=* | --sit=*)
355 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
357 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
358 srcdir="$ac_optarg" ;;
360 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
361 | --syscon | --sysco | --sysc | --sys | --sy)
362 ac_prev=sysconfdir ;;
363 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
364 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
365 sysconfdir="$ac_optarg" ;;
367 -target | --target | --targe | --targ | --tar | --ta | --t)
369 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
370 target="$ac_optarg" ;;
372 -v | -verbose | --verbose | --verbos | --verbo | --verb)
375 -version | --version | --versio | --versi | --vers)
376 echo "configure generated by autoconf version 2.13"
380 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
381 # Reject names that are not valid shell variable names.
382 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
383 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
385 ac_package=`echo $ac_package| sed 's/-/_/g'`
390 eval "with_${ac_package}='$ac_optarg'" ;;
392 -without-* | --without-*)
393 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
394 # Reject names that are not valid shell variable names.
395 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
396 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
398 ac_package=`echo $ac_package| sed 's/-/_/g'`
399 eval "with_${ac_package}=no" ;;
402 # Obsolete; use --with-x.
405 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
406 | --x-incl | --x-inc | --x-in | --x-i)
407 ac_prev=x_includes ;;
408 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
409 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
410 x_includes="$ac_optarg" ;;
412 -x-libraries | --x-libraries | --x-librarie | --x-librari \
413 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
414 ac_prev=x_libraries ;;
415 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
416 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
417 x_libraries="$ac_optarg" ;;
419 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
423 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
424 echo "configure: warning: $ac_option: invalid host type" 1>&2
426 if test "x$nonopt" != xNONE; then
427 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
435 if test -n "$ac_prev"; then
436 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
439 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
441 # File descriptor usage:
444 # 2 errors and warnings
445 # 3 some systems may open it to /dev/tty
446 # 4 used on the Kubota Titan
447 # 6 checking for... messages and results
448 # 5 compiler messages saved in config.log
449 if test "$silent" = yes; then
457 This file contains any messages produced by compilers while
458 running configure, to aid debugging if configure makes a mistake.
461 # Strip out --no-create and --no-recursion so they do not pile up.
462 # Also quote any args containing shell metacharacters.
467 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
468 | --no-cr | --no-c) ;;
469 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
470 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
471 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
472 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
473 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
478 # Only set these to C if already set. These must not be set unconditionally
479 # because not all systems understand e.g. LANG=C (notably SCO).
480 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
481 # Non-C LC_CTYPE values break the ctype check.
482 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
483 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
484 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
485 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
487 # confdefs.h avoids OS command line length limits that DEFS can exceed.
488 rm -rf conftest* confdefs.h
489 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
492 # A filename unique to this package, relative to the directory that
493 # configure is in, which we can look for to find out if srcdir is correct.
494 ac_unique_file=src/interface/main.c
496 # Find the source files, if location was not specified.
497 if test -z "$srcdir"; then
498 ac_srcdir_defaulted=yes
499 # Try the directory containing this script, then its parent.
501 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
502 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
504 if test ! -r $srcdir/$ac_unique_file; then
508 ac_srcdir_defaulted=no
510 if test ! -r $srcdir/$ac_unique_file; then
511 if test "$ac_srcdir_defaulted" = yes; then
512 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
514 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
517 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
519 # Prefer explicitly selected file to automatically selected ones.
520 if test -z "$CONFIG_SITE"; then
521 if test "x$prefix" != xNONE; then
522 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
524 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
527 for ac_site_file in $CONFIG_SITE; do
528 if test -r "$ac_site_file"; then
529 echo "loading site script $ac_site_file"
534 if test -r "$cache_file"; then
535 echo "loading cache $cache_file"
538 echo "creating cache $cache_file"
543 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
544 ac_cpp='$CPP $CPPFLAGS'
545 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
546 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
547 cross_compiling=$ac_cv_prog_cc_cross
551 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
552 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
553 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
560 ac_n= ac_c='\c' ac_t=
567 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
568 if test -f $ac_dir/install-sh; then
570 ac_install_sh="$ac_aux_dir/install-sh -c"
572 elif test -f $ac_dir/install.sh; then
574 ac_install_sh="$ac_aux_dir/install.sh -c"
578 if test -z "$ac_aux_dir"; then
579 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
581 ac_config_guess=$ac_aux_dir/config.guess
582 ac_config_sub=$ac_aux_dir/config.sub
583 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
586 # Make sure we can run config.sub.
587 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
588 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
591 echo $ac_n "checking host system type""... $ac_c" 1>&6
592 echo "configure:593: checking host system type" >&5
595 case "$host_alias" in
599 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
600 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
602 *) host_alias=$nonopt ;;
606 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
607 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
608 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
609 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
610 echo "$ac_t""$host" 1>&6
618 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
619 echo "configure:620: checking whether ${MAKE-make} sets \${MAKE}" >&5
620 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
621 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
622 echo $ac_n "(cached) $ac_c" 1>&6
624 cat > conftestmake <<\EOF
626 @echo 'ac_maketemp="${MAKE}"'
628 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
629 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
630 if test -n "$ac_maketemp"; then
631 eval ac_cv_prog_make_${ac_make}_set=yes
633 eval ac_cv_prog_make_${ac_make}_set=no
637 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
638 echo "$ac_t""yes" 1>&6
641 echo "$ac_t""no" 1>&6
642 SET_MAKE="MAKE=${MAKE-make}"
645 if test -z "$CC"; then
646 # Extract the first word of "gcc", so it can be a program name with args.
647 set dummy gcc; ac_word=$2
648 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
649 echo "configure:650: checking for $ac_word" >&5
650 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
651 echo $ac_n "(cached) $ac_c" 1>&6
653 if test -n "$CC"; then
654 ac_cv_prog_CC="$CC" # Let the user override the test.
656 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
658 for ac_dir in $ac_dummy; do
659 test -z "$ac_dir" && ac_dir=.
660 if test -f $ac_dir/$ac_word; then
669 if test -n "$CC"; then
670 echo "$ac_t""$CC" 1>&6
672 echo "$ac_t""no" 1>&6
675 if test -z "$CC"; then
676 # Extract the first word of "cc", so it can be a program name with args.
677 set dummy cc; ac_word=$2
678 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
679 echo "configure:680: checking for $ac_word" >&5
680 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
681 echo $ac_n "(cached) $ac_c" 1>&6
683 if test -n "$CC"; then
684 ac_cv_prog_CC="$CC" # Let the user override the test.
686 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
689 for ac_dir in $ac_dummy; do
690 test -z "$ac_dir" && ac_dir=.
691 if test -f $ac_dir/$ac_word; then
692 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
701 if test $ac_prog_rejected = yes; then
702 # We found a bogon in the path, so make sure we never use it.
703 set dummy $ac_cv_prog_CC
705 if test $# -gt 0; then
706 # We chose a different compiler from the bogus one.
707 # However, it has the same basename, so the bogon will be chosen
708 # first if we set CC to just the basename; use the full file name.
710 set dummy "$ac_dir/$ac_word" "$@"
718 if test -n "$CC"; then
719 echo "$ac_t""$CC" 1>&6
721 echo "$ac_t""no" 1>&6
724 if test -z "$CC"; then
727 # Extract the first word of "cl", so it can be a program name with args.
728 set dummy cl; ac_word=$2
729 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
730 echo "configure:731: checking for $ac_word" >&5
731 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
732 echo $ac_n "(cached) $ac_c" 1>&6
734 if test -n "$CC"; then
735 ac_cv_prog_CC="$CC" # Let the user override the test.
737 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
739 for ac_dir in $ac_dummy; do
740 test -z "$ac_dir" && ac_dir=.
741 if test -f $ac_dir/$ac_word; then
750 if test -n "$CC"; then
751 echo "$ac_t""$CC" 1>&6
753 echo "$ac_t""no" 1>&6
758 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
761 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
762 echo "configure:763: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
765 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
766 ac_cpp='$CPP $CPPFLAGS'
767 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
768 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
769 cross_compiling=$ac_cv_prog_cc_cross
771 cat > conftest.$ac_ext << EOF
773 #line 774 "configure"
774 #include "confdefs.h"
778 if { (eval echo configure:779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
779 ac_cv_prog_cc_works=yes
780 # If we can't run a trivial program, we are probably using a cross compiler.
781 if (./conftest; exit) 2>/dev/null; then
782 ac_cv_prog_cc_cross=no
784 ac_cv_prog_cc_cross=yes
787 echo "configure: failed program was:" >&5
788 cat conftest.$ac_ext >&5
789 ac_cv_prog_cc_works=no
793 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
794 ac_cpp='$CPP $CPPFLAGS'
795 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
796 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
797 cross_compiling=$ac_cv_prog_cc_cross
799 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
800 if test $ac_cv_prog_cc_works = no; then
801 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
803 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
804 echo "configure:805: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
805 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
806 cross_compiling=$ac_cv_prog_cc_cross
808 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
809 echo "configure:810: checking whether we are using GNU C" >&5
810 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
811 echo $ac_n "(cached) $ac_c" 1>&6
813 cat > conftest.c <<EOF
818 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
825 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
827 if test $ac_cv_prog_gcc = yes; then
833 ac_test_CFLAGS="${CFLAGS+set}"
834 ac_save_CFLAGS="$CFLAGS"
836 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
837 echo "configure:838: checking whether ${CC-cc} accepts -g" >&5
838 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
839 echo $ac_n "(cached) $ac_c" 1>&6
841 echo 'void f(){}' > conftest.c
842 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
851 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
852 if test "$ac_test_CFLAGS" = set; then
853 CFLAGS="$ac_save_CFLAGS"
854 elif test $ac_cv_prog_cc_g = yes; then
855 if test "$GCC" = yes; then
861 if test "$GCC" = yes; then
869 if test -z "$CPP"; then
870 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
871 echo "configure:872: checking how to run the C preprocessor" >&5
872 # On Suns, sometimes $CPP names a directory.
873 if test -n "$CPP" && test -d "$CPP"; then
876 if test -z "$CPP"; then
877 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
878 echo $ac_n "(cached) $ac_c" 1>&6
880 # This must be in double quotes, not single quotes, because CPP may get
881 # substituted into the Makefile and "${CC-cc}" will confuse make.
883 # On the NeXT, cc -E runs the code through the compiler's parser,
884 # not just through cpp.
885 cat > conftest.$ac_ext <<EOF
886 #line 887 "configure"
887 #include "confdefs.h"
891 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
892 { (eval echo configure:893: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
893 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
894 if test -z "$ac_err"; then
898 echo "configure: failed program was:" >&5
899 cat conftest.$ac_ext >&5
901 CPP="${CC-cc} -E -traditional-cpp"
902 cat > conftest.$ac_ext <<EOF
903 #line 904 "configure"
904 #include "confdefs.h"
908 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
909 { (eval echo configure:910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
910 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
911 if test -z "$ac_err"; then
915 echo "configure: failed program was:" >&5
916 cat conftest.$ac_ext >&5
918 CPP="${CC-cc} -nologo -E"
919 cat > conftest.$ac_ext <<EOF
920 #line 921 "configure"
921 #include "confdefs.h"
925 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
926 { (eval echo configure:927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
927 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
928 if test -z "$ac_err"; then
932 echo "configure: failed program was:" >&5
933 cat conftest.$ac_ext >&5
942 ac_cv_prog_CPP="$CPP"
944 CPP="$ac_cv_prog_CPP"
946 ac_cv_prog_CPP="$CPP"
948 echo "$ac_t""$CPP" 1>&6
952 # Find a good install program. We prefer a C program (faster),
953 # so one script is as good as another. But avoid the broken or
954 # incompatible versions:
955 # SysV /etc/install, /usr/sbin/install
956 # SunOS /usr/etc/install
959 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
960 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
961 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
962 # ./install, which can be erroneously created by make from ./install.sh.
963 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
964 echo "configure:965: checking for a BSD compatible install" >&5
965 if test -z "$INSTALL"; then
966 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
967 echo $ac_n "(cached) $ac_c" 1>&6
969 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
970 for ac_dir in $PATH; do
971 # Account for people who put trailing slashes in PATH elements.
973 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
975 # OSF1 and SCO ODT 3.0 have their own names for install.
976 # Don't use installbsd from OSF since it installs stuff as root
978 for ac_prog in ginstall scoinst install; do
979 if test -f $ac_dir/$ac_prog; then
980 if test $ac_prog = install &&
981 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
982 # AIX install. It has an incompatible calling convention.
985 ac_cv_path_install="$ac_dir/$ac_prog -c"
996 if test "${ac_cv_path_install+set}" = set; then
997 INSTALL="$ac_cv_path_install"
999 # As a last resort, use the slow shell script. We don't cache a
1000 # path for INSTALL within a source directory, because that will
1001 # break other packages using the cache if that directory is
1002 # removed, or if the path is relative.
1003 INSTALL="$ac_install_sh"
1006 echo "$ac_t""$INSTALL" 1>&6
1008 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1009 # It thinks the first close brace ends the variable substitution.
1010 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1012 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1014 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1017 echo $ac_n "checking for working const""... $ac_c" 1>&6
1018 echo "configure:1019: checking for working const" >&5
1019 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1020 echo $ac_n "(cached) $ac_c" 1>&6
1022 cat > conftest.$ac_ext <<EOF
1023 #line 1024 "configure"
1024 #include "confdefs.h"
1028 /* Ultrix mips cc rejects this. */
1029 typedef int charset[2]; const charset x = {0,0};
1030 /* SunOS 4.1.1 cc rejects this. */
1031 char const *const *ccp;
1033 /* NEC SVR4.0.2 mips cc rejects this. */
1034 struct point {int x, y;};
1035 static struct point const zero = {0,0};
1036 /* AIX XL C 1.02.0.0 rejects this.
1037 It does not let you subtract one const X* pointer from another in an arm
1038 of an if-expression whose if-part is not a constant expression */
1039 const char *g = "string";
1040 ccp = &g + (g ? g-g : 0);
1041 /* HPUX 7.0 cc rejects these. */
1044 ccp = (char const *const *) p;
1045 { /* SCO 3.2v4 cc rejects this. */
1047 char const *s = 0 ? (char *) 0 : (char const *) 0;
1051 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1053 const int *foo = &x[0];
1056 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1057 typedef const int *iptr;
1061 { /* AIX XL C 1.02.0.0 rejects this saying
1062 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1063 struct s { int j; const int *ap[3]; };
1064 struct s *b; b->j = 5;
1066 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1072 if { (eval echo configure:1073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1076 echo "configure: failed program was:" >&5
1077 cat conftest.$ac_ext >&5
1084 echo "$ac_t""$ac_cv_c_const" 1>&6
1085 if test $ac_cv_c_const = no; then
1086 cat >> confdefs.h <<\EOF
1092 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1093 echo "configure:1094: checking whether byte ordering is bigendian" >&5
1094 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1095 echo $ac_n "(cached) $ac_c" 1>&6
1097 ac_cv_c_bigendian=unknown
1098 # See if sys/param.h defines the BYTE_ORDER macro.
1099 cat > conftest.$ac_ext <<EOF
1100 #line 1101 "configure"
1101 #include "confdefs.h"
1102 #include <sys/types.h>
1103 #include <sys/param.h>
1106 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1111 if { (eval echo configure:1112: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1113 # It does; now see whether it defined to BIG_ENDIAN or not.
1114 cat > conftest.$ac_ext <<EOF
1115 #line 1116 "configure"
1116 #include "confdefs.h"
1117 #include <sys/types.h>
1118 #include <sys/param.h>
1121 #if BYTE_ORDER != BIG_ENDIAN
1126 if { (eval echo configure:1127: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1128 ac_cv_c_bigendian=yes
1130 echo "configure: failed program was:" >&5
1131 cat conftest.$ac_ext >&5
1133 ac_cv_c_bigendian=no
1137 echo "configure: failed program was:" >&5
1138 cat conftest.$ac_ext >&5
1141 if test $ac_cv_c_bigendian = unknown; then
1142 if test "$cross_compiling" = yes; then
1143 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1145 cat > conftest.$ac_ext <<EOF
1146 #line 1147 "configure"
1147 #include "confdefs.h"
1149 /* Are we little or big endian? From Harbison&Steele. */
1153 char c[sizeof (long)];
1156 exit (u.c[sizeof (long) - 1] == 1);
1159 if { (eval echo configure:1160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1161 ac_cv_c_bigendian=no
1163 echo "configure: failed program was:" >&5
1164 cat conftest.$ac_ext >&5
1166 ac_cv_c_bigendian=yes
1174 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1175 if test $ac_cv_c_bigendian = yes; then
1176 cat >> confdefs.h <<\EOF
1177 #define WORDS_BIGENDIAN 1
1183 echo $ac_n "checking whether compiler accepts bswap x86 instruction""... $ac_c" 1>&6
1184 echo "configure:1185: checking whether compiler accepts bswap x86 instruction" >&5
1185 cat > conftest.$ac_ext <<EOF
1186 #line 1187 "configure"
1187 #include "confdefs.h"
1188 unsigned int foo( unsigned int x )
1189 { __asm__("bswap %0" : "=r" (x) : "0" (x)); return x; }
1194 if { (eval echo configure:1195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1196 cat >> confdefs.h <<\EOF
1197 #define HAVE_X86_BSWAP 1
1199 echo "$ac_t""yes" 1>&6
1201 echo "configure: failed program was:" >&5
1202 cat conftest.$ac_ext >&5
1204 echo "$ac_t""no" 1>&6
1208 for ac_func in gettimeofday select strerror strtod strtol
1210 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1211 echo "configure:1212: checking for $ac_func" >&5
1212 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1213 echo $ac_n "(cached) $ac_c" 1>&6
1215 cat > conftest.$ac_ext <<EOF
1216 #line 1217 "configure"
1217 #include "confdefs.h"
1218 /* System header to define __stub macros and hopefully few prototypes,
1219 which can conflict with char $ac_func(); below. */
1221 /* Override any gcc2 internal prototype to avoid an error. */
1222 /* We use char because int might match the return type of a gcc2
1223 builtin and then its argument prototype would still apply. */
1228 /* The GNU C library defines this for functions which it implements
1229 to always fail with ENOSYS. Some functions are actually named
1230 something starting with __ and the normal name is an alias. */
1231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1239 if { (eval echo configure:1240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1241 eval "ac_cv_func_$ac_func=yes"
1243 echo "configure: failed program was:" >&5
1244 cat conftest.$ac_ext >&5
1246 eval "ac_cv_func_$ac_func=no"
1251 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1252 echo "$ac_t""yes" 1>&6
1253 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1254 cat >> confdefs.h <<EOF
1255 #define $ac_tr_func 1
1259 echo "$ac_t""no" 1>&6
1263 for ac_func in setenv putenv
1265 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1266 echo "configure:1267: checking for $ac_func" >&5
1267 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1268 echo $ac_n "(cached) $ac_c" 1>&6
1270 cat > conftest.$ac_ext <<EOF
1271 #line 1272 "configure"
1272 #include "confdefs.h"
1273 /* System header to define __stub macros and hopefully few prototypes,
1274 which can conflict with char $ac_func(); below. */
1276 /* Override any gcc2 internal prototype to avoid an error. */
1277 /* We use char because int might match the return type of a gcc2
1278 builtin and then its argument prototype would still apply. */
1283 /* The GNU C library defines this for functions which it implements
1284 to always fail with ENOSYS. Some functions are actually named
1285 something starting with __ and the normal name is an alias. */
1286 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1294 if { (eval echo configure:1295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1296 eval "ac_cv_func_$ac_func=yes"
1298 echo "configure: failed program was:" >&5
1299 cat conftest.$ac_ext >&5
1301 eval "ac_cv_func_$ac_func=no"
1306 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1307 echo "$ac_t""yes" 1>&6
1308 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1309 cat >> confdefs.h <<EOF
1310 #define $ac_tr_func 1
1314 echo "$ac_t""no" 1>&6
1318 echo $ac_n "checking for connect""... $ac_c" 1>&6
1319 echo "configure:1320: checking for connect" >&5
1320 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1321 echo $ac_n "(cached) $ac_c" 1>&6
1323 cat > conftest.$ac_ext <<EOF
1324 #line 1325 "configure"
1325 #include "confdefs.h"
1326 /* System header to define __stub macros and hopefully few prototypes,
1327 which can conflict with char connect(); below. */
1329 /* Override any gcc2 internal prototype to avoid an error. */
1330 /* We use char because int might match the return type of a gcc2
1331 builtin and then its argument prototype would still apply. */
1336 /* The GNU C library defines this for functions which it implements
1337 to always fail with ENOSYS. Some functions are actually named
1338 something starting with __ and the normal name is an alias. */
1339 #if defined (__stub_connect) || defined (__stub___connect)
1347 if { (eval echo configure:1348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1349 eval "ac_cv_func_connect=yes"
1351 echo "configure: failed program was:" >&5
1352 cat conftest.$ac_ext >&5
1354 eval "ac_cv_func_connect=no"
1359 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1360 echo "$ac_t""yes" 1>&6
1363 echo "$ac_t""no" 1>&6
1364 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1365 echo "configure:1366: checking for connect in -lsocket" >&5
1366 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1367 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1368 echo $ac_n "(cached) $ac_c" 1>&6
1370 ac_save_LIBS="$LIBS"
1371 LIBS="-lsocket $LIBS"
1372 cat > conftest.$ac_ext <<EOF
1373 #line 1374 "configure"
1374 #include "confdefs.h"
1375 /* Override any gcc2 internal prototype to avoid an error. */
1376 /* We use char because int might match the return type of a gcc2
1377 builtin and then its argument prototype would still apply. */
1384 if { (eval echo configure:1385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1386 eval "ac_cv_lib_$ac_lib_var=yes"
1388 echo "configure: failed program was:" >&5
1389 cat conftest.$ac_ext >&5
1391 eval "ac_cv_lib_$ac_lib_var=no"
1394 LIBS="$ac_save_LIBS"
1397 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1398 echo "$ac_t""yes" 1>&6
1399 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1400 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1401 cat >> confdefs.h <<EOF
1402 #define $ac_tr_lib 1
1405 LIBS="-lsocket $LIBS"
1408 echo "$ac_t""no" 1>&6
1413 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1414 echo "configure:1415: checking for gethostbyname" >&5
1415 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1416 echo $ac_n "(cached) $ac_c" 1>&6
1418 cat > conftest.$ac_ext <<EOF
1419 #line 1420 "configure"
1420 #include "confdefs.h"
1421 /* System header to define __stub macros and hopefully few prototypes,
1422 which can conflict with char gethostbyname(); below. */
1424 /* Override any gcc2 internal prototype to avoid an error. */
1425 /* We use char because int might match the return type of a gcc2
1426 builtin and then its argument prototype would still apply. */
1427 char gethostbyname();
1431 /* The GNU C library defines this for functions which it implements
1432 to always fail with ENOSYS. Some functions are actually named
1433 something starting with __ and the normal name is an alias. */
1434 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1442 if { (eval echo configure:1443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1444 eval "ac_cv_func_gethostbyname=yes"
1446 echo "configure: failed program was:" >&5
1447 cat conftest.$ac_ext >&5
1449 eval "ac_cv_func_gethostbyname=no"
1454 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1455 echo "$ac_t""yes" 1>&6
1458 echo "$ac_t""no" 1>&6
1459 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1460 echo "configure:1461: checking for gethostbyname in -lnsl" >&5
1461 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1462 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1463 echo $ac_n "(cached) $ac_c" 1>&6
1465 ac_save_LIBS="$LIBS"
1467 cat > conftest.$ac_ext <<EOF
1468 #line 1469 "configure"
1469 #include "confdefs.h"
1470 /* Override any gcc2 internal prototype to avoid an error. */
1471 /* We use char because int might match the return type of a gcc2
1472 builtin and then its argument prototype would still apply. */
1473 char gethostbyname();
1479 if { (eval echo configure:1480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1481 eval "ac_cv_lib_$ac_lib_var=yes"
1483 echo "configure: failed program was:" >&5
1484 cat conftest.$ac_ext >&5
1486 eval "ac_cv_lib_$ac_lib_var=no"
1489 LIBS="$ac_save_LIBS"
1492 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1493 echo "$ac_t""yes" 1>&6
1494 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1495 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1496 cat >> confdefs.h <<EOF
1497 #define $ac_tr_lib 1
1503 echo "$ac_t""no" 1>&6
1508 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
1509 echo "configure:1510: checking for nanosleep" >&5
1510 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
1511 echo $ac_n "(cached) $ac_c" 1>&6
1513 cat > conftest.$ac_ext <<EOF
1514 #line 1515 "configure"
1515 #include "confdefs.h"
1516 /* System header to define __stub macros and hopefully few prototypes,
1517 which can conflict with char nanosleep(); below. */
1519 /* Override any gcc2 internal prototype to avoid an error. */
1520 /* We use char because int might match the return type of a gcc2
1521 builtin and then its argument prototype would still apply. */
1526 /* The GNU C library defines this for functions which it implements
1527 to always fail with ENOSYS. Some functions are actually named
1528 something starting with __ and the normal name is an alias. */
1529 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
1537 if { (eval echo configure:1538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1539 eval "ac_cv_func_nanosleep=yes"
1541 echo "configure: failed program was:" >&5
1542 cat conftest.$ac_ext >&5
1544 eval "ac_cv_func_nanosleep=no"
1549 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
1550 echo "$ac_t""yes" 1>&6
1553 echo "$ac_t""no" 1>&6
1554 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
1555 echo "configure:1556: checking for nanosleep in -lrt" >&5
1556 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
1557 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1558 echo $ac_n "(cached) $ac_c" 1>&6
1560 ac_save_LIBS="$LIBS"
1562 cat > conftest.$ac_ext <<EOF
1563 #line 1564 "configure"
1564 #include "confdefs.h"
1565 /* Override any gcc2 internal prototype to avoid an error. */
1566 /* We use char because int might match the return type of a gcc2
1567 builtin and then its argument prototype would still apply. */
1574 if { (eval echo configure:1575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1576 eval "ac_cv_lib_$ac_lib_var=yes"
1578 echo "configure: failed program was:" >&5
1579 cat conftest.$ac_ext >&5
1581 eval "ac_cv_lib_$ac_lib_var=no"
1584 LIBS="$ac_save_LIBS"
1587 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1588 echo "$ac_t""yes" 1>&6
1589 ac_tr_lib=HAVE_LIB`echo rt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1590 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1591 cat >> confdefs.h <<EOF
1592 #define $ac_tr_lib 1
1598 echo "$ac_t""no" 1>&6
1599 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
1600 echo "configure:1601: checking for nanosleep in -lposix4" >&5
1601 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
1602 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1603 echo $ac_n "(cached) $ac_c" 1>&6
1605 ac_save_LIBS="$LIBS"
1606 LIBS="-lposix4 $LIBS"
1607 cat > conftest.$ac_ext <<EOF
1608 #line 1609 "configure"
1609 #include "confdefs.h"
1610 /* Override any gcc2 internal prototype to avoid an error. */
1611 /* We use char because int might match the return type of a gcc2
1612 builtin and then its argument prototype would still apply. */
1619 if { (eval echo configure:1620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1621 eval "ac_cv_lib_$ac_lib_var=yes"
1623 echo "configure: failed program was:" >&5
1624 cat conftest.$ac_ext >&5
1626 eval "ac_cv_lib_$ac_lib_var=no"
1629 LIBS="$ac_save_LIBS"
1632 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1633 echo "$ac_t""yes" 1>&6
1634 ac_tr_lib=HAVE_LIB`echo posix4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1635 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1636 cat >> confdefs.h <<EOF
1637 #define $ac_tr_lib 1
1640 LIBS="-lposix4 $LIBS"
1643 echo "$ac_t""no" 1>&6
1650 for ac_func in usleep
1652 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1653 echo "configure:1654: checking for $ac_func" >&5
1654 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1655 echo $ac_n "(cached) $ac_c" 1>&6
1657 cat > conftest.$ac_ext <<EOF
1658 #line 1659 "configure"
1659 #include "confdefs.h"
1660 /* System header to define __stub macros and hopefully few prototypes,
1661 which can conflict with char $ac_func(); below. */
1663 /* Override any gcc2 internal prototype to avoid an error. */
1664 /* We use char because int might match the return type of a gcc2
1665 builtin and then its argument prototype would still apply. */
1670 /* The GNU C library defines this for functions which it implements
1671 to always fail with ENOSYS. Some functions are actually named
1672 something starting with __ and the normal name is an alias. */
1673 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1681 if { (eval echo configure:1682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1683 eval "ac_cv_func_$ac_func=yes"
1685 echo "configure: failed program was:" >&5
1686 cat conftest.$ac_ext >&5
1688 eval "ac_cv_func_$ac_func=no"
1693 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1694 echo "$ac_t""yes" 1>&6
1695 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1696 cat >> confdefs.h <<EOF
1697 #define $ac_tr_func 1
1701 echo "$ac_t""no" 1>&6
1705 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
1706 echo "configure:1707: checking for inet_aton" >&5
1707 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
1708 echo $ac_n "(cached) $ac_c" 1>&6
1710 cat > conftest.$ac_ext <<EOF
1711 #line 1712 "configure"
1712 #include "confdefs.h"
1713 /* System header to define __stub macros and hopefully few prototypes,
1714 which can conflict with char inet_aton(); below. */
1716 /* Override any gcc2 internal prototype to avoid an error. */
1717 /* We use char because int might match the return type of a gcc2
1718 builtin and then its argument prototype would still apply. */
1723 /* The GNU C library defines this for functions which it implements
1724 to always fail with ENOSYS. Some functions are actually named
1725 something starting with __ and the normal name is an alias. */
1726 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
1734 if { (eval echo configure:1735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1736 eval "ac_cv_func_inet_aton=yes"
1738 echo "configure: failed program was:" >&5
1739 cat conftest.$ac_ext >&5
1741 eval "ac_cv_func_inet_aton=no"
1746 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
1747 echo "$ac_t""yes" 1>&6
1750 echo "$ac_t""no" 1>&6
1751 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
1752 echo "configure:1753: checking for inet_aton in -lresolv" >&5
1753 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
1754 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1755 echo $ac_n "(cached) $ac_c" 1>&6
1757 ac_save_LIBS="$LIBS"
1758 LIBS="-lresolv $LIBS"
1759 cat > conftest.$ac_ext <<EOF
1760 #line 1761 "configure"
1761 #include "confdefs.h"
1762 /* Override any gcc2 internal prototype to avoid an error. */
1763 /* We use char because int might match the return type of a gcc2
1764 builtin and then its argument prototype would still apply. */
1771 if { (eval echo configure:1772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1773 eval "ac_cv_lib_$ac_lib_var=yes"
1775 echo "configure: failed program was:" >&5
1776 cat conftest.$ac_ext >&5
1778 eval "ac_cv_lib_$ac_lib_var=no"
1781 LIBS="$ac_save_LIBS"
1784 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1785 echo "$ac_t""yes" 1>&6
1786 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1787 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1788 cat >> confdefs.h <<EOF
1789 #define $ac_tr_lib 1
1792 LIBS="-lresolv $LIBS"
1795 echo "$ac_t""no" 1>&6
1800 for ac_func in vasprintf
1802 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1803 echo "configure:1804: checking for $ac_func" >&5
1804 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1805 echo $ac_n "(cached) $ac_c" 1>&6
1807 cat > conftest.$ac_ext <<EOF
1808 #line 1809 "configure"
1809 #include "confdefs.h"
1810 /* System header to define __stub macros and hopefully few prototypes,
1811 which can conflict with char $ac_func(); below. */
1813 /* Override any gcc2 internal prototype to avoid an error. */
1814 /* We use char because int might match the return type of a gcc2
1815 builtin and then its argument prototype would still apply. */
1820 /* The GNU C library defines this for functions which it implements
1821 to always fail with ENOSYS. Some functions are actually named
1822 something starting with __ and the normal name is an alias. */
1823 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1831 if { (eval echo configure:1832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1833 eval "ac_cv_func_$ac_func=yes"
1835 echo "configure: failed program was:" >&5
1836 cat conftest.$ac_ext >&5
1838 eval "ac_cv_func_$ac_func=no"
1843 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1844 echo "$ac_t""yes" 1>&6
1845 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1846 cat >> confdefs.h <<EOF
1847 #define $ac_tr_func 1
1851 echo "$ac_t""no" 1>&6
1855 for ac_hdr in unistd.h
1857 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1858 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1859 echo "configure:1860: checking for $ac_hdr" >&5
1860 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1861 echo $ac_n "(cached) $ac_c" 1>&6
1863 cat > conftest.$ac_ext <<EOF
1864 #line 1865 "configure"
1865 #include "confdefs.h"
1868 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1869 { (eval echo configure:1870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1870 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1871 if test -z "$ac_err"; then
1873 eval "ac_cv_header_$ac_safe=yes"
1876 echo "configure: failed program was:" >&5
1877 cat conftest.$ac_ext >&5
1879 eval "ac_cv_header_$ac_safe=no"
1883 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1884 echo "$ac_t""yes" 1>&6
1885 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1886 cat >> confdefs.h <<EOF
1887 #define $ac_tr_hdr 1
1891 echo "$ac_t""no" 1>&6
1895 for ac_func in getpagesize
1897 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1898 echo "configure:1899: checking for $ac_func" >&5
1899 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1900 echo $ac_n "(cached) $ac_c" 1>&6
1902 cat > conftest.$ac_ext <<EOF
1903 #line 1904 "configure"
1904 #include "confdefs.h"
1905 /* System header to define __stub macros and hopefully few prototypes,
1906 which can conflict with char $ac_func(); below. */
1908 /* Override any gcc2 internal prototype to avoid an error. */
1909 /* We use char because int might match the return type of a gcc2
1910 builtin and then its argument prototype would still apply. */
1915 /* The GNU C library defines this for functions which it implements
1916 to always fail with ENOSYS. Some functions are actually named
1917 something starting with __ and the normal name is an alias. */
1918 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1926 if { (eval echo configure:1927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1928 eval "ac_cv_func_$ac_func=yes"
1930 echo "configure: failed program was:" >&5
1931 cat conftest.$ac_ext >&5
1933 eval "ac_cv_func_$ac_func=no"
1938 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1939 echo "$ac_t""yes" 1>&6
1940 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1941 cat >> confdefs.h <<EOF
1942 #define $ac_tr_func 1
1946 echo "$ac_t""no" 1>&6
1950 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1951 echo "configure:1952: checking for working mmap" >&5
1952 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1953 echo $ac_n "(cached) $ac_c" 1>&6
1955 if test "$cross_compiling" = yes; then
1956 ac_cv_func_mmap_fixed_mapped=no
1958 cat > conftest.$ac_ext <<EOF
1959 #line 1960 "configure"
1960 #include "confdefs.h"
1962 /* Thanks to Mike Haertel and Jim Avera for this test.
1963 Here is a matrix of mmap possibilities:
1964 mmap private not fixed
1965 mmap private fixed at somewhere currently unmapped
1966 mmap private fixed at somewhere already mapped
1967 mmap shared not fixed
1968 mmap shared fixed at somewhere currently unmapped
1969 mmap shared fixed at somewhere already mapped
1970 For private mappings, we should verify that changes cannot be read()
1971 back from the file, nor mmap's back from the file at a different
1972 address. (There have been systems where private was not correctly
1973 implemented like the infamous i386 svr4.0, and systems where the
1974 VM page cache was not coherent with the filesystem buffer cache
1975 like early versions of FreeBSD and possibly contemporary NetBSD.)
1976 For shared mappings, we should conversely verify that changes get
1977 propogated back to all the places they're supposed to be.
1979 Grep wants private fixed already mapped.
1980 The main things grep needs to know about mmap are:
1981 * does it exist and is it safe to write into the mmap'd area
1982 * how to use it (BSD variants) */
1983 #include <sys/types.h>
1985 #include <sys/mman.h>
1987 #include <sys/stat.h>
1989 #ifdef HAVE_UNISTD_H
1990 # include <unistd.h>
1993 /* This mess was copied from the GNU getpagesize.h. */
1994 #ifndef HAVE_GETPAGESIZE
1996 /* Assume that all systems that can run configure have sys/param.h. */
1997 # ifndef HAVE_SYS_PARAM_H
1998 # define HAVE_SYS_PARAM_H 1
2001 # ifdef _SC_PAGESIZE
2002 # define getpagesize() sysconf(_SC_PAGESIZE)
2003 # else /* no _SC_PAGESIZE */
2004 # ifdef HAVE_SYS_PARAM_H
2005 # include <sys/param.h>
2006 # ifdef EXEC_PAGESIZE
2007 # define getpagesize() EXEC_PAGESIZE
2008 # else /* no EXEC_PAGESIZE */
2010 # define getpagesize() NBPG * CLSIZE
2013 # endif /* no CLSIZE */
2014 # else /* no NBPG */
2016 # define getpagesize() NBPC
2017 # else /* no NBPC */
2019 # define getpagesize() PAGESIZE
2020 # endif /* PAGESIZE */
2021 # endif /* no NBPC */
2022 # endif /* no NBPG */
2023 # endif /* no EXEC_PAGESIZE */
2024 # else /* no HAVE_SYS_PARAM_H */
2025 # define getpagesize() 8192 /* punt totally */
2026 # endif /* no HAVE_SYS_PARAM_H */
2027 # endif /* no _SC_PAGESIZE */
2029 #endif /* no HAVE_GETPAGESIZE */
2032 extern "C" { void *malloc(unsigned); }
2040 char *data, *data2, *data3;
2044 pagesize = getpagesize();
2047 * First, make a file with some known garbage in it.
2049 data = (char*)malloc(pagesize);
2052 for (i = 0; i < pagesize; ++i)
2053 *(data + i) = rand();
2055 fd = creat("conftestmmap", 0600);
2058 if (write(fd, data, pagesize) != pagesize)
2063 * Next, try to mmap the file at a fixed address which
2064 * already has something else allocated at it. If we can,
2065 * also make sure that we see the same garbage.
2067 fd = open("conftestmmap", O_RDWR);
2070 data2 = (char*)malloc(2 * pagesize);
2073 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2074 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2075 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2077 for (i = 0; i < pagesize; ++i)
2078 if (*(data + i) != *(data2 + i))
2082 * Finally, make sure that changes to the mapped area
2083 * do not percolate back to the file as seen by read().
2084 * (This is a bug on some variants of i386 svr4.0.)
2086 for (i = 0; i < pagesize; ++i)
2087 *(data2 + i) = *(data2 + i) + 1;
2088 data3 = (char*)malloc(pagesize);
2091 if (read(fd, data3, pagesize) != pagesize)
2093 for (i = 0; i < pagesize; ++i)
2094 if (*(data + i) != *(data3 + i))
2097 unlink("conftestmmap");
2102 if { (eval echo configure:2103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2104 ac_cv_func_mmap_fixed_mapped=yes
2106 echo "configure: failed program was:" >&5
2107 cat conftest.$ac_ext >&5
2109 ac_cv_func_mmap_fixed_mapped=no
2116 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2117 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2118 cat >> confdefs.h <<\EOF
2124 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2125 echo "configure:2126: checking return type of signal handlers" >&5
2126 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2127 echo $ac_n "(cached) $ac_c" 1>&6
2129 cat > conftest.$ac_ext <<EOF
2130 #line 2131 "configure"
2131 #include "confdefs.h"
2132 #include <sys/types.h>
2138 extern "C" void (*signal (int, void (*)(int)))(int);
2140 void (*signal ()) ();
2147 if { (eval echo configure:2148: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2149 ac_cv_type_signal=void
2151 echo "configure: failed program was:" >&5
2152 cat conftest.$ac_ext >&5
2154 ac_cv_type_signal=int
2159 echo "$ac_t""$ac_cv_type_signal" 1>&6
2160 cat >> confdefs.h <<EOF
2161 #define RETSIGTYPE $ac_cv_type_signal
2165 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2166 echo "configure:2167: checking for dlopen in -ldl" >&5
2167 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2168 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2169 echo $ac_n "(cached) $ac_c" 1>&6
2171 ac_save_LIBS="$LIBS"
2173 cat > conftest.$ac_ext <<EOF
2174 #line 2175 "configure"
2175 #include "confdefs.h"
2176 /* Override any gcc2 internal prototype to avoid an error. */
2177 /* We use char because int might match the return type of a gcc2
2178 builtin and then its argument prototype would still apply. */
2185 if { (eval echo configure:2186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2187 eval "ac_cv_lib_$ac_lib_var=yes"
2189 echo "configure: failed program was:" >&5
2190 cat conftest.$ac_ext >&5
2192 eval "ac_cv_lib_$ac_lib_var=no"
2195 LIBS="$ac_save_LIBS"
2198 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2199 echo "$ac_t""yes" 1>&6
2200 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2201 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2202 cat >> confdefs.h <<EOF
2203 #define $ac_tr_lib 1
2209 echo "$ac_t""no" 1>&6
2212 echo $ac_n "checking for optarg in -lgnugetopt""... $ac_c" 1>&6
2213 echo "configure:2214: checking for optarg in -lgnugetopt" >&5
2214 ac_lib_var=`echo gnugetopt'_'optarg | sed 'y%./+-%__p_%'`
2215 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2216 echo $ac_n "(cached) $ac_c" 1>&6
2218 ac_save_LIBS="$LIBS"
2219 LIBS="-lgnugetopt $LIBS"
2220 cat > conftest.$ac_ext <<EOF
2221 #line 2222 "configure"
2222 #include "confdefs.h"
2223 /* Override any gcc2 internal prototype to avoid an error. */
2224 /* We use char because int might match the return type of a gcc2
2225 builtin and then its argument prototype would still apply. */
2232 if { (eval echo configure:2233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2234 eval "ac_cv_lib_$ac_lib_var=yes"
2236 echo "configure: failed program was:" >&5
2237 cat conftest.$ac_ext >&5
2239 eval "ac_cv_lib_$ac_lib_var=no"
2242 LIBS="$ac_save_LIBS"
2245 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2246 echo "$ac_t""yes" 1>&6
2247 ac_tr_lib=HAVE_LIB`echo gnugetopt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2248 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2249 cat >> confdefs.h <<EOF
2250 #define $ac_tr_lib 1
2253 LIBS="-lgnugetopt $LIBS"
2256 echo "$ac_t""no" 1>&6
2259 echo $ac_n "checking for _ in -lbe""... $ac_c" 1>&6
2260 echo "configure:2261: checking for _ in -lbe" >&5
2261 ac_lib_var=`echo be'_'_ | sed 'y%./+-%__p_%'`
2262 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2263 echo $ac_n "(cached) $ac_c" 1>&6
2265 ac_save_LIBS="$LIBS"
2267 cat > conftest.$ac_ext <<EOF
2268 #line 2269 "configure"
2269 #include "confdefs.h"
2270 /* Override any gcc2 internal prototype to avoid an error. */
2271 /* We use char because int might match the return type of a gcc2
2272 builtin and then its argument prototype would still apply. */
2279 if { (eval echo configure:2280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2281 eval "ac_cv_lib_$ac_lib_var=yes"
2283 echo "configure: failed program was:" >&5
2284 cat conftest.$ac_ext >&5
2286 eval "ac_cv_lib_$ac_lib_var=no"
2289 LIBS="$ac_save_LIBS"
2292 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2293 echo "$ac_t""yes" 1>&6
2294 ac_tr_lib=HAVE_LIB`echo be | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2295 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2296 cat >> confdefs.h <<EOF
2297 #define $ac_tr_lib 1
2303 echo "$ac_t""no" 1>&6
2306 echo $ac_n "checking for _ in -lgame""... $ac_c" 1>&6
2307 echo "configure:2308: checking for _ in -lgame" >&5
2308 ac_lib_var=`echo game'_'_ | sed 'y%./+-%__p_%'`
2309 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2310 echo $ac_n "(cached) $ac_c" 1>&6
2312 ac_save_LIBS="$LIBS"
2314 cat > conftest.$ac_ext <<EOF
2315 #line 2316 "configure"
2316 #include "confdefs.h"
2317 /* Override any gcc2 internal prototype to avoid an error. */
2318 /* We use char because int might match the return type of a gcc2
2319 builtin and then its argument prototype would still apply. */
2326 if { (eval echo configure:2327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2328 eval "ac_cv_lib_$ac_lib_var=yes"
2330 echo "configure: failed program was:" >&5
2331 cat conftest.$ac_ext >&5
2333 eval "ac_cv_lib_$ac_lib_var=no"
2336 LIBS="$ac_save_LIBS"
2339 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2340 echo "$ac_t""yes" 1>&6
2341 ac_tr_lib=HAVE_LIB`echo game | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2342 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2343 cat >> confdefs.h <<EOF
2344 #define $ac_tr_lib 1
2350 echo "$ac_t""no" 1>&6
2353 echo $ac_n "checking for _ in -lroot""... $ac_c" 1>&6
2354 echo "configure:2355: checking for _ in -lroot" >&5
2355 ac_lib_var=`echo root'_'_ | sed 'y%./+-%__p_%'`
2356 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2357 echo $ac_n "(cached) $ac_c" 1>&6
2359 ac_save_LIBS="$LIBS"
2361 cat > conftest.$ac_ext <<EOF
2362 #line 2363 "configure"
2363 #include "confdefs.h"
2364 /* Override any gcc2 internal prototype to avoid an error. */
2365 /* We use char because int might match the return type of a gcc2
2366 builtin and then its argument prototype would still apply. */
2373 if { (eval echo configure:2374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2375 eval "ac_cv_lib_$ac_lib_var=yes"
2377 echo "configure: failed program was:" >&5
2378 cat conftest.$ac_ext >&5
2380 eval "ac_cv_lib_$ac_lib_var=no"
2383 LIBS="$ac_save_LIBS"
2386 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2387 echo "$ac_t""yes" 1>&6
2388 ac_tr_lib=HAVE_LIB`echo root | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2389 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2390 cat >> confdefs.h <<EOF
2391 #define $ac_tr_lib 1
2397 echo "$ac_t""no" 1>&6
2400 echo $ac_n "checking for powl in -lm""... $ac_c" 1>&6
2401 echo "configure:2402: checking for powl in -lm" >&5
2402 ac_lib_var=`echo m'_'powl | sed 'y%./+-%__p_%'`
2403 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2404 echo $ac_n "(cached) $ac_c" 1>&6
2406 ac_save_LIBS="$LIBS"
2408 cat > conftest.$ac_ext <<EOF
2409 #line 2410 "configure"
2410 #include "confdefs.h"
2411 /* Override any gcc2 internal prototype to avoid an error. */
2412 /* We use char because int might match the return type of a gcc2
2413 builtin and then its argument prototype would still apply. */
2420 if { (eval echo configure:2421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2422 eval "ac_cv_lib_$ac_lib_var=yes"
2424 echo "configure: failed program was:" >&5
2425 cat conftest.$ac_ext >&5
2427 eval "ac_cv_lib_$ac_lib_var=no"
2430 LIBS="$ac_save_LIBS"
2433 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2434 echo "$ac_t""yes" 1>&6
2435 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2436 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2437 cat >> confdefs.h <<EOF
2438 #define $ac_tr_lib 1
2444 echo "$ac_t""no" 1>&6
2447 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
2448 echo "configure:2449: checking for pthread_create in -lpthread" >&5
2449 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
2450 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2451 echo $ac_n "(cached) $ac_c" 1>&6
2453 ac_save_LIBS="$LIBS"
2454 LIBS="-lpthread $LIBS"
2455 cat > conftest.$ac_ext <<EOF
2456 #line 2457 "configure"
2457 #include "confdefs.h"
2458 /* Override any gcc2 internal prototype to avoid an error. */
2459 /* We use char because int might match the return type of a gcc2
2460 builtin and then its argument prototype would still apply. */
2461 char pthread_create();
2467 if { (eval echo configure:2468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2469 eval "ac_cv_lib_$ac_lib_var=yes"
2471 echo "configure: failed program was:" >&5
2472 cat conftest.$ac_ext >&5
2474 eval "ac_cv_lib_$ac_lib_var=no"
2477 LIBS="$ac_save_LIBS"
2480 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2481 echo "$ac_t""yes" 1>&6
2482 ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2483 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2484 cat >> confdefs.h <<EOF
2485 #define $ac_tr_lib 1
2488 LIBS="-lpthread $LIBS"
2491 echo "$ac_t""no" 1>&6
2494 echo $ac_n "checking for thread_create in -lthreads""... $ac_c" 1>&6
2495 echo "configure:2496: checking for thread_create in -lthreads" >&5
2496 ac_lib_var=`echo threads'_'thread_create | sed 'y%./+-%__p_%'`
2497 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2498 echo $ac_n "(cached) $ac_c" 1>&6
2500 ac_save_LIBS="$LIBS"
2501 LIBS="-lthreads $LIBS"
2502 cat > conftest.$ac_ext <<EOF
2503 #line 2504 "configure"
2504 #include "confdefs.h"
2505 /* Override any gcc2 internal prototype to avoid an error. */
2506 /* We use char because int might match the return type of a gcc2
2507 builtin and then its argument prototype would still apply. */
2508 char thread_create();
2514 if { (eval echo configure:2515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2516 eval "ac_cv_lib_$ac_lib_var=yes"
2518 echo "configure: failed program was:" >&5
2519 cat conftest.$ac_ext >&5
2521 eval "ac_cv_lib_$ac_lib_var=no"
2524 LIBS="$ac_save_LIBS"
2527 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2528 echo "$ac_t""yes" 1>&6
2529 ac_tr_lib=HAVE_LIB`echo threads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2530 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2531 cat >> confdefs.h <<EOF
2532 #define $ac_tr_lib 1
2535 LIBS="-lthreads $LIBS"
2538 echo "$ac_t""no" 1>&6
2542 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
2543 echo "configure:2544: checking for getopt_long" >&5
2544 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
2545 echo $ac_n "(cached) $ac_c" 1>&6
2547 cat > conftest.$ac_ext <<EOF
2548 #line 2549 "configure"
2549 #include "confdefs.h"
2550 /* System header to define __stub macros and hopefully few prototypes,
2551 which can conflict with char getopt_long(); below. */
2553 /* Override any gcc2 internal prototype to avoid an error. */
2554 /* We use char because int might match the return type of a gcc2
2555 builtin and then its argument prototype would still apply. */
2560 /* The GNU C library defines this for functions which it implements
2561 to always fail with ENOSYS. Some functions are actually named
2562 something starting with __ and the normal name is an alias. */
2563 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
2571 if { (eval echo configure:2572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2573 eval "ac_cv_func_getopt_long=yes"
2575 echo "configure: failed program was:" >&5
2576 cat conftest.$ac_ext >&5
2578 eval "ac_cv_func_getopt_long=no"
2583 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
2584 echo "$ac_t""yes" 1>&6
2587 echo "$ac_t""no" 1>&6
2588 LIBOBJS="$LIBOBJS getopt.o getopt1.o"
2593 CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
2594 for ac_hdr in stddef.h
2596 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2597 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2598 echo "configure:2599: checking for $ac_hdr" >&5
2599 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2600 echo $ac_n "(cached) $ac_c" 1>&6
2602 cat > conftest.$ac_ext <<EOF
2603 #line 2604 "configure"
2604 #include "confdefs.h"
2607 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2608 { (eval echo configure:2609: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2609 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2610 if test -z "$ac_err"; then
2612 eval "ac_cv_header_$ac_safe=yes"
2615 echo "configure: failed program was:" >&5
2616 cat conftest.$ac_ext >&5
2618 eval "ac_cv_header_$ac_safe=no"
2622 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2623 echo "$ac_t""yes" 1>&6
2624 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2625 cat >> confdefs.h <<EOF
2626 #define $ac_tr_hdr 1
2630 echo "$ac_t""no" 1>&6
2634 for ac_hdr in getopt.h
2636 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2637 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2638 echo "configure:2639: checking for $ac_hdr" >&5
2639 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2640 echo $ac_n "(cached) $ac_c" 1>&6
2642 cat > conftest.$ac_ext <<EOF
2643 #line 2644 "configure"
2644 #include "confdefs.h"
2647 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2648 { (eval echo configure:2649: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2649 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2650 if test -z "$ac_err"; then
2652 eval "ac_cv_header_$ac_safe=yes"
2655 echo "configure: failed program was:" >&5
2656 cat conftest.$ac_ext >&5
2658 eval "ac_cv_header_$ac_safe=no"
2662 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2663 echo "$ac_t""yes" 1>&6
2664 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2665 cat >> confdefs.h <<EOF
2666 #define $ac_tr_hdr 1
2670 echo "$ac_t""no" 1>&6
2674 for ac_hdr in sys/sockio.h
2676 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2677 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2678 echo "configure:2679: checking for $ac_hdr" >&5
2679 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2680 echo $ac_n "(cached) $ac_c" 1>&6
2682 cat > conftest.$ac_ext <<EOF
2683 #line 2684 "configure"
2684 #include "confdefs.h"
2687 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2688 { (eval echo configure:2689: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2689 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2690 if test -z "$ac_err"; then
2692 eval "ac_cv_header_$ac_safe=yes"
2695 echo "configure: failed program was:" >&5
2696 cat conftest.$ac_ext >&5
2698 eval "ac_cv_header_$ac_safe=no"
2702 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2703 echo "$ac_t""yes" 1>&6
2704 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2705 cat >> confdefs.h <<EOF
2706 #define $ac_tr_hdr 1
2710 echo "$ac_t""no" 1>&6
2714 for ac_hdr in fcntl.h sys/time.h unistd.h
2716 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2717 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2718 echo "configure:2719: checking for $ac_hdr" >&5
2719 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2720 echo $ac_n "(cached) $ac_c" 1>&6
2722 cat > conftest.$ac_ext <<EOF
2723 #line 2724 "configure"
2724 #include "confdefs.h"
2727 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2728 { (eval echo configure:2729: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2729 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2730 if test -z "$ac_err"; then
2732 eval "ac_cv_header_$ac_safe=yes"
2735 echo "configure: failed program was:" >&5
2736 cat conftest.$ac_ext >&5
2738 eval "ac_cv_header_$ac_safe=no"
2742 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2743 echo "$ac_t""yes" 1>&6
2744 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2745 cat >> confdefs.h <<EOF
2746 #define $ac_tr_hdr 1
2750 echo "$ac_t""no" 1>&6
2754 for ac_hdr in sys/soundcard.h machine/soundcard.h
2756 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2757 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2758 echo "configure:2759: checking for $ac_hdr" >&5
2759 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2760 echo $ac_n "(cached) $ac_c" 1>&6
2762 cat > conftest.$ac_ext <<EOF
2763 #line 2764 "configure"
2764 #include "confdefs.h"
2767 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2768 { (eval echo configure:2769: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2769 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2770 if test -z "$ac_err"; then
2772 eval "ac_cv_header_$ac_safe=yes"
2775 echo "configure: failed program was:" >&5
2776 cat conftest.$ac_ext >&5
2778 eval "ac_cv_header_$ac_safe=no"
2782 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2783 echo "$ac_t""yes" 1>&6
2784 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2785 cat >> confdefs.h <<EOF
2786 #define $ac_tr_hdr 1
2790 echo "$ac_t""no" 1>&6
2794 for ac_hdr in dlfcn.h image.h
2796 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2797 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2798 echo "configure:2799: checking for $ac_hdr" >&5
2799 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2800 echo $ac_n "(cached) $ac_c" 1>&6
2802 cat > conftest.$ac_ext <<EOF
2803 #line 2804 "configure"
2804 #include "confdefs.h"
2807 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2808 { (eval echo configure:2809: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2809 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2810 if test -z "$ac_err"; then
2812 eval "ac_cv_header_$ac_safe=yes"
2815 echo "configure: failed program was:" >&5
2816 cat conftest.$ac_ext >&5
2818 eval "ac_cv_header_$ac_safe=no"
2822 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2823 echo "$ac_t""yes" 1>&6
2824 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2825 cat >> confdefs.h <<EOF
2826 #define $ac_tr_hdr 1
2830 echo "$ac_t""no" 1>&6
2834 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
2836 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2837 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2838 echo "configure:2839: checking for $ac_hdr" >&5
2839 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2840 echo $ac_n "(cached) $ac_c" 1>&6
2842 cat > conftest.$ac_ext <<EOF
2843 #line 2844 "configure"
2844 #include "confdefs.h"
2847 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2848 { (eval echo configure:2849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2849 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2850 if test -z "$ac_err"; then
2852 eval "ac_cv_header_$ac_safe=yes"
2855 echo "configure: failed program was:" >&5
2856 cat conftest.$ac_ext >&5
2858 eval "ac_cv_header_$ac_safe=no"
2862 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2863 echo "$ac_t""yes" 1>&6
2864 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2865 cat >> confdefs.h <<EOF
2866 #define $ac_tr_hdr 1
2870 echo "$ac_t""no" 1>&6
2874 for ac_hdr in machine/param.h
2876 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2877 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2878 echo "configure:2879: checking for $ac_hdr" >&5
2879 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2880 echo $ac_n "(cached) $ac_c" 1>&6
2882 cat > conftest.$ac_ext <<EOF
2883 #line 2884 "configure"
2884 #include "confdefs.h"
2887 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2888 { (eval echo configure:2889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2889 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2890 if test -z "$ac_err"; then
2892 eval "ac_cv_header_$ac_safe=yes"
2895 echo "configure: failed program was:" >&5
2896 cat conftest.$ac_ext >&5
2898 eval "ac_cv_header_$ac_safe=no"
2902 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2903 echo "$ac_t""yes" 1>&6
2904 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2905 cat >> confdefs.h <<EOF
2906 #define $ac_tr_hdr 1
2910 echo "$ac_t""no" 1>&6
2915 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
2917 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2918 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2919 echo "configure:2920: checking for $ac_hdr" >&5
2920 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2921 echo $ac_n "(cached) $ac_c" 1>&6
2923 cat > conftest.$ac_ext <<EOF
2924 #line 2925 "configure"
2925 #include "confdefs.h"
2928 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2929 { (eval echo configure:2930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2930 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2931 if test -z "$ac_err"; then
2933 eval "ac_cv_header_$ac_safe=yes"
2936 echo "configure: failed program was:" >&5
2937 cat conftest.$ac_ext >&5
2939 eval "ac_cv_header_$ac_safe=no"
2943 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2944 echo "$ac_t""yes" 1>&6
2945 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2946 cat >> confdefs.h <<EOF
2947 #define $ac_tr_hdr 1
2951 echo "$ac_t""no" 1>&6
2958 CFLAGS="${CFLAGS} -Wall -Werror"
2959 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
2960 echo "configure:2961: checking for ntohl in sys/param.h" >&5
2961 cat > conftest.$ac_ext <<EOF
2962 #line 2963 "configure"
2963 #include "confdefs.h"
2964 #include <sys/param.h>
2965 void foo() { int meuh; ntohl(meuh); }
2970 if { (eval echo configure:2971: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2972 cat >> confdefs.h <<\EOF
2973 #define NTOHL_IN_SYS_PARAM_H 1
2976 echo "$ac_t""yes" 1>&6
2978 echo "configure: failed program was:" >&5
2979 cat conftest.$ac_ext >&5
2981 echo "$ac_t""no" 1>&6
2985 CFLAGS="${CFLAGS} -rdynamic"
2986 echo $ac_n "checking if \$CC accepts -rdynamic""... $ac_c" 1>&6
2987 echo "configure:2988: checking if \$CC accepts -rdynamic" >&5
2988 cat > conftest.$ac_ext <<EOF
2989 #line 2990 "configure"
2990 #include "confdefs.h"
2996 if { (eval echo configure:2997: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2998 DYNAMIC_FLAG="-rdynamic"
2999 echo "$ac_t""yes" 1>&6
3001 echo "configure: failed program was:" >&5
3002 cat conftest.$ac_ext >&5
3004 echo "$ac_t""no" 1>&6
3010 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
3011 echo "configure:3012: checking for boolean_t in sys/types.h" >&5
3012 cat > conftest.$ac_ext <<EOF
3013 #line 3014 "configure"
3014 #include "confdefs.h"
3015 #include <sys/types.h>
3016 void quux() { boolean_t foo; }
3021 if { (eval echo configure:3022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3023 cat >> confdefs.h <<\EOF
3024 #define BOOLEAN_T_IN_SYS_TYPES_H 1
3027 echo "$ac_t""yes" 1>&6
3029 echo "configure: failed program was:" >&5
3030 cat conftest.$ac_ext >&5
3032 echo "$ac_t""no" 1>&6
3036 echo $ac_n "checking for working const""... $ac_c" 1>&6
3037 echo "configure:3038: checking for working const" >&5
3038 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3039 echo $ac_n "(cached) $ac_c" 1>&6
3041 cat > conftest.$ac_ext <<EOF
3042 #line 3043 "configure"
3043 #include "confdefs.h"
3047 /* Ultrix mips cc rejects this. */
3048 typedef int charset[2]; const charset x = {0,0};
3049 /* SunOS 4.1.1 cc rejects this. */
3050 char const *const *ccp;
3052 /* NEC SVR4.0.2 mips cc rejects this. */
3053 struct point {int x, y;};
3054 static struct point const zero = {0,0};
3055 /* AIX XL C 1.02.0.0 rejects this.
3056 It does not let you subtract one const X* pointer from another in an arm
3057 of an if-expression whose if-part is not a constant expression */
3058 const char *g = "string";
3059 ccp = &g + (g ? g-g : 0);
3060 /* HPUX 7.0 cc rejects these. */
3063 ccp = (char const *const *) p;
3064 { /* SCO 3.2v4 cc rejects this. */
3066 char const *s = 0 ? (char *) 0 : (char const *) 0;
3070 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3072 const int *foo = &x[0];
3075 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3076 typedef const int *iptr;
3080 { /* AIX XL C 1.02.0.0 rejects this saying
3081 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3082 struct s { int j; const int *ap[3]; };
3083 struct s *b; b->j = 5;
3085 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3091 if { (eval echo configure:3092: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3095 echo "configure: failed program was:" >&5
3096 cat conftest.$ac_ext >&5
3103 echo "$ac_t""$ac_cv_c_const" 1>&6
3104 if test $ac_cv_c_const = no; then
3105 cat >> confdefs.h <<\EOF
3111 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3112 echo "configure:3113: checking for ANSI C header files" >&5
3113 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3114 echo $ac_n "(cached) $ac_c" 1>&6
3116 cat > conftest.$ac_ext <<EOF
3117 #line 3118 "configure"
3118 #include "confdefs.h"
3124 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3125 { (eval echo configure:3126: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3126 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3127 if test -z "$ac_err"; then
3129 ac_cv_header_stdc=yes
3132 echo "configure: failed program was:" >&5
3133 cat conftest.$ac_ext >&5
3135 ac_cv_header_stdc=no
3139 if test $ac_cv_header_stdc = yes; then
3140 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3141 cat > conftest.$ac_ext <<EOF
3142 #line 3143 "configure"
3143 #include "confdefs.h"
3146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3147 egrep "memchr" >/dev/null 2>&1; then
3151 ac_cv_header_stdc=no
3157 if test $ac_cv_header_stdc = yes; then
3158 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3159 cat > conftest.$ac_ext <<EOF
3160 #line 3161 "configure"
3161 #include "confdefs.h"
3164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3165 egrep "free" >/dev/null 2>&1; then
3169 ac_cv_header_stdc=no
3175 if test $ac_cv_header_stdc = yes; then
3176 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3177 if test "$cross_compiling" = yes; then
3180 cat > conftest.$ac_ext <<EOF
3181 #line 3182 "configure"
3182 #include "confdefs.h"
3184 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3185 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3186 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3187 int main () { int i; for (i = 0; i < 256; i++)
3188 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3192 if { (eval echo configure:3193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3196 echo "configure: failed program was:" >&5
3197 cat conftest.$ac_ext >&5
3199 ac_cv_header_stdc=no
3207 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3208 if test $ac_cv_header_stdc = yes; then
3209 cat >> confdefs.h <<\EOF
3210 #define STDC_HEADERS 1
3215 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3216 echo "configure:3217: checking for size_t" >&5
3217 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3218 echo $ac_n "(cached) $ac_c" 1>&6
3220 cat > conftest.$ac_ext <<EOF
3221 #line 3222 "configure"
3222 #include "confdefs.h"
3223 #include <sys/types.h>
3229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3230 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3232 ac_cv_type_size_t=yes
3235 ac_cv_type_size_t=no
3240 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3241 if test $ac_cv_type_size_t = no; then
3242 cat >> confdefs.h <<\EOF
3243 #define size_t unsigned
3248 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3249 echo "configure:3250: checking whether time.h and sys/time.h may both be included" >&5
3250 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3251 echo $ac_n "(cached) $ac_c" 1>&6
3253 cat > conftest.$ac_ext <<EOF
3254 #line 3255 "configure"
3255 #include "confdefs.h"
3256 #include <sys/types.h>
3257 #include <sys/time.h>
3263 if { (eval echo configure:3264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3265 ac_cv_header_time=yes
3267 echo "configure: failed program was:" >&5
3268 cat conftest.$ac_ext >&5
3270 ac_cv_header_time=no
3275 echo "$ac_t""$ac_cv_header_time" 1>&6
3276 if test $ac_cv_header_time = yes; then
3277 cat >> confdefs.h <<\EOF
3278 #define TIME_WITH_SYS_TIME 1
3284 PLUGINS=${PLUGINS}"ps ts yuv idct idctclassic motion "
3285 if test x$host_os = xbeos; then
3286 ACCEL_PLUGINS="yuvmmx idctmmx motionmmx "
3288 ACCEL_PLUGINS="yuvmmx idctmmx idctmmxext motionmmx motionmmxext "
3291 for ac_hdr in sys/ioctl.h
3293 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3294 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3295 echo "configure:3296: checking for $ac_hdr" >&5
3296 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3297 echo $ac_n "(cached) $ac_c" 1>&6
3299 cat > conftest.$ac_ext <<EOF
3300 #line 3301 "configure"
3301 #include "confdefs.h"
3304 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3305 { (eval echo configure:3306: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3306 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3307 if test -z "$ac_err"; then
3309 eval "ac_cv_header_$ac_safe=yes"
3312 echo "configure: failed program was:" >&5
3313 cat conftest.$ac_ext >&5
3315 eval "ac_cv_header_$ac_safe=no"
3319 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3320 echo "$ac_t""yes" 1>&6
3321 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3322 cat >> confdefs.h <<EOF
3323 #define $ac_tr_hdr 1
3325 PLUGINS=${PLUGINS}"dvd "
3326 for ac_hdr in linux/cdrom.h
3328 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3329 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3330 echo "configure:3331: checking for $ac_hdr" >&5
3331 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3332 echo $ac_n "(cached) $ac_c" 1>&6
3334 cat > conftest.$ac_ext <<EOF
3335 #line 3336 "configure"
3336 #include "confdefs.h"
3339 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3340 { (eval echo configure:3341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3341 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3342 if test -z "$ac_err"; then
3344 eval "ac_cv_header_$ac_safe=yes"
3347 echo "configure: failed program was:" >&5
3348 cat conftest.$ac_ext >&5
3350 eval "ac_cv_header_$ac_safe=no"
3354 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3355 echo "$ac_t""yes" 1>&6
3356 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3357 cat >> confdefs.h <<EOF
3358 #define $ac_tr_hdr 1
3362 echo "$ac_t""no" 1>&6
3366 cat > conftest.$ac_ext <<EOF
3367 #line 3368 "configure"
3368 #include "confdefs.h"
3369 #include <linux/cdrom.h>
3371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3372 egrep "dvd" >/dev/null 2>&1; then
3374 cat >> confdefs.h <<\EOF
3382 echo "$ac_t""no" 1>&6
3388 # Check whether --enable-ppro or --disable-ppro was given.
3389 if test "${enable_ppro+set}" = set; then
3390 enableval="$enable_ppro"
3391 if test x$enableval = xyes; then ARCH=${ARCH}" ppro"; fi
3393 if test x${host_cpu} = xi686; then ARCH=${ARCH}" ppro"; fi
3396 # Check whether --enable-mmx or --disable-mmx was given.
3397 if test "${enable_mmx+set}" = set; then
3398 enableval="$enable_mmx"
3399 if test x$enableval = xyes; then ARCH=${ARCH}" mmx"; PLUGINS=${PLUGINS}${ACCEL_PLUGINS}; fi
3401 if test x${host_cpu} = xi686 -o x${host_cpu} = xi586; then ARCH=${ARCH}" mmx"; PLUGINS=${PLUGINS}${ACCEL_PLUGINS}; fi
3404 # Check whether --enable-css or --disable-css was given.
3405 if test "${enable_css+set}" = set; then
3406 enableval="$enable_css"
3407 if test x$enableval = xyes; then CSS=1; else CSS=0; fi
3412 if test x${CSS} = x1; then cat >> confdefs.h <<\EOF
3416 # Check whether --enable-debug or --disable-debug was given.
3417 if test "${enable_debug+set}" = set; then
3418 enableval="$enable_debug"
3419 if test x$enableval = xyes; then DEBUG=1; fi
3422 # Check whether --enable-stats or --disable-stats was given.
3423 if test "${enable_stats+set}" = set; then
3424 enableval="$enable_stats"
3425 if test x$enableval = xyes; then STATS=1; fi
3428 # Check whether --enable-optimizations or --disable-optimizations was given.
3429 if test "${enable_optimizations+set}" = set; then
3430 enableval="$enable_optimizations"
3431 if test x$enableval = xno; then OPTIMS=0; fi
3440 if test x$host_os = xbeos; then
3441 PLUGINS=${PLUGINS}"dummy null beos "
3448 # Check whether --enable-dummy or --disable-dummy was given.
3449 if test "${enable_dummy+set}" = set; then
3450 enableval="$enable_dummy"
3454 if test x$enable_dummy != xno; then PLUGINS=${PLUGINS}"dummy "; fi
3455 # Check whether --enable-null or --disable-null was given.
3456 if test "${enable_null+set}" = set; then
3457 enableval="$enable_null"
3461 if test x$enable_null != xno; then PLUGINS=${PLUGINS}"null "; fi
3462 # Check whether --enable-dsp or --disable-dsp was given.
3463 if test "${enable_dsp+set}" = set; then
3464 enableval="$enable_dsp"
3468 if test x$enable_dsp != xno; then PLUGINS=${PLUGINS}"dsp "; fi
3469 # Check whether --enable-esd or --disable-esd was given.
3470 if test "${enable_esd+set}" = set; then
3471 enableval="$enable_esd"
3472 if test x$enable_esd = xyes; then PLUGINS=${PLUGINS}"esd "; fi
3475 # Check whether --enable-fb or --disable-fb was given.
3476 if test "${enable_fb+set}" = set; then
3477 enableval="$enable_fb"
3478 if test x$enable_fb = xyes; then PLUGINS=${PLUGINS}"fb "; fi
3481 # Check whether --with-ggi or --without-ggi was given.
3482 if test "${with_ggi+set}" = set; then
3484 if test "x$withval" != "xno";
3486 PLUGINS=${PLUGINS}"ggi ";
3487 if test "x$withval" != "xyes";
3489 LIB_GGI="-l"$withval
3496 # Check whether --with-sdl or --without-sdl was given.
3497 if test "${with_sdl+set}" = set; then
3499 if test "x$withval" != "xno";
3501 PLUGINS=${PLUGINS}"sdl ";
3502 if test "x$withval" != "xyes";
3504 LIB_SDL="L/usr/X11R6/lib -l"$withval
3506 LIB_SDL="-L/usr/X11R6/lib -lSDL"
3511 if test "x$withval" = "x";
3513 PLUGINS=${PLUGINS}"sdl "
3514 LIB_SDL="-L/usr/X11R6/lib -lSDL"
3516 # Check whether --with-glide or --without-glide was given.
3517 if test "${with_glide+set}" = set; then
3518 withval="$with_glide"
3519 if test "x$withval" != "xno";
3521 PLUGINS=${PLUGINS}"glide ";
3522 if test "x$withval" != "xyes";
3524 LIB_GLIDE="-l"$withval
3526 LIB_GLIDE="-lglide2x"
3531 # Check whether --enable-ncurses or --disable-ncurses was given.
3532 if test "${enable_ncurses+set}" = set; then
3533 enableval="$enable_ncurses"
3534 if test x$enable_ncurses = xyes; then PLUGINS=${PLUGINS}"ncurses "; fi
3537 # Check whether --enable-kde or --disable-kde was given.
3538 if test "${enable_kde+set}" = set; then
3539 enableval="$enable_kde"
3540 if test x$enable_kde = xyes; then PLUGINS=${PLUGINS}"kde "; KVLC=1; fi
3543 # Check whether --enable-gnome or --disable-gnome was given.
3544 if test "${enable_gnome+set}" = set; then
3545 enableval="$enable_gnome"
3546 if test x$enable_gnome = xyes; then PLUGINS=${PLUGINS}"gnome "; GVLC=1; fi
3549 # Check whether --enable-gtk or --disable-gtk was given.
3550 if test "${enable_gtk+set}" = set; then
3551 enableval="$enable_gtk"
3555 if test x$enable_gtk != xno; then PLUGINS=${PLUGINS}"gtk "; GVLC=1; fi
3556 # Check whether --enable-x11 or --disable-x11 was given.
3557 if test "${enable_x11+set}" = set; then
3558 enableval="$enable_x11"
3562 if test x$enable_x11 != xno; then PLUGINS=${PLUGINS}"x11 "; fi
3564 # Check whether --enable-alsa or --disable-alsa was given.
3565 if test "${enable_alsa+set}" = set; then
3566 enableval="$enable_alsa"
3567 if test x$enable_alsa = xyes; then ac_safe=`echo "sys/asoundlib.h" | sed 'y%./+-%__p_%'`
3568 echo $ac_n "checking for sys/asoundlib.h""... $ac_c" 1>&6
3569 echo "configure:3570: checking for sys/asoundlib.h" >&5
3570 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3571 echo $ac_n "(cached) $ac_c" 1>&6
3573 cat > conftest.$ac_ext <<EOF
3574 #line 3575 "configure"
3575 #include "confdefs.h"
3576 #include <sys/asoundlib.h>
3578 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3579 { (eval echo configure:3580: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3580 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3581 if test -z "$ac_err"; then
3583 eval "ac_cv_header_$ac_safe=yes"
3586 echo "configure: failed program was:" >&5
3587 cat conftest.$ac_ext >&5
3589 eval "ac_cv_header_$ac_safe=no"
3593 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3594 echo "$ac_t""yes" 1>&6
3595 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
3596 echo "configure:3597: checking for main in -lasound" >&5
3597 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
3598 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3599 echo $ac_n "(cached) $ac_c" 1>&6
3601 ac_save_LIBS="$LIBS"
3602 LIBS="-lasound $LIBS"
3603 cat > conftest.$ac_ext <<EOF
3604 #line 3605 "configure"
3605 #include "confdefs.h"
3611 if { (eval echo configure:3612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3613 eval "ac_cv_lib_$ac_lib_var=yes"
3615 echo "configure: failed program was:" >&5
3616 cat conftest.$ac_ext >&5
3618 eval "ac_cv_lib_$ac_lib_var=no"
3621 LIBS="$ac_save_LIBS"
3624 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3625 echo "$ac_t""yes" 1>&6
3628 echo "$ac_t""no" 1>&6
3633 echo "$ac_t""no" 1>&6
3636 if test $have_alsa = true; then PLUGINS=${PLUGINS}"alsa "; fi; fi
3640 if test x$GVLC = x1 ; then ALIASES=${ALIASES}"gvlc "; fi
3641 if test x$KVLC = x1 ; then ALIASES=${ALIASES}"kvlc "; fi
3659 cat > confcache <<\EOF
3660 # This file is a shell script that caches the results of configure
3661 # tests run on this system so they can be shared between configure
3662 # scripts and configure runs. It is not useful on other systems.
3663 # If it contains results you don't want to keep, you may remove or edit it.
3665 # By default, configure uses ./config.cache as the cache file,
3666 # creating it if it does not exist already. You can give configure
3667 # the --cache-file=FILE option to use a different cache file; that is
3668 # what configure does when it calls configure scripts in
3669 # subdirectories, so they share the cache.
3670 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3671 # config.status only pays attention to the cache file if you give it the
3672 # --recheck option to rerun configure.
3675 # The following way of writing the cache mishandles newlines in values,
3676 # but we know of no workaround that is simple, portable, and efficient.
3677 # So, don't put newlines in cache variables' values.
3678 # Ultrix sh set writes to stderr and can't be redirected directly,
3679 # and sets the high bit in the cache file unless we assign to the vars.
3681 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3683 # `set' does not quote correctly, so add quotes (double-quote substitution
3684 # turns \\\\ into \\, and sed turns \\ into \).
3686 -e "s/'/'\\\\''/g" \
3687 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3690 # `set' quotes correctly as required by POSIX, so do not add quotes.
3691 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3694 if cmp -s $cache_file confcache; then
3697 if test -w $cache_file; then
3698 echo "updating cache $cache_file"
3699 cat confcache > $cache_file
3701 echo "not updating unwritable cache $cache_file"
3706 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3708 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3709 # Let make expand exec_prefix.
3710 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3712 # Any assignment to VPATH causes Sun make to only execute
3713 # the first set of double-colon rules, so remove it if not needed.
3714 # If there is a colon in the path, we need to keep it.
3715 if test "x$srcdir" = x.; then
3716 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3719 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3721 DEFS=-DHAVE_CONFIG_H
3723 # Without the "./", some shells look in PATH for config.status.
3724 : ${CONFIG_STATUS=./config.status}
3726 echo creating $CONFIG_STATUS
3727 rm -f $CONFIG_STATUS
3728 cat > $CONFIG_STATUS <<EOF
3730 # Generated automatically by configure.
3731 # Run this file to recreate the current configuration.
3732 # This directory was configured as follows,
3733 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3735 # $0 $ac_configure_args
3737 # Compiler output produced by configure, useful for debugging
3738 # configure, is in ./config.log if it exists.
3740 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3743 case "\$ac_option" in
3744 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3745 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3746 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3747 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3748 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3750 -help | --help | --hel | --he | --h)
3751 echo "\$ac_cs_usage"; exit 0 ;;
3752 *) echo "\$ac_cs_usage"; exit 1 ;;
3756 ac_given_srcdir=$srcdir
3757 ac_given_INSTALL="$INSTALL"
3759 trap 'rm -fr `echo "Makefile include/config.h include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3761 cat >> $CONFIG_STATUS <<EOF
3763 # Protect against being on the right side of a sed subst in config.status.
3764 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3765 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3769 s%@CFLAGS@%$CFLAGS%g
3770 s%@CPPFLAGS@%$CPPFLAGS%g
3771 s%@CXXFLAGS@%$CXXFLAGS%g
3772 s%@FFLAGS@%$FFLAGS%g
3774 s%@LDFLAGS@%$LDFLAGS%g
3776 s%@exec_prefix@%$exec_prefix%g
3777 s%@prefix@%$prefix%g
3778 s%@program_transform_name@%$program_transform_name%g
3779 s%@bindir@%$bindir%g
3780 s%@sbindir@%$sbindir%g
3781 s%@libexecdir@%$libexecdir%g
3782 s%@datadir@%$datadir%g
3783 s%@sysconfdir@%$sysconfdir%g
3784 s%@sharedstatedir@%$sharedstatedir%g
3785 s%@localstatedir@%$localstatedir%g
3786 s%@libdir@%$libdir%g
3787 s%@includedir@%$includedir%g
3788 s%@oldincludedir@%$oldincludedir%g
3789 s%@infodir@%$infodir%g
3790 s%@mandir@%$mandir%g
3792 s%@host_alias@%$host_alias%g
3793 s%@host_cpu@%$host_cpu%g
3794 s%@host_vendor@%$host_vendor%g
3795 s%@host_os@%$host_os%g
3796 s%@VLC_VERSION@%$VLC_VERSION%g
3797 s%@VLC_CODENAME@%$VLC_CODENAME%g
3798 s%@SET_MAKE@%$SET_MAKE%g
3801 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3802 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3803 s%@INSTALL_DATA@%$INSTALL_DATA%g
3804 s%@LIBOBJS@%$LIBOBJS%g
3807 s%@PLUGINS@%$PLUGINS%g
3808 s%@ALIASES@%$ALIASES%g
3811 s%@OPTIMS@%$OPTIMS%g
3813 s%@DYNAMIC_FLAG@%$DYNAMIC_FLAG%g
3814 s%@LIB_SDL@%$LIB_SDL%g
3815 s%@LIB_GLIDE@%$LIB_GLIDE%g
3816 s%@LIB_GGI@%$LIB_GGI%g
3821 cat >> $CONFIG_STATUS <<\EOF
3823 # Split the substitutions into bite-sized pieces for seds with
3824 # small command number limits, like on Digital OSF/1 and HP-UX.
3825 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3826 ac_file=1 # Number of current file.
3827 ac_beg=1 # First line for current file.
3828 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3831 while $ac_more_lines; do
3832 if test $ac_beg -gt 1; then
3833 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3835 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3837 if test ! -s conftest.s$ac_file; then
3839 rm -f conftest.s$ac_file
3841 if test -z "$ac_sed_cmds"; then
3842 ac_sed_cmds="sed -f conftest.s$ac_file"
3844 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3846 ac_file=`expr $ac_file + 1`
3848 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3851 if test -z "$ac_sed_cmds"; then
3856 cat >> $CONFIG_STATUS <<EOF
3858 CONFIG_FILES=\${CONFIG_FILES-"Makefile include/config.h"}
3860 cat >> $CONFIG_STATUS <<\EOF
3861 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3862 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3864 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3865 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3866 *) ac_file_in="${ac_file}.in" ;;
3869 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3871 # Remove last slash and all that follows it. Not all systems have dirname.
3872 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3873 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3874 # The file is in a subdirectory.
3875 test ! -d "$ac_dir" && mkdir "$ac_dir"
3876 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3877 # A "../" for each directory in $ac_dir_suffix.
3878 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3880 ac_dir_suffix= ac_dots=
3883 case "$ac_given_srcdir" in
3885 if test -z "$ac_dots"; then top_srcdir=.
3886 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3887 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3889 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3890 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3893 case "$ac_given_INSTALL" in
3894 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3895 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3898 echo creating "$ac_file"
3900 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3902 *Makefile*) ac_comsub="1i\\
3903 # $configure_input" ;;
3907 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3909 s%@configure_input@%$configure_input%g
3910 s%@srcdir@%$srcdir%g
3911 s%@top_srcdir@%$top_srcdir%g
3912 s%@INSTALL@%$INSTALL%g
3913 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3917 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3918 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3920 # ac_d sets the value in "#define NAME VALUE" lines.
3921 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3922 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3925 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3926 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3927 ac_uB='\([ ]\)%\1#\2define\3'
3930 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3931 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3932 ac_eB='$%\1#\2define\3'
3936 if test "${CONFIG_HEADERS+set}" != set; then
3938 cat >> $CONFIG_STATUS <<EOF
3939 CONFIG_HEADERS="include/defs.h"
3941 cat >> $CONFIG_STATUS <<\EOF
3943 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3944 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3946 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3947 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3948 *) ac_file_in="${ac_file}.in" ;;
3951 echo creating $ac_file
3953 rm -f conftest.frag conftest.in conftest.out
3954 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3955 cat $ac_file_inputs > conftest.in
3959 # Transform confdefs.h into a sed script conftest.vals that substitutes
3960 # the proper values into config.h.in to produce config.h. And first:
3961 # Protect against being on the right side of a sed subst in config.status.
3962 # Protect against being in an unquoted here document in config.status.
3964 cat > conftest.hdr <<\EOF
3967 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3971 sed -n -f conftest.hdr confdefs.h > conftest.vals
3974 # This sed command replaces #undef with comments. This is necessary, for
3975 # example, in the case of _POSIX_SOURCE, which is predefined and required
3976 # on some systems where configure will not decide to define it.
3977 cat >> conftest.vals <<\EOF
3978 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3981 # Break up conftest.vals because some shells have a limit on
3982 # the size of here documents, and old seds have small limits too.
3987 ac_lines=`grep -c . conftest.vals`
3988 # grep -c gives empty output for an empty file on some AIX systems.
3989 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3990 # Write a limited-size here document to conftest.frag.
3991 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3992 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3994 sed -f conftest.frag conftest.in > conftest.out
3996 mv conftest.out conftest.in
3998 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4000 mv conftest.tail conftest.vals
4004 cat >> $CONFIG_STATUS <<\EOF
4005 rm -f conftest.frag conftest.h
4006 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4007 cat conftest.in >> conftest.h
4009 if cmp -s $ac_file conftest.h 2>/dev/null; then
4010 echo "$ac_file is unchanged"
4013 # Remove last slash and all that follows it. Not all systems have dirname.
4014 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4015 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4016 # The file is in a subdirectory.
4017 test ! -d "$ac_dir" && mkdir "$ac_dir"
4020 mv conftest.h $ac_file
4025 cat >> $CONFIG_STATUS <<EOF
4028 cat >> $CONFIG_STATUS <<\EOF
4032 chmod +x $CONFIG_STATUS
4033 rm -fr confdefs* $ac_clean_files
4034 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4040 vlc version : ${VLC_VERSION}
4042 architecture : ${ARCH}
4043 debug mode : ${DEBUG}
4044 statistics : ${STATS}
4045 optimizations : ${OPTIMS}
4046 CSS decryption : ${CSS}
4047 plugins : ${PLUGINS}
4048 vlc aliases : ${ALIASES}