3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --disable-ppro Disable PentiumPro optimizations (default enabled for x86)"
17 --disable-mmx Disable MMX optimizations (default enabled for x86)"
19 --enable-debug Enable debug mode (default disabled)"
21 --enable-stats Enable printing of statistics (default disabled)"
23 --disable-optimizations Disable compiler optimizations (default enabled)"
25 --disable-dummy dummy module (default enabled)"
27 --disable-null Null module (default enabled)"
29 --disable-dsp Linux /dev/dsp support (default enabled)"
31 --enable-esd Esound library support (default disabled)"
33 --enable-fb Linux framebuffer support (default disabled)"
35 --with-ggi[=name] GGI support (default disabled)"
37 --with-sdl[=name] SDL support (default enabled)"
39 --with-glide[=name] Glide (3dfx) support (default disabled)"
41 --disable-gnome Gnome support (default enabled)"
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;
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 /* This mess was copied from the GNU getpagesize.h. */
1980 #ifndef HAVE_GETPAGESIZE
1981 # ifdef HAVE_UNISTD_H
1982 # include <unistd.h>
1985 /* Assume that all systems that can run configure have sys/param.h. */
1986 # ifndef HAVE_SYS_PARAM_H
1987 # define HAVE_SYS_PARAM_H 1
1990 # ifdef _SC_PAGESIZE
1991 # define getpagesize() sysconf(_SC_PAGESIZE)
1992 # else /* no _SC_PAGESIZE */
1993 # ifdef HAVE_SYS_PARAM_H
1994 # include <sys/param.h>
1995 # ifdef EXEC_PAGESIZE
1996 # define getpagesize() EXEC_PAGESIZE
1997 # else /* no EXEC_PAGESIZE */
1999 # define getpagesize() NBPG * CLSIZE
2002 # endif /* no CLSIZE */
2003 # else /* no NBPG */
2005 # define getpagesize() NBPC
2006 # else /* no NBPC */
2008 # define getpagesize() PAGESIZE
2009 # endif /* PAGESIZE */
2010 # endif /* no NBPC */
2011 # endif /* no NBPG */
2012 # endif /* no EXEC_PAGESIZE */
2013 # else /* no HAVE_SYS_PARAM_H */
2014 # define getpagesize() 8192 /* punt totally */
2015 # endif /* no HAVE_SYS_PARAM_H */
2016 # endif /* no _SC_PAGESIZE */
2018 #endif /* no HAVE_GETPAGESIZE */
2021 extern "C" { void *malloc(unsigned); }
2029 char *data, *data2, *data3;
2033 pagesize = getpagesize();
2036 * First, make a file with some known garbage in it.
2038 data = malloc(pagesize);
2041 for (i = 0; i < pagesize; ++i)
2042 *(data + i) = rand();
2044 fd = creat("conftestmmap", 0600);
2047 if (write(fd, data, pagesize) != pagesize)
2052 * Next, try to mmap the file at a fixed address which
2053 * already has something else allocated at it. If we can,
2054 * also make sure that we see the same garbage.
2056 fd = open("conftestmmap", O_RDWR);
2059 data2 = malloc(2 * pagesize);
2062 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2063 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2064 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2066 for (i = 0; i < pagesize; ++i)
2067 if (*(data + i) != *(data2 + i))
2071 * Finally, make sure that changes to the mapped area
2072 * do not percolate back to the file as seen by read().
2073 * (This is a bug on some variants of i386 svr4.0.)
2075 for (i = 0; i < pagesize; ++i)
2076 *(data2 + i) = *(data2 + i) + 1;
2077 data3 = malloc(pagesize);
2080 if (read(fd, data3, pagesize) != pagesize)
2082 for (i = 0; i < pagesize; ++i)
2083 if (*(data + i) != *(data3 + i))
2086 unlink("conftestmmap");
2091 if { (eval echo configure:2092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2093 ac_cv_func_mmap_fixed_mapped=yes
2095 echo "configure: failed program was:" >&5
2096 cat conftest.$ac_ext >&5
2098 ac_cv_func_mmap_fixed_mapped=no
2105 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2106 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2107 cat >> confdefs.h <<\EOF
2113 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2114 echo "configure:2115: checking return type of signal handlers" >&5
2115 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2116 echo $ac_n "(cached) $ac_c" 1>&6
2118 cat > conftest.$ac_ext <<EOF
2119 #line 2120 "configure"
2120 #include "confdefs.h"
2121 #include <sys/types.h>
2127 extern "C" void (*signal (int, void (*)(int)))(int);
2129 void (*signal ()) ();
2136 if { (eval echo configure:2137: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2138 ac_cv_type_signal=void
2140 echo "configure: failed program was:" >&5
2141 cat conftest.$ac_ext >&5
2143 ac_cv_type_signal=int
2148 echo "$ac_t""$ac_cv_type_signal" 1>&6
2149 cat >> confdefs.h <<EOF
2150 #define RETSIGTYPE $ac_cv_type_signal
2154 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2155 echo "configure:2156: checking for dlopen in -ldl" >&5
2156 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2157 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2158 echo $ac_n "(cached) $ac_c" 1>&6
2160 ac_save_LIBS="$LIBS"
2162 cat > conftest.$ac_ext <<EOF
2163 #line 2164 "configure"
2164 #include "confdefs.h"
2165 /* Override any gcc2 internal prototype to avoid an error. */
2166 /* We use char because int might match the return type of a gcc2
2167 builtin and then its argument prototype would still apply. */
2174 if { (eval echo configure:2175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2176 eval "ac_cv_lib_$ac_lib_var=yes"
2178 echo "configure: failed program was:" >&5
2179 cat conftest.$ac_ext >&5
2181 eval "ac_cv_lib_$ac_lib_var=no"
2184 LIBS="$ac_save_LIBS"
2187 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2188 echo "$ac_t""yes" 1>&6
2189 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2190 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2191 cat >> confdefs.h <<EOF
2192 #define $ac_tr_lib 1
2198 echo "$ac_t""no" 1>&6
2201 echo $ac_n "checking for optarg in -lgnugetopt""... $ac_c" 1>&6
2202 echo "configure:2203: checking for optarg in -lgnugetopt" >&5
2203 ac_lib_var=`echo gnugetopt'_'optarg | sed 'y%./+-%__p_%'`
2204 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2205 echo $ac_n "(cached) $ac_c" 1>&6
2207 ac_save_LIBS="$LIBS"
2208 LIBS="-lgnugetopt $LIBS"
2209 cat > conftest.$ac_ext <<EOF
2210 #line 2211 "configure"
2211 #include "confdefs.h"
2212 /* Override any gcc2 internal prototype to avoid an error. */
2213 /* We use char because int might match the return type of a gcc2
2214 builtin and then its argument prototype would still apply. */
2221 if { (eval echo configure:2222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2223 eval "ac_cv_lib_$ac_lib_var=yes"
2225 echo "configure: failed program was:" >&5
2226 cat conftest.$ac_ext >&5
2228 eval "ac_cv_lib_$ac_lib_var=no"
2231 LIBS="$ac_save_LIBS"
2234 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2235 echo "$ac_t""yes" 1>&6
2236 ac_tr_lib=HAVE_LIB`echo gnugetopt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2237 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2238 cat >> confdefs.h <<EOF
2239 #define $ac_tr_lib 1
2242 LIBS="-lgnugetopt $LIBS"
2245 echo "$ac_t""no" 1>&6
2248 echo $ac_n "checking for _ in -lbe""... $ac_c" 1>&6
2249 echo "configure:2250: checking for _ in -lbe" >&5
2250 ac_lib_var=`echo be'_'_ | sed 'y%./+-%__p_%'`
2251 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2252 echo $ac_n "(cached) $ac_c" 1>&6
2254 ac_save_LIBS="$LIBS"
2256 cat > conftest.$ac_ext <<EOF
2257 #line 2258 "configure"
2258 #include "confdefs.h"
2259 /* Override any gcc2 internal prototype to avoid an error. */
2260 /* We use char because int might match the return type of a gcc2
2261 builtin and then its argument prototype would still apply. */
2268 if { (eval echo configure:2269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2270 eval "ac_cv_lib_$ac_lib_var=yes"
2272 echo "configure: failed program was:" >&5
2273 cat conftest.$ac_ext >&5
2275 eval "ac_cv_lib_$ac_lib_var=no"
2278 LIBS="$ac_save_LIBS"
2281 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2282 echo "$ac_t""yes" 1>&6
2283 ac_tr_lib=HAVE_LIB`echo be | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2284 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2285 cat >> confdefs.h <<EOF
2286 #define $ac_tr_lib 1
2292 echo "$ac_t""no" 1>&6
2295 echo $ac_n "checking for _ in -lgame""... $ac_c" 1>&6
2296 echo "configure:2297: checking for _ in -lgame" >&5
2297 ac_lib_var=`echo game'_'_ | sed 'y%./+-%__p_%'`
2298 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2299 echo $ac_n "(cached) $ac_c" 1>&6
2301 ac_save_LIBS="$LIBS"
2303 cat > conftest.$ac_ext <<EOF
2304 #line 2305 "configure"
2305 #include "confdefs.h"
2306 /* Override any gcc2 internal prototype to avoid an error. */
2307 /* We use char because int might match the return type of a gcc2
2308 builtin and then its argument prototype would still apply. */
2315 if { (eval echo configure:2316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2317 eval "ac_cv_lib_$ac_lib_var=yes"
2319 echo "configure: failed program was:" >&5
2320 cat conftest.$ac_ext >&5
2322 eval "ac_cv_lib_$ac_lib_var=no"
2325 LIBS="$ac_save_LIBS"
2328 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2329 echo "$ac_t""yes" 1>&6
2330 ac_tr_lib=HAVE_LIB`echo game | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2331 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2332 cat >> confdefs.h <<EOF
2333 #define $ac_tr_lib 1
2339 echo "$ac_t""no" 1>&6
2342 echo $ac_n "checking for _ in -lroot""... $ac_c" 1>&6
2343 echo "configure:2344: checking for _ in -lroot" >&5
2344 ac_lib_var=`echo root'_'_ | sed 'y%./+-%__p_%'`
2345 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2346 echo $ac_n "(cached) $ac_c" 1>&6
2348 ac_save_LIBS="$LIBS"
2350 cat > conftest.$ac_ext <<EOF
2351 #line 2352 "configure"
2352 #include "confdefs.h"
2353 /* Override any gcc2 internal prototype to avoid an error. */
2354 /* We use char because int might match the return type of a gcc2
2355 builtin and then its argument prototype would still apply. */
2362 if { (eval echo configure:2363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2364 eval "ac_cv_lib_$ac_lib_var=yes"
2366 echo "configure: failed program was:" >&5
2367 cat conftest.$ac_ext >&5
2369 eval "ac_cv_lib_$ac_lib_var=no"
2372 LIBS="$ac_save_LIBS"
2375 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2376 echo "$ac_t""yes" 1>&6
2377 ac_tr_lib=HAVE_LIB`echo root | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2378 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2379 cat >> confdefs.h <<EOF
2380 #define $ac_tr_lib 1
2386 echo "$ac_t""no" 1>&6
2389 echo $ac_n "checking for powl in -lm""... $ac_c" 1>&6
2390 echo "configure:2391: checking for powl in -lm" >&5
2391 ac_lib_var=`echo m'_'powl | sed 'y%./+-%__p_%'`
2392 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2393 echo $ac_n "(cached) $ac_c" 1>&6
2395 ac_save_LIBS="$LIBS"
2397 cat > conftest.$ac_ext <<EOF
2398 #line 2399 "configure"
2399 #include "confdefs.h"
2400 /* Override any gcc2 internal prototype to avoid an error. */
2401 /* We use char because int might match the return type of a gcc2
2402 builtin and then its argument prototype would still apply. */
2409 if { (eval echo configure:2410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2411 eval "ac_cv_lib_$ac_lib_var=yes"
2413 echo "configure: failed program was:" >&5
2414 cat conftest.$ac_ext >&5
2416 eval "ac_cv_lib_$ac_lib_var=no"
2419 LIBS="$ac_save_LIBS"
2422 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2423 echo "$ac_t""yes" 1>&6
2424 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2425 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2426 cat >> confdefs.h <<EOF
2427 #define $ac_tr_lib 1
2433 echo "$ac_t""no" 1>&6
2436 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
2437 echo "configure:2438: checking for pthread_create in -lpthread" >&5
2438 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
2439 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2440 echo $ac_n "(cached) $ac_c" 1>&6
2442 ac_save_LIBS="$LIBS"
2443 LIBS="-lpthread $LIBS"
2444 cat > conftest.$ac_ext <<EOF
2445 #line 2446 "configure"
2446 #include "confdefs.h"
2447 /* Override any gcc2 internal prototype to avoid an error. */
2448 /* We use char because int might match the return type of a gcc2
2449 builtin and then its argument prototype would still apply. */
2450 char pthread_create();
2456 if { (eval echo configure:2457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2458 eval "ac_cv_lib_$ac_lib_var=yes"
2460 echo "configure: failed program was:" >&5
2461 cat conftest.$ac_ext >&5
2463 eval "ac_cv_lib_$ac_lib_var=no"
2466 LIBS="$ac_save_LIBS"
2469 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2470 echo "$ac_t""yes" 1>&6
2471 ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2472 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2473 cat >> confdefs.h <<EOF
2474 #define $ac_tr_lib 1
2477 LIBS="-lpthread $LIBS"
2480 echo "$ac_t""no" 1>&6
2483 echo $ac_n "checking for thread_create in -lthreads""... $ac_c" 1>&6
2484 echo "configure:2485: checking for thread_create in -lthreads" >&5
2485 ac_lib_var=`echo threads'_'thread_create | sed 'y%./+-%__p_%'`
2486 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2487 echo $ac_n "(cached) $ac_c" 1>&6
2489 ac_save_LIBS="$LIBS"
2490 LIBS="-lthreads $LIBS"
2491 cat > conftest.$ac_ext <<EOF
2492 #line 2493 "configure"
2493 #include "confdefs.h"
2494 /* Override any gcc2 internal prototype to avoid an error. */
2495 /* We use char because int might match the return type of a gcc2
2496 builtin and then its argument prototype would still apply. */
2497 char thread_create();
2503 if { (eval echo configure:2504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2505 eval "ac_cv_lib_$ac_lib_var=yes"
2507 echo "configure: failed program was:" >&5
2508 cat conftest.$ac_ext >&5
2510 eval "ac_cv_lib_$ac_lib_var=no"
2513 LIBS="$ac_save_LIBS"
2516 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2517 echo "$ac_t""yes" 1>&6
2518 ac_tr_lib=HAVE_LIB`echo threads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2519 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2520 cat >> confdefs.h <<EOF
2521 #define $ac_tr_lib 1
2524 LIBS="-lthreads $LIBS"
2527 echo "$ac_t""no" 1>&6
2531 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
2532 echo "configure:2533: checking for getopt_long" >&5
2533 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
2534 echo $ac_n "(cached) $ac_c" 1>&6
2536 cat > conftest.$ac_ext <<EOF
2537 #line 2538 "configure"
2538 #include "confdefs.h"
2539 /* System header to define __stub macros and hopefully few prototypes,
2540 which can conflict with char getopt_long(); below. */
2542 /* Override any gcc2 internal prototype to avoid an error. */
2543 /* We use char because int might match the return type of a gcc2
2544 builtin and then its argument prototype would still apply. */
2549 /* The GNU C library defines this for functions which it implements
2550 to always fail with ENOSYS. Some functions are actually named
2551 something starting with __ and the normal name is an alias. */
2552 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
2560 if { (eval echo configure:2561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2562 eval "ac_cv_func_getopt_long=yes"
2564 echo "configure: failed program was:" >&5
2565 cat conftest.$ac_ext >&5
2567 eval "ac_cv_func_getopt_long=no"
2572 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
2573 echo "$ac_t""yes" 1>&6
2576 echo "$ac_t""no" 1>&6
2577 LIBOBJS="$LIBOBJS getopt.o getopt1.o"
2582 CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
2583 for ac_hdr in stddef.h
2585 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2586 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2587 echo "configure:2588: checking for $ac_hdr" >&5
2588 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2589 echo $ac_n "(cached) $ac_c" 1>&6
2591 cat > conftest.$ac_ext <<EOF
2592 #line 2593 "configure"
2593 #include "confdefs.h"
2596 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2597 { (eval echo configure:2598: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2598 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2599 if test -z "$ac_err"; then
2601 eval "ac_cv_header_$ac_safe=yes"
2604 echo "configure: failed program was:" >&5
2605 cat conftest.$ac_ext >&5
2607 eval "ac_cv_header_$ac_safe=no"
2611 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2612 echo "$ac_t""yes" 1>&6
2613 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2614 cat >> confdefs.h <<EOF
2615 #define $ac_tr_hdr 1
2619 echo "$ac_t""no" 1>&6
2623 for ac_hdr in getopt.h
2625 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2626 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2627 echo "configure:2628: checking for $ac_hdr" >&5
2628 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2629 echo $ac_n "(cached) $ac_c" 1>&6
2631 cat > conftest.$ac_ext <<EOF
2632 #line 2633 "configure"
2633 #include "confdefs.h"
2636 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2637 { (eval echo configure:2638: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2638 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2639 if test -z "$ac_err"; then
2641 eval "ac_cv_header_$ac_safe=yes"
2644 echo "configure: failed program was:" >&5
2645 cat conftest.$ac_ext >&5
2647 eval "ac_cv_header_$ac_safe=no"
2651 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2652 echo "$ac_t""yes" 1>&6
2653 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2654 cat >> confdefs.h <<EOF
2655 #define $ac_tr_hdr 1
2659 echo "$ac_t""no" 1>&6
2663 for ac_hdr in sys/sockio.h
2665 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2666 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2667 echo "configure:2668: checking for $ac_hdr" >&5
2668 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2669 echo $ac_n "(cached) $ac_c" 1>&6
2671 cat > conftest.$ac_ext <<EOF
2672 #line 2673 "configure"
2673 #include "confdefs.h"
2676 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2677 { (eval echo configure:2678: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2678 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2679 if test -z "$ac_err"; then
2681 eval "ac_cv_header_$ac_safe=yes"
2684 echo "configure: failed program was:" >&5
2685 cat conftest.$ac_ext >&5
2687 eval "ac_cv_header_$ac_safe=no"
2691 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2692 echo "$ac_t""yes" 1>&6
2693 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2694 cat >> confdefs.h <<EOF
2695 #define $ac_tr_hdr 1
2699 echo "$ac_t""no" 1>&6
2703 for ac_hdr in fcntl.h sys/ioctl.h sys/time.h unistd.h
2705 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2706 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2707 echo "configure:2708: checking for $ac_hdr" >&5
2708 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2709 echo $ac_n "(cached) $ac_c" 1>&6
2711 cat > conftest.$ac_ext <<EOF
2712 #line 2713 "configure"
2713 #include "confdefs.h"
2716 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2717 { (eval echo configure:2718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2718 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2719 if test -z "$ac_err"; then
2721 eval "ac_cv_header_$ac_safe=yes"
2724 echo "configure: failed program was:" >&5
2725 cat conftest.$ac_ext >&5
2727 eval "ac_cv_header_$ac_safe=no"
2731 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2732 echo "$ac_t""yes" 1>&6
2733 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2734 cat >> confdefs.h <<EOF
2735 #define $ac_tr_hdr 1
2739 echo "$ac_t""no" 1>&6
2743 for ac_hdr in sys/soundcard.h machine/soundcard.h
2745 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2746 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2747 echo "configure:2748: checking for $ac_hdr" >&5
2748 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2749 echo $ac_n "(cached) $ac_c" 1>&6
2751 cat > conftest.$ac_ext <<EOF
2752 #line 2753 "configure"
2753 #include "confdefs.h"
2756 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2757 { (eval echo configure:2758: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2758 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2759 if test -z "$ac_err"; then
2761 eval "ac_cv_header_$ac_safe=yes"
2764 echo "configure: failed program was:" >&5
2765 cat conftest.$ac_ext >&5
2767 eval "ac_cv_header_$ac_safe=no"
2771 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2772 echo "$ac_t""yes" 1>&6
2773 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2774 cat >> confdefs.h <<EOF
2775 #define $ac_tr_hdr 1
2779 echo "$ac_t""no" 1>&6
2783 for ac_hdr in dlfcn.h image.h
2785 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2786 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2787 echo "configure:2788: checking for $ac_hdr" >&5
2788 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2789 echo $ac_n "(cached) $ac_c" 1>&6
2791 cat > conftest.$ac_ext <<EOF
2792 #line 2793 "configure"
2793 #include "confdefs.h"
2796 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2797 { (eval echo configure:2798: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2798 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2799 if test -z "$ac_err"; then
2801 eval "ac_cv_header_$ac_safe=yes"
2804 echo "configure: failed program was:" >&5
2805 cat conftest.$ac_ext >&5
2807 eval "ac_cv_header_$ac_safe=no"
2811 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2812 echo "$ac_t""yes" 1>&6
2813 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2814 cat >> confdefs.h <<EOF
2815 #define $ac_tr_hdr 1
2819 echo "$ac_t""no" 1>&6
2823 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
2825 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2826 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2827 echo "configure:2828: checking for $ac_hdr" >&5
2828 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2829 echo $ac_n "(cached) $ac_c" 1>&6
2831 cat > conftest.$ac_ext <<EOF
2832 #line 2833 "configure"
2833 #include "confdefs.h"
2836 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2837 { (eval echo configure:2838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2838 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2839 if test -z "$ac_err"; then
2841 eval "ac_cv_header_$ac_safe=yes"
2844 echo "configure: failed program was:" >&5
2845 cat conftest.$ac_ext >&5
2847 eval "ac_cv_header_$ac_safe=no"
2851 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2852 echo "$ac_t""yes" 1>&6
2853 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2854 cat >> confdefs.h <<EOF
2855 #define $ac_tr_hdr 1
2859 echo "$ac_t""no" 1>&6
2863 for ac_hdr in machine/param.h
2865 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2866 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2867 echo "configure:2868: checking for $ac_hdr" >&5
2868 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2869 echo $ac_n "(cached) $ac_c" 1>&6
2871 cat > conftest.$ac_ext <<EOF
2872 #line 2873 "configure"
2873 #include "confdefs.h"
2876 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2877 { (eval echo configure:2878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2878 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2879 if test -z "$ac_err"; then
2881 eval "ac_cv_header_$ac_safe=yes"
2884 echo "configure: failed program was:" >&5
2885 cat conftest.$ac_ext >&5
2887 eval "ac_cv_header_$ac_safe=no"
2891 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2892 echo "$ac_t""yes" 1>&6
2893 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2894 cat >> confdefs.h <<EOF
2895 #define $ac_tr_hdr 1
2899 echo "$ac_t""no" 1>&6
2904 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
2906 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2907 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2908 echo "configure:2909: checking for $ac_hdr" >&5
2909 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2910 echo $ac_n "(cached) $ac_c" 1>&6
2912 cat > conftest.$ac_ext <<EOF
2913 #line 2914 "configure"
2914 #include "confdefs.h"
2917 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2918 { (eval echo configure:2919: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2919 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2920 if test -z "$ac_err"; then
2922 eval "ac_cv_header_$ac_safe=yes"
2925 echo "configure: failed program was:" >&5
2926 cat conftest.$ac_ext >&5
2928 eval "ac_cv_header_$ac_safe=no"
2932 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2933 echo "$ac_t""yes" 1>&6
2934 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2935 cat >> confdefs.h <<EOF
2936 #define $ac_tr_hdr 1
2940 echo "$ac_t""no" 1>&6
2947 CFLAGS="${CFLAGS} -Wall -Werror"
2948 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
2949 echo "configure:2950: checking for ntohl in sys/param.h" >&5
2950 cat > conftest.$ac_ext <<EOF
2951 #line 2952 "configure"
2952 #include "confdefs.h"
2953 #include <sys/param.h>
2954 void foo() { int meuh; ntohl(meuh); }
2959 if { (eval echo configure:2960: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2961 cat >> confdefs.h <<\EOF
2962 #define NTOHL_IN_SYS_PARAM_H 1
2965 echo "$ac_t""yes" 1>&6
2967 echo "configure: failed program was:" >&5
2968 cat conftest.$ac_ext >&5
2970 echo "$ac_t""no" 1>&6
2974 CFLAGS="${CFLAGS} -rdynamic"
2975 echo $ac_n "checking if \$CC accepts -rdynamic""... $ac_c" 1>&6
2976 echo "configure:2977: checking if \$CC accepts -rdynamic" >&5
2977 cat > conftest.$ac_ext <<EOF
2978 #line 2979 "configure"
2979 #include "confdefs.h"
2985 if { (eval echo configure:2986: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2987 DYNAMIC_FLAG="-rdynamic"
2988 echo "$ac_t""yes" 1>&6
2990 echo "configure: failed program was:" >&5
2991 cat conftest.$ac_ext >&5
2993 echo "$ac_t""no" 1>&6
2999 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
3000 echo "configure:3001: checking for boolean_t in sys/types.h" >&5
3001 cat > conftest.$ac_ext <<EOF
3002 #line 3003 "configure"
3003 #include "confdefs.h"
3004 #include <sys/types.h>
3005 void quux() { boolean_t foo; }
3010 if { (eval echo configure:3011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3012 cat >> confdefs.h <<\EOF
3013 #define BOOLEAN_T_IN_SYS_TYPES_H 1
3016 echo "$ac_t""yes" 1>&6
3018 echo "configure: failed program was:" >&5
3019 cat conftest.$ac_ext >&5
3021 echo "$ac_t""no" 1>&6
3025 echo $ac_n "checking for working const""... $ac_c" 1>&6
3026 echo "configure:3027: checking for working const" >&5
3027 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3028 echo $ac_n "(cached) $ac_c" 1>&6
3030 cat > conftest.$ac_ext <<EOF
3031 #line 3032 "configure"
3032 #include "confdefs.h"
3036 /* Ultrix mips cc rejects this. */
3037 typedef int charset[2]; const charset x;
3038 /* SunOS 4.1.1 cc rejects this. */
3039 char const *const *ccp;
3041 /* NEC SVR4.0.2 mips cc rejects this. */
3042 struct point {int x, y;};
3043 static struct point const zero = {0,0};
3044 /* AIX XL C 1.02.0.0 rejects this.
3045 It does not let you subtract one const X* pointer from another in an arm
3046 of an if-expression whose if-part is not a constant expression */
3047 const char *g = "string";
3048 ccp = &g + (g ? g-g : 0);
3049 /* HPUX 7.0 cc rejects these. */
3052 ccp = (char const *const *) p;
3053 { /* SCO 3.2v4 cc rejects this. */
3055 char const *s = 0 ? (char *) 0 : (char const *) 0;
3059 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3061 const int *foo = &x[0];
3064 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3065 typedef const int *iptr;
3069 { /* AIX XL C 1.02.0.0 rejects this saying
3070 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3071 struct s { int j; const int *ap[3]; };
3072 struct s *b; b->j = 5;
3074 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3080 if { (eval echo configure:3081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3084 echo "configure: failed program was:" >&5
3085 cat conftest.$ac_ext >&5
3092 echo "$ac_t""$ac_cv_c_const" 1>&6
3093 if test $ac_cv_c_const = no; then
3094 cat >> confdefs.h <<\EOF
3100 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3101 echo "configure:3102: checking for ANSI C header files" >&5
3102 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3103 echo $ac_n "(cached) $ac_c" 1>&6
3105 cat > conftest.$ac_ext <<EOF
3106 #line 3107 "configure"
3107 #include "confdefs.h"
3113 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3114 { (eval echo configure:3115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3115 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3116 if test -z "$ac_err"; then
3118 ac_cv_header_stdc=yes
3121 echo "configure: failed program was:" >&5
3122 cat conftest.$ac_ext >&5
3124 ac_cv_header_stdc=no
3128 if test $ac_cv_header_stdc = yes; then
3129 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3130 cat > conftest.$ac_ext <<EOF
3131 #line 3132 "configure"
3132 #include "confdefs.h"
3135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3136 egrep "memchr" >/dev/null 2>&1; then
3140 ac_cv_header_stdc=no
3146 if test $ac_cv_header_stdc = yes; then
3147 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3148 cat > conftest.$ac_ext <<EOF
3149 #line 3150 "configure"
3150 #include "confdefs.h"
3153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3154 egrep "free" >/dev/null 2>&1; then
3158 ac_cv_header_stdc=no
3164 if test $ac_cv_header_stdc = yes; then
3165 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3166 if test "$cross_compiling" = yes; then
3169 cat > conftest.$ac_ext <<EOF
3170 #line 3171 "configure"
3171 #include "confdefs.h"
3173 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3174 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3175 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3176 int main () { int i; for (i = 0; i < 256; i++)
3177 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3181 if { (eval echo configure:3182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3185 echo "configure: failed program was:" >&5
3186 cat conftest.$ac_ext >&5
3188 ac_cv_header_stdc=no
3196 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3197 if test $ac_cv_header_stdc = yes; then
3198 cat >> confdefs.h <<\EOF
3199 #define STDC_HEADERS 1
3204 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3205 echo "configure:3206: checking for size_t" >&5
3206 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3207 echo $ac_n "(cached) $ac_c" 1>&6
3209 cat > conftest.$ac_ext <<EOF
3210 #line 3211 "configure"
3211 #include "confdefs.h"
3212 #include <sys/types.h>
3218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3219 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3221 ac_cv_type_size_t=yes
3224 ac_cv_type_size_t=no
3229 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3230 if test $ac_cv_type_size_t = no; then
3231 cat >> confdefs.h <<\EOF
3232 #define size_t unsigned
3237 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3238 echo "configure:3239: checking whether time.h and sys/time.h may both be included" >&5
3239 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3240 echo $ac_n "(cached) $ac_c" 1>&6
3242 cat > conftest.$ac_ext <<EOF
3243 #line 3244 "configure"
3244 #include "confdefs.h"
3245 #include <sys/types.h>
3246 #include <sys/time.h>
3252 if { (eval echo configure:3253: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3254 ac_cv_header_time=yes
3256 echo "configure: failed program was:" >&5
3257 cat conftest.$ac_ext >&5
3259 ac_cv_header_time=no
3264 echo "$ac_t""$ac_cv_header_time" 1>&6
3265 if test $ac_cv_header_time = yes; then
3266 cat >> confdefs.h <<\EOF
3267 #define TIME_WITH_SYS_TIME 1
3273 for ac_hdr in sys/ioctl.h
3275 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3276 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3277 echo "configure:3278: checking for $ac_hdr" >&5
3278 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3279 echo $ac_n "(cached) $ac_c" 1>&6
3281 cat > conftest.$ac_ext <<EOF
3282 #line 3283 "configure"
3283 #include "confdefs.h"
3286 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3287 { (eval echo configure:3288: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3288 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3289 if test -z "$ac_err"; then
3291 eval "ac_cv_header_$ac_safe=yes"
3294 echo "configure: failed program was:" >&5
3295 cat conftest.$ac_ext >&5
3297 eval "ac_cv_header_$ac_safe=no"
3301 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3302 echo "$ac_t""yes" 1>&6
3303 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3304 cat >> confdefs.h <<EOF
3305 #define $ac_tr_hdr 1
3307 for ac_hdr in linux/cdrom.h
3309 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3310 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3311 echo "configure:3312: checking for $ac_hdr" >&5
3312 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3313 echo $ac_n "(cached) $ac_c" 1>&6
3315 cat > conftest.$ac_ext <<EOF
3316 #line 3317 "configure"
3317 #include "confdefs.h"
3320 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3321 { (eval echo configure:3322: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3322 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3323 if test -z "$ac_err"; then
3325 eval "ac_cv_header_$ac_safe=yes"
3328 echo "configure: failed program was:" >&5
3329 cat conftest.$ac_ext >&5
3331 eval "ac_cv_header_$ac_safe=no"
3335 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3336 echo "$ac_t""yes" 1>&6
3337 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3338 cat >> confdefs.h <<EOF
3339 #define $ac_tr_hdr 1
3343 echo "$ac_t""no" 1>&6
3347 cat > conftest.$ac_ext <<EOF
3348 #line 3349 "configure"
3349 #include "confdefs.h"
3350 #include <linux/cdrom.h>
3352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3353 egrep "dvd" >/dev/null 2>&1; then
3355 cat >> confdefs.h <<\EOF
3363 echo "$ac_t""no" 1>&6
3368 PLUGINS=${PLUGINS}"ps ts dvd yuv idct idctclassic motion ";
3371 # Check whether --enable-ppro or --disable-ppro was given.
3372 if test "${enable_ppro+set}" = set; then
3373 enableval="$enable_ppro"
3374 if test x$enableval = xyes; then ARCH=${ARCH}" ppro"; fi
3376 if test x${host_cpu} = xi686; then ARCH=${ARCH}" ppro"; fi
3379 # Check whether --enable-mmx or --disable-mmx was given.
3380 if test "${enable_mmx+set}" = set; then
3381 enableval="$enable_mmx"
3382 if test x$enableval = xyes; then ARCH=${ARCH}" mmx"; PLUGINS=${PLUGINS}"yuvmmx motionmmx motionmmxext idctmmx idctmmxext "; fi
3384 if test x${host_cpu} = xi686 -o x${host_cpu} = xi586; then ARCH=${ARCH}" mmx"; PLUGINS=${PLUGINS}"yuvmmx motionmmx motionmmxext idctmmx idctmmxext "; fi
3387 # Check whether --enable-debug or --disable-debug was given.
3388 if test "${enable_debug+set}" = set; then
3389 enableval="$enable_debug"
3390 if test x$enableval = xyes; then DEBUG=1; fi
3393 # Check whether --enable-stats or --disable-stats was given.
3394 if test "${enable_stats+set}" = set; then
3395 enableval="$enable_stats"
3396 if test x$enableval = xyes; then STATS=1; fi
3399 # Check whether --enable-optimizations or --disable-optimizations was given.
3400 if test "${enable_optimizations+set}" = set; then
3401 enableval="$enable_optimizations"
3402 if test x$enableval = xno; then OPTIMS=0; fi
3411 if test x$host_os = xbeos; then
3412 PLUGINS=${PLUGINS}"dummy null beos "
3416 # Check whether --enable-dummy or --disable-dummy was given.
3417 if test "${enable_dummy+set}" = set; then
3418 enableval="$enable_dummy"
3422 if test x$enable_dummy != xno; then PLUGINS=${PLUGINS}"dummy "; fi
3423 # Check whether --enable-null or --disable-null was given.
3424 if test "${enable_null+set}" = set; then
3425 enableval="$enable_null"
3429 if test x$enable_null != xno; then PLUGINS=${PLUGINS}"null "; fi
3430 # Check whether --enable-dsp or --disable-dsp was given.
3431 if test "${enable_dsp+set}" = set; then
3432 enableval="$enable_dsp"
3436 if test x$enable_dsp != xno; then PLUGINS=${PLUGINS}"dsp "; fi
3437 # Check whether --enable-esd or --disable-esd was given.
3438 if test "${enable_esd+set}" = set; then
3439 enableval="$enable_esd"
3440 if test x$enable_esd = xyes; then PLUGINS=${PLUGINS}"esd "; fi
3443 # Check whether --enable-fb or --disable-fb was given.
3444 if test "${enable_fb+set}" = set; then
3445 enableval="$enable_fb"
3446 if test x$enable_fb = xyes; then PLUGINS=${PLUGINS}"fb "; ALIASES=${ALIASES}"fbvlc "; fi
3449 # Check whether --with-ggi or --without-ggi was given.
3450 if test "${with_ggi+set}" = set; then
3452 PLUGINS=${PLUGINS}"ggi ";
3453 if test "x$withval" != "xyes";
3455 LIB_GGI="-l"$withval
3461 # Check whether --with-sdl or --without-sdl was given.
3462 if test "${with_sdl+set}" = set; then
3464 PLUGINS=${PLUGINS}"sdl ";
3465 if test "x$withval" != "xyes";
3467 LIB_SDL="-l"$withval
3473 if test "x$withval" == "x";
3475 PLUGINS=${PLUGINS}"sdl "
3478 # Check whether --with-glide or --without-glide was given.
3479 if test "${with_glide+set}" = set; then
3480 withval="$with_glide"
3481 PLUGINS=${PLUGINS}"glide ";
3482 if test "x$withval" != "xyes";
3484 LIB_GLIDE="-l"$withval
3486 LIB_GLIDE="-lglide2x"
3490 # Check whether --enable-gnome or --disable-gnome was given.
3491 if test "${enable_gnome+set}" = set; then
3492 enableval="$enable_gnome"
3496 if test x$enable_gnome != xno; then PLUGINS=${PLUGINS}"gnome "; ALIASES=${ALIASES}"gvlc "; fi
3497 # Check whether --enable-gnome or --disable-gnome was given.
3498 if test "${enable_gnome+set}" = set; then
3499 enableval="$enable_gnome"
3503 if test x$enable_x11 != xno; then PLUGINS=${PLUGINS}"x11 "; fi
3505 # Check whether --enable-alsa or --disable-alsa was given.
3506 if test "${enable_alsa+set}" = set; then
3507 enableval="$enable_alsa"
3508 if test x$enable_alsa = xyes; then ac_safe=`echo "sys/asoundlib.h" | sed 'y%./+-%__p_%'`
3509 echo $ac_n "checking for sys/asoundlib.h""... $ac_c" 1>&6
3510 echo "configure:3511: checking for sys/asoundlib.h" >&5
3511 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3512 echo $ac_n "(cached) $ac_c" 1>&6
3514 cat > conftest.$ac_ext <<EOF
3515 #line 3516 "configure"
3516 #include "confdefs.h"
3517 #include <sys/asoundlib.h>
3519 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3520 { (eval echo configure:3521: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3521 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3522 if test -z "$ac_err"; then
3524 eval "ac_cv_header_$ac_safe=yes"
3527 echo "configure: failed program was:" >&5
3528 cat conftest.$ac_ext >&5
3530 eval "ac_cv_header_$ac_safe=no"
3534 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3535 echo "$ac_t""yes" 1>&6
3536 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
3537 echo "configure:3538: checking for main in -lasound" >&5
3538 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
3539 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3540 echo $ac_n "(cached) $ac_c" 1>&6
3542 ac_save_LIBS="$LIBS"
3543 LIBS="-lasound $LIBS"
3544 cat > conftest.$ac_ext <<EOF
3545 #line 3546 "configure"
3546 #include "confdefs.h"
3552 if { (eval echo configure:3553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3554 eval "ac_cv_lib_$ac_lib_var=yes"
3556 echo "configure: failed program was:" >&5
3557 cat conftest.$ac_ext >&5
3559 eval "ac_cv_lib_$ac_lib_var=no"
3562 LIBS="$ac_save_LIBS"
3565 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3566 echo "$ac_t""yes" 1>&6
3569 echo "$ac_t""no" 1>&6
3574 echo "$ac_t""no" 1>&6
3577 if test $have_alsa = true; then PLUGINS=${PLUGINS}"alsa "; fi; fi
3595 cat > confcache <<\EOF
3596 # This file is a shell script that caches the results of configure
3597 # tests run on this system so they can be shared between configure
3598 # scripts and configure runs. It is not useful on other systems.
3599 # If it contains results you don't want to keep, you may remove or edit it.
3601 # By default, configure uses ./config.cache as the cache file,
3602 # creating it if it does not exist already. You can give configure
3603 # the --cache-file=FILE option to use a different cache file; that is
3604 # what configure does when it calls configure scripts in
3605 # subdirectories, so they share the cache.
3606 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3607 # config.status only pays attention to the cache file if you give it the
3608 # --recheck option to rerun configure.
3611 # The following way of writing the cache mishandles newlines in values,
3612 # but we know of no workaround that is simple, portable, and efficient.
3613 # So, don't put newlines in cache variables' values.
3614 # Ultrix sh set writes to stderr and can't be redirected directly,
3615 # and sets the high bit in the cache file unless we assign to the vars.
3617 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3619 # `set' does not quote correctly, so add quotes (double-quote substitution
3620 # turns \\\\ into \\, and sed turns \\ into \).
3622 -e "s/'/'\\\\''/g" \
3623 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3626 # `set' quotes correctly as required by POSIX, so do not add quotes.
3627 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3630 if cmp -s $cache_file confcache; then
3633 if test -w $cache_file; then
3634 echo "updating cache $cache_file"
3635 cat confcache > $cache_file
3637 echo "not updating unwritable cache $cache_file"
3642 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3644 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3645 # Let make expand exec_prefix.
3646 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3648 # Any assignment to VPATH causes Sun make to only execute
3649 # the first set of double-colon rules, so remove it if not needed.
3650 # If there is a colon in the path, we need to keep it.
3651 if test "x$srcdir" = x.; then
3652 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3655 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3657 DEFS=-DHAVE_CONFIG_H
3659 # Without the "./", some shells look in PATH for config.status.
3660 : ${CONFIG_STATUS=./config.status}
3662 echo creating $CONFIG_STATUS
3663 rm -f $CONFIG_STATUS
3664 cat > $CONFIG_STATUS <<EOF
3666 # Generated automatically by configure.
3667 # Run this file to recreate the current configuration.
3668 # This directory was configured as follows,
3669 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3671 # $0 $ac_configure_args
3673 # Compiler output produced by configure, useful for debugging
3674 # configure, is in ./config.log if it exists.
3676 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3679 case "\$ac_option" in
3680 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3681 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3682 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3683 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3684 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3686 -help | --help | --hel | --he | --h)
3687 echo "\$ac_cs_usage"; exit 0 ;;
3688 *) echo "\$ac_cs_usage"; exit 1 ;;
3692 ac_given_srcdir=$srcdir
3693 ac_given_INSTALL="$INSTALL"
3695 trap 'rm -fr `echo "Makefile include/config.h include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3697 cat >> $CONFIG_STATUS <<EOF
3699 # Protect against being on the right side of a sed subst in config.status.
3700 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3701 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3705 s%@CFLAGS@%$CFLAGS%g
3706 s%@CPPFLAGS@%$CPPFLAGS%g
3707 s%@CXXFLAGS@%$CXXFLAGS%g
3708 s%@FFLAGS@%$FFLAGS%g
3710 s%@LDFLAGS@%$LDFLAGS%g
3712 s%@exec_prefix@%$exec_prefix%g
3713 s%@prefix@%$prefix%g
3714 s%@program_transform_name@%$program_transform_name%g
3715 s%@bindir@%$bindir%g
3716 s%@sbindir@%$sbindir%g
3717 s%@libexecdir@%$libexecdir%g
3718 s%@datadir@%$datadir%g
3719 s%@sysconfdir@%$sysconfdir%g
3720 s%@sharedstatedir@%$sharedstatedir%g
3721 s%@localstatedir@%$localstatedir%g
3722 s%@libdir@%$libdir%g
3723 s%@includedir@%$includedir%g
3724 s%@oldincludedir@%$oldincludedir%g
3725 s%@infodir@%$infodir%g
3726 s%@mandir@%$mandir%g
3728 s%@host_alias@%$host_alias%g
3729 s%@host_cpu@%$host_cpu%g
3730 s%@host_vendor@%$host_vendor%g
3731 s%@host_os@%$host_os%g
3732 s%@VLC_VERSION@%$VLC_VERSION%g
3733 s%@VLC_CODENAME@%$VLC_CODENAME%g
3734 s%@SET_MAKE@%$SET_MAKE%g
3737 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3738 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3739 s%@INSTALL_DATA@%$INSTALL_DATA%g
3740 s%@LIBOBJS@%$LIBOBJS%g
3743 s%@PLUGINS@%$PLUGINS%g
3744 s%@ALIASES@%$ALIASES%g
3747 s%@OPTIMS@%$OPTIMS%g
3748 s%@DYNAMIC_FLAG@%$DYNAMIC_FLAG%g
3749 s%@LIB_SDL@%$LIB_SDL%g
3750 s%@LIB_GLIDE@%$LIB_GLIDE%g
3751 s%@LIB_GGI@%$LIB_GGI%g
3756 cat >> $CONFIG_STATUS <<\EOF
3758 # Split the substitutions into bite-sized pieces for seds with
3759 # small command number limits, like on Digital OSF/1 and HP-UX.
3760 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3761 ac_file=1 # Number of current file.
3762 ac_beg=1 # First line for current file.
3763 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3766 while $ac_more_lines; do
3767 if test $ac_beg -gt 1; then
3768 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3770 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3772 if test ! -s conftest.s$ac_file; then
3774 rm -f conftest.s$ac_file
3776 if test -z "$ac_sed_cmds"; then
3777 ac_sed_cmds="sed -f conftest.s$ac_file"
3779 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3781 ac_file=`expr $ac_file + 1`
3783 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3786 if test -z "$ac_sed_cmds"; then
3791 cat >> $CONFIG_STATUS <<EOF
3793 CONFIG_FILES=\${CONFIG_FILES-"Makefile include/config.h"}
3795 cat >> $CONFIG_STATUS <<\EOF
3796 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3797 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3799 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3800 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3801 *) ac_file_in="${ac_file}.in" ;;
3804 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3806 # Remove last slash and all that follows it. Not all systems have dirname.
3807 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3808 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3809 # The file is in a subdirectory.
3810 test ! -d "$ac_dir" && mkdir "$ac_dir"
3811 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3812 # A "../" for each directory in $ac_dir_suffix.
3813 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3815 ac_dir_suffix= ac_dots=
3818 case "$ac_given_srcdir" in
3820 if test -z "$ac_dots"; then top_srcdir=.
3821 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3822 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3824 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3825 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3828 case "$ac_given_INSTALL" in
3829 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3830 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3833 echo creating "$ac_file"
3835 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3837 *Makefile*) ac_comsub="1i\\
3838 # $configure_input" ;;
3842 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3844 s%@configure_input@%$configure_input%g
3845 s%@srcdir@%$srcdir%g
3846 s%@top_srcdir@%$top_srcdir%g
3847 s%@INSTALL@%$INSTALL%g
3848 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3852 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3853 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3855 # ac_d sets the value in "#define NAME VALUE" lines.
3856 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3857 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3860 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3861 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3862 ac_uB='\([ ]\)%\1#\2define\3'
3865 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3866 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3867 ac_eB='$%\1#\2define\3'
3871 if test "${CONFIG_HEADERS+set}" != set; then
3873 cat >> $CONFIG_STATUS <<EOF
3874 CONFIG_HEADERS="include/defs.h"
3876 cat >> $CONFIG_STATUS <<\EOF
3878 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3879 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3881 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3882 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3883 *) ac_file_in="${ac_file}.in" ;;
3886 echo creating $ac_file
3888 rm -f conftest.frag conftest.in conftest.out
3889 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3890 cat $ac_file_inputs > conftest.in
3894 # Transform confdefs.h into a sed script conftest.vals that substitutes
3895 # the proper values into config.h.in to produce config.h. And first:
3896 # Protect against being on the right side of a sed subst in config.status.
3897 # Protect against being in an unquoted here document in config.status.
3899 cat > conftest.hdr <<\EOF
3902 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3906 sed -n -f conftest.hdr confdefs.h > conftest.vals
3909 # This sed command replaces #undef with comments. This is necessary, for
3910 # example, in the case of _POSIX_SOURCE, which is predefined and required
3911 # on some systems where configure will not decide to define it.
3912 cat >> conftest.vals <<\EOF
3913 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3916 # Break up conftest.vals because some shells have a limit on
3917 # the size of here documents, and old seds have small limits too.
3922 ac_lines=`grep -c . conftest.vals`
3923 # grep -c gives empty output for an empty file on some AIX systems.
3924 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3925 # Write a limited-size here document to conftest.frag.
3926 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3927 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3929 sed -f conftest.frag conftest.in > conftest.out
3931 mv conftest.out conftest.in
3933 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3935 mv conftest.tail conftest.vals
3939 cat >> $CONFIG_STATUS <<\EOF
3940 rm -f conftest.frag conftest.h
3941 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3942 cat conftest.in >> conftest.h
3944 if cmp -s $ac_file conftest.h 2>/dev/null; then
3945 echo "$ac_file is unchanged"
3948 # Remove last slash and all that follows it. Not all systems have dirname.
3949 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3950 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3951 # The file is in a subdirectory.
3952 test ! -d "$ac_dir" && mkdir "$ac_dir"
3955 mv conftest.h $ac_file
3960 cat >> $CONFIG_STATUS <<EOF
3963 cat >> $CONFIG_STATUS <<\EOF
3967 chmod +x $CONFIG_STATUS
3968 rm -fr confdefs* $ac_clean_files
3969 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3975 vlc version : ${VLC_VERSION}
3977 architecture : ${ARCH}
3978 debug mode : ${DEBUG}
3979 statistics : ${STATS}
3980 optimizations : ${OPTIMS}
3981 plugins : ${PLUGINS}
3982 vlc aliases : ${ALIASES}