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 --disable-gnome Gnome support (default enabled)"
45 --disable-x11 X11 support (default enabled)"
47 --enable-alsa Alsa sound drivers support (Only for linux) (default disabled)"
49 # Initialize some variables set by options.
50 # The variables have the same names as the options, with
51 # dashes changed to underlines.
53 cache_file=./config.cache
62 program_transform_name=s,x,x,
70 bindir='${exec_prefix}/bin'
71 sbindir='${exec_prefix}/sbin'
72 libexecdir='${exec_prefix}/libexec'
73 datadir='${prefix}/share'
74 sysconfdir='${prefix}/etc'
75 sharedstatedir='${prefix}/com'
76 localstatedir='${prefix}/var'
77 libdir='${exec_prefix}/lib'
78 includedir='${prefix}/include'
79 oldincludedir='/usr/include'
80 infodir='${prefix}/info'
81 mandir='${prefix}/man'
83 # Initialize some other variables.
86 SHELL=${CONFIG_SHELL-/bin/sh}
87 # Maximum number of lines to put in a shell here document.
94 # If the previous option needs an argument, assign it.
95 if test -n "$ac_prev"; then
96 eval "$ac_prev=\$ac_option"
102 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
106 # Accept the important Cygnus configure options, so we can diagnose typos.
110 -bindir | --bindir | --bindi | --bind | --bin | --bi)
112 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
113 bindir="$ac_optarg" ;;
115 -build | --build | --buil | --bui | --bu)
117 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
118 build="$ac_optarg" ;;
120 -cache-file | --cache-file | --cache-fil | --cache-fi \
121 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
122 ac_prev=cache_file ;;
123 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
124 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
125 cache_file="$ac_optarg" ;;
127 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
129 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
131 datadir="$ac_optarg" ;;
133 -disable-* | --disable-*)
134 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
135 # Reject names that are not valid shell variable names.
136 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
137 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
139 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
140 eval "enable_${ac_feature}=no" ;;
142 -enable-* | --enable-*)
143 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
144 # Reject names that are not valid shell variable names.
145 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
146 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
148 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
153 eval "enable_${ac_feature}='$ac_optarg'" ;;
155 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
156 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
157 | --exec | --exe | --ex)
158 ac_prev=exec_prefix ;;
159 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
160 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
161 | --exec=* | --exe=* | --ex=*)
162 exec_prefix="$ac_optarg" ;;
164 -gas | --gas | --ga | --g)
165 # Obsolete; use --with-gas.
168 -help | --help | --hel | --he)
169 # Omit some internal or obsolete options to make the list less imposing.
170 # This message is too long to be a string in the A/UX 3.1 sh.
172 Usage: configure [options] [host]
173 Options: [defaults in brackets after descriptions]
175 --cache-file=FILE cache test results in FILE
176 --help print this message
177 --no-create do not create output files
178 --quiet, --silent do not print \`checking...' messages
179 --version print the version of autoconf that created configure
180 Directory and file names:
181 --prefix=PREFIX install architecture-independent files in PREFIX
183 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
185 --bindir=DIR user executables in DIR [EPREFIX/bin]
186 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
187 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
188 --datadir=DIR read-only architecture-independent data in DIR
190 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
191 --sharedstatedir=DIR modifiable architecture-independent data in DIR
193 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
194 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
195 --includedir=DIR C header files in DIR [PREFIX/include]
196 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
197 --infodir=DIR info documentation in DIR [PREFIX/info]
198 --mandir=DIR man documentation in DIR [PREFIX/man]
199 --srcdir=DIR find the sources in DIR [configure dir or ..]
200 --program-prefix=PREFIX prepend PREFIX to installed program names
201 --program-suffix=SUFFIX append SUFFIX to installed program names
202 --program-transform-name=PROGRAM
203 run sed PROGRAM on installed program names
207 --build=BUILD configure for building on BUILD [BUILD=HOST]
208 --host=HOST configure for HOST [guessed]
209 --target=TARGET configure for TARGET [TARGET=HOST]
210 Features and packages:
211 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
212 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
213 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
214 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
215 --x-includes=DIR X include files are in DIR
216 --x-libraries=DIR X library files are in DIR
218 if test -n "$ac_help"; then
219 echo "--enable and --with options recognized:$ac_help"
223 -host | --host | --hos | --ho)
225 -host=* | --host=* | --hos=* | --ho=*)
228 -includedir | --includedir | --includedi | --included | --include \
229 | --includ | --inclu | --incl | --inc)
230 ac_prev=includedir ;;
231 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
232 | --includ=* | --inclu=* | --incl=* | --inc=*)
233 includedir="$ac_optarg" ;;
235 -infodir | --infodir | --infodi | --infod | --info | --inf)
237 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
238 infodir="$ac_optarg" ;;
240 -libdir | --libdir | --libdi | --libd)
242 -libdir=* | --libdir=* | --libdi=* | --libd=*)
243 libdir="$ac_optarg" ;;
245 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
246 | --libexe | --libex | --libe)
247 ac_prev=libexecdir ;;
248 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
249 | --libexe=* | --libex=* | --libe=*)
250 libexecdir="$ac_optarg" ;;
252 -localstatedir | --localstatedir | --localstatedi | --localstated \
253 | --localstate | --localstat | --localsta | --localst \
254 | --locals | --local | --loca | --loc | --lo)
255 ac_prev=localstatedir ;;
256 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
257 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
258 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
259 localstatedir="$ac_optarg" ;;
261 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
263 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
264 mandir="$ac_optarg" ;;
267 # Obsolete; use --without-fp.
270 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
274 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
275 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
278 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
279 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
280 | --oldin | --oldi | --old | --ol | --o)
281 ac_prev=oldincludedir ;;
282 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
283 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
284 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
285 oldincludedir="$ac_optarg" ;;
287 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
289 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
290 prefix="$ac_optarg" ;;
292 -program-prefix | --program-prefix | --program-prefi | --program-pref \
293 | --program-pre | --program-pr | --program-p)
294 ac_prev=program_prefix ;;
295 -program-prefix=* | --program-prefix=* | --program-prefi=* \
296 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
297 program_prefix="$ac_optarg" ;;
299 -program-suffix | --program-suffix | --program-suffi | --program-suff \
300 | --program-suf | --program-su | --program-s)
301 ac_prev=program_suffix ;;
302 -program-suffix=* | --program-suffix=* | --program-suffi=* \
303 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
304 program_suffix="$ac_optarg" ;;
306 -program-transform-name | --program-transform-name \
307 | --program-transform-nam | --program-transform-na \
308 | --program-transform-n | --program-transform- \
309 | --program-transform | --program-transfor \
310 | --program-transfo | --program-transf \
311 | --program-trans | --program-tran \
312 | --progr-tra | --program-tr | --program-t)
313 ac_prev=program_transform_name ;;
314 -program-transform-name=* | --program-transform-name=* \
315 | --program-transform-nam=* | --program-transform-na=* \
316 | --program-transform-n=* | --program-transform-=* \
317 | --program-transform=* | --program-transfor=* \
318 | --program-transfo=* | --program-transf=* \
319 | --program-trans=* | --program-tran=* \
320 | --progr-tra=* | --program-tr=* | --program-t=*)
321 program_transform_name="$ac_optarg" ;;
323 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
324 | -silent | --silent | --silen | --sile | --sil)
327 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
329 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
331 sbindir="$ac_optarg" ;;
333 -sharedstatedir | --sharedstatedir | --sharedstatedi \
334 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
335 | --sharedst | --shareds | --shared | --share | --shar \
337 ac_prev=sharedstatedir ;;
338 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
339 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
340 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
342 sharedstatedir="$ac_optarg" ;;
344 -site | --site | --sit)
346 -site=* | --site=* | --sit=*)
349 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
351 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
352 srcdir="$ac_optarg" ;;
354 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
355 | --syscon | --sysco | --sysc | --sys | --sy)
356 ac_prev=sysconfdir ;;
357 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
358 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
359 sysconfdir="$ac_optarg" ;;
361 -target | --target | --targe | --targ | --tar | --ta | --t)
363 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
364 target="$ac_optarg" ;;
366 -v | -verbose | --verbose | --verbos | --verbo | --verb)
369 -version | --version | --versio | --versi | --vers)
370 echo "configure generated by autoconf version 2.13"
374 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
375 # Reject names that are not valid shell variable names.
376 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
377 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
379 ac_package=`echo $ac_package| sed 's/-/_/g'`
384 eval "with_${ac_package}='$ac_optarg'" ;;
386 -without-* | --without-*)
387 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
388 # Reject names that are not valid shell variable names.
389 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
390 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
392 ac_package=`echo $ac_package| sed 's/-/_/g'`
393 eval "with_${ac_package}=no" ;;
396 # Obsolete; use --with-x.
399 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
400 | --x-incl | --x-inc | --x-in | --x-i)
401 ac_prev=x_includes ;;
402 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
403 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
404 x_includes="$ac_optarg" ;;
406 -x-libraries | --x-libraries | --x-librarie | --x-librari \
407 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
408 ac_prev=x_libraries ;;
409 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
410 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
411 x_libraries="$ac_optarg" ;;
413 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
417 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
418 echo "configure: warning: $ac_option: invalid host type" 1>&2
420 if test "x$nonopt" != xNONE; then
421 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
429 if test -n "$ac_prev"; then
430 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
433 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
435 # File descriptor usage:
438 # 2 errors and warnings
439 # 3 some systems may open it to /dev/tty
440 # 4 used on the Kubota Titan
441 # 6 checking for... messages and results
442 # 5 compiler messages saved in config.log
443 if test "$silent" = yes; then
451 This file contains any messages produced by compilers while
452 running configure, to aid debugging if configure makes a mistake.
455 # Strip out --no-create and --no-recursion so they do not pile up.
456 # Also quote any args containing shell metacharacters.
461 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
462 | --no-cr | --no-c) ;;
463 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
464 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
465 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
466 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
467 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
472 # Only set these to C if already set. These must not be set unconditionally
473 # because not all systems understand e.g. LANG=C (notably SCO).
474 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
475 # Non-C LC_CTYPE values break the ctype check.
476 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
477 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
478 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
479 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
481 # confdefs.h avoids OS command line length limits that DEFS can exceed.
482 rm -rf conftest* confdefs.h
483 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
486 # A filename unique to this package, relative to the directory that
487 # configure is in, which we can look for to find out if srcdir is correct.
488 ac_unique_file=src/interface/main.c
490 # Find the source files, if location was not specified.
491 if test -z "$srcdir"; then
492 ac_srcdir_defaulted=yes
493 # Try the directory containing this script, then its parent.
495 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
496 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
498 if test ! -r $srcdir/$ac_unique_file; then
502 ac_srcdir_defaulted=no
504 if test ! -r $srcdir/$ac_unique_file; then
505 if test "$ac_srcdir_defaulted" = yes; then
506 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
508 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
511 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
513 # Prefer explicitly selected file to automatically selected ones.
514 if test -z "$CONFIG_SITE"; then
515 if test "x$prefix" != xNONE; then
516 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
518 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
521 for ac_site_file in $CONFIG_SITE; do
522 if test -r "$ac_site_file"; then
523 echo "loading site script $ac_site_file"
528 if test -r "$cache_file"; then
529 echo "loading cache $cache_file"
532 echo "creating cache $cache_file"
537 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
538 ac_cpp='$CPP $CPPFLAGS'
539 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
540 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
541 cross_compiling=$ac_cv_prog_cc_cross
545 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
546 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
547 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
554 ac_n= ac_c='\c' ac_t=
561 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
562 if test -f $ac_dir/install-sh; then
564 ac_install_sh="$ac_aux_dir/install-sh -c"
566 elif test -f $ac_dir/install.sh; then
568 ac_install_sh="$ac_aux_dir/install.sh -c"
572 if test -z "$ac_aux_dir"; then
573 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
575 ac_config_guess=$ac_aux_dir/config.guess
576 ac_config_sub=$ac_aux_dir/config.sub
577 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
580 # Make sure we can run config.sub.
581 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
582 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
585 echo $ac_n "checking host system type""... $ac_c" 1>&6
586 echo "configure:587: checking host system type" >&5
589 case "$host_alias" in
593 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
594 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
596 *) host_alias=$nonopt ;;
600 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
601 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
602 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
603 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
604 echo "$ac_t""$host" 1>&6
612 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
613 echo "configure:614: checking whether ${MAKE-make} sets \${MAKE}" >&5
614 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
615 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
616 echo $ac_n "(cached) $ac_c" 1>&6
618 cat > conftestmake <<\EOF
620 @echo 'ac_maketemp="${MAKE}"'
622 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
623 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
624 if test -n "$ac_maketemp"; then
625 eval ac_cv_prog_make_${ac_make}_set=yes
627 eval ac_cv_prog_make_${ac_make}_set=no
631 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
632 echo "$ac_t""yes" 1>&6
635 echo "$ac_t""no" 1>&6
636 SET_MAKE="MAKE=${MAKE-make}"
639 if test -z "$CC"; then
640 # Extract the first word of "gcc", so it can be a program name with args.
641 set dummy gcc; ac_word=$2
642 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
643 echo "configure:644: checking for $ac_word" >&5
644 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
645 echo $ac_n "(cached) $ac_c" 1>&6
647 if test -n "$CC"; then
648 ac_cv_prog_CC="$CC" # Let the user override the test.
650 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
652 for ac_dir in $ac_dummy; do
653 test -z "$ac_dir" && ac_dir=.
654 if test -f $ac_dir/$ac_word; then
663 if test -n "$CC"; then
664 echo "$ac_t""$CC" 1>&6
666 echo "$ac_t""no" 1>&6
669 if test -z "$CC"; then
670 # Extract the first word of "cc", so it can be a program name with args.
671 set dummy cc; ac_word=$2
672 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
673 echo "configure:674: checking for $ac_word" >&5
674 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
675 echo $ac_n "(cached) $ac_c" 1>&6
677 if test -n "$CC"; then
678 ac_cv_prog_CC="$CC" # Let the user override the test.
680 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
683 for ac_dir in $ac_dummy; do
684 test -z "$ac_dir" && ac_dir=.
685 if test -f $ac_dir/$ac_word; then
686 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
695 if test $ac_prog_rejected = yes; then
696 # We found a bogon in the path, so make sure we never use it.
697 set dummy $ac_cv_prog_CC
699 if test $# -gt 0; then
700 # We chose a different compiler from the bogus one.
701 # However, it has the same basename, so the bogon will be chosen
702 # first if we set CC to just the basename; use the full file name.
704 set dummy "$ac_dir/$ac_word" "$@"
712 if test -n "$CC"; then
713 echo "$ac_t""$CC" 1>&6
715 echo "$ac_t""no" 1>&6
718 if test -z "$CC"; then
721 # Extract the first word of "cl", so it can be a program name with args.
722 set dummy cl; ac_word=$2
723 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
724 echo "configure:725: checking for $ac_word" >&5
725 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
726 echo $ac_n "(cached) $ac_c" 1>&6
728 if test -n "$CC"; then
729 ac_cv_prog_CC="$CC" # Let the user override the test.
731 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
733 for ac_dir in $ac_dummy; do
734 test -z "$ac_dir" && ac_dir=.
735 if test -f $ac_dir/$ac_word; then
744 if test -n "$CC"; then
745 echo "$ac_t""$CC" 1>&6
747 echo "$ac_t""no" 1>&6
752 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
755 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
756 echo "configure:757: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
759 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
760 ac_cpp='$CPP $CPPFLAGS'
761 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
762 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
763 cross_compiling=$ac_cv_prog_cc_cross
765 cat > conftest.$ac_ext << EOF
767 #line 768 "configure"
768 #include "confdefs.h"
772 if { (eval echo configure:773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
773 ac_cv_prog_cc_works=yes
774 # If we can't run a trivial program, we are probably using a cross compiler.
775 if (./conftest; exit) 2>/dev/null; then
776 ac_cv_prog_cc_cross=no
778 ac_cv_prog_cc_cross=yes
781 echo "configure: failed program was:" >&5
782 cat conftest.$ac_ext >&5
783 ac_cv_prog_cc_works=no
787 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
788 ac_cpp='$CPP $CPPFLAGS'
789 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
790 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
791 cross_compiling=$ac_cv_prog_cc_cross
793 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
794 if test $ac_cv_prog_cc_works = no; then
795 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
797 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
798 echo "configure:799: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
799 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
800 cross_compiling=$ac_cv_prog_cc_cross
802 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
803 echo "configure:804: checking whether we are using GNU C" >&5
804 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
805 echo $ac_n "(cached) $ac_c" 1>&6
807 cat > conftest.c <<EOF
812 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:813: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
819 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
821 if test $ac_cv_prog_gcc = yes; then
827 ac_test_CFLAGS="${CFLAGS+set}"
828 ac_save_CFLAGS="$CFLAGS"
830 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
831 echo "configure:832: checking whether ${CC-cc} accepts -g" >&5
832 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
833 echo $ac_n "(cached) $ac_c" 1>&6
835 echo 'void f(){}' > conftest.c
836 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
845 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
846 if test "$ac_test_CFLAGS" = set; then
847 CFLAGS="$ac_save_CFLAGS"
848 elif test $ac_cv_prog_cc_g = yes; then
849 if test "$GCC" = yes; then
855 if test "$GCC" = yes; then
863 if test -z "$CPP"; then
864 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
865 echo "configure:866: checking how to run the C preprocessor" >&5
866 # On Suns, sometimes $CPP names a directory.
867 if test -n "$CPP" && test -d "$CPP"; then
870 if test -z "$CPP"; then
871 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
872 echo $ac_n "(cached) $ac_c" 1>&6
874 # This must be in double quotes, not single quotes, because CPP may get
875 # substituted into the Makefile and "${CC-cc}" will confuse make.
877 # On the NeXT, cc -E runs the code through the compiler's parser,
878 # not just through cpp.
879 cat > conftest.$ac_ext <<EOF
880 #line 881 "configure"
881 #include "confdefs.h"
885 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
886 { (eval echo configure:887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
887 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
888 if test -z "$ac_err"; then
892 echo "configure: failed program was:" >&5
893 cat conftest.$ac_ext >&5
895 CPP="${CC-cc} -E -traditional-cpp"
896 cat > conftest.$ac_ext <<EOF
897 #line 898 "configure"
898 #include "confdefs.h"
902 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
903 { (eval echo configure:904: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
904 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
905 if test -z "$ac_err"; then
909 echo "configure: failed program was:" >&5
910 cat conftest.$ac_ext >&5
912 CPP="${CC-cc} -nologo -E"
913 cat > conftest.$ac_ext <<EOF
914 #line 915 "configure"
915 #include "confdefs.h"
919 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
920 { (eval echo configure:921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
921 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
922 if test -z "$ac_err"; then
926 echo "configure: failed program was:" >&5
927 cat conftest.$ac_ext >&5
936 ac_cv_prog_CPP="$CPP"
938 CPP="$ac_cv_prog_CPP"
940 ac_cv_prog_CPP="$CPP"
942 echo "$ac_t""$CPP" 1>&6
946 # Find a good install program. We prefer a C program (faster),
947 # so one script is as good as another. But avoid the broken or
948 # incompatible versions:
949 # SysV /etc/install, /usr/sbin/install
950 # SunOS /usr/etc/install
953 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
954 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
955 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
956 # ./install, which can be erroneously created by make from ./install.sh.
957 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
958 echo "configure:959: checking for a BSD compatible install" >&5
959 if test -z "$INSTALL"; then
960 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
961 echo $ac_n "(cached) $ac_c" 1>&6
963 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
964 for ac_dir in $PATH; do
965 # Account for people who put trailing slashes in PATH elements.
967 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
969 # OSF1 and SCO ODT 3.0 have their own names for install.
970 # Don't use installbsd from OSF since it installs stuff as root
972 for ac_prog in ginstall scoinst install; do
973 if test -f $ac_dir/$ac_prog; then
974 if test $ac_prog = install &&
975 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
976 # AIX install. It has an incompatible calling convention.
979 ac_cv_path_install="$ac_dir/$ac_prog -c"
990 if test "${ac_cv_path_install+set}" = set; then
991 INSTALL="$ac_cv_path_install"
993 # As a last resort, use the slow shell script. We don't cache a
994 # path for INSTALL within a source directory, because that will
995 # break other packages using the cache if that directory is
996 # removed, or if the path is relative.
997 INSTALL="$ac_install_sh"
1000 echo "$ac_t""$INSTALL" 1>&6
1002 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1003 # It thinks the first close brace ends the variable substitution.
1004 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1006 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1008 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1011 echo $ac_n "checking for working const""... $ac_c" 1>&6
1012 echo "configure:1013: checking for working const" >&5
1013 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1014 echo $ac_n "(cached) $ac_c" 1>&6
1016 cat > conftest.$ac_ext <<EOF
1017 #line 1018 "configure"
1018 #include "confdefs.h"
1022 /* Ultrix mips cc rejects this. */
1023 typedef int charset[2]; const charset x;
1024 /* SunOS 4.1.1 cc rejects this. */
1025 char const *const *ccp;
1027 /* NEC SVR4.0.2 mips cc rejects this. */
1028 struct point {int x, y;};
1029 static struct point const zero = {0,0};
1030 /* AIX XL C 1.02.0.0 rejects this.
1031 It does not let you subtract one const X* pointer from another in an arm
1032 of an if-expression whose if-part is not a constant expression */
1033 const char *g = "string";
1034 ccp = &g + (g ? g-g : 0);
1035 /* HPUX 7.0 cc rejects these. */
1038 ccp = (char const *const *) p;
1039 { /* SCO 3.2v4 cc rejects this. */
1041 char const *s = 0 ? (char *) 0 : (char const *) 0;
1045 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1047 const int *foo = &x[0];
1050 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1051 typedef const int *iptr;
1055 { /* AIX XL C 1.02.0.0 rejects this saying
1056 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1057 struct s { int j; const int *ap[3]; };
1058 struct s *b; b->j = 5;
1060 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1066 if { (eval echo configure:1067: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1070 echo "configure: failed program was:" >&5
1071 cat conftest.$ac_ext >&5
1078 echo "$ac_t""$ac_cv_c_const" 1>&6
1079 if test $ac_cv_c_const = no; then
1080 cat >> confdefs.h <<\EOF
1086 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1087 echo "configure:1088: checking whether byte ordering is bigendian" >&5
1088 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1089 echo $ac_n "(cached) $ac_c" 1>&6
1091 ac_cv_c_bigendian=unknown
1092 # See if sys/param.h defines the BYTE_ORDER macro.
1093 cat > conftest.$ac_ext <<EOF
1094 #line 1095 "configure"
1095 #include "confdefs.h"
1096 #include <sys/types.h>
1097 #include <sys/param.h>
1100 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1105 if { (eval echo configure:1106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1107 # It does; now see whether it defined to BIG_ENDIAN or not.
1108 cat > conftest.$ac_ext <<EOF
1109 #line 1110 "configure"
1110 #include "confdefs.h"
1111 #include <sys/types.h>
1112 #include <sys/param.h>
1115 #if BYTE_ORDER != BIG_ENDIAN
1120 if { (eval echo configure:1121: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1122 ac_cv_c_bigendian=yes
1124 echo "configure: failed program was:" >&5
1125 cat conftest.$ac_ext >&5
1127 ac_cv_c_bigendian=no
1131 echo "configure: failed program was:" >&5
1132 cat conftest.$ac_ext >&5
1135 if test $ac_cv_c_bigendian = unknown; then
1136 if test "$cross_compiling" = yes; then
1137 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1139 cat > conftest.$ac_ext <<EOF
1140 #line 1141 "configure"
1141 #include "confdefs.h"
1143 /* Are we little or big endian? From Harbison&Steele. */
1147 char c[sizeof (long)];
1150 exit (u.c[sizeof (long) - 1] == 1);
1153 if { (eval echo configure:1154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1155 ac_cv_c_bigendian=no
1157 echo "configure: failed program was:" >&5
1158 cat conftest.$ac_ext >&5
1160 ac_cv_c_bigendian=yes
1168 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1169 if test $ac_cv_c_bigendian = yes; then
1170 cat >> confdefs.h <<\EOF
1171 #define WORDS_BIGENDIAN 1
1177 echo $ac_n "checking whether compiler accepts bswap x86 instruction""... $ac_c" 1>&6
1178 echo "configure:1179: checking whether compiler accepts bswap x86 instruction" >&5
1179 cat > conftest.$ac_ext <<EOF
1180 #line 1181 "configure"
1181 #include "confdefs.h"
1182 unsigned int foo( unsigned int x )
1183 { __asm__("bswap %0" : "=r" (x) : "0" (x)); return x; }
1188 if { (eval echo configure:1189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1190 cat >> confdefs.h <<\EOF
1191 #define HAVE_X86_BSWAP 1
1193 echo "$ac_t""yes" 1>&6
1195 echo "configure: failed program was:" >&5
1196 cat conftest.$ac_ext >&5
1198 echo "$ac_t""no" 1>&6
1202 for ac_func in gettimeofday select strerror strtod strtol
1204 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1205 echo "configure:1206: checking for $ac_func" >&5
1206 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1207 echo $ac_n "(cached) $ac_c" 1>&6
1209 cat > conftest.$ac_ext <<EOF
1210 #line 1211 "configure"
1211 #include "confdefs.h"
1212 /* System header to define __stub macros and hopefully few prototypes,
1213 which can conflict with char $ac_func(); below. */
1215 /* Override any gcc2 internal prototype to avoid an error. */
1216 /* We use char because int might match the return type of a gcc2
1217 builtin and then its argument prototype would still apply. */
1222 /* The GNU C library defines this for functions which it implements
1223 to always fail with ENOSYS. Some functions are actually named
1224 something starting with __ and the normal name is an alias. */
1225 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1233 if { (eval echo configure:1234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1235 eval "ac_cv_func_$ac_func=yes"
1237 echo "configure: failed program was:" >&5
1238 cat conftest.$ac_ext >&5
1240 eval "ac_cv_func_$ac_func=no"
1245 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1246 echo "$ac_t""yes" 1>&6
1247 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1248 cat >> confdefs.h <<EOF
1249 #define $ac_tr_func 1
1253 echo "$ac_t""no" 1>&6
1257 for ac_func in setenv putenv
1259 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1260 echo "configure:1261: checking for $ac_func" >&5
1261 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1262 echo $ac_n "(cached) $ac_c" 1>&6
1264 cat > conftest.$ac_ext <<EOF
1265 #line 1266 "configure"
1266 #include "confdefs.h"
1267 /* System header to define __stub macros and hopefully few prototypes,
1268 which can conflict with char $ac_func(); below. */
1270 /* Override any gcc2 internal prototype to avoid an error. */
1271 /* We use char because int might match the return type of a gcc2
1272 builtin and then its argument prototype would still apply. */
1277 /* The GNU C library defines this for functions which it implements
1278 to always fail with ENOSYS. Some functions are actually named
1279 something starting with __ and the normal name is an alias. */
1280 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1288 if { (eval echo configure:1289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1290 eval "ac_cv_func_$ac_func=yes"
1292 echo "configure: failed program was:" >&5
1293 cat conftest.$ac_ext >&5
1295 eval "ac_cv_func_$ac_func=no"
1300 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1301 echo "$ac_t""yes" 1>&6
1302 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1303 cat >> confdefs.h <<EOF
1304 #define $ac_tr_func 1
1308 echo "$ac_t""no" 1>&6
1312 echo $ac_n "checking for connect""... $ac_c" 1>&6
1313 echo "configure:1314: checking for connect" >&5
1314 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1315 echo $ac_n "(cached) $ac_c" 1>&6
1317 cat > conftest.$ac_ext <<EOF
1318 #line 1319 "configure"
1319 #include "confdefs.h"
1320 /* System header to define __stub macros and hopefully few prototypes,
1321 which can conflict with char connect(); below. */
1323 /* Override any gcc2 internal prototype to avoid an error. */
1324 /* We use char because int might match the return type of a gcc2
1325 builtin and then its argument prototype would still apply. */
1330 /* The GNU C library defines this for functions which it implements
1331 to always fail with ENOSYS. Some functions are actually named
1332 something starting with __ and the normal name is an alias. */
1333 #if defined (__stub_connect) || defined (__stub___connect)
1341 if { (eval echo configure:1342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1343 eval "ac_cv_func_connect=yes"
1345 echo "configure: failed program was:" >&5
1346 cat conftest.$ac_ext >&5
1348 eval "ac_cv_func_connect=no"
1353 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1354 echo "$ac_t""yes" 1>&6
1357 echo "$ac_t""no" 1>&6
1358 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1359 echo "configure:1360: checking for connect in -lsocket" >&5
1360 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1361 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1362 echo $ac_n "(cached) $ac_c" 1>&6
1364 ac_save_LIBS="$LIBS"
1365 LIBS="-lsocket $LIBS"
1366 cat > conftest.$ac_ext <<EOF
1367 #line 1368 "configure"
1368 #include "confdefs.h"
1369 /* Override any gcc2 internal prototype to avoid an error. */
1370 /* We use char because int might match the return type of a gcc2
1371 builtin and then its argument prototype would still apply. */
1378 if { (eval echo configure:1379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1380 eval "ac_cv_lib_$ac_lib_var=yes"
1382 echo "configure: failed program was:" >&5
1383 cat conftest.$ac_ext >&5
1385 eval "ac_cv_lib_$ac_lib_var=no"
1388 LIBS="$ac_save_LIBS"
1391 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1392 echo "$ac_t""yes" 1>&6
1393 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1394 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1395 cat >> confdefs.h <<EOF
1396 #define $ac_tr_lib 1
1399 LIBS="-lsocket $LIBS"
1402 echo "$ac_t""no" 1>&6
1407 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1408 echo "configure:1409: checking for gethostbyname" >&5
1409 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1410 echo $ac_n "(cached) $ac_c" 1>&6
1412 cat > conftest.$ac_ext <<EOF
1413 #line 1414 "configure"
1414 #include "confdefs.h"
1415 /* System header to define __stub macros and hopefully few prototypes,
1416 which can conflict with char gethostbyname(); below. */
1418 /* Override any gcc2 internal prototype to avoid an error. */
1419 /* We use char because int might match the return type of a gcc2
1420 builtin and then its argument prototype would still apply. */
1421 char gethostbyname();
1425 /* The GNU C library defines this for functions which it implements
1426 to always fail with ENOSYS. Some functions are actually named
1427 something starting with __ and the normal name is an alias. */
1428 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1436 if { (eval echo configure:1437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1438 eval "ac_cv_func_gethostbyname=yes"
1440 echo "configure: failed program was:" >&5
1441 cat conftest.$ac_ext >&5
1443 eval "ac_cv_func_gethostbyname=no"
1448 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1449 echo "$ac_t""yes" 1>&6
1452 echo "$ac_t""no" 1>&6
1453 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1454 echo "configure:1455: checking for gethostbyname in -lnsl" >&5
1455 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1456 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1457 echo $ac_n "(cached) $ac_c" 1>&6
1459 ac_save_LIBS="$LIBS"
1461 cat > conftest.$ac_ext <<EOF
1462 #line 1463 "configure"
1463 #include "confdefs.h"
1464 /* Override any gcc2 internal prototype to avoid an error. */
1465 /* We use char because int might match the return type of a gcc2
1466 builtin and then its argument prototype would still apply. */
1467 char gethostbyname();
1473 if { (eval echo configure:1474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1475 eval "ac_cv_lib_$ac_lib_var=yes"
1477 echo "configure: failed program was:" >&5
1478 cat conftest.$ac_ext >&5
1480 eval "ac_cv_lib_$ac_lib_var=no"
1483 LIBS="$ac_save_LIBS"
1486 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1487 echo "$ac_t""yes" 1>&6
1488 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1489 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1490 cat >> confdefs.h <<EOF
1491 #define $ac_tr_lib 1
1497 echo "$ac_t""no" 1>&6
1502 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
1503 echo "configure:1504: checking for nanosleep" >&5
1504 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
1505 echo $ac_n "(cached) $ac_c" 1>&6
1507 cat > conftest.$ac_ext <<EOF
1508 #line 1509 "configure"
1509 #include "confdefs.h"
1510 /* System header to define __stub macros and hopefully few prototypes,
1511 which can conflict with char nanosleep(); below. */
1513 /* Override any gcc2 internal prototype to avoid an error. */
1514 /* We use char because int might match the return type of a gcc2
1515 builtin and then its argument prototype would still apply. */
1520 /* The GNU C library defines this for functions which it implements
1521 to always fail with ENOSYS. Some functions are actually named
1522 something starting with __ and the normal name is an alias. */
1523 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
1531 if { (eval echo configure:1532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1533 eval "ac_cv_func_nanosleep=yes"
1535 echo "configure: failed program was:" >&5
1536 cat conftest.$ac_ext >&5
1538 eval "ac_cv_func_nanosleep=no"
1543 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
1544 echo "$ac_t""yes" 1>&6
1547 echo "$ac_t""no" 1>&6
1548 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
1549 echo "configure:1550: checking for nanosleep in -lrt" >&5
1550 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
1551 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1552 echo $ac_n "(cached) $ac_c" 1>&6
1554 ac_save_LIBS="$LIBS"
1556 cat > conftest.$ac_ext <<EOF
1557 #line 1558 "configure"
1558 #include "confdefs.h"
1559 /* Override any gcc2 internal prototype to avoid an error. */
1560 /* We use char because int might match the return type of a gcc2
1561 builtin and then its argument prototype would still apply. */
1568 if { (eval echo configure:1569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1570 eval "ac_cv_lib_$ac_lib_var=yes"
1572 echo "configure: failed program was:" >&5
1573 cat conftest.$ac_ext >&5
1575 eval "ac_cv_lib_$ac_lib_var=no"
1578 LIBS="$ac_save_LIBS"
1581 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1582 echo "$ac_t""yes" 1>&6
1583 ac_tr_lib=HAVE_LIB`echo rt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1584 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1585 cat >> confdefs.h <<EOF
1586 #define $ac_tr_lib 1
1592 echo "$ac_t""no" 1>&6
1593 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
1594 echo "configure:1595: checking for nanosleep in -lposix4" >&5
1595 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
1596 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1597 echo $ac_n "(cached) $ac_c" 1>&6
1599 ac_save_LIBS="$LIBS"
1600 LIBS="-lposix4 $LIBS"
1601 cat > conftest.$ac_ext <<EOF
1602 #line 1603 "configure"
1603 #include "confdefs.h"
1604 /* Override any gcc2 internal prototype to avoid an error. */
1605 /* We use char because int might match the return type of a gcc2
1606 builtin and then its argument prototype would still apply. */
1613 if { (eval echo configure:1614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1615 eval "ac_cv_lib_$ac_lib_var=yes"
1617 echo "configure: failed program was:" >&5
1618 cat conftest.$ac_ext >&5
1620 eval "ac_cv_lib_$ac_lib_var=no"
1623 LIBS="$ac_save_LIBS"
1626 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1627 echo "$ac_t""yes" 1>&6
1628 ac_tr_lib=HAVE_LIB`echo posix4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1629 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1630 cat >> confdefs.h <<EOF
1631 #define $ac_tr_lib 1
1634 LIBS="-lposix4 $LIBS"
1637 echo "$ac_t""no" 1>&6
1644 for ac_func in usleep
1646 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1647 echo "configure:1648: checking for $ac_func" >&5
1648 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1649 echo $ac_n "(cached) $ac_c" 1>&6
1651 cat > conftest.$ac_ext <<EOF
1652 #line 1653 "configure"
1653 #include "confdefs.h"
1654 /* System header to define __stub macros and hopefully few prototypes,
1655 which can conflict with char $ac_func(); below. */
1657 /* Override any gcc2 internal prototype to avoid an error. */
1658 /* We use char because int might match the return type of a gcc2
1659 builtin and then its argument prototype would still apply. */
1664 /* The GNU C library defines this for functions which it implements
1665 to always fail with ENOSYS. Some functions are actually named
1666 something starting with __ and the normal name is an alias. */
1667 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1675 if { (eval echo configure:1676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1677 eval "ac_cv_func_$ac_func=yes"
1679 echo "configure: failed program was:" >&5
1680 cat conftest.$ac_ext >&5
1682 eval "ac_cv_func_$ac_func=no"
1687 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1688 echo "$ac_t""yes" 1>&6
1689 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1690 cat >> confdefs.h <<EOF
1691 #define $ac_tr_func 1
1695 echo "$ac_t""no" 1>&6
1699 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
1700 echo "configure:1701: checking for inet_aton" >&5
1701 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
1702 echo $ac_n "(cached) $ac_c" 1>&6
1704 cat > conftest.$ac_ext <<EOF
1705 #line 1706 "configure"
1706 #include "confdefs.h"
1707 /* System header to define __stub macros and hopefully few prototypes,
1708 which can conflict with char inet_aton(); below. */
1710 /* Override any gcc2 internal prototype to avoid an error. */
1711 /* We use char because int might match the return type of a gcc2
1712 builtin and then its argument prototype would still apply. */
1717 /* The GNU C library defines this for functions which it implements
1718 to always fail with ENOSYS. Some functions are actually named
1719 something starting with __ and the normal name is an alias. */
1720 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
1728 if { (eval echo configure:1729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1730 eval "ac_cv_func_inet_aton=yes"
1732 echo "configure: failed program was:" >&5
1733 cat conftest.$ac_ext >&5
1735 eval "ac_cv_func_inet_aton=no"
1740 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
1741 echo "$ac_t""yes" 1>&6
1744 echo "$ac_t""no" 1>&6
1745 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
1746 echo "configure:1747: checking for inet_aton in -lresolv" >&5
1747 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
1748 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1749 echo $ac_n "(cached) $ac_c" 1>&6
1751 ac_save_LIBS="$LIBS"
1752 LIBS="-lresolv $LIBS"
1753 cat > conftest.$ac_ext <<EOF
1754 #line 1755 "configure"
1755 #include "confdefs.h"
1756 /* Override any gcc2 internal prototype to avoid an error. */
1757 /* We use char because int might match the return type of a gcc2
1758 builtin and then its argument prototype would still apply. */
1765 if { (eval echo configure:1766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1767 eval "ac_cv_lib_$ac_lib_var=yes"
1769 echo "configure: failed program was:" >&5
1770 cat conftest.$ac_ext >&5
1772 eval "ac_cv_lib_$ac_lib_var=no"
1775 LIBS="$ac_save_LIBS"
1778 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1779 echo "$ac_t""yes" 1>&6
1780 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1781 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1782 cat >> confdefs.h <<EOF
1783 #define $ac_tr_lib 1
1786 LIBS="-lresolv $LIBS"
1789 echo "$ac_t""no" 1>&6
1794 for ac_func in vasprintf
1796 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1797 echo "configure:1798: checking for $ac_func" >&5
1798 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1799 echo $ac_n "(cached) $ac_c" 1>&6
1801 cat > conftest.$ac_ext <<EOF
1802 #line 1803 "configure"
1803 #include "confdefs.h"
1804 /* System header to define __stub macros and hopefully few prototypes,
1805 which can conflict with char $ac_func(); below. */
1807 /* Override any gcc2 internal prototype to avoid an error. */
1808 /* We use char because int might match the return type of a gcc2
1809 builtin and then its argument prototype would still apply. */
1814 /* The GNU C library defines this for functions which it implements
1815 to always fail with ENOSYS. Some functions are actually named
1816 something starting with __ and the normal name is an alias. */
1817 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1825 if { (eval echo configure:1826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1827 eval "ac_cv_func_$ac_func=yes"
1829 echo "configure: failed program was:" >&5
1830 cat conftest.$ac_ext >&5
1832 eval "ac_cv_func_$ac_func=no"
1837 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1838 echo "$ac_t""yes" 1>&6
1839 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1840 cat >> confdefs.h <<EOF
1841 #define $ac_tr_func 1
1845 echo "$ac_t""no" 1>&6
1849 for ac_hdr in unistd.h
1851 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1852 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1853 echo "configure:1854: checking for $ac_hdr" >&5
1854 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1855 echo $ac_n "(cached) $ac_c" 1>&6
1857 cat > conftest.$ac_ext <<EOF
1858 #line 1859 "configure"
1859 #include "confdefs.h"
1862 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1863 { (eval echo configure:1864: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1864 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1865 if test -z "$ac_err"; then
1867 eval "ac_cv_header_$ac_safe=yes"
1870 echo "configure: failed program was:" >&5
1871 cat conftest.$ac_ext >&5
1873 eval "ac_cv_header_$ac_safe=no"
1877 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1878 echo "$ac_t""yes" 1>&6
1879 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1880 cat >> confdefs.h <<EOF
1881 #define $ac_tr_hdr 1
1885 echo "$ac_t""no" 1>&6
1889 for ac_func in getpagesize
1891 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1892 echo "configure:1893: checking for $ac_func" >&5
1893 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1894 echo $ac_n "(cached) $ac_c" 1>&6
1896 cat > conftest.$ac_ext <<EOF
1897 #line 1898 "configure"
1898 #include "confdefs.h"
1899 /* System header to define __stub macros and hopefully few prototypes,
1900 which can conflict with char $ac_func(); below. */
1902 /* Override any gcc2 internal prototype to avoid an error. */
1903 /* We use char because int might match the return type of a gcc2
1904 builtin and then its argument prototype would still apply. */
1909 /* The GNU C library defines this for functions which it implements
1910 to always fail with ENOSYS. Some functions are actually named
1911 something starting with __ and the normal name is an alias. */
1912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1920 if { (eval echo configure:1921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1922 eval "ac_cv_func_$ac_func=yes"
1924 echo "configure: failed program was:" >&5
1925 cat conftest.$ac_ext >&5
1927 eval "ac_cv_func_$ac_func=no"
1932 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1933 echo "$ac_t""yes" 1>&6
1934 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1935 cat >> confdefs.h <<EOF
1936 #define $ac_tr_func 1
1940 echo "$ac_t""no" 1>&6
1944 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1945 echo "configure:1946: checking for working mmap" >&5
1946 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1947 echo $ac_n "(cached) $ac_c" 1>&6
1949 if test "$cross_compiling" = yes; then
1950 ac_cv_func_mmap_fixed_mapped=no
1952 cat > conftest.$ac_ext <<EOF
1953 #line 1954 "configure"
1954 #include "confdefs.h"
1956 /* Thanks to Mike Haertel and Jim Avera for this test.
1957 Here is a matrix of mmap possibilities:
1958 mmap private not fixed
1959 mmap private fixed at somewhere currently unmapped
1960 mmap private fixed at somewhere already mapped
1961 mmap shared not fixed
1962 mmap shared fixed at somewhere currently unmapped
1963 mmap shared fixed at somewhere already mapped
1964 For private mappings, we should verify that changes cannot be read()
1965 back from the file, nor mmap's back from the file at a different
1966 address. (There have been systems where private was not correctly
1967 implemented like the infamous i386 svr4.0, and systems where the
1968 VM page cache was not coherent with the filesystem buffer cache
1969 like early versions of FreeBSD and possibly contemporary NetBSD.)
1970 For shared mappings, we should conversely verify that changes get
1971 propogated back to all the places they're supposed to be.
1973 Grep wants private fixed already mapped.
1974 The main things grep needs to know about mmap are:
1975 * does it exist and is it safe to write into the mmap'd area
1976 * how to use it (BSD variants) */
1977 #include <sys/types.h>
1979 #include <sys/mman.h>
1981 /* This mess was copied from the GNU getpagesize.h. */
1982 #ifndef HAVE_GETPAGESIZE
1983 # ifdef HAVE_UNISTD_H
1984 # include <unistd.h>
1987 /* Assume that all systems that can run configure have sys/param.h. */
1988 # ifndef HAVE_SYS_PARAM_H
1989 # define HAVE_SYS_PARAM_H 1
1992 # ifdef _SC_PAGESIZE
1993 # define getpagesize() sysconf(_SC_PAGESIZE)
1994 # else /* no _SC_PAGESIZE */
1995 # ifdef HAVE_SYS_PARAM_H
1996 # include <sys/param.h>
1997 # ifdef EXEC_PAGESIZE
1998 # define getpagesize() EXEC_PAGESIZE
1999 # else /* no EXEC_PAGESIZE */
2001 # define getpagesize() NBPG * CLSIZE
2004 # endif /* no CLSIZE */
2005 # else /* no NBPG */
2007 # define getpagesize() NBPC
2008 # else /* no NBPC */
2010 # define getpagesize() PAGESIZE
2011 # endif /* PAGESIZE */
2012 # endif /* no NBPC */
2013 # endif /* no NBPG */
2014 # endif /* no EXEC_PAGESIZE */
2015 # else /* no HAVE_SYS_PARAM_H */
2016 # define getpagesize() 8192 /* punt totally */
2017 # endif /* no HAVE_SYS_PARAM_H */
2018 # endif /* no _SC_PAGESIZE */
2020 #endif /* no HAVE_GETPAGESIZE */
2023 extern "C" { void *malloc(unsigned); }
2031 char *data, *data2, *data3;
2035 pagesize = getpagesize();
2038 * First, make a file with some known garbage in it.
2040 data = malloc(pagesize);
2043 for (i = 0; i < pagesize; ++i)
2044 *(data + i) = rand();
2046 fd = creat("conftestmmap", 0600);
2049 if (write(fd, data, pagesize) != pagesize)
2054 * Next, try to mmap the file at a fixed address which
2055 * already has something else allocated at it. If we can,
2056 * also make sure that we see the same garbage.
2058 fd = open("conftestmmap", O_RDWR);
2061 data2 = malloc(2 * pagesize);
2064 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2065 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2066 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2068 for (i = 0; i < pagesize; ++i)
2069 if (*(data + i) != *(data2 + i))
2073 * Finally, make sure that changes to the mapped area
2074 * do not percolate back to the file as seen by read().
2075 * (This is a bug on some variants of i386 svr4.0.)
2077 for (i = 0; i < pagesize; ++i)
2078 *(data2 + i) = *(data2 + i) + 1;
2079 data3 = malloc(pagesize);
2082 if (read(fd, data3, pagesize) != pagesize)
2084 for (i = 0; i < pagesize; ++i)
2085 if (*(data + i) != *(data3 + i))
2088 unlink("conftestmmap");
2093 if { (eval echo configure:2094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2095 ac_cv_func_mmap_fixed_mapped=yes
2097 echo "configure: failed program was:" >&5
2098 cat conftest.$ac_ext >&5
2100 ac_cv_func_mmap_fixed_mapped=no
2107 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2108 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2109 cat >> confdefs.h <<\EOF
2115 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2116 echo "configure:2117: checking return type of signal handlers" >&5
2117 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2118 echo $ac_n "(cached) $ac_c" 1>&6
2120 cat > conftest.$ac_ext <<EOF
2121 #line 2122 "configure"
2122 #include "confdefs.h"
2123 #include <sys/types.h>
2129 extern "C" void (*signal (int, void (*)(int)))(int);
2131 void (*signal ()) ();
2138 if { (eval echo configure:2139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2140 ac_cv_type_signal=void
2142 echo "configure: failed program was:" >&5
2143 cat conftest.$ac_ext >&5
2145 ac_cv_type_signal=int
2150 echo "$ac_t""$ac_cv_type_signal" 1>&6
2151 cat >> confdefs.h <<EOF
2152 #define RETSIGTYPE $ac_cv_type_signal
2156 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2157 echo "configure:2158: checking for dlopen in -ldl" >&5
2158 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2159 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2160 echo $ac_n "(cached) $ac_c" 1>&6
2162 ac_save_LIBS="$LIBS"
2164 cat > conftest.$ac_ext <<EOF
2165 #line 2166 "configure"
2166 #include "confdefs.h"
2167 /* Override any gcc2 internal prototype to avoid an error. */
2168 /* We use char because int might match the return type of a gcc2
2169 builtin and then its argument prototype would still apply. */
2176 if { (eval echo configure:2177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2178 eval "ac_cv_lib_$ac_lib_var=yes"
2180 echo "configure: failed program was:" >&5
2181 cat conftest.$ac_ext >&5
2183 eval "ac_cv_lib_$ac_lib_var=no"
2186 LIBS="$ac_save_LIBS"
2189 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2190 echo "$ac_t""yes" 1>&6
2191 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2192 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2193 cat >> confdefs.h <<EOF
2194 #define $ac_tr_lib 1
2200 echo "$ac_t""no" 1>&6
2203 echo $ac_n "checking for optarg in -lgnugetopt""... $ac_c" 1>&6
2204 echo "configure:2205: checking for optarg in -lgnugetopt" >&5
2205 ac_lib_var=`echo gnugetopt'_'optarg | sed 'y%./+-%__p_%'`
2206 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2207 echo $ac_n "(cached) $ac_c" 1>&6
2209 ac_save_LIBS="$LIBS"
2210 LIBS="-lgnugetopt $LIBS"
2211 cat > conftest.$ac_ext <<EOF
2212 #line 2213 "configure"
2213 #include "confdefs.h"
2214 /* Override any gcc2 internal prototype to avoid an error. */
2215 /* We use char because int might match the return type of a gcc2
2216 builtin and then its argument prototype would still apply. */
2223 if { (eval echo configure:2224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2225 eval "ac_cv_lib_$ac_lib_var=yes"
2227 echo "configure: failed program was:" >&5
2228 cat conftest.$ac_ext >&5
2230 eval "ac_cv_lib_$ac_lib_var=no"
2233 LIBS="$ac_save_LIBS"
2236 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2237 echo "$ac_t""yes" 1>&6
2238 ac_tr_lib=HAVE_LIB`echo gnugetopt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2239 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2240 cat >> confdefs.h <<EOF
2241 #define $ac_tr_lib 1
2244 LIBS="-lgnugetopt $LIBS"
2247 echo "$ac_t""no" 1>&6
2250 echo $ac_n "checking for _ in -lbe""... $ac_c" 1>&6
2251 echo "configure:2252: checking for _ in -lbe" >&5
2252 ac_lib_var=`echo be'_'_ | sed 'y%./+-%__p_%'`
2253 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2254 echo $ac_n "(cached) $ac_c" 1>&6
2256 ac_save_LIBS="$LIBS"
2258 cat > conftest.$ac_ext <<EOF
2259 #line 2260 "configure"
2260 #include "confdefs.h"
2261 /* Override any gcc2 internal prototype to avoid an error. */
2262 /* We use char because int might match the return type of a gcc2
2263 builtin and then its argument prototype would still apply. */
2270 if { (eval echo configure:2271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2272 eval "ac_cv_lib_$ac_lib_var=yes"
2274 echo "configure: failed program was:" >&5
2275 cat conftest.$ac_ext >&5
2277 eval "ac_cv_lib_$ac_lib_var=no"
2280 LIBS="$ac_save_LIBS"
2283 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2284 echo "$ac_t""yes" 1>&6
2285 ac_tr_lib=HAVE_LIB`echo be | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2286 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2287 cat >> confdefs.h <<EOF
2288 #define $ac_tr_lib 1
2294 echo "$ac_t""no" 1>&6
2297 echo $ac_n "checking for _ in -lgame""... $ac_c" 1>&6
2298 echo "configure:2299: checking for _ in -lgame" >&5
2299 ac_lib_var=`echo game'_'_ | sed 'y%./+-%__p_%'`
2300 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2301 echo $ac_n "(cached) $ac_c" 1>&6
2303 ac_save_LIBS="$LIBS"
2305 cat > conftest.$ac_ext <<EOF
2306 #line 2307 "configure"
2307 #include "confdefs.h"
2308 /* Override any gcc2 internal prototype to avoid an error. */
2309 /* We use char because int might match the return type of a gcc2
2310 builtin and then its argument prototype would still apply. */
2317 if { (eval echo configure:2318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2319 eval "ac_cv_lib_$ac_lib_var=yes"
2321 echo "configure: failed program was:" >&5
2322 cat conftest.$ac_ext >&5
2324 eval "ac_cv_lib_$ac_lib_var=no"
2327 LIBS="$ac_save_LIBS"
2330 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2331 echo "$ac_t""yes" 1>&6
2332 ac_tr_lib=HAVE_LIB`echo game | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2333 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2334 cat >> confdefs.h <<EOF
2335 #define $ac_tr_lib 1
2341 echo "$ac_t""no" 1>&6
2344 echo $ac_n "checking for _ in -lroot""... $ac_c" 1>&6
2345 echo "configure:2346: checking for _ in -lroot" >&5
2346 ac_lib_var=`echo root'_'_ | sed 'y%./+-%__p_%'`
2347 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2348 echo $ac_n "(cached) $ac_c" 1>&6
2350 ac_save_LIBS="$LIBS"
2352 cat > conftest.$ac_ext <<EOF
2353 #line 2354 "configure"
2354 #include "confdefs.h"
2355 /* Override any gcc2 internal prototype to avoid an error. */
2356 /* We use char because int might match the return type of a gcc2
2357 builtin and then its argument prototype would still apply. */
2364 if { (eval echo configure:2365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2366 eval "ac_cv_lib_$ac_lib_var=yes"
2368 echo "configure: failed program was:" >&5
2369 cat conftest.$ac_ext >&5
2371 eval "ac_cv_lib_$ac_lib_var=no"
2374 LIBS="$ac_save_LIBS"
2377 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2378 echo "$ac_t""yes" 1>&6
2379 ac_tr_lib=HAVE_LIB`echo root | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2380 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2381 cat >> confdefs.h <<EOF
2382 #define $ac_tr_lib 1
2388 echo "$ac_t""no" 1>&6
2391 echo $ac_n "checking for powl in -lm""... $ac_c" 1>&6
2392 echo "configure:2393: checking for powl in -lm" >&5
2393 ac_lib_var=`echo m'_'powl | sed 'y%./+-%__p_%'`
2394 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2395 echo $ac_n "(cached) $ac_c" 1>&6
2397 ac_save_LIBS="$LIBS"
2399 cat > conftest.$ac_ext <<EOF
2400 #line 2401 "configure"
2401 #include "confdefs.h"
2402 /* Override any gcc2 internal prototype to avoid an error. */
2403 /* We use char because int might match the return type of a gcc2
2404 builtin and then its argument prototype would still apply. */
2411 if { (eval echo configure:2412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2413 eval "ac_cv_lib_$ac_lib_var=yes"
2415 echo "configure: failed program was:" >&5
2416 cat conftest.$ac_ext >&5
2418 eval "ac_cv_lib_$ac_lib_var=no"
2421 LIBS="$ac_save_LIBS"
2424 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2425 echo "$ac_t""yes" 1>&6
2426 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2427 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2428 cat >> confdefs.h <<EOF
2429 #define $ac_tr_lib 1
2435 echo "$ac_t""no" 1>&6
2438 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
2439 echo "configure:2440: checking for pthread_create in -lpthread" >&5
2440 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
2441 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2442 echo $ac_n "(cached) $ac_c" 1>&6
2444 ac_save_LIBS="$LIBS"
2445 LIBS="-lpthread $LIBS"
2446 cat > conftest.$ac_ext <<EOF
2447 #line 2448 "configure"
2448 #include "confdefs.h"
2449 /* Override any gcc2 internal prototype to avoid an error. */
2450 /* We use char because int might match the return type of a gcc2
2451 builtin and then its argument prototype would still apply. */
2452 char pthread_create();
2458 if { (eval echo configure:2459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2460 eval "ac_cv_lib_$ac_lib_var=yes"
2462 echo "configure: failed program was:" >&5
2463 cat conftest.$ac_ext >&5
2465 eval "ac_cv_lib_$ac_lib_var=no"
2468 LIBS="$ac_save_LIBS"
2471 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2472 echo "$ac_t""yes" 1>&6
2473 ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2474 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2475 cat >> confdefs.h <<EOF
2476 #define $ac_tr_lib 1
2479 LIBS="-lpthread $LIBS"
2482 echo "$ac_t""no" 1>&6
2485 echo $ac_n "checking for thread_create in -lthreads""... $ac_c" 1>&6
2486 echo "configure:2487: checking for thread_create in -lthreads" >&5
2487 ac_lib_var=`echo threads'_'thread_create | sed 'y%./+-%__p_%'`
2488 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2489 echo $ac_n "(cached) $ac_c" 1>&6
2491 ac_save_LIBS="$LIBS"
2492 LIBS="-lthreads $LIBS"
2493 cat > conftest.$ac_ext <<EOF
2494 #line 2495 "configure"
2495 #include "confdefs.h"
2496 /* Override any gcc2 internal prototype to avoid an error. */
2497 /* We use char because int might match the return type of a gcc2
2498 builtin and then its argument prototype would still apply. */
2499 char thread_create();
2505 if { (eval echo configure:2506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2507 eval "ac_cv_lib_$ac_lib_var=yes"
2509 echo "configure: failed program was:" >&5
2510 cat conftest.$ac_ext >&5
2512 eval "ac_cv_lib_$ac_lib_var=no"
2515 LIBS="$ac_save_LIBS"
2518 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2519 echo "$ac_t""yes" 1>&6
2520 ac_tr_lib=HAVE_LIB`echo threads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2521 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2522 cat >> confdefs.h <<EOF
2523 #define $ac_tr_lib 1
2526 LIBS="-lthreads $LIBS"
2529 echo "$ac_t""no" 1>&6
2533 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
2534 echo "configure:2535: checking for getopt_long" >&5
2535 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
2536 echo $ac_n "(cached) $ac_c" 1>&6
2538 cat > conftest.$ac_ext <<EOF
2539 #line 2540 "configure"
2540 #include "confdefs.h"
2541 /* System header to define __stub macros and hopefully few prototypes,
2542 which can conflict with char getopt_long(); below. */
2544 /* Override any gcc2 internal prototype to avoid an error. */
2545 /* We use char because int might match the return type of a gcc2
2546 builtin and then its argument prototype would still apply. */
2551 /* The GNU C library defines this for functions which it implements
2552 to always fail with ENOSYS. Some functions are actually named
2553 something starting with __ and the normal name is an alias. */
2554 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
2562 if { (eval echo configure:2563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2564 eval "ac_cv_func_getopt_long=yes"
2566 echo "configure: failed program was:" >&5
2567 cat conftest.$ac_ext >&5
2569 eval "ac_cv_func_getopt_long=no"
2574 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
2575 echo "$ac_t""yes" 1>&6
2578 echo "$ac_t""no" 1>&6
2579 LIBOBJS="$LIBOBJS getopt.o getopt1.o"
2584 CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
2585 for ac_hdr in stddef.h
2587 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2588 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2589 echo "configure:2590: checking for $ac_hdr" >&5
2590 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2591 echo $ac_n "(cached) $ac_c" 1>&6
2593 cat > conftest.$ac_ext <<EOF
2594 #line 2595 "configure"
2595 #include "confdefs.h"
2598 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2599 { (eval echo configure:2600: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2600 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2601 if test -z "$ac_err"; then
2603 eval "ac_cv_header_$ac_safe=yes"
2606 echo "configure: failed program was:" >&5
2607 cat conftest.$ac_ext >&5
2609 eval "ac_cv_header_$ac_safe=no"
2613 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2614 echo "$ac_t""yes" 1>&6
2615 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2616 cat >> confdefs.h <<EOF
2617 #define $ac_tr_hdr 1
2621 echo "$ac_t""no" 1>&6
2625 for ac_hdr in getopt.h
2627 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2628 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2629 echo "configure:2630: checking for $ac_hdr" >&5
2630 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2631 echo $ac_n "(cached) $ac_c" 1>&6
2633 cat > conftest.$ac_ext <<EOF
2634 #line 2635 "configure"
2635 #include "confdefs.h"
2638 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2639 { (eval echo configure:2640: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2640 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2641 if test -z "$ac_err"; then
2643 eval "ac_cv_header_$ac_safe=yes"
2646 echo "configure: failed program was:" >&5
2647 cat conftest.$ac_ext >&5
2649 eval "ac_cv_header_$ac_safe=no"
2653 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2654 echo "$ac_t""yes" 1>&6
2655 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2656 cat >> confdefs.h <<EOF
2657 #define $ac_tr_hdr 1
2661 echo "$ac_t""no" 1>&6
2665 for ac_hdr in sys/sockio.h
2667 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2668 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2669 echo "configure:2670: checking for $ac_hdr" >&5
2670 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2671 echo $ac_n "(cached) $ac_c" 1>&6
2673 cat > conftest.$ac_ext <<EOF
2674 #line 2675 "configure"
2675 #include "confdefs.h"
2678 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2679 { (eval echo configure:2680: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2680 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2681 if test -z "$ac_err"; then
2683 eval "ac_cv_header_$ac_safe=yes"
2686 echo "configure: failed program was:" >&5
2687 cat conftest.$ac_ext >&5
2689 eval "ac_cv_header_$ac_safe=no"
2693 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2694 echo "$ac_t""yes" 1>&6
2695 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2696 cat >> confdefs.h <<EOF
2697 #define $ac_tr_hdr 1
2701 echo "$ac_t""no" 1>&6
2705 for ac_hdr in fcntl.h sys/ioctl.h sys/time.h unistd.h
2707 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2708 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2709 echo "configure:2710: checking for $ac_hdr" >&5
2710 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2711 echo $ac_n "(cached) $ac_c" 1>&6
2713 cat > conftest.$ac_ext <<EOF
2714 #line 2715 "configure"
2715 #include "confdefs.h"
2718 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2719 { (eval echo configure:2720: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2720 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2721 if test -z "$ac_err"; then
2723 eval "ac_cv_header_$ac_safe=yes"
2726 echo "configure: failed program was:" >&5
2727 cat conftest.$ac_ext >&5
2729 eval "ac_cv_header_$ac_safe=no"
2733 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2734 echo "$ac_t""yes" 1>&6
2735 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2736 cat >> confdefs.h <<EOF
2737 #define $ac_tr_hdr 1
2741 echo "$ac_t""no" 1>&6
2745 for ac_hdr in sys/soundcard.h machine/soundcard.h
2747 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2748 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2749 echo "configure:2750: checking for $ac_hdr" >&5
2750 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2751 echo $ac_n "(cached) $ac_c" 1>&6
2753 cat > conftest.$ac_ext <<EOF
2754 #line 2755 "configure"
2755 #include "confdefs.h"
2758 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2759 { (eval echo configure:2760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2760 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2761 if test -z "$ac_err"; then
2763 eval "ac_cv_header_$ac_safe=yes"
2766 echo "configure: failed program was:" >&5
2767 cat conftest.$ac_ext >&5
2769 eval "ac_cv_header_$ac_safe=no"
2773 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2774 echo "$ac_t""yes" 1>&6
2775 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2776 cat >> confdefs.h <<EOF
2777 #define $ac_tr_hdr 1
2781 echo "$ac_t""no" 1>&6
2785 for ac_hdr in dlfcn.h image.h
2787 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2788 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2789 echo "configure:2790: checking for $ac_hdr" >&5
2790 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2791 echo $ac_n "(cached) $ac_c" 1>&6
2793 cat > conftest.$ac_ext <<EOF
2794 #line 2795 "configure"
2795 #include "confdefs.h"
2798 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2799 { (eval echo configure:2800: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2800 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2801 if test -z "$ac_err"; then
2803 eval "ac_cv_header_$ac_safe=yes"
2806 echo "configure: failed program was:" >&5
2807 cat conftest.$ac_ext >&5
2809 eval "ac_cv_header_$ac_safe=no"
2813 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2814 echo "$ac_t""yes" 1>&6
2815 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2816 cat >> confdefs.h <<EOF
2817 #define $ac_tr_hdr 1
2821 echo "$ac_t""no" 1>&6
2825 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
2827 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2828 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2829 echo "configure:2830: checking for $ac_hdr" >&5
2830 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2831 echo $ac_n "(cached) $ac_c" 1>&6
2833 cat > conftest.$ac_ext <<EOF
2834 #line 2835 "configure"
2835 #include "confdefs.h"
2838 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2839 { (eval echo configure:2840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2840 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2841 if test -z "$ac_err"; then
2843 eval "ac_cv_header_$ac_safe=yes"
2846 echo "configure: failed program was:" >&5
2847 cat conftest.$ac_ext >&5
2849 eval "ac_cv_header_$ac_safe=no"
2853 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2854 echo "$ac_t""yes" 1>&6
2855 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2856 cat >> confdefs.h <<EOF
2857 #define $ac_tr_hdr 1
2861 echo "$ac_t""no" 1>&6
2865 for ac_hdr in machine/param.h
2867 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2868 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2869 echo "configure:2870: checking for $ac_hdr" >&5
2870 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2871 echo $ac_n "(cached) $ac_c" 1>&6
2873 cat > conftest.$ac_ext <<EOF
2874 #line 2875 "configure"
2875 #include "confdefs.h"
2878 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2879 { (eval echo configure:2880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2880 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2881 if test -z "$ac_err"; then
2883 eval "ac_cv_header_$ac_safe=yes"
2886 echo "configure: failed program was:" >&5
2887 cat conftest.$ac_ext >&5
2889 eval "ac_cv_header_$ac_safe=no"
2893 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2894 echo "$ac_t""yes" 1>&6
2895 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2896 cat >> confdefs.h <<EOF
2897 #define $ac_tr_hdr 1
2901 echo "$ac_t""no" 1>&6
2906 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
2908 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2909 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2910 echo "configure:2911: checking for $ac_hdr" >&5
2911 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2912 echo $ac_n "(cached) $ac_c" 1>&6
2914 cat > conftest.$ac_ext <<EOF
2915 #line 2916 "configure"
2916 #include "confdefs.h"
2919 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2920 { (eval echo configure:2921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2921 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2922 if test -z "$ac_err"; then
2924 eval "ac_cv_header_$ac_safe=yes"
2927 echo "configure: failed program was:" >&5
2928 cat conftest.$ac_ext >&5
2930 eval "ac_cv_header_$ac_safe=no"
2934 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2935 echo "$ac_t""yes" 1>&6
2936 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2937 cat >> confdefs.h <<EOF
2938 #define $ac_tr_hdr 1
2942 echo "$ac_t""no" 1>&6
2949 CFLAGS="${CFLAGS} -Wall -Werror"
2950 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
2951 echo "configure:2952: checking for ntohl in sys/param.h" >&5
2952 cat > conftest.$ac_ext <<EOF
2953 #line 2954 "configure"
2954 #include "confdefs.h"
2955 #include <sys/param.h>
2956 void foo() { int meuh; ntohl(meuh); }
2961 if { (eval echo configure:2962: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2963 cat >> confdefs.h <<\EOF
2964 #define NTOHL_IN_SYS_PARAM_H 1
2967 echo "$ac_t""yes" 1>&6
2969 echo "configure: failed program was:" >&5
2970 cat conftest.$ac_ext >&5
2972 echo "$ac_t""no" 1>&6
2976 CFLAGS="${CFLAGS} -rdynamic"
2977 echo $ac_n "checking if \$CC accepts -rdynamic""... $ac_c" 1>&6
2978 echo "configure:2979: checking if \$CC accepts -rdynamic" >&5
2979 cat > conftest.$ac_ext <<EOF
2980 #line 2981 "configure"
2981 #include "confdefs.h"
2987 if { (eval echo configure:2988: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2989 DYNAMIC_FLAG="-rdynamic"
2990 echo "$ac_t""yes" 1>&6
2992 echo "configure: failed program was:" >&5
2993 cat conftest.$ac_ext >&5
2995 echo "$ac_t""no" 1>&6
3001 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
3002 echo "configure:3003: checking for boolean_t in sys/types.h" >&5
3003 cat > conftest.$ac_ext <<EOF
3004 #line 3005 "configure"
3005 #include "confdefs.h"
3006 #include <sys/types.h>
3007 void quux() { boolean_t foo; }
3012 if { (eval echo configure:3013: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3014 cat >> confdefs.h <<\EOF
3015 #define BOOLEAN_T_IN_SYS_TYPES_H 1
3018 echo "$ac_t""yes" 1>&6
3020 echo "configure: failed program was:" >&5
3021 cat conftest.$ac_ext >&5
3023 echo "$ac_t""no" 1>&6
3027 echo $ac_n "checking for working const""... $ac_c" 1>&6
3028 echo "configure:3029: checking for working const" >&5
3029 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3030 echo $ac_n "(cached) $ac_c" 1>&6
3032 cat > conftest.$ac_ext <<EOF
3033 #line 3034 "configure"
3034 #include "confdefs.h"
3038 /* Ultrix mips cc rejects this. */
3039 typedef int charset[2]; const charset x;
3040 /* SunOS 4.1.1 cc rejects this. */
3041 char const *const *ccp;
3043 /* NEC SVR4.0.2 mips cc rejects this. */
3044 struct point {int x, y;};
3045 static struct point const zero = {0,0};
3046 /* AIX XL C 1.02.0.0 rejects this.
3047 It does not let you subtract one const X* pointer from another in an arm
3048 of an if-expression whose if-part is not a constant expression */
3049 const char *g = "string";
3050 ccp = &g + (g ? g-g : 0);
3051 /* HPUX 7.0 cc rejects these. */
3054 ccp = (char const *const *) p;
3055 { /* SCO 3.2v4 cc rejects this. */
3057 char const *s = 0 ? (char *) 0 : (char const *) 0;
3061 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3063 const int *foo = &x[0];
3066 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3067 typedef const int *iptr;
3071 { /* AIX XL C 1.02.0.0 rejects this saying
3072 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3073 struct s { int j; const int *ap[3]; };
3074 struct s *b; b->j = 5;
3076 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3082 if { (eval echo configure:3083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3086 echo "configure: failed program was:" >&5
3087 cat conftest.$ac_ext >&5
3094 echo "$ac_t""$ac_cv_c_const" 1>&6
3095 if test $ac_cv_c_const = no; then
3096 cat >> confdefs.h <<\EOF
3102 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3103 echo "configure:3104: checking for ANSI C header files" >&5
3104 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3105 echo $ac_n "(cached) $ac_c" 1>&6
3107 cat > conftest.$ac_ext <<EOF
3108 #line 3109 "configure"
3109 #include "confdefs.h"
3115 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3116 { (eval echo configure:3117: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3117 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3118 if test -z "$ac_err"; then
3120 ac_cv_header_stdc=yes
3123 echo "configure: failed program was:" >&5
3124 cat conftest.$ac_ext >&5
3126 ac_cv_header_stdc=no
3130 if test $ac_cv_header_stdc = yes; then
3131 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3132 cat > conftest.$ac_ext <<EOF
3133 #line 3134 "configure"
3134 #include "confdefs.h"
3137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3138 egrep "memchr" >/dev/null 2>&1; then
3142 ac_cv_header_stdc=no
3148 if test $ac_cv_header_stdc = yes; then
3149 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3150 cat > conftest.$ac_ext <<EOF
3151 #line 3152 "configure"
3152 #include "confdefs.h"
3155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3156 egrep "free" >/dev/null 2>&1; then
3160 ac_cv_header_stdc=no
3166 if test $ac_cv_header_stdc = yes; then
3167 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3168 if test "$cross_compiling" = yes; then
3171 cat > conftest.$ac_ext <<EOF
3172 #line 3173 "configure"
3173 #include "confdefs.h"
3175 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3176 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3177 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3178 int main () { int i; for (i = 0; i < 256; i++)
3179 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3183 if { (eval echo configure:3184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3187 echo "configure: failed program was:" >&5
3188 cat conftest.$ac_ext >&5
3190 ac_cv_header_stdc=no
3198 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3199 if test $ac_cv_header_stdc = yes; then
3200 cat >> confdefs.h <<\EOF
3201 #define STDC_HEADERS 1
3206 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3207 echo "configure:3208: checking for size_t" >&5
3208 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3209 echo $ac_n "(cached) $ac_c" 1>&6
3211 cat > conftest.$ac_ext <<EOF
3212 #line 3213 "configure"
3213 #include "confdefs.h"
3214 #include <sys/types.h>
3220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3221 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3223 ac_cv_type_size_t=yes
3226 ac_cv_type_size_t=no
3231 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3232 if test $ac_cv_type_size_t = no; then
3233 cat >> confdefs.h <<\EOF
3234 #define size_t unsigned
3239 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3240 echo "configure:3241: checking whether time.h and sys/time.h may both be included" >&5
3241 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3242 echo $ac_n "(cached) $ac_c" 1>&6
3244 cat > conftest.$ac_ext <<EOF
3245 #line 3246 "configure"
3246 #include "confdefs.h"
3247 #include <sys/types.h>
3248 #include <sys/time.h>
3254 if { (eval echo configure:3255: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3256 ac_cv_header_time=yes
3258 echo "configure: failed program was:" >&5
3259 cat conftest.$ac_ext >&5
3261 ac_cv_header_time=no
3266 echo "$ac_t""$ac_cv_header_time" 1>&6
3267 if test $ac_cv_header_time = yes; then
3268 cat >> confdefs.h <<\EOF
3269 #define TIME_WITH_SYS_TIME 1
3275 for ac_hdr in sys/ioctl.h
3277 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3278 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3279 echo "configure:3280: checking for $ac_hdr" >&5
3280 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3281 echo $ac_n "(cached) $ac_c" 1>&6
3283 cat > conftest.$ac_ext <<EOF
3284 #line 3285 "configure"
3285 #include "confdefs.h"
3288 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3289 { (eval echo configure:3290: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3290 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3291 if test -z "$ac_err"; then
3293 eval "ac_cv_header_$ac_safe=yes"
3296 echo "configure: failed program was:" >&5
3297 cat conftest.$ac_ext >&5
3299 eval "ac_cv_header_$ac_safe=no"
3303 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3304 echo "$ac_t""yes" 1>&6
3305 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3306 cat >> confdefs.h <<EOF
3307 #define $ac_tr_hdr 1
3309 for ac_hdr in linux/cdrom.h
3311 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3312 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3313 echo "configure:3314: checking for $ac_hdr" >&5
3314 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3315 echo $ac_n "(cached) $ac_c" 1>&6
3317 cat > conftest.$ac_ext <<EOF
3318 #line 3319 "configure"
3319 #include "confdefs.h"
3322 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3323 { (eval echo configure:3324: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3324 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3325 if test -z "$ac_err"; then
3327 eval "ac_cv_header_$ac_safe=yes"
3330 echo "configure: failed program was:" >&5
3331 cat conftest.$ac_ext >&5
3333 eval "ac_cv_header_$ac_safe=no"
3337 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3338 echo "$ac_t""yes" 1>&6
3339 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3340 cat >> confdefs.h <<EOF
3341 #define $ac_tr_hdr 1
3345 echo "$ac_t""no" 1>&6
3349 cat > conftest.$ac_ext <<EOF
3350 #line 3351 "configure"
3351 #include "confdefs.h"
3352 #include <linux/cdrom.h>
3354 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3355 egrep "dvd" >/dev/null 2>&1; then
3357 cat >> confdefs.h <<\EOF
3365 echo "$ac_t""no" 1>&6
3370 PLUGINS=${PLUGINS}"ps ts dvd yuv idct idctclassic motion "
3371 if test x$host_os = xbeos; then
3372 ACCEL_PLUGINS="yuvmmx idctmmx motionmmx "
3374 ACCEL_PLUGINS="yuvmmx idctmmx idctmmxext motionmmx motionmmxext "
3378 # Check whether --enable-ppro or --disable-ppro was given.
3379 if test "${enable_ppro+set}" = set; then
3380 enableval="$enable_ppro"
3381 if test x$enableval = xyes; then ARCH=${ARCH}" ppro"; fi
3383 if test x${host_cpu} = xi686; then ARCH=${ARCH}" ppro"; fi
3386 # Check whether --enable-mmx or --disable-mmx was given.
3387 if test "${enable_mmx+set}" = set; then
3388 enableval="$enable_mmx"
3389 if test x$enableval = xyes; then ARCH=${ARCH}" mmx"; PLUGINS=${PLUGINS}${ACCEL_PLUGINS}; fi
3391 if test x${host_cpu} = xi686 -o x${host_cpu} = xi586; then ARCH=${ARCH}" mmx"; PLUGINS=${PLUGINS}${ACCEL_PLUGINS}; fi
3394 # Check whether --enable-debug or --disable-debug was given.
3395 if test "${enable_debug+set}" = set; then
3396 enableval="$enable_debug"
3397 if test x$enableval = xyes; then DEBUG=1; fi
3400 # Check whether --enable-stats or --disable-stats was given.
3401 if test "${enable_stats+set}" = set; then
3402 enableval="$enable_stats"
3403 if test x$enableval = xyes; then STATS=1; fi
3406 # Check whether --enable-optimizations or --disable-optimizations was given.
3407 if test "${enable_optimizations+set}" = set; then
3408 enableval="$enable_optimizations"
3409 if test x$enableval = xno; then OPTIMS=0; fi
3418 if test x$host_os = xbeos; then
3419 PLUGINS=${PLUGINS}"dummy null beos "
3423 # Check whether --enable-dummy or --disable-dummy was given.
3424 if test "${enable_dummy+set}" = set; then
3425 enableval="$enable_dummy"
3429 if test x$enable_dummy != xno; then PLUGINS=${PLUGINS}"dummy "; fi
3430 # Check whether --enable-null or --disable-null was given.
3431 if test "${enable_null+set}" = set; then
3432 enableval="$enable_null"
3436 if test x$enable_null != xno; then PLUGINS=${PLUGINS}"null "; fi
3437 # Check whether --enable-dsp or --disable-dsp was given.
3438 if test "${enable_dsp+set}" = set; then
3439 enableval="$enable_dsp"
3443 if test x$enable_dsp != xno; then PLUGINS=${PLUGINS}"dsp "; fi
3444 # Check whether --enable-esd or --disable-esd was given.
3445 if test "${enable_esd+set}" = set; then
3446 enableval="$enable_esd"
3447 if test x$enable_esd = xyes; then PLUGINS=${PLUGINS}"esd "; fi
3450 # Check whether --enable-fb or --disable-fb was given.
3451 if test "${enable_fb+set}" = set; then
3452 enableval="$enable_fb"
3453 if test x$enable_fb = xyes; then PLUGINS=${PLUGINS}"fb "; fi
3456 # Check whether --with-ggi or --without-ggi was given.
3457 if test "${with_ggi+set}" = set; then
3459 PLUGINS=${PLUGINS}"ggi ";
3460 if test "x$withval" != "xyes";
3462 LIB_GGI="-l"$withval
3468 # Check whether --with-sdl or --without-sdl was given.
3469 if test "${with_sdl+set}" = set; then
3471 PLUGINS=${PLUGINS}"sdl ";
3472 if test "x$withval" != "xyes";
3474 LIB_SDL="L/usr/X11R6/lib -l"$withval
3476 LIB_SDL="-L/usr/X11R6/lib -lSDL"
3480 if test "x$withval" == "x";
3482 PLUGINS=${PLUGINS}"sdl "
3483 LIB_SDL="-L/usr/X11R6/lib -lSDL"
3485 # Check whether --with-glide or --without-glide was given.
3486 if test "${with_glide+set}" = set; then
3487 withval="$with_glide"
3488 PLUGINS=${PLUGINS}"glide ";
3489 if test "x$withval" != "xyes";
3491 LIB_GLIDE="-l"$withval
3493 LIB_GLIDE="-lglide2x"
3497 # Check whether --enable-ncurses or --disable-ncurses was given.
3498 if test "${enable_ncurses+set}" = set; then
3499 enableval="$enable_ncurses"
3500 if test x$enable_ncurses = xyes; then PLUGINS=${PLUGINS}"ncurses "; fi
3503 # Check whether --enable-gnome or --disable-gnome was given.
3504 if test "${enable_gnome+set}" = set; then
3505 enableval="$enable_gnome"
3509 if test x$enable_gnome != xno; then PLUGINS=${PLUGINS}"gnome "; ALIASES=${ALIASES}"gvlc "; fi
3510 # Check whether --enable-gnome or --disable-gnome was given.
3511 if test "${enable_gnome+set}" = set; then
3512 enableval="$enable_gnome"
3516 if test x$enable_x11 != xno; then PLUGINS=${PLUGINS}"x11 "; fi
3518 # Check whether --enable-alsa or --disable-alsa was given.
3519 if test "${enable_alsa+set}" = set; then
3520 enableval="$enable_alsa"
3521 if test x$enable_alsa = xyes; then ac_safe=`echo "sys/asoundlib.h" | sed 'y%./+-%__p_%'`
3522 echo $ac_n "checking for sys/asoundlib.h""... $ac_c" 1>&6
3523 echo "configure:3524: checking for sys/asoundlib.h" >&5
3524 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3525 echo $ac_n "(cached) $ac_c" 1>&6
3527 cat > conftest.$ac_ext <<EOF
3528 #line 3529 "configure"
3529 #include "confdefs.h"
3530 #include <sys/asoundlib.h>
3532 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3533 { (eval echo configure:3534: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3534 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3535 if test -z "$ac_err"; then
3537 eval "ac_cv_header_$ac_safe=yes"
3540 echo "configure: failed program was:" >&5
3541 cat conftest.$ac_ext >&5
3543 eval "ac_cv_header_$ac_safe=no"
3547 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3548 echo "$ac_t""yes" 1>&6
3549 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
3550 echo "configure:3551: checking for main in -lasound" >&5
3551 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
3552 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3553 echo $ac_n "(cached) $ac_c" 1>&6
3555 ac_save_LIBS="$LIBS"
3556 LIBS="-lasound $LIBS"
3557 cat > conftest.$ac_ext <<EOF
3558 #line 3559 "configure"
3559 #include "confdefs.h"
3565 if { (eval echo configure:3566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3567 eval "ac_cv_lib_$ac_lib_var=yes"
3569 echo "configure: failed program was:" >&5
3570 cat conftest.$ac_ext >&5
3572 eval "ac_cv_lib_$ac_lib_var=no"
3575 LIBS="$ac_save_LIBS"
3578 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3579 echo "$ac_t""yes" 1>&6
3582 echo "$ac_t""no" 1>&6
3587 echo "$ac_t""no" 1>&6
3590 if test $have_alsa = true; then PLUGINS=${PLUGINS}"alsa "; fi; fi
3608 cat > confcache <<\EOF
3609 # This file is a shell script that caches the results of configure
3610 # tests run on this system so they can be shared between configure
3611 # scripts and configure runs. It is not useful on other systems.
3612 # If it contains results you don't want to keep, you may remove or edit it.
3614 # By default, configure uses ./config.cache as the cache file,
3615 # creating it if it does not exist already. You can give configure
3616 # the --cache-file=FILE option to use a different cache file; that is
3617 # what configure does when it calls configure scripts in
3618 # subdirectories, so they share the cache.
3619 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3620 # config.status only pays attention to the cache file if you give it the
3621 # --recheck option to rerun configure.
3624 # The following way of writing the cache mishandles newlines in values,
3625 # but we know of no workaround that is simple, portable, and efficient.
3626 # So, don't put newlines in cache variables' values.
3627 # Ultrix sh set writes to stderr and can't be redirected directly,
3628 # and sets the high bit in the cache file unless we assign to the vars.
3630 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3632 # `set' does not quote correctly, so add quotes (double-quote substitution
3633 # turns \\\\ into \\, and sed turns \\ into \).
3635 -e "s/'/'\\\\''/g" \
3636 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3639 # `set' quotes correctly as required by POSIX, so do not add quotes.
3640 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3643 if cmp -s $cache_file confcache; then
3646 if test -w $cache_file; then
3647 echo "updating cache $cache_file"
3648 cat confcache > $cache_file
3650 echo "not updating unwritable cache $cache_file"
3655 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3657 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3658 # Let make expand exec_prefix.
3659 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3661 # Any assignment to VPATH causes Sun make to only execute
3662 # the first set of double-colon rules, so remove it if not needed.
3663 # If there is a colon in the path, we need to keep it.
3664 if test "x$srcdir" = x.; then
3665 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3668 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3670 DEFS=-DHAVE_CONFIG_H
3672 # Without the "./", some shells look in PATH for config.status.
3673 : ${CONFIG_STATUS=./config.status}
3675 echo creating $CONFIG_STATUS
3676 rm -f $CONFIG_STATUS
3677 cat > $CONFIG_STATUS <<EOF
3679 # Generated automatically by configure.
3680 # Run this file to recreate the current configuration.
3681 # This directory was configured as follows,
3682 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3684 # $0 $ac_configure_args
3686 # Compiler output produced by configure, useful for debugging
3687 # configure, is in ./config.log if it exists.
3689 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3692 case "\$ac_option" in
3693 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3694 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3695 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3696 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3697 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3699 -help | --help | --hel | --he | --h)
3700 echo "\$ac_cs_usage"; exit 0 ;;
3701 *) echo "\$ac_cs_usage"; exit 1 ;;
3705 ac_given_srcdir=$srcdir
3706 ac_given_INSTALL="$INSTALL"
3708 trap 'rm -fr `echo "Makefile include/config.h include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3710 cat >> $CONFIG_STATUS <<EOF
3712 # Protect against being on the right side of a sed subst in config.status.
3713 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3714 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3718 s%@CFLAGS@%$CFLAGS%g
3719 s%@CPPFLAGS@%$CPPFLAGS%g
3720 s%@CXXFLAGS@%$CXXFLAGS%g
3721 s%@FFLAGS@%$FFLAGS%g
3723 s%@LDFLAGS@%$LDFLAGS%g
3725 s%@exec_prefix@%$exec_prefix%g
3726 s%@prefix@%$prefix%g
3727 s%@program_transform_name@%$program_transform_name%g
3728 s%@bindir@%$bindir%g
3729 s%@sbindir@%$sbindir%g
3730 s%@libexecdir@%$libexecdir%g
3731 s%@datadir@%$datadir%g
3732 s%@sysconfdir@%$sysconfdir%g
3733 s%@sharedstatedir@%$sharedstatedir%g
3734 s%@localstatedir@%$localstatedir%g
3735 s%@libdir@%$libdir%g
3736 s%@includedir@%$includedir%g
3737 s%@oldincludedir@%$oldincludedir%g
3738 s%@infodir@%$infodir%g
3739 s%@mandir@%$mandir%g
3741 s%@host_alias@%$host_alias%g
3742 s%@host_cpu@%$host_cpu%g
3743 s%@host_vendor@%$host_vendor%g
3744 s%@host_os@%$host_os%g
3745 s%@VLC_VERSION@%$VLC_VERSION%g
3746 s%@VLC_CODENAME@%$VLC_CODENAME%g
3747 s%@SET_MAKE@%$SET_MAKE%g
3750 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3751 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3752 s%@INSTALL_DATA@%$INSTALL_DATA%g
3753 s%@LIBOBJS@%$LIBOBJS%g
3756 s%@PLUGINS@%$PLUGINS%g
3757 s%@ALIASES@%$ALIASES%g
3760 s%@OPTIMS@%$OPTIMS%g
3761 s%@DYNAMIC_FLAG@%$DYNAMIC_FLAG%g
3762 s%@LIB_SDL@%$LIB_SDL%g
3763 s%@LIB_GLIDE@%$LIB_GLIDE%g
3764 s%@LIB_GGI@%$LIB_GGI%g
3769 cat >> $CONFIG_STATUS <<\EOF
3771 # Split the substitutions into bite-sized pieces for seds with
3772 # small command number limits, like on Digital OSF/1 and HP-UX.
3773 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3774 ac_file=1 # Number of current file.
3775 ac_beg=1 # First line for current file.
3776 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3779 while $ac_more_lines; do
3780 if test $ac_beg -gt 1; then
3781 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3783 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3785 if test ! -s conftest.s$ac_file; then
3787 rm -f conftest.s$ac_file
3789 if test -z "$ac_sed_cmds"; then
3790 ac_sed_cmds="sed -f conftest.s$ac_file"
3792 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3794 ac_file=`expr $ac_file + 1`
3796 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3799 if test -z "$ac_sed_cmds"; then
3804 cat >> $CONFIG_STATUS <<EOF
3806 CONFIG_FILES=\${CONFIG_FILES-"Makefile include/config.h"}
3808 cat >> $CONFIG_STATUS <<\EOF
3809 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3810 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3812 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3813 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3814 *) ac_file_in="${ac_file}.in" ;;
3817 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3819 # Remove last slash and all that follows it. Not all systems have dirname.
3820 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3821 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3822 # The file is in a subdirectory.
3823 test ! -d "$ac_dir" && mkdir "$ac_dir"
3824 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3825 # A "../" for each directory in $ac_dir_suffix.
3826 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3828 ac_dir_suffix= ac_dots=
3831 case "$ac_given_srcdir" in
3833 if test -z "$ac_dots"; then top_srcdir=.
3834 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3835 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3837 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3838 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3841 case "$ac_given_INSTALL" in
3842 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3843 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3846 echo creating "$ac_file"
3848 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3850 *Makefile*) ac_comsub="1i\\
3851 # $configure_input" ;;
3855 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3857 s%@configure_input@%$configure_input%g
3858 s%@srcdir@%$srcdir%g
3859 s%@top_srcdir@%$top_srcdir%g
3860 s%@INSTALL@%$INSTALL%g
3861 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3865 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3866 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3868 # ac_d sets the value in "#define NAME VALUE" lines.
3869 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3870 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3873 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3874 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3875 ac_uB='\([ ]\)%\1#\2define\3'
3878 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3879 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3880 ac_eB='$%\1#\2define\3'
3884 if test "${CONFIG_HEADERS+set}" != set; then
3886 cat >> $CONFIG_STATUS <<EOF
3887 CONFIG_HEADERS="include/defs.h"
3889 cat >> $CONFIG_STATUS <<\EOF
3891 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3892 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3894 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3895 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3896 *) ac_file_in="${ac_file}.in" ;;
3899 echo creating $ac_file
3901 rm -f conftest.frag conftest.in conftest.out
3902 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3903 cat $ac_file_inputs > conftest.in
3907 # Transform confdefs.h into a sed script conftest.vals that substitutes
3908 # the proper values into config.h.in to produce config.h. And first:
3909 # Protect against being on the right side of a sed subst in config.status.
3910 # Protect against being in an unquoted here document in config.status.
3912 cat > conftest.hdr <<\EOF
3915 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3919 sed -n -f conftest.hdr confdefs.h > conftest.vals
3922 # This sed command replaces #undef with comments. This is necessary, for
3923 # example, in the case of _POSIX_SOURCE, which is predefined and required
3924 # on some systems where configure will not decide to define it.
3925 cat >> conftest.vals <<\EOF
3926 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3929 # Break up conftest.vals because some shells have a limit on
3930 # the size of here documents, and old seds have small limits too.
3935 ac_lines=`grep -c . conftest.vals`
3936 # grep -c gives empty output for an empty file on some AIX systems.
3937 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3938 # Write a limited-size here document to conftest.frag.
3939 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3940 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3942 sed -f conftest.frag conftest.in > conftest.out
3944 mv conftest.out conftest.in
3946 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3948 mv conftest.tail conftest.vals
3952 cat >> $CONFIG_STATUS <<\EOF
3953 rm -f conftest.frag conftest.h
3954 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3955 cat conftest.in >> conftest.h
3957 if cmp -s $ac_file conftest.h 2>/dev/null; then
3958 echo "$ac_file is unchanged"
3961 # Remove last slash and all that follows it. Not all systems have dirname.
3962 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3963 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3964 # The file is in a subdirectory.
3965 test ! -d "$ac_dir" && mkdir "$ac_dir"
3968 mv conftest.h $ac_file
3973 cat >> $CONFIG_STATUS <<EOF
3976 cat >> $CONFIG_STATUS <<\EOF
3980 chmod +x $CONFIG_STATUS
3981 rm -fr confdefs* $ac_clean_files
3982 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3988 vlc version : ${VLC_VERSION}
3990 architecture : ${ARCH}
3991 debug mode : ${DEBUG}
3992 statistics : ${STATS}
3993 optimizations : ${OPTIMS}
3994 plugins : ${PLUGINS}
3995 vlc aliases : ${ALIASES}