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-dummy dummy module (default enabled)"
17 --disable-null Null module (default enabled)"
19 --disable-ppro Disable PentiumPro optimizations (default enabled for x86)"
21 --disable-mmx Disable MMX optimizations (default enabled for x86)"
23 --disable-css Disable DVD CSS decryption (default enabled)"
25 --enable-debug Enable debug mode (default disabled)"
27 --enable-stats Enable printing of statistics (default disabled)"
29 --disable-optimizations Disable compiler optimizations (default enabled)"
31 --disable-dsp Linux /dev/dsp support (default enabled)"
33 --enable-esd Esound library support (default disabled)"
35 --enable-darwin Darwin sound support (default disabled)"
37 --enable-macosx Mac OS X interface support (default disabled)"
39 --enable-fb Linux framebuffer support (default disabled)"
41 --with-ggi[=name] GGI support (default disabled)"
43 --with-sdl[=name] SDL support (default enabled)"
45 --with-glide[=name] Glide (3dfx) support (default disabled)"
47 --enable-ncurses ncurses interface support (default disabled)"
49 --enable-qt Qt interface support (default disabled)"
51 --enable-kde KDE interface support (default disabled)"
53 --enable-gnome Gnome interface support (default disabled)"
55 --disable-gtk Gtk+ support (default enabled)"
57 --disable-x11 X11 support (default enabled)"
59 --enable-alsa Alsa sound drivers support (Only for linux) (default disabled)"
61 # Initialize some variables set by options.
62 # The variables have the same names as the options, with
63 # dashes changed to underlines.
65 cache_file=./config.cache
74 program_transform_name=s,x,x,
82 bindir='${exec_prefix}/bin'
83 sbindir='${exec_prefix}/sbin'
84 libexecdir='${exec_prefix}/libexec'
85 datadir='${prefix}/share'
86 sysconfdir='${prefix}/etc'
87 sharedstatedir='${prefix}/com'
88 localstatedir='${prefix}/var'
89 libdir='${exec_prefix}/lib'
90 includedir='${prefix}/include'
91 oldincludedir='/usr/include'
92 infodir='${prefix}/info'
93 mandir='${prefix}/man'
95 # Initialize some other variables.
98 SHELL=${CONFIG_SHELL-/bin/sh}
99 # Maximum number of lines to put in a shell here document.
106 # If the previous option needs an argument, assign it.
107 if test -n "$ac_prev"; then
108 eval "$ac_prev=\$ac_option"
114 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
118 # Accept the important Cygnus configure options, so we can diagnose typos.
122 -bindir | --bindir | --bindi | --bind | --bin | --bi)
124 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
125 bindir="$ac_optarg" ;;
127 -build | --build | --buil | --bui | --bu)
129 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
130 build="$ac_optarg" ;;
132 -cache-file | --cache-file | --cache-fil | --cache-fi \
133 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
134 ac_prev=cache_file ;;
135 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
136 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
137 cache_file="$ac_optarg" ;;
139 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
141 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
143 datadir="$ac_optarg" ;;
145 -disable-* | --disable-*)
146 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
147 # Reject names that are not valid shell variable names.
148 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
149 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
151 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
152 eval "enable_${ac_feature}=no" ;;
154 -enable-* | --enable-*)
155 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
156 # Reject names that are not valid shell variable names.
157 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
158 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
160 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
165 eval "enable_${ac_feature}='$ac_optarg'" ;;
167 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
168 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
169 | --exec | --exe | --ex)
170 ac_prev=exec_prefix ;;
171 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
172 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
173 | --exec=* | --exe=* | --ex=*)
174 exec_prefix="$ac_optarg" ;;
176 -gas | --gas | --ga | --g)
177 # Obsolete; use --with-gas.
180 -help | --help | --hel | --he)
181 # Omit some internal or obsolete options to make the list less imposing.
182 # This message is too long to be a string in the A/UX 3.1 sh.
184 Usage: configure [options] [host]
185 Options: [defaults in brackets after descriptions]
187 --cache-file=FILE cache test results in FILE
188 --help print this message
189 --no-create do not create output files
190 --quiet, --silent do not print \`checking...' messages
191 --version print the version of autoconf that created configure
192 Directory and file names:
193 --prefix=PREFIX install architecture-independent files in PREFIX
195 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
197 --bindir=DIR user executables in DIR [EPREFIX/bin]
198 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
199 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
200 --datadir=DIR read-only architecture-independent data in DIR
202 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
203 --sharedstatedir=DIR modifiable architecture-independent data in DIR
205 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
206 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
207 --includedir=DIR C header files in DIR [PREFIX/include]
208 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
209 --infodir=DIR info documentation in DIR [PREFIX/info]
210 --mandir=DIR man documentation in DIR [PREFIX/man]
211 --srcdir=DIR find the sources in DIR [configure dir or ..]
212 --program-prefix=PREFIX prepend PREFIX to installed program names
213 --program-suffix=SUFFIX append SUFFIX to installed program names
214 --program-transform-name=PROGRAM
215 run sed PROGRAM on installed program names
219 --build=BUILD configure for building on BUILD [BUILD=HOST]
220 --host=HOST configure for HOST [guessed]
221 --target=TARGET configure for TARGET [TARGET=HOST]
222 Features and packages:
223 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
224 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
225 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
226 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
227 --x-includes=DIR X include files are in DIR
228 --x-libraries=DIR X library files are in DIR
230 if test -n "$ac_help"; then
231 echo "--enable and --with options recognized:$ac_help"
235 -host | --host | --hos | --ho)
237 -host=* | --host=* | --hos=* | --ho=*)
240 -includedir | --includedir | --includedi | --included | --include \
241 | --includ | --inclu | --incl | --inc)
242 ac_prev=includedir ;;
243 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
244 | --includ=* | --inclu=* | --incl=* | --inc=*)
245 includedir="$ac_optarg" ;;
247 -infodir | --infodir | --infodi | --infod | --info | --inf)
249 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
250 infodir="$ac_optarg" ;;
252 -libdir | --libdir | --libdi | --libd)
254 -libdir=* | --libdir=* | --libdi=* | --libd=*)
255 libdir="$ac_optarg" ;;
257 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
258 | --libexe | --libex | --libe)
259 ac_prev=libexecdir ;;
260 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
261 | --libexe=* | --libex=* | --libe=*)
262 libexecdir="$ac_optarg" ;;
264 -localstatedir | --localstatedir | --localstatedi | --localstated \
265 | --localstate | --localstat | --localsta | --localst \
266 | --locals | --local | --loca | --loc | --lo)
267 ac_prev=localstatedir ;;
268 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
269 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
270 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
271 localstatedir="$ac_optarg" ;;
273 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
275 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
276 mandir="$ac_optarg" ;;
279 # Obsolete; use --without-fp.
282 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
286 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
287 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
290 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
291 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
292 | --oldin | --oldi | --old | --ol | --o)
293 ac_prev=oldincludedir ;;
294 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
295 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
296 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
297 oldincludedir="$ac_optarg" ;;
299 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
301 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
302 prefix="$ac_optarg" ;;
304 -program-prefix | --program-prefix | --program-prefi | --program-pref \
305 | --program-pre | --program-pr | --program-p)
306 ac_prev=program_prefix ;;
307 -program-prefix=* | --program-prefix=* | --program-prefi=* \
308 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
309 program_prefix="$ac_optarg" ;;
311 -program-suffix | --program-suffix | --program-suffi | --program-suff \
312 | --program-suf | --program-su | --program-s)
313 ac_prev=program_suffix ;;
314 -program-suffix=* | --program-suffix=* | --program-suffi=* \
315 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
316 program_suffix="$ac_optarg" ;;
318 -program-transform-name | --program-transform-name \
319 | --program-transform-nam | --program-transform-na \
320 | --program-transform-n | --program-transform- \
321 | --program-transform | --program-transfor \
322 | --program-transfo | --program-transf \
323 | --program-trans | --program-tran \
324 | --progr-tra | --program-tr | --program-t)
325 ac_prev=program_transform_name ;;
326 -program-transform-name=* | --program-transform-name=* \
327 | --program-transform-nam=* | --program-transform-na=* \
328 | --program-transform-n=* | --program-transform-=* \
329 | --program-transform=* | --program-transfor=* \
330 | --program-transfo=* | --program-transf=* \
331 | --program-trans=* | --program-tran=* \
332 | --progr-tra=* | --program-tr=* | --program-t=*)
333 program_transform_name="$ac_optarg" ;;
335 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
336 | -silent | --silent | --silen | --sile | --sil)
339 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
341 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
343 sbindir="$ac_optarg" ;;
345 -sharedstatedir | --sharedstatedir | --sharedstatedi \
346 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
347 | --sharedst | --shareds | --shared | --share | --shar \
349 ac_prev=sharedstatedir ;;
350 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
351 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
352 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
354 sharedstatedir="$ac_optarg" ;;
356 -site | --site | --sit)
358 -site=* | --site=* | --sit=*)
361 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
363 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
364 srcdir="$ac_optarg" ;;
366 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
367 | --syscon | --sysco | --sysc | --sys | --sy)
368 ac_prev=sysconfdir ;;
369 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
370 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
371 sysconfdir="$ac_optarg" ;;
373 -target | --target | --targe | --targ | --tar | --ta | --t)
375 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
376 target="$ac_optarg" ;;
378 -v | -verbose | --verbose | --verbos | --verbo | --verb)
381 -version | --version | --versio | --versi | --vers)
382 echo "configure generated by autoconf version 2.13"
386 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
387 # Reject names that are not valid shell variable names.
388 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
389 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
391 ac_package=`echo $ac_package| sed 's/-/_/g'`
396 eval "with_${ac_package}='$ac_optarg'" ;;
398 -without-* | --without-*)
399 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
400 # Reject names that are not valid shell variable names.
401 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
402 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
404 ac_package=`echo $ac_package| sed 's/-/_/g'`
405 eval "with_${ac_package}=no" ;;
408 # Obsolete; use --with-x.
411 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
412 | --x-incl | --x-inc | --x-in | --x-i)
413 ac_prev=x_includes ;;
414 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
415 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
416 x_includes="$ac_optarg" ;;
418 -x-libraries | --x-libraries | --x-librarie | --x-librari \
419 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
420 ac_prev=x_libraries ;;
421 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
422 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
423 x_libraries="$ac_optarg" ;;
425 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
429 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
430 echo "configure: warning: $ac_option: invalid host type" 1>&2
432 if test "x$nonopt" != xNONE; then
433 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
441 if test -n "$ac_prev"; then
442 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
445 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
447 # File descriptor usage:
450 # 2 errors and warnings
451 # 3 some systems may open it to /dev/tty
452 # 4 used on the Kubota Titan
453 # 6 checking for... messages and results
454 # 5 compiler messages saved in config.log
455 if test "$silent" = yes; then
463 This file contains any messages produced by compilers while
464 running configure, to aid debugging if configure makes a mistake.
467 # Strip out --no-create and --no-recursion so they do not pile up.
468 # Also quote any args containing shell metacharacters.
473 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
474 | --no-cr | --no-c) ;;
475 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
476 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
477 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
478 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
479 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
484 # Only set these to C if already set. These must not be set unconditionally
485 # because not all systems understand e.g. LANG=C (notably SCO).
486 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
487 # Non-C LC_CTYPE values break the ctype check.
488 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
489 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
490 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
491 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
493 # confdefs.h avoids OS command line length limits that DEFS can exceed.
494 rm -rf conftest* confdefs.h
495 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
498 # A filename unique to this package, relative to the directory that
499 # configure is in, which we can look for to find out if srcdir is correct.
500 ac_unique_file=src/interface/main.c
502 # Find the source files, if location was not specified.
503 if test -z "$srcdir"; then
504 ac_srcdir_defaulted=yes
505 # Try the directory containing this script, then its parent.
507 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
508 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
510 if test ! -r $srcdir/$ac_unique_file; then
514 ac_srcdir_defaulted=no
516 if test ! -r $srcdir/$ac_unique_file; then
517 if test "$ac_srcdir_defaulted" = yes; then
518 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
520 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
523 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
525 # Prefer explicitly selected file to automatically selected ones.
526 if test -z "$CONFIG_SITE"; then
527 if test "x$prefix" != xNONE; then
528 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
530 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
533 for ac_site_file in $CONFIG_SITE; do
534 if test -r "$ac_site_file"; then
535 echo "loading site script $ac_site_file"
540 if test -r "$cache_file"; then
541 echo "loading cache $cache_file"
544 echo "creating cache $cache_file"
549 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
550 ac_cpp='$CPP $CPPFLAGS'
551 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
552 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
553 cross_compiling=$ac_cv_prog_cc_cross
557 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
558 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
559 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
566 ac_n= ac_c='\c' ac_t=
573 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
574 if test -f $ac_dir/install-sh; then
576 ac_install_sh="$ac_aux_dir/install-sh -c"
578 elif test -f $ac_dir/install.sh; then
580 ac_install_sh="$ac_aux_dir/install.sh -c"
584 if test -z "$ac_aux_dir"; then
585 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
587 ac_config_guess=$ac_aux_dir/config.guess
588 ac_config_sub=$ac_aux_dir/config.sub
589 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
592 # Make sure we can run config.sub.
593 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
594 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
597 echo $ac_n "checking host system type""... $ac_c" 1>&6
598 echo "configure:599: checking host system type" >&5
601 case "$host_alias" in
605 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
606 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
608 *) host_alias=$nonopt ;;
612 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
613 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
614 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
615 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
616 echo "$ac_t""$host" 1>&6
624 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
625 echo "configure:626: checking whether ${MAKE-make} sets \${MAKE}" >&5
626 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
627 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
628 echo $ac_n "(cached) $ac_c" 1>&6
630 cat > conftestmake <<\EOF
632 @echo 'ac_maketemp="${MAKE}"'
634 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
635 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
636 if test -n "$ac_maketemp"; then
637 eval ac_cv_prog_make_${ac_make}_set=yes
639 eval ac_cv_prog_make_${ac_make}_set=no
643 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
644 echo "$ac_t""yes" 1>&6
647 echo "$ac_t""no" 1>&6
648 SET_MAKE="MAKE=${MAKE-make}"
651 if test -z "$CC"; then
652 # Extract the first word of "gcc", so it can be a program name with args.
653 set dummy gcc; ac_word=$2
654 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
655 echo "configure:656: checking for $ac_word" >&5
656 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
657 echo $ac_n "(cached) $ac_c" 1>&6
659 if test -n "$CC"; then
660 ac_cv_prog_CC="$CC" # Let the user override the test.
662 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
664 for ac_dir in $ac_dummy; do
665 test -z "$ac_dir" && ac_dir=.
666 if test -f $ac_dir/$ac_word; then
675 if test -n "$CC"; then
676 echo "$ac_t""$CC" 1>&6
678 echo "$ac_t""no" 1>&6
681 if test -z "$CC"; then
682 # Extract the first word of "cc", so it can be a program name with args.
683 set dummy cc; ac_word=$2
684 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
685 echo "configure:686: checking for $ac_word" >&5
686 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
687 echo $ac_n "(cached) $ac_c" 1>&6
689 if test -n "$CC"; then
690 ac_cv_prog_CC="$CC" # Let the user override the test.
692 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
695 for ac_dir in $ac_dummy; do
696 test -z "$ac_dir" && ac_dir=.
697 if test -f $ac_dir/$ac_word; then
698 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
707 if test $ac_prog_rejected = yes; then
708 # We found a bogon in the path, so make sure we never use it.
709 set dummy $ac_cv_prog_CC
711 if test $# -gt 0; then
712 # We chose a different compiler from the bogus one.
713 # However, it has the same basename, so the bogon will be chosen
714 # first if we set CC to just the basename; use the full file name.
716 set dummy "$ac_dir/$ac_word" "$@"
724 if test -n "$CC"; then
725 echo "$ac_t""$CC" 1>&6
727 echo "$ac_t""no" 1>&6
730 if test -z "$CC"; then
733 # Extract the first word of "cl", so it can be a program name with args.
734 set dummy cl; ac_word=$2
735 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
736 echo "configure:737: checking for $ac_word" >&5
737 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
738 echo $ac_n "(cached) $ac_c" 1>&6
740 if test -n "$CC"; then
741 ac_cv_prog_CC="$CC" # Let the user override the test.
743 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
745 for ac_dir in $ac_dummy; do
746 test -z "$ac_dir" && ac_dir=.
747 if test -f $ac_dir/$ac_word; then
756 if test -n "$CC"; then
757 echo "$ac_t""$CC" 1>&6
759 echo "$ac_t""no" 1>&6
764 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
767 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
768 echo "configure:769: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
771 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
772 ac_cpp='$CPP $CPPFLAGS'
773 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
774 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
775 cross_compiling=$ac_cv_prog_cc_cross
777 cat > conftest.$ac_ext << EOF
779 #line 780 "configure"
780 #include "confdefs.h"
784 if { (eval echo configure:785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
785 ac_cv_prog_cc_works=yes
786 # If we can't run a trivial program, we are probably using a cross compiler.
787 if (./conftest; exit) 2>/dev/null; then
788 ac_cv_prog_cc_cross=no
790 ac_cv_prog_cc_cross=yes
793 echo "configure: failed program was:" >&5
794 cat conftest.$ac_ext >&5
795 ac_cv_prog_cc_works=no
799 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
800 ac_cpp='$CPP $CPPFLAGS'
801 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
802 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
803 cross_compiling=$ac_cv_prog_cc_cross
805 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
806 if test $ac_cv_prog_cc_works = no; then
807 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
809 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
810 echo "configure:811: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
811 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
812 cross_compiling=$ac_cv_prog_cc_cross
814 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
815 echo "configure:816: checking whether we are using GNU C" >&5
816 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
817 echo $ac_n "(cached) $ac_c" 1>&6
819 cat > conftest.c <<EOF
824 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
831 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
833 if test $ac_cv_prog_gcc = yes; then
839 ac_test_CFLAGS="${CFLAGS+set}"
840 ac_save_CFLAGS="$CFLAGS"
842 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
843 echo "configure:844: checking whether ${CC-cc} accepts -g" >&5
844 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
845 echo $ac_n "(cached) $ac_c" 1>&6
847 echo 'void f(){}' > conftest.c
848 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
857 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
858 if test "$ac_test_CFLAGS" = set; then
859 CFLAGS="$ac_save_CFLAGS"
860 elif test $ac_cv_prog_cc_g = yes; then
861 if test "$GCC" = yes; then
867 if test "$GCC" = yes; then
875 if test -z "$CPP"; then
876 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
877 echo "configure:878: checking how to run the C preprocessor" >&5
878 # On Suns, sometimes $CPP names a directory.
879 if test -n "$CPP" && test -d "$CPP"; then
882 if test -z "$CPP"; then
883 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
884 echo $ac_n "(cached) $ac_c" 1>&6
886 # This must be in double quotes, not single quotes, because CPP may get
887 # substituted into the Makefile and "${CC-cc}" will confuse make.
889 # On the NeXT, cc -E runs the code through the compiler's parser,
890 # not just through cpp.
891 cat > conftest.$ac_ext <<EOF
892 #line 893 "configure"
893 #include "confdefs.h"
897 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
898 { (eval echo configure:899: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
899 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
900 if test -z "$ac_err"; then
904 echo "configure: failed program was:" >&5
905 cat conftest.$ac_ext >&5
907 CPP="${CC-cc} -E -traditional-cpp"
908 cat > conftest.$ac_ext <<EOF
909 #line 910 "configure"
910 #include "confdefs.h"
914 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
915 { (eval echo configure:916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
916 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
917 if test -z "$ac_err"; then
921 echo "configure: failed program was:" >&5
922 cat conftest.$ac_ext >&5
924 CPP="${CC-cc} -nologo -E"
925 cat > conftest.$ac_ext <<EOF
926 #line 927 "configure"
927 #include "confdefs.h"
931 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
932 { (eval echo configure:933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
933 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
934 if test -z "$ac_err"; then
938 echo "configure: failed program was:" >&5
939 cat conftest.$ac_ext >&5
948 ac_cv_prog_CPP="$CPP"
950 CPP="$ac_cv_prog_CPP"
952 ac_cv_prog_CPP="$CPP"
954 echo "$ac_t""$CPP" 1>&6
958 # Find a good install program. We prefer a C program (faster),
959 # so one script is as good as another. But avoid the broken or
960 # incompatible versions:
961 # SysV /etc/install, /usr/sbin/install
962 # SunOS /usr/etc/install
965 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
966 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
967 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
968 # ./install, which can be erroneously created by make from ./install.sh.
969 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
970 echo "configure:971: checking for a BSD compatible install" >&5
971 if test -z "$INSTALL"; then
972 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
973 echo $ac_n "(cached) $ac_c" 1>&6
975 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
976 for ac_dir in $PATH; do
977 # Account for people who put trailing slashes in PATH elements.
979 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
981 # OSF1 and SCO ODT 3.0 have their own names for install.
982 # Don't use installbsd from OSF since it installs stuff as root
984 for ac_prog in ginstall scoinst install; do
985 if test -f $ac_dir/$ac_prog; then
986 if test $ac_prog = install &&
987 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
988 # AIX install. It has an incompatible calling convention.
991 ac_cv_path_install="$ac_dir/$ac_prog -c"
1002 if test "${ac_cv_path_install+set}" = set; then
1003 INSTALL="$ac_cv_path_install"
1005 # As a last resort, use the slow shell script. We don't cache a
1006 # path for INSTALL within a source directory, because that will
1007 # break other packages using the cache if that directory is
1008 # removed, or if the path is relative.
1009 INSTALL="$ac_install_sh"
1012 echo "$ac_t""$INSTALL" 1>&6
1014 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1015 # It thinks the first close brace ends the variable substitution.
1016 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1018 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1020 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1023 echo $ac_n "checking for working const""... $ac_c" 1>&6
1024 echo "configure:1025: checking for working const" >&5
1025 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1026 echo $ac_n "(cached) $ac_c" 1>&6
1028 cat > conftest.$ac_ext <<EOF
1029 #line 1030 "configure"
1030 #include "confdefs.h"
1034 /* Ultrix mips cc rejects this. */
1035 typedef int charset[2]; const charset x;
1036 /* SunOS 4.1.1 cc rejects this. */
1037 char const *const *ccp;
1039 /* NEC SVR4.0.2 mips cc rejects this. */
1040 struct point {int x, y;};
1041 static struct point const zero = {0,0};
1042 /* AIX XL C 1.02.0.0 rejects this.
1043 It does not let you subtract one const X* pointer from another in an arm
1044 of an if-expression whose if-part is not a constant expression */
1045 const char *g = "string";
1046 ccp = &g + (g ? g-g : 0);
1047 /* HPUX 7.0 cc rejects these. */
1050 ccp = (char const *const *) p;
1051 { /* SCO 3.2v4 cc rejects this. */
1053 char const *s = 0 ? (char *) 0 : (char const *) 0;
1057 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1059 const int *foo = &x[0];
1062 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1063 typedef const int *iptr;
1067 { /* AIX XL C 1.02.0.0 rejects this saying
1068 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1069 struct s { int j; const int *ap[3]; };
1070 struct s *b; b->j = 5;
1072 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1078 if { (eval echo configure:1079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1082 echo "configure: failed program was:" >&5
1083 cat conftest.$ac_ext >&5
1090 echo "$ac_t""$ac_cv_c_const" 1>&6
1091 if test $ac_cv_c_const = no; then
1092 cat >> confdefs.h <<\EOF
1098 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1099 echo "configure:1100: checking whether byte ordering is bigendian" >&5
1100 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1101 echo $ac_n "(cached) $ac_c" 1>&6
1103 ac_cv_c_bigendian=unknown
1104 # See if sys/param.h defines the BYTE_ORDER macro.
1105 cat > conftest.$ac_ext <<EOF
1106 #line 1107 "configure"
1107 #include "confdefs.h"
1108 #include <sys/types.h>
1109 #include <sys/param.h>
1112 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1117 if { (eval echo configure:1118: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1119 # It does; now see whether it defined to BIG_ENDIAN or not.
1120 cat > conftest.$ac_ext <<EOF
1121 #line 1122 "configure"
1122 #include "confdefs.h"
1123 #include <sys/types.h>
1124 #include <sys/param.h>
1127 #if BYTE_ORDER != BIG_ENDIAN
1132 if { (eval echo configure:1133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1134 ac_cv_c_bigendian=yes
1136 echo "configure: failed program was:" >&5
1137 cat conftest.$ac_ext >&5
1139 ac_cv_c_bigendian=no
1143 echo "configure: failed program was:" >&5
1144 cat conftest.$ac_ext >&5
1147 if test $ac_cv_c_bigendian = unknown; then
1148 if test "$cross_compiling" = yes; then
1149 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1151 cat > conftest.$ac_ext <<EOF
1152 #line 1153 "configure"
1153 #include "confdefs.h"
1155 /* Are we little or big endian? From Harbison&Steele. */
1159 char c[sizeof (long)];
1162 exit (u.c[sizeof (long) - 1] == 1);
1165 if { (eval echo configure:1166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1167 ac_cv_c_bigendian=no
1169 echo "configure: failed program was:" >&5
1170 cat conftest.$ac_ext >&5
1172 ac_cv_c_bigendian=yes
1180 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1181 if test $ac_cv_c_bigendian = yes; then
1182 cat >> confdefs.h <<\EOF
1183 #define WORDS_BIGENDIAN 1
1189 for ac_func in gettimeofday select strerror strtod strtol
1191 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1192 echo "configure:1193: checking for $ac_func" >&5
1193 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1194 echo $ac_n "(cached) $ac_c" 1>&6
1196 cat > conftest.$ac_ext <<EOF
1197 #line 1198 "configure"
1198 #include "confdefs.h"
1199 /* System header to define __stub macros and hopefully few prototypes,
1200 which can conflict with char $ac_func(); below. */
1202 /* Override any gcc2 internal prototype to avoid an error. */
1203 /* We use char because int might match the return type of a gcc2
1204 builtin and then its argument prototype would still apply. */
1209 /* The GNU C library defines this for functions which it implements
1210 to always fail with ENOSYS. Some functions are actually named
1211 something starting with __ and the normal name is an alias. */
1212 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1220 if { (eval echo configure:1221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1222 eval "ac_cv_func_$ac_func=yes"
1224 echo "configure: failed program was:" >&5
1225 cat conftest.$ac_ext >&5
1227 eval "ac_cv_func_$ac_func=no"
1232 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1233 echo "$ac_t""yes" 1>&6
1234 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1235 cat >> confdefs.h <<EOF
1236 #define $ac_tr_func 1
1240 echo "$ac_t""no" 1>&6
1244 for ac_func in setenv putenv
1246 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1247 echo "configure:1248: checking for $ac_func" >&5
1248 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1249 echo $ac_n "(cached) $ac_c" 1>&6
1251 cat > conftest.$ac_ext <<EOF
1252 #line 1253 "configure"
1253 #include "confdefs.h"
1254 /* System header to define __stub macros and hopefully few prototypes,
1255 which can conflict with char $ac_func(); below. */
1257 /* Override any gcc2 internal prototype to avoid an error. */
1258 /* We use char because int might match the return type of a gcc2
1259 builtin and then its argument prototype would still apply. */
1264 /* The GNU C library defines this for functions which it implements
1265 to always fail with ENOSYS. Some functions are actually named
1266 something starting with __ and the normal name is an alias. */
1267 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1275 if { (eval echo configure:1276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1277 eval "ac_cv_func_$ac_func=yes"
1279 echo "configure: failed program was:" >&5
1280 cat conftest.$ac_ext >&5
1282 eval "ac_cv_func_$ac_func=no"
1287 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1288 echo "$ac_t""yes" 1>&6
1289 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1290 cat >> confdefs.h <<EOF
1291 #define $ac_tr_func 1
1295 echo "$ac_t""no" 1>&6
1299 echo $ac_n "checking for connect""... $ac_c" 1>&6
1300 echo "configure:1301: checking for connect" >&5
1301 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1302 echo $ac_n "(cached) $ac_c" 1>&6
1304 cat > conftest.$ac_ext <<EOF
1305 #line 1306 "configure"
1306 #include "confdefs.h"
1307 /* System header to define __stub macros and hopefully few prototypes,
1308 which can conflict with char connect(); below. */
1310 /* Override any gcc2 internal prototype to avoid an error. */
1311 /* We use char because int might match the return type of a gcc2
1312 builtin and then its argument prototype would still apply. */
1317 /* The GNU C library defines this for functions which it implements
1318 to always fail with ENOSYS. Some functions are actually named
1319 something starting with __ and the normal name is an alias. */
1320 #if defined (__stub_connect) || defined (__stub___connect)
1328 if { (eval echo configure:1329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1330 eval "ac_cv_func_connect=yes"
1332 echo "configure: failed program was:" >&5
1333 cat conftest.$ac_ext >&5
1335 eval "ac_cv_func_connect=no"
1340 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1341 echo "$ac_t""yes" 1>&6
1344 echo "$ac_t""no" 1>&6
1345 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1346 echo "configure:1347: checking for connect in -lsocket" >&5
1347 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1348 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1349 echo $ac_n "(cached) $ac_c" 1>&6
1351 ac_save_LIBS="$LIBS"
1352 LIBS="-lsocket $LIBS"
1353 cat > conftest.$ac_ext <<EOF
1354 #line 1355 "configure"
1355 #include "confdefs.h"
1356 /* Override any gcc2 internal prototype to avoid an error. */
1357 /* We use char because int might match the return type of a gcc2
1358 builtin and then its argument prototype would still apply. */
1365 if { (eval echo configure:1366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1367 eval "ac_cv_lib_$ac_lib_var=yes"
1369 echo "configure: failed program was:" >&5
1370 cat conftest.$ac_ext >&5
1372 eval "ac_cv_lib_$ac_lib_var=no"
1375 LIBS="$ac_save_LIBS"
1378 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1379 echo "$ac_t""yes" 1>&6
1380 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1381 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1382 cat >> confdefs.h <<EOF
1383 #define $ac_tr_lib 1
1386 LIBS="-lsocket $LIBS"
1389 echo "$ac_t""no" 1>&6
1394 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1395 echo "configure:1396: checking for gethostbyname" >&5
1396 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1397 echo $ac_n "(cached) $ac_c" 1>&6
1399 cat > conftest.$ac_ext <<EOF
1400 #line 1401 "configure"
1401 #include "confdefs.h"
1402 /* System header to define __stub macros and hopefully few prototypes,
1403 which can conflict with char gethostbyname(); below. */
1405 /* Override any gcc2 internal prototype to avoid an error. */
1406 /* We use char because int might match the return type of a gcc2
1407 builtin and then its argument prototype would still apply. */
1408 char gethostbyname();
1412 /* The GNU C library defines this for functions which it implements
1413 to always fail with ENOSYS. Some functions are actually named
1414 something starting with __ and the normal name is an alias. */
1415 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1423 if { (eval echo configure:1424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1425 eval "ac_cv_func_gethostbyname=yes"
1427 echo "configure: failed program was:" >&5
1428 cat conftest.$ac_ext >&5
1430 eval "ac_cv_func_gethostbyname=no"
1435 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1436 echo "$ac_t""yes" 1>&6
1439 echo "$ac_t""no" 1>&6
1440 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1441 echo "configure:1442: checking for gethostbyname in -lnsl" >&5
1442 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1443 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1444 echo $ac_n "(cached) $ac_c" 1>&6
1446 ac_save_LIBS="$LIBS"
1448 cat > conftest.$ac_ext <<EOF
1449 #line 1450 "configure"
1450 #include "confdefs.h"
1451 /* Override any gcc2 internal prototype to avoid an error. */
1452 /* We use char because int might match the return type of a gcc2
1453 builtin and then its argument prototype would still apply. */
1454 char gethostbyname();
1460 if { (eval echo configure:1461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1462 eval "ac_cv_lib_$ac_lib_var=yes"
1464 echo "configure: failed program was:" >&5
1465 cat conftest.$ac_ext >&5
1467 eval "ac_cv_lib_$ac_lib_var=no"
1470 LIBS="$ac_save_LIBS"
1473 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1474 echo "$ac_t""yes" 1>&6
1475 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1476 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1477 cat >> confdefs.h <<EOF
1478 #define $ac_tr_lib 1
1484 echo "$ac_t""no" 1>&6
1489 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
1490 echo "configure:1491: checking for nanosleep" >&5
1491 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
1492 echo $ac_n "(cached) $ac_c" 1>&6
1494 cat > conftest.$ac_ext <<EOF
1495 #line 1496 "configure"
1496 #include "confdefs.h"
1497 /* System header to define __stub macros and hopefully few prototypes,
1498 which can conflict with char nanosleep(); below. */
1500 /* Override any gcc2 internal prototype to avoid an error. */
1501 /* We use char because int might match the return type of a gcc2
1502 builtin and then its argument prototype would still apply. */
1507 /* The GNU C library defines this for functions which it implements
1508 to always fail with ENOSYS. Some functions are actually named
1509 something starting with __ and the normal name is an alias. */
1510 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
1518 if { (eval echo configure:1519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1520 eval "ac_cv_func_nanosleep=yes"
1522 echo "configure: failed program was:" >&5
1523 cat conftest.$ac_ext >&5
1525 eval "ac_cv_func_nanosleep=no"
1530 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
1531 echo "$ac_t""yes" 1>&6
1534 echo "$ac_t""no" 1>&6
1535 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
1536 echo "configure:1537: checking for nanosleep in -lrt" >&5
1537 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
1538 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1539 echo $ac_n "(cached) $ac_c" 1>&6
1541 ac_save_LIBS="$LIBS"
1543 cat > conftest.$ac_ext <<EOF
1544 #line 1545 "configure"
1545 #include "confdefs.h"
1546 /* Override any gcc2 internal prototype to avoid an error. */
1547 /* We use char because int might match the return type of a gcc2
1548 builtin and then its argument prototype would still apply. */
1555 if { (eval echo configure:1556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1557 eval "ac_cv_lib_$ac_lib_var=yes"
1559 echo "configure: failed program was:" >&5
1560 cat conftest.$ac_ext >&5
1562 eval "ac_cv_lib_$ac_lib_var=no"
1565 LIBS="$ac_save_LIBS"
1568 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1569 echo "$ac_t""yes" 1>&6
1570 ac_tr_lib=HAVE_LIB`echo rt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1571 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1572 cat >> confdefs.h <<EOF
1573 #define $ac_tr_lib 1
1579 echo "$ac_t""no" 1>&6
1580 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
1581 echo "configure:1582: checking for nanosleep in -lposix4" >&5
1582 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
1583 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1584 echo $ac_n "(cached) $ac_c" 1>&6
1586 ac_save_LIBS="$LIBS"
1587 LIBS="-lposix4 $LIBS"
1588 cat > conftest.$ac_ext <<EOF
1589 #line 1590 "configure"
1590 #include "confdefs.h"
1591 /* Override any gcc2 internal prototype to avoid an error. */
1592 /* We use char because int might match the return type of a gcc2
1593 builtin and then its argument prototype would still apply. */
1600 if { (eval echo configure:1601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1602 eval "ac_cv_lib_$ac_lib_var=yes"
1604 echo "configure: failed program was:" >&5
1605 cat conftest.$ac_ext >&5
1607 eval "ac_cv_lib_$ac_lib_var=no"
1610 LIBS="$ac_save_LIBS"
1613 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1614 echo "$ac_t""yes" 1>&6
1615 ac_tr_lib=HAVE_LIB`echo posix4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1616 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1617 cat >> confdefs.h <<EOF
1618 #define $ac_tr_lib 1
1621 LIBS="-lposix4 $LIBS"
1624 echo "$ac_t""no" 1>&6
1631 for ac_func in usleep
1633 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1634 echo "configure:1635: checking for $ac_func" >&5
1635 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1636 echo $ac_n "(cached) $ac_c" 1>&6
1638 cat > conftest.$ac_ext <<EOF
1639 #line 1640 "configure"
1640 #include "confdefs.h"
1641 /* System header to define __stub macros and hopefully few prototypes,
1642 which can conflict with char $ac_func(); below. */
1644 /* Override any gcc2 internal prototype to avoid an error. */
1645 /* We use char because int might match the return type of a gcc2
1646 builtin and then its argument prototype would still apply. */
1651 /* The GNU C library defines this for functions which it implements
1652 to always fail with ENOSYS. Some functions are actually named
1653 something starting with __ and the normal name is an alias. */
1654 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1662 if { (eval echo configure:1663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1664 eval "ac_cv_func_$ac_func=yes"
1666 echo "configure: failed program was:" >&5
1667 cat conftest.$ac_ext >&5
1669 eval "ac_cv_func_$ac_func=no"
1674 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1675 echo "$ac_t""yes" 1>&6
1676 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1677 cat >> confdefs.h <<EOF
1678 #define $ac_tr_func 1
1682 echo "$ac_t""no" 1>&6
1686 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
1687 echo "configure:1688: checking for inet_aton" >&5
1688 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
1689 echo $ac_n "(cached) $ac_c" 1>&6
1691 cat > conftest.$ac_ext <<EOF
1692 #line 1693 "configure"
1693 #include "confdefs.h"
1694 /* System header to define __stub macros and hopefully few prototypes,
1695 which can conflict with char inet_aton(); below. */
1697 /* Override any gcc2 internal prototype to avoid an error. */
1698 /* We use char because int might match the return type of a gcc2
1699 builtin and then its argument prototype would still apply. */
1704 /* The GNU C library defines this for functions which it implements
1705 to always fail with ENOSYS. Some functions are actually named
1706 something starting with __ and the normal name is an alias. */
1707 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
1715 if { (eval echo configure:1716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1717 eval "ac_cv_func_inet_aton=yes"
1719 echo "configure: failed program was:" >&5
1720 cat conftest.$ac_ext >&5
1722 eval "ac_cv_func_inet_aton=no"
1727 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
1728 echo "$ac_t""yes" 1>&6
1731 echo "$ac_t""no" 1>&6
1732 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
1733 echo "configure:1734: checking for inet_aton in -lresolv" >&5
1734 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
1735 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1736 echo $ac_n "(cached) $ac_c" 1>&6
1738 ac_save_LIBS="$LIBS"
1739 LIBS="-lresolv $LIBS"
1740 cat > conftest.$ac_ext <<EOF
1741 #line 1742 "configure"
1742 #include "confdefs.h"
1743 /* Override any gcc2 internal prototype to avoid an error. */
1744 /* We use char because int might match the return type of a gcc2
1745 builtin and then its argument prototype would still apply. */
1752 if { (eval echo configure:1753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1754 eval "ac_cv_lib_$ac_lib_var=yes"
1756 echo "configure: failed program was:" >&5
1757 cat conftest.$ac_ext >&5
1759 eval "ac_cv_lib_$ac_lib_var=no"
1762 LIBS="$ac_save_LIBS"
1765 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1766 echo "$ac_t""yes" 1>&6
1767 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1768 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1769 cat >> confdefs.h <<EOF
1770 #define $ac_tr_lib 1
1773 LIBS="-lresolv $LIBS"
1776 echo "$ac_t""no" 1>&6
1781 for ac_func in vasprintf
1783 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1784 echo "configure:1785: checking for $ac_func" >&5
1785 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1786 echo $ac_n "(cached) $ac_c" 1>&6
1788 cat > conftest.$ac_ext <<EOF
1789 #line 1790 "configure"
1790 #include "confdefs.h"
1791 /* System header to define __stub macros and hopefully few prototypes,
1792 which can conflict with char $ac_func(); below. */
1794 /* Override any gcc2 internal prototype to avoid an error. */
1795 /* We use char because int might match the return type of a gcc2
1796 builtin and then its argument prototype would still apply. */
1801 /* The GNU C library defines this for functions which it implements
1802 to always fail with ENOSYS. Some functions are actually named
1803 something starting with __ and the normal name is an alias. */
1804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1812 if { (eval echo configure:1813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1814 eval "ac_cv_func_$ac_func=yes"
1816 echo "configure: failed program was:" >&5
1817 cat conftest.$ac_ext >&5
1819 eval "ac_cv_func_$ac_func=no"
1824 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1825 echo "$ac_t""yes" 1>&6
1826 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1827 cat >> confdefs.h <<EOF
1828 #define $ac_tr_func 1
1832 echo "$ac_t""no" 1>&6
1836 for ac_hdr in unistd.h
1838 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1839 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1840 echo "configure:1841: checking for $ac_hdr" >&5
1841 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1842 echo $ac_n "(cached) $ac_c" 1>&6
1844 cat > conftest.$ac_ext <<EOF
1845 #line 1846 "configure"
1846 #include "confdefs.h"
1849 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1850 { (eval echo configure:1851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1851 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1852 if test -z "$ac_err"; then
1854 eval "ac_cv_header_$ac_safe=yes"
1857 echo "configure: failed program was:" >&5
1858 cat conftest.$ac_ext >&5
1860 eval "ac_cv_header_$ac_safe=no"
1864 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1865 echo "$ac_t""yes" 1>&6
1866 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1867 cat >> confdefs.h <<EOF
1868 #define $ac_tr_hdr 1
1872 echo "$ac_t""no" 1>&6
1876 for ac_func in getpagesize
1878 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1879 echo "configure:1880: checking for $ac_func" >&5
1880 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1881 echo $ac_n "(cached) $ac_c" 1>&6
1883 cat > conftest.$ac_ext <<EOF
1884 #line 1885 "configure"
1885 #include "confdefs.h"
1886 /* System header to define __stub macros and hopefully few prototypes,
1887 which can conflict with char $ac_func(); below. */
1889 /* Override any gcc2 internal prototype to avoid an error. */
1890 /* We use char because int might match the return type of a gcc2
1891 builtin and then its argument prototype would still apply. */
1896 /* The GNU C library defines this for functions which it implements
1897 to always fail with ENOSYS. Some functions are actually named
1898 something starting with __ and the normal name is an alias. */
1899 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1907 if { (eval echo configure:1908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1909 eval "ac_cv_func_$ac_func=yes"
1911 echo "configure: failed program was:" >&5
1912 cat conftest.$ac_ext >&5
1914 eval "ac_cv_func_$ac_func=no"
1919 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1920 echo "$ac_t""yes" 1>&6
1921 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1922 cat >> confdefs.h <<EOF
1923 #define $ac_tr_func 1
1927 echo "$ac_t""no" 1>&6
1931 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1932 echo "configure:1933: checking for working mmap" >&5
1933 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1934 echo $ac_n "(cached) $ac_c" 1>&6
1936 if test "$cross_compiling" = yes; then
1937 ac_cv_func_mmap_fixed_mapped=no
1939 cat > conftest.$ac_ext <<EOF
1940 #line 1941 "configure"
1941 #include "confdefs.h"
1943 /* Thanks to Mike Haertel and Jim Avera for this test.
1944 Here is a matrix of mmap possibilities:
1945 mmap private not fixed
1946 mmap private fixed at somewhere currently unmapped
1947 mmap private fixed at somewhere already mapped
1948 mmap shared not fixed
1949 mmap shared fixed at somewhere currently unmapped
1950 mmap shared fixed at somewhere already mapped
1951 For private mappings, we should verify that changes cannot be read()
1952 back from the file, nor mmap's back from the file at a different
1953 address. (There have been systems where private was not correctly
1954 implemented like the infamous i386 svr4.0, and systems where the
1955 VM page cache was not coherent with the filesystem buffer cache
1956 like early versions of FreeBSD and possibly contemporary NetBSD.)
1957 For shared mappings, we should conversely verify that changes get
1958 propogated back to all the places they're supposed to be.
1960 Grep wants private fixed already mapped.
1961 The main things grep needs to know about mmap are:
1962 * does it exist and is it safe to write into the mmap'd area
1963 * how to use it (BSD variants) */
1964 #include <sys/types.h>
1966 #include <sys/mman.h>
1968 /* This mess was copied from the GNU getpagesize.h. */
1969 #ifndef HAVE_GETPAGESIZE
1970 # ifdef HAVE_UNISTD_H
1971 # include <unistd.h>
1974 /* Assume that all systems that can run configure have sys/param.h. */
1975 # ifndef HAVE_SYS_PARAM_H
1976 # define HAVE_SYS_PARAM_H 1
1979 # ifdef _SC_PAGESIZE
1980 # define getpagesize() sysconf(_SC_PAGESIZE)
1981 # else /* no _SC_PAGESIZE */
1982 # ifdef HAVE_SYS_PARAM_H
1983 # include <sys/param.h>
1984 # ifdef EXEC_PAGESIZE
1985 # define getpagesize() EXEC_PAGESIZE
1986 # else /* no EXEC_PAGESIZE */
1988 # define getpagesize() NBPG * CLSIZE
1991 # endif /* no CLSIZE */
1992 # else /* no NBPG */
1994 # define getpagesize() NBPC
1995 # else /* no NBPC */
1997 # define getpagesize() PAGESIZE
1998 # endif /* PAGESIZE */
1999 # endif /* no NBPC */
2000 # endif /* no NBPG */
2001 # endif /* no EXEC_PAGESIZE */
2002 # else /* no HAVE_SYS_PARAM_H */
2003 # define getpagesize() 8192 /* punt totally */
2004 # endif /* no HAVE_SYS_PARAM_H */
2005 # endif /* no _SC_PAGESIZE */
2007 #endif /* no HAVE_GETPAGESIZE */
2010 extern "C" { void *malloc(unsigned); }
2018 char *data, *data2, *data3;
2022 pagesize = getpagesize();
2025 * First, make a file with some known garbage in it.
2027 data = malloc(pagesize);
2030 for (i = 0; i < pagesize; ++i)
2031 *(data + i) = rand();
2033 fd = creat("conftestmmap", 0600);
2036 if (write(fd, data, pagesize) != pagesize)
2041 * Next, try to mmap the file at a fixed address which
2042 * already has something else allocated at it. If we can,
2043 * also make sure that we see the same garbage.
2045 fd = open("conftestmmap", O_RDWR);
2048 data2 = malloc(2 * pagesize);
2051 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2052 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2053 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2055 for (i = 0; i < pagesize; ++i)
2056 if (*(data + i) != *(data2 + i))
2060 * Finally, make sure that changes to the mapped area
2061 * do not percolate back to the file as seen by read().
2062 * (This is a bug on some variants of i386 svr4.0.)
2064 for (i = 0; i < pagesize; ++i)
2065 *(data2 + i) = *(data2 + i) + 1;
2066 data3 = malloc(pagesize);
2069 if (read(fd, data3, pagesize) != pagesize)
2071 for (i = 0; i < pagesize; ++i)
2072 if (*(data + i) != *(data3 + i))
2075 unlink("conftestmmap");
2080 if { (eval echo configure:2081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2082 ac_cv_func_mmap_fixed_mapped=yes
2084 echo "configure: failed program was:" >&5
2085 cat conftest.$ac_ext >&5
2087 ac_cv_func_mmap_fixed_mapped=no
2094 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2095 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2096 cat >> confdefs.h <<\EOF
2102 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2103 echo "configure:2104: checking return type of signal handlers" >&5
2104 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2105 echo $ac_n "(cached) $ac_c" 1>&6
2107 cat > conftest.$ac_ext <<EOF
2108 #line 2109 "configure"
2109 #include "confdefs.h"
2110 #include <sys/types.h>
2116 extern "C" void (*signal (int, void (*)(int)))(int);
2118 void (*signal ()) ();
2125 if { (eval echo configure:2126: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2127 ac_cv_type_signal=void
2129 echo "configure: failed program was:" >&5
2130 cat conftest.$ac_ext >&5
2132 ac_cv_type_signal=int
2137 echo "$ac_t""$ac_cv_type_signal" 1>&6
2138 cat >> confdefs.h <<EOF
2139 #define RETSIGTYPE $ac_cv_type_signal
2143 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2144 echo "configure:2145: checking for dlopen in -ldl" >&5
2145 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2146 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2147 echo $ac_n "(cached) $ac_c" 1>&6
2149 ac_save_LIBS="$LIBS"
2151 cat > conftest.$ac_ext <<EOF
2152 #line 2153 "configure"
2153 #include "confdefs.h"
2154 /* Override any gcc2 internal prototype to avoid an error. */
2155 /* We use char because int might match the return type of a gcc2
2156 builtin and then its argument prototype would still apply. */
2163 if { (eval echo configure:2164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2165 eval "ac_cv_lib_$ac_lib_var=yes"
2167 echo "configure: failed program was:" >&5
2168 cat conftest.$ac_ext >&5
2170 eval "ac_cv_lib_$ac_lib_var=no"
2173 LIBS="$ac_save_LIBS"
2176 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2177 echo "$ac_t""yes" 1>&6
2178 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2179 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2180 cat >> confdefs.h <<EOF
2181 #define $ac_tr_lib 1
2187 echo "$ac_t""no" 1>&6
2190 echo $ac_n "checking for optarg in -lgnugetopt""... $ac_c" 1>&6
2191 echo "configure:2192: checking for optarg in -lgnugetopt" >&5
2192 ac_lib_var=`echo gnugetopt'_'optarg | sed 'y%./+-%__p_%'`
2193 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2194 echo $ac_n "(cached) $ac_c" 1>&6
2196 ac_save_LIBS="$LIBS"
2197 LIBS="-lgnugetopt $LIBS"
2198 cat > conftest.$ac_ext <<EOF
2199 #line 2200 "configure"
2200 #include "confdefs.h"
2201 /* Override any gcc2 internal prototype to avoid an error. */
2202 /* We use char because int might match the return type of a gcc2
2203 builtin and then its argument prototype would still apply. */
2210 if { (eval echo configure:2211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2212 eval "ac_cv_lib_$ac_lib_var=yes"
2214 echo "configure: failed program was:" >&5
2215 cat conftest.$ac_ext >&5
2217 eval "ac_cv_lib_$ac_lib_var=no"
2220 LIBS="$ac_save_LIBS"
2223 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2224 echo "$ac_t""yes" 1>&6
2225 ac_tr_lib=HAVE_LIB`echo gnugetopt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2226 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2227 cat >> confdefs.h <<EOF
2228 #define $ac_tr_lib 1
2231 LIBS="-lgnugetopt $LIBS"
2234 echo "$ac_t""no" 1>&6
2237 echo $ac_n "checking for _ in -lbe""... $ac_c" 1>&6
2238 echo "configure:2239: checking for _ in -lbe" >&5
2239 ac_lib_var=`echo be'_'_ | sed 'y%./+-%__p_%'`
2240 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2241 echo $ac_n "(cached) $ac_c" 1>&6
2243 ac_save_LIBS="$LIBS"
2245 cat > conftest.$ac_ext <<EOF
2246 #line 2247 "configure"
2247 #include "confdefs.h"
2248 /* Override any gcc2 internal prototype to avoid an error. */
2249 /* We use char because int might match the return type of a gcc2
2250 builtin and then its argument prototype would still apply. */
2257 if { (eval echo configure:2258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2259 eval "ac_cv_lib_$ac_lib_var=yes"
2261 echo "configure: failed program was:" >&5
2262 cat conftest.$ac_ext >&5
2264 eval "ac_cv_lib_$ac_lib_var=no"
2267 LIBS="$ac_save_LIBS"
2270 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2271 echo "$ac_t""yes" 1>&6
2272 ac_tr_lib=HAVE_LIB`echo be | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2273 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2274 cat >> confdefs.h <<EOF
2275 #define $ac_tr_lib 1
2281 echo "$ac_t""no" 1>&6
2284 echo $ac_n "checking for _ in -lgame""... $ac_c" 1>&6
2285 echo "configure:2286: checking for _ in -lgame" >&5
2286 ac_lib_var=`echo game'_'_ | sed 'y%./+-%__p_%'`
2287 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2288 echo $ac_n "(cached) $ac_c" 1>&6
2290 ac_save_LIBS="$LIBS"
2292 cat > conftest.$ac_ext <<EOF
2293 #line 2294 "configure"
2294 #include "confdefs.h"
2295 /* Override any gcc2 internal prototype to avoid an error. */
2296 /* We use char because int might match the return type of a gcc2
2297 builtin and then its argument prototype would still apply. */
2304 if { (eval echo configure:2305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2306 eval "ac_cv_lib_$ac_lib_var=yes"
2308 echo "configure: failed program was:" >&5
2309 cat conftest.$ac_ext >&5
2311 eval "ac_cv_lib_$ac_lib_var=no"
2314 LIBS="$ac_save_LIBS"
2317 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2318 echo "$ac_t""yes" 1>&6
2319 ac_tr_lib=HAVE_LIB`echo game | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2320 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2321 cat >> confdefs.h <<EOF
2322 #define $ac_tr_lib 1
2328 echo "$ac_t""no" 1>&6
2331 echo $ac_n "checking for _ in -lroot""... $ac_c" 1>&6
2332 echo "configure:2333: checking for _ in -lroot" >&5
2333 ac_lib_var=`echo root'_'_ | sed 'y%./+-%__p_%'`
2334 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2335 echo $ac_n "(cached) $ac_c" 1>&6
2337 ac_save_LIBS="$LIBS"
2339 cat > conftest.$ac_ext <<EOF
2340 #line 2341 "configure"
2341 #include "confdefs.h"
2342 /* Override any gcc2 internal prototype to avoid an error. */
2343 /* We use char because int might match the return type of a gcc2
2344 builtin and then its argument prototype would still apply. */
2351 if { (eval echo configure:2352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2353 eval "ac_cv_lib_$ac_lib_var=yes"
2355 echo "configure: failed program was:" >&5
2356 cat conftest.$ac_ext >&5
2358 eval "ac_cv_lib_$ac_lib_var=no"
2361 LIBS="$ac_save_LIBS"
2364 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2365 echo "$ac_t""yes" 1>&6
2366 ac_tr_lib=HAVE_LIB`echo root | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2367 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2368 cat >> confdefs.h <<EOF
2369 #define $ac_tr_lib 1
2375 echo "$ac_t""no" 1>&6
2378 echo $ac_n "checking for powl in -lm""... $ac_c" 1>&6
2379 echo "configure:2380: checking for powl in -lm" >&5
2380 ac_lib_var=`echo m'_'powl | sed 'y%./+-%__p_%'`
2381 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2382 echo $ac_n "(cached) $ac_c" 1>&6
2384 ac_save_LIBS="$LIBS"
2386 cat > conftest.$ac_ext <<EOF
2387 #line 2388 "configure"
2388 #include "confdefs.h"
2389 /* Override any gcc2 internal prototype to avoid an error. */
2390 /* We use char because int might match the return type of a gcc2
2391 builtin and then its argument prototype would still apply. */
2398 if { (eval echo configure:2399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2400 eval "ac_cv_lib_$ac_lib_var=yes"
2402 echo "configure: failed program was:" >&5
2403 cat conftest.$ac_ext >&5
2405 eval "ac_cv_lib_$ac_lib_var=no"
2408 LIBS="$ac_save_LIBS"
2411 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2412 echo "$ac_t""yes" 1>&6
2413 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2414 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2415 cat >> confdefs.h <<EOF
2416 #define $ac_tr_lib 1
2422 echo "$ac_t""no" 1>&6
2425 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
2426 echo "configure:2427: checking for pthread_create in -lpthread" >&5
2427 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
2428 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2429 echo $ac_n "(cached) $ac_c" 1>&6
2431 ac_save_LIBS="$LIBS"
2432 LIBS="-lpthread $LIBS"
2433 cat > conftest.$ac_ext <<EOF
2434 #line 2435 "configure"
2435 #include "confdefs.h"
2436 /* Override any gcc2 internal prototype to avoid an error. */
2437 /* We use char because int might match the return type of a gcc2
2438 builtin and then its argument prototype would still apply. */
2439 char pthread_create();
2445 if { (eval echo configure:2446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2447 eval "ac_cv_lib_$ac_lib_var=yes"
2449 echo "configure: failed program was:" >&5
2450 cat conftest.$ac_ext >&5
2452 eval "ac_cv_lib_$ac_lib_var=no"
2455 LIBS="$ac_save_LIBS"
2458 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2459 echo "$ac_t""yes" 1>&6
2460 ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2461 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2462 cat >> confdefs.h <<EOF
2463 #define $ac_tr_lib 1
2466 LIBS="-lpthread $LIBS"
2469 echo "$ac_t""no" 1>&6
2472 echo $ac_n "checking for thread_create in -lthreads""... $ac_c" 1>&6
2473 echo "configure:2474: checking for thread_create in -lthreads" >&5
2474 ac_lib_var=`echo threads'_'thread_create | sed 'y%./+-%__p_%'`
2475 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2476 echo $ac_n "(cached) $ac_c" 1>&6
2478 ac_save_LIBS="$LIBS"
2479 LIBS="-lthreads $LIBS"
2480 cat > conftest.$ac_ext <<EOF
2481 #line 2482 "configure"
2482 #include "confdefs.h"
2483 /* Override any gcc2 internal prototype to avoid an error. */
2484 /* We use char because int might match the return type of a gcc2
2485 builtin and then its argument prototype would still apply. */
2486 char thread_create();
2492 if { (eval echo configure:2493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2494 eval "ac_cv_lib_$ac_lib_var=yes"
2496 echo "configure: failed program was:" >&5
2497 cat conftest.$ac_ext >&5
2499 eval "ac_cv_lib_$ac_lib_var=no"
2502 LIBS="$ac_save_LIBS"
2505 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2506 echo "$ac_t""yes" 1>&6
2507 ac_tr_lib=HAVE_LIB`echo threads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2508 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2509 cat >> confdefs.h <<EOF
2510 #define $ac_tr_lib 1
2513 LIBS="-lthreads $LIBS"
2516 echo "$ac_t""no" 1>&6
2520 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
2521 echo "configure:2522: checking for getopt_long" >&5
2522 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
2523 echo $ac_n "(cached) $ac_c" 1>&6
2525 cat > conftest.$ac_ext <<EOF
2526 #line 2527 "configure"
2527 #include "confdefs.h"
2528 /* System header to define __stub macros and hopefully few prototypes,
2529 which can conflict with char getopt_long(); below. */
2531 /* Override any gcc2 internal prototype to avoid an error. */
2532 /* We use char because int might match the return type of a gcc2
2533 builtin and then its argument prototype would still apply. */
2538 /* The GNU C library defines this for functions which it implements
2539 to always fail with ENOSYS. Some functions are actually named
2540 something starting with __ and the normal name is an alias. */
2541 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
2549 if { (eval echo configure:2550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2551 eval "ac_cv_func_getopt_long=yes"
2553 echo "configure: failed program was:" >&5
2554 cat conftest.$ac_ext >&5
2556 eval "ac_cv_func_getopt_long=no"
2561 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
2562 echo "$ac_t""yes" 1>&6
2565 echo "$ac_t""no" 1>&6
2566 LIBOBJS="$LIBOBJS getopt.o getopt1.o"
2571 CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
2572 for ac_hdr in stddef.h
2574 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2575 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2576 echo "configure:2577: checking for $ac_hdr" >&5
2577 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2578 echo $ac_n "(cached) $ac_c" 1>&6
2580 cat > conftest.$ac_ext <<EOF
2581 #line 2582 "configure"
2582 #include "confdefs.h"
2585 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2586 { (eval echo configure:2587: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2587 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2588 if test -z "$ac_err"; then
2590 eval "ac_cv_header_$ac_safe=yes"
2593 echo "configure: failed program was:" >&5
2594 cat conftest.$ac_ext >&5
2596 eval "ac_cv_header_$ac_safe=no"
2600 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2601 echo "$ac_t""yes" 1>&6
2602 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2603 cat >> confdefs.h <<EOF
2604 #define $ac_tr_hdr 1
2608 echo "$ac_t""no" 1>&6
2612 for ac_hdr in getopt.h
2614 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2615 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2616 echo "configure:2617: checking for $ac_hdr" >&5
2617 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2618 echo $ac_n "(cached) $ac_c" 1>&6
2620 cat > conftest.$ac_ext <<EOF
2621 #line 2622 "configure"
2622 #include "confdefs.h"
2625 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2626 { (eval echo configure:2627: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2627 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2628 if test -z "$ac_err"; then
2630 eval "ac_cv_header_$ac_safe=yes"
2633 echo "configure: failed program was:" >&5
2634 cat conftest.$ac_ext >&5
2636 eval "ac_cv_header_$ac_safe=no"
2640 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2641 echo "$ac_t""yes" 1>&6
2642 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2643 cat >> confdefs.h <<EOF
2644 #define $ac_tr_hdr 1
2648 echo "$ac_t""no" 1>&6
2652 for ac_hdr in sys/sockio.h
2654 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2655 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2656 echo "configure:2657: checking for $ac_hdr" >&5
2657 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2658 echo $ac_n "(cached) $ac_c" 1>&6
2660 cat > conftest.$ac_ext <<EOF
2661 #line 2662 "configure"
2662 #include "confdefs.h"
2665 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2666 { (eval echo configure:2667: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2667 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2668 if test -z "$ac_err"; then
2670 eval "ac_cv_header_$ac_safe=yes"
2673 echo "configure: failed program was:" >&5
2674 cat conftest.$ac_ext >&5
2676 eval "ac_cv_header_$ac_safe=no"
2680 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2681 echo "$ac_t""yes" 1>&6
2682 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2683 cat >> confdefs.h <<EOF
2684 #define $ac_tr_hdr 1
2688 echo "$ac_t""no" 1>&6
2692 for ac_hdr in fcntl.h sys/time.h unistd.h
2694 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2695 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2696 echo "configure:2697: checking for $ac_hdr" >&5
2697 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2698 echo $ac_n "(cached) $ac_c" 1>&6
2700 cat > conftest.$ac_ext <<EOF
2701 #line 2702 "configure"
2702 #include "confdefs.h"
2705 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2706 { (eval echo configure:2707: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2707 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2708 if test -z "$ac_err"; then
2710 eval "ac_cv_header_$ac_safe=yes"
2713 echo "configure: failed program was:" >&5
2714 cat conftest.$ac_ext >&5
2716 eval "ac_cv_header_$ac_safe=no"
2720 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2721 echo "$ac_t""yes" 1>&6
2722 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2723 cat >> confdefs.h <<EOF
2724 #define $ac_tr_hdr 1
2728 echo "$ac_t""no" 1>&6
2732 for ac_hdr in sys/soundcard.h machine/soundcard.h
2734 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2735 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2736 echo "configure:2737: checking for $ac_hdr" >&5
2737 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2738 echo $ac_n "(cached) $ac_c" 1>&6
2740 cat > conftest.$ac_ext <<EOF
2741 #line 2742 "configure"
2742 #include "confdefs.h"
2745 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2746 { (eval echo configure:2747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2747 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2748 if test -z "$ac_err"; then
2750 eval "ac_cv_header_$ac_safe=yes"
2753 echo "configure: failed program was:" >&5
2754 cat conftest.$ac_ext >&5
2756 eval "ac_cv_header_$ac_safe=no"
2760 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2761 echo "$ac_t""yes" 1>&6
2762 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2763 cat >> confdefs.h <<EOF
2764 #define $ac_tr_hdr 1
2768 echo "$ac_t""no" 1>&6
2772 for ac_hdr in dlfcn.h image.h
2774 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2775 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2776 echo "configure:2777: checking for $ac_hdr" >&5
2777 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2778 echo $ac_n "(cached) $ac_c" 1>&6
2780 cat > conftest.$ac_ext <<EOF
2781 #line 2782 "configure"
2782 #include "confdefs.h"
2785 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2786 { (eval echo configure:2787: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2787 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2788 if test -z "$ac_err"; then
2790 eval "ac_cv_header_$ac_safe=yes"
2793 echo "configure: failed program was:" >&5
2794 cat conftest.$ac_ext >&5
2796 eval "ac_cv_header_$ac_safe=no"
2800 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2801 echo "$ac_t""yes" 1>&6
2802 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2803 cat >> confdefs.h <<EOF
2804 #define $ac_tr_hdr 1
2808 echo "$ac_t""no" 1>&6
2812 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
2814 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2815 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2816 echo "configure:2817: checking for $ac_hdr" >&5
2817 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2818 echo $ac_n "(cached) $ac_c" 1>&6
2820 cat > conftest.$ac_ext <<EOF
2821 #line 2822 "configure"
2822 #include "confdefs.h"
2825 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2826 { (eval echo configure:2827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2827 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2828 if test -z "$ac_err"; then
2830 eval "ac_cv_header_$ac_safe=yes"
2833 echo "configure: failed program was:" >&5
2834 cat conftest.$ac_ext >&5
2836 eval "ac_cv_header_$ac_safe=no"
2840 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2841 echo "$ac_t""yes" 1>&6
2842 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2843 cat >> confdefs.h <<EOF
2844 #define $ac_tr_hdr 1
2848 echo "$ac_t""no" 1>&6
2852 for ac_hdr in machine/param.h
2854 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2855 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2856 echo "configure:2857: checking for $ac_hdr" >&5
2857 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2858 echo $ac_n "(cached) $ac_c" 1>&6
2860 cat > conftest.$ac_ext <<EOF
2861 #line 2862 "configure"
2862 #include "confdefs.h"
2865 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2866 { (eval echo configure:2867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2867 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2868 if test -z "$ac_err"; then
2870 eval "ac_cv_header_$ac_safe=yes"
2873 echo "configure: failed program was:" >&5
2874 cat conftest.$ac_ext >&5
2876 eval "ac_cv_header_$ac_safe=no"
2880 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2881 echo "$ac_t""yes" 1>&6
2882 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2883 cat >> confdefs.h <<EOF
2884 #define $ac_tr_hdr 1
2888 echo "$ac_t""no" 1>&6
2893 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
2895 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2896 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2897 echo "configure:2898: checking for $ac_hdr" >&5
2898 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2899 echo $ac_n "(cached) $ac_c" 1>&6
2901 cat > conftest.$ac_ext <<EOF
2902 #line 2903 "configure"
2903 #include "confdefs.h"
2906 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2907 { (eval echo configure:2908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2908 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2909 if test -z "$ac_err"; then
2911 eval "ac_cv_header_$ac_safe=yes"
2914 echo "configure: failed program was:" >&5
2915 cat conftest.$ac_ext >&5
2917 eval "ac_cv_header_$ac_safe=no"
2921 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2922 echo "$ac_t""yes" 1>&6
2923 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2924 cat >> confdefs.h <<EOF
2925 #define $ac_tr_hdr 1
2929 echo "$ac_t""no" 1>&6
2936 CFLAGS="${CFLAGS} -Wall -Werror"
2937 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
2938 echo "configure:2939: checking for ntohl in sys/param.h" >&5
2939 cat > conftest.$ac_ext <<EOF
2940 #line 2941 "configure"
2941 #include "confdefs.h"
2942 #include <sys/param.h>
2943 void foo() { int meuh; ntohl(meuh); }
2948 if { (eval echo configure:2949: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2950 cat >> confdefs.h <<\EOF
2951 #define NTOHL_IN_SYS_PARAM_H 1
2954 echo "$ac_t""yes" 1>&6
2956 echo "configure: failed program was:" >&5
2957 cat conftest.$ac_ext >&5
2959 echo "$ac_t""no" 1>&6
2963 CFLAGS="${CFLAGS} -rdynamic -Wall -Werror"
2964 echo $ac_n "checking if \$CC accepts -rdynamic""... $ac_c" 1>&6
2965 echo "configure:2966: checking if \$CC accepts -rdynamic" >&5
2966 cat > conftest.$ac_ext <<EOF
2967 #line 2968 "configure"
2968 #include "confdefs.h"
2974 if { (eval echo configure:2975: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2976 DYNAMIC_FLAG="-rdynamic"
2977 echo "$ac_t""yes" 1>&6
2979 echo "configure: failed program was:" >&5
2980 cat conftest.$ac_ext >&5
2982 echo "$ac_t""no" 1>&6
2988 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
2989 echo "configure:2990: checking for boolean_t in sys/types.h" >&5
2990 cat > conftest.$ac_ext <<EOF
2991 #line 2992 "configure"
2992 #include "confdefs.h"
2993 #include <sys/types.h>
2994 void quux() { boolean_t foo; }
2999 if { (eval echo configure:3000: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3001 cat >> confdefs.h <<\EOF
3002 #define BOOLEAN_T_IN_SYS_TYPES_H 1
3005 echo "$ac_t""yes" 1>&6
3007 echo "configure: failed program was:" >&5
3008 cat conftest.$ac_ext >&5
3010 echo "$ac_t""no" 1>&6
3013 echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
3014 echo "configure:3015: checking for boolean_t in pthread.h" >&5
3015 cat > conftest.$ac_ext <<EOF
3016 #line 3017 "configure"
3017 #include "confdefs.h"
3018 #include <pthread.h>
3019 void quux() { boolean_t foo; }
3024 if { (eval echo configure:3025: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3026 cat >> confdefs.h <<\EOF
3027 #define BOOLEAN_T_IN_PTHREAD_H 1
3030 echo "$ac_t""yes" 1>&6
3032 echo "configure: failed program was:" >&5
3033 cat conftest.$ac_ext >&5
3035 echo "$ac_t""no" 1>&6
3039 echo $ac_n "checking for working const""... $ac_c" 1>&6
3040 echo "configure:3041: checking for working const" >&5
3041 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3042 echo $ac_n "(cached) $ac_c" 1>&6
3044 cat > conftest.$ac_ext <<EOF
3045 #line 3046 "configure"
3046 #include "confdefs.h"
3050 /* Ultrix mips cc rejects this. */
3051 typedef int charset[2]; const charset x;
3052 /* SunOS 4.1.1 cc rejects this. */
3053 char const *const *ccp;
3055 /* NEC SVR4.0.2 mips cc rejects this. */
3056 struct point {int x, y;};
3057 static struct point const zero = {0,0};
3058 /* AIX XL C 1.02.0.0 rejects this.
3059 It does not let you subtract one const X* pointer from another in an arm
3060 of an if-expression whose if-part is not a constant expression */
3061 const char *g = "string";
3062 ccp = &g + (g ? g-g : 0);
3063 /* HPUX 7.0 cc rejects these. */
3066 ccp = (char const *const *) p;
3067 { /* SCO 3.2v4 cc rejects this. */
3069 char const *s = 0 ? (char *) 0 : (char const *) 0;
3073 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3075 const int *foo = &x[0];
3078 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3079 typedef const int *iptr;
3083 { /* AIX XL C 1.02.0.0 rejects this saying
3084 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3085 struct s { int j; const int *ap[3]; };
3086 struct s *b; b->j = 5;
3088 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3094 if { (eval echo configure:3095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3098 echo "configure: failed program was:" >&5
3099 cat conftest.$ac_ext >&5
3106 echo "$ac_t""$ac_cv_c_const" 1>&6
3107 if test $ac_cv_c_const = no; then
3108 cat >> confdefs.h <<\EOF
3114 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3115 echo "configure:3116: checking for ANSI C header files" >&5
3116 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3117 echo $ac_n "(cached) $ac_c" 1>&6
3119 cat > conftest.$ac_ext <<EOF
3120 #line 3121 "configure"
3121 #include "confdefs.h"
3127 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3128 { (eval echo configure:3129: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3129 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3130 if test -z "$ac_err"; then
3132 ac_cv_header_stdc=yes
3135 echo "configure: failed program was:" >&5
3136 cat conftest.$ac_ext >&5
3138 ac_cv_header_stdc=no
3142 if test $ac_cv_header_stdc = yes; then
3143 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3144 cat > conftest.$ac_ext <<EOF
3145 #line 3146 "configure"
3146 #include "confdefs.h"
3149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3150 egrep "memchr" >/dev/null 2>&1; then
3154 ac_cv_header_stdc=no
3160 if test $ac_cv_header_stdc = yes; then
3161 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3162 cat > conftest.$ac_ext <<EOF
3163 #line 3164 "configure"
3164 #include "confdefs.h"
3167 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3168 egrep "free" >/dev/null 2>&1; then
3172 ac_cv_header_stdc=no
3178 if test $ac_cv_header_stdc = yes; then
3179 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3180 if test "$cross_compiling" = yes; then
3183 cat > conftest.$ac_ext <<EOF
3184 #line 3185 "configure"
3185 #include "confdefs.h"
3187 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3188 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3189 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3190 int main () { int i; for (i = 0; i < 256; i++)
3191 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3195 if { (eval echo configure:3196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3199 echo "configure: failed program was:" >&5
3200 cat conftest.$ac_ext >&5
3202 ac_cv_header_stdc=no
3210 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3211 if test $ac_cv_header_stdc = yes; then
3212 cat >> confdefs.h <<\EOF
3213 #define STDC_HEADERS 1
3218 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3219 echo "configure:3220: checking for size_t" >&5
3220 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3221 echo $ac_n "(cached) $ac_c" 1>&6
3223 cat > conftest.$ac_ext <<EOF
3224 #line 3225 "configure"
3225 #include "confdefs.h"
3226 #include <sys/types.h>
3232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3233 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3235 ac_cv_type_size_t=yes
3238 ac_cv_type_size_t=no
3243 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3244 if test $ac_cv_type_size_t = no; then
3245 cat >> confdefs.h <<\EOF
3246 #define size_t unsigned
3251 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3252 echo "configure:3253: checking whether time.h and sys/time.h may both be included" >&5
3253 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3254 echo $ac_n "(cached) $ac_c" 1>&6
3256 cat > conftest.$ac_ext <<EOF
3257 #line 3258 "configure"
3258 #include "confdefs.h"
3259 #include <sys/types.h>
3260 #include <sys/time.h>
3266 if { (eval echo configure:3267: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3268 ac_cv_header_time=yes
3270 echo "configure: failed program was:" >&5
3271 cat conftest.$ac_ext >&5
3273 ac_cv_header_time=no
3278 echo "$ac_t""$ac_cv_header_time" 1>&6
3279 if test $ac_cv_header_time = yes; then
3280 cat >> confdefs.h <<\EOF
3281 #define TIME_WITH_SYS_TIME 1
3287 PLUGINS=${PLUGINS}"ps ts yuv idct idctclassic motion "
3288 if test x$host_os = xbeos; then
3289 ACCEL_PLUGINS="yuvmmx idctmmx motionmmx "
3291 ACCEL_PLUGINS="yuvmmx idctmmx idctmmxext motionmmx motionmmxext "
3294 for ac_hdr in sys/ioctl.h
3296 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3297 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3298 echo "configure:3299: checking for $ac_hdr" >&5
3299 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3300 echo $ac_n "(cached) $ac_c" 1>&6
3302 cat > conftest.$ac_ext <<EOF
3303 #line 3304 "configure"
3304 #include "confdefs.h"
3307 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3308 { (eval echo configure:3309: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3309 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3310 if test -z "$ac_err"; then
3312 eval "ac_cv_header_$ac_safe=yes"
3315 echo "configure: failed program was:" >&5
3316 cat conftest.$ac_ext >&5
3318 eval "ac_cv_header_$ac_safe=no"
3322 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3323 echo "$ac_t""yes" 1>&6
3324 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3325 cat >> confdefs.h <<EOF
3326 #define $ac_tr_hdr 1
3328 PLUGINS=${PLUGINS}"dvd "
3329 for ac_hdr in linux/cdrom.h
3331 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3332 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3333 echo "configure:3334: checking for $ac_hdr" >&5
3334 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3335 echo $ac_n "(cached) $ac_c" 1>&6
3337 cat > conftest.$ac_ext <<EOF
3338 #line 3339 "configure"
3339 #include "confdefs.h"
3342 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3343 { (eval echo configure:3344: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3344 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3345 if test -z "$ac_err"; then
3347 eval "ac_cv_header_$ac_safe=yes"
3350 echo "configure: failed program was:" >&5
3351 cat conftest.$ac_ext >&5
3353 eval "ac_cv_header_$ac_safe=no"
3357 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3358 echo "$ac_t""yes" 1>&6
3359 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3360 cat >> confdefs.h <<EOF
3361 #define $ac_tr_hdr 1
3365 echo "$ac_t""no" 1>&6
3369 cat > conftest.$ac_ext <<EOF
3370 #line 3371 "configure"
3371 #include "confdefs.h"
3372 #include <linux/cdrom.h>
3374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3375 egrep "dvd" >/dev/null 2>&1; then
3377 cat >> confdefs.h <<\EOF
3385 echo "$ac_t""no" 1>&6
3391 # Check whether --enable-dummy or --disable-dummy was given.
3392 if test "${enable_dummy+set}" = set; then
3393 enableval="$enable_dummy"
3397 if test x$enable_dummy != xno; then PLUGINS=${PLUGINS}"dummy "; fi
3398 # Check whether --enable-null or --disable-null was given.
3399 if test "${enable_null+set}" = set; then
3400 enableval="$enable_null"
3404 if test x$enable_null != xno; then PLUGINS=${PLUGINS}"null "; fi
3405 # Check whether --enable-ppro or --disable-ppro was given.
3406 if test "${enable_ppro+set}" = set; then
3407 enableval="$enable_ppro"
3408 if test x$enableval = xyes; then ARCH=${ARCH}" ppro"; fi
3410 if test x${host_cpu} = xi686; then ARCH=${ARCH}" ppro"; fi
3413 # Check whether --enable-mmx or --disable-mmx was given.
3414 if test "${enable_mmx+set}" = set; then
3415 enableval="$enable_mmx"
3416 if test x$enableval = xyes; then ARCH=${ARCH}" mmx"; PLUGINS=${PLUGINS}${ACCEL_PLUGINS}; fi
3418 if test x${host_cpu} = xi686 -o x${host_cpu} = xi586 -o x${host_cpu} = xx86; then ARCH=${ARCH}" mmx"; PLUGINS=${PLUGINS}${ACCEL_PLUGINS}; fi
3421 # Check whether --enable-css or --disable-css was given.
3422 if test "${enable_css+set}" = set; then
3423 enableval="$enable_css"
3424 if test x$enableval = xyes; then CSS=1; else CSS=0; fi
3429 if test x${CSS} = x1; then cat >> confdefs.h <<\EOF
3433 # Check whether --enable-debug or --disable-debug was given.
3434 if test "${enable_debug+set}" = set; then
3435 enableval="$enable_debug"
3436 if test x$enableval = xyes; then DEBUG=1; fi
3439 # Check whether --enable-stats or --disable-stats was given.
3440 if test "${enable_stats+set}" = set; then
3441 enableval="$enable_stats"
3442 if test x$enableval = xyes; then STATS=1; fi
3445 # Check whether --enable-optimizations or --disable-optimizations was given.
3446 if test "${enable_optimizations+set}" = set; then
3447 enableval="$enable_optimizations"
3448 if test x$enableval = xno; then OPTIMS=0; fi
3457 if test x$host_os = xbeos; then
3458 PLUGINS=${PLUGINS}"beos "
3464 # Check whether --enable-dsp or --disable-dsp was given.
3465 if test "${enable_dsp+set}" = set; then
3466 enableval="$enable_dsp"
3470 if test x$enable_dsp != xno; then
3471 if test -c /dev/dsp; then
3472 PLUGINS=${PLUGINS}"dsp "
3475 # Check whether --enable-esd or --disable-esd was given.
3476 if test "${enable_esd+set}" = set; then
3477 enableval="$enable_esd"
3478 if test x$enable_esd = xyes; then PLUGINS=${PLUGINS}"esd "; fi
3481 # Check whether --enable-darwin or --disable-darwin was given.
3482 if test "${enable_darwin+set}" = set; then
3483 enableval="$enable_darwin"
3484 if test x$enable_darwin = xyes; then PLUGINS=${PLUGINS}"darwin "; fi
3486 for ac_hdr in CoreAudio/AudioHardware.h
3488 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3489 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3490 echo "configure:3491: checking for $ac_hdr" >&5
3491 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3492 echo $ac_n "(cached) $ac_c" 1>&6
3494 cat > conftest.$ac_ext <<EOF
3495 #line 3496 "configure"
3496 #include "confdefs.h"
3499 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3500 { (eval echo configure:3501: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3501 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3502 if test -z "$ac_err"; then
3504 eval "ac_cv_header_$ac_safe=yes"
3507 echo "configure: failed program was:" >&5
3508 cat conftest.$ac_ext >&5
3510 eval "ac_cv_header_$ac_safe=no"
3514 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3515 echo "$ac_t""yes" 1>&6
3516 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3517 cat >> confdefs.h <<EOF
3518 #define $ac_tr_hdr 1
3520 PLUGINS=${PLUGINS}"darwin "
3522 echo "$ac_t""no" 1>&6
3528 # Check whether --enable-macosx or --disable-macosx was given.
3529 if test "${enable_macosx+set}" = set; then
3530 enableval="$enable_macosx"
3531 if test x$enable_macosx = xyes; then PLUGINS=${PLUGINS}"macosx "; fi
3534 # Check whether --enable-fb or --disable-fb was given.
3535 if test "${enable_fb+set}" = set; then
3536 enableval="$enable_fb"
3537 if test x$enable_fb = xyes; then PLUGINS=${PLUGINS}"fb "; fi
3540 # Check whether --with-ggi or --without-ggi was given.
3541 if test "${with_ggi+set}" = set; then
3543 if test "x$withval" != "xno";
3545 PLUGINS=${PLUGINS}"ggi ";
3546 if test "x$withval" != "xyes";
3548 LIB_GGI="-l"$withval
3555 # Check whether --with-sdl or --without-sdl was given.
3556 if test "${with_sdl+set}" = set; then
3558 if test "x$withval" != "xno";
3560 PLUGINS=${PLUGINS}"sdl ";
3561 if test "x$withval" != "xyes";
3563 LIB_SDL="L/usr/X11R6/lib -l"$withval
3565 for ac_hdr in SDL/SDL.h
3567 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3568 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3569 echo "configure:3570: checking for $ac_hdr" >&5
3570 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3571 echo $ac_n "(cached) $ac_c" 1>&6
3573 cat > conftest.$ac_ext <<EOF
3574 #line 3575 "configure"
3575 #include "confdefs.h"
3578 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3579 { (eval echo configure:3580: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3580 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3581 if test -z "$ac_err"; then
3583 eval "ac_cv_header_$ac_safe=yes"
3586 echo "configure: failed program was:" >&5
3587 cat conftest.$ac_ext >&5
3589 eval "ac_cv_header_$ac_safe=no"
3593 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3594 echo "$ac_t""yes" 1>&6
3595 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3596 cat >> confdefs.h <<EOF
3597 #define $ac_tr_hdr 1
3601 echo "$ac_t""no" 1>&6
3602 echo "Cannot find SDL headers !"; exit
3606 LIB_SDL="-L/usr/X11R6/lib -lSDL"
3611 if test "x$withval" = "x";
3613 for ac_hdr in SDL/SDL.h
3615 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3616 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3617 echo "configure:3618: checking for $ac_hdr" >&5
3618 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3619 echo $ac_n "(cached) $ac_c" 1>&6
3621 cat > conftest.$ac_ext <<EOF
3622 #line 3623 "configure"
3623 #include "confdefs.h"
3626 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3627 { (eval echo configure:3628: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3628 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3629 if test -z "$ac_err"; then
3631 eval "ac_cv_header_$ac_safe=yes"
3634 echo "configure: failed program was:" >&5
3635 cat conftest.$ac_ext >&5
3637 eval "ac_cv_header_$ac_safe=no"
3641 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3642 echo "$ac_t""yes" 1>&6
3643 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3644 cat >> confdefs.h <<EOF
3645 #define $ac_tr_hdr 1
3647 PLUGINS=${PLUGINS}"sdl "
3648 LIB_SDL="-L/usr/X11R6/lib -lSDL"
3650 echo "$ac_t""no" 1>&6
3655 # Check whether --with-glide or --without-glide was given.
3656 if test "${with_glide+set}" = set; then
3657 withval="$with_glide"
3658 if test "x$withval" != "xno";
3660 PLUGINS=${PLUGINS}"glide ";
3661 if test "x$withval" != "xyes";
3663 LIB_GLIDE="-l"$withval
3665 LIB_GLIDE="-lglide2x"
3670 # Check whether --enable-ncurses or --disable-ncurses was given.
3671 if test "${enable_ncurses+set}" = set; then
3672 enableval="$enable_ncurses"
3673 if test x$enable_ncurses = xyes; then PLUGINS=${PLUGINS}"ncurses "; fi
3676 # Check whether --enable-qt or --disable-qt was given.
3677 if test "${enable_qt+set}" = set; then
3678 enableval="$enable_qt"
3679 if test x$enable_qt = xyes; then PLUGINS=${PLUGINS}"qt "; ALIASES=${ALIASES}"qvlc "; fi
3682 # Check whether --enable-kde or --disable-kde was given.
3683 if test "${enable_kde+set}" = set; then
3684 enableval="$enable_kde"
3685 if test x$enable_kde = xyes; then PLUGINS=${PLUGINS}"kde "; ALIASES=${ALIASES}"kvlc "; fi
3688 # Check whether --enable-gnome or --disable-gnome was given.
3689 if test "${enable_gnome+set}" = set; then
3690 enableval="$enable_gnome"
3691 if test x$enable_gnome = xyes; then PLUGINS=${PLUGINS}"gnome "; GVLC=1; fi
3694 # Check whether --enable-gtk or --disable-gtk was given.
3695 if test "${enable_gtk+set}" = set; then
3696 enableval="$enable_gtk"
3700 if test x$enable_gtk != xno; then
3701 if which gtk-config; then
3702 PLUGINS=${PLUGINS}"gtk "
3706 # Check whether --enable-x11 or --disable-x11 was given.
3707 if test "${enable_x11+set}" = set; then
3708 enableval="$enable_x11"
3712 if test x$enable_x11 != xno; then PLUGINS=${PLUGINS}"x11 "; fi
3714 # Check whether --enable-alsa or --disable-alsa was given.
3715 if test "${enable_alsa+set}" = set; then
3716 enableval="$enable_alsa"
3717 if test x$enable_alsa = xyes; then ac_safe=`echo "sys/asoundlib.h" | sed 'y%./+-%__p_%'`
3718 echo $ac_n "checking for sys/asoundlib.h""... $ac_c" 1>&6
3719 echo "configure:3720: checking for sys/asoundlib.h" >&5
3720 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3721 echo $ac_n "(cached) $ac_c" 1>&6
3723 cat > conftest.$ac_ext <<EOF
3724 #line 3725 "configure"
3725 #include "confdefs.h"
3726 #include <sys/asoundlib.h>
3728 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3729 { (eval echo configure:3730: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3730 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3731 if test -z "$ac_err"; then
3733 eval "ac_cv_header_$ac_safe=yes"
3736 echo "configure: failed program was:" >&5
3737 cat conftest.$ac_ext >&5
3739 eval "ac_cv_header_$ac_safe=no"
3743 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3744 echo "$ac_t""yes" 1>&6
3745 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
3746 echo "configure:3747: checking for main in -lasound" >&5
3747 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
3748 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3749 echo $ac_n "(cached) $ac_c" 1>&6
3751 ac_save_LIBS="$LIBS"
3752 LIBS="-lasound $LIBS"
3753 cat > conftest.$ac_ext <<EOF
3754 #line 3755 "configure"
3755 #include "confdefs.h"
3761 if { (eval echo configure:3762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3763 eval "ac_cv_lib_$ac_lib_var=yes"
3765 echo "configure: failed program was:" >&5
3766 cat conftest.$ac_ext >&5
3768 eval "ac_cv_lib_$ac_lib_var=no"
3771 LIBS="$ac_save_LIBS"
3774 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3775 echo "$ac_t""yes" 1>&6
3778 echo "$ac_t""no" 1>&6
3783 echo "$ac_t""no" 1>&6
3786 if test $have_alsa = true; then PLUGINS=${PLUGINS}"alsa "; fi; fi
3790 if test x$GVLC = x1 ; then ALIASES=${ALIASES}"gvlc "; fi
3808 cat > confcache <<\EOF
3809 # This file is a shell script that caches the results of configure
3810 # tests run on this system so they can be shared between configure
3811 # scripts and configure runs. It is not useful on other systems.
3812 # If it contains results you don't want to keep, you may remove or edit it.
3814 # By default, configure uses ./config.cache as the cache file,
3815 # creating it if it does not exist already. You can give configure
3816 # the --cache-file=FILE option to use a different cache file; that is
3817 # what configure does when it calls configure scripts in
3818 # subdirectories, so they share the cache.
3819 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3820 # config.status only pays attention to the cache file if you give it the
3821 # --recheck option to rerun configure.
3824 # The following way of writing the cache mishandles newlines in values,
3825 # but we know of no workaround that is simple, portable, and efficient.
3826 # So, don't put newlines in cache variables' values.
3827 # Ultrix sh set writes to stderr and can't be redirected directly,
3828 # and sets the high bit in the cache file unless we assign to the vars.
3830 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3832 # `set' does not quote correctly, so add quotes (double-quote substitution
3833 # turns \\\\ into \\, and sed turns \\ into \).
3835 -e "s/'/'\\\\''/g" \
3836 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3839 # `set' quotes correctly as required by POSIX, so do not add quotes.
3840 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3843 if cmp -s $cache_file confcache; then
3846 if test -w $cache_file; then
3847 echo "updating cache $cache_file"
3848 cat confcache > $cache_file
3850 echo "not updating unwritable cache $cache_file"
3855 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3857 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3858 # Let make expand exec_prefix.
3859 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3861 # Any assignment to VPATH causes Sun make to only execute
3862 # the first set of double-colon rules, so remove it if not needed.
3863 # If there is a colon in the path, we need to keep it.
3864 if test "x$srcdir" = x.; then
3865 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3868 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3870 DEFS=-DHAVE_CONFIG_H
3872 # Without the "./", some shells look in PATH for config.status.
3873 : ${CONFIG_STATUS=./config.status}
3875 echo creating $CONFIG_STATUS
3876 rm -f $CONFIG_STATUS
3877 cat > $CONFIG_STATUS <<EOF
3879 # Generated automatically by configure.
3880 # Run this file to recreate the current configuration.
3881 # This directory was configured as follows,
3882 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3884 # $0 $ac_configure_args
3886 # Compiler output produced by configure, useful for debugging
3887 # configure, is in ./config.log if it exists.
3889 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3892 case "\$ac_option" in
3893 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3894 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3895 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3896 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3897 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3899 -help | --help | --hel | --he | --h)
3900 echo "\$ac_cs_usage"; exit 0 ;;
3901 *) echo "\$ac_cs_usage"; exit 1 ;;
3905 ac_given_srcdir=$srcdir
3906 ac_given_INSTALL="$INSTALL"
3908 trap 'rm -fr `echo "Makefile include/config.h include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3910 cat >> $CONFIG_STATUS <<EOF
3912 # Protect against being on the right side of a sed subst in config.status.
3913 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3914 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3918 s%@CFLAGS@%$CFLAGS%g
3919 s%@CPPFLAGS@%$CPPFLAGS%g
3920 s%@CXXFLAGS@%$CXXFLAGS%g
3921 s%@FFLAGS@%$FFLAGS%g
3923 s%@LDFLAGS@%$LDFLAGS%g
3925 s%@exec_prefix@%$exec_prefix%g
3926 s%@prefix@%$prefix%g
3927 s%@program_transform_name@%$program_transform_name%g
3928 s%@bindir@%$bindir%g
3929 s%@sbindir@%$sbindir%g
3930 s%@libexecdir@%$libexecdir%g
3931 s%@datadir@%$datadir%g
3932 s%@sysconfdir@%$sysconfdir%g
3933 s%@sharedstatedir@%$sharedstatedir%g
3934 s%@localstatedir@%$localstatedir%g
3935 s%@libdir@%$libdir%g
3936 s%@includedir@%$includedir%g
3937 s%@oldincludedir@%$oldincludedir%g
3938 s%@infodir@%$infodir%g
3939 s%@mandir@%$mandir%g
3941 s%@host_alias@%$host_alias%g
3942 s%@host_cpu@%$host_cpu%g
3943 s%@host_vendor@%$host_vendor%g
3944 s%@host_os@%$host_os%g
3945 s%@VLC_VERSION@%$VLC_VERSION%g
3946 s%@VLC_CODENAME@%$VLC_CODENAME%g
3947 s%@SET_MAKE@%$SET_MAKE%g
3950 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3951 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3952 s%@INSTALL_DATA@%$INSTALL_DATA%g
3953 s%@LIBOBJS@%$LIBOBJS%g
3956 s%@PLUGINS@%$PLUGINS%g
3957 s%@ALIASES@%$ALIASES%g
3960 s%@OPTIMS@%$OPTIMS%g
3962 s%@DYNAMIC_FLAG@%$DYNAMIC_FLAG%g
3963 s%@LIB_SDL@%$LIB_SDL%g
3964 s%@LIB_GLIDE@%$LIB_GLIDE%g
3965 s%@LIB_GGI@%$LIB_GGI%g
3970 cat >> $CONFIG_STATUS <<\EOF
3972 # Split the substitutions into bite-sized pieces for seds with
3973 # small command number limits, like on Digital OSF/1 and HP-UX.
3974 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3975 ac_file=1 # Number of current file.
3976 ac_beg=1 # First line for current file.
3977 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3980 while $ac_more_lines; do
3981 if test $ac_beg -gt 1; then
3982 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3984 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3986 if test ! -s conftest.s$ac_file; then
3988 rm -f conftest.s$ac_file
3990 if test -z "$ac_sed_cmds"; then
3991 ac_sed_cmds="sed -f conftest.s$ac_file"
3993 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3995 ac_file=`expr $ac_file + 1`
3997 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4000 if test -z "$ac_sed_cmds"; then
4005 cat >> $CONFIG_STATUS <<EOF
4007 CONFIG_FILES=\${CONFIG_FILES-"Makefile include/config.h"}
4009 cat >> $CONFIG_STATUS <<\EOF
4010 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4011 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4013 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4014 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4015 *) ac_file_in="${ac_file}.in" ;;
4018 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4020 # Remove last slash and all that follows it. Not all systems have dirname.
4021 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4022 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4023 # The file is in a subdirectory.
4024 test ! -d "$ac_dir" && mkdir "$ac_dir"
4025 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4026 # A "../" for each directory in $ac_dir_suffix.
4027 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4029 ac_dir_suffix= ac_dots=
4032 case "$ac_given_srcdir" in
4034 if test -z "$ac_dots"; then top_srcdir=.
4035 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4036 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4038 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4039 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4042 case "$ac_given_INSTALL" in
4043 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4044 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4047 echo creating "$ac_file"
4049 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4051 *Makefile*) ac_comsub="1i\\
4052 # $configure_input" ;;
4056 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4058 s%@configure_input@%$configure_input%g
4059 s%@srcdir@%$srcdir%g
4060 s%@top_srcdir@%$top_srcdir%g
4061 s%@INSTALL@%$INSTALL%g
4062 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4066 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4067 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4069 # ac_d sets the value in "#define NAME VALUE" lines.
4070 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4071 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4074 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4075 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4076 ac_uB='\([ ]\)%\1#\2define\3'
4079 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4080 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4081 ac_eB='$%\1#\2define\3'
4085 if test "${CONFIG_HEADERS+set}" != set; then
4087 cat >> $CONFIG_STATUS <<EOF
4088 CONFIG_HEADERS="include/defs.h"
4090 cat >> $CONFIG_STATUS <<\EOF
4092 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4093 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4095 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4096 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4097 *) ac_file_in="${ac_file}.in" ;;
4100 echo creating $ac_file
4102 rm -f conftest.frag conftest.in conftest.out
4103 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4104 cat $ac_file_inputs > conftest.in
4108 # Transform confdefs.h into a sed script conftest.vals that substitutes
4109 # the proper values into config.h.in to produce config.h. And first:
4110 # Protect against being on the right side of a sed subst in config.status.
4111 # Protect against being in an unquoted here document in config.status.
4113 cat > conftest.hdr <<\EOF
4116 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4120 sed -n -f conftest.hdr confdefs.h > conftest.vals
4123 # This sed command replaces #undef with comments. This is necessary, for
4124 # example, in the case of _POSIX_SOURCE, which is predefined and required
4125 # on some systems where configure will not decide to define it.
4126 cat >> conftest.vals <<\EOF
4127 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4130 # Break up conftest.vals because some shells have a limit on
4131 # the size of here documents, and old seds have small limits too.
4136 ac_lines=`grep -c . conftest.vals`
4137 # grep -c gives empty output for an empty file on some AIX systems.
4138 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4139 # Write a limited-size here document to conftest.frag.
4140 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4141 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4143 sed -f conftest.frag conftest.in > conftest.out
4145 mv conftest.out conftest.in
4147 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4149 mv conftest.tail conftest.vals
4153 cat >> $CONFIG_STATUS <<\EOF
4154 rm -f conftest.frag conftest.h
4155 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4156 cat conftest.in >> conftest.h
4158 if cmp -s $ac_file conftest.h 2>/dev/null; then
4159 echo "$ac_file is unchanged"
4162 # Remove last slash and all that follows it. Not all systems have dirname.
4163 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4164 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4165 # The file is in a subdirectory.
4166 test ! -d "$ac_dir" && mkdir "$ac_dir"
4169 mv conftest.h $ac_file
4174 cat >> $CONFIG_STATUS <<EOF
4177 cat >> $CONFIG_STATUS <<\EOF
4181 chmod +x $CONFIG_STATUS
4182 rm -fr confdefs* $ac_clean_files
4183 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4189 vlc version : ${VLC_VERSION}
4191 architecture : ${ARCH}
4192 debug mode : ${DEBUG}
4193 statistics : ${STATS}
4194 optimizations : ${OPTIMS}
4195 CSS decryption : ${CSS}
4196 plugins : ${PLUGINS}
4197 vlc aliases : ${ALIASES}