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 --enable-debug Enable debug mode (default disabled)"
21 --enable-stats Enable printing of statistics (default disabled)"
23 --disable-optimizations Disable compiler optimizations (default enabled)"
25 --disable-dummy dummy module (default enabled)"
27 --disable-null Null module (default enabled)"
29 --disable-dsp Linux /dev/dsp support (default enabled)"
31 --enable-esd Esound library support (default disabled)"
33 --enable-fb Linux framebuffer support (default disabled)"
35 --with-ggi[=name] GGI support (default disabled)"
37 --with-sdl[=name] SDL support (default enabled)"
39 --with-glide[=name] Glide (3dfx) support (default disabled)"
41 --enable-ncurses ncurses interface support (default disabled)"
43 --enable-kde KDE interface support (default disabled)"
45 --disable-gnome Gnome support (default enabled)"
47 --disable-x11 X11 support (default enabled)"
49 --enable-alsa Alsa sound drivers support (Only for linux) (default disabled)"
51 # Initialize some variables set by options.
52 # The variables have the same names as the options, with
53 # dashes changed to underlines.
55 cache_file=./config.cache
64 program_transform_name=s,x,x,
72 bindir='${exec_prefix}/bin'
73 sbindir='${exec_prefix}/sbin'
74 libexecdir='${exec_prefix}/libexec'
75 datadir='${prefix}/share'
76 sysconfdir='${prefix}/etc'
77 sharedstatedir='${prefix}/com'
78 localstatedir='${prefix}/var'
79 libdir='${exec_prefix}/lib'
80 includedir='${prefix}/include'
81 oldincludedir='/usr/include'
82 infodir='${prefix}/info'
83 mandir='${prefix}/man'
85 # Initialize some other variables.
88 SHELL=${CONFIG_SHELL-/bin/sh}
89 # Maximum number of lines to put in a shell here document.
96 # If the previous option needs an argument, assign it.
97 if test -n "$ac_prev"; then
98 eval "$ac_prev=\$ac_option"
104 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
108 # Accept the important Cygnus configure options, so we can diagnose typos.
112 -bindir | --bindir | --bindi | --bind | --bin | --bi)
114 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
115 bindir="$ac_optarg" ;;
117 -build | --build | --buil | --bui | --bu)
119 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
120 build="$ac_optarg" ;;
122 -cache-file | --cache-file | --cache-fil | --cache-fi \
123 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
124 ac_prev=cache_file ;;
125 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
126 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
127 cache_file="$ac_optarg" ;;
129 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
131 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
133 datadir="$ac_optarg" ;;
135 -disable-* | --disable-*)
136 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
137 # Reject names that are not valid shell variable names.
138 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
139 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
141 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
142 eval "enable_${ac_feature}=no" ;;
144 -enable-* | --enable-*)
145 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
146 # Reject names that are not valid shell variable names.
147 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
148 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
150 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
155 eval "enable_${ac_feature}='$ac_optarg'" ;;
157 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
158 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
159 | --exec | --exe | --ex)
160 ac_prev=exec_prefix ;;
161 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
162 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
163 | --exec=* | --exe=* | --ex=*)
164 exec_prefix="$ac_optarg" ;;
166 -gas | --gas | --ga | --g)
167 # Obsolete; use --with-gas.
170 -help | --help | --hel | --he)
171 # Omit some internal or obsolete options to make the list less imposing.
172 # This message is too long to be a string in the A/UX 3.1 sh.
174 Usage: configure [options] [host]
175 Options: [defaults in brackets after descriptions]
177 --cache-file=FILE cache test results in FILE
178 --help print this message
179 --no-create do not create output files
180 --quiet, --silent do not print \`checking...' messages
181 --version print the version of autoconf that created configure
182 Directory and file names:
183 --prefix=PREFIX install architecture-independent files in PREFIX
185 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
187 --bindir=DIR user executables in DIR [EPREFIX/bin]
188 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
189 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
190 --datadir=DIR read-only architecture-independent data in DIR
192 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
193 --sharedstatedir=DIR modifiable architecture-independent data in DIR
195 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
196 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
197 --includedir=DIR C header files in DIR [PREFIX/include]
198 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
199 --infodir=DIR info documentation in DIR [PREFIX/info]
200 --mandir=DIR man documentation in DIR [PREFIX/man]
201 --srcdir=DIR find the sources in DIR [configure dir or ..]
202 --program-prefix=PREFIX prepend PREFIX to installed program names
203 --program-suffix=SUFFIX append SUFFIX to installed program names
204 --program-transform-name=PROGRAM
205 run sed PROGRAM on installed program names
209 --build=BUILD configure for building on BUILD [BUILD=HOST]
210 --host=HOST configure for HOST [guessed]
211 --target=TARGET configure for TARGET [TARGET=HOST]
212 Features and packages:
213 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
214 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
215 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
216 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
217 --x-includes=DIR X include files are in DIR
218 --x-libraries=DIR X library files are in DIR
220 if test -n "$ac_help"; then
221 echo "--enable and --with options recognized:$ac_help"
225 -host | --host | --hos | --ho)
227 -host=* | --host=* | --hos=* | --ho=*)
230 -includedir | --includedir | --includedi | --included | --include \
231 | --includ | --inclu | --incl | --inc)
232 ac_prev=includedir ;;
233 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
234 | --includ=* | --inclu=* | --incl=* | --inc=*)
235 includedir="$ac_optarg" ;;
237 -infodir | --infodir | --infodi | --infod | --info | --inf)
239 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
240 infodir="$ac_optarg" ;;
242 -libdir | --libdir | --libdi | --libd)
244 -libdir=* | --libdir=* | --libdi=* | --libd=*)
245 libdir="$ac_optarg" ;;
247 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
248 | --libexe | --libex | --libe)
249 ac_prev=libexecdir ;;
250 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
251 | --libexe=* | --libex=* | --libe=*)
252 libexecdir="$ac_optarg" ;;
254 -localstatedir | --localstatedir | --localstatedi | --localstated \
255 | --localstate | --localstat | --localsta | --localst \
256 | --locals | --local | --loca | --loc | --lo)
257 ac_prev=localstatedir ;;
258 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
259 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
260 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
261 localstatedir="$ac_optarg" ;;
263 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
265 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
266 mandir="$ac_optarg" ;;
269 # Obsolete; use --without-fp.
272 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
276 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
277 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
280 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
281 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
282 | --oldin | --oldi | --old | --ol | --o)
283 ac_prev=oldincludedir ;;
284 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
285 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
286 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
287 oldincludedir="$ac_optarg" ;;
289 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
291 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
292 prefix="$ac_optarg" ;;
294 -program-prefix | --program-prefix | --program-prefi | --program-pref \
295 | --program-pre | --program-pr | --program-p)
296 ac_prev=program_prefix ;;
297 -program-prefix=* | --program-prefix=* | --program-prefi=* \
298 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
299 program_prefix="$ac_optarg" ;;
301 -program-suffix | --program-suffix | --program-suffi | --program-suff \
302 | --program-suf | --program-su | --program-s)
303 ac_prev=program_suffix ;;
304 -program-suffix=* | --program-suffix=* | --program-suffi=* \
305 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
306 program_suffix="$ac_optarg" ;;
308 -program-transform-name | --program-transform-name \
309 | --program-transform-nam | --program-transform-na \
310 | --program-transform-n | --program-transform- \
311 | --program-transform | --program-transfor \
312 | --program-transfo | --program-transf \
313 | --program-trans | --program-tran \
314 | --progr-tra | --program-tr | --program-t)
315 ac_prev=program_transform_name ;;
316 -program-transform-name=* | --program-transform-name=* \
317 | --program-transform-nam=* | --program-transform-na=* \
318 | --program-transform-n=* | --program-transform-=* \
319 | --program-transform=* | --program-transfor=* \
320 | --program-transfo=* | --program-transf=* \
321 | --program-trans=* | --program-tran=* \
322 | --progr-tra=* | --program-tr=* | --program-t=*)
323 program_transform_name="$ac_optarg" ;;
325 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
326 | -silent | --silent | --silen | --sile | --sil)
329 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
331 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
333 sbindir="$ac_optarg" ;;
335 -sharedstatedir | --sharedstatedir | --sharedstatedi \
336 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
337 | --sharedst | --shareds | --shared | --share | --shar \
339 ac_prev=sharedstatedir ;;
340 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
341 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
342 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
344 sharedstatedir="$ac_optarg" ;;
346 -site | --site | --sit)
348 -site=* | --site=* | --sit=*)
351 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
353 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
354 srcdir="$ac_optarg" ;;
356 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
357 | --syscon | --sysco | --sysc | --sys | --sy)
358 ac_prev=sysconfdir ;;
359 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
360 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
361 sysconfdir="$ac_optarg" ;;
363 -target | --target | --targe | --targ | --tar | --ta | --t)
365 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
366 target="$ac_optarg" ;;
368 -v | -verbose | --verbose | --verbos | --verbo | --verb)
371 -version | --version | --versio | --versi | --vers)
372 echo "configure generated by autoconf version 2.13"
376 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
377 # Reject names that are not valid shell variable names.
378 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
379 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
381 ac_package=`echo $ac_package| sed 's/-/_/g'`
386 eval "with_${ac_package}='$ac_optarg'" ;;
388 -without-* | --without-*)
389 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
390 # Reject names that are not valid shell variable names.
391 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
392 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
394 ac_package=`echo $ac_package| sed 's/-/_/g'`
395 eval "with_${ac_package}=no" ;;
398 # Obsolete; use --with-x.
401 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
402 | --x-incl | --x-inc | --x-in | --x-i)
403 ac_prev=x_includes ;;
404 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
405 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
406 x_includes="$ac_optarg" ;;
408 -x-libraries | --x-libraries | --x-librarie | --x-librari \
409 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
410 ac_prev=x_libraries ;;
411 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
412 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
413 x_libraries="$ac_optarg" ;;
415 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
419 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
420 echo "configure: warning: $ac_option: invalid host type" 1>&2
422 if test "x$nonopt" != xNONE; then
423 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
431 if test -n "$ac_prev"; then
432 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
435 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
437 # File descriptor usage:
440 # 2 errors and warnings
441 # 3 some systems may open it to /dev/tty
442 # 4 used on the Kubota Titan
443 # 6 checking for... messages and results
444 # 5 compiler messages saved in config.log
445 if test "$silent" = yes; then
453 This file contains any messages produced by compilers while
454 running configure, to aid debugging if configure makes a mistake.
457 # Strip out --no-create and --no-recursion so they do not pile up.
458 # Also quote any args containing shell metacharacters.
463 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
464 | --no-cr | --no-c) ;;
465 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
466 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
467 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
468 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
469 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
474 # Only set these to C if already set. These must not be set unconditionally
475 # because not all systems understand e.g. LANG=C (notably SCO).
476 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
477 # Non-C LC_CTYPE values break the ctype check.
478 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
479 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
480 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
481 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
483 # confdefs.h avoids OS command line length limits that DEFS can exceed.
484 rm -rf conftest* confdefs.h
485 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
488 # A filename unique to this package, relative to the directory that
489 # configure is in, which we can look for to find out if srcdir is correct.
490 ac_unique_file=src/interface/main.c
492 # Find the source files, if location was not specified.
493 if test -z "$srcdir"; then
494 ac_srcdir_defaulted=yes
495 # Try the directory containing this script, then its parent.
497 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
498 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
500 if test ! -r $srcdir/$ac_unique_file; then
504 ac_srcdir_defaulted=no
506 if test ! -r $srcdir/$ac_unique_file; then
507 if test "$ac_srcdir_defaulted" = yes; then
508 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
510 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
513 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
515 # Prefer explicitly selected file to automatically selected ones.
516 if test -z "$CONFIG_SITE"; then
517 if test "x$prefix" != xNONE; then
518 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
520 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
523 for ac_site_file in $CONFIG_SITE; do
524 if test -r "$ac_site_file"; then
525 echo "loading site script $ac_site_file"
530 if test -r "$cache_file"; then
531 echo "loading cache $cache_file"
534 echo "creating cache $cache_file"
539 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
540 ac_cpp='$CPP $CPPFLAGS'
541 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
542 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
543 cross_compiling=$ac_cv_prog_cc_cross
547 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
548 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
549 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
556 ac_n= ac_c='\c' ac_t=
563 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
564 if test -f $ac_dir/install-sh; then
566 ac_install_sh="$ac_aux_dir/install-sh -c"
568 elif test -f $ac_dir/install.sh; then
570 ac_install_sh="$ac_aux_dir/install.sh -c"
574 if test -z "$ac_aux_dir"; then
575 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
577 ac_config_guess=$ac_aux_dir/config.guess
578 ac_config_sub=$ac_aux_dir/config.sub
579 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
582 # Make sure we can run config.sub.
583 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
584 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
587 echo $ac_n "checking host system type""... $ac_c" 1>&6
588 echo "configure:589: checking host system type" >&5
591 case "$host_alias" in
595 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
596 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
598 *) host_alias=$nonopt ;;
602 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
603 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
604 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
605 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
606 echo "$ac_t""$host" 1>&6
614 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
615 echo "configure:616: checking whether ${MAKE-make} sets \${MAKE}" >&5
616 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
617 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
618 echo $ac_n "(cached) $ac_c" 1>&6
620 cat > conftestmake <<\EOF
622 @echo 'ac_maketemp="${MAKE}"'
624 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
625 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
626 if test -n "$ac_maketemp"; then
627 eval ac_cv_prog_make_${ac_make}_set=yes
629 eval ac_cv_prog_make_${ac_make}_set=no
633 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
634 echo "$ac_t""yes" 1>&6
637 echo "$ac_t""no" 1>&6
638 SET_MAKE="MAKE=${MAKE-make}"
641 if test -z "$CC"; then
642 # Extract the first word of "gcc", so it can be a program name with args.
643 set dummy gcc; ac_word=$2
644 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
645 echo "configure:646: checking for $ac_word" >&5
646 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
647 echo $ac_n "(cached) $ac_c" 1>&6
649 if test -n "$CC"; then
650 ac_cv_prog_CC="$CC" # Let the user override the test.
652 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
654 for ac_dir in $ac_dummy; do
655 test -z "$ac_dir" && ac_dir=.
656 if test -f $ac_dir/$ac_word; then
665 if test -n "$CC"; then
666 echo "$ac_t""$CC" 1>&6
668 echo "$ac_t""no" 1>&6
671 if test -z "$CC"; then
672 # Extract the first word of "cc", so it can be a program name with args.
673 set dummy cc; ac_word=$2
674 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
675 echo "configure:676: checking for $ac_word" >&5
676 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
677 echo $ac_n "(cached) $ac_c" 1>&6
679 if test -n "$CC"; then
680 ac_cv_prog_CC="$CC" # Let the user override the test.
682 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
685 for ac_dir in $ac_dummy; do
686 test -z "$ac_dir" && ac_dir=.
687 if test -f $ac_dir/$ac_word; then
688 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
697 if test $ac_prog_rejected = yes; then
698 # We found a bogon in the path, so make sure we never use it.
699 set dummy $ac_cv_prog_CC
701 if test $# -gt 0; then
702 # We chose a different compiler from the bogus one.
703 # However, it has the same basename, so the bogon will be chosen
704 # first if we set CC to just the basename; use the full file name.
706 set dummy "$ac_dir/$ac_word" "$@"
714 if test -n "$CC"; then
715 echo "$ac_t""$CC" 1>&6
717 echo "$ac_t""no" 1>&6
720 if test -z "$CC"; then
723 # Extract the first word of "cl", so it can be a program name with args.
724 set dummy cl; ac_word=$2
725 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
726 echo "configure:727: checking for $ac_word" >&5
727 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
728 echo $ac_n "(cached) $ac_c" 1>&6
730 if test -n "$CC"; then
731 ac_cv_prog_CC="$CC" # Let the user override the test.
733 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
735 for ac_dir in $ac_dummy; do
736 test -z "$ac_dir" && ac_dir=.
737 if test -f $ac_dir/$ac_word; then
746 if test -n "$CC"; then
747 echo "$ac_t""$CC" 1>&6
749 echo "$ac_t""no" 1>&6
754 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
757 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
758 echo "configure:759: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
761 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
762 ac_cpp='$CPP $CPPFLAGS'
763 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
764 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
765 cross_compiling=$ac_cv_prog_cc_cross
767 cat > conftest.$ac_ext << EOF
769 #line 770 "configure"
770 #include "confdefs.h"
774 if { (eval echo configure:775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
775 ac_cv_prog_cc_works=yes
776 # If we can't run a trivial program, we are probably using a cross compiler.
777 if (./conftest; exit) 2>/dev/null; then
778 ac_cv_prog_cc_cross=no
780 ac_cv_prog_cc_cross=yes
783 echo "configure: failed program was:" >&5
784 cat conftest.$ac_ext >&5
785 ac_cv_prog_cc_works=no
789 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
790 ac_cpp='$CPP $CPPFLAGS'
791 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
792 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
793 cross_compiling=$ac_cv_prog_cc_cross
795 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
796 if test $ac_cv_prog_cc_works = no; then
797 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
799 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
800 echo "configure:801: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
801 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
802 cross_compiling=$ac_cv_prog_cc_cross
804 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
805 echo "configure:806: checking whether we are using GNU C" >&5
806 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
807 echo $ac_n "(cached) $ac_c" 1>&6
809 cat > conftest.c <<EOF
814 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:815: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
821 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
823 if test $ac_cv_prog_gcc = yes; then
829 ac_test_CFLAGS="${CFLAGS+set}"
830 ac_save_CFLAGS="$CFLAGS"
832 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
833 echo "configure:834: checking whether ${CC-cc} accepts -g" >&5
834 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
835 echo $ac_n "(cached) $ac_c" 1>&6
837 echo 'void f(){}' > conftest.c
838 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
847 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
848 if test "$ac_test_CFLAGS" = set; then
849 CFLAGS="$ac_save_CFLAGS"
850 elif test $ac_cv_prog_cc_g = yes; then
851 if test "$GCC" = yes; then
857 if test "$GCC" = yes; then
865 if test -z "$CPP"; then
866 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
867 echo "configure:868: checking how to run the C preprocessor" >&5
868 # On Suns, sometimes $CPP names a directory.
869 if test -n "$CPP" && test -d "$CPP"; then
872 if test -z "$CPP"; then
873 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
874 echo $ac_n "(cached) $ac_c" 1>&6
876 # This must be in double quotes, not single quotes, because CPP may get
877 # substituted into the Makefile and "${CC-cc}" will confuse make.
879 # On the NeXT, cc -E runs the code through the compiler's parser,
880 # not just through cpp.
881 cat > conftest.$ac_ext <<EOF
882 #line 883 "configure"
883 #include "confdefs.h"
887 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
888 { (eval echo configure:889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
889 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
890 if test -z "$ac_err"; then
894 echo "configure: failed program was:" >&5
895 cat conftest.$ac_ext >&5
897 CPP="${CC-cc} -E -traditional-cpp"
898 cat > conftest.$ac_ext <<EOF
899 #line 900 "configure"
900 #include "confdefs.h"
904 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
905 { (eval echo configure:906: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
906 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
907 if test -z "$ac_err"; then
911 echo "configure: failed program was:" >&5
912 cat conftest.$ac_ext >&5
914 CPP="${CC-cc} -nologo -E"
915 cat > conftest.$ac_ext <<EOF
916 #line 917 "configure"
917 #include "confdefs.h"
921 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
922 { (eval echo configure:923: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
923 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
924 if test -z "$ac_err"; then
928 echo "configure: failed program was:" >&5
929 cat conftest.$ac_ext >&5
938 ac_cv_prog_CPP="$CPP"
940 CPP="$ac_cv_prog_CPP"
942 ac_cv_prog_CPP="$CPP"
944 echo "$ac_t""$CPP" 1>&6
948 # Find a good install program. We prefer a C program (faster),
949 # so one script is as good as another. But avoid the broken or
950 # incompatible versions:
951 # SysV /etc/install, /usr/sbin/install
952 # SunOS /usr/etc/install
955 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
956 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
957 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
958 # ./install, which can be erroneously created by make from ./install.sh.
959 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
960 echo "configure:961: checking for a BSD compatible install" >&5
961 if test -z "$INSTALL"; then
962 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
963 echo $ac_n "(cached) $ac_c" 1>&6
965 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
966 for ac_dir in $PATH; do
967 # Account for people who put trailing slashes in PATH elements.
969 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
971 # OSF1 and SCO ODT 3.0 have their own names for install.
972 # Don't use installbsd from OSF since it installs stuff as root
974 for ac_prog in ginstall scoinst install; do
975 if test -f $ac_dir/$ac_prog; then
976 if test $ac_prog = install &&
977 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
978 # AIX install. It has an incompatible calling convention.
981 ac_cv_path_install="$ac_dir/$ac_prog -c"
992 if test "${ac_cv_path_install+set}" = set; then
993 INSTALL="$ac_cv_path_install"
995 # As a last resort, use the slow shell script. We don't cache a
996 # path for INSTALL within a source directory, because that will
997 # break other packages using the cache if that directory is
998 # removed, or if the path is relative.
999 INSTALL="$ac_install_sh"
1002 echo "$ac_t""$INSTALL" 1>&6
1004 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1005 # It thinks the first close brace ends the variable substitution.
1006 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1008 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1010 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1013 echo $ac_n "checking for working const""... $ac_c" 1>&6
1014 echo "configure:1015: checking for working const" >&5
1015 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1016 echo $ac_n "(cached) $ac_c" 1>&6
1018 cat > conftest.$ac_ext <<EOF
1019 #line 1020 "configure"
1020 #include "confdefs.h"
1024 /* Ultrix mips cc rejects this. */
1025 typedef int charset[2]; const charset x;
1026 /* SunOS 4.1.1 cc rejects this. */
1027 char const *const *ccp;
1029 /* NEC SVR4.0.2 mips cc rejects this. */
1030 struct point {int x, y;};
1031 static struct point const zero = {0,0};
1032 /* AIX XL C 1.02.0.0 rejects this.
1033 It does not let you subtract one const X* pointer from another in an arm
1034 of an if-expression whose if-part is not a constant expression */
1035 const char *g = "string";
1036 ccp = &g + (g ? g-g : 0);
1037 /* HPUX 7.0 cc rejects these. */
1040 ccp = (char const *const *) p;
1041 { /* SCO 3.2v4 cc rejects this. */
1043 char const *s = 0 ? (char *) 0 : (char const *) 0;
1047 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1049 const int *foo = &x[0];
1052 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1053 typedef const int *iptr;
1057 { /* AIX XL C 1.02.0.0 rejects this saying
1058 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1059 struct s { int j; const int *ap[3]; };
1060 struct s *b; b->j = 5;
1062 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1068 if { (eval echo configure:1069: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1072 echo "configure: failed program was:" >&5
1073 cat conftest.$ac_ext >&5
1080 echo "$ac_t""$ac_cv_c_const" 1>&6
1081 if test $ac_cv_c_const = no; then
1082 cat >> confdefs.h <<\EOF
1088 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1089 echo "configure:1090: checking whether byte ordering is bigendian" >&5
1090 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1091 echo $ac_n "(cached) $ac_c" 1>&6
1093 ac_cv_c_bigendian=unknown
1094 # See if sys/param.h defines the BYTE_ORDER macro.
1095 cat > conftest.$ac_ext <<EOF
1096 #line 1097 "configure"
1097 #include "confdefs.h"
1098 #include <sys/types.h>
1099 #include <sys/param.h>
1102 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1107 if { (eval echo configure:1108: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1109 # It does; now see whether it defined to BIG_ENDIAN or not.
1110 cat > conftest.$ac_ext <<EOF
1111 #line 1112 "configure"
1112 #include "confdefs.h"
1113 #include <sys/types.h>
1114 #include <sys/param.h>
1117 #if BYTE_ORDER != BIG_ENDIAN
1122 if { (eval echo configure:1123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1124 ac_cv_c_bigendian=yes
1126 echo "configure: failed program was:" >&5
1127 cat conftest.$ac_ext >&5
1129 ac_cv_c_bigendian=no
1133 echo "configure: failed program was:" >&5
1134 cat conftest.$ac_ext >&5
1137 if test $ac_cv_c_bigendian = unknown; then
1138 if test "$cross_compiling" = yes; then
1139 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1141 cat > conftest.$ac_ext <<EOF
1142 #line 1143 "configure"
1143 #include "confdefs.h"
1145 /* Are we little or big endian? From Harbison&Steele. */
1149 char c[sizeof (long)];
1152 exit (u.c[sizeof (long) - 1] == 1);
1155 if { (eval echo configure:1156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1157 ac_cv_c_bigendian=no
1159 echo "configure: failed program was:" >&5
1160 cat conftest.$ac_ext >&5
1162 ac_cv_c_bigendian=yes
1170 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1171 if test $ac_cv_c_bigendian = yes; then
1172 cat >> confdefs.h <<\EOF
1173 #define WORDS_BIGENDIAN 1
1179 echo $ac_n "checking whether compiler accepts bswap x86 instruction""... $ac_c" 1>&6
1180 echo "configure:1181: checking whether compiler accepts bswap x86 instruction" >&5
1181 cat > conftest.$ac_ext <<EOF
1182 #line 1183 "configure"
1183 #include "confdefs.h"
1184 unsigned int foo( unsigned int x )
1185 { __asm__("bswap %0" : "=r" (x) : "0" (x)); return x; }
1190 if { (eval echo configure:1191: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1192 cat >> confdefs.h <<\EOF
1193 #define HAVE_X86_BSWAP 1
1195 echo "$ac_t""yes" 1>&6
1197 echo "configure: failed program was:" >&5
1198 cat conftest.$ac_ext >&5
1200 echo "$ac_t""no" 1>&6
1204 for ac_func in gettimeofday select strerror strtod strtol
1206 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1207 echo "configure:1208: checking for $ac_func" >&5
1208 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1209 echo $ac_n "(cached) $ac_c" 1>&6
1211 cat > conftest.$ac_ext <<EOF
1212 #line 1213 "configure"
1213 #include "confdefs.h"
1214 /* System header to define __stub macros and hopefully few prototypes,
1215 which can conflict with char $ac_func(); below. */
1217 /* Override any gcc2 internal prototype to avoid an error. */
1218 /* We use char because int might match the return type of a gcc2
1219 builtin and then its argument prototype would still apply. */
1224 /* The GNU C library defines this for functions which it implements
1225 to always fail with ENOSYS. Some functions are actually named
1226 something starting with __ and the normal name is an alias. */
1227 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1235 if { (eval echo configure:1236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1237 eval "ac_cv_func_$ac_func=yes"
1239 echo "configure: failed program was:" >&5
1240 cat conftest.$ac_ext >&5
1242 eval "ac_cv_func_$ac_func=no"
1247 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1248 echo "$ac_t""yes" 1>&6
1249 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1250 cat >> confdefs.h <<EOF
1251 #define $ac_tr_func 1
1255 echo "$ac_t""no" 1>&6
1259 for ac_func in setenv putenv
1261 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1262 echo "configure:1263: checking for $ac_func" >&5
1263 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1264 echo $ac_n "(cached) $ac_c" 1>&6
1266 cat > conftest.$ac_ext <<EOF
1267 #line 1268 "configure"
1268 #include "confdefs.h"
1269 /* System header to define __stub macros and hopefully few prototypes,
1270 which can conflict with char $ac_func(); below. */
1272 /* Override any gcc2 internal prototype to avoid an error. */
1273 /* We use char because int might match the return type of a gcc2
1274 builtin and then its argument prototype would still apply. */
1279 /* The GNU C library defines this for functions which it implements
1280 to always fail with ENOSYS. Some functions are actually named
1281 something starting with __ and the normal name is an alias. */
1282 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1290 if { (eval echo configure:1291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1292 eval "ac_cv_func_$ac_func=yes"
1294 echo "configure: failed program was:" >&5
1295 cat conftest.$ac_ext >&5
1297 eval "ac_cv_func_$ac_func=no"
1302 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1303 echo "$ac_t""yes" 1>&6
1304 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1305 cat >> confdefs.h <<EOF
1306 #define $ac_tr_func 1
1310 echo "$ac_t""no" 1>&6
1314 echo $ac_n "checking for connect""... $ac_c" 1>&6
1315 echo "configure:1316: checking for connect" >&5
1316 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1317 echo $ac_n "(cached) $ac_c" 1>&6
1319 cat > conftest.$ac_ext <<EOF
1320 #line 1321 "configure"
1321 #include "confdefs.h"
1322 /* System header to define __stub macros and hopefully few prototypes,
1323 which can conflict with char connect(); below. */
1325 /* Override any gcc2 internal prototype to avoid an error. */
1326 /* We use char because int might match the return type of a gcc2
1327 builtin and then its argument prototype would still apply. */
1332 /* The GNU C library defines this for functions which it implements
1333 to always fail with ENOSYS. Some functions are actually named
1334 something starting with __ and the normal name is an alias. */
1335 #if defined (__stub_connect) || defined (__stub___connect)
1343 if { (eval echo configure:1344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1345 eval "ac_cv_func_connect=yes"
1347 echo "configure: failed program was:" >&5
1348 cat conftest.$ac_ext >&5
1350 eval "ac_cv_func_connect=no"
1355 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1356 echo "$ac_t""yes" 1>&6
1359 echo "$ac_t""no" 1>&6
1360 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1361 echo "configure:1362: checking for connect in -lsocket" >&5
1362 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1363 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1364 echo $ac_n "(cached) $ac_c" 1>&6
1366 ac_save_LIBS="$LIBS"
1367 LIBS="-lsocket $LIBS"
1368 cat > conftest.$ac_ext <<EOF
1369 #line 1370 "configure"
1370 #include "confdefs.h"
1371 /* Override any gcc2 internal prototype to avoid an error. */
1372 /* We use char because int might match the return type of a gcc2
1373 builtin and then its argument prototype would still apply. */
1380 if { (eval echo configure:1381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1382 eval "ac_cv_lib_$ac_lib_var=yes"
1384 echo "configure: failed program was:" >&5
1385 cat conftest.$ac_ext >&5
1387 eval "ac_cv_lib_$ac_lib_var=no"
1390 LIBS="$ac_save_LIBS"
1393 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1394 echo "$ac_t""yes" 1>&6
1395 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1396 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1397 cat >> confdefs.h <<EOF
1398 #define $ac_tr_lib 1
1401 LIBS="-lsocket $LIBS"
1404 echo "$ac_t""no" 1>&6
1409 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1410 echo "configure:1411: checking for gethostbyname" >&5
1411 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1412 echo $ac_n "(cached) $ac_c" 1>&6
1414 cat > conftest.$ac_ext <<EOF
1415 #line 1416 "configure"
1416 #include "confdefs.h"
1417 /* System header to define __stub macros and hopefully few prototypes,
1418 which can conflict with char gethostbyname(); below. */
1420 /* Override any gcc2 internal prototype to avoid an error. */
1421 /* We use char because int might match the return type of a gcc2
1422 builtin and then its argument prototype would still apply. */
1423 char gethostbyname();
1427 /* The GNU C library defines this for functions which it implements
1428 to always fail with ENOSYS. Some functions are actually named
1429 something starting with __ and the normal name is an alias. */
1430 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1438 if { (eval echo configure:1439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1440 eval "ac_cv_func_gethostbyname=yes"
1442 echo "configure: failed program was:" >&5
1443 cat conftest.$ac_ext >&5
1445 eval "ac_cv_func_gethostbyname=no"
1450 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1451 echo "$ac_t""yes" 1>&6
1454 echo "$ac_t""no" 1>&6
1455 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1456 echo "configure:1457: checking for gethostbyname in -lnsl" >&5
1457 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1458 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1459 echo $ac_n "(cached) $ac_c" 1>&6
1461 ac_save_LIBS="$LIBS"
1463 cat > conftest.$ac_ext <<EOF
1464 #line 1465 "configure"
1465 #include "confdefs.h"
1466 /* Override any gcc2 internal prototype to avoid an error. */
1467 /* We use char because int might match the return type of a gcc2
1468 builtin and then its argument prototype would still apply. */
1469 char gethostbyname();
1475 if { (eval echo configure:1476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1477 eval "ac_cv_lib_$ac_lib_var=yes"
1479 echo "configure: failed program was:" >&5
1480 cat conftest.$ac_ext >&5
1482 eval "ac_cv_lib_$ac_lib_var=no"
1485 LIBS="$ac_save_LIBS"
1488 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1489 echo "$ac_t""yes" 1>&6
1490 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1491 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1492 cat >> confdefs.h <<EOF
1493 #define $ac_tr_lib 1
1499 echo "$ac_t""no" 1>&6
1504 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
1505 echo "configure:1506: checking for nanosleep" >&5
1506 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
1507 echo $ac_n "(cached) $ac_c" 1>&6
1509 cat > conftest.$ac_ext <<EOF
1510 #line 1511 "configure"
1511 #include "confdefs.h"
1512 /* System header to define __stub macros and hopefully few prototypes,
1513 which can conflict with char nanosleep(); below. */
1515 /* Override any gcc2 internal prototype to avoid an error. */
1516 /* We use char because int might match the return type of a gcc2
1517 builtin and then its argument prototype would still apply. */
1522 /* The GNU C library defines this for functions which it implements
1523 to always fail with ENOSYS. Some functions are actually named
1524 something starting with __ and the normal name is an alias. */
1525 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
1533 if { (eval echo configure:1534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1535 eval "ac_cv_func_nanosleep=yes"
1537 echo "configure: failed program was:" >&5
1538 cat conftest.$ac_ext >&5
1540 eval "ac_cv_func_nanosleep=no"
1545 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
1546 echo "$ac_t""yes" 1>&6
1549 echo "$ac_t""no" 1>&6
1550 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
1551 echo "configure:1552: checking for nanosleep in -lrt" >&5
1552 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
1553 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1554 echo $ac_n "(cached) $ac_c" 1>&6
1556 ac_save_LIBS="$LIBS"
1558 cat > conftest.$ac_ext <<EOF
1559 #line 1560 "configure"
1560 #include "confdefs.h"
1561 /* Override any gcc2 internal prototype to avoid an error. */
1562 /* We use char because int might match the return type of a gcc2
1563 builtin and then its argument prototype would still apply. */
1570 if { (eval echo configure:1571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1572 eval "ac_cv_lib_$ac_lib_var=yes"
1574 echo "configure: failed program was:" >&5
1575 cat conftest.$ac_ext >&5
1577 eval "ac_cv_lib_$ac_lib_var=no"
1580 LIBS="$ac_save_LIBS"
1583 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1584 echo "$ac_t""yes" 1>&6
1585 ac_tr_lib=HAVE_LIB`echo rt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1586 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1587 cat >> confdefs.h <<EOF
1588 #define $ac_tr_lib 1
1594 echo "$ac_t""no" 1>&6
1595 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
1596 echo "configure:1597: checking for nanosleep in -lposix4" >&5
1597 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
1598 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1599 echo $ac_n "(cached) $ac_c" 1>&6
1601 ac_save_LIBS="$LIBS"
1602 LIBS="-lposix4 $LIBS"
1603 cat > conftest.$ac_ext <<EOF
1604 #line 1605 "configure"
1605 #include "confdefs.h"
1606 /* Override any gcc2 internal prototype to avoid an error. */
1607 /* We use char because int might match the return type of a gcc2
1608 builtin and then its argument prototype would still apply. */
1615 if { (eval echo configure:1616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1617 eval "ac_cv_lib_$ac_lib_var=yes"
1619 echo "configure: failed program was:" >&5
1620 cat conftest.$ac_ext >&5
1622 eval "ac_cv_lib_$ac_lib_var=no"
1625 LIBS="$ac_save_LIBS"
1628 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1629 echo "$ac_t""yes" 1>&6
1630 ac_tr_lib=HAVE_LIB`echo posix4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1631 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1632 cat >> confdefs.h <<EOF
1633 #define $ac_tr_lib 1
1636 LIBS="-lposix4 $LIBS"
1639 echo "$ac_t""no" 1>&6
1646 for ac_func in usleep
1648 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1649 echo "configure:1650: checking for $ac_func" >&5
1650 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1651 echo $ac_n "(cached) $ac_c" 1>&6
1653 cat > conftest.$ac_ext <<EOF
1654 #line 1655 "configure"
1655 #include "confdefs.h"
1656 /* System header to define __stub macros and hopefully few prototypes,
1657 which can conflict with char $ac_func(); below. */
1659 /* Override any gcc2 internal prototype to avoid an error. */
1660 /* We use char because int might match the return type of a gcc2
1661 builtin and then its argument prototype would still apply. */
1666 /* The GNU C library defines this for functions which it implements
1667 to always fail with ENOSYS. Some functions are actually named
1668 something starting with __ and the normal name is an alias. */
1669 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1677 if { (eval echo configure:1678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1679 eval "ac_cv_func_$ac_func=yes"
1681 echo "configure: failed program was:" >&5
1682 cat conftest.$ac_ext >&5
1684 eval "ac_cv_func_$ac_func=no"
1689 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1690 echo "$ac_t""yes" 1>&6
1691 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1692 cat >> confdefs.h <<EOF
1693 #define $ac_tr_func 1
1697 echo "$ac_t""no" 1>&6
1701 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
1702 echo "configure:1703: checking for inet_aton" >&5
1703 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
1704 echo $ac_n "(cached) $ac_c" 1>&6
1706 cat > conftest.$ac_ext <<EOF
1707 #line 1708 "configure"
1708 #include "confdefs.h"
1709 /* System header to define __stub macros and hopefully few prototypes,
1710 which can conflict with char inet_aton(); below. */
1712 /* Override any gcc2 internal prototype to avoid an error. */
1713 /* We use char because int might match the return type of a gcc2
1714 builtin and then its argument prototype would still apply. */
1719 /* The GNU C library defines this for functions which it implements
1720 to always fail with ENOSYS. Some functions are actually named
1721 something starting with __ and the normal name is an alias. */
1722 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
1730 if { (eval echo configure:1731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1732 eval "ac_cv_func_inet_aton=yes"
1734 echo "configure: failed program was:" >&5
1735 cat conftest.$ac_ext >&5
1737 eval "ac_cv_func_inet_aton=no"
1742 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
1743 echo "$ac_t""yes" 1>&6
1746 echo "$ac_t""no" 1>&6
1747 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
1748 echo "configure:1749: checking for inet_aton in -lresolv" >&5
1749 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
1750 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1751 echo $ac_n "(cached) $ac_c" 1>&6
1753 ac_save_LIBS="$LIBS"
1754 LIBS="-lresolv $LIBS"
1755 cat > conftest.$ac_ext <<EOF
1756 #line 1757 "configure"
1757 #include "confdefs.h"
1758 /* Override any gcc2 internal prototype to avoid an error. */
1759 /* We use char because int might match the return type of a gcc2
1760 builtin and then its argument prototype would still apply. */
1767 if { (eval echo configure:1768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1769 eval "ac_cv_lib_$ac_lib_var=yes"
1771 echo "configure: failed program was:" >&5
1772 cat conftest.$ac_ext >&5
1774 eval "ac_cv_lib_$ac_lib_var=no"
1777 LIBS="$ac_save_LIBS"
1780 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1781 echo "$ac_t""yes" 1>&6
1782 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1783 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1784 cat >> confdefs.h <<EOF
1785 #define $ac_tr_lib 1
1788 LIBS="-lresolv $LIBS"
1791 echo "$ac_t""no" 1>&6
1796 for ac_func in vasprintf
1798 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1799 echo "configure:1800: checking for $ac_func" >&5
1800 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1801 echo $ac_n "(cached) $ac_c" 1>&6
1803 cat > conftest.$ac_ext <<EOF
1804 #line 1805 "configure"
1805 #include "confdefs.h"
1806 /* System header to define __stub macros and hopefully few prototypes,
1807 which can conflict with char $ac_func(); below. */
1809 /* Override any gcc2 internal prototype to avoid an error. */
1810 /* We use char because int might match the return type of a gcc2
1811 builtin and then its argument prototype would still apply. */
1816 /* The GNU C library defines this for functions which it implements
1817 to always fail with ENOSYS. Some functions are actually named
1818 something starting with __ and the normal name is an alias. */
1819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1827 if { (eval echo configure:1828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1829 eval "ac_cv_func_$ac_func=yes"
1831 echo "configure: failed program was:" >&5
1832 cat conftest.$ac_ext >&5
1834 eval "ac_cv_func_$ac_func=no"
1839 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1840 echo "$ac_t""yes" 1>&6
1841 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1842 cat >> confdefs.h <<EOF
1843 #define $ac_tr_func 1
1847 echo "$ac_t""no" 1>&6
1851 for ac_hdr in unistd.h
1853 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1854 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1855 echo "configure:1856: checking for $ac_hdr" >&5
1856 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1857 echo $ac_n "(cached) $ac_c" 1>&6
1859 cat > conftest.$ac_ext <<EOF
1860 #line 1861 "configure"
1861 #include "confdefs.h"
1864 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1865 { (eval echo configure:1866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1866 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1867 if test -z "$ac_err"; then
1869 eval "ac_cv_header_$ac_safe=yes"
1872 echo "configure: failed program was:" >&5
1873 cat conftest.$ac_ext >&5
1875 eval "ac_cv_header_$ac_safe=no"
1879 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1880 echo "$ac_t""yes" 1>&6
1881 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1882 cat >> confdefs.h <<EOF
1883 #define $ac_tr_hdr 1
1887 echo "$ac_t""no" 1>&6
1891 for ac_func in getpagesize
1893 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1894 echo "configure:1895: checking for $ac_func" >&5
1895 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1896 echo $ac_n "(cached) $ac_c" 1>&6
1898 cat > conftest.$ac_ext <<EOF
1899 #line 1900 "configure"
1900 #include "confdefs.h"
1901 /* System header to define __stub macros and hopefully few prototypes,
1902 which can conflict with char $ac_func(); below. */
1904 /* Override any gcc2 internal prototype to avoid an error. */
1905 /* We use char because int might match the return type of a gcc2
1906 builtin and then its argument prototype would still apply. */
1911 /* The GNU C library defines this for functions which it implements
1912 to always fail with ENOSYS. Some functions are actually named
1913 something starting with __ and the normal name is an alias. */
1914 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1922 if { (eval echo configure:1923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1924 eval "ac_cv_func_$ac_func=yes"
1926 echo "configure: failed program was:" >&5
1927 cat conftest.$ac_ext >&5
1929 eval "ac_cv_func_$ac_func=no"
1934 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1935 echo "$ac_t""yes" 1>&6
1936 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1937 cat >> confdefs.h <<EOF
1938 #define $ac_tr_func 1
1942 echo "$ac_t""no" 1>&6
1946 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1947 echo "configure:1948: checking for working mmap" >&5
1948 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1949 echo $ac_n "(cached) $ac_c" 1>&6
1951 if test "$cross_compiling" = yes; then
1952 ac_cv_func_mmap_fixed_mapped=no
1954 cat > conftest.$ac_ext <<EOF
1955 #line 1956 "configure"
1956 #include "confdefs.h"
1958 /* Thanks to Mike Haertel and Jim Avera for this test.
1959 Here is a matrix of mmap possibilities:
1960 mmap private not fixed
1961 mmap private fixed at somewhere currently unmapped
1962 mmap private fixed at somewhere already mapped
1963 mmap shared not fixed
1964 mmap shared fixed at somewhere currently unmapped
1965 mmap shared fixed at somewhere already mapped
1966 For private mappings, we should verify that changes cannot be read()
1967 back from the file, nor mmap's back from the file at a different
1968 address. (There have been systems where private was not correctly
1969 implemented like the infamous i386 svr4.0, and systems where the
1970 VM page cache was not coherent with the filesystem buffer cache
1971 like early versions of FreeBSD and possibly contemporary NetBSD.)
1972 For shared mappings, we should conversely verify that changes get
1973 propogated back to all the places they're supposed to be.
1975 Grep wants private fixed already mapped.
1976 The main things grep needs to know about mmap are:
1977 * does it exist and is it safe to write into the mmap'd area
1978 * how to use it (BSD variants) */
1979 #include <sys/types.h>
1981 #include <sys/mman.h>
1983 /* This mess was copied from the GNU getpagesize.h. */
1984 #ifndef HAVE_GETPAGESIZE
1985 # ifdef HAVE_UNISTD_H
1986 # include <unistd.h>
1989 /* Assume that all systems that can run configure have sys/param.h. */
1990 # ifndef HAVE_SYS_PARAM_H
1991 # define HAVE_SYS_PARAM_H 1
1994 # ifdef _SC_PAGESIZE
1995 # define getpagesize() sysconf(_SC_PAGESIZE)
1996 # else /* no _SC_PAGESIZE */
1997 # ifdef HAVE_SYS_PARAM_H
1998 # include <sys/param.h>
1999 # ifdef EXEC_PAGESIZE
2000 # define getpagesize() EXEC_PAGESIZE
2001 # else /* no EXEC_PAGESIZE */
2003 # define getpagesize() NBPG * CLSIZE
2006 # endif /* no CLSIZE */
2007 # else /* no NBPG */
2009 # define getpagesize() NBPC
2010 # else /* no NBPC */
2012 # define getpagesize() PAGESIZE
2013 # endif /* PAGESIZE */
2014 # endif /* no NBPC */
2015 # endif /* no NBPG */
2016 # endif /* no EXEC_PAGESIZE */
2017 # else /* no HAVE_SYS_PARAM_H */
2018 # define getpagesize() 8192 /* punt totally */
2019 # endif /* no HAVE_SYS_PARAM_H */
2020 # endif /* no _SC_PAGESIZE */
2022 #endif /* no HAVE_GETPAGESIZE */
2025 extern "C" { void *malloc(unsigned); }
2033 char *data, *data2, *data3;
2037 pagesize = getpagesize();
2040 * First, make a file with some known garbage in it.
2042 data = malloc(pagesize);
2045 for (i = 0; i < pagesize; ++i)
2046 *(data + i) = rand();
2048 fd = creat("conftestmmap", 0600);
2051 if (write(fd, data, pagesize) != pagesize)
2056 * Next, try to mmap the file at a fixed address which
2057 * already has something else allocated at it. If we can,
2058 * also make sure that we see the same garbage.
2060 fd = open("conftestmmap", O_RDWR);
2063 data2 = malloc(2 * pagesize);
2066 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2067 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2068 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2070 for (i = 0; i < pagesize; ++i)
2071 if (*(data + i) != *(data2 + i))
2075 * Finally, make sure that changes to the mapped area
2076 * do not percolate back to the file as seen by read().
2077 * (This is a bug on some variants of i386 svr4.0.)
2079 for (i = 0; i < pagesize; ++i)
2080 *(data2 + i) = *(data2 + i) + 1;
2081 data3 = malloc(pagesize);
2084 if (read(fd, data3, pagesize) != pagesize)
2086 for (i = 0; i < pagesize; ++i)
2087 if (*(data + i) != *(data3 + i))
2090 unlink("conftestmmap");
2095 if { (eval echo configure:2096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2097 ac_cv_func_mmap_fixed_mapped=yes
2099 echo "configure: failed program was:" >&5
2100 cat conftest.$ac_ext >&5
2102 ac_cv_func_mmap_fixed_mapped=no
2109 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2110 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2111 cat >> confdefs.h <<\EOF
2117 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2118 echo "configure:2119: checking return type of signal handlers" >&5
2119 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2120 echo $ac_n "(cached) $ac_c" 1>&6
2122 cat > conftest.$ac_ext <<EOF
2123 #line 2124 "configure"
2124 #include "confdefs.h"
2125 #include <sys/types.h>
2131 extern "C" void (*signal (int, void (*)(int)))(int);
2133 void (*signal ()) ();
2140 if { (eval echo configure:2141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2142 ac_cv_type_signal=void
2144 echo "configure: failed program was:" >&5
2145 cat conftest.$ac_ext >&5
2147 ac_cv_type_signal=int
2152 echo "$ac_t""$ac_cv_type_signal" 1>&6
2153 cat >> confdefs.h <<EOF
2154 #define RETSIGTYPE $ac_cv_type_signal
2158 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2159 echo "configure:2160: checking for dlopen in -ldl" >&5
2160 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2161 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2162 echo $ac_n "(cached) $ac_c" 1>&6
2164 ac_save_LIBS="$LIBS"
2166 cat > conftest.$ac_ext <<EOF
2167 #line 2168 "configure"
2168 #include "confdefs.h"
2169 /* Override any gcc2 internal prototype to avoid an error. */
2170 /* We use char because int might match the return type of a gcc2
2171 builtin and then its argument prototype would still apply. */
2178 if { (eval echo configure:2179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2180 eval "ac_cv_lib_$ac_lib_var=yes"
2182 echo "configure: failed program was:" >&5
2183 cat conftest.$ac_ext >&5
2185 eval "ac_cv_lib_$ac_lib_var=no"
2188 LIBS="$ac_save_LIBS"
2191 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2192 echo "$ac_t""yes" 1>&6
2193 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2194 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2195 cat >> confdefs.h <<EOF
2196 #define $ac_tr_lib 1
2202 echo "$ac_t""no" 1>&6
2205 echo $ac_n "checking for optarg in -lgnugetopt""... $ac_c" 1>&6
2206 echo "configure:2207: checking for optarg in -lgnugetopt" >&5
2207 ac_lib_var=`echo gnugetopt'_'optarg | sed 'y%./+-%__p_%'`
2208 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2209 echo $ac_n "(cached) $ac_c" 1>&6
2211 ac_save_LIBS="$LIBS"
2212 LIBS="-lgnugetopt $LIBS"
2213 cat > conftest.$ac_ext <<EOF
2214 #line 2215 "configure"
2215 #include "confdefs.h"
2216 /* Override any gcc2 internal prototype to avoid an error. */
2217 /* We use char because int might match the return type of a gcc2
2218 builtin and then its argument prototype would still apply. */
2225 if { (eval echo configure:2226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2227 eval "ac_cv_lib_$ac_lib_var=yes"
2229 echo "configure: failed program was:" >&5
2230 cat conftest.$ac_ext >&5
2232 eval "ac_cv_lib_$ac_lib_var=no"
2235 LIBS="$ac_save_LIBS"
2238 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2239 echo "$ac_t""yes" 1>&6
2240 ac_tr_lib=HAVE_LIB`echo gnugetopt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2241 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2242 cat >> confdefs.h <<EOF
2243 #define $ac_tr_lib 1
2246 LIBS="-lgnugetopt $LIBS"
2249 echo "$ac_t""no" 1>&6
2252 echo $ac_n "checking for _ in -lbe""... $ac_c" 1>&6
2253 echo "configure:2254: checking for _ in -lbe" >&5
2254 ac_lib_var=`echo be'_'_ | sed 'y%./+-%__p_%'`
2255 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2256 echo $ac_n "(cached) $ac_c" 1>&6
2258 ac_save_LIBS="$LIBS"
2260 cat > conftest.$ac_ext <<EOF
2261 #line 2262 "configure"
2262 #include "confdefs.h"
2263 /* Override any gcc2 internal prototype to avoid an error. */
2264 /* We use char because int might match the return type of a gcc2
2265 builtin and then its argument prototype would still apply. */
2272 if { (eval echo configure:2273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2274 eval "ac_cv_lib_$ac_lib_var=yes"
2276 echo "configure: failed program was:" >&5
2277 cat conftest.$ac_ext >&5
2279 eval "ac_cv_lib_$ac_lib_var=no"
2282 LIBS="$ac_save_LIBS"
2285 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2286 echo "$ac_t""yes" 1>&6
2287 ac_tr_lib=HAVE_LIB`echo be | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2288 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2289 cat >> confdefs.h <<EOF
2290 #define $ac_tr_lib 1
2296 echo "$ac_t""no" 1>&6
2299 echo $ac_n "checking for _ in -lgame""... $ac_c" 1>&6
2300 echo "configure:2301: checking for _ in -lgame" >&5
2301 ac_lib_var=`echo game'_'_ | sed 'y%./+-%__p_%'`
2302 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2303 echo $ac_n "(cached) $ac_c" 1>&6
2305 ac_save_LIBS="$LIBS"
2307 cat > conftest.$ac_ext <<EOF
2308 #line 2309 "configure"
2309 #include "confdefs.h"
2310 /* Override any gcc2 internal prototype to avoid an error. */
2311 /* We use char because int might match the return type of a gcc2
2312 builtin and then its argument prototype would still apply. */
2319 if { (eval echo configure:2320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2321 eval "ac_cv_lib_$ac_lib_var=yes"
2323 echo "configure: failed program was:" >&5
2324 cat conftest.$ac_ext >&5
2326 eval "ac_cv_lib_$ac_lib_var=no"
2329 LIBS="$ac_save_LIBS"
2332 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2333 echo "$ac_t""yes" 1>&6
2334 ac_tr_lib=HAVE_LIB`echo game | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2335 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2336 cat >> confdefs.h <<EOF
2337 #define $ac_tr_lib 1
2343 echo "$ac_t""no" 1>&6
2346 echo $ac_n "checking for _ in -lroot""... $ac_c" 1>&6
2347 echo "configure:2348: checking for _ in -lroot" >&5
2348 ac_lib_var=`echo root'_'_ | sed 'y%./+-%__p_%'`
2349 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2350 echo $ac_n "(cached) $ac_c" 1>&6
2352 ac_save_LIBS="$LIBS"
2354 cat > conftest.$ac_ext <<EOF
2355 #line 2356 "configure"
2356 #include "confdefs.h"
2357 /* Override any gcc2 internal prototype to avoid an error. */
2358 /* We use char because int might match the return type of a gcc2
2359 builtin and then its argument prototype would still apply. */
2366 if { (eval echo configure:2367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2368 eval "ac_cv_lib_$ac_lib_var=yes"
2370 echo "configure: failed program was:" >&5
2371 cat conftest.$ac_ext >&5
2373 eval "ac_cv_lib_$ac_lib_var=no"
2376 LIBS="$ac_save_LIBS"
2379 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2380 echo "$ac_t""yes" 1>&6
2381 ac_tr_lib=HAVE_LIB`echo root | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2382 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2383 cat >> confdefs.h <<EOF
2384 #define $ac_tr_lib 1
2390 echo "$ac_t""no" 1>&6
2393 echo $ac_n "checking for powl in -lm""... $ac_c" 1>&6
2394 echo "configure:2395: checking for powl in -lm" >&5
2395 ac_lib_var=`echo m'_'powl | sed 'y%./+-%__p_%'`
2396 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2397 echo $ac_n "(cached) $ac_c" 1>&6
2399 ac_save_LIBS="$LIBS"
2401 cat > conftest.$ac_ext <<EOF
2402 #line 2403 "configure"
2403 #include "confdefs.h"
2404 /* Override any gcc2 internal prototype to avoid an error. */
2405 /* We use char because int might match the return type of a gcc2
2406 builtin and then its argument prototype would still apply. */
2413 if { (eval echo configure:2414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2415 eval "ac_cv_lib_$ac_lib_var=yes"
2417 echo "configure: failed program was:" >&5
2418 cat conftest.$ac_ext >&5
2420 eval "ac_cv_lib_$ac_lib_var=no"
2423 LIBS="$ac_save_LIBS"
2426 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2427 echo "$ac_t""yes" 1>&6
2428 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2429 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2430 cat >> confdefs.h <<EOF
2431 #define $ac_tr_lib 1
2437 echo "$ac_t""no" 1>&6
2440 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
2441 echo "configure:2442: checking for pthread_create in -lpthread" >&5
2442 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
2443 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2444 echo $ac_n "(cached) $ac_c" 1>&6
2446 ac_save_LIBS="$LIBS"
2447 LIBS="-lpthread $LIBS"
2448 cat > conftest.$ac_ext <<EOF
2449 #line 2450 "configure"
2450 #include "confdefs.h"
2451 /* Override any gcc2 internal prototype to avoid an error. */
2452 /* We use char because int might match the return type of a gcc2
2453 builtin and then its argument prototype would still apply. */
2454 char pthread_create();
2460 if { (eval echo configure:2461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2462 eval "ac_cv_lib_$ac_lib_var=yes"
2464 echo "configure: failed program was:" >&5
2465 cat conftest.$ac_ext >&5
2467 eval "ac_cv_lib_$ac_lib_var=no"
2470 LIBS="$ac_save_LIBS"
2473 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2474 echo "$ac_t""yes" 1>&6
2475 ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2476 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2477 cat >> confdefs.h <<EOF
2478 #define $ac_tr_lib 1
2481 LIBS="-lpthread $LIBS"
2484 echo "$ac_t""no" 1>&6
2487 echo $ac_n "checking for thread_create in -lthreads""... $ac_c" 1>&6
2488 echo "configure:2489: checking for thread_create in -lthreads" >&5
2489 ac_lib_var=`echo threads'_'thread_create | sed 'y%./+-%__p_%'`
2490 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2491 echo $ac_n "(cached) $ac_c" 1>&6
2493 ac_save_LIBS="$LIBS"
2494 LIBS="-lthreads $LIBS"
2495 cat > conftest.$ac_ext <<EOF
2496 #line 2497 "configure"
2497 #include "confdefs.h"
2498 /* Override any gcc2 internal prototype to avoid an error. */
2499 /* We use char because int might match the return type of a gcc2
2500 builtin and then its argument prototype would still apply. */
2501 char thread_create();
2507 if { (eval echo configure:2508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2509 eval "ac_cv_lib_$ac_lib_var=yes"
2511 echo "configure: failed program was:" >&5
2512 cat conftest.$ac_ext >&5
2514 eval "ac_cv_lib_$ac_lib_var=no"
2517 LIBS="$ac_save_LIBS"
2520 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2521 echo "$ac_t""yes" 1>&6
2522 ac_tr_lib=HAVE_LIB`echo threads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2523 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2524 cat >> confdefs.h <<EOF
2525 #define $ac_tr_lib 1
2528 LIBS="-lthreads $LIBS"
2531 echo "$ac_t""no" 1>&6
2535 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
2536 echo "configure:2537: checking for getopt_long" >&5
2537 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
2538 echo $ac_n "(cached) $ac_c" 1>&6
2540 cat > conftest.$ac_ext <<EOF
2541 #line 2542 "configure"
2542 #include "confdefs.h"
2543 /* System header to define __stub macros and hopefully few prototypes,
2544 which can conflict with char getopt_long(); below. */
2546 /* Override any gcc2 internal prototype to avoid an error. */
2547 /* We use char because int might match the return type of a gcc2
2548 builtin and then its argument prototype would still apply. */
2553 /* The GNU C library defines this for functions which it implements
2554 to always fail with ENOSYS. Some functions are actually named
2555 something starting with __ and the normal name is an alias. */
2556 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
2564 if { (eval echo configure:2565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2566 eval "ac_cv_func_getopt_long=yes"
2568 echo "configure: failed program was:" >&5
2569 cat conftest.$ac_ext >&5
2571 eval "ac_cv_func_getopt_long=no"
2576 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
2577 echo "$ac_t""yes" 1>&6
2580 echo "$ac_t""no" 1>&6
2581 LIBOBJS="$LIBOBJS getopt.o getopt1.o"
2586 CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
2587 for ac_hdr in stddef.h
2589 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2590 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2591 echo "configure:2592: checking for $ac_hdr" >&5
2592 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2593 echo $ac_n "(cached) $ac_c" 1>&6
2595 cat > conftest.$ac_ext <<EOF
2596 #line 2597 "configure"
2597 #include "confdefs.h"
2600 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2601 { (eval echo configure:2602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2602 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2603 if test -z "$ac_err"; then
2605 eval "ac_cv_header_$ac_safe=yes"
2608 echo "configure: failed program was:" >&5
2609 cat conftest.$ac_ext >&5
2611 eval "ac_cv_header_$ac_safe=no"
2615 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2616 echo "$ac_t""yes" 1>&6
2617 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2618 cat >> confdefs.h <<EOF
2619 #define $ac_tr_hdr 1
2623 echo "$ac_t""no" 1>&6
2627 for ac_hdr in getopt.h
2629 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2630 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2631 echo "configure:2632: checking for $ac_hdr" >&5
2632 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2633 echo $ac_n "(cached) $ac_c" 1>&6
2635 cat > conftest.$ac_ext <<EOF
2636 #line 2637 "configure"
2637 #include "confdefs.h"
2640 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2641 { (eval echo configure:2642: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2642 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2643 if test -z "$ac_err"; then
2645 eval "ac_cv_header_$ac_safe=yes"
2648 echo "configure: failed program was:" >&5
2649 cat conftest.$ac_ext >&5
2651 eval "ac_cv_header_$ac_safe=no"
2655 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2656 echo "$ac_t""yes" 1>&6
2657 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2658 cat >> confdefs.h <<EOF
2659 #define $ac_tr_hdr 1
2663 echo "$ac_t""no" 1>&6
2667 for ac_hdr in sys/sockio.h
2669 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2670 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2671 echo "configure:2672: checking for $ac_hdr" >&5
2672 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2673 echo $ac_n "(cached) $ac_c" 1>&6
2675 cat > conftest.$ac_ext <<EOF
2676 #line 2677 "configure"
2677 #include "confdefs.h"
2680 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2681 { (eval echo configure:2682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2682 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2683 if test -z "$ac_err"; then
2685 eval "ac_cv_header_$ac_safe=yes"
2688 echo "configure: failed program was:" >&5
2689 cat conftest.$ac_ext >&5
2691 eval "ac_cv_header_$ac_safe=no"
2695 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2696 echo "$ac_t""yes" 1>&6
2697 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2698 cat >> confdefs.h <<EOF
2699 #define $ac_tr_hdr 1
2703 echo "$ac_t""no" 1>&6
2707 for ac_hdr in fcntl.h sys/time.h unistd.h
2709 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2710 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2711 echo "configure:2712: checking for $ac_hdr" >&5
2712 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2713 echo $ac_n "(cached) $ac_c" 1>&6
2715 cat > conftest.$ac_ext <<EOF
2716 #line 2717 "configure"
2717 #include "confdefs.h"
2720 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2721 { (eval echo configure:2722: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2722 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2723 if test -z "$ac_err"; then
2725 eval "ac_cv_header_$ac_safe=yes"
2728 echo "configure: failed program was:" >&5
2729 cat conftest.$ac_ext >&5
2731 eval "ac_cv_header_$ac_safe=no"
2735 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2736 echo "$ac_t""yes" 1>&6
2737 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2738 cat >> confdefs.h <<EOF
2739 #define $ac_tr_hdr 1
2743 echo "$ac_t""no" 1>&6
2747 for ac_hdr in sys/soundcard.h machine/soundcard.h
2749 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2750 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2751 echo "configure:2752: checking for $ac_hdr" >&5
2752 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2753 echo $ac_n "(cached) $ac_c" 1>&6
2755 cat > conftest.$ac_ext <<EOF
2756 #line 2757 "configure"
2757 #include "confdefs.h"
2760 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2761 { (eval echo configure:2762: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2762 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2763 if test -z "$ac_err"; then
2765 eval "ac_cv_header_$ac_safe=yes"
2768 echo "configure: failed program was:" >&5
2769 cat conftest.$ac_ext >&5
2771 eval "ac_cv_header_$ac_safe=no"
2775 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2776 echo "$ac_t""yes" 1>&6
2777 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2778 cat >> confdefs.h <<EOF
2779 #define $ac_tr_hdr 1
2783 echo "$ac_t""no" 1>&6
2787 for ac_hdr in dlfcn.h image.h
2789 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2790 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2791 echo "configure:2792: checking for $ac_hdr" >&5
2792 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2793 echo $ac_n "(cached) $ac_c" 1>&6
2795 cat > conftest.$ac_ext <<EOF
2796 #line 2797 "configure"
2797 #include "confdefs.h"
2800 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2801 { (eval echo configure:2802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2802 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2803 if test -z "$ac_err"; then
2805 eval "ac_cv_header_$ac_safe=yes"
2808 echo "configure: failed program was:" >&5
2809 cat conftest.$ac_ext >&5
2811 eval "ac_cv_header_$ac_safe=no"
2815 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2816 echo "$ac_t""yes" 1>&6
2817 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2818 cat >> confdefs.h <<EOF
2819 #define $ac_tr_hdr 1
2823 echo "$ac_t""no" 1>&6
2827 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
2829 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2830 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2831 echo "configure:2832: checking for $ac_hdr" >&5
2832 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2833 echo $ac_n "(cached) $ac_c" 1>&6
2835 cat > conftest.$ac_ext <<EOF
2836 #line 2837 "configure"
2837 #include "confdefs.h"
2840 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2841 { (eval echo configure:2842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2842 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2843 if test -z "$ac_err"; then
2845 eval "ac_cv_header_$ac_safe=yes"
2848 echo "configure: failed program was:" >&5
2849 cat conftest.$ac_ext >&5
2851 eval "ac_cv_header_$ac_safe=no"
2855 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2856 echo "$ac_t""yes" 1>&6
2857 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2858 cat >> confdefs.h <<EOF
2859 #define $ac_tr_hdr 1
2863 echo "$ac_t""no" 1>&6
2867 for ac_hdr in machine/param.h
2869 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2870 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2871 echo "configure:2872: checking for $ac_hdr" >&5
2872 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2873 echo $ac_n "(cached) $ac_c" 1>&6
2875 cat > conftest.$ac_ext <<EOF
2876 #line 2877 "configure"
2877 #include "confdefs.h"
2880 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2881 { (eval echo configure:2882: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2882 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2883 if test -z "$ac_err"; then
2885 eval "ac_cv_header_$ac_safe=yes"
2888 echo "configure: failed program was:" >&5
2889 cat conftest.$ac_ext >&5
2891 eval "ac_cv_header_$ac_safe=no"
2895 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2896 echo "$ac_t""yes" 1>&6
2897 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2898 cat >> confdefs.h <<EOF
2899 #define $ac_tr_hdr 1
2903 echo "$ac_t""no" 1>&6
2908 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
2910 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2911 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2912 echo "configure:2913: checking for $ac_hdr" >&5
2913 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2914 echo $ac_n "(cached) $ac_c" 1>&6
2916 cat > conftest.$ac_ext <<EOF
2917 #line 2918 "configure"
2918 #include "confdefs.h"
2921 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2922 { (eval echo configure:2923: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2923 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2924 if test -z "$ac_err"; then
2926 eval "ac_cv_header_$ac_safe=yes"
2929 echo "configure: failed program was:" >&5
2930 cat conftest.$ac_ext >&5
2932 eval "ac_cv_header_$ac_safe=no"
2936 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2937 echo "$ac_t""yes" 1>&6
2938 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2939 cat >> confdefs.h <<EOF
2940 #define $ac_tr_hdr 1
2944 echo "$ac_t""no" 1>&6
2951 CFLAGS="${CFLAGS} -Wall -Werror"
2952 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
2953 echo "configure:2954: checking for ntohl in sys/param.h" >&5
2954 cat > conftest.$ac_ext <<EOF
2955 #line 2956 "configure"
2956 #include "confdefs.h"
2957 #include <sys/param.h>
2958 void foo() { int meuh; ntohl(meuh); }
2963 if { (eval echo configure:2964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2965 cat >> confdefs.h <<\EOF
2966 #define NTOHL_IN_SYS_PARAM_H 1
2969 echo "$ac_t""yes" 1>&6
2971 echo "configure: failed program was:" >&5
2972 cat conftest.$ac_ext >&5
2974 echo "$ac_t""no" 1>&6
2978 CFLAGS="${CFLAGS} -rdynamic"
2979 echo $ac_n "checking if \$CC accepts -rdynamic""... $ac_c" 1>&6
2980 echo "configure:2981: checking if \$CC accepts -rdynamic" >&5
2981 cat > conftest.$ac_ext <<EOF
2982 #line 2983 "configure"
2983 #include "confdefs.h"
2989 if { (eval echo configure:2990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2991 DYNAMIC_FLAG="-rdynamic"
2992 echo "$ac_t""yes" 1>&6
2994 echo "configure: failed program was:" >&5
2995 cat conftest.$ac_ext >&5
2997 echo "$ac_t""no" 1>&6
3003 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
3004 echo "configure:3005: checking for boolean_t in sys/types.h" >&5
3005 cat > conftest.$ac_ext <<EOF
3006 #line 3007 "configure"
3007 #include "confdefs.h"
3008 #include <sys/types.h>
3009 void quux() { boolean_t foo; }
3014 if { (eval echo configure:3015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3016 cat >> confdefs.h <<\EOF
3017 #define BOOLEAN_T_IN_SYS_TYPES_H 1
3020 echo "$ac_t""yes" 1>&6
3022 echo "configure: failed program was:" >&5
3023 cat conftest.$ac_ext >&5
3025 echo "$ac_t""no" 1>&6
3029 echo $ac_n "checking for working const""... $ac_c" 1>&6
3030 echo "configure:3031: checking for working const" >&5
3031 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3032 echo $ac_n "(cached) $ac_c" 1>&6
3034 cat > conftest.$ac_ext <<EOF
3035 #line 3036 "configure"
3036 #include "confdefs.h"
3040 /* Ultrix mips cc rejects this. */
3041 typedef int charset[2]; const charset x;
3042 /* SunOS 4.1.1 cc rejects this. */
3043 char const *const *ccp;
3045 /* NEC SVR4.0.2 mips cc rejects this. */
3046 struct point {int x, y;};
3047 static struct point const zero = {0,0};
3048 /* AIX XL C 1.02.0.0 rejects this.
3049 It does not let you subtract one const X* pointer from another in an arm
3050 of an if-expression whose if-part is not a constant expression */
3051 const char *g = "string";
3052 ccp = &g + (g ? g-g : 0);
3053 /* HPUX 7.0 cc rejects these. */
3056 ccp = (char const *const *) p;
3057 { /* SCO 3.2v4 cc rejects this. */
3059 char const *s = 0 ? (char *) 0 : (char const *) 0;
3063 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3065 const int *foo = &x[0];
3068 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3069 typedef const int *iptr;
3073 { /* AIX XL C 1.02.0.0 rejects this saying
3074 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3075 struct s { int j; const int *ap[3]; };
3076 struct s *b; b->j = 5;
3078 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3084 if { (eval echo configure:3085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3088 echo "configure: failed program was:" >&5
3089 cat conftest.$ac_ext >&5
3096 echo "$ac_t""$ac_cv_c_const" 1>&6
3097 if test $ac_cv_c_const = no; then
3098 cat >> confdefs.h <<\EOF
3104 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3105 echo "configure:3106: checking for ANSI C header files" >&5
3106 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3107 echo $ac_n "(cached) $ac_c" 1>&6
3109 cat > conftest.$ac_ext <<EOF
3110 #line 3111 "configure"
3111 #include "confdefs.h"
3117 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3118 { (eval echo configure:3119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3119 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3120 if test -z "$ac_err"; then
3122 ac_cv_header_stdc=yes
3125 echo "configure: failed program was:" >&5
3126 cat conftest.$ac_ext >&5
3128 ac_cv_header_stdc=no
3132 if test $ac_cv_header_stdc = yes; then
3133 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3134 cat > conftest.$ac_ext <<EOF
3135 #line 3136 "configure"
3136 #include "confdefs.h"
3139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3140 egrep "memchr" >/dev/null 2>&1; then
3144 ac_cv_header_stdc=no
3150 if test $ac_cv_header_stdc = yes; then
3151 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3152 cat > conftest.$ac_ext <<EOF
3153 #line 3154 "configure"
3154 #include "confdefs.h"
3157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3158 egrep "free" >/dev/null 2>&1; then
3162 ac_cv_header_stdc=no
3168 if test $ac_cv_header_stdc = yes; then
3169 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3170 if test "$cross_compiling" = yes; then
3173 cat > conftest.$ac_ext <<EOF
3174 #line 3175 "configure"
3175 #include "confdefs.h"
3177 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3178 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3179 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3180 int main () { int i; for (i = 0; i < 256; i++)
3181 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3185 if { (eval echo configure:3186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3189 echo "configure: failed program was:" >&5
3190 cat conftest.$ac_ext >&5
3192 ac_cv_header_stdc=no
3200 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3201 if test $ac_cv_header_stdc = yes; then
3202 cat >> confdefs.h <<\EOF
3203 #define STDC_HEADERS 1
3208 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3209 echo "configure:3210: checking for size_t" >&5
3210 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3211 echo $ac_n "(cached) $ac_c" 1>&6
3213 cat > conftest.$ac_ext <<EOF
3214 #line 3215 "configure"
3215 #include "confdefs.h"
3216 #include <sys/types.h>
3222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3223 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3225 ac_cv_type_size_t=yes
3228 ac_cv_type_size_t=no
3233 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3234 if test $ac_cv_type_size_t = no; then
3235 cat >> confdefs.h <<\EOF
3236 #define size_t unsigned
3241 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3242 echo "configure:3243: checking whether time.h and sys/time.h may both be included" >&5
3243 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3244 echo $ac_n "(cached) $ac_c" 1>&6
3246 cat > conftest.$ac_ext <<EOF
3247 #line 3248 "configure"
3248 #include "confdefs.h"
3249 #include <sys/types.h>
3250 #include <sys/time.h>
3256 if { (eval echo configure:3257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3258 ac_cv_header_time=yes
3260 echo "configure: failed program was:" >&5
3261 cat conftest.$ac_ext >&5
3263 ac_cv_header_time=no
3268 echo "$ac_t""$ac_cv_header_time" 1>&6
3269 if test $ac_cv_header_time = yes; then
3270 cat >> confdefs.h <<\EOF
3271 #define TIME_WITH_SYS_TIME 1
3277 PLUGINS=${PLUGINS}"ps ts yuv idct idctclassic motion "
3278 if test x$host_os = xbeos; then
3279 ACCEL_PLUGINS="yuvmmx idctmmx motionmmx "
3281 ACCEL_PLUGINS="yuvmmx idctmmx idctmmxext motionmmx motionmmxext "
3284 for ac_hdr in sys/ioctl.h
3286 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3287 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3288 echo "configure:3289: checking for $ac_hdr" >&5
3289 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3290 echo $ac_n "(cached) $ac_c" 1>&6
3292 cat > conftest.$ac_ext <<EOF
3293 #line 3294 "configure"
3294 #include "confdefs.h"
3297 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3298 { (eval echo configure:3299: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3299 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3300 if test -z "$ac_err"; then
3302 eval "ac_cv_header_$ac_safe=yes"
3305 echo "configure: failed program was:" >&5
3306 cat conftest.$ac_ext >&5
3308 eval "ac_cv_header_$ac_safe=no"
3312 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3313 echo "$ac_t""yes" 1>&6
3314 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3315 cat >> confdefs.h <<EOF
3316 #define $ac_tr_hdr 1
3318 PLUGINS=${PLUGINS}"dvd "
3319 for ac_hdr in linux/cdrom.h
3321 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3322 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3323 echo "configure:3324: checking for $ac_hdr" >&5
3324 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3325 echo $ac_n "(cached) $ac_c" 1>&6
3327 cat > conftest.$ac_ext <<EOF
3328 #line 3329 "configure"
3329 #include "confdefs.h"
3332 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3333 { (eval echo configure:3334: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3334 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3335 if test -z "$ac_err"; then
3337 eval "ac_cv_header_$ac_safe=yes"
3340 echo "configure: failed program was:" >&5
3341 cat conftest.$ac_ext >&5
3343 eval "ac_cv_header_$ac_safe=no"
3347 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3348 echo "$ac_t""yes" 1>&6
3349 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3350 cat >> confdefs.h <<EOF
3351 #define $ac_tr_hdr 1
3355 echo "$ac_t""no" 1>&6
3359 cat > conftest.$ac_ext <<EOF
3360 #line 3361 "configure"
3361 #include "confdefs.h"
3362 #include <linux/cdrom.h>
3364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3365 egrep "dvd" >/dev/null 2>&1; then
3367 cat >> confdefs.h <<\EOF
3375 echo "$ac_t""no" 1>&6
3381 # Check whether --enable-ppro or --disable-ppro was given.
3382 if test "${enable_ppro+set}" = set; then
3383 enableval="$enable_ppro"
3384 if test x$enableval = xyes; then ARCH=${ARCH}" ppro"; fi
3386 if test x${host_cpu} = xi686; then ARCH=${ARCH}" ppro"; fi
3389 # Check whether --enable-mmx or --disable-mmx was given.
3390 if test "${enable_mmx+set}" = set; then
3391 enableval="$enable_mmx"
3392 if test x$enableval = xyes; then ARCH=${ARCH}" mmx"; PLUGINS=${PLUGINS}${ACCEL_PLUGINS}; fi
3394 if test x${host_cpu} = xi686 -o x${host_cpu} = xi586; then ARCH=${ARCH}" mmx"; PLUGINS=${PLUGINS}${ACCEL_PLUGINS}; fi
3397 # Check whether --enable-debug or --disable-debug was given.
3398 if test "${enable_debug+set}" = set; then
3399 enableval="$enable_debug"
3400 if test x$enableval = xyes; then DEBUG=1; fi
3403 # Check whether --enable-stats or --disable-stats was given.
3404 if test "${enable_stats+set}" = set; then
3405 enableval="$enable_stats"
3406 if test x$enableval = xyes; then STATS=1; fi
3409 # Check whether --enable-optimizations or --disable-optimizations was given.
3410 if test "${enable_optimizations+set}" = set; then
3411 enableval="$enable_optimizations"
3412 if test x$enableval = xno; then OPTIMS=0; fi
3421 if test x$host_os = xbeos; then
3422 PLUGINS=${PLUGINS}"dummy null beos "
3426 # Check whether --enable-dummy or --disable-dummy was given.
3427 if test "${enable_dummy+set}" = set; then
3428 enableval="$enable_dummy"
3432 if test x$enable_dummy != xno; then PLUGINS=${PLUGINS}"dummy "; fi
3433 # Check whether --enable-null or --disable-null was given.
3434 if test "${enable_null+set}" = set; then
3435 enableval="$enable_null"
3439 if test x$enable_null != xno; then PLUGINS=${PLUGINS}"null "; fi
3440 # Check whether --enable-dsp or --disable-dsp was given.
3441 if test "${enable_dsp+set}" = set; then
3442 enableval="$enable_dsp"
3446 if test x$enable_dsp != xno; then PLUGINS=${PLUGINS}"dsp "; fi
3447 # Check whether --enable-esd or --disable-esd was given.
3448 if test "${enable_esd+set}" = set; then
3449 enableval="$enable_esd"
3450 if test x$enable_esd = xyes; then PLUGINS=${PLUGINS}"esd "; fi
3453 # Check whether --enable-fb or --disable-fb was given.
3454 if test "${enable_fb+set}" = set; then
3455 enableval="$enable_fb"
3456 if test x$enable_fb = xyes; then PLUGINS=${PLUGINS}"fb "; fi
3459 # Check whether --with-ggi or --without-ggi was given.
3460 if test "${with_ggi+set}" = set; then
3462 PLUGINS=${PLUGINS}"ggi ";
3463 if test "x$withval" != "xyes";
3465 LIB_GGI="-l"$withval
3471 # Check whether --with-sdl or --without-sdl was given.
3472 if test "${with_sdl+set}" = set; then
3474 PLUGINS=${PLUGINS}"sdl ";
3475 if test "x$withval" != "xyes";
3477 LIB_SDL="L/usr/X11R6/lib -l"$withval
3479 LIB_SDL="-L/usr/X11R6/lib -lSDL"
3483 if test "x$withval" = "x";
3485 PLUGINS=${PLUGINS}"sdl "
3486 LIB_SDL="-L/usr/X11R6/lib -lSDL"
3488 # Check whether --with-glide or --without-glide was given.
3489 if test "${with_glide+set}" = set; then
3490 withval="$with_glide"
3491 PLUGINS=${PLUGINS}"glide ";
3492 if test "x$withval" != "xyes";
3494 LIB_GLIDE="-l"$withval
3496 LIB_GLIDE="-lglide2x"
3500 # Check whether --enable-ncurses or --disable-ncurses was given.
3501 if test "${enable_ncurses+set}" = set; then
3502 enableval="$enable_ncurses"
3503 if test x$enable_ncurses = xyes; then PLUGINS=${PLUGINS}"ncurses "; fi
3506 # Check whether --enable-kde or --disable-kde was given.
3507 if test "${enable_kde+set}" = set; then
3508 enableval="$enable_kde"
3509 if test x$enable_kde = xyes; then PLUGINS=${PLUGINS}"kde "; ALIASE=${ALIASES}"kvlc"; fi
3512 # Check whether --enable-gnome or --disable-gnome was given.
3513 if test "${enable_gnome+set}" = set; then
3514 enableval="$enable_gnome"
3518 if test x$enable_gnome != xno; then PLUGINS=${PLUGINS}"gnome "; ALIASES=${ALIASES}"gvlc "; fi
3519 # Check whether --enable-x11 or --disable-x11 was given.
3520 if test "${enable_x11+set}" = set; then
3521 enableval="$enable_x11"
3525 if test x$enable_x11 != xno; then PLUGINS=${PLUGINS}"x11 "; fi
3527 # Check whether --enable-alsa or --disable-alsa was given.
3528 if test "${enable_alsa+set}" = set; then
3529 enableval="$enable_alsa"
3530 if test x$enable_alsa = xyes; then ac_safe=`echo "sys/asoundlib.h" | sed 'y%./+-%__p_%'`
3531 echo $ac_n "checking for sys/asoundlib.h""... $ac_c" 1>&6
3532 echo "configure:3533: checking for sys/asoundlib.h" >&5
3533 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3534 echo $ac_n "(cached) $ac_c" 1>&6
3536 cat > conftest.$ac_ext <<EOF
3537 #line 3538 "configure"
3538 #include "confdefs.h"
3539 #include <sys/asoundlib.h>
3541 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3542 { (eval echo configure:3543: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3543 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3544 if test -z "$ac_err"; then
3546 eval "ac_cv_header_$ac_safe=yes"
3549 echo "configure: failed program was:" >&5
3550 cat conftest.$ac_ext >&5
3552 eval "ac_cv_header_$ac_safe=no"
3556 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3557 echo "$ac_t""yes" 1>&6
3558 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
3559 echo "configure:3560: checking for main in -lasound" >&5
3560 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
3561 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3562 echo $ac_n "(cached) $ac_c" 1>&6
3564 ac_save_LIBS="$LIBS"
3565 LIBS="-lasound $LIBS"
3566 cat > conftest.$ac_ext <<EOF
3567 #line 3568 "configure"
3568 #include "confdefs.h"
3574 if { (eval echo configure:3575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3576 eval "ac_cv_lib_$ac_lib_var=yes"
3578 echo "configure: failed program was:" >&5
3579 cat conftest.$ac_ext >&5
3581 eval "ac_cv_lib_$ac_lib_var=no"
3584 LIBS="$ac_save_LIBS"
3587 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3588 echo "$ac_t""yes" 1>&6
3591 echo "$ac_t""no" 1>&6
3596 echo "$ac_t""no" 1>&6
3599 if test $have_alsa = true; then PLUGINS=${PLUGINS}"alsa "; fi; fi
3617 cat > confcache <<\EOF
3618 # This file is a shell script that caches the results of configure
3619 # tests run on this system so they can be shared between configure
3620 # scripts and configure runs. It is not useful on other systems.
3621 # If it contains results you don't want to keep, you may remove or edit it.
3623 # By default, configure uses ./config.cache as the cache file,
3624 # creating it if it does not exist already. You can give configure
3625 # the --cache-file=FILE option to use a different cache file; that is
3626 # what configure does when it calls configure scripts in
3627 # subdirectories, so they share the cache.
3628 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3629 # config.status only pays attention to the cache file if you give it the
3630 # --recheck option to rerun configure.
3633 # The following way of writing the cache mishandles newlines in values,
3634 # but we know of no workaround that is simple, portable, and efficient.
3635 # So, don't put newlines in cache variables' values.
3636 # Ultrix sh set writes to stderr and can't be redirected directly,
3637 # and sets the high bit in the cache file unless we assign to the vars.
3639 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3641 # `set' does not quote correctly, so add quotes (double-quote substitution
3642 # turns \\\\ into \\, and sed turns \\ into \).
3644 -e "s/'/'\\\\''/g" \
3645 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3648 # `set' quotes correctly as required by POSIX, so do not add quotes.
3649 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3652 if cmp -s $cache_file confcache; then
3655 if test -w $cache_file; then
3656 echo "updating cache $cache_file"
3657 cat confcache > $cache_file
3659 echo "not updating unwritable cache $cache_file"
3664 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3666 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3667 # Let make expand exec_prefix.
3668 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3670 # Any assignment to VPATH causes Sun make to only execute
3671 # the first set of double-colon rules, so remove it if not needed.
3672 # If there is a colon in the path, we need to keep it.
3673 if test "x$srcdir" = x.; then
3674 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3677 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3679 DEFS=-DHAVE_CONFIG_H
3681 # Without the "./", some shells look in PATH for config.status.
3682 : ${CONFIG_STATUS=./config.status}
3684 echo creating $CONFIG_STATUS
3685 rm -f $CONFIG_STATUS
3686 cat > $CONFIG_STATUS <<EOF
3688 # Generated automatically by configure.
3689 # Run this file to recreate the current configuration.
3690 # This directory was configured as follows,
3691 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3693 # $0 $ac_configure_args
3695 # Compiler output produced by configure, useful for debugging
3696 # configure, is in ./config.log if it exists.
3698 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3701 case "\$ac_option" in
3702 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3703 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3704 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3705 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3706 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3708 -help | --help | --hel | --he | --h)
3709 echo "\$ac_cs_usage"; exit 0 ;;
3710 *) echo "\$ac_cs_usage"; exit 1 ;;
3714 ac_given_srcdir=$srcdir
3715 ac_given_INSTALL="$INSTALL"
3717 trap 'rm -fr `echo "Makefile include/config.h include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3719 cat >> $CONFIG_STATUS <<EOF
3721 # Protect against being on the right side of a sed subst in config.status.
3722 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3723 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3727 s%@CFLAGS@%$CFLAGS%g
3728 s%@CPPFLAGS@%$CPPFLAGS%g
3729 s%@CXXFLAGS@%$CXXFLAGS%g
3730 s%@FFLAGS@%$FFLAGS%g
3732 s%@LDFLAGS@%$LDFLAGS%g
3734 s%@exec_prefix@%$exec_prefix%g
3735 s%@prefix@%$prefix%g
3736 s%@program_transform_name@%$program_transform_name%g
3737 s%@bindir@%$bindir%g
3738 s%@sbindir@%$sbindir%g
3739 s%@libexecdir@%$libexecdir%g
3740 s%@datadir@%$datadir%g
3741 s%@sysconfdir@%$sysconfdir%g
3742 s%@sharedstatedir@%$sharedstatedir%g
3743 s%@localstatedir@%$localstatedir%g
3744 s%@libdir@%$libdir%g
3745 s%@includedir@%$includedir%g
3746 s%@oldincludedir@%$oldincludedir%g
3747 s%@infodir@%$infodir%g
3748 s%@mandir@%$mandir%g
3750 s%@host_alias@%$host_alias%g
3751 s%@host_cpu@%$host_cpu%g
3752 s%@host_vendor@%$host_vendor%g
3753 s%@host_os@%$host_os%g
3754 s%@VLC_VERSION@%$VLC_VERSION%g
3755 s%@VLC_CODENAME@%$VLC_CODENAME%g
3756 s%@SET_MAKE@%$SET_MAKE%g
3759 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3760 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3761 s%@INSTALL_DATA@%$INSTALL_DATA%g
3762 s%@LIBOBJS@%$LIBOBJS%g
3765 s%@PLUGINS@%$PLUGINS%g
3766 s%@ALIASES@%$ALIASES%g
3769 s%@OPTIMS@%$OPTIMS%g
3770 s%@DYNAMIC_FLAG@%$DYNAMIC_FLAG%g
3771 s%@LIB_SDL@%$LIB_SDL%g
3772 s%@LIB_GLIDE@%$LIB_GLIDE%g
3773 s%@LIB_GGI@%$LIB_GGI%g
3778 cat >> $CONFIG_STATUS <<\EOF
3780 # Split the substitutions into bite-sized pieces for seds with
3781 # small command number limits, like on Digital OSF/1 and HP-UX.
3782 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3783 ac_file=1 # Number of current file.
3784 ac_beg=1 # First line for current file.
3785 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3788 while $ac_more_lines; do
3789 if test $ac_beg -gt 1; then
3790 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3792 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3794 if test ! -s conftest.s$ac_file; then
3796 rm -f conftest.s$ac_file
3798 if test -z "$ac_sed_cmds"; then
3799 ac_sed_cmds="sed -f conftest.s$ac_file"
3801 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3803 ac_file=`expr $ac_file + 1`
3805 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3808 if test -z "$ac_sed_cmds"; then
3813 cat >> $CONFIG_STATUS <<EOF
3815 CONFIG_FILES=\${CONFIG_FILES-"Makefile include/config.h"}
3817 cat >> $CONFIG_STATUS <<\EOF
3818 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3819 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3821 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3822 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3823 *) ac_file_in="${ac_file}.in" ;;
3826 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3828 # Remove last slash and all that follows it. Not all systems have dirname.
3829 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3830 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3831 # The file is in a subdirectory.
3832 test ! -d "$ac_dir" && mkdir "$ac_dir"
3833 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3834 # A "../" for each directory in $ac_dir_suffix.
3835 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3837 ac_dir_suffix= ac_dots=
3840 case "$ac_given_srcdir" in
3842 if test -z "$ac_dots"; then top_srcdir=.
3843 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3844 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3846 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3847 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3850 case "$ac_given_INSTALL" in
3851 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3852 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3855 echo creating "$ac_file"
3857 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3859 *Makefile*) ac_comsub="1i\\
3860 # $configure_input" ;;
3864 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3866 s%@configure_input@%$configure_input%g
3867 s%@srcdir@%$srcdir%g
3868 s%@top_srcdir@%$top_srcdir%g
3869 s%@INSTALL@%$INSTALL%g
3870 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3874 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3875 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3877 # ac_d sets the value in "#define NAME VALUE" lines.
3878 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3879 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3882 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3883 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3884 ac_uB='\([ ]\)%\1#\2define\3'
3887 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3888 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3889 ac_eB='$%\1#\2define\3'
3893 if test "${CONFIG_HEADERS+set}" != set; then
3895 cat >> $CONFIG_STATUS <<EOF
3896 CONFIG_HEADERS="include/defs.h"
3898 cat >> $CONFIG_STATUS <<\EOF
3900 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3901 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3903 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3904 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3905 *) ac_file_in="${ac_file}.in" ;;
3908 echo creating $ac_file
3910 rm -f conftest.frag conftest.in conftest.out
3911 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3912 cat $ac_file_inputs > conftest.in
3916 # Transform confdefs.h into a sed script conftest.vals that substitutes
3917 # the proper values into config.h.in to produce config.h. And first:
3918 # Protect against being on the right side of a sed subst in config.status.
3919 # Protect against being in an unquoted here document in config.status.
3921 cat > conftest.hdr <<\EOF
3924 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3928 sed -n -f conftest.hdr confdefs.h > conftest.vals
3931 # This sed command replaces #undef with comments. This is necessary, for
3932 # example, in the case of _POSIX_SOURCE, which is predefined and required
3933 # on some systems where configure will not decide to define it.
3934 cat >> conftest.vals <<\EOF
3935 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3938 # Break up conftest.vals because some shells have a limit on
3939 # the size of here documents, and old seds have small limits too.
3944 ac_lines=`grep -c . conftest.vals`
3945 # grep -c gives empty output for an empty file on some AIX systems.
3946 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3947 # Write a limited-size here document to conftest.frag.
3948 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3949 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3951 sed -f conftest.frag conftest.in > conftest.out
3953 mv conftest.out conftest.in
3955 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3957 mv conftest.tail conftest.vals
3961 cat >> $CONFIG_STATUS <<\EOF
3962 rm -f conftest.frag conftest.h
3963 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3964 cat conftest.in >> conftest.h
3966 if cmp -s $ac_file conftest.h 2>/dev/null; then
3967 echo "$ac_file is unchanged"
3970 # Remove last slash and all that follows it. Not all systems have dirname.
3971 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3972 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3973 # The file is in a subdirectory.
3974 test ! -d "$ac_dir" && mkdir "$ac_dir"
3977 mv conftest.h $ac_file
3982 cat >> $CONFIG_STATUS <<EOF
3985 cat >> $CONFIG_STATUS <<\EOF
3989 chmod +x $CONFIG_STATUS
3990 rm -fr confdefs* $ac_clean_files
3991 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3997 vlc version : ${VLC_VERSION}
3999 architecture : ${ARCH}
4000 debug mode : ${DEBUG}
4001 statistics : ${STATS}
4002 optimizations : ${OPTIMS}
4003 plugins : ${PLUGINS}
4004 vlc aliases : ${ALIASES}