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 audio and video support (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 disabled)"
39 --with-glide[=name] Glide (3dfx) support (default disabled)"
41 --enable-gnome Gnome support (default disabled)"
43 --disable-x11 X11 support (default enabled)"
45 --enable-alsa Alsa sound drivers support (Only for linux) (default disabled)"
47 # Initialize some variables set by options.
48 # The variables have the same names as the options, with
49 # dashes changed to underlines.
51 cache_file=./config.cache
60 program_transform_name=s,x,x,
68 bindir='${exec_prefix}/bin'
69 sbindir='${exec_prefix}/sbin'
70 libexecdir='${exec_prefix}/libexec'
71 datadir='${prefix}/share'
72 sysconfdir='${prefix}/etc'
73 sharedstatedir='${prefix}/com'
74 localstatedir='${prefix}/var'
75 libdir='${exec_prefix}/lib'
76 includedir='${prefix}/include'
77 oldincludedir='/usr/include'
78 infodir='${prefix}/info'
79 mandir='${prefix}/man'
81 # Initialize some other variables.
84 SHELL=${CONFIG_SHELL-/bin/sh}
85 # Maximum number of lines to put in a shell here document.
92 # If the previous option needs an argument, assign it.
93 if test -n "$ac_prev"; then
94 eval "$ac_prev=\$ac_option"
100 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
104 # Accept the important Cygnus configure options, so we can diagnose typos.
108 -bindir | --bindir | --bindi | --bind | --bin | --bi)
110 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
111 bindir="$ac_optarg" ;;
113 -build | --build | --buil | --bui | --bu)
115 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
116 build="$ac_optarg" ;;
118 -cache-file | --cache-file | --cache-fil | --cache-fi \
119 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
120 ac_prev=cache_file ;;
121 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
122 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
123 cache_file="$ac_optarg" ;;
125 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
127 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
129 datadir="$ac_optarg" ;;
131 -disable-* | --disable-*)
132 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
133 # Reject names that are not valid shell variable names.
134 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
135 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
137 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
138 eval "enable_${ac_feature}=no" ;;
140 -enable-* | --enable-*)
141 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
142 # Reject names that are not valid shell variable names.
143 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
144 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
146 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
151 eval "enable_${ac_feature}='$ac_optarg'" ;;
153 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
154 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
155 | --exec | --exe | --ex)
156 ac_prev=exec_prefix ;;
157 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
158 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
159 | --exec=* | --exe=* | --ex=*)
160 exec_prefix="$ac_optarg" ;;
162 -gas | --gas | --ga | --g)
163 # Obsolete; use --with-gas.
166 -help | --help | --hel | --he)
167 # Omit some internal or obsolete options to make the list less imposing.
168 # This message is too long to be a string in the A/UX 3.1 sh.
170 Usage: configure [options] [host]
171 Options: [defaults in brackets after descriptions]
173 --cache-file=FILE cache test results in FILE
174 --help print this message
175 --no-create do not create output files
176 --quiet, --silent do not print \`checking...' messages
177 --version print the version of autoconf that created configure
178 Directory and file names:
179 --prefix=PREFIX install architecture-independent files in PREFIX
181 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
183 --bindir=DIR user executables in DIR [EPREFIX/bin]
184 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
185 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
186 --datadir=DIR read-only architecture-independent data in DIR
188 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
189 --sharedstatedir=DIR modifiable architecture-independent data in DIR
191 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
192 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
193 --includedir=DIR C header files in DIR [PREFIX/include]
194 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
195 --infodir=DIR info documentation in DIR [PREFIX/info]
196 --mandir=DIR man documentation in DIR [PREFIX/man]
197 --srcdir=DIR find the sources in DIR [configure dir or ..]
198 --program-prefix=PREFIX prepend PREFIX to installed program names
199 --program-suffix=SUFFIX append SUFFIX to installed program names
200 --program-transform-name=PROGRAM
201 run sed PROGRAM on installed program names
205 --build=BUILD configure for building on BUILD [BUILD=HOST]
206 --host=HOST configure for HOST [guessed]
207 --target=TARGET configure for TARGET [TARGET=HOST]
208 Features and packages:
209 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
210 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
211 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
212 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
213 --x-includes=DIR X include files are in DIR
214 --x-libraries=DIR X library files are in DIR
216 if test -n "$ac_help"; then
217 echo "--enable and --with options recognized:$ac_help"
221 -host | --host | --hos | --ho)
223 -host=* | --host=* | --hos=* | --ho=*)
226 -includedir | --includedir | --includedi | --included | --include \
227 | --includ | --inclu | --incl | --inc)
228 ac_prev=includedir ;;
229 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
230 | --includ=* | --inclu=* | --incl=* | --inc=*)
231 includedir="$ac_optarg" ;;
233 -infodir | --infodir | --infodi | --infod | --info | --inf)
235 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
236 infodir="$ac_optarg" ;;
238 -libdir | --libdir | --libdi | --libd)
240 -libdir=* | --libdir=* | --libdi=* | --libd=*)
241 libdir="$ac_optarg" ;;
243 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
244 | --libexe | --libex | --libe)
245 ac_prev=libexecdir ;;
246 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
247 | --libexe=* | --libex=* | --libe=*)
248 libexecdir="$ac_optarg" ;;
250 -localstatedir | --localstatedir | --localstatedi | --localstated \
251 | --localstate | --localstat | --localsta | --localst \
252 | --locals | --local | --loca | --loc | --lo)
253 ac_prev=localstatedir ;;
254 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
255 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
256 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
257 localstatedir="$ac_optarg" ;;
259 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
261 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
262 mandir="$ac_optarg" ;;
265 # Obsolete; use --without-fp.
268 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
272 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
273 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
276 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
277 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
278 | --oldin | --oldi | --old | --ol | --o)
279 ac_prev=oldincludedir ;;
280 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
281 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
282 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
283 oldincludedir="$ac_optarg" ;;
285 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
287 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
288 prefix="$ac_optarg" ;;
290 -program-prefix | --program-prefix | --program-prefi | --program-pref \
291 | --program-pre | --program-pr | --program-p)
292 ac_prev=program_prefix ;;
293 -program-prefix=* | --program-prefix=* | --program-prefi=* \
294 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
295 program_prefix="$ac_optarg" ;;
297 -program-suffix | --program-suffix | --program-suffi | --program-suff \
298 | --program-suf | --program-su | --program-s)
299 ac_prev=program_suffix ;;
300 -program-suffix=* | --program-suffix=* | --program-suffi=* \
301 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
302 program_suffix="$ac_optarg" ;;
304 -program-transform-name | --program-transform-name \
305 | --program-transform-nam | --program-transform-na \
306 | --program-transform-n | --program-transform- \
307 | --program-transform | --program-transfor \
308 | --program-transfo | --program-transf \
309 | --program-trans | --program-tran \
310 | --progr-tra | --program-tr | --program-t)
311 ac_prev=program_transform_name ;;
312 -program-transform-name=* | --program-transform-name=* \
313 | --program-transform-nam=* | --program-transform-na=* \
314 | --program-transform-n=* | --program-transform-=* \
315 | --program-transform=* | --program-transfor=* \
316 | --program-transfo=* | --program-transf=* \
317 | --program-trans=* | --program-tran=* \
318 | --progr-tra=* | --program-tr=* | --program-t=*)
319 program_transform_name="$ac_optarg" ;;
321 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
322 | -silent | --silent | --silen | --sile | --sil)
325 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
327 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
329 sbindir="$ac_optarg" ;;
331 -sharedstatedir | --sharedstatedir | --sharedstatedi \
332 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
333 | --sharedst | --shareds | --shared | --share | --shar \
335 ac_prev=sharedstatedir ;;
336 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
337 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
338 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
340 sharedstatedir="$ac_optarg" ;;
342 -site | --site | --sit)
344 -site=* | --site=* | --sit=*)
347 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
349 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
350 srcdir="$ac_optarg" ;;
352 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
353 | --syscon | --sysco | --sysc | --sys | --sy)
354 ac_prev=sysconfdir ;;
355 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
356 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
357 sysconfdir="$ac_optarg" ;;
359 -target | --target | --targe | --targ | --tar | --ta | --t)
361 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
362 target="$ac_optarg" ;;
364 -v | -verbose | --verbose | --verbos | --verbo | --verb)
367 -version | --version | --versio | --versi | --vers)
368 echo "configure generated by autoconf version 2.13"
372 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
373 # Reject names that are not valid shell variable names.
374 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
375 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
377 ac_package=`echo $ac_package| sed 's/-/_/g'`
382 eval "with_${ac_package}='$ac_optarg'" ;;
384 -without-* | --without-*)
385 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
386 # Reject names that are not valid shell variable names.
387 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
388 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
390 ac_package=`echo $ac_package| sed 's/-/_/g'`
391 eval "with_${ac_package}=no" ;;
394 # Obsolete; use --with-x.
397 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
398 | --x-incl | --x-inc | --x-in | --x-i)
399 ac_prev=x_includes ;;
400 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
401 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
402 x_includes="$ac_optarg" ;;
404 -x-libraries | --x-libraries | --x-librarie | --x-librari \
405 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
406 ac_prev=x_libraries ;;
407 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
408 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
409 x_libraries="$ac_optarg" ;;
411 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
415 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
416 echo "configure: warning: $ac_option: invalid host type" 1>&2
418 if test "x$nonopt" != xNONE; then
419 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
427 if test -n "$ac_prev"; then
428 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
431 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
433 # File descriptor usage:
436 # 2 errors and warnings
437 # 3 some systems may open it to /dev/tty
438 # 4 used on the Kubota Titan
439 # 6 checking for... messages and results
440 # 5 compiler messages saved in config.log
441 if test "$silent" = yes; then
449 This file contains any messages produced by compilers while
450 running configure, to aid debugging if configure makes a mistake.
453 # Strip out --no-create and --no-recursion so they do not pile up.
454 # Also quote any args containing shell metacharacters.
459 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
460 | --no-cr | --no-c) ;;
461 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
462 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
463 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
464 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
465 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
470 # Only set these to C if already set. These must not be set unconditionally
471 # because not all systems understand e.g. LANG=C (notably SCO).
472 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
473 # Non-C LC_CTYPE values break the ctype check.
474 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
475 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
476 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
477 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
479 # confdefs.h avoids OS command line length limits that DEFS can exceed.
480 rm -rf conftest* confdefs.h
481 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
484 # A filename unique to this package, relative to the directory that
485 # configure is in, which we can look for to find out if srcdir is correct.
486 ac_unique_file=src/interface/main.c
488 # Find the source files, if location was not specified.
489 if test -z "$srcdir"; then
490 ac_srcdir_defaulted=yes
491 # Try the directory containing this script, then its parent.
493 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
494 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
496 if test ! -r $srcdir/$ac_unique_file; then
500 ac_srcdir_defaulted=no
502 if test ! -r $srcdir/$ac_unique_file; then
503 if test "$ac_srcdir_defaulted" = yes; then
504 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
506 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
509 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
511 # Prefer explicitly selected file to automatically selected ones.
512 if test -z "$CONFIG_SITE"; then
513 if test "x$prefix" != xNONE; then
514 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
516 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
519 for ac_site_file in $CONFIG_SITE; do
520 if test -r "$ac_site_file"; then
521 echo "loading site script $ac_site_file"
526 if test -r "$cache_file"; then
527 echo "loading cache $cache_file"
530 echo "creating cache $cache_file"
535 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
536 ac_cpp='$CPP $CPPFLAGS'
537 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
538 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
539 cross_compiling=$ac_cv_prog_cc_cross
543 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
544 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
545 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
552 ac_n= ac_c='\c' ac_t=
559 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
560 if test -f $ac_dir/install-sh; then
562 ac_install_sh="$ac_aux_dir/install-sh -c"
564 elif test -f $ac_dir/install.sh; then
566 ac_install_sh="$ac_aux_dir/install.sh -c"
570 if test -z "$ac_aux_dir"; then
571 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
573 ac_config_guess=$ac_aux_dir/config.guess
574 ac_config_sub=$ac_aux_dir/config.sub
575 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
578 # Make sure we can run config.sub.
579 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
580 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
583 echo $ac_n "checking host system type""... $ac_c" 1>&6
584 echo "configure:585: checking host system type" >&5
587 case "$host_alias" in
591 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
592 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
594 *) host_alias=$nonopt ;;
598 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
599 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
600 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
601 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
602 echo "$ac_t""$host" 1>&6
610 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
611 echo "configure:612: checking whether ${MAKE-make} sets \${MAKE}" >&5
612 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
613 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
614 echo $ac_n "(cached) $ac_c" 1>&6
616 cat > conftestmake <<\EOF
618 @echo 'ac_maketemp="${MAKE}"'
620 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
621 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
622 if test -n "$ac_maketemp"; then
623 eval ac_cv_prog_make_${ac_make}_set=yes
625 eval ac_cv_prog_make_${ac_make}_set=no
629 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
630 echo "$ac_t""yes" 1>&6
633 echo "$ac_t""no" 1>&6
634 SET_MAKE="MAKE=${MAKE-make}"
637 if test -z "$CC"; then
638 # Extract the first word of "gcc", so it can be a program name with args.
639 set dummy gcc; ac_word=$2
640 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
641 echo "configure:642: checking for $ac_word" >&5
642 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
643 echo $ac_n "(cached) $ac_c" 1>&6
645 if test -n "$CC"; then
646 ac_cv_prog_CC="$CC" # Let the user override the test.
648 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
650 for ac_dir in $ac_dummy; do
651 test -z "$ac_dir" && ac_dir=.
652 if test -f $ac_dir/$ac_word; then
661 if test -n "$CC"; then
662 echo "$ac_t""$CC" 1>&6
664 echo "$ac_t""no" 1>&6
667 if test -z "$CC"; then
668 # Extract the first word of "cc", so it can be a program name with args.
669 set dummy cc; ac_word=$2
670 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
671 echo "configure:672: checking for $ac_word" >&5
672 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
673 echo $ac_n "(cached) $ac_c" 1>&6
675 if test -n "$CC"; then
676 ac_cv_prog_CC="$CC" # Let the user override the test.
678 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
681 for ac_dir in $ac_dummy; do
682 test -z "$ac_dir" && ac_dir=.
683 if test -f $ac_dir/$ac_word; then
684 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
693 if test $ac_prog_rejected = yes; then
694 # We found a bogon in the path, so make sure we never use it.
695 set dummy $ac_cv_prog_CC
697 if test $# -gt 0; then
698 # We chose a different compiler from the bogus one.
699 # However, it has the same basename, so the bogon will be chosen
700 # first if we set CC to just the basename; use the full file name.
702 set dummy "$ac_dir/$ac_word" "$@"
710 if test -n "$CC"; then
711 echo "$ac_t""$CC" 1>&6
713 echo "$ac_t""no" 1>&6
716 if test -z "$CC"; then
719 # Extract the first word of "cl", so it can be a program name with args.
720 set dummy cl; ac_word=$2
721 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
722 echo "configure:723: checking for $ac_word" >&5
723 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
724 echo $ac_n "(cached) $ac_c" 1>&6
726 if test -n "$CC"; then
727 ac_cv_prog_CC="$CC" # Let the user override the test.
729 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
731 for ac_dir in $ac_dummy; do
732 test -z "$ac_dir" && ac_dir=.
733 if test -f $ac_dir/$ac_word; then
742 if test -n "$CC"; then
743 echo "$ac_t""$CC" 1>&6
745 echo "$ac_t""no" 1>&6
750 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
753 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
754 echo "configure:755: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
757 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
758 ac_cpp='$CPP $CPPFLAGS'
759 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
760 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
761 cross_compiling=$ac_cv_prog_cc_cross
763 cat > conftest.$ac_ext << EOF
765 #line 766 "configure"
766 #include "confdefs.h"
770 if { (eval echo configure:771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
771 ac_cv_prog_cc_works=yes
772 # If we can't run a trivial program, we are probably using a cross compiler.
773 if (./conftest; exit) 2>/dev/null; then
774 ac_cv_prog_cc_cross=no
776 ac_cv_prog_cc_cross=yes
779 echo "configure: failed program was:" >&5
780 cat conftest.$ac_ext >&5
781 ac_cv_prog_cc_works=no
785 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
786 ac_cpp='$CPP $CPPFLAGS'
787 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
788 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
789 cross_compiling=$ac_cv_prog_cc_cross
791 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
792 if test $ac_cv_prog_cc_works = no; then
793 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
795 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
796 echo "configure:797: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
797 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
798 cross_compiling=$ac_cv_prog_cc_cross
800 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
801 echo "configure:802: checking whether we are using GNU C" >&5
802 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
803 echo $ac_n "(cached) $ac_c" 1>&6
805 cat > conftest.c <<EOF
810 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:811: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
817 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
819 if test $ac_cv_prog_gcc = yes; then
825 ac_test_CFLAGS="${CFLAGS+set}"
826 ac_save_CFLAGS="$CFLAGS"
828 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
829 echo "configure:830: checking whether ${CC-cc} accepts -g" >&5
830 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
831 echo $ac_n "(cached) $ac_c" 1>&6
833 echo 'void f(){}' > conftest.c
834 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
843 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
844 if test "$ac_test_CFLAGS" = set; then
845 CFLAGS="$ac_save_CFLAGS"
846 elif test $ac_cv_prog_cc_g = yes; then
847 if test "$GCC" = yes; then
853 if test "$GCC" = yes; then
861 if test -z "$CPP"; then
862 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
863 echo "configure:864: checking how to run the C preprocessor" >&5
864 # On Suns, sometimes $CPP names a directory.
865 if test -n "$CPP" && test -d "$CPP"; then
868 if test -z "$CPP"; then
869 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
870 echo $ac_n "(cached) $ac_c" 1>&6
872 # This must be in double quotes, not single quotes, because CPP may get
873 # substituted into the Makefile and "${CC-cc}" will confuse make.
875 # On the NeXT, cc -E runs the code through the compiler's parser,
876 # not just through cpp.
877 cat > conftest.$ac_ext <<EOF
878 #line 879 "configure"
879 #include "confdefs.h"
883 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
884 { (eval echo configure:885: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
885 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
886 if test -z "$ac_err"; then
890 echo "configure: failed program was:" >&5
891 cat conftest.$ac_ext >&5
893 CPP="${CC-cc} -E -traditional-cpp"
894 cat > conftest.$ac_ext <<EOF
895 #line 896 "configure"
896 #include "confdefs.h"
900 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
901 { (eval echo configure:902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
902 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
903 if test -z "$ac_err"; then
907 echo "configure: failed program was:" >&5
908 cat conftest.$ac_ext >&5
910 CPP="${CC-cc} -nologo -E"
911 cat > conftest.$ac_ext <<EOF
912 #line 913 "configure"
913 #include "confdefs.h"
917 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
918 { (eval echo configure:919: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
919 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
920 if test -z "$ac_err"; then
924 echo "configure: failed program was:" >&5
925 cat conftest.$ac_ext >&5
934 ac_cv_prog_CPP="$CPP"
936 CPP="$ac_cv_prog_CPP"
938 ac_cv_prog_CPP="$CPP"
940 echo "$ac_t""$CPP" 1>&6
944 # Find a good install program. We prefer a C program (faster),
945 # so one script is as good as another. But avoid the broken or
946 # incompatible versions:
947 # SysV /etc/install, /usr/sbin/install
948 # SunOS /usr/etc/install
951 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
952 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
953 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
954 # ./install, which can be erroneously created by make from ./install.sh.
955 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
956 echo "configure:957: checking for a BSD compatible install" >&5
957 if test -z "$INSTALL"; then
958 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
959 echo $ac_n "(cached) $ac_c" 1>&6
961 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
962 for ac_dir in $PATH; do
963 # Account for people who put trailing slashes in PATH elements.
965 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
967 # OSF1 and SCO ODT 3.0 have their own names for install.
968 # Don't use installbsd from OSF since it installs stuff as root
970 for ac_prog in ginstall scoinst install; do
971 if test -f $ac_dir/$ac_prog; then
972 if test $ac_prog = install &&
973 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
974 # AIX install. It has an incompatible calling convention.
977 ac_cv_path_install="$ac_dir/$ac_prog -c"
988 if test "${ac_cv_path_install+set}" = set; then
989 INSTALL="$ac_cv_path_install"
991 # As a last resort, use the slow shell script. We don't cache a
992 # path for INSTALL within a source directory, because that will
993 # break other packages using the cache if that directory is
994 # removed, or if the path is relative.
995 INSTALL="$ac_install_sh"
998 echo "$ac_t""$INSTALL" 1>&6
1000 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1001 # It thinks the first close brace ends the variable substitution.
1002 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1004 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1006 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1009 echo $ac_n "checking for working const""... $ac_c" 1>&6
1010 echo "configure:1011: checking for working const" >&5
1011 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1012 echo $ac_n "(cached) $ac_c" 1>&6
1014 cat > conftest.$ac_ext <<EOF
1015 #line 1016 "configure"
1016 #include "confdefs.h"
1020 /* Ultrix mips cc rejects this. */
1021 typedef int charset[2]; const charset x = {0,0};
1022 /* SunOS 4.1.1 cc rejects this. */
1023 char const *const *ccp;
1025 /* NEC SVR4.0.2 mips cc rejects this. */
1026 struct point {int x, y;};
1027 static struct point const zero = {0,0};
1028 /* AIX XL C 1.02.0.0 rejects this.
1029 It does not let you subtract one const X* pointer from another in an arm
1030 of an if-expression whose if-part is not a constant expression */
1031 const char *g = "string";
1032 ccp = &g + (g ? g-g : 0);
1033 /* HPUX 7.0 cc rejects these. */
1036 ccp = (char const *const *) p;
1037 { /* SCO 3.2v4 cc rejects this. */
1039 char const *s = 0 ? (char *) 0 : (char const *) 0;
1043 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1045 const int *foo = &x[0];
1048 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1049 typedef const int *iptr;
1053 { /* AIX XL C 1.02.0.0 rejects this saying
1054 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1055 struct s { int j; const int *ap[3]; };
1056 struct s *b; b->j = 5;
1058 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1064 if { (eval echo configure:1065: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1068 echo "configure: failed program was:" >&5
1069 cat conftest.$ac_ext >&5
1076 echo "$ac_t""$ac_cv_c_const" 1>&6
1077 if test $ac_cv_c_const = no; then
1078 cat >> confdefs.h <<\EOF
1084 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1085 echo "configure:1086: checking whether byte ordering is bigendian" >&5
1086 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1087 echo $ac_n "(cached) $ac_c" 1>&6
1089 ac_cv_c_bigendian=unknown
1090 # See if sys/param.h defines the BYTE_ORDER macro.
1091 cat > conftest.$ac_ext <<EOF
1092 #line 1093 "configure"
1093 #include "confdefs.h"
1094 #include <sys/types.h>
1095 #include <sys/param.h>
1098 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1103 if { (eval echo configure:1104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1105 # It does; now see whether it defined to BIG_ENDIAN or not.
1106 cat > conftest.$ac_ext <<EOF
1107 #line 1108 "configure"
1108 #include "confdefs.h"
1109 #include <sys/types.h>
1110 #include <sys/param.h>
1113 #if BYTE_ORDER != BIG_ENDIAN
1118 if { (eval echo configure:1119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1120 ac_cv_c_bigendian=yes
1122 echo "configure: failed program was:" >&5
1123 cat conftest.$ac_ext >&5
1125 ac_cv_c_bigendian=no
1129 echo "configure: failed program was:" >&5
1130 cat conftest.$ac_ext >&5
1133 if test $ac_cv_c_bigendian = unknown; then
1134 if test "$cross_compiling" = yes; then
1135 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1137 cat > conftest.$ac_ext <<EOF
1138 #line 1139 "configure"
1139 #include "confdefs.h"
1141 /* Are we little or big endian? From Harbison&Steele. */
1145 char c[sizeof (long)];
1148 exit (u.c[sizeof (long) - 1] == 1);
1151 if { (eval echo configure:1152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1153 ac_cv_c_bigendian=no
1155 echo "configure: failed program was:" >&5
1156 cat conftest.$ac_ext >&5
1158 ac_cv_c_bigendian=yes
1166 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1167 if test $ac_cv_c_bigendian = yes; then
1168 cat >> confdefs.h <<\EOF
1169 #define WORDS_BIGENDIAN 1
1175 for ac_func in gettimeofday select strerror strtod strtol
1177 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1178 echo "configure:1179: checking for $ac_func" >&5
1179 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1180 echo $ac_n "(cached) $ac_c" 1>&6
1182 cat > conftest.$ac_ext <<EOF
1183 #line 1184 "configure"
1184 #include "confdefs.h"
1185 /* System header to define __stub macros and hopefully few prototypes,
1186 which can conflict with char $ac_func(); below. */
1188 /* Override any gcc2 internal prototype to avoid an error. */
1189 /* We use char because int might match the return type of a gcc2
1190 builtin and then its argument prototype would still apply. */
1195 /* The GNU C library defines this for functions which it implements
1196 to always fail with ENOSYS. Some functions are actually named
1197 something starting with __ and the normal name is an alias. */
1198 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1206 if { (eval echo configure:1207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1208 eval "ac_cv_func_$ac_func=yes"
1210 echo "configure: failed program was:" >&5
1211 cat conftest.$ac_ext >&5
1213 eval "ac_cv_func_$ac_func=no"
1218 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1219 echo "$ac_t""yes" 1>&6
1220 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1221 cat >> confdefs.h <<EOF
1222 #define $ac_tr_func 1
1226 echo "$ac_t""no" 1>&6
1230 for ac_func in setenv putenv
1232 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1233 echo "configure:1234: checking for $ac_func" >&5
1234 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1235 echo $ac_n "(cached) $ac_c" 1>&6
1237 cat > conftest.$ac_ext <<EOF
1238 #line 1239 "configure"
1239 #include "confdefs.h"
1240 /* System header to define __stub macros and hopefully few prototypes,
1241 which can conflict with char $ac_func(); below. */
1243 /* Override any gcc2 internal prototype to avoid an error. */
1244 /* We use char because int might match the return type of a gcc2
1245 builtin and then its argument prototype would still apply. */
1250 /* The GNU C library defines this for functions which it implements
1251 to always fail with ENOSYS. Some functions are actually named
1252 something starting with __ and the normal name is an alias. */
1253 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1261 if { (eval echo configure:1262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1263 eval "ac_cv_func_$ac_func=yes"
1265 echo "configure: failed program was:" >&5
1266 cat conftest.$ac_ext >&5
1268 eval "ac_cv_func_$ac_func=no"
1273 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1274 echo "$ac_t""yes" 1>&6
1275 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1276 cat >> confdefs.h <<EOF
1277 #define $ac_tr_func 1
1281 echo "$ac_t""no" 1>&6
1285 echo $ac_n "checking for connect""... $ac_c" 1>&6
1286 echo "configure:1287: checking for connect" >&5
1287 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1288 echo $ac_n "(cached) $ac_c" 1>&6
1290 cat > conftest.$ac_ext <<EOF
1291 #line 1292 "configure"
1292 #include "confdefs.h"
1293 /* System header to define __stub macros and hopefully few prototypes,
1294 which can conflict with char connect(); below. */
1296 /* Override any gcc2 internal prototype to avoid an error. */
1297 /* We use char because int might match the return type of a gcc2
1298 builtin and then its argument prototype would still apply. */
1303 /* The GNU C library defines this for functions which it implements
1304 to always fail with ENOSYS. Some functions are actually named
1305 something starting with __ and the normal name is an alias. */
1306 #if defined (__stub_connect) || defined (__stub___connect)
1314 if { (eval echo configure:1315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1316 eval "ac_cv_func_connect=yes"
1318 echo "configure: failed program was:" >&5
1319 cat conftest.$ac_ext >&5
1321 eval "ac_cv_func_connect=no"
1326 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1327 echo "$ac_t""yes" 1>&6
1330 echo "$ac_t""no" 1>&6
1331 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1332 echo "configure:1333: checking for connect in -lsocket" >&5
1333 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1334 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1335 echo $ac_n "(cached) $ac_c" 1>&6
1337 ac_save_LIBS="$LIBS"
1338 LIBS="-lsocket $LIBS"
1339 cat > conftest.$ac_ext <<EOF
1340 #line 1341 "configure"
1341 #include "confdefs.h"
1342 /* Override any gcc2 internal prototype to avoid an error. */
1343 /* We use char because int might match the return type of a gcc2
1344 builtin and then its argument prototype would still apply. */
1351 if { (eval echo configure:1352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1353 eval "ac_cv_lib_$ac_lib_var=yes"
1355 echo "configure: failed program was:" >&5
1356 cat conftest.$ac_ext >&5
1358 eval "ac_cv_lib_$ac_lib_var=no"
1361 LIBS="$ac_save_LIBS"
1364 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1365 echo "$ac_t""yes" 1>&6
1366 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1367 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1368 cat >> confdefs.h <<EOF
1369 #define $ac_tr_lib 1
1372 LIBS="-lsocket $LIBS"
1375 echo "$ac_t""no" 1>&6
1380 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1381 echo "configure:1382: checking for gethostbyname" >&5
1382 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1383 echo $ac_n "(cached) $ac_c" 1>&6
1385 cat > conftest.$ac_ext <<EOF
1386 #line 1387 "configure"
1387 #include "confdefs.h"
1388 /* System header to define __stub macros and hopefully few prototypes,
1389 which can conflict with char gethostbyname(); below. */
1391 /* Override any gcc2 internal prototype to avoid an error. */
1392 /* We use char because int might match the return type of a gcc2
1393 builtin and then its argument prototype would still apply. */
1394 char gethostbyname();
1398 /* The GNU C library defines this for functions which it implements
1399 to always fail with ENOSYS. Some functions are actually named
1400 something starting with __ and the normal name is an alias. */
1401 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1409 if { (eval echo configure:1410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1411 eval "ac_cv_func_gethostbyname=yes"
1413 echo "configure: failed program was:" >&5
1414 cat conftest.$ac_ext >&5
1416 eval "ac_cv_func_gethostbyname=no"
1421 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1422 echo "$ac_t""yes" 1>&6
1425 echo "$ac_t""no" 1>&6
1426 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1427 echo "configure:1428: checking for gethostbyname in -lnsl" >&5
1428 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1429 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1430 echo $ac_n "(cached) $ac_c" 1>&6
1432 ac_save_LIBS="$LIBS"
1434 cat > conftest.$ac_ext <<EOF
1435 #line 1436 "configure"
1436 #include "confdefs.h"
1437 /* Override any gcc2 internal prototype to avoid an error. */
1438 /* We use char because int might match the return type of a gcc2
1439 builtin and then its argument prototype would still apply. */
1440 char gethostbyname();
1446 if { (eval echo configure:1447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1448 eval "ac_cv_lib_$ac_lib_var=yes"
1450 echo "configure: failed program was:" >&5
1451 cat conftest.$ac_ext >&5
1453 eval "ac_cv_lib_$ac_lib_var=no"
1456 LIBS="$ac_save_LIBS"
1459 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1460 echo "$ac_t""yes" 1>&6
1461 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1462 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1463 cat >> confdefs.h <<EOF
1464 #define $ac_tr_lib 1
1470 echo "$ac_t""no" 1>&6
1475 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
1476 echo "configure:1477: checking for nanosleep" >&5
1477 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
1478 echo $ac_n "(cached) $ac_c" 1>&6
1480 cat > conftest.$ac_ext <<EOF
1481 #line 1482 "configure"
1482 #include "confdefs.h"
1483 /* System header to define __stub macros and hopefully few prototypes,
1484 which can conflict with char nanosleep(); below. */
1486 /* Override any gcc2 internal prototype to avoid an error. */
1487 /* We use char because int might match the return type of a gcc2
1488 builtin and then its argument prototype would still apply. */
1493 /* The GNU C library defines this for functions which it implements
1494 to always fail with ENOSYS. Some functions are actually named
1495 something starting with __ and the normal name is an alias. */
1496 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
1504 if { (eval echo configure:1505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1506 eval "ac_cv_func_nanosleep=yes"
1508 echo "configure: failed program was:" >&5
1509 cat conftest.$ac_ext >&5
1511 eval "ac_cv_func_nanosleep=no"
1516 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
1517 echo "$ac_t""yes" 1>&6
1520 echo "$ac_t""no" 1>&6
1521 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
1522 echo "configure:1523: checking for nanosleep in -lrt" >&5
1523 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
1524 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1525 echo $ac_n "(cached) $ac_c" 1>&6
1527 ac_save_LIBS="$LIBS"
1529 cat > conftest.$ac_ext <<EOF
1530 #line 1531 "configure"
1531 #include "confdefs.h"
1532 /* Override any gcc2 internal prototype to avoid an error. */
1533 /* We use char because int might match the return type of a gcc2
1534 builtin and then its argument prototype would still apply. */
1541 if { (eval echo configure:1542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1543 eval "ac_cv_lib_$ac_lib_var=yes"
1545 echo "configure: failed program was:" >&5
1546 cat conftest.$ac_ext >&5
1548 eval "ac_cv_lib_$ac_lib_var=no"
1551 LIBS="$ac_save_LIBS"
1554 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1555 echo "$ac_t""yes" 1>&6
1556 ac_tr_lib=HAVE_LIB`echo rt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1557 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1558 cat >> confdefs.h <<EOF
1559 #define $ac_tr_lib 1
1565 echo "$ac_t""no" 1>&6
1566 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
1567 echo "configure:1568: checking for nanosleep in -lposix4" >&5
1568 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
1569 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1570 echo $ac_n "(cached) $ac_c" 1>&6
1572 ac_save_LIBS="$LIBS"
1573 LIBS="-lposix4 $LIBS"
1574 cat > conftest.$ac_ext <<EOF
1575 #line 1576 "configure"
1576 #include "confdefs.h"
1577 /* Override any gcc2 internal prototype to avoid an error. */
1578 /* We use char because int might match the return type of a gcc2
1579 builtin and then its argument prototype would still apply. */
1586 if { (eval echo configure:1587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1588 eval "ac_cv_lib_$ac_lib_var=yes"
1590 echo "configure: failed program was:" >&5
1591 cat conftest.$ac_ext >&5
1593 eval "ac_cv_lib_$ac_lib_var=no"
1596 LIBS="$ac_save_LIBS"
1599 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1600 echo "$ac_t""yes" 1>&6
1601 ac_tr_lib=HAVE_LIB`echo posix4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1602 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1603 cat >> confdefs.h <<EOF
1604 #define $ac_tr_lib 1
1607 LIBS="-lposix4 $LIBS"
1610 echo "$ac_t""no" 1>&6
1617 for ac_func in usleep
1619 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1620 echo "configure:1621: checking for $ac_func" >&5
1621 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1622 echo $ac_n "(cached) $ac_c" 1>&6
1624 cat > conftest.$ac_ext <<EOF
1625 #line 1626 "configure"
1626 #include "confdefs.h"
1627 /* System header to define __stub macros and hopefully few prototypes,
1628 which can conflict with char $ac_func(); below. */
1630 /* Override any gcc2 internal prototype to avoid an error. */
1631 /* We use char because int might match the return type of a gcc2
1632 builtin and then its argument prototype would still apply. */
1637 /* The GNU C library defines this for functions which it implements
1638 to always fail with ENOSYS. Some functions are actually named
1639 something starting with __ and the normal name is an alias. */
1640 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1648 if { (eval echo configure:1649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1650 eval "ac_cv_func_$ac_func=yes"
1652 echo "configure: failed program was:" >&5
1653 cat conftest.$ac_ext >&5
1655 eval "ac_cv_func_$ac_func=no"
1660 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1661 echo "$ac_t""yes" 1>&6
1662 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1663 cat >> confdefs.h <<EOF
1664 #define $ac_tr_func 1
1668 echo "$ac_t""no" 1>&6
1672 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
1673 echo "configure:1674: checking for inet_aton" >&5
1674 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
1675 echo $ac_n "(cached) $ac_c" 1>&6
1677 cat > conftest.$ac_ext <<EOF
1678 #line 1679 "configure"
1679 #include "confdefs.h"
1680 /* System header to define __stub macros and hopefully few prototypes,
1681 which can conflict with char inet_aton(); below. */
1683 /* Override any gcc2 internal prototype to avoid an error. */
1684 /* We use char because int might match the return type of a gcc2
1685 builtin and then its argument prototype would still apply. */
1690 /* The GNU C library defines this for functions which it implements
1691 to always fail with ENOSYS. Some functions are actually named
1692 something starting with __ and the normal name is an alias. */
1693 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
1701 if { (eval echo configure:1702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1703 eval "ac_cv_func_inet_aton=yes"
1705 echo "configure: failed program was:" >&5
1706 cat conftest.$ac_ext >&5
1708 eval "ac_cv_func_inet_aton=no"
1713 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
1714 echo "$ac_t""yes" 1>&6
1717 echo "$ac_t""no" 1>&6
1718 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
1719 echo "configure:1720: checking for inet_aton in -lresolv" >&5
1720 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
1721 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1722 echo $ac_n "(cached) $ac_c" 1>&6
1724 ac_save_LIBS="$LIBS"
1725 LIBS="-lresolv $LIBS"
1726 cat > conftest.$ac_ext <<EOF
1727 #line 1728 "configure"
1728 #include "confdefs.h"
1729 /* Override any gcc2 internal prototype to avoid an error. */
1730 /* We use char because int might match the return type of a gcc2
1731 builtin and then its argument prototype would still apply. */
1738 if { (eval echo configure:1739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1740 eval "ac_cv_lib_$ac_lib_var=yes"
1742 echo "configure: failed program was:" >&5
1743 cat conftest.$ac_ext >&5
1745 eval "ac_cv_lib_$ac_lib_var=no"
1748 LIBS="$ac_save_LIBS"
1751 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1752 echo "$ac_t""yes" 1>&6
1753 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1754 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1755 cat >> confdefs.h <<EOF
1756 #define $ac_tr_lib 1
1759 LIBS="-lresolv $LIBS"
1762 echo "$ac_t""no" 1>&6
1767 for ac_func in vasprintf
1769 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1770 echo "configure:1771: checking for $ac_func" >&5
1771 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1772 echo $ac_n "(cached) $ac_c" 1>&6
1774 cat > conftest.$ac_ext <<EOF
1775 #line 1776 "configure"
1776 #include "confdefs.h"
1777 /* System header to define __stub macros and hopefully few prototypes,
1778 which can conflict with char $ac_func(); below. */
1780 /* Override any gcc2 internal prototype to avoid an error. */
1781 /* We use char because int might match the return type of a gcc2
1782 builtin and then its argument prototype would still apply. */
1787 /* The GNU C library defines this for functions which it implements
1788 to always fail with ENOSYS. Some functions are actually named
1789 something starting with __ and the normal name is an alias. */
1790 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1798 if { (eval echo configure:1799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1800 eval "ac_cv_func_$ac_func=yes"
1802 echo "configure: failed program was:" >&5
1803 cat conftest.$ac_ext >&5
1805 eval "ac_cv_func_$ac_func=no"
1810 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1811 echo "$ac_t""yes" 1>&6
1812 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1813 cat >> confdefs.h <<EOF
1814 #define $ac_tr_func 1
1818 echo "$ac_t""no" 1>&6
1822 for ac_hdr in unistd.h
1824 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1825 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1826 echo "configure:1827: checking for $ac_hdr" >&5
1827 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1828 echo $ac_n "(cached) $ac_c" 1>&6
1830 cat > conftest.$ac_ext <<EOF
1831 #line 1832 "configure"
1832 #include "confdefs.h"
1835 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1836 { (eval echo configure:1837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1837 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1838 if test -z "$ac_err"; then
1840 eval "ac_cv_header_$ac_safe=yes"
1843 echo "configure: failed program was:" >&5
1844 cat conftest.$ac_ext >&5
1846 eval "ac_cv_header_$ac_safe=no"
1850 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1851 echo "$ac_t""yes" 1>&6
1852 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1853 cat >> confdefs.h <<EOF
1854 #define $ac_tr_hdr 1
1858 echo "$ac_t""no" 1>&6
1862 for ac_func in getpagesize
1864 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1865 echo "configure:1866: checking for $ac_func" >&5
1866 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1867 echo $ac_n "(cached) $ac_c" 1>&6
1869 cat > conftest.$ac_ext <<EOF
1870 #line 1871 "configure"
1871 #include "confdefs.h"
1872 /* System header to define __stub macros and hopefully few prototypes,
1873 which can conflict with char $ac_func(); below. */
1875 /* Override any gcc2 internal prototype to avoid an error. */
1876 /* We use char because int might match the return type of a gcc2
1877 builtin and then its argument prototype would still apply. */
1882 /* The GNU C library defines this for functions which it implements
1883 to always fail with ENOSYS. Some functions are actually named
1884 something starting with __ and the normal name is an alias. */
1885 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1893 if { (eval echo configure:1894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1895 eval "ac_cv_func_$ac_func=yes"
1897 echo "configure: failed program was:" >&5
1898 cat conftest.$ac_ext >&5
1900 eval "ac_cv_func_$ac_func=no"
1905 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1906 echo "$ac_t""yes" 1>&6
1907 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1908 cat >> confdefs.h <<EOF
1909 #define $ac_tr_func 1
1913 echo "$ac_t""no" 1>&6
1917 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1918 echo "configure:1919: checking for working mmap" >&5
1919 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1920 echo $ac_n "(cached) $ac_c" 1>&6
1922 if test "$cross_compiling" = yes; then
1923 ac_cv_func_mmap_fixed_mapped=no
1925 cat > conftest.$ac_ext <<EOF
1926 #line 1927 "configure"
1927 #include "confdefs.h"
1929 /* Thanks to Mike Haertel and Jim Avera for this test.
1930 Here is a matrix of mmap possibilities:
1931 mmap private not fixed
1932 mmap private fixed at somewhere currently unmapped
1933 mmap private fixed at somewhere already mapped
1934 mmap shared not fixed
1935 mmap shared fixed at somewhere currently unmapped
1936 mmap shared fixed at somewhere already mapped
1937 For private mappings, we should verify that changes cannot be read()
1938 back from the file, nor mmap's back from the file at a different
1939 address. (There have been systems where private was not correctly
1940 implemented like the infamous i386 svr4.0, and systems where the
1941 VM page cache was not coherent with the filesystem buffer cache
1942 like early versions of FreeBSD and possibly contemporary NetBSD.)
1943 For shared mappings, we should conversely verify that changes get
1944 propogated back to all the places they're supposed to be.
1946 Grep wants private fixed already mapped.
1947 The main things grep needs to know about mmap are:
1948 * does it exist and is it safe to write into the mmap'd area
1949 * how to use it (BSD variants) */
1950 #include <sys/types.h>
1952 #include <sys/mman.h>
1954 #include <sys/stat.h>
1956 #ifdef HAVE_UNISTD_H
1957 # include <unistd.h>
1960 /* This mess was copied from the GNU getpagesize.h. */
1961 #ifndef HAVE_GETPAGESIZE
1963 /* Assume that all systems that can run configure have sys/param.h. */
1964 # ifndef HAVE_SYS_PARAM_H
1965 # define HAVE_SYS_PARAM_H 1
1968 # ifdef _SC_PAGESIZE
1969 # define getpagesize() sysconf(_SC_PAGESIZE)
1970 # else /* no _SC_PAGESIZE */
1971 # ifdef HAVE_SYS_PARAM_H
1972 # include <sys/param.h>
1973 # ifdef EXEC_PAGESIZE
1974 # define getpagesize() EXEC_PAGESIZE
1975 # else /* no EXEC_PAGESIZE */
1977 # define getpagesize() NBPG * CLSIZE
1980 # endif /* no CLSIZE */
1981 # else /* no NBPG */
1983 # define getpagesize() NBPC
1984 # else /* no NBPC */
1986 # define getpagesize() PAGESIZE
1987 # endif /* PAGESIZE */
1988 # endif /* no NBPC */
1989 # endif /* no NBPG */
1990 # endif /* no EXEC_PAGESIZE */
1991 # else /* no HAVE_SYS_PARAM_H */
1992 # define getpagesize() 8192 /* punt totally */
1993 # endif /* no HAVE_SYS_PARAM_H */
1994 # endif /* no _SC_PAGESIZE */
1996 #endif /* no HAVE_GETPAGESIZE */
1999 extern "C" { void *malloc(unsigned); }
2007 char *data, *data2, *data3;
2011 pagesize = getpagesize();
2014 * First, make a file with some known garbage in it.
2016 data = (char*)malloc(pagesize);
2019 for (i = 0; i < pagesize; ++i)
2020 *(data + i) = rand();
2022 fd = creat("conftestmmap", 0600);
2025 if (write(fd, data, pagesize) != pagesize)
2030 * Next, try to mmap the file at a fixed address which
2031 * already has something else allocated at it. If we can,
2032 * also make sure that we see the same garbage.
2034 fd = open("conftestmmap", O_RDWR);
2037 data2 = (char*)malloc(2 * pagesize);
2040 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2041 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2042 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2044 for (i = 0; i < pagesize; ++i)
2045 if (*(data + i) != *(data2 + i))
2049 * Finally, make sure that changes to the mapped area
2050 * do not percolate back to the file as seen by read().
2051 * (This is a bug on some variants of i386 svr4.0.)
2053 for (i = 0; i < pagesize; ++i)
2054 *(data2 + i) = *(data2 + i) + 1;
2055 data3 = (char*)malloc(pagesize);
2058 if (read(fd, data3, pagesize) != pagesize)
2060 for (i = 0; i < pagesize; ++i)
2061 if (*(data + i) != *(data3 + i))
2064 unlink("conftestmmap");
2069 if { (eval echo configure:2070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2071 ac_cv_func_mmap_fixed_mapped=yes
2073 echo "configure: failed program was:" >&5
2074 cat conftest.$ac_ext >&5
2076 ac_cv_func_mmap_fixed_mapped=no
2083 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2084 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2085 cat >> confdefs.h <<\EOF
2091 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2092 echo "configure:2093: checking return type of signal handlers" >&5
2093 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2094 echo $ac_n "(cached) $ac_c" 1>&6
2096 cat > conftest.$ac_ext <<EOF
2097 #line 2098 "configure"
2098 #include "confdefs.h"
2099 #include <sys/types.h>
2105 extern "C" void (*signal (int, void (*)(int)))(int);
2107 void (*signal ()) ();
2114 if { (eval echo configure:2115: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2116 ac_cv_type_signal=void
2118 echo "configure: failed program was:" >&5
2119 cat conftest.$ac_ext >&5
2121 ac_cv_type_signal=int
2126 echo "$ac_t""$ac_cv_type_signal" 1>&6
2127 cat >> confdefs.h <<EOF
2128 #define RETSIGTYPE $ac_cv_type_signal
2132 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2133 echo "configure:2134: checking for dlopen in -ldl" >&5
2134 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2135 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2136 echo $ac_n "(cached) $ac_c" 1>&6
2138 ac_save_LIBS="$LIBS"
2140 cat > conftest.$ac_ext <<EOF
2141 #line 2142 "configure"
2142 #include "confdefs.h"
2143 /* Override any gcc2 internal prototype to avoid an error. */
2144 /* We use char because int might match the return type of a gcc2
2145 builtin and then its argument prototype would still apply. */
2152 if { (eval echo configure:2153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2154 eval "ac_cv_lib_$ac_lib_var=yes"
2156 echo "configure: failed program was:" >&5
2157 cat conftest.$ac_ext >&5
2159 eval "ac_cv_lib_$ac_lib_var=no"
2162 LIBS="$ac_save_LIBS"
2165 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2166 echo "$ac_t""yes" 1>&6
2167 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2168 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2169 cat >> confdefs.h <<EOF
2170 #define $ac_tr_lib 1
2176 echo "$ac_t""no" 1>&6
2179 echo $ac_n "checking for optarg in -lgnugetopt""... $ac_c" 1>&6
2180 echo "configure:2181: checking for optarg in -lgnugetopt" >&5
2181 ac_lib_var=`echo gnugetopt'_'optarg | sed 'y%./+-%__p_%'`
2182 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2183 echo $ac_n "(cached) $ac_c" 1>&6
2185 ac_save_LIBS="$LIBS"
2186 LIBS="-lgnugetopt $LIBS"
2187 cat > conftest.$ac_ext <<EOF
2188 #line 2189 "configure"
2189 #include "confdefs.h"
2190 /* Override any gcc2 internal prototype to avoid an error. */
2191 /* We use char because int might match the return type of a gcc2
2192 builtin and then its argument prototype would still apply. */
2199 if { (eval echo configure:2200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2201 eval "ac_cv_lib_$ac_lib_var=yes"
2203 echo "configure: failed program was:" >&5
2204 cat conftest.$ac_ext >&5
2206 eval "ac_cv_lib_$ac_lib_var=no"
2209 LIBS="$ac_save_LIBS"
2212 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2213 echo "$ac_t""yes" 1>&6
2214 ac_tr_lib=HAVE_LIB`echo gnugetopt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2215 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2216 cat >> confdefs.h <<EOF
2217 #define $ac_tr_lib 1
2220 LIBS="-lgnugetopt $LIBS"
2223 echo "$ac_t""no" 1>&6
2226 echo $ac_n "checking for _ in -lbe""... $ac_c" 1>&6
2227 echo "configure:2228: checking for _ in -lbe" >&5
2228 ac_lib_var=`echo be'_'_ | sed 'y%./+-%__p_%'`
2229 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2230 echo $ac_n "(cached) $ac_c" 1>&6
2232 ac_save_LIBS="$LIBS"
2234 cat > conftest.$ac_ext <<EOF
2235 #line 2236 "configure"
2236 #include "confdefs.h"
2237 /* Override any gcc2 internal prototype to avoid an error. */
2238 /* We use char because int might match the return type of a gcc2
2239 builtin and then its argument prototype would still apply. */
2246 if { (eval echo configure:2247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2248 eval "ac_cv_lib_$ac_lib_var=yes"
2250 echo "configure: failed program was:" >&5
2251 cat conftest.$ac_ext >&5
2253 eval "ac_cv_lib_$ac_lib_var=no"
2256 LIBS="$ac_save_LIBS"
2259 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2260 echo "$ac_t""yes" 1>&6
2261 ac_tr_lib=HAVE_LIB`echo be | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2262 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2263 cat >> confdefs.h <<EOF
2264 #define $ac_tr_lib 1
2270 echo "$ac_t""no" 1>&6
2273 echo $ac_n "checking for _ in -lgame""... $ac_c" 1>&6
2274 echo "configure:2275: checking for _ in -lgame" >&5
2275 ac_lib_var=`echo game'_'_ | sed 'y%./+-%__p_%'`
2276 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2277 echo $ac_n "(cached) $ac_c" 1>&6
2279 ac_save_LIBS="$LIBS"
2281 cat > conftest.$ac_ext <<EOF
2282 #line 2283 "configure"
2283 #include "confdefs.h"
2284 /* Override any gcc2 internal prototype to avoid an error. */
2285 /* We use char because int might match the return type of a gcc2
2286 builtin and then its argument prototype would still apply. */
2293 if { (eval echo configure:2294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2295 eval "ac_cv_lib_$ac_lib_var=yes"
2297 echo "configure: failed program was:" >&5
2298 cat conftest.$ac_ext >&5
2300 eval "ac_cv_lib_$ac_lib_var=no"
2303 LIBS="$ac_save_LIBS"
2306 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2307 echo "$ac_t""yes" 1>&6
2308 ac_tr_lib=HAVE_LIB`echo game | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2309 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2310 cat >> confdefs.h <<EOF
2311 #define $ac_tr_lib 1
2317 echo "$ac_t""no" 1>&6
2320 echo $ac_n "checking for _ in -lroot""... $ac_c" 1>&6
2321 echo "configure:2322: checking for _ in -lroot" >&5
2322 ac_lib_var=`echo root'_'_ | sed 'y%./+-%__p_%'`
2323 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2324 echo $ac_n "(cached) $ac_c" 1>&6
2326 ac_save_LIBS="$LIBS"
2328 cat > conftest.$ac_ext <<EOF
2329 #line 2330 "configure"
2330 #include "confdefs.h"
2331 /* Override any gcc2 internal prototype to avoid an error. */
2332 /* We use char because int might match the return type of a gcc2
2333 builtin and then its argument prototype would still apply. */
2340 if { (eval echo configure:2341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2342 eval "ac_cv_lib_$ac_lib_var=yes"
2344 echo "configure: failed program was:" >&5
2345 cat conftest.$ac_ext >&5
2347 eval "ac_cv_lib_$ac_lib_var=no"
2350 LIBS="$ac_save_LIBS"
2353 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2354 echo "$ac_t""yes" 1>&6
2355 ac_tr_lib=HAVE_LIB`echo root | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2356 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2357 cat >> confdefs.h <<EOF
2358 #define $ac_tr_lib 1
2364 echo "$ac_t""no" 1>&6
2367 echo $ac_n "checking for powl in -lm""... $ac_c" 1>&6
2368 echo "configure:2369: checking for powl in -lm" >&5
2369 ac_lib_var=`echo m'_'powl | sed 'y%./+-%__p_%'`
2370 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2371 echo $ac_n "(cached) $ac_c" 1>&6
2373 ac_save_LIBS="$LIBS"
2375 cat > conftest.$ac_ext <<EOF
2376 #line 2377 "configure"
2377 #include "confdefs.h"
2378 /* Override any gcc2 internal prototype to avoid an error. */
2379 /* We use char because int might match the return type of a gcc2
2380 builtin and then its argument prototype would still apply. */
2387 if { (eval echo configure:2388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2389 eval "ac_cv_lib_$ac_lib_var=yes"
2391 echo "configure: failed program was:" >&5
2392 cat conftest.$ac_ext >&5
2394 eval "ac_cv_lib_$ac_lib_var=no"
2397 LIBS="$ac_save_LIBS"
2400 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2401 echo "$ac_t""yes" 1>&6
2402 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2403 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2404 cat >> confdefs.h <<EOF
2405 #define $ac_tr_lib 1
2411 echo "$ac_t""no" 1>&6
2414 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
2415 echo "configure:2416: checking for pthread_create in -lpthread" >&5
2416 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
2417 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2418 echo $ac_n "(cached) $ac_c" 1>&6
2420 ac_save_LIBS="$LIBS"
2421 LIBS="-lpthread $LIBS"
2422 cat > conftest.$ac_ext <<EOF
2423 #line 2424 "configure"
2424 #include "confdefs.h"
2425 /* Override any gcc2 internal prototype to avoid an error. */
2426 /* We use char because int might match the return type of a gcc2
2427 builtin and then its argument prototype would still apply. */
2428 char pthread_create();
2434 if { (eval echo configure:2435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2436 eval "ac_cv_lib_$ac_lib_var=yes"
2438 echo "configure: failed program was:" >&5
2439 cat conftest.$ac_ext >&5
2441 eval "ac_cv_lib_$ac_lib_var=no"
2444 LIBS="$ac_save_LIBS"
2447 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2448 echo "$ac_t""yes" 1>&6
2449 ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2450 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2451 cat >> confdefs.h <<EOF
2452 #define $ac_tr_lib 1
2455 LIBS="-lpthread $LIBS"
2458 echo "$ac_t""no" 1>&6
2461 echo $ac_n "checking for thread_create in -lthreads""... $ac_c" 1>&6
2462 echo "configure:2463: checking for thread_create in -lthreads" >&5
2463 ac_lib_var=`echo threads'_'thread_create | sed 'y%./+-%__p_%'`
2464 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2465 echo $ac_n "(cached) $ac_c" 1>&6
2467 ac_save_LIBS="$LIBS"
2468 LIBS="-lthreads $LIBS"
2469 cat > conftest.$ac_ext <<EOF
2470 #line 2471 "configure"
2471 #include "confdefs.h"
2472 /* Override any gcc2 internal prototype to avoid an error. */
2473 /* We use char because int might match the return type of a gcc2
2474 builtin and then its argument prototype would still apply. */
2475 char thread_create();
2481 if { (eval echo configure:2482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2483 eval "ac_cv_lib_$ac_lib_var=yes"
2485 echo "configure: failed program was:" >&5
2486 cat conftest.$ac_ext >&5
2488 eval "ac_cv_lib_$ac_lib_var=no"
2491 LIBS="$ac_save_LIBS"
2494 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2495 echo "$ac_t""yes" 1>&6
2496 ac_tr_lib=HAVE_LIB`echo threads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2497 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2498 cat >> confdefs.h <<EOF
2499 #define $ac_tr_lib 1
2502 LIBS="-lthreads $LIBS"
2505 echo "$ac_t""no" 1>&6
2509 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
2510 echo "configure:2511: checking for getopt_long" >&5
2511 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
2512 echo $ac_n "(cached) $ac_c" 1>&6
2514 cat > conftest.$ac_ext <<EOF
2515 #line 2516 "configure"
2516 #include "confdefs.h"
2517 /* System header to define __stub macros and hopefully few prototypes,
2518 which can conflict with char getopt_long(); below. */
2520 /* Override any gcc2 internal prototype to avoid an error. */
2521 /* We use char because int might match the return type of a gcc2
2522 builtin and then its argument prototype would still apply. */
2527 /* The GNU C library defines this for functions which it implements
2528 to always fail with ENOSYS. Some functions are actually named
2529 something starting with __ and the normal name is an alias. */
2530 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
2538 if { (eval echo configure:2539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2540 eval "ac_cv_func_getopt_long=yes"
2542 echo "configure: failed program was:" >&5
2543 cat conftest.$ac_ext >&5
2545 eval "ac_cv_func_getopt_long=no"
2550 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
2551 echo "$ac_t""yes" 1>&6
2554 echo "$ac_t""no" 1>&6
2555 LIBOBJS="$LIBOBJS getopt.o getopt1.o"
2560 CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
2561 for ac_hdr in stddef.h
2563 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2564 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2565 echo "configure:2566: checking for $ac_hdr" >&5
2566 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2567 echo $ac_n "(cached) $ac_c" 1>&6
2569 cat > conftest.$ac_ext <<EOF
2570 #line 2571 "configure"
2571 #include "confdefs.h"
2574 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2575 { (eval echo configure:2576: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2576 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2577 if test -z "$ac_err"; then
2579 eval "ac_cv_header_$ac_safe=yes"
2582 echo "configure: failed program was:" >&5
2583 cat conftest.$ac_ext >&5
2585 eval "ac_cv_header_$ac_safe=no"
2589 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2590 echo "$ac_t""yes" 1>&6
2591 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2592 cat >> confdefs.h <<EOF
2593 #define $ac_tr_hdr 1
2597 echo "$ac_t""no" 1>&6
2601 for ac_hdr in getopt.h
2603 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2604 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2605 echo "configure:2606: checking for $ac_hdr" >&5
2606 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2607 echo $ac_n "(cached) $ac_c" 1>&6
2609 cat > conftest.$ac_ext <<EOF
2610 #line 2611 "configure"
2611 #include "confdefs.h"
2614 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2615 { (eval echo configure:2616: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2616 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2617 if test -z "$ac_err"; then
2619 eval "ac_cv_header_$ac_safe=yes"
2622 echo "configure: failed program was:" >&5
2623 cat conftest.$ac_ext >&5
2625 eval "ac_cv_header_$ac_safe=no"
2629 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2630 echo "$ac_t""yes" 1>&6
2631 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2632 cat >> confdefs.h <<EOF
2633 #define $ac_tr_hdr 1
2637 echo "$ac_t""no" 1>&6
2641 for ac_hdr in sys/sockio.h
2643 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2644 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2645 echo "configure:2646: checking for $ac_hdr" >&5
2646 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2647 echo $ac_n "(cached) $ac_c" 1>&6
2649 cat > conftest.$ac_ext <<EOF
2650 #line 2651 "configure"
2651 #include "confdefs.h"
2654 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2655 { (eval echo configure:2656: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2656 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2657 if test -z "$ac_err"; then
2659 eval "ac_cv_header_$ac_safe=yes"
2662 echo "configure: failed program was:" >&5
2663 cat conftest.$ac_ext >&5
2665 eval "ac_cv_header_$ac_safe=no"
2669 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2670 echo "$ac_t""yes" 1>&6
2671 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2672 cat >> confdefs.h <<EOF
2673 #define $ac_tr_hdr 1
2677 echo "$ac_t""no" 1>&6
2681 for ac_hdr in fcntl.h sys/ioctl.h sys/time.h unistd.h
2683 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2684 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2685 echo "configure:2686: checking for $ac_hdr" >&5
2686 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2687 echo $ac_n "(cached) $ac_c" 1>&6
2689 cat > conftest.$ac_ext <<EOF
2690 #line 2691 "configure"
2691 #include "confdefs.h"
2694 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2695 { (eval echo configure:2696: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2696 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2697 if test -z "$ac_err"; then
2699 eval "ac_cv_header_$ac_safe=yes"
2702 echo "configure: failed program was:" >&5
2703 cat conftest.$ac_ext >&5
2705 eval "ac_cv_header_$ac_safe=no"
2709 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2710 echo "$ac_t""yes" 1>&6
2711 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2712 cat >> confdefs.h <<EOF
2713 #define $ac_tr_hdr 1
2717 echo "$ac_t""no" 1>&6
2721 for ac_hdr in sys/soundcard.h machine/soundcard.h
2723 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2724 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2725 echo "configure:2726: checking for $ac_hdr" >&5
2726 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2727 echo $ac_n "(cached) $ac_c" 1>&6
2729 cat > conftest.$ac_ext <<EOF
2730 #line 2731 "configure"
2731 #include "confdefs.h"
2734 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2735 { (eval echo configure:2736: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2736 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2737 if test -z "$ac_err"; then
2739 eval "ac_cv_header_$ac_safe=yes"
2742 echo "configure: failed program was:" >&5
2743 cat conftest.$ac_ext >&5
2745 eval "ac_cv_header_$ac_safe=no"
2749 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2750 echo "$ac_t""yes" 1>&6
2751 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2752 cat >> confdefs.h <<EOF
2753 #define $ac_tr_hdr 1
2757 echo "$ac_t""no" 1>&6
2761 for ac_hdr in dlfcn.h image.h
2763 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2764 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2765 echo "configure:2766: checking for $ac_hdr" >&5
2766 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2767 echo $ac_n "(cached) $ac_c" 1>&6
2769 cat > conftest.$ac_ext <<EOF
2770 #line 2771 "configure"
2771 #include "confdefs.h"
2774 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2775 { (eval echo configure:2776: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2776 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2777 if test -z "$ac_err"; then
2779 eval "ac_cv_header_$ac_safe=yes"
2782 echo "configure: failed program was:" >&5
2783 cat conftest.$ac_ext >&5
2785 eval "ac_cv_header_$ac_safe=no"
2789 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2790 echo "$ac_t""yes" 1>&6
2791 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2792 cat >> confdefs.h <<EOF
2793 #define $ac_tr_hdr 1
2797 echo "$ac_t""no" 1>&6
2801 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
2803 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2804 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2805 echo "configure:2806: checking for $ac_hdr" >&5
2806 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2807 echo $ac_n "(cached) $ac_c" 1>&6
2809 cat > conftest.$ac_ext <<EOF
2810 #line 2811 "configure"
2811 #include "confdefs.h"
2814 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2815 { (eval echo configure:2816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2816 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2817 if test -z "$ac_err"; then
2819 eval "ac_cv_header_$ac_safe=yes"
2822 echo "configure: failed program was:" >&5
2823 cat conftest.$ac_ext >&5
2825 eval "ac_cv_header_$ac_safe=no"
2829 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2830 echo "$ac_t""yes" 1>&6
2831 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2832 cat >> confdefs.h <<EOF
2833 #define $ac_tr_hdr 1
2837 echo "$ac_t""no" 1>&6
2841 for ac_hdr in machine/param.h
2843 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2844 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2845 echo "configure:2846: checking for $ac_hdr" >&5
2846 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2847 echo $ac_n "(cached) $ac_c" 1>&6
2849 cat > conftest.$ac_ext <<EOF
2850 #line 2851 "configure"
2851 #include "confdefs.h"
2854 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2855 { (eval echo configure:2856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2856 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2857 if test -z "$ac_err"; then
2859 eval "ac_cv_header_$ac_safe=yes"
2862 echo "configure: failed program was:" >&5
2863 cat conftest.$ac_ext >&5
2865 eval "ac_cv_header_$ac_safe=no"
2869 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2870 echo "$ac_t""yes" 1>&6
2871 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2872 cat >> confdefs.h <<EOF
2873 #define $ac_tr_hdr 1
2877 echo "$ac_t""no" 1>&6
2882 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
2884 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2885 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2886 echo "configure:2887: checking for $ac_hdr" >&5
2887 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2888 echo $ac_n "(cached) $ac_c" 1>&6
2890 cat > conftest.$ac_ext <<EOF
2891 #line 2892 "configure"
2892 #include "confdefs.h"
2895 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2896 { (eval echo configure:2897: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2897 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2898 if test -z "$ac_err"; then
2900 eval "ac_cv_header_$ac_safe=yes"
2903 echo "configure: failed program was:" >&5
2904 cat conftest.$ac_ext >&5
2906 eval "ac_cv_header_$ac_safe=no"
2910 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2911 echo "$ac_t""yes" 1>&6
2912 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2913 cat >> confdefs.h <<EOF
2914 #define $ac_tr_hdr 1
2918 echo "$ac_t""no" 1>&6
2925 CFLAGS="${CFLAGS} -Wall -Werror"
2926 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
2927 echo "configure:2928: checking for ntohl in sys/param.h" >&5
2928 cat > conftest.$ac_ext <<EOF
2929 #line 2930 "configure"
2930 #include "confdefs.h"
2931 #include <sys/param.h>
2932 void foo() { int meuh; ntohl(meuh); }
2937 if { (eval echo configure:2938: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2939 cat >> confdefs.h <<\EOF
2940 #define NTOHL_IN_SYS_PARAM_H 1
2943 echo "$ac_t""yes" 1>&6
2945 echo "configure: failed program was:" >&5
2946 cat conftest.$ac_ext >&5
2948 echo "$ac_t""no" 1>&6
2952 CFLAGS="${CFLAGS} -fargument-noalias-global -fstrict-aliasing"
2953 echo $ac_n "checking if \$CC accepts -fargument-noalias-global -fstrict-aliasing""... $ac_c" 1>&6
2954 echo "configure:2955: checking if \$CC accepts -fargument-noalias-global -fstrict-aliasing" >&5
2955 cat > conftest.$ac_ext <<EOF
2956 #line 2957 "configure"
2957 #include "confdefs.h"
2963 if { (eval echo configure:2964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2965 BIZARRE_OPTIMS="-fargument-noalias-global -fstrict-aliasing"
2966 echo "$ac_t""yes" 1>&6
2968 echo "configure: failed program was:" >&5
2969 cat conftest.$ac_ext >&5
2971 echo "$ac_t""no" 1>&6
2975 CFLAGS="${CFLAGS} -rdynamic"
2976 echo $ac_n "checking if \$CC accepts -rdynamic""... $ac_c" 1>&6
2977 echo "configure:2978: checking if \$CC accepts -rdynamic" >&5
2978 cat > conftest.$ac_ext <<EOF
2979 #line 2980 "configure"
2980 #include "confdefs.h"
2986 if { (eval echo configure:2987: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2988 DYNAMIC_FLAG="-rdynamic"
2989 echo "$ac_t""yes" 1>&6
2991 echo "configure: failed program was:" >&5
2992 cat conftest.$ac_ext >&5
2994 echo "$ac_t""no" 1>&6
3000 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
3001 echo "configure:3002: checking for boolean_t in sys/types.h" >&5
3002 cat > conftest.$ac_ext <<EOF
3003 #line 3004 "configure"
3004 #include "confdefs.h"
3005 #include <sys/types.h>
3006 void quux() { boolean_t foo; }
3011 if { (eval echo configure:3012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3013 cat >> confdefs.h <<\EOF
3014 #define BOOLEAN_T_IN_SYS_TYPES_H 1
3017 echo "$ac_t""yes" 1>&6
3019 echo "configure: failed program was:" >&5
3020 cat conftest.$ac_ext >&5
3022 echo "$ac_t""no" 1>&6
3026 echo $ac_n "checking for working const""... $ac_c" 1>&6
3027 echo "configure:3028: checking for working const" >&5
3028 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3029 echo $ac_n "(cached) $ac_c" 1>&6
3031 cat > conftest.$ac_ext <<EOF
3032 #line 3033 "configure"
3033 #include "confdefs.h"
3037 /* Ultrix mips cc rejects this. */
3038 typedef int charset[2]; const charset x = {0,0};
3039 /* SunOS 4.1.1 cc rejects this. */
3040 char const *const *ccp;
3042 /* NEC SVR4.0.2 mips cc rejects this. */
3043 struct point {int x, y;};
3044 static struct point const zero = {0,0};
3045 /* AIX XL C 1.02.0.0 rejects this.
3046 It does not let you subtract one const X* pointer from another in an arm
3047 of an if-expression whose if-part is not a constant expression */
3048 const char *g = "string";
3049 ccp = &g + (g ? g-g : 0);
3050 /* HPUX 7.0 cc rejects these. */
3053 ccp = (char const *const *) p;
3054 { /* SCO 3.2v4 cc rejects this. */
3056 char const *s = 0 ? (char *) 0 : (char const *) 0;
3060 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3062 const int *foo = &x[0];
3065 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3066 typedef const int *iptr;
3070 { /* AIX XL C 1.02.0.0 rejects this saying
3071 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3072 struct s { int j; const int *ap[3]; };
3073 struct s *b; b->j = 5;
3075 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3081 if { (eval echo configure:3082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3085 echo "configure: failed program was:" >&5
3086 cat conftest.$ac_ext >&5
3093 echo "$ac_t""$ac_cv_c_const" 1>&6
3094 if test $ac_cv_c_const = no; then
3095 cat >> confdefs.h <<\EOF
3101 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3102 echo "configure:3103: checking for ANSI C header files" >&5
3103 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3104 echo $ac_n "(cached) $ac_c" 1>&6
3106 cat > conftest.$ac_ext <<EOF
3107 #line 3108 "configure"
3108 #include "confdefs.h"
3114 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3115 { (eval echo configure:3116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3116 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3117 if test -z "$ac_err"; then
3119 ac_cv_header_stdc=yes
3122 echo "configure: failed program was:" >&5
3123 cat conftest.$ac_ext >&5
3125 ac_cv_header_stdc=no
3129 if test $ac_cv_header_stdc = yes; then
3130 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3131 cat > conftest.$ac_ext <<EOF
3132 #line 3133 "configure"
3133 #include "confdefs.h"
3136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3137 egrep "memchr" >/dev/null 2>&1; then
3141 ac_cv_header_stdc=no
3147 if test $ac_cv_header_stdc = yes; then
3148 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3149 cat > conftest.$ac_ext <<EOF
3150 #line 3151 "configure"
3151 #include "confdefs.h"
3154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3155 egrep "free" >/dev/null 2>&1; then
3159 ac_cv_header_stdc=no
3165 if test $ac_cv_header_stdc = yes; then
3166 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3167 if test "$cross_compiling" = yes; then
3170 cat > conftest.$ac_ext <<EOF
3171 #line 3172 "configure"
3172 #include "confdefs.h"
3174 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3175 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3176 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3177 int main () { int i; for (i = 0; i < 256; i++)
3178 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3182 if { (eval echo configure:3183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3186 echo "configure: failed program was:" >&5
3187 cat conftest.$ac_ext >&5
3189 ac_cv_header_stdc=no
3197 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3198 if test $ac_cv_header_stdc = yes; then
3199 cat >> confdefs.h <<\EOF
3200 #define STDC_HEADERS 1
3205 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3206 echo "configure:3207: checking for size_t" >&5
3207 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3208 echo $ac_n "(cached) $ac_c" 1>&6
3210 cat > conftest.$ac_ext <<EOF
3211 #line 3212 "configure"
3212 #include "confdefs.h"
3213 #include <sys/types.h>
3219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3220 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3222 ac_cv_type_size_t=yes
3225 ac_cv_type_size_t=no
3230 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3231 if test $ac_cv_type_size_t = no; then
3232 cat >> confdefs.h <<\EOF
3233 #define size_t unsigned
3238 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3239 echo "configure:3240: checking whether time.h and sys/time.h may both be included" >&5
3240 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3241 echo $ac_n "(cached) $ac_c" 1>&6
3243 cat > conftest.$ac_ext <<EOF
3244 #line 3245 "configure"
3245 #include "confdefs.h"
3246 #include <sys/types.h>
3247 #include <sys/time.h>
3253 if { (eval echo configure:3254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3255 ac_cv_header_time=yes
3257 echo "configure: failed program was:" >&5
3258 cat conftest.$ac_ext >&5
3260 ac_cv_header_time=no
3265 echo "$ac_t""$ac_cv_header_time" 1>&6
3266 if test $ac_cv_header_time = yes; then
3267 cat >> confdefs.h <<\EOF
3268 #define TIME_WITH_SYS_TIME 1
3274 PLUGINS=${PLUGINS}"yuv ";
3277 # Check whether --enable-ppro or --disable-ppro was given.
3278 if test "${enable_ppro+set}" = set; then
3279 enableval="$enable_ppro"
3280 if test x$enableval = xyes; then ARCH=${ARCH}" ppro"; fi
3282 if test x${host_cpu} = xi686; then ARCH=${ARCH}" ppro"; fi
3285 # Check whether --enable-mmx or --disable-mmx was given.
3286 if test "${enable_mmx+set}" = set; then
3287 enableval="$enable_mmx"
3288 if test x$enableval = xyes; then ARCH=${ARCH}" mmx"; PLUGINS=${PLUGINS}"yuvmmx "; fi
3290 if test x${host_cpu} = xi686 -o x${host_cpu} = xi586; then ARCH=${ARCH}" mmx"; PLUGINS=${PLUGINS}"yuvmmx "; fi
3293 # Check whether --enable-debug or --disable-debug was given.
3294 if test "${enable_debug+set}" = set; then
3295 enableval="$enable_debug"
3296 if test x$enableval = xyes; then DEBUG=1; fi
3299 # Check whether --enable-stats or --disable-stats was given.
3300 if test "${enable_stats+set}" = set; then
3301 enableval="$enable_stats"
3302 if test x$enableval = xyes; then STATS=1; fi
3305 # Check whether --enable-optimizations or --disable-optimizations was given.
3306 if test "${enable_optimizations+set}" = set; then
3307 enableval="$enable_optimizations"
3308 if test x$enableval = xno; then OPTIMS=0; fi
3317 if test x$host_os = xbeos; then
3318 PLUGINS=${PLUGINS}"dummy null beos "
3322 # Check whether --enable-dummy or --disable-dummy was given.
3323 if test "${enable_dummy+set}" = set; then
3324 enableval="$enable_dummy"
3328 if test x$enable_dummy != xno; then PLUGINS=${PLUGINS}"dummy "; fi
3329 # Check whether --enable-null or --disable-null was given.
3330 if test "${enable_null+set}" = set; then
3331 enableval="$enable_null"
3335 if test x$enable_null != xno; then PLUGINS=${PLUGINS}"null "; fi
3336 # Check whether --enable-dsp or --disable-dsp was given.
3337 if test "${enable_dsp+set}" = set; then
3338 enableval="$enable_dsp"
3342 if test x$enable_dsp != xno; then PLUGINS=${PLUGINS}"dsp "; fi
3343 # Check whether --enable-esd or --disable-esd was given.
3344 if test "${enable_esd+set}" = set; then
3345 enableval="$enable_esd"
3346 if test x$enable_esd = xyes; then PLUGINS=${PLUGINS}"esd "; fi
3349 # Check whether --enable-fb or --disable-fb was given.
3350 if test "${enable_fb+set}" = set; then
3351 enableval="$enable_fb"
3352 if test x$enable_fb = xyes; then PLUGINS=${PLUGINS}"fb "; ALIASES=${ALIASES}"fbvlc "; fi
3355 # Check whether --with-ggi or --without-ggi was given.
3356 if test "${with_ggi+set}" = set; then
3358 PLUGINS=${PLUGINS}"ggi ";
3359 if test "x$withval" != "xyes";
3361 LIB_GGI="-l"$withval
3367 # Check whether --with-sdl or --without-sdl was given.
3368 if test "${with_sdl+set}" = set; then
3370 PLUGINS=${PLUGINS}"sdl ";
3371 if test "x$withval" != "xyes";
3373 LIB_SDL="-l"$withval
3379 # Check whether --with-glide or --without-glide was given.
3380 if test "${with_glide+set}" = set; then
3381 withval="$with_glide"
3382 PLUGINS=${PLUGINS}"glide ";
3383 if test "x$withval" != "xyes";
3385 LIB_GLIDE="-l"$withval
3387 LIB_GLIDE="-lglide2x"
3391 # Check whether --enable-gnome or --disable-gnome was given.
3392 if test "${enable_gnome+set}" = set; then
3393 enableval="$enable_gnome"
3394 if test x$enable_gnome = xyes; then PLUGINS=${PLUGINS}"gnome "; ALIASES=${ALIASES}"gvlc "; fi
3397 # Check whether --enable-x11 or --disable-x11 was given.
3398 if test "${enable_x11+set}" = set; then
3399 enableval="$enable_x11"
3403 if test x$enable_x11 != xno; then PLUGINS=${PLUGINS}"x11 "; fi
3404 # Check whether --enable-alsa or --disable-alsa was given.
3405 if test "${enable_alsa+set}" = set; then
3406 enableval="$enable_alsa"
3407 if test x$enable_alsa = xyes; then ac_safe=`echo "sys/asoundlib.h" | sed 'y%./+-%__p_%'`
3408 echo $ac_n "checking for sys/asoundlib.h""... $ac_c" 1>&6
3409 echo "configure:3410: checking for sys/asoundlib.h" >&5
3410 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3411 echo $ac_n "(cached) $ac_c" 1>&6
3413 cat > conftest.$ac_ext <<EOF
3414 #line 3415 "configure"
3415 #include "confdefs.h"
3416 #include <sys/asoundlib.h>
3418 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3419 { (eval echo configure:3420: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3420 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3421 if test -z "$ac_err"; then
3423 eval "ac_cv_header_$ac_safe=yes"
3426 echo "configure: failed program was:" >&5
3427 cat conftest.$ac_ext >&5
3429 eval "ac_cv_header_$ac_safe=no"
3433 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3434 echo "$ac_t""yes" 1>&6
3435 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
3436 echo "configure:3437: checking for main in -lasound" >&5
3437 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
3438 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3439 echo $ac_n "(cached) $ac_c" 1>&6
3441 ac_save_LIBS="$LIBS"
3442 LIBS="-lasound $LIBS"
3443 cat > conftest.$ac_ext <<EOF
3444 #line 3445 "configure"
3445 #include "confdefs.h"
3451 if { (eval echo configure:3452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3453 eval "ac_cv_lib_$ac_lib_var=yes"
3455 echo "configure: failed program was:" >&5
3456 cat conftest.$ac_ext >&5
3458 eval "ac_cv_lib_$ac_lib_var=no"
3461 LIBS="$ac_save_LIBS"
3464 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3465 echo "$ac_t""yes" 1>&6
3468 echo "$ac_t""no" 1>&6
3473 echo "$ac_t""no" 1>&6
3476 if test $have_alsa = true; then PLUGINS=${PLUGINS}"alsa "; fi; fi
3496 cat > confcache <<\EOF
3497 # This file is a shell script that caches the results of configure
3498 # tests run on this system so they can be shared between configure
3499 # scripts and configure runs. It is not useful on other systems.
3500 # If it contains results you don't want to keep, you may remove or edit it.
3502 # By default, configure uses ./config.cache as the cache file,
3503 # creating it if it does not exist already. You can give configure
3504 # the --cache-file=FILE option to use a different cache file; that is
3505 # what configure does when it calls configure scripts in
3506 # subdirectories, so they share the cache.
3507 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3508 # config.status only pays attention to the cache file if you give it the
3509 # --recheck option to rerun configure.
3512 # The following way of writing the cache mishandles newlines in values,
3513 # but we know of no workaround that is simple, portable, and efficient.
3514 # So, don't put newlines in cache variables' values.
3515 # Ultrix sh set writes to stderr and can't be redirected directly,
3516 # and sets the high bit in the cache file unless we assign to the vars.
3518 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3520 # `set' does not quote correctly, so add quotes (double-quote substitution
3521 # turns \\\\ into \\, and sed turns \\ into \).
3523 -e "s/'/'\\\\''/g" \
3524 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3527 # `set' quotes correctly as required by POSIX, so do not add quotes.
3528 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3531 if cmp -s $cache_file confcache; then
3534 if test -w $cache_file; then
3535 echo "updating cache $cache_file"
3536 cat confcache > $cache_file
3538 echo "not updating unwritable cache $cache_file"
3543 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3545 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3546 # Let make expand exec_prefix.
3547 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3549 # Any assignment to VPATH causes Sun make to only execute
3550 # the first set of double-colon rules, so remove it if not needed.
3551 # If there is a colon in the path, we need to keep it.
3552 if test "x$srcdir" = x.; then
3553 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3556 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3558 DEFS=-DHAVE_CONFIG_H
3560 # Without the "./", some shells look in PATH for config.status.
3561 : ${CONFIG_STATUS=./config.status}
3563 echo creating $CONFIG_STATUS
3564 rm -f $CONFIG_STATUS
3565 cat > $CONFIG_STATUS <<EOF
3567 # Generated automatically by configure.
3568 # Run this file to recreate the current configuration.
3569 # This directory was configured as follows,
3570 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3572 # $0 $ac_configure_args
3574 # Compiler output produced by configure, useful for debugging
3575 # configure, is in ./config.log if it exists.
3577 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3580 case "\$ac_option" in
3581 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3582 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3583 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3584 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3585 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3587 -help | --help | --hel | --he | --h)
3588 echo "\$ac_cs_usage"; exit 0 ;;
3589 *) echo "\$ac_cs_usage"; exit 1 ;;
3593 ac_given_srcdir=$srcdir
3594 ac_given_INSTALL="$INSTALL"
3596 trap 'rm -fr `echo "Makefile include/config.h include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3598 cat >> $CONFIG_STATUS <<EOF
3600 # Protect against being on the right side of a sed subst in config.status.
3601 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3602 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3606 s%@CFLAGS@%$CFLAGS%g
3607 s%@CPPFLAGS@%$CPPFLAGS%g
3608 s%@CXXFLAGS@%$CXXFLAGS%g
3609 s%@FFLAGS@%$FFLAGS%g
3611 s%@LDFLAGS@%$LDFLAGS%g
3613 s%@exec_prefix@%$exec_prefix%g
3614 s%@prefix@%$prefix%g
3615 s%@program_transform_name@%$program_transform_name%g
3616 s%@bindir@%$bindir%g
3617 s%@sbindir@%$sbindir%g
3618 s%@libexecdir@%$libexecdir%g
3619 s%@datadir@%$datadir%g
3620 s%@sysconfdir@%$sysconfdir%g
3621 s%@sharedstatedir@%$sharedstatedir%g
3622 s%@localstatedir@%$localstatedir%g
3623 s%@libdir@%$libdir%g
3624 s%@includedir@%$includedir%g
3625 s%@oldincludedir@%$oldincludedir%g
3626 s%@infodir@%$infodir%g
3627 s%@mandir@%$mandir%g
3629 s%@host_alias@%$host_alias%g
3630 s%@host_cpu@%$host_cpu%g
3631 s%@host_vendor@%$host_vendor%g
3632 s%@host_os@%$host_os%g
3633 s%@VLC_VERSION@%$VLC_VERSION%g
3634 s%@VLC_CODENAME@%$VLC_CODENAME%g
3635 s%@SET_MAKE@%$SET_MAKE%g
3638 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3639 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3640 s%@INSTALL_DATA@%$INSTALL_DATA%g
3641 s%@LIBOBJS@%$LIBOBJS%g
3644 s%@PLUGINS@%$PLUGINS%g
3645 s%@ALIASES@%$ALIASES%g
3648 s%@OPTIMS@%$OPTIMS%g
3649 s%@BIZARRE_OPTIMS@%$BIZARRE_OPTIMS%g
3650 s%@DYNAMIC_FLAG@%$DYNAMIC_FLAG%g
3651 s%@LIB_SDL@%$LIB_SDL%g
3652 s%@LIB_GLIDE@%$LIB_GLIDE%g
3653 s%@LIB_GGI@%$LIB_GGI%g
3658 cat >> $CONFIG_STATUS <<\EOF
3660 # Split the substitutions into bite-sized pieces for seds with
3661 # small command number limits, like on Digital OSF/1 and HP-UX.
3662 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3663 ac_file=1 # Number of current file.
3664 ac_beg=1 # First line for current file.
3665 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3668 while $ac_more_lines; do
3669 if test $ac_beg -gt 1; then
3670 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3672 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3674 if test ! -s conftest.s$ac_file; then
3676 rm -f conftest.s$ac_file
3678 if test -z "$ac_sed_cmds"; then
3679 ac_sed_cmds="sed -f conftest.s$ac_file"
3681 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3683 ac_file=`expr $ac_file + 1`
3685 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3688 if test -z "$ac_sed_cmds"; then
3693 cat >> $CONFIG_STATUS <<EOF
3695 CONFIG_FILES=\${CONFIG_FILES-"Makefile include/config.h"}
3697 cat >> $CONFIG_STATUS <<\EOF
3698 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3699 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3701 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3702 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3703 *) ac_file_in="${ac_file}.in" ;;
3706 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3708 # Remove last slash and all that follows it. Not all systems have dirname.
3709 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3710 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3711 # The file is in a subdirectory.
3712 test ! -d "$ac_dir" && mkdir "$ac_dir"
3713 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3714 # A "../" for each directory in $ac_dir_suffix.
3715 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3717 ac_dir_suffix= ac_dots=
3720 case "$ac_given_srcdir" in
3722 if test -z "$ac_dots"; then top_srcdir=.
3723 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3724 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3726 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3727 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3730 case "$ac_given_INSTALL" in
3731 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3732 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3735 echo creating "$ac_file"
3737 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3739 *Makefile*) ac_comsub="1i\\
3740 # $configure_input" ;;
3744 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3746 s%@configure_input@%$configure_input%g
3747 s%@srcdir@%$srcdir%g
3748 s%@top_srcdir@%$top_srcdir%g
3749 s%@INSTALL@%$INSTALL%g
3750 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3754 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3755 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3757 # ac_d sets the value in "#define NAME VALUE" lines.
3758 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3759 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3762 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3763 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3764 ac_uB='\([ ]\)%\1#\2define\3'
3767 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3768 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3769 ac_eB='$%\1#\2define\3'
3773 if test "${CONFIG_HEADERS+set}" != set; then
3775 cat >> $CONFIG_STATUS <<EOF
3776 CONFIG_HEADERS="include/defs.h"
3778 cat >> $CONFIG_STATUS <<\EOF
3780 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3781 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3783 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3784 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3785 *) ac_file_in="${ac_file}.in" ;;
3788 echo creating $ac_file
3790 rm -f conftest.frag conftest.in conftest.out
3791 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3792 cat $ac_file_inputs > conftest.in
3796 # Transform confdefs.h into a sed script conftest.vals that substitutes
3797 # the proper values into config.h.in to produce config.h. And first:
3798 # Protect against being on the right side of a sed subst in config.status.
3799 # Protect against being in an unquoted here document in config.status.
3801 cat > conftest.hdr <<\EOF
3804 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3808 sed -n -f conftest.hdr confdefs.h > conftest.vals
3811 # This sed command replaces #undef with comments. This is necessary, for
3812 # example, in the case of _POSIX_SOURCE, which is predefined and required
3813 # on some systems where configure will not decide to define it.
3814 cat >> conftest.vals <<\EOF
3815 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3818 # Break up conftest.vals because some shells have a limit on
3819 # the size of here documents, and old seds have small limits too.
3824 ac_lines=`grep -c . conftest.vals`
3825 # grep -c gives empty output for an empty file on some AIX systems.
3826 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3827 # Write a limited-size here document to conftest.frag.
3828 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3829 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3831 sed -f conftest.frag conftest.in > conftest.out
3833 mv conftest.out conftest.in
3835 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3837 mv conftest.tail conftest.vals
3841 cat >> $CONFIG_STATUS <<\EOF
3842 rm -f conftest.frag conftest.h
3843 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3844 cat conftest.in >> conftest.h
3846 if cmp -s $ac_file conftest.h 2>/dev/null; then
3847 echo "$ac_file is unchanged"
3850 # Remove last slash and all that follows it. Not all systems have dirname.
3851 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3852 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3853 # The file is in a subdirectory.
3854 test ! -d "$ac_dir" && mkdir "$ac_dir"
3857 mv conftest.h $ac_file
3862 cat >> $CONFIG_STATUS <<EOF
3865 cat >> $CONFIG_STATUS <<\EOF
3869 chmod +x $CONFIG_STATUS
3870 rm -fr confdefs* $ac_clean_files
3871 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3877 vlc version : ${VLC_VERSION}
3879 architecture : ${ARCH}
3880 debug mode : ${DEBUG}
3881 statistics : ${STATS}
3882 optimizations : ${OPTIMS}
3883 plugins : ${PLUGINS}
3884 vlc aliases : ${ALIASES}