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 echo $ac_n "checking whether compiler accepts bswap x86 instruction""... $ac_c" 1>&6
1176 echo "configure:1177: checking whether compiler accepts bswap x86 instruction" >&5
1177 cat > conftest.$ac_ext <<EOF
1178 #line 1179 "configure"
1179 #include "confdefs.h"
1180 unsigned int foo( unsigned int x )
1181 { __asm__("bswap %0" : "=r" (x) : "0" (x)); return x; }
1186 if { (eval echo configure:1187: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1188 cat >> confdefs.h <<\EOF
1189 #define HAVE_X86_BSWAP 1
1191 echo "$ac_t""yes" 1>&6
1193 echo "configure: failed program was:" >&5
1194 cat conftest.$ac_ext >&5
1196 echo "$ac_t""no" 1>&6
1200 for ac_func in gettimeofday select strerror strtod strtol
1202 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1203 echo "configure:1204: checking for $ac_func" >&5
1204 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1205 echo $ac_n "(cached) $ac_c" 1>&6
1207 cat > conftest.$ac_ext <<EOF
1208 #line 1209 "configure"
1209 #include "confdefs.h"
1210 /* System header to define __stub macros and hopefully few prototypes,
1211 which can conflict with char $ac_func(); below. */
1213 /* Override any gcc2 internal prototype to avoid an error. */
1214 /* We use char because int might match the return type of a gcc2
1215 builtin and then its argument prototype would still apply. */
1220 /* The GNU C library defines this for functions which it implements
1221 to always fail with ENOSYS. Some functions are actually named
1222 something starting with __ and the normal name is an alias. */
1223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1231 if { (eval echo configure:1232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1233 eval "ac_cv_func_$ac_func=yes"
1235 echo "configure: failed program was:" >&5
1236 cat conftest.$ac_ext >&5
1238 eval "ac_cv_func_$ac_func=no"
1243 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1244 echo "$ac_t""yes" 1>&6
1245 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1246 cat >> confdefs.h <<EOF
1247 #define $ac_tr_func 1
1251 echo "$ac_t""no" 1>&6
1255 for ac_func in setenv putenv
1257 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1258 echo "configure:1259: checking for $ac_func" >&5
1259 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1260 echo $ac_n "(cached) $ac_c" 1>&6
1262 cat > conftest.$ac_ext <<EOF
1263 #line 1264 "configure"
1264 #include "confdefs.h"
1265 /* System header to define __stub macros and hopefully few prototypes,
1266 which can conflict with char $ac_func(); below. */
1268 /* Override any gcc2 internal prototype to avoid an error. */
1269 /* We use char because int might match the return type of a gcc2
1270 builtin and then its argument prototype would still apply. */
1275 /* The GNU C library defines this for functions which it implements
1276 to always fail with ENOSYS. Some functions are actually named
1277 something starting with __ and the normal name is an alias. */
1278 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1286 if { (eval echo configure:1287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1288 eval "ac_cv_func_$ac_func=yes"
1290 echo "configure: failed program was:" >&5
1291 cat conftest.$ac_ext >&5
1293 eval "ac_cv_func_$ac_func=no"
1298 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1299 echo "$ac_t""yes" 1>&6
1300 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1301 cat >> confdefs.h <<EOF
1302 #define $ac_tr_func 1
1306 echo "$ac_t""no" 1>&6
1310 echo $ac_n "checking for connect""... $ac_c" 1>&6
1311 echo "configure:1312: checking for connect" >&5
1312 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1313 echo $ac_n "(cached) $ac_c" 1>&6
1315 cat > conftest.$ac_ext <<EOF
1316 #line 1317 "configure"
1317 #include "confdefs.h"
1318 /* System header to define __stub macros and hopefully few prototypes,
1319 which can conflict with char connect(); below. */
1321 /* Override any gcc2 internal prototype to avoid an error. */
1322 /* We use char because int might match the return type of a gcc2
1323 builtin and then its argument prototype would still apply. */
1328 /* The GNU C library defines this for functions which it implements
1329 to always fail with ENOSYS. Some functions are actually named
1330 something starting with __ and the normal name is an alias. */
1331 #if defined (__stub_connect) || defined (__stub___connect)
1339 if { (eval echo configure:1340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1341 eval "ac_cv_func_connect=yes"
1343 echo "configure: failed program was:" >&5
1344 cat conftest.$ac_ext >&5
1346 eval "ac_cv_func_connect=no"
1351 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1352 echo "$ac_t""yes" 1>&6
1355 echo "$ac_t""no" 1>&6
1356 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1357 echo "configure:1358: checking for connect in -lsocket" >&5
1358 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1359 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1360 echo $ac_n "(cached) $ac_c" 1>&6
1362 ac_save_LIBS="$LIBS"
1363 LIBS="-lsocket $LIBS"
1364 cat > conftest.$ac_ext <<EOF
1365 #line 1366 "configure"
1366 #include "confdefs.h"
1367 /* Override any gcc2 internal prototype to avoid an error. */
1368 /* We use char because int might match the return type of a gcc2
1369 builtin and then its argument prototype would still apply. */
1376 if { (eval echo configure:1377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1378 eval "ac_cv_lib_$ac_lib_var=yes"
1380 echo "configure: failed program was:" >&5
1381 cat conftest.$ac_ext >&5
1383 eval "ac_cv_lib_$ac_lib_var=no"
1386 LIBS="$ac_save_LIBS"
1389 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1390 echo "$ac_t""yes" 1>&6
1391 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1392 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1393 cat >> confdefs.h <<EOF
1394 #define $ac_tr_lib 1
1397 LIBS="-lsocket $LIBS"
1400 echo "$ac_t""no" 1>&6
1405 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1406 echo "configure:1407: checking for gethostbyname" >&5
1407 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1408 echo $ac_n "(cached) $ac_c" 1>&6
1410 cat > conftest.$ac_ext <<EOF
1411 #line 1412 "configure"
1412 #include "confdefs.h"
1413 /* System header to define __stub macros and hopefully few prototypes,
1414 which can conflict with char gethostbyname(); below. */
1416 /* Override any gcc2 internal prototype to avoid an error. */
1417 /* We use char because int might match the return type of a gcc2
1418 builtin and then its argument prototype would still apply. */
1419 char gethostbyname();
1423 /* The GNU C library defines this for functions which it implements
1424 to always fail with ENOSYS. Some functions are actually named
1425 something starting with __ and the normal name is an alias. */
1426 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1434 if { (eval echo configure:1435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1436 eval "ac_cv_func_gethostbyname=yes"
1438 echo "configure: failed program was:" >&5
1439 cat conftest.$ac_ext >&5
1441 eval "ac_cv_func_gethostbyname=no"
1446 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1447 echo "$ac_t""yes" 1>&6
1450 echo "$ac_t""no" 1>&6
1451 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1452 echo "configure:1453: checking for gethostbyname in -lnsl" >&5
1453 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1454 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1455 echo $ac_n "(cached) $ac_c" 1>&6
1457 ac_save_LIBS="$LIBS"
1459 cat > conftest.$ac_ext <<EOF
1460 #line 1461 "configure"
1461 #include "confdefs.h"
1462 /* Override any gcc2 internal prototype to avoid an error. */
1463 /* We use char because int might match the return type of a gcc2
1464 builtin and then its argument prototype would still apply. */
1465 char gethostbyname();
1471 if { (eval echo configure:1472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1473 eval "ac_cv_lib_$ac_lib_var=yes"
1475 echo "configure: failed program was:" >&5
1476 cat conftest.$ac_ext >&5
1478 eval "ac_cv_lib_$ac_lib_var=no"
1481 LIBS="$ac_save_LIBS"
1484 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1485 echo "$ac_t""yes" 1>&6
1486 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1487 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1488 cat >> confdefs.h <<EOF
1489 #define $ac_tr_lib 1
1495 echo "$ac_t""no" 1>&6
1500 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
1501 echo "configure:1502: checking for nanosleep" >&5
1502 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
1503 echo $ac_n "(cached) $ac_c" 1>&6
1505 cat > conftest.$ac_ext <<EOF
1506 #line 1507 "configure"
1507 #include "confdefs.h"
1508 /* System header to define __stub macros and hopefully few prototypes,
1509 which can conflict with char nanosleep(); below. */
1511 /* Override any gcc2 internal prototype to avoid an error. */
1512 /* We use char because int might match the return type of a gcc2
1513 builtin and then its argument prototype would still apply. */
1518 /* The GNU C library defines this for functions which it implements
1519 to always fail with ENOSYS. Some functions are actually named
1520 something starting with __ and the normal name is an alias. */
1521 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
1529 if { (eval echo configure:1530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1531 eval "ac_cv_func_nanosleep=yes"
1533 echo "configure: failed program was:" >&5
1534 cat conftest.$ac_ext >&5
1536 eval "ac_cv_func_nanosleep=no"
1541 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
1542 echo "$ac_t""yes" 1>&6
1545 echo "$ac_t""no" 1>&6
1546 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
1547 echo "configure:1548: checking for nanosleep in -lrt" >&5
1548 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
1549 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1550 echo $ac_n "(cached) $ac_c" 1>&6
1552 ac_save_LIBS="$LIBS"
1554 cat > conftest.$ac_ext <<EOF
1555 #line 1556 "configure"
1556 #include "confdefs.h"
1557 /* Override any gcc2 internal prototype to avoid an error. */
1558 /* We use char because int might match the return type of a gcc2
1559 builtin and then its argument prototype would still apply. */
1566 if { (eval echo configure:1567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1568 eval "ac_cv_lib_$ac_lib_var=yes"
1570 echo "configure: failed program was:" >&5
1571 cat conftest.$ac_ext >&5
1573 eval "ac_cv_lib_$ac_lib_var=no"
1576 LIBS="$ac_save_LIBS"
1579 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1580 echo "$ac_t""yes" 1>&6
1581 ac_tr_lib=HAVE_LIB`echo rt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1582 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1583 cat >> confdefs.h <<EOF
1584 #define $ac_tr_lib 1
1590 echo "$ac_t""no" 1>&6
1591 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
1592 echo "configure:1593: checking for nanosleep in -lposix4" >&5
1593 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
1594 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1595 echo $ac_n "(cached) $ac_c" 1>&6
1597 ac_save_LIBS="$LIBS"
1598 LIBS="-lposix4 $LIBS"
1599 cat > conftest.$ac_ext <<EOF
1600 #line 1601 "configure"
1601 #include "confdefs.h"
1602 /* Override any gcc2 internal prototype to avoid an error. */
1603 /* We use char because int might match the return type of a gcc2
1604 builtin and then its argument prototype would still apply. */
1611 if { (eval echo configure:1612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1613 eval "ac_cv_lib_$ac_lib_var=yes"
1615 echo "configure: failed program was:" >&5
1616 cat conftest.$ac_ext >&5
1618 eval "ac_cv_lib_$ac_lib_var=no"
1621 LIBS="$ac_save_LIBS"
1624 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1625 echo "$ac_t""yes" 1>&6
1626 ac_tr_lib=HAVE_LIB`echo posix4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1627 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1628 cat >> confdefs.h <<EOF
1629 #define $ac_tr_lib 1
1632 LIBS="-lposix4 $LIBS"
1635 echo "$ac_t""no" 1>&6
1642 for ac_func in usleep
1644 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1645 echo "configure:1646: checking for $ac_func" >&5
1646 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1647 echo $ac_n "(cached) $ac_c" 1>&6
1649 cat > conftest.$ac_ext <<EOF
1650 #line 1651 "configure"
1651 #include "confdefs.h"
1652 /* System header to define __stub macros and hopefully few prototypes,
1653 which can conflict with char $ac_func(); below. */
1655 /* Override any gcc2 internal prototype to avoid an error. */
1656 /* We use char because int might match the return type of a gcc2
1657 builtin and then its argument prototype would still apply. */
1662 /* The GNU C library defines this for functions which it implements
1663 to always fail with ENOSYS. Some functions are actually named
1664 something starting with __ and the normal name is an alias. */
1665 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1673 if { (eval echo configure:1674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1675 eval "ac_cv_func_$ac_func=yes"
1677 echo "configure: failed program was:" >&5
1678 cat conftest.$ac_ext >&5
1680 eval "ac_cv_func_$ac_func=no"
1685 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1686 echo "$ac_t""yes" 1>&6
1687 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1688 cat >> confdefs.h <<EOF
1689 #define $ac_tr_func 1
1693 echo "$ac_t""no" 1>&6
1697 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
1698 echo "configure:1699: checking for inet_aton" >&5
1699 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
1700 echo $ac_n "(cached) $ac_c" 1>&6
1702 cat > conftest.$ac_ext <<EOF
1703 #line 1704 "configure"
1704 #include "confdefs.h"
1705 /* System header to define __stub macros and hopefully few prototypes,
1706 which can conflict with char inet_aton(); below. */
1708 /* Override any gcc2 internal prototype to avoid an error. */
1709 /* We use char because int might match the return type of a gcc2
1710 builtin and then its argument prototype would still apply. */
1715 /* The GNU C library defines this for functions which it implements
1716 to always fail with ENOSYS. Some functions are actually named
1717 something starting with __ and the normal name is an alias. */
1718 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
1726 if { (eval echo configure:1727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1728 eval "ac_cv_func_inet_aton=yes"
1730 echo "configure: failed program was:" >&5
1731 cat conftest.$ac_ext >&5
1733 eval "ac_cv_func_inet_aton=no"
1738 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
1739 echo "$ac_t""yes" 1>&6
1742 echo "$ac_t""no" 1>&6
1743 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
1744 echo "configure:1745: checking for inet_aton in -lresolv" >&5
1745 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
1746 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1747 echo $ac_n "(cached) $ac_c" 1>&6
1749 ac_save_LIBS="$LIBS"
1750 LIBS="-lresolv $LIBS"
1751 cat > conftest.$ac_ext <<EOF
1752 #line 1753 "configure"
1753 #include "confdefs.h"
1754 /* Override any gcc2 internal prototype to avoid an error. */
1755 /* We use char because int might match the return type of a gcc2
1756 builtin and then its argument prototype would still apply. */
1763 if { (eval echo configure:1764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1765 eval "ac_cv_lib_$ac_lib_var=yes"
1767 echo "configure: failed program was:" >&5
1768 cat conftest.$ac_ext >&5
1770 eval "ac_cv_lib_$ac_lib_var=no"
1773 LIBS="$ac_save_LIBS"
1776 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1777 echo "$ac_t""yes" 1>&6
1778 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1779 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1780 cat >> confdefs.h <<EOF
1781 #define $ac_tr_lib 1
1784 LIBS="-lresolv $LIBS"
1787 echo "$ac_t""no" 1>&6
1792 for ac_func in vasprintf
1794 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1795 echo "configure:1796: checking for $ac_func" >&5
1796 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1797 echo $ac_n "(cached) $ac_c" 1>&6
1799 cat > conftest.$ac_ext <<EOF
1800 #line 1801 "configure"
1801 #include "confdefs.h"
1802 /* System header to define __stub macros and hopefully few prototypes,
1803 which can conflict with char $ac_func(); below. */
1805 /* Override any gcc2 internal prototype to avoid an error. */
1806 /* We use char because int might match the return type of a gcc2
1807 builtin and then its argument prototype would still apply. */
1812 /* The GNU C library defines this for functions which it implements
1813 to always fail with ENOSYS. Some functions are actually named
1814 something starting with __ and the normal name is an alias. */
1815 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1823 if { (eval echo configure:1824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1825 eval "ac_cv_func_$ac_func=yes"
1827 echo "configure: failed program was:" >&5
1828 cat conftest.$ac_ext >&5
1830 eval "ac_cv_func_$ac_func=no"
1835 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1836 echo "$ac_t""yes" 1>&6
1837 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1838 cat >> confdefs.h <<EOF
1839 #define $ac_tr_func 1
1843 echo "$ac_t""no" 1>&6
1847 for ac_hdr in unistd.h
1849 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1850 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1851 echo "configure:1852: checking for $ac_hdr" >&5
1852 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1853 echo $ac_n "(cached) $ac_c" 1>&6
1855 cat > conftest.$ac_ext <<EOF
1856 #line 1857 "configure"
1857 #include "confdefs.h"
1860 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1861 { (eval echo configure:1862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1862 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1863 if test -z "$ac_err"; then
1865 eval "ac_cv_header_$ac_safe=yes"
1868 echo "configure: failed program was:" >&5
1869 cat conftest.$ac_ext >&5
1871 eval "ac_cv_header_$ac_safe=no"
1875 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1876 echo "$ac_t""yes" 1>&6
1877 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1878 cat >> confdefs.h <<EOF
1879 #define $ac_tr_hdr 1
1883 echo "$ac_t""no" 1>&6
1887 for ac_func in getpagesize
1889 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1890 echo "configure:1891: checking for $ac_func" >&5
1891 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1892 echo $ac_n "(cached) $ac_c" 1>&6
1894 cat > conftest.$ac_ext <<EOF
1895 #line 1896 "configure"
1896 #include "confdefs.h"
1897 /* System header to define __stub macros and hopefully few prototypes,
1898 which can conflict with char $ac_func(); below. */
1900 /* Override any gcc2 internal prototype to avoid an error. */
1901 /* We use char because int might match the return type of a gcc2
1902 builtin and then its argument prototype would still apply. */
1907 /* The GNU C library defines this for functions which it implements
1908 to always fail with ENOSYS. Some functions are actually named
1909 something starting with __ and the normal name is an alias. */
1910 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1918 if { (eval echo configure:1919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1920 eval "ac_cv_func_$ac_func=yes"
1922 echo "configure: failed program was:" >&5
1923 cat conftest.$ac_ext >&5
1925 eval "ac_cv_func_$ac_func=no"
1930 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1931 echo "$ac_t""yes" 1>&6
1932 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1933 cat >> confdefs.h <<EOF
1934 #define $ac_tr_func 1
1938 echo "$ac_t""no" 1>&6
1942 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1943 echo "configure:1944: checking for working mmap" >&5
1944 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1945 echo $ac_n "(cached) $ac_c" 1>&6
1947 if test "$cross_compiling" = yes; then
1948 ac_cv_func_mmap_fixed_mapped=no
1950 cat > conftest.$ac_ext <<EOF
1951 #line 1952 "configure"
1952 #include "confdefs.h"
1954 /* Thanks to Mike Haertel and Jim Avera for this test.
1955 Here is a matrix of mmap possibilities:
1956 mmap private not fixed
1957 mmap private fixed at somewhere currently unmapped
1958 mmap private fixed at somewhere already mapped
1959 mmap shared not fixed
1960 mmap shared fixed at somewhere currently unmapped
1961 mmap shared fixed at somewhere already mapped
1962 For private mappings, we should verify that changes cannot be read()
1963 back from the file, nor mmap's back from the file at a different
1964 address. (There have been systems where private was not correctly
1965 implemented like the infamous i386 svr4.0, and systems where the
1966 VM page cache was not coherent with the filesystem buffer cache
1967 like early versions of FreeBSD and possibly contemporary NetBSD.)
1968 For shared mappings, we should conversely verify that changes get
1969 propogated back to all the places they're supposed to be.
1971 Grep wants private fixed already mapped.
1972 The main things grep needs to know about mmap are:
1973 * does it exist and is it safe to write into the mmap'd area
1974 * how to use it (BSD variants) */
1975 #include <sys/types.h>
1977 #include <sys/mman.h>
1979 #include <sys/stat.h>
1981 #ifdef HAVE_UNISTD_H
1982 # include <unistd.h>
1985 /* This mess was copied from the GNU getpagesize.h. */
1986 #ifndef HAVE_GETPAGESIZE
1988 /* Assume that all systems that can run configure have sys/param.h. */
1989 # ifndef HAVE_SYS_PARAM_H
1990 # define HAVE_SYS_PARAM_H 1
1993 # ifdef _SC_PAGESIZE
1994 # define getpagesize() sysconf(_SC_PAGESIZE)
1995 # else /* no _SC_PAGESIZE */
1996 # ifdef HAVE_SYS_PARAM_H
1997 # include <sys/param.h>
1998 # ifdef EXEC_PAGESIZE
1999 # define getpagesize() EXEC_PAGESIZE
2000 # else /* no EXEC_PAGESIZE */
2002 # define getpagesize() NBPG * CLSIZE
2005 # endif /* no CLSIZE */
2006 # else /* no NBPG */
2008 # define getpagesize() NBPC
2009 # else /* no NBPC */
2011 # define getpagesize() PAGESIZE
2012 # endif /* PAGESIZE */
2013 # endif /* no NBPC */
2014 # endif /* no NBPG */
2015 # endif /* no EXEC_PAGESIZE */
2016 # else /* no HAVE_SYS_PARAM_H */
2017 # define getpagesize() 8192 /* punt totally */
2018 # endif /* no HAVE_SYS_PARAM_H */
2019 # endif /* no _SC_PAGESIZE */
2021 #endif /* no HAVE_GETPAGESIZE */
2024 extern "C" { void *malloc(unsigned); }
2032 char *data, *data2, *data3;
2036 pagesize = getpagesize();
2039 * First, make a file with some known garbage in it.
2041 data = (char*)malloc(pagesize);
2044 for (i = 0; i < pagesize; ++i)
2045 *(data + i) = rand();
2047 fd = creat("conftestmmap", 0600);
2050 if (write(fd, data, pagesize) != pagesize)
2055 * Next, try to mmap the file at a fixed address which
2056 * already has something else allocated at it. If we can,
2057 * also make sure that we see the same garbage.
2059 fd = open("conftestmmap", O_RDWR);
2062 data2 = (char*)malloc(2 * pagesize);
2065 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2066 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2067 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2069 for (i = 0; i < pagesize; ++i)
2070 if (*(data + i) != *(data2 + i))
2074 * Finally, make sure that changes to the mapped area
2075 * do not percolate back to the file as seen by read().
2076 * (This is a bug on some variants of i386 svr4.0.)
2078 for (i = 0; i < pagesize; ++i)
2079 *(data2 + i) = *(data2 + i) + 1;
2080 data3 = (char*)malloc(pagesize);
2083 if (read(fd, data3, pagesize) != pagesize)
2085 for (i = 0; i < pagesize; ++i)
2086 if (*(data + i) != *(data3 + i))
2089 unlink("conftestmmap");
2094 if { (eval echo configure:2095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2096 ac_cv_func_mmap_fixed_mapped=yes
2098 echo "configure: failed program was:" >&5
2099 cat conftest.$ac_ext >&5
2101 ac_cv_func_mmap_fixed_mapped=no
2108 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2109 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2110 cat >> confdefs.h <<\EOF
2116 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2117 echo "configure:2118: checking return type of signal handlers" >&5
2118 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2119 echo $ac_n "(cached) $ac_c" 1>&6
2121 cat > conftest.$ac_ext <<EOF
2122 #line 2123 "configure"
2123 #include "confdefs.h"
2124 #include <sys/types.h>
2130 extern "C" void (*signal (int, void (*)(int)))(int);
2132 void (*signal ()) ();
2139 if { (eval echo configure:2140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2141 ac_cv_type_signal=void
2143 echo "configure: failed program was:" >&5
2144 cat conftest.$ac_ext >&5
2146 ac_cv_type_signal=int
2151 echo "$ac_t""$ac_cv_type_signal" 1>&6
2152 cat >> confdefs.h <<EOF
2153 #define RETSIGTYPE $ac_cv_type_signal
2157 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2158 echo "configure:2159: checking for dlopen in -ldl" >&5
2159 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2160 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2161 echo $ac_n "(cached) $ac_c" 1>&6
2163 ac_save_LIBS="$LIBS"
2165 cat > conftest.$ac_ext <<EOF
2166 #line 2167 "configure"
2167 #include "confdefs.h"
2168 /* Override any gcc2 internal prototype to avoid an error. */
2169 /* We use char because int might match the return type of a gcc2
2170 builtin and then its argument prototype would still apply. */
2177 if { (eval echo configure:2178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2179 eval "ac_cv_lib_$ac_lib_var=yes"
2181 echo "configure: failed program was:" >&5
2182 cat conftest.$ac_ext >&5
2184 eval "ac_cv_lib_$ac_lib_var=no"
2187 LIBS="$ac_save_LIBS"
2190 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2191 echo "$ac_t""yes" 1>&6
2192 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2193 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2194 cat >> confdefs.h <<EOF
2195 #define $ac_tr_lib 1
2201 echo "$ac_t""no" 1>&6
2204 echo $ac_n "checking for optarg in -lgnugetopt""... $ac_c" 1>&6
2205 echo "configure:2206: checking for optarg in -lgnugetopt" >&5
2206 ac_lib_var=`echo gnugetopt'_'optarg | sed 'y%./+-%__p_%'`
2207 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2208 echo $ac_n "(cached) $ac_c" 1>&6
2210 ac_save_LIBS="$LIBS"
2211 LIBS="-lgnugetopt $LIBS"
2212 cat > conftest.$ac_ext <<EOF
2213 #line 2214 "configure"
2214 #include "confdefs.h"
2215 /* Override any gcc2 internal prototype to avoid an error. */
2216 /* We use char because int might match the return type of a gcc2
2217 builtin and then its argument prototype would still apply. */
2224 if { (eval echo configure:2225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2226 eval "ac_cv_lib_$ac_lib_var=yes"
2228 echo "configure: failed program was:" >&5
2229 cat conftest.$ac_ext >&5
2231 eval "ac_cv_lib_$ac_lib_var=no"
2234 LIBS="$ac_save_LIBS"
2237 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2238 echo "$ac_t""yes" 1>&6
2239 ac_tr_lib=HAVE_LIB`echo gnugetopt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2240 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2241 cat >> confdefs.h <<EOF
2242 #define $ac_tr_lib 1
2245 LIBS="-lgnugetopt $LIBS"
2248 echo "$ac_t""no" 1>&6
2251 echo $ac_n "checking for _ in -lbe""... $ac_c" 1>&6
2252 echo "configure:2253: checking for _ in -lbe" >&5
2253 ac_lib_var=`echo be'_'_ | sed 'y%./+-%__p_%'`
2254 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2255 echo $ac_n "(cached) $ac_c" 1>&6
2257 ac_save_LIBS="$LIBS"
2259 cat > conftest.$ac_ext <<EOF
2260 #line 2261 "configure"
2261 #include "confdefs.h"
2262 /* Override any gcc2 internal prototype to avoid an error. */
2263 /* We use char because int might match the return type of a gcc2
2264 builtin and then its argument prototype would still apply. */
2271 if { (eval echo configure:2272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2273 eval "ac_cv_lib_$ac_lib_var=yes"
2275 echo "configure: failed program was:" >&5
2276 cat conftest.$ac_ext >&5
2278 eval "ac_cv_lib_$ac_lib_var=no"
2281 LIBS="$ac_save_LIBS"
2284 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2285 echo "$ac_t""yes" 1>&6
2286 ac_tr_lib=HAVE_LIB`echo be | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2287 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2288 cat >> confdefs.h <<EOF
2289 #define $ac_tr_lib 1
2295 echo "$ac_t""no" 1>&6
2298 echo $ac_n "checking for _ in -lgame""... $ac_c" 1>&6
2299 echo "configure:2300: checking for _ in -lgame" >&5
2300 ac_lib_var=`echo game'_'_ | sed 'y%./+-%__p_%'`
2301 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2302 echo $ac_n "(cached) $ac_c" 1>&6
2304 ac_save_LIBS="$LIBS"
2306 cat > conftest.$ac_ext <<EOF
2307 #line 2308 "configure"
2308 #include "confdefs.h"
2309 /* Override any gcc2 internal prototype to avoid an error. */
2310 /* We use char because int might match the return type of a gcc2
2311 builtin and then its argument prototype would still apply. */
2318 if { (eval echo configure:2319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2320 eval "ac_cv_lib_$ac_lib_var=yes"
2322 echo "configure: failed program was:" >&5
2323 cat conftest.$ac_ext >&5
2325 eval "ac_cv_lib_$ac_lib_var=no"
2328 LIBS="$ac_save_LIBS"
2331 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2332 echo "$ac_t""yes" 1>&6
2333 ac_tr_lib=HAVE_LIB`echo game | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2334 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2335 cat >> confdefs.h <<EOF
2336 #define $ac_tr_lib 1
2342 echo "$ac_t""no" 1>&6
2345 echo $ac_n "checking for _ in -lroot""... $ac_c" 1>&6
2346 echo "configure:2347: checking for _ in -lroot" >&5
2347 ac_lib_var=`echo root'_'_ | sed 'y%./+-%__p_%'`
2348 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2349 echo $ac_n "(cached) $ac_c" 1>&6
2351 ac_save_LIBS="$LIBS"
2353 cat > conftest.$ac_ext <<EOF
2354 #line 2355 "configure"
2355 #include "confdefs.h"
2356 /* Override any gcc2 internal prototype to avoid an error. */
2357 /* We use char because int might match the return type of a gcc2
2358 builtin and then its argument prototype would still apply. */
2365 if { (eval echo configure:2366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2367 eval "ac_cv_lib_$ac_lib_var=yes"
2369 echo "configure: failed program was:" >&5
2370 cat conftest.$ac_ext >&5
2372 eval "ac_cv_lib_$ac_lib_var=no"
2375 LIBS="$ac_save_LIBS"
2378 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2379 echo "$ac_t""yes" 1>&6
2380 ac_tr_lib=HAVE_LIB`echo root | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2381 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2382 cat >> confdefs.h <<EOF
2383 #define $ac_tr_lib 1
2389 echo "$ac_t""no" 1>&6
2392 echo $ac_n "checking for powl in -lm""... $ac_c" 1>&6
2393 echo "configure:2394: checking for powl in -lm" >&5
2394 ac_lib_var=`echo m'_'powl | sed 'y%./+-%__p_%'`
2395 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2396 echo $ac_n "(cached) $ac_c" 1>&6
2398 ac_save_LIBS="$LIBS"
2400 cat > conftest.$ac_ext <<EOF
2401 #line 2402 "configure"
2402 #include "confdefs.h"
2403 /* Override any gcc2 internal prototype to avoid an error. */
2404 /* We use char because int might match the return type of a gcc2
2405 builtin and then its argument prototype would still apply. */
2412 if { (eval echo configure:2413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2414 eval "ac_cv_lib_$ac_lib_var=yes"
2416 echo "configure: failed program was:" >&5
2417 cat conftest.$ac_ext >&5
2419 eval "ac_cv_lib_$ac_lib_var=no"
2422 LIBS="$ac_save_LIBS"
2425 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2426 echo "$ac_t""yes" 1>&6
2427 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2428 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2429 cat >> confdefs.h <<EOF
2430 #define $ac_tr_lib 1
2436 echo "$ac_t""no" 1>&6
2439 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
2440 echo "configure:2441: checking for pthread_create in -lpthread" >&5
2441 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
2442 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2443 echo $ac_n "(cached) $ac_c" 1>&6
2445 ac_save_LIBS="$LIBS"
2446 LIBS="-lpthread $LIBS"
2447 cat > conftest.$ac_ext <<EOF
2448 #line 2449 "configure"
2449 #include "confdefs.h"
2450 /* Override any gcc2 internal prototype to avoid an error. */
2451 /* We use char because int might match the return type of a gcc2
2452 builtin and then its argument prototype would still apply. */
2453 char pthread_create();
2459 if { (eval echo configure:2460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2461 eval "ac_cv_lib_$ac_lib_var=yes"
2463 echo "configure: failed program was:" >&5
2464 cat conftest.$ac_ext >&5
2466 eval "ac_cv_lib_$ac_lib_var=no"
2469 LIBS="$ac_save_LIBS"
2472 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2473 echo "$ac_t""yes" 1>&6
2474 ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2475 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2476 cat >> confdefs.h <<EOF
2477 #define $ac_tr_lib 1
2480 LIBS="-lpthread $LIBS"
2483 echo "$ac_t""no" 1>&6
2486 echo $ac_n "checking for thread_create in -lthreads""... $ac_c" 1>&6
2487 echo "configure:2488: checking for thread_create in -lthreads" >&5
2488 ac_lib_var=`echo threads'_'thread_create | sed 'y%./+-%__p_%'`
2489 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2490 echo $ac_n "(cached) $ac_c" 1>&6
2492 ac_save_LIBS="$LIBS"
2493 LIBS="-lthreads $LIBS"
2494 cat > conftest.$ac_ext <<EOF
2495 #line 2496 "configure"
2496 #include "confdefs.h"
2497 /* Override any gcc2 internal prototype to avoid an error. */
2498 /* We use char because int might match the return type of a gcc2
2499 builtin and then its argument prototype would still apply. */
2500 char thread_create();
2506 if { (eval echo configure:2507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2508 eval "ac_cv_lib_$ac_lib_var=yes"
2510 echo "configure: failed program was:" >&5
2511 cat conftest.$ac_ext >&5
2513 eval "ac_cv_lib_$ac_lib_var=no"
2516 LIBS="$ac_save_LIBS"
2519 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2520 echo "$ac_t""yes" 1>&6
2521 ac_tr_lib=HAVE_LIB`echo threads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2522 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2523 cat >> confdefs.h <<EOF
2524 #define $ac_tr_lib 1
2527 LIBS="-lthreads $LIBS"
2530 echo "$ac_t""no" 1>&6
2534 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
2535 echo "configure:2536: checking for getopt_long" >&5
2536 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
2537 echo $ac_n "(cached) $ac_c" 1>&6
2539 cat > conftest.$ac_ext <<EOF
2540 #line 2541 "configure"
2541 #include "confdefs.h"
2542 /* System header to define __stub macros and hopefully few prototypes,
2543 which can conflict with char getopt_long(); below. */
2545 /* Override any gcc2 internal prototype to avoid an error. */
2546 /* We use char because int might match the return type of a gcc2
2547 builtin and then its argument prototype would still apply. */
2552 /* The GNU C library defines this for functions which it implements
2553 to always fail with ENOSYS. Some functions are actually named
2554 something starting with __ and the normal name is an alias. */
2555 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
2563 if { (eval echo configure:2564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2565 eval "ac_cv_func_getopt_long=yes"
2567 echo "configure: failed program was:" >&5
2568 cat conftest.$ac_ext >&5
2570 eval "ac_cv_func_getopt_long=no"
2575 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
2576 echo "$ac_t""yes" 1>&6
2579 echo "$ac_t""no" 1>&6
2580 LIBOBJS="$LIBOBJS getopt.o getopt1.o"
2585 CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
2586 for ac_hdr in stddef.h
2588 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2589 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2590 echo "configure:2591: checking for $ac_hdr" >&5
2591 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2592 echo $ac_n "(cached) $ac_c" 1>&6
2594 cat > conftest.$ac_ext <<EOF
2595 #line 2596 "configure"
2596 #include "confdefs.h"
2599 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2600 { (eval echo configure:2601: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2601 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2602 if test -z "$ac_err"; then
2604 eval "ac_cv_header_$ac_safe=yes"
2607 echo "configure: failed program was:" >&5
2608 cat conftest.$ac_ext >&5
2610 eval "ac_cv_header_$ac_safe=no"
2614 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2615 echo "$ac_t""yes" 1>&6
2616 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2617 cat >> confdefs.h <<EOF
2618 #define $ac_tr_hdr 1
2622 echo "$ac_t""no" 1>&6
2626 for ac_hdr in getopt.h
2628 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2629 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2630 echo "configure:2631: checking for $ac_hdr" >&5
2631 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2632 echo $ac_n "(cached) $ac_c" 1>&6
2634 cat > conftest.$ac_ext <<EOF
2635 #line 2636 "configure"
2636 #include "confdefs.h"
2639 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2640 { (eval echo configure:2641: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2641 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2642 if test -z "$ac_err"; then
2644 eval "ac_cv_header_$ac_safe=yes"
2647 echo "configure: failed program was:" >&5
2648 cat conftest.$ac_ext >&5
2650 eval "ac_cv_header_$ac_safe=no"
2654 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2655 echo "$ac_t""yes" 1>&6
2656 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2657 cat >> confdefs.h <<EOF
2658 #define $ac_tr_hdr 1
2662 echo "$ac_t""no" 1>&6
2666 for ac_hdr in sys/sockio.h
2668 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2669 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2670 echo "configure:2671: checking for $ac_hdr" >&5
2671 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2672 echo $ac_n "(cached) $ac_c" 1>&6
2674 cat > conftest.$ac_ext <<EOF
2675 #line 2676 "configure"
2676 #include "confdefs.h"
2679 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2680 { (eval echo configure:2681: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2681 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2682 if test -z "$ac_err"; then
2684 eval "ac_cv_header_$ac_safe=yes"
2687 echo "configure: failed program was:" >&5
2688 cat conftest.$ac_ext >&5
2690 eval "ac_cv_header_$ac_safe=no"
2694 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2695 echo "$ac_t""yes" 1>&6
2696 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2697 cat >> confdefs.h <<EOF
2698 #define $ac_tr_hdr 1
2702 echo "$ac_t""no" 1>&6
2706 for ac_hdr in fcntl.h sys/ioctl.h sys/time.h unistd.h
2708 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2709 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2710 echo "configure:2711: checking for $ac_hdr" >&5
2711 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2712 echo $ac_n "(cached) $ac_c" 1>&6
2714 cat > conftest.$ac_ext <<EOF
2715 #line 2716 "configure"
2716 #include "confdefs.h"
2719 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2720 { (eval echo configure:2721: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2721 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2722 if test -z "$ac_err"; then
2724 eval "ac_cv_header_$ac_safe=yes"
2727 echo "configure: failed program was:" >&5
2728 cat conftest.$ac_ext >&5
2730 eval "ac_cv_header_$ac_safe=no"
2734 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2735 echo "$ac_t""yes" 1>&6
2736 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2737 cat >> confdefs.h <<EOF
2738 #define $ac_tr_hdr 1
2742 echo "$ac_t""no" 1>&6
2746 for ac_hdr in sys/soundcard.h machine/soundcard.h
2748 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2749 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2750 echo "configure:2751: checking for $ac_hdr" >&5
2751 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2752 echo $ac_n "(cached) $ac_c" 1>&6
2754 cat > conftest.$ac_ext <<EOF
2755 #line 2756 "configure"
2756 #include "confdefs.h"
2759 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2760 { (eval echo configure:2761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2761 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2762 if test -z "$ac_err"; then
2764 eval "ac_cv_header_$ac_safe=yes"
2767 echo "configure: failed program was:" >&5
2768 cat conftest.$ac_ext >&5
2770 eval "ac_cv_header_$ac_safe=no"
2774 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2775 echo "$ac_t""yes" 1>&6
2776 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2777 cat >> confdefs.h <<EOF
2778 #define $ac_tr_hdr 1
2782 echo "$ac_t""no" 1>&6
2786 for ac_hdr in dlfcn.h image.h
2788 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2789 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2790 echo "configure:2791: checking for $ac_hdr" >&5
2791 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2792 echo $ac_n "(cached) $ac_c" 1>&6
2794 cat > conftest.$ac_ext <<EOF
2795 #line 2796 "configure"
2796 #include "confdefs.h"
2799 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2800 { (eval echo configure:2801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2801 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2802 if test -z "$ac_err"; then
2804 eval "ac_cv_header_$ac_safe=yes"
2807 echo "configure: failed program was:" >&5
2808 cat conftest.$ac_ext >&5
2810 eval "ac_cv_header_$ac_safe=no"
2814 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2815 echo "$ac_t""yes" 1>&6
2816 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2817 cat >> confdefs.h <<EOF
2818 #define $ac_tr_hdr 1
2822 echo "$ac_t""no" 1>&6
2826 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
2828 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2829 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2830 echo "configure:2831: checking for $ac_hdr" >&5
2831 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2832 echo $ac_n "(cached) $ac_c" 1>&6
2834 cat > conftest.$ac_ext <<EOF
2835 #line 2836 "configure"
2836 #include "confdefs.h"
2839 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2840 { (eval echo configure:2841: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2841 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2842 if test -z "$ac_err"; then
2844 eval "ac_cv_header_$ac_safe=yes"
2847 echo "configure: failed program was:" >&5
2848 cat conftest.$ac_ext >&5
2850 eval "ac_cv_header_$ac_safe=no"
2854 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2855 echo "$ac_t""yes" 1>&6
2856 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2857 cat >> confdefs.h <<EOF
2858 #define $ac_tr_hdr 1
2862 echo "$ac_t""no" 1>&6
2866 for ac_hdr in machine/param.h
2868 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2869 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2870 echo "configure:2871: checking for $ac_hdr" >&5
2871 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2872 echo $ac_n "(cached) $ac_c" 1>&6
2874 cat > conftest.$ac_ext <<EOF
2875 #line 2876 "configure"
2876 #include "confdefs.h"
2879 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2880 { (eval echo configure:2881: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2881 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2882 if test -z "$ac_err"; then
2884 eval "ac_cv_header_$ac_safe=yes"
2887 echo "configure: failed program was:" >&5
2888 cat conftest.$ac_ext >&5
2890 eval "ac_cv_header_$ac_safe=no"
2894 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2895 echo "$ac_t""yes" 1>&6
2896 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2897 cat >> confdefs.h <<EOF
2898 #define $ac_tr_hdr 1
2902 echo "$ac_t""no" 1>&6
2907 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
2909 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2910 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2911 echo "configure:2912: checking for $ac_hdr" >&5
2912 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2913 echo $ac_n "(cached) $ac_c" 1>&6
2915 cat > conftest.$ac_ext <<EOF
2916 #line 2917 "configure"
2917 #include "confdefs.h"
2920 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2921 { (eval echo configure:2922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2922 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2923 if test -z "$ac_err"; then
2925 eval "ac_cv_header_$ac_safe=yes"
2928 echo "configure: failed program was:" >&5
2929 cat conftest.$ac_ext >&5
2931 eval "ac_cv_header_$ac_safe=no"
2935 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2936 echo "$ac_t""yes" 1>&6
2937 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2938 cat >> confdefs.h <<EOF
2939 #define $ac_tr_hdr 1
2943 echo "$ac_t""no" 1>&6
2950 CFLAGS="${CFLAGS} -Wall -Werror"
2951 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
2952 echo "configure:2953: checking for ntohl in sys/param.h" >&5
2953 cat > conftest.$ac_ext <<EOF
2954 #line 2955 "configure"
2955 #include "confdefs.h"
2956 #include <sys/param.h>
2957 void foo() { int meuh; ntohl(meuh); }
2962 if { (eval echo configure:2963: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2964 cat >> confdefs.h <<\EOF
2965 #define NTOHL_IN_SYS_PARAM_H 1
2968 echo "$ac_t""yes" 1>&6
2970 echo "configure: failed program was:" >&5
2971 cat conftest.$ac_ext >&5
2973 echo "$ac_t""no" 1>&6
2977 CFLAGS="${CFLAGS} -rdynamic"
2978 echo $ac_n "checking if \$CC accepts -rdynamic""... $ac_c" 1>&6
2979 echo "configure:2980: checking if \$CC accepts -rdynamic" >&5
2980 cat > conftest.$ac_ext <<EOF
2981 #line 2982 "configure"
2982 #include "confdefs.h"
2988 if { (eval echo configure:2989: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2990 DYNAMIC_FLAG="-rdynamic"
2991 echo "$ac_t""yes" 1>&6
2993 echo "configure: failed program was:" >&5
2994 cat conftest.$ac_ext >&5
2996 echo "$ac_t""no" 1>&6
3002 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
3003 echo "configure:3004: checking for boolean_t in sys/types.h" >&5
3004 cat > conftest.$ac_ext <<EOF
3005 #line 3006 "configure"
3006 #include "confdefs.h"
3007 #include <sys/types.h>
3008 void quux() { boolean_t foo; }
3013 if { (eval echo configure:3014: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3015 cat >> confdefs.h <<\EOF
3016 #define BOOLEAN_T_IN_SYS_TYPES_H 1
3019 echo "$ac_t""yes" 1>&6
3021 echo "configure: failed program was:" >&5
3022 cat conftest.$ac_ext >&5
3024 echo "$ac_t""no" 1>&6
3028 echo $ac_n "checking for working const""... $ac_c" 1>&6
3029 echo "configure:3030: checking for working const" >&5
3030 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3031 echo $ac_n "(cached) $ac_c" 1>&6
3033 cat > conftest.$ac_ext <<EOF
3034 #line 3035 "configure"
3035 #include "confdefs.h"
3039 /* Ultrix mips cc rejects this. */
3040 typedef int charset[2]; const charset x = {0,0};
3041 /* SunOS 4.1.1 cc rejects this. */
3042 char const *const *ccp;
3044 /* NEC SVR4.0.2 mips cc rejects this. */
3045 struct point {int x, y;};
3046 static struct point const zero = {0,0};
3047 /* AIX XL C 1.02.0.0 rejects this.
3048 It does not let you subtract one const X* pointer from another in an arm
3049 of an if-expression whose if-part is not a constant expression */
3050 const char *g = "string";
3051 ccp = &g + (g ? g-g : 0);
3052 /* HPUX 7.0 cc rejects these. */
3055 ccp = (char const *const *) p;
3056 { /* SCO 3.2v4 cc rejects this. */
3058 char const *s = 0 ? (char *) 0 : (char const *) 0;
3062 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3064 const int *foo = &x[0];
3067 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3068 typedef const int *iptr;
3072 { /* AIX XL C 1.02.0.0 rejects this saying
3073 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3074 struct s { int j; const int *ap[3]; };
3075 struct s *b; b->j = 5;
3077 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3083 if { (eval echo configure:3084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3087 echo "configure: failed program was:" >&5
3088 cat conftest.$ac_ext >&5
3095 echo "$ac_t""$ac_cv_c_const" 1>&6
3096 if test $ac_cv_c_const = no; then
3097 cat >> confdefs.h <<\EOF
3103 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3104 echo "configure:3105: checking for ANSI C header files" >&5
3105 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3106 echo $ac_n "(cached) $ac_c" 1>&6
3108 cat > conftest.$ac_ext <<EOF
3109 #line 3110 "configure"
3110 #include "confdefs.h"
3116 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3117 { (eval echo configure:3118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3118 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3119 if test -z "$ac_err"; then
3121 ac_cv_header_stdc=yes
3124 echo "configure: failed program was:" >&5
3125 cat conftest.$ac_ext >&5
3127 ac_cv_header_stdc=no
3131 if test $ac_cv_header_stdc = yes; then
3132 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3133 cat > conftest.$ac_ext <<EOF
3134 #line 3135 "configure"
3135 #include "confdefs.h"
3138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3139 egrep "memchr" >/dev/null 2>&1; then
3143 ac_cv_header_stdc=no
3149 if test $ac_cv_header_stdc = yes; then
3150 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3151 cat > conftest.$ac_ext <<EOF
3152 #line 3153 "configure"
3153 #include "confdefs.h"
3156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3157 egrep "free" >/dev/null 2>&1; then
3161 ac_cv_header_stdc=no
3167 if test $ac_cv_header_stdc = yes; then
3168 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3169 if test "$cross_compiling" = yes; then
3172 cat > conftest.$ac_ext <<EOF
3173 #line 3174 "configure"
3174 #include "confdefs.h"
3176 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3177 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3178 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3179 int main () { int i; for (i = 0; i < 256; i++)
3180 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3184 if { (eval echo configure:3185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3188 echo "configure: failed program was:" >&5
3189 cat conftest.$ac_ext >&5
3191 ac_cv_header_stdc=no
3199 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3200 if test $ac_cv_header_stdc = yes; then
3201 cat >> confdefs.h <<\EOF
3202 #define STDC_HEADERS 1
3207 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3208 echo "configure:3209: checking for size_t" >&5
3209 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3210 echo $ac_n "(cached) $ac_c" 1>&6
3212 cat > conftest.$ac_ext <<EOF
3213 #line 3214 "configure"
3214 #include "confdefs.h"
3215 #include <sys/types.h>
3221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3222 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3224 ac_cv_type_size_t=yes
3227 ac_cv_type_size_t=no
3232 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3233 if test $ac_cv_type_size_t = no; then
3234 cat >> confdefs.h <<\EOF
3235 #define size_t unsigned
3240 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3241 echo "configure:3242: checking whether time.h and sys/time.h may both be included" >&5
3242 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3243 echo $ac_n "(cached) $ac_c" 1>&6
3245 cat > conftest.$ac_ext <<EOF
3246 #line 3247 "configure"
3247 #include "confdefs.h"
3248 #include <sys/types.h>
3249 #include <sys/time.h>
3255 if { (eval echo configure:3256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3257 ac_cv_header_time=yes
3259 echo "configure: failed program was:" >&5
3260 cat conftest.$ac_ext >&5
3262 ac_cv_header_time=no
3267 echo "$ac_t""$ac_cv_header_time" 1>&6
3268 if test $ac_cv_header_time = yes; then
3269 cat >> confdefs.h <<\EOF
3270 #define TIME_WITH_SYS_TIME 1
3276 for ac_hdr in sys/ioctl.h
3278 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3279 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3280 echo "configure:3281: checking for $ac_hdr" >&5
3281 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3282 echo $ac_n "(cached) $ac_c" 1>&6
3284 cat > conftest.$ac_ext <<EOF
3285 #line 3286 "configure"
3286 #include "confdefs.h"
3289 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3290 { (eval echo configure:3291: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3291 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3292 if test -z "$ac_err"; then
3294 eval "ac_cv_header_$ac_safe=yes"
3297 echo "configure: failed program was:" >&5
3298 cat conftest.$ac_ext >&5
3300 eval "ac_cv_header_$ac_safe=no"
3304 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3305 echo "$ac_t""yes" 1>&6
3306 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3307 cat >> confdefs.h <<EOF
3308 #define $ac_tr_hdr 1
3310 for ac_hdr in linux/cdrom.h
3312 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3313 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3314 echo "configure:3315: checking for $ac_hdr" >&5
3315 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3316 echo $ac_n "(cached) $ac_c" 1>&6
3318 cat > conftest.$ac_ext <<EOF
3319 #line 3320 "configure"
3320 #include "confdefs.h"
3323 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3324 { (eval echo configure:3325: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3325 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3326 if test -z "$ac_err"; then
3328 eval "ac_cv_header_$ac_safe=yes"
3331 echo "configure: failed program was:" >&5
3332 cat conftest.$ac_ext >&5
3334 eval "ac_cv_header_$ac_safe=no"
3338 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3339 echo "$ac_t""yes" 1>&6
3340 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3341 cat >> confdefs.h <<EOF
3342 #define $ac_tr_hdr 1
3346 echo "$ac_t""no" 1>&6
3350 cat > conftest.$ac_ext <<EOF
3351 #line 3352 "configure"
3352 #include "confdefs.h"
3353 #include <linux/cdrom.h>
3355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3356 egrep "dvd" >/dev/null 2>&1; then
3358 cat >> confdefs.h <<\EOF
3366 echo "$ac_t""no" 1>&6
3371 PLUGINS=${PLUGINS}"ps ts dvd yuv idct idctclassic motion ";
3374 # Check whether --enable-ppro or --disable-ppro was given.
3375 if test "${enable_ppro+set}" = set; then
3376 enableval="$enable_ppro"
3377 if test x$enableval = xyes; then ARCH=${ARCH}" ppro"; fi
3379 if test x${host_cpu} = xi686; then ARCH=${ARCH}" ppro"; fi
3382 # Check whether --enable-mmx or --disable-mmx was given.
3383 if test "${enable_mmx+set}" = set; then
3384 enableval="$enable_mmx"
3385 if test x$enableval = xyes; then ARCH=${ARCH}" mmx"; PLUGINS=${PLUGINS}"yuvmmx motionmmx motionmmxext idctmmx idctmmxext "; fi
3387 if test x${host_cpu} = xi686 -o x${host_cpu} = xi586; then ARCH=${ARCH}" mmx"; PLUGINS=${PLUGINS}"yuvmmx motionmmx motionmmxext idctmmx idctmmxext "; fi
3390 # Check whether --enable-debug or --disable-debug was given.
3391 if test "${enable_debug+set}" = set; then
3392 enableval="$enable_debug"
3393 if test x$enableval = xyes; then DEBUG=1; fi
3396 # Check whether --enable-stats or --disable-stats was given.
3397 if test "${enable_stats+set}" = set; then
3398 enableval="$enable_stats"
3399 if test x$enableval = xyes; then STATS=1; fi
3402 # Check whether --enable-optimizations or --disable-optimizations was given.
3403 if test "${enable_optimizations+set}" = set; then
3404 enableval="$enable_optimizations"
3405 if test x$enableval = xno; then OPTIMS=0; fi
3414 if test x$host_os = xbeos; then
3415 PLUGINS=${PLUGINS}"dummy null beos "
3419 # Check whether --enable-dummy or --disable-dummy was given.
3420 if test "${enable_dummy+set}" = set; then
3421 enableval="$enable_dummy"
3425 if test x$enable_dummy != xno; then PLUGINS=${PLUGINS}"dummy "; fi
3426 # Check whether --enable-null or --disable-null was given.
3427 if test "${enable_null+set}" = set; then
3428 enableval="$enable_null"
3432 if test x$enable_null != xno; then PLUGINS=${PLUGINS}"null "; fi
3433 # Check whether --enable-dsp or --disable-dsp was given.
3434 if test "${enable_dsp+set}" = set; then
3435 enableval="$enable_dsp"
3439 if test x$enable_dsp != xno; then PLUGINS=${PLUGINS}"dsp "; fi
3440 # Check whether --enable-esd or --disable-esd was given.
3441 if test "${enable_esd+set}" = set; then
3442 enableval="$enable_esd"
3443 if test x$enable_esd = xyes; then PLUGINS=${PLUGINS}"esd "; fi
3446 # Check whether --enable-fb or --disable-fb was given.
3447 if test "${enable_fb+set}" = set; then
3448 enableval="$enable_fb"
3449 if test x$enable_fb = xyes; then PLUGINS=${PLUGINS}"fb "; ALIASES=${ALIASES}"fbvlc "; fi
3452 # Check whether --with-ggi or --without-ggi was given.
3453 if test "${with_ggi+set}" = set; then
3455 PLUGINS=${PLUGINS}"ggi ";
3456 if test "x$withval" != "xyes";
3458 LIB_GGI="-l"$withval
3464 # Check whether --with-sdl or --without-sdl was given.
3465 if test "${with_sdl+set}" = set; then
3467 PLUGINS=${PLUGINS}"sdl ";
3468 if test "x$withval" != "xyes";
3470 LIB_SDL="-l"$withval
3476 # Check whether --with-glide or --without-glide was given.
3477 if test "${with_glide+set}" = set; then
3478 withval="$with_glide"
3479 PLUGINS=${PLUGINS}"glide ";
3480 if test "x$withval" != "xyes";
3482 LIB_GLIDE="-l"$withval
3484 LIB_GLIDE="-lglide2x"
3488 # Check whether --enable-gnome or --disable-gnome was given.
3489 if test "${enable_gnome+set}" = set; then
3490 enableval="$enable_gnome"
3491 if test x$enable_gnome = xyes; then PLUGINS=${PLUGINS}"gnome "; ALIASES=${ALIASES}"gvlc "; fi
3494 # Check whether --enable-x11 or --disable-x11 was given.
3495 if test "${enable_x11+set}" = set; then
3496 enableval="$enable_x11"
3500 if test x$enable_x11 != xno; then PLUGINS=${PLUGINS}"x11 "; fi
3501 # Check whether --enable-alsa or --disable-alsa was given.
3502 if test "${enable_alsa+set}" = set; then
3503 enableval="$enable_alsa"
3504 if test x$enable_alsa = xyes; then ac_safe=`echo "sys/asoundlib.h" | sed 'y%./+-%__p_%'`
3505 echo $ac_n "checking for sys/asoundlib.h""... $ac_c" 1>&6
3506 echo "configure:3507: checking for sys/asoundlib.h" >&5
3507 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3508 echo $ac_n "(cached) $ac_c" 1>&6
3510 cat > conftest.$ac_ext <<EOF
3511 #line 3512 "configure"
3512 #include "confdefs.h"
3513 #include <sys/asoundlib.h>
3515 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3516 { (eval echo configure:3517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3517 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3518 if test -z "$ac_err"; then
3520 eval "ac_cv_header_$ac_safe=yes"
3523 echo "configure: failed program was:" >&5
3524 cat conftest.$ac_ext >&5
3526 eval "ac_cv_header_$ac_safe=no"
3530 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3531 echo "$ac_t""yes" 1>&6
3532 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
3533 echo "configure:3534: checking for main in -lasound" >&5
3534 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
3535 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3536 echo $ac_n "(cached) $ac_c" 1>&6
3538 ac_save_LIBS="$LIBS"
3539 LIBS="-lasound $LIBS"
3540 cat > conftest.$ac_ext <<EOF
3541 #line 3542 "configure"
3542 #include "confdefs.h"
3548 if { (eval echo configure:3549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3550 eval "ac_cv_lib_$ac_lib_var=yes"
3552 echo "configure: failed program was:" >&5
3553 cat conftest.$ac_ext >&5
3555 eval "ac_cv_lib_$ac_lib_var=no"
3558 LIBS="$ac_save_LIBS"
3561 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3562 echo "$ac_t""yes" 1>&6
3565 echo "$ac_t""no" 1>&6
3570 echo "$ac_t""no" 1>&6
3573 if test $have_alsa = true; then PLUGINS=${PLUGINS}"alsa "; fi; fi
3591 cat > confcache <<\EOF
3592 # This file is a shell script that caches the results of configure
3593 # tests run on this system so they can be shared between configure
3594 # scripts and configure runs. It is not useful on other systems.
3595 # If it contains results you don't want to keep, you may remove or edit it.
3597 # By default, configure uses ./config.cache as the cache file,
3598 # creating it if it does not exist already. You can give configure
3599 # the --cache-file=FILE option to use a different cache file; that is
3600 # what configure does when it calls configure scripts in
3601 # subdirectories, so they share the cache.
3602 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3603 # config.status only pays attention to the cache file if you give it the
3604 # --recheck option to rerun configure.
3607 # The following way of writing the cache mishandles newlines in values,
3608 # but we know of no workaround that is simple, portable, and efficient.
3609 # So, don't put newlines in cache variables' values.
3610 # Ultrix sh set writes to stderr and can't be redirected directly,
3611 # and sets the high bit in the cache file unless we assign to the vars.
3613 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3615 # `set' does not quote correctly, so add quotes (double-quote substitution
3616 # turns \\\\ into \\, and sed turns \\ into \).
3618 -e "s/'/'\\\\''/g" \
3619 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3622 # `set' quotes correctly as required by POSIX, so do not add quotes.
3623 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3626 if cmp -s $cache_file confcache; then
3629 if test -w $cache_file; then
3630 echo "updating cache $cache_file"
3631 cat confcache > $cache_file
3633 echo "not updating unwritable cache $cache_file"
3638 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3640 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3641 # Let make expand exec_prefix.
3642 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3644 # Any assignment to VPATH causes Sun make to only execute
3645 # the first set of double-colon rules, so remove it if not needed.
3646 # If there is a colon in the path, we need to keep it.
3647 if test "x$srcdir" = x.; then
3648 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3651 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3653 DEFS=-DHAVE_CONFIG_H
3655 # Without the "./", some shells look in PATH for config.status.
3656 : ${CONFIG_STATUS=./config.status}
3658 echo creating $CONFIG_STATUS
3659 rm -f $CONFIG_STATUS
3660 cat > $CONFIG_STATUS <<EOF
3662 # Generated automatically by configure.
3663 # Run this file to recreate the current configuration.
3664 # This directory was configured as follows,
3665 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3667 # $0 $ac_configure_args
3669 # Compiler output produced by configure, useful for debugging
3670 # configure, is in ./config.log if it exists.
3672 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3675 case "\$ac_option" in
3676 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3677 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3678 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3679 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3680 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3682 -help | --help | --hel | --he | --h)
3683 echo "\$ac_cs_usage"; exit 0 ;;
3684 *) echo "\$ac_cs_usage"; exit 1 ;;
3688 ac_given_srcdir=$srcdir
3689 ac_given_INSTALL="$INSTALL"
3691 trap 'rm -fr `echo "Makefile include/config.h include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3693 cat >> $CONFIG_STATUS <<EOF
3695 # Protect against being on the right side of a sed subst in config.status.
3696 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3697 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3701 s%@CFLAGS@%$CFLAGS%g
3702 s%@CPPFLAGS@%$CPPFLAGS%g
3703 s%@CXXFLAGS@%$CXXFLAGS%g
3704 s%@FFLAGS@%$FFLAGS%g
3706 s%@LDFLAGS@%$LDFLAGS%g
3708 s%@exec_prefix@%$exec_prefix%g
3709 s%@prefix@%$prefix%g
3710 s%@program_transform_name@%$program_transform_name%g
3711 s%@bindir@%$bindir%g
3712 s%@sbindir@%$sbindir%g
3713 s%@libexecdir@%$libexecdir%g
3714 s%@datadir@%$datadir%g
3715 s%@sysconfdir@%$sysconfdir%g
3716 s%@sharedstatedir@%$sharedstatedir%g
3717 s%@localstatedir@%$localstatedir%g
3718 s%@libdir@%$libdir%g
3719 s%@includedir@%$includedir%g
3720 s%@oldincludedir@%$oldincludedir%g
3721 s%@infodir@%$infodir%g
3722 s%@mandir@%$mandir%g
3724 s%@host_alias@%$host_alias%g
3725 s%@host_cpu@%$host_cpu%g
3726 s%@host_vendor@%$host_vendor%g
3727 s%@host_os@%$host_os%g
3728 s%@VLC_VERSION@%$VLC_VERSION%g
3729 s%@VLC_CODENAME@%$VLC_CODENAME%g
3730 s%@SET_MAKE@%$SET_MAKE%g
3733 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3734 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3735 s%@INSTALL_DATA@%$INSTALL_DATA%g
3736 s%@LIBOBJS@%$LIBOBJS%g
3739 s%@PLUGINS@%$PLUGINS%g
3740 s%@ALIASES@%$ALIASES%g
3743 s%@OPTIMS@%$OPTIMS%g
3744 s%@DYNAMIC_FLAG@%$DYNAMIC_FLAG%g
3745 s%@LIB_SDL@%$LIB_SDL%g
3746 s%@LIB_GLIDE@%$LIB_GLIDE%g
3747 s%@LIB_GGI@%$LIB_GGI%g
3752 cat >> $CONFIG_STATUS <<\EOF
3754 # Split the substitutions into bite-sized pieces for seds with
3755 # small command number limits, like on Digital OSF/1 and HP-UX.
3756 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3757 ac_file=1 # Number of current file.
3758 ac_beg=1 # First line for current file.
3759 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3762 while $ac_more_lines; do
3763 if test $ac_beg -gt 1; then
3764 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3766 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3768 if test ! -s conftest.s$ac_file; then
3770 rm -f conftest.s$ac_file
3772 if test -z "$ac_sed_cmds"; then
3773 ac_sed_cmds="sed -f conftest.s$ac_file"
3775 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3777 ac_file=`expr $ac_file + 1`
3779 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3782 if test -z "$ac_sed_cmds"; then
3787 cat >> $CONFIG_STATUS <<EOF
3789 CONFIG_FILES=\${CONFIG_FILES-"Makefile include/config.h"}
3791 cat >> $CONFIG_STATUS <<\EOF
3792 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3793 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3795 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3796 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3797 *) ac_file_in="${ac_file}.in" ;;
3800 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3802 # Remove last slash and all that follows it. Not all systems have dirname.
3803 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3804 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3805 # The file is in a subdirectory.
3806 test ! -d "$ac_dir" && mkdir "$ac_dir"
3807 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3808 # A "../" for each directory in $ac_dir_suffix.
3809 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3811 ac_dir_suffix= ac_dots=
3814 case "$ac_given_srcdir" in
3816 if test -z "$ac_dots"; then top_srcdir=.
3817 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3818 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3820 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3821 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3824 case "$ac_given_INSTALL" in
3825 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3826 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3829 echo creating "$ac_file"
3831 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3833 *Makefile*) ac_comsub="1i\\
3834 # $configure_input" ;;
3838 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3840 s%@configure_input@%$configure_input%g
3841 s%@srcdir@%$srcdir%g
3842 s%@top_srcdir@%$top_srcdir%g
3843 s%@INSTALL@%$INSTALL%g
3844 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3848 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3849 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3851 # ac_d sets the value in "#define NAME VALUE" lines.
3852 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3853 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3856 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3857 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3858 ac_uB='\([ ]\)%\1#\2define\3'
3861 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3862 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3863 ac_eB='$%\1#\2define\3'
3867 if test "${CONFIG_HEADERS+set}" != set; then
3869 cat >> $CONFIG_STATUS <<EOF
3870 CONFIG_HEADERS="include/defs.h"
3872 cat >> $CONFIG_STATUS <<\EOF
3874 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3875 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3877 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3878 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3879 *) ac_file_in="${ac_file}.in" ;;
3882 echo creating $ac_file
3884 rm -f conftest.frag conftest.in conftest.out
3885 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3886 cat $ac_file_inputs > conftest.in
3890 # Transform confdefs.h into a sed script conftest.vals that substitutes
3891 # the proper values into config.h.in to produce config.h. And first:
3892 # Protect against being on the right side of a sed subst in config.status.
3893 # Protect against being in an unquoted here document in config.status.
3895 cat > conftest.hdr <<\EOF
3898 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3902 sed -n -f conftest.hdr confdefs.h > conftest.vals
3905 # This sed command replaces #undef with comments. This is necessary, for
3906 # example, in the case of _POSIX_SOURCE, which is predefined and required
3907 # on some systems where configure will not decide to define it.
3908 cat >> conftest.vals <<\EOF
3909 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3912 # Break up conftest.vals because some shells have a limit on
3913 # the size of here documents, and old seds have small limits too.
3918 ac_lines=`grep -c . conftest.vals`
3919 # grep -c gives empty output for an empty file on some AIX systems.
3920 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3921 # Write a limited-size here document to conftest.frag.
3922 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3923 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3925 sed -f conftest.frag conftest.in > conftest.out
3927 mv conftest.out conftest.in
3929 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3931 mv conftest.tail conftest.vals
3935 cat >> $CONFIG_STATUS <<\EOF
3936 rm -f conftest.frag conftest.h
3937 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3938 cat conftest.in >> conftest.h
3940 if cmp -s $ac_file conftest.h 2>/dev/null; then
3941 echo "$ac_file is unchanged"
3944 # Remove last slash and all that follows it. Not all systems have dirname.
3945 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3946 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3947 # The file is in a subdirectory.
3948 test ! -d "$ac_dir" && mkdir "$ac_dir"
3951 mv conftest.h $ac_file
3956 cat >> $CONFIG_STATUS <<EOF
3959 cat >> $CONFIG_STATUS <<\EOF
3963 chmod +x $CONFIG_STATUS
3964 rm -fr confdefs* $ac_clean_files
3965 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3971 vlc version : ${VLC_VERSION}
3973 architecture : ${ARCH}
3974 debug mode : ${DEBUG}
3975 statistics : ${STATS}
3976 optimizations : ${OPTIMS}
3977 plugins : ${PLUGINS}
3978 vlc aliases : ${ALIASES}