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 --enable-ppro Enable PentiumPro optimizations (default is no)"
17 --enable-mmx Enable MMX optimizations (default is no)"
19 --enable-dummy dummy audio and video support (default enabled)"
21 --enable-dsp Linux /dev/dsp support (default enabled)"
23 --enable-esd Esound library support (default disabled)"
25 --enable-fb Linux framebuffer support (default disabled)"
27 --enable-ggi GGI support (default disabled)"
29 --enable-glide Glide (3dfx) support (default disabled)"
31 --enable-gnome Gnome support (default disabled)"
33 --enable-x11 X11 support (default enabled)"
35 # Initialize some variables set by options.
36 # The variables have the same names as the options, with
37 # dashes changed to underlines.
39 cache_file=./config.cache
48 program_transform_name=s,x,x,
56 bindir='${exec_prefix}/bin'
57 sbindir='${exec_prefix}/sbin'
58 libexecdir='${exec_prefix}/libexec'
59 datadir='${prefix}/share'
60 sysconfdir='${prefix}/etc'
61 sharedstatedir='${prefix}/com'
62 localstatedir='${prefix}/var'
63 libdir='${exec_prefix}/lib'
64 includedir='${prefix}/include'
65 oldincludedir='/usr/include'
66 infodir='${prefix}/info'
67 mandir='${prefix}/man'
69 # Initialize some other variables.
72 SHELL=${CONFIG_SHELL-/bin/sh}
73 # Maximum number of lines to put in a shell here document.
80 # If the previous option needs an argument, assign it.
81 if test -n "$ac_prev"; then
82 eval "$ac_prev=\$ac_option"
88 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
92 # Accept the important Cygnus configure options, so we can diagnose typos.
96 -bindir | --bindir | --bindi | --bind | --bin | --bi)
98 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
99 bindir="$ac_optarg" ;;
101 -build | --build | --buil | --bui | --bu)
103 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
104 build="$ac_optarg" ;;
106 -cache-file | --cache-file | --cache-fil | --cache-fi \
107 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
108 ac_prev=cache_file ;;
109 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
110 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
111 cache_file="$ac_optarg" ;;
113 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
115 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
117 datadir="$ac_optarg" ;;
119 -disable-* | --disable-*)
120 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
121 # Reject names that are not valid shell variable names.
122 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
123 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
125 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
126 eval "enable_${ac_feature}=no" ;;
128 -enable-* | --enable-*)
129 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
130 # Reject names that are not valid shell variable names.
131 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
132 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
134 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
139 eval "enable_${ac_feature}='$ac_optarg'" ;;
141 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
142 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
143 | --exec | --exe | --ex)
144 ac_prev=exec_prefix ;;
145 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
146 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
147 | --exec=* | --exe=* | --ex=*)
148 exec_prefix="$ac_optarg" ;;
150 -gas | --gas | --ga | --g)
151 # Obsolete; use --with-gas.
154 -help | --help | --hel | --he)
155 # Omit some internal or obsolete options to make the list less imposing.
156 # This message is too long to be a string in the A/UX 3.1 sh.
158 Usage: configure [options] [host]
159 Options: [defaults in brackets after descriptions]
161 --cache-file=FILE cache test results in FILE
162 --help print this message
163 --no-create do not create output files
164 --quiet, --silent do not print \`checking...' messages
165 --version print the version of autoconf that created configure
166 Directory and file names:
167 --prefix=PREFIX install architecture-independent files in PREFIX
169 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
171 --bindir=DIR user executables in DIR [EPREFIX/bin]
172 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
173 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
174 --datadir=DIR read-only architecture-independent data in DIR
176 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
177 --sharedstatedir=DIR modifiable architecture-independent data in DIR
179 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
180 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
181 --includedir=DIR C header files in DIR [PREFIX/include]
182 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
183 --infodir=DIR info documentation in DIR [PREFIX/info]
184 --mandir=DIR man documentation in DIR [PREFIX/man]
185 --srcdir=DIR find the sources in DIR [configure dir or ..]
186 --program-prefix=PREFIX prepend PREFIX to installed program names
187 --program-suffix=SUFFIX append SUFFIX to installed program names
188 --program-transform-name=PROGRAM
189 run sed PROGRAM on installed program names
193 --build=BUILD configure for building on BUILD [BUILD=HOST]
194 --host=HOST configure for HOST [guessed]
195 --target=TARGET configure for TARGET [TARGET=HOST]
196 Features and packages:
197 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
198 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
199 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
200 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
201 --x-includes=DIR X include files are in DIR
202 --x-libraries=DIR X library files are in DIR
204 if test -n "$ac_help"; then
205 echo "--enable and --with options recognized:$ac_help"
209 -host | --host | --hos | --ho)
211 -host=* | --host=* | --hos=* | --ho=*)
214 -includedir | --includedir | --includedi | --included | --include \
215 | --includ | --inclu | --incl | --inc)
216 ac_prev=includedir ;;
217 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
218 | --includ=* | --inclu=* | --incl=* | --inc=*)
219 includedir="$ac_optarg" ;;
221 -infodir | --infodir | --infodi | --infod | --info | --inf)
223 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
224 infodir="$ac_optarg" ;;
226 -libdir | --libdir | --libdi | --libd)
228 -libdir=* | --libdir=* | --libdi=* | --libd=*)
229 libdir="$ac_optarg" ;;
231 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
232 | --libexe | --libex | --libe)
233 ac_prev=libexecdir ;;
234 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
235 | --libexe=* | --libex=* | --libe=*)
236 libexecdir="$ac_optarg" ;;
238 -localstatedir | --localstatedir | --localstatedi | --localstated \
239 | --localstate | --localstat | --localsta | --localst \
240 | --locals | --local | --loca | --loc | --lo)
241 ac_prev=localstatedir ;;
242 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
243 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
244 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
245 localstatedir="$ac_optarg" ;;
247 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
249 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
250 mandir="$ac_optarg" ;;
253 # Obsolete; use --without-fp.
256 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
260 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
261 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
264 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
265 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
266 | --oldin | --oldi | --old | --ol | --o)
267 ac_prev=oldincludedir ;;
268 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
269 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
270 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
271 oldincludedir="$ac_optarg" ;;
273 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
275 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
276 prefix="$ac_optarg" ;;
278 -program-prefix | --program-prefix | --program-prefi | --program-pref \
279 | --program-pre | --program-pr | --program-p)
280 ac_prev=program_prefix ;;
281 -program-prefix=* | --program-prefix=* | --program-prefi=* \
282 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
283 program_prefix="$ac_optarg" ;;
285 -program-suffix | --program-suffix | --program-suffi | --program-suff \
286 | --program-suf | --program-su | --program-s)
287 ac_prev=program_suffix ;;
288 -program-suffix=* | --program-suffix=* | --program-suffi=* \
289 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
290 program_suffix="$ac_optarg" ;;
292 -program-transform-name | --program-transform-name \
293 | --program-transform-nam | --program-transform-na \
294 | --program-transform-n | --program-transform- \
295 | --program-transform | --program-transfor \
296 | --program-transfo | --program-transf \
297 | --program-trans | --program-tran \
298 | --progr-tra | --program-tr | --program-t)
299 ac_prev=program_transform_name ;;
300 -program-transform-name=* | --program-transform-name=* \
301 | --program-transform-nam=* | --program-transform-na=* \
302 | --program-transform-n=* | --program-transform-=* \
303 | --program-transform=* | --program-transfor=* \
304 | --program-transfo=* | --program-transf=* \
305 | --program-trans=* | --program-tran=* \
306 | --progr-tra=* | --program-tr=* | --program-t=*)
307 program_transform_name="$ac_optarg" ;;
309 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
310 | -silent | --silent | --silen | --sile | --sil)
313 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
315 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
317 sbindir="$ac_optarg" ;;
319 -sharedstatedir | --sharedstatedir | --sharedstatedi \
320 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
321 | --sharedst | --shareds | --shared | --share | --shar \
323 ac_prev=sharedstatedir ;;
324 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
325 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
326 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
328 sharedstatedir="$ac_optarg" ;;
330 -site | --site | --sit)
332 -site=* | --site=* | --sit=*)
335 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
337 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
338 srcdir="$ac_optarg" ;;
340 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
341 | --syscon | --sysco | --sysc | --sys | --sy)
342 ac_prev=sysconfdir ;;
343 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
344 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
345 sysconfdir="$ac_optarg" ;;
347 -target | --target | --targe | --targ | --tar | --ta | --t)
349 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
350 target="$ac_optarg" ;;
352 -v | -verbose | --verbose | --verbos | --verbo | --verb)
355 -version | --version | --versio | --versi | --vers)
356 echo "configure generated by autoconf version 2.13"
360 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
361 # Reject names that are not valid shell variable names.
362 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
363 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
365 ac_package=`echo $ac_package| sed 's/-/_/g'`
370 eval "with_${ac_package}='$ac_optarg'" ;;
372 -without-* | --without-*)
373 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
374 # Reject names that are not valid shell variable names.
375 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
376 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
378 ac_package=`echo $ac_package| sed 's/-/_/g'`
379 eval "with_${ac_package}=no" ;;
382 # Obsolete; use --with-x.
385 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
386 | --x-incl | --x-inc | --x-in | --x-i)
387 ac_prev=x_includes ;;
388 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
389 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
390 x_includes="$ac_optarg" ;;
392 -x-libraries | --x-libraries | --x-librarie | --x-librari \
393 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
394 ac_prev=x_libraries ;;
395 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
396 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
397 x_libraries="$ac_optarg" ;;
399 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
403 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
404 echo "configure: warning: $ac_option: invalid host type" 1>&2
406 if test "x$nonopt" != xNONE; then
407 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
415 if test -n "$ac_prev"; then
416 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
419 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
421 # File descriptor usage:
424 # 2 errors and warnings
425 # 3 some systems may open it to /dev/tty
426 # 4 used on the Kubota Titan
427 # 6 checking for... messages and results
428 # 5 compiler messages saved in config.log
429 if test "$silent" = yes; then
437 This file contains any messages produced by compilers while
438 running configure, to aid debugging if configure makes a mistake.
441 # Strip out --no-create and --no-recursion so they do not pile up.
442 # Also quote any args containing shell metacharacters.
447 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
448 | --no-cr | --no-c) ;;
449 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
450 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
451 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
452 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
453 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
458 # Only set these to C if already set. These must not be set unconditionally
459 # because not all systems understand e.g. LANG=C (notably SCO).
460 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
461 # Non-C LC_CTYPE values break the ctype check.
462 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
463 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
464 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
465 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
467 # confdefs.h avoids OS command line length limits that DEFS can exceed.
468 rm -rf conftest* confdefs.h
469 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
472 # A filename unique to this package, relative to the directory that
473 # configure is in, which we can look for to find out if srcdir is correct.
474 ac_unique_file=src/interface/main.c
476 # Find the source files, if location was not specified.
477 if test -z "$srcdir"; then
478 ac_srcdir_defaulted=yes
479 # Try the directory containing this script, then its parent.
481 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
482 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
484 if test ! -r $srcdir/$ac_unique_file; then
488 ac_srcdir_defaulted=no
490 if test ! -r $srcdir/$ac_unique_file; then
491 if test "$ac_srcdir_defaulted" = yes; then
492 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
494 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
497 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
499 # Prefer explicitly selected file to automatically selected ones.
500 if test -z "$CONFIG_SITE"; then
501 if test "x$prefix" != xNONE; then
502 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
504 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
507 for ac_site_file in $CONFIG_SITE; do
508 if test -r "$ac_site_file"; then
509 echo "loading site script $ac_site_file"
514 if test -r "$cache_file"; then
515 echo "loading cache $cache_file"
518 echo "creating cache $cache_file"
523 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
524 ac_cpp='$CPP $CPPFLAGS'
525 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
526 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
527 cross_compiling=$ac_cv_prog_cc_cross
531 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
532 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
533 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
540 ac_n= ac_c='\c' ac_t=
547 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
548 if test -f $ac_dir/install-sh; then
550 ac_install_sh="$ac_aux_dir/install-sh -c"
552 elif test -f $ac_dir/install.sh; then
554 ac_install_sh="$ac_aux_dir/install.sh -c"
558 if test -z "$ac_aux_dir"; then
559 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
561 ac_config_guess=$ac_aux_dir/config.guess
562 ac_config_sub=$ac_aux_dir/config.sub
563 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
566 # Make sure we can run config.sub.
567 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
568 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
571 echo $ac_n "checking host system type""... $ac_c" 1>&6
572 echo "configure:573: checking host system type" >&5
575 case "$host_alias" in
579 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
580 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
582 *) host_alias=$nonopt ;;
586 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
587 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
588 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
589 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
590 echo "$ac_t""$host" 1>&6
598 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
599 echo "configure:600: checking whether ${MAKE-make} sets \${MAKE}" >&5
600 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
601 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
602 echo $ac_n "(cached) $ac_c" 1>&6
604 cat > conftestmake <<\EOF
606 @echo 'ac_maketemp="${MAKE}"'
608 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
609 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
610 if test -n "$ac_maketemp"; then
611 eval ac_cv_prog_make_${ac_make}_set=yes
613 eval ac_cv_prog_make_${ac_make}_set=no
617 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
618 echo "$ac_t""yes" 1>&6
621 echo "$ac_t""no" 1>&6
622 SET_MAKE="MAKE=${MAKE-make}"
625 # Extract the first word of "gcc", so it can be a program name with args.
626 set dummy gcc; ac_word=$2
627 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
628 echo "configure:629: checking for $ac_word" >&5
629 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
630 echo $ac_n "(cached) $ac_c" 1>&6
632 if test -n "$CC"; then
633 ac_cv_prog_CC="$CC" # Let the user override the test.
635 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
637 for ac_dir in $ac_dummy; do
638 test -z "$ac_dir" && ac_dir=.
639 if test -f $ac_dir/$ac_word; then
648 if test -n "$CC"; then
649 echo "$ac_t""$CC" 1>&6
651 echo "$ac_t""no" 1>&6
654 if test -z "$CC"; then
655 # Extract the first word of "cc", so it can be a program name with args.
656 set dummy cc; ac_word=$2
657 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
658 echo "configure:659: checking for $ac_word" >&5
659 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
660 echo $ac_n "(cached) $ac_c" 1>&6
662 if test -n "$CC"; then
663 ac_cv_prog_CC="$CC" # Let the user override the test.
665 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
668 for ac_dir in $ac_dummy; do
669 test -z "$ac_dir" && ac_dir=.
670 if test -f $ac_dir/$ac_word; then
671 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
680 if test $ac_prog_rejected = yes; then
681 # We found a bogon in the path, so make sure we never use it.
682 set dummy $ac_cv_prog_CC
684 if test $# -gt 0; then
685 # We chose a different compiler from the bogus one.
686 # However, it has the same basename, so the bogon will be chosen
687 # first if we set CC to just the basename; use the full file name.
689 set dummy "$ac_dir/$ac_word" "$@"
697 if test -n "$CC"; then
698 echo "$ac_t""$CC" 1>&6
700 echo "$ac_t""no" 1>&6
703 if test -z "$CC"; then
706 # Extract the first word of "cl", so it can be a program name with args.
707 set dummy cl; ac_word=$2
708 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
709 echo "configure:710: checking for $ac_word" >&5
710 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
711 echo $ac_n "(cached) $ac_c" 1>&6
713 if test -n "$CC"; then
714 ac_cv_prog_CC="$CC" # Let the user override the test.
716 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
718 for ac_dir in $ac_dummy; do
719 test -z "$ac_dir" && ac_dir=.
720 if test -f $ac_dir/$ac_word; then
729 if test -n "$CC"; then
730 echo "$ac_t""$CC" 1>&6
732 echo "$ac_t""no" 1>&6
737 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
740 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
741 echo "configure:742: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
744 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
745 ac_cpp='$CPP $CPPFLAGS'
746 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
747 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
748 cross_compiling=$ac_cv_prog_cc_cross
750 cat > conftest.$ac_ext << EOF
752 #line 753 "configure"
753 #include "confdefs.h"
757 if { (eval echo configure:758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
758 ac_cv_prog_cc_works=yes
759 # If we can't run a trivial program, we are probably using a cross compiler.
760 if (./conftest; exit) 2>/dev/null; then
761 ac_cv_prog_cc_cross=no
763 ac_cv_prog_cc_cross=yes
766 echo "configure: failed program was:" >&5
767 cat conftest.$ac_ext >&5
768 ac_cv_prog_cc_works=no
772 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
773 ac_cpp='$CPP $CPPFLAGS'
774 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
775 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
776 cross_compiling=$ac_cv_prog_cc_cross
778 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
779 if test $ac_cv_prog_cc_works = no; then
780 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
782 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
783 echo "configure:784: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
784 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
785 cross_compiling=$ac_cv_prog_cc_cross
787 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
788 echo "configure:789: checking whether we are using GNU C" >&5
789 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
790 echo $ac_n "(cached) $ac_c" 1>&6
792 cat > conftest.c <<EOF
797 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:798: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
804 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
806 if test $ac_cv_prog_gcc = yes; then
812 ac_test_CFLAGS="${CFLAGS+set}"
813 ac_save_CFLAGS="$CFLAGS"
815 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
816 echo "configure:817: checking whether ${CC-cc} accepts -g" >&5
817 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
818 echo $ac_n "(cached) $ac_c" 1>&6
820 echo 'void f(){}' > conftest.c
821 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
830 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
831 if test "$ac_test_CFLAGS" = set; then
832 CFLAGS="$ac_save_CFLAGS"
833 elif test $ac_cv_prog_cc_g = yes; then
834 if test "$GCC" = yes; then
840 if test "$GCC" = yes; then
847 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
848 echo "configure:849: checking how to run the C preprocessor" >&5
849 # On Suns, sometimes $CPP names a directory.
850 if test -n "$CPP" && test -d "$CPP"; then
853 if test -z "$CPP"; then
854 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
855 echo $ac_n "(cached) $ac_c" 1>&6
857 # This must be in double quotes, not single quotes, because CPP may get
858 # substituted into the Makefile and "${CC-cc}" will confuse make.
860 # On the NeXT, cc -E runs the code through the compiler's parser,
861 # not just through cpp.
862 cat > conftest.$ac_ext <<EOF
863 #line 864 "configure"
864 #include "confdefs.h"
868 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
869 { (eval echo configure:870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
870 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
871 if test -z "$ac_err"; then
875 echo "configure: failed program was:" >&5
876 cat conftest.$ac_ext >&5
878 CPP="${CC-cc} -E -traditional-cpp"
879 cat > conftest.$ac_ext <<EOF
880 #line 881 "configure"
881 #include "confdefs.h"
885 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
886 { (eval echo configure:887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
887 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
888 if test -z "$ac_err"; then
892 echo "configure: failed program was:" >&5
893 cat conftest.$ac_ext >&5
895 CPP="${CC-cc} -nologo -E"
896 cat > conftest.$ac_ext <<EOF
897 #line 898 "configure"
898 #include "confdefs.h"
902 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
903 { (eval echo configure:904: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
904 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
905 if test -z "$ac_err"; then
909 echo "configure: failed program was:" >&5
910 cat conftest.$ac_ext >&5
919 ac_cv_prog_CPP="$CPP"
921 CPP="$ac_cv_prog_CPP"
923 ac_cv_prog_CPP="$CPP"
925 echo "$ac_t""$CPP" 1>&6
928 # Find a good install program. We prefer a C program (faster),
929 # so one script is as good as another. But avoid the broken or
930 # incompatible versions:
931 # SysV /etc/install, /usr/sbin/install
932 # SunOS /usr/etc/install
935 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
936 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
937 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
938 # ./install, which can be erroneously created by make from ./install.sh.
939 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
940 echo "configure:941: checking for a BSD compatible install" >&5
941 if test -z "$INSTALL"; then
942 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
943 echo $ac_n "(cached) $ac_c" 1>&6
945 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
946 for ac_dir in $PATH; do
947 # Account for people who put trailing slashes in PATH elements.
949 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
951 # OSF1 and SCO ODT 3.0 have their own names for install.
952 # Don't use installbsd from OSF since it installs stuff as root
954 for ac_prog in ginstall scoinst install; do
955 if test -f $ac_dir/$ac_prog; then
956 if test $ac_prog = install &&
957 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
958 # AIX install. It has an incompatible calling convention.
961 ac_cv_path_install="$ac_dir/$ac_prog -c"
972 if test "${ac_cv_path_install+set}" = set; then
973 INSTALL="$ac_cv_path_install"
975 # As a last resort, use the slow shell script. We don't cache a
976 # path for INSTALL within a source directory, because that will
977 # break other packages using the cache if that directory is
978 # removed, or if the path is relative.
979 INSTALL="$ac_install_sh"
982 echo "$ac_t""$INSTALL" 1>&6
984 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
985 # It thinks the first close brace ends the variable substitution.
986 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
988 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
990 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
993 echo $ac_n "checking for working const""... $ac_c" 1>&6
994 echo "configure:995: checking for working const" >&5
995 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
996 echo $ac_n "(cached) $ac_c" 1>&6
998 cat > conftest.$ac_ext <<EOF
999 #line 1000 "configure"
1000 #include "confdefs.h"
1004 /* Ultrix mips cc rejects this. */
1005 typedef int charset[2]; const charset x = {0,0};
1006 /* SunOS 4.1.1 cc rejects this. */
1007 char const *const *ccp;
1009 /* NEC SVR4.0.2 mips cc rejects this. */
1010 struct point {int x, y;};
1011 static struct point const zero = {0,0};
1012 /* AIX XL C 1.02.0.0 rejects this.
1013 It does not let you subtract one const X* pointer from another in an arm
1014 of an if-expression whose if-part is not a constant expression */
1015 const char *g = "string";
1016 ccp = &g + (g ? g-g : 0);
1017 /* HPUX 7.0 cc rejects these. */
1020 ccp = (char const *const *) p;
1021 { /* SCO 3.2v4 cc rejects this. */
1023 char const *s = 0 ? (char *) 0 : (char const *) 0;
1027 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1029 const int *foo = &x[0];
1032 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1033 typedef const int *iptr;
1037 { /* AIX XL C 1.02.0.0 rejects this saying
1038 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1039 struct s { int j; const int *ap[3]; };
1040 struct s *b; b->j = 5;
1042 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1048 if { (eval echo configure:1049: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1052 echo "configure: failed program was:" >&5
1053 cat conftest.$ac_ext >&5
1060 echo "$ac_t""$ac_cv_c_const" 1>&6
1061 if test $ac_cv_c_const = no; then
1062 cat >> confdefs.h <<\EOF
1068 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1069 echo "configure:1070: checking whether byte ordering is bigendian" >&5
1070 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1071 echo $ac_n "(cached) $ac_c" 1>&6
1073 ac_cv_c_bigendian=unknown
1074 # See if sys/param.h defines the BYTE_ORDER macro.
1075 cat > conftest.$ac_ext <<EOF
1076 #line 1077 "configure"
1077 #include "confdefs.h"
1078 #include <sys/types.h>
1079 #include <sys/param.h>
1082 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1087 if { (eval echo configure:1088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1089 # It does; now see whether it defined to BIG_ENDIAN or not.
1090 cat > conftest.$ac_ext <<EOF
1091 #line 1092 "configure"
1092 #include "confdefs.h"
1093 #include <sys/types.h>
1094 #include <sys/param.h>
1097 #if BYTE_ORDER != BIG_ENDIAN
1102 if { (eval echo configure:1103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1104 ac_cv_c_bigendian=yes
1106 echo "configure: failed program was:" >&5
1107 cat conftest.$ac_ext >&5
1109 ac_cv_c_bigendian=no
1113 echo "configure: failed program was:" >&5
1114 cat conftest.$ac_ext >&5
1117 if test $ac_cv_c_bigendian = unknown; then
1118 if test "$cross_compiling" = yes; then
1119 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1121 cat > conftest.$ac_ext <<EOF
1122 #line 1123 "configure"
1123 #include "confdefs.h"
1125 /* Are we little or big endian? From Harbison&Steele. */
1129 char c[sizeof (long)];
1132 exit (u.c[sizeof (long) - 1] == 1);
1135 if { (eval echo configure:1136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1137 ac_cv_c_bigendian=no
1139 echo "configure: failed program was:" >&5
1140 cat conftest.$ac_ext >&5
1142 ac_cv_c_bigendian=yes
1150 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1151 if test $ac_cv_c_bigendian = yes; then
1152 cat >> confdefs.h <<\EOF
1153 #define WORDS_BIGENDIAN 1
1159 for ac_func in gettimeofday select strerror strtod strtol
1161 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1162 echo "configure:1163: checking for $ac_func" >&5
1163 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1164 echo $ac_n "(cached) $ac_c" 1>&6
1166 cat > conftest.$ac_ext <<EOF
1167 #line 1168 "configure"
1168 #include "confdefs.h"
1169 /* System header to define __stub macros and hopefully few prototypes,
1170 which can conflict with char $ac_func(); below. */
1172 /* Override any gcc2 internal prototype to avoid an error. */
1173 /* We use char because int might match the return type of a gcc2
1174 builtin and then its argument prototype would still apply. */
1179 /* The GNU C library defines this for functions which it implements
1180 to always fail with ENOSYS. Some functions are actually named
1181 something starting with __ and the normal name is an alias. */
1182 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1190 if { (eval echo configure:1191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1192 eval "ac_cv_func_$ac_func=yes"
1194 echo "configure: failed program was:" >&5
1195 cat conftest.$ac_ext >&5
1197 eval "ac_cv_func_$ac_func=no"
1202 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1203 echo "$ac_t""yes" 1>&6
1204 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1205 cat >> confdefs.h <<EOF
1206 #define $ac_tr_func 1
1210 echo "$ac_t""no" 1>&6
1214 for ac_func in setenv putenv
1216 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1217 echo "configure:1218: checking for $ac_func" >&5
1218 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1219 echo $ac_n "(cached) $ac_c" 1>&6
1221 cat > conftest.$ac_ext <<EOF
1222 #line 1223 "configure"
1223 #include "confdefs.h"
1224 /* System header to define __stub macros and hopefully few prototypes,
1225 which can conflict with char $ac_func(); below. */
1227 /* Override any gcc2 internal prototype to avoid an error. */
1228 /* We use char because int might match the return type of a gcc2
1229 builtin and then its argument prototype would still apply. */
1234 /* The GNU C library defines this for functions which it implements
1235 to always fail with ENOSYS. Some functions are actually named
1236 something starting with __ and the normal name is an alias. */
1237 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1245 if { (eval echo configure:1246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1247 eval "ac_cv_func_$ac_func=yes"
1249 echo "configure: failed program was:" >&5
1250 cat conftest.$ac_ext >&5
1252 eval "ac_cv_func_$ac_func=no"
1257 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1258 echo "$ac_t""yes" 1>&6
1259 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1260 cat >> confdefs.h <<EOF
1261 #define $ac_tr_func 1
1265 echo "$ac_t""no" 1>&6
1269 echo $ac_n "checking for connect""... $ac_c" 1>&6
1270 echo "configure:1271: checking for connect" >&5
1271 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1272 echo $ac_n "(cached) $ac_c" 1>&6
1274 cat > conftest.$ac_ext <<EOF
1275 #line 1276 "configure"
1276 #include "confdefs.h"
1277 /* System header to define __stub macros and hopefully few prototypes,
1278 which can conflict with char connect(); below. */
1280 /* Override any gcc2 internal prototype to avoid an error. */
1281 /* We use char because int might match the return type of a gcc2
1282 builtin and then its argument prototype would still apply. */
1287 /* The GNU C library defines this for functions which it implements
1288 to always fail with ENOSYS. Some functions are actually named
1289 something starting with __ and the normal name is an alias. */
1290 #if defined (__stub_connect) || defined (__stub___connect)
1298 if { (eval echo configure:1299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1300 eval "ac_cv_func_connect=yes"
1302 echo "configure: failed program was:" >&5
1303 cat conftest.$ac_ext >&5
1305 eval "ac_cv_func_connect=no"
1310 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1311 echo "$ac_t""yes" 1>&6
1314 echo "$ac_t""no" 1>&6
1315 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1316 echo "configure:1317: checking for connect in -lsocket" >&5
1317 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1318 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1319 echo $ac_n "(cached) $ac_c" 1>&6
1321 ac_save_LIBS="$LIBS"
1322 LIBS="-lsocket $LIBS"
1323 cat > conftest.$ac_ext <<EOF
1324 #line 1325 "configure"
1325 #include "confdefs.h"
1326 /* Override any gcc2 internal prototype to avoid an error. */
1327 /* We use char because int might match the return type of a gcc2
1328 builtin and then its argument prototype would still apply. */
1335 if { (eval echo configure:1336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1337 eval "ac_cv_lib_$ac_lib_var=yes"
1339 echo "configure: failed program was:" >&5
1340 cat conftest.$ac_ext >&5
1342 eval "ac_cv_lib_$ac_lib_var=no"
1345 LIBS="$ac_save_LIBS"
1348 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1349 echo "$ac_t""yes" 1>&6
1350 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1351 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1352 cat >> confdefs.h <<EOF
1353 #define $ac_tr_lib 1
1356 LIBS="-lsocket $LIBS"
1359 echo "$ac_t""no" 1>&6
1364 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1365 echo "configure:1366: checking for gethostbyname" >&5
1366 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1367 echo $ac_n "(cached) $ac_c" 1>&6
1369 cat > conftest.$ac_ext <<EOF
1370 #line 1371 "configure"
1371 #include "confdefs.h"
1372 /* System header to define __stub macros and hopefully few prototypes,
1373 which can conflict with char gethostbyname(); below. */
1375 /* Override any gcc2 internal prototype to avoid an error. */
1376 /* We use char because int might match the return type of a gcc2
1377 builtin and then its argument prototype would still apply. */
1378 char gethostbyname();
1382 /* The GNU C library defines this for functions which it implements
1383 to always fail with ENOSYS. Some functions are actually named
1384 something starting with __ and the normal name is an alias. */
1385 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1393 if { (eval echo configure:1394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1395 eval "ac_cv_func_gethostbyname=yes"
1397 echo "configure: failed program was:" >&5
1398 cat conftest.$ac_ext >&5
1400 eval "ac_cv_func_gethostbyname=no"
1405 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1406 echo "$ac_t""yes" 1>&6
1409 echo "$ac_t""no" 1>&6
1410 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1411 echo "configure:1412: checking for gethostbyname in -lnsl" >&5
1412 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1413 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1414 echo $ac_n "(cached) $ac_c" 1>&6
1416 ac_save_LIBS="$LIBS"
1418 cat > conftest.$ac_ext <<EOF
1419 #line 1420 "configure"
1420 #include "confdefs.h"
1421 /* Override any gcc2 internal prototype to avoid an error. */
1422 /* We use char because int might match the return type of a gcc2
1423 builtin and then its argument prototype would still apply. */
1424 char gethostbyname();
1430 if { (eval echo configure:1431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1432 eval "ac_cv_lib_$ac_lib_var=yes"
1434 echo "configure: failed program was:" >&5
1435 cat conftest.$ac_ext >&5
1437 eval "ac_cv_lib_$ac_lib_var=no"
1440 LIBS="$ac_save_LIBS"
1443 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1444 echo "$ac_t""yes" 1>&6
1445 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1446 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1447 cat >> confdefs.h <<EOF
1448 #define $ac_tr_lib 1
1454 echo "$ac_t""no" 1>&6
1459 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
1460 echo "configure:1461: checking for nanosleep" >&5
1461 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
1462 echo $ac_n "(cached) $ac_c" 1>&6
1464 cat > conftest.$ac_ext <<EOF
1465 #line 1466 "configure"
1466 #include "confdefs.h"
1467 /* System header to define __stub macros and hopefully few prototypes,
1468 which can conflict with char nanosleep(); below. */
1470 /* Override any gcc2 internal prototype to avoid an error. */
1471 /* We use char because int might match the return type of a gcc2
1472 builtin and then its argument prototype would still apply. */
1477 /* The GNU C library defines this for functions which it implements
1478 to always fail with ENOSYS. Some functions are actually named
1479 something starting with __ and the normal name is an alias. */
1480 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
1488 if { (eval echo configure:1489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1490 eval "ac_cv_func_nanosleep=yes"
1492 echo "configure: failed program was:" >&5
1493 cat conftest.$ac_ext >&5
1495 eval "ac_cv_func_nanosleep=no"
1500 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
1501 echo "$ac_t""yes" 1>&6
1504 echo "$ac_t""no" 1>&6
1505 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
1506 echo "configure:1507: checking for nanosleep in -lrt" >&5
1507 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
1508 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1509 echo $ac_n "(cached) $ac_c" 1>&6
1511 ac_save_LIBS="$LIBS"
1513 cat > conftest.$ac_ext <<EOF
1514 #line 1515 "configure"
1515 #include "confdefs.h"
1516 /* Override any gcc2 internal prototype to avoid an error. */
1517 /* We use char because int might match the return type of a gcc2
1518 builtin and then its argument prototype would still apply. */
1525 if { (eval echo configure:1526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1527 eval "ac_cv_lib_$ac_lib_var=yes"
1529 echo "configure: failed program was:" >&5
1530 cat conftest.$ac_ext >&5
1532 eval "ac_cv_lib_$ac_lib_var=no"
1535 LIBS="$ac_save_LIBS"
1538 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1539 echo "$ac_t""yes" 1>&6
1540 ac_tr_lib=HAVE_LIB`echo rt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1541 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1542 cat >> confdefs.h <<EOF
1543 #define $ac_tr_lib 1
1549 echo "$ac_t""no" 1>&6
1550 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
1551 echo "configure:1552: checking for nanosleep in -lposix4" >&5
1552 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
1553 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1554 echo $ac_n "(cached) $ac_c" 1>&6
1556 ac_save_LIBS="$LIBS"
1557 LIBS="-lposix4 $LIBS"
1558 cat > conftest.$ac_ext <<EOF
1559 #line 1560 "configure"
1560 #include "confdefs.h"
1561 /* Override any gcc2 internal prototype to avoid an error. */
1562 /* We use char because int might match the return type of a gcc2
1563 builtin and then its argument prototype would still apply. */
1570 if { (eval echo configure:1571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1572 eval "ac_cv_lib_$ac_lib_var=yes"
1574 echo "configure: failed program was:" >&5
1575 cat conftest.$ac_ext >&5
1577 eval "ac_cv_lib_$ac_lib_var=no"
1580 LIBS="$ac_save_LIBS"
1583 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1584 echo "$ac_t""yes" 1>&6
1585 ac_tr_lib=HAVE_LIB`echo posix4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1586 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1587 cat >> confdefs.h <<EOF
1588 #define $ac_tr_lib 1
1591 LIBS="-lposix4 $LIBS"
1594 echo "$ac_t""no" 1>&6
1601 for ac_func in usleep
1603 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1604 echo "configure:1605: checking for $ac_func" >&5
1605 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1606 echo $ac_n "(cached) $ac_c" 1>&6
1608 cat > conftest.$ac_ext <<EOF
1609 #line 1610 "configure"
1610 #include "confdefs.h"
1611 /* System header to define __stub macros and hopefully few prototypes,
1612 which can conflict with char $ac_func(); below. */
1614 /* Override any gcc2 internal prototype to avoid an error. */
1615 /* We use char because int might match the return type of a gcc2
1616 builtin and then its argument prototype would still apply. */
1621 /* The GNU C library defines this for functions which it implements
1622 to always fail with ENOSYS. Some functions are actually named
1623 something starting with __ and the normal name is an alias. */
1624 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1632 if { (eval echo configure:1633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1634 eval "ac_cv_func_$ac_func=yes"
1636 echo "configure: failed program was:" >&5
1637 cat conftest.$ac_ext >&5
1639 eval "ac_cv_func_$ac_func=no"
1644 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1645 echo "$ac_t""yes" 1>&6
1646 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1647 cat >> confdefs.h <<EOF
1648 #define $ac_tr_func 1
1652 echo "$ac_t""no" 1>&6
1656 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
1657 echo "configure:1658: checking for inet_aton" >&5
1658 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
1659 echo $ac_n "(cached) $ac_c" 1>&6
1661 cat > conftest.$ac_ext <<EOF
1662 #line 1663 "configure"
1663 #include "confdefs.h"
1664 /* System header to define __stub macros and hopefully few prototypes,
1665 which can conflict with char inet_aton(); below. */
1667 /* Override any gcc2 internal prototype to avoid an error. */
1668 /* We use char because int might match the return type of a gcc2
1669 builtin and then its argument prototype would still apply. */
1674 /* The GNU C library defines this for functions which it implements
1675 to always fail with ENOSYS. Some functions are actually named
1676 something starting with __ and the normal name is an alias. */
1677 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
1685 if { (eval echo configure:1686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1687 eval "ac_cv_func_inet_aton=yes"
1689 echo "configure: failed program was:" >&5
1690 cat conftest.$ac_ext >&5
1692 eval "ac_cv_func_inet_aton=no"
1697 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
1698 echo "$ac_t""yes" 1>&6
1701 echo "$ac_t""no" 1>&6
1702 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
1703 echo "configure:1704: checking for inet_aton in -lresolv" >&5
1704 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
1705 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1706 echo $ac_n "(cached) $ac_c" 1>&6
1708 ac_save_LIBS="$LIBS"
1709 LIBS="-lresolv $LIBS"
1710 cat > conftest.$ac_ext <<EOF
1711 #line 1712 "configure"
1712 #include "confdefs.h"
1713 /* Override any gcc2 internal prototype to avoid an error. */
1714 /* We use char because int might match the return type of a gcc2
1715 builtin and then its argument prototype would still apply. */
1722 if { (eval echo configure:1723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1724 eval "ac_cv_lib_$ac_lib_var=yes"
1726 echo "configure: failed program was:" >&5
1727 cat conftest.$ac_ext >&5
1729 eval "ac_cv_lib_$ac_lib_var=no"
1732 LIBS="$ac_save_LIBS"
1735 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1736 echo "$ac_t""yes" 1>&6
1737 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1738 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1739 cat >> confdefs.h <<EOF
1740 #define $ac_tr_lib 1
1743 LIBS="-lresolv $LIBS"
1746 echo "$ac_t""no" 1>&6
1751 for ac_hdr in unistd.h
1753 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1754 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1755 echo "configure:1756: checking for $ac_hdr" >&5
1756 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1757 echo $ac_n "(cached) $ac_c" 1>&6
1759 cat > conftest.$ac_ext <<EOF
1760 #line 1761 "configure"
1761 #include "confdefs.h"
1764 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1765 { (eval echo configure:1766: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1766 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1767 if test -z "$ac_err"; then
1769 eval "ac_cv_header_$ac_safe=yes"
1772 echo "configure: failed program was:" >&5
1773 cat conftest.$ac_ext >&5
1775 eval "ac_cv_header_$ac_safe=no"
1779 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1780 echo "$ac_t""yes" 1>&6
1781 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1782 cat >> confdefs.h <<EOF
1783 #define $ac_tr_hdr 1
1787 echo "$ac_t""no" 1>&6
1791 for ac_func in getpagesize
1793 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1794 echo "configure:1795: checking for $ac_func" >&5
1795 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1796 echo $ac_n "(cached) $ac_c" 1>&6
1798 cat > conftest.$ac_ext <<EOF
1799 #line 1800 "configure"
1800 #include "confdefs.h"
1801 /* System header to define __stub macros and hopefully few prototypes,
1802 which can conflict with char $ac_func(); below. */
1804 /* Override any gcc2 internal prototype to avoid an error. */
1805 /* We use char because int might match the return type of a gcc2
1806 builtin and then its argument prototype would still apply. */
1811 /* The GNU C library defines this for functions which it implements
1812 to always fail with ENOSYS. Some functions are actually named
1813 something starting with __ and the normal name is an alias. */
1814 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1822 if { (eval echo configure:1823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1824 eval "ac_cv_func_$ac_func=yes"
1826 echo "configure: failed program was:" >&5
1827 cat conftest.$ac_ext >&5
1829 eval "ac_cv_func_$ac_func=no"
1834 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1835 echo "$ac_t""yes" 1>&6
1836 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1837 cat >> confdefs.h <<EOF
1838 #define $ac_tr_func 1
1842 echo "$ac_t""no" 1>&6
1846 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1847 echo "configure:1848: checking for working mmap" >&5
1848 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1849 echo $ac_n "(cached) $ac_c" 1>&6
1851 if test "$cross_compiling" = yes; then
1852 ac_cv_func_mmap_fixed_mapped=no
1854 cat > conftest.$ac_ext <<EOF
1855 #line 1856 "configure"
1856 #include "confdefs.h"
1858 /* Thanks to Mike Haertel and Jim Avera for this test.
1859 Here is a matrix of mmap possibilities:
1860 mmap private not fixed
1861 mmap private fixed at somewhere currently unmapped
1862 mmap private fixed at somewhere already mapped
1863 mmap shared not fixed
1864 mmap shared fixed at somewhere currently unmapped
1865 mmap shared fixed at somewhere already mapped
1866 For private mappings, we should verify that changes cannot be read()
1867 back from the file, nor mmap's back from the file at a different
1868 address. (There have been systems where private was not correctly
1869 implemented like the infamous i386 svr4.0, and systems where the
1870 VM page cache was not coherent with the filesystem buffer cache
1871 like early versions of FreeBSD and possibly contemporary NetBSD.)
1872 For shared mappings, we should conversely verify that changes get
1873 propogated back to all the places they're supposed to be.
1875 Grep wants private fixed already mapped.
1876 The main things grep needs to know about mmap are:
1877 * does it exist and is it safe to write into the mmap'd area
1878 * how to use it (BSD variants) */
1879 #include <sys/types.h>
1881 #include <sys/mman.h>
1883 #include <sys/stat.h>
1885 #ifdef HAVE_UNISTD_H
1886 # include <unistd.h>
1889 /* This mess was copied from the GNU getpagesize.h. */
1890 #ifndef HAVE_GETPAGESIZE
1892 /* Assume that all systems that can run configure have sys/param.h. */
1893 # ifndef HAVE_SYS_PARAM_H
1894 # define HAVE_SYS_PARAM_H 1
1897 # ifdef _SC_PAGESIZE
1898 # define getpagesize() sysconf(_SC_PAGESIZE)
1899 # else /* no _SC_PAGESIZE */
1900 # ifdef HAVE_SYS_PARAM_H
1901 # include <sys/param.h>
1902 # ifdef EXEC_PAGESIZE
1903 # define getpagesize() EXEC_PAGESIZE
1904 # else /* no EXEC_PAGESIZE */
1906 # define getpagesize() NBPG * CLSIZE
1909 # endif /* no CLSIZE */
1910 # else /* no NBPG */
1912 # define getpagesize() NBPC
1913 # else /* no NBPC */
1915 # define getpagesize() PAGESIZE
1916 # endif /* PAGESIZE */
1917 # endif /* no NBPC */
1918 # endif /* no NBPG */
1919 # endif /* no EXEC_PAGESIZE */
1920 # else /* no HAVE_SYS_PARAM_H */
1921 # define getpagesize() 8192 /* punt totally */
1922 # endif /* no HAVE_SYS_PARAM_H */
1923 # endif /* no _SC_PAGESIZE */
1925 #endif /* no HAVE_GETPAGESIZE */
1928 extern "C" { void *malloc(unsigned); }
1936 char *data, *data2, *data3;
1940 pagesize = getpagesize();
1943 * First, make a file with some known garbage in it.
1945 data = (char*)malloc(pagesize);
1948 for (i = 0; i < pagesize; ++i)
1949 *(data + i) = rand();
1951 fd = creat("conftestmmap", 0600);
1954 if (write(fd, data, pagesize) != pagesize)
1959 * Next, try to mmap the file at a fixed address which
1960 * already has something else allocated at it. If we can,
1961 * also make sure that we see the same garbage.
1963 fd = open("conftestmmap", O_RDWR);
1966 data2 = (char*)malloc(2 * pagesize);
1969 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1970 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1971 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1973 for (i = 0; i < pagesize; ++i)
1974 if (*(data + i) != *(data2 + i))
1978 * Finally, make sure that changes to the mapped area
1979 * do not percolate back to the file as seen by read().
1980 * (This is a bug on some variants of i386 svr4.0.)
1982 for (i = 0; i < pagesize; ++i)
1983 *(data2 + i) = *(data2 + i) + 1;
1984 data3 = (char*)malloc(pagesize);
1987 if (read(fd, data3, pagesize) != pagesize)
1989 for (i = 0; i < pagesize; ++i)
1990 if (*(data + i) != *(data3 + i))
1993 unlink("conftestmmap");
1998 if { (eval echo configure:1999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2000 ac_cv_func_mmap_fixed_mapped=yes
2002 echo "configure: failed program was:" >&5
2003 cat conftest.$ac_ext >&5
2005 ac_cv_func_mmap_fixed_mapped=no
2012 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2013 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2014 cat >> confdefs.h <<\EOF
2020 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2021 echo "configure:2022: checking for vprintf" >&5
2022 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2023 echo $ac_n "(cached) $ac_c" 1>&6
2025 cat > conftest.$ac_ext <<EOF
2026 #line 2027 "configure"
2027 #include "confdefs.h"
2028 /* System header to define __stub macros and hopefully few prototypes,
2029 which can conflict with char vprintf(); below. */
2031 /* Override any gcc2 internal prototype to avoid an error. */
2032 /* We use char because int might match the return type of a gcc2
2033 builtin and then its argument prototype would still apply. */
2038 /* The GNU C library defines this for functions which it implements
2039 to always fail with ENOSYS. Some functions are actually named
2040 something starting with __ and the normal name is an alias. */
2041 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2049 if { (eval echo configure:2050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2051 eval "ac_cv_func_vprintf=yes"
2053 echo "configure: failed program was:" >&5
2054 cat conftest.$ac_ext >&5
2056 eval "ac_cv_func_vprintf=no"
2061 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2062 echo "$ac_t""yes" 1>&6
2063 cat >> confdefs.h <<\EOF
2064 #define HAVE_VPRINTF 1
2068 echo "$ac_t""no" 1>&6
2071 if test "$ac_cv_func_vprintf" != yes; then
2072 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2073 echo "configure:2074: checking for _doprnt" >&5
2074 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2075 echo $ac_n "(cached) $ac_c" 1>&6
2077 cat > conftest.$ac_ext <<EOF
2078 #line 2079 "configure"
2079 #include "confdefs.h"
2080 /* System header to define __stub macros and hopefully few prototypes,
2081 which can conflict with char _doprnt(); below. */
2083 /* Override any gcc2 internal prototype to avoid an error. */
2084 /* We use char because int might match the return type of a gcc2
2085 builtin and then its argument prototype would still apply. */
2090 /* The GNU C library defines this for functions which it implements
2091 to always fail with ENOSYS. Some functions are actually named
2092 something starting with __ and the normal name is an alias. */
2093 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2101 if { (eval echo configure:2102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2103 eval "ac_cv_func__doprnt=yes"
2105 echo "configure: failed program was:" >&5
2106 cat conftest.$ac_ext >&5
2108 eval "ac_cv_func__doprnt=no"
2113 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2114 echo "$ac_t""yes" 1>&6
2115 cat >> confdefs.h <<\EOF
2116 #define HAVE_DOPRNT 1
2120 echo "$ac_t""no" 1>&6
2125 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2126 echo "configure:2127: checking return type of signal handlers" >&5
2127 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2128 echo $ac_n "(cached) $ac_c" 1>&6
2130 cat > conftest.$ac_ext <<EOF
2131 #line 2132 "configure"
2132 #include "confdefs.h"
2133 #include <sys/types.h>
2139 extern "C" void (*signal (int, void (*)(int)))(int);
2141 void (*signal ()) ();
2148 if { (eval echo configure:2149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2150 ac_cv_type_signal=void
2152 echo "configure: failed program was:" >&5
2153 cat conftest.$ac_ext >&5
2155 ac_cv_type_signal=int
2160 echo "$ac_t""$ac_cv_type_signal" 1>&6
2161 cat >> confdefs.h <<EOF
2162 #define RETSIGTYPE $ac_cv_type_signal
2166 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2167 echo "configure:2168: checking for dlopen in -ldl" >&5
2168 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2169 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2170 echo $ac_n "(cached) $ac_c" 1>&6
2172 ac_save_LIBS="$LIBS"
2174 cat > conftest.$ac_ext <<EOF
2175 #line 2176 "configure"
2176 #include "confdefs.h"
2177 /* Override any gcc2 internal prototype to avoid an error. */
2178 /* We use char because int might match the return type of a gcc2
2179 builtin and then its argument prototype would still apply. */
2186 if { (eval echo configure:2187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2188 eval "ac_cv_lib_$ac_lib_var=yes"
2190 echo "configure: failed program was:" >&5
2191 cat conftest.$ac_ext >&5
2193 eval "ac_cv_lib_$ac_lib_var=no"
2196 LIBS="$ac_save_LIBS"
2199 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2200 echo "$ac_t""yes" 1>&6
2201 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2202 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2203 cat >> confdefs.h <<EOF
2204 #define $ac_tr_lib 1
2210 echo "$ac_t""no" 1>&6
2213 echo $ac_n "checking for optarg in -lgnugetopt""... $ac_c" 1>&6
2214 echo "configure:2215: checking for optarg in -lgnugetopt" >&5
2215 ac_lib_var=`echo gnugetopt'_'optarg | sed 'y%./+-%__p_%'`
2216 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2217 echo $ac_n "(cached) $ac_c" 1>&6
2219 ac_save_LIBS="$LIBS"
2220 LIBS="-lgnugetopt $LIBS"
2221 cat > conftest.$ac_ext <<EOF
2222 #line 2223 "configure"
2223 #include "confdefs.h"
2224 /* Override any gcc2 internal prototype to avoid an error. */
2225 /* We use char because int might match the return type of a gcc2
2226 builtin and then its argument prototype would still apply. */
2233 if { (eval echo configure:2234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2235 eval "ac_cv_lib_$ac_lib_var=yes"
2237 echo "configure: failed program was:" >&5
2238 cat conftest.$ac_ext >&5
2240 eval "ac_cv_lib_$ac_lib_var=no"
2243 LIBS="$ac_save_LIBS"
2246 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2247 echo "$ac_t""yes" 1>&6
2248 ac_tr_lib=HAVE_LIB`echo gnugetopt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2249 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2250 cat >> confdefs.h <<EOF
2251 #define $ac_tr_lib 1
2254 LIBS="-lgnugetopt $LIBS"
2257 echo "$ac_t""no" 1>&6
2260 echo $ac_n "checking for _ in -lbe""... $ac_c" 1>&6
2261 echo "configure:2262: checking for _ in -lbe" >&5
2262 ac_lib_var=`echo be'_'_ | sed 'y%./+-%__p_%'`
2263 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2264 echo $ac_n "(cached) $ac_c" 1>&6
2266 ac_save_LIBS="$LIBS"
2268 cat > conftest.$ac_ext <<EOF
2269 #line 2270 "configure"
2270 #include "confdefs.h"
2271 /* Override any gcc2 internal prototype to avoid an error. */
2272 /* We use char because int might match the return type of a gcc2
2273 builtin and then its argument prototype would still apply. */
2280 if { (eval echo configure:2281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2282 eval "ac_cv_lib_$ac_lib_var=yes"
2284 echo "configure: failed program was:" >&5
2285 cat conftest.$ac_ext >&5
2287 eval "ac_cv_lib_$ac_lib_var=no"
2290 LIBS="$ac_save_LIBS"
2293 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2294 echo "$ac_t""yes" 1>&6
2295 ac_tr_lib=HAVE_LIB`echo be | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2296 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2297 cat >> confdefs.h <<EOF
2298 #define $ac_tr_lib 1
2304 echo "$ac_t""no" 1>&6
2307 echo $ac_n "checking for _ in -lgame""... $ac_c" 1>&6
2308 echo "configure:2309: checking for _ in -lgame" >&5
2309 ac_lib_var=`echo game'_'_ | sed 'y%./+-%__p_%'`
2310 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2311 echo $ac_n "(cached) $ac_c" 1>&6
2313 ac_save_LIBS="$LIBS"
2315 cat > conftest.$ac_ext <<EOF
2316 #line 2317 "configure"
2317 #include "confdefs.h"
2318 /* Override any gcc2 internal prototype to avoid an error. */
2319 /* We use char because int might match the return type of a gcc2
2320 builtin and then its argument prototype would still apply. */
2327 if { (eval echo configure:2328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2329 eval "ac_cv_lib_$ac_lib_var=yes"
2331 echo "configure: failed program was:" >&5
2332 cat conftest.$ac_ext >&5
2334 eval "ac_cv_lib_$ac_lib_var=no"
2337 LIBS="$ac_save_LIBS"
2340 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2341 echo "$ac_t""yes" 1>&6
2342 ac_tr_lib=HAVE_LIB`echo game | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2343 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2344 cat >> confdefs.h <<EOF
2345 #define $ac_tr_lib 1
2351 echo "$ac_t""no" 1>&6
2354 echo $ac_n "checking for _ in -lroot""... $ac_c" 1>&6
2355 echo "configure:2356: checking for _ in -lroot" >&5
2356 ac_lib_var=`echo root'_'_ | sed 'y%./+-%__p_%'`
2357 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2358 echo $ac_n "(cached) $ac_c" 1>&6
2360 ac_save_LIBS="$LIBS"
2362 cat > conftest.$ac_ext <<EOF
2363 #line 2364 "configure"
2364 #include "confdefs.h"
2365 /* Override any gcc2 internal prototype to avoid an error. */
2366 /* We use char because int might match the return type of a gcc2
2367 builtin and then its argument prototype would still apply. */
2374 if { (eval echo configure:2375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2376 eval "ac_cv_lib_$ac_lib_var=yes"
2378 echo "configure: failed program was:" >&5
2379 cat conftest.$ac_ext >&5
2381 eval "ac_cv_lib_$ac_lib_var=no"
2384 LIBS="$ac_save_LIBS"
2387 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2388 echo "$ac_t""yes" 1>&6
2389 ac_tr_lib=HAVE_LIB`echo root | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2390 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2391 cat >> confdefs.h <<EOF
2392 #define $ac_tr_lib 1
2398 echo "$ac_t""no" 1>&6
2401 echo $ac_n "checking for powl in -lm""... $ac_c" 1>&6
2402 echo "configure:2403: checking for powl in -lm" >&5
2403 ac_lib_var=`echo m'_'powl | sed 'y%./+-%__p_%'`
2404 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2405 echo $ac_n "(cached) $ac_c" 1>&6
2407 ac_save_LIBS="$LIBS"
2409 cat > conftest.$ac_ext <<EOF
2410 #line 2411 "configure"
2411 #include "confdefs.h"
2412 /* Override any gcc2 internal prototype to avoid an error. */
2413 /* We use char because int might match the return type of a gcc2
2414 builtin and then its argument prototype would still apply. */
2421 if { (eval echo configure:2422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2423 eval "ac_cv_lib_$ac_lib_var=yes"
2425 echo "configure: failed program was:" >&5
2426 cat conftest.$ac_ext >&5
2428 eval "ac_cv_lib_$ac_lib_var=no"
2431 LIBS="$ac_save_LIBS"
2434 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2435 echo "$ac_t""yes" 1>&6
2436 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2437 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2438 cat >> confdefs.h <<EOF
2439 #define $ac_tr_lib 1
2445 echo "$ac_t""no" 1>&6
2448 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
2449 echo "configure:2450: checking for pthread_create in -lpthread" >&5
2450 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
2451 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2452 echo $ac_n "(cached) $ac_c" 1>&6
2454 ac_save_LIBS="$LIBS"
2455 LIBS="-lpthread $LIBS"
2456 cat > conftest.$ac_ext <<EOF
2457 #line 2458 "configure"
2458 #include "confdefs.h"
2459 /* Override any gcc2 internal prototype to avoid an error. */
2460 /* We use char because int might match the return type of a gcc2
2461 builtin and then its argument prototype would still apply. */
2462 char pthread_create();
2468 if { (eval echo configure:2469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2470 eval "ac_cv_lib_$ac_lib_var=yes"
2472 echo "configure: failed program was:" >&5
2473 cat conftest.$ac_ext >&5
2475 eval "ac_cv_lib_$ac_lib_var=no"
2478 LIBS="$ac_save_LIBS"
2481 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2482 echo "$ac_t""yes" 1>&6
2483 ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2484 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2485 cat >> confdefs.h <<EOF
2486 #define $ac_tr_lib 1
2489 LIBS="-lpthread $LIBS"
2492 echo "$ac_t""no" 1>&6
2495 echo $ac_n "checking for thread_create in -lthreads""... $ac_c" 1>&6
2496 echo "configure:2497: checking for thread_create in -lthreads" >&5
2497 ac_lib_var=`echo threads'_'thread_create | sed 'y%./+-%__p_%'`
2498 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2499 echo $ac_n "(cached) $ac_c" 1>&6
2501 ac_save_LIBS="$LIBS"
2502 LIBS="-lthreads $LIBS"
2503 cat > conftest.$ac_ext <<EOF
2504 #line 2505 "configure"
2505 #include "confdefs.h"
2506 /* Override any gcc2 internal prototype to avoid an error. */
2507 /* We use char because int might match the return type of a gcc2
2508 builtin and then its argument prototype would still apply. */
2509 char thread_create();
2515 if { (eval echo configure:2516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2517 eval "ac_cv_lib_$ac_lib_var=yes"
2519 echo "configure: failed program was:" >&5
2520 cat conftest.$ac_ext >&5
2522 eval "ac_cv_lib_$ac_lib_var=no"
2525 LIBS="$ac_save_LIBS"
2528 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2529 echo "$ac_t""yes" 1>&6
2530 ac_tr_lib=HAVE_LIB`echo threads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2531 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2532 cat >> confdefs.h <<EOF
2533 #define $ac_tr_lib 1
2536 LIBS="-lthreads $LIBS"
2539 echo "$ac_t""no" 1>&6
2543 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
2544 echo "configure:2545: checking for getopt_long" >&5
2545 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
2546 echo $ac_n "(cached) $ac_c" 1>&6
2548 cat > conftest.$ac_ext <<EOF
2549 #line 2550 "configure"
2550 #include "confdefs.h"
2551 /* System header to define __stub macros and hopefully few prototypes,
2552 which can conflict with char getopt_long(); below. */
2554 /* Override any gcc2 internal prototype to avoid an error. */
2555 /* We use char because int might match the return type of a gcc2
2556 builtin and then its argument prototype would still apply. */
2561 /* The GNU C library defines this for functions which it implements
2562 to always fail with ENOSYS. Some functions are actually named
2563 something starting with __ and the normal name is an alias. */
2564 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
2572 if { (eval echo configure:2573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2574 eval "ac_cv_func_getopt_long=yes"
2576 echo "configure: failed program was:" >&5
2577 cat conftest.$ac_ext >&5
2579 eval "ac_cv_func_getopt_long=no"
2584 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
2585 echo "$ac_t""yes" 1>&6
2588 echo "$ac_t""no" 1>&6
2589 LIBOBJS="$LIBOBJS getopt.o getopt1.o"
2594 for ac_hdr in fcntl.h sys/ioctl.h sys/time.h unistd.h
2596 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2597 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2598 echo "configure:2599: checking for $ac_hdr" >&5
2599 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2600 echo $ac_n "(cached) $ac_c" 1>&6
2602 cat > conftest.$ac_ext <<EOF
2603 #line 2604 "configure"
2604 #include "confdefs.h"
2607 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2608 { (eval echo configure:2609: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2609 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2610 if test -z "$ac_err"; then
2612 eval "ac_cv_header_$ac_safe=yes"
2615 echo "configure: failed program was:" >&5
2616 cat conftest.$ac_ext >&5
2618 eval "ac_cv_header_$ac_safe=no"
2622 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2623 echo "$ac_t""yes" 1>&6
2624 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2625 cat >> confdefs.h <<EOF
2626 #define $ac_tr_hdr 1
2630 echo "$ac_t""no" 1>&6
2634 for ac_hdr in sys/soundcard.h machine/soundcard.h
2636 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2637 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2638 echo "configure:2639: checking for $ac_hdr" >&5
2639 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2640 echo $ac_n "(cached) $ac_c" 1>&6
2642 cat > conftest.$ac_ext <<EOF
2643 #line 2644 "configure"
2644 #include "confdefs.h"
2647 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2648 { (eval echo configure:2649: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2649 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2650 if test -z "$ac_err"; then
2652 eval "ac_cv_header_$ac_safe=yes"
2655 echo "configure: failed program was:" >&5
2656 cat conftest.$ac_ext >&5
2658 eval "ac_cv_header_$ac_safe=no"
2662 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2663 echo "$ac_t""yes" 1>&6
2664 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2665 cat >> confdefs.h <<EOF
2666 #define $ac_tr_hdr 1
2670 echo "$ac_t""no" 1>&6
2674 for ac_hdr in dlfcn.h image.h
2676 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2677 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2678 echo "configure:2679: checking for $ac_hdr" >&5
2679 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2680 echo $ac_n "(cached) $ac_c" 1>&6
2682 cat > conftest.$ac_ext <<EOF
2683 #line 2684 "configure"
2684 #include "confdefs.h"
2687 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2688 { (eval echo configure:2689: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2689 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2690 if test -z "$ac_err"; then
2692 eval "ac_cv_header_$ac_safe=yes"
2695 echo "configure: failed program was:" >&5
2696 cat conftest.$ac_ext >&5
2698 eval "ac_cv_header_$ac_safe=no"
2702 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2703 echo "$ac_t""yes" 1>&6
2704 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2705 cat >> confdefs.h <<EOF
2706 #define $ac_tr_hdr 1
2710 echo "$ac_t""no" 1>&6
2714 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
2716 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2717 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2718 echo "configure:2719: checking for $ac_hdr" >&5
2719 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2720 echo $ac_n "(cached) $ac_c" 1>&6
2722 cat > conftest.$ac_ext <<EOF
2723 #line 2724 "configure"
2724 #include "confdefs.h"
2727 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2728 { (eval echo configure:2729: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2729 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2730 if test -z "$ac_err"; then
2732 eval "ac_cv_header_$ac_safe=yes"
2735 echo "configure: failed program was:" >&5
2736 cat conftest.$ac_ext >&5
2738 eval "ac_cv_header_$ac_safe=no"
2742 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2743 echo "$ac_t""yes" 1>&6
2744 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2745 cat >> confdefs.h <<EOF
2746 #define $ac_tr_hdr 1
2750 echo "$ac_t""no" 1>&6
2755 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
2757 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2758 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2759 echo "configure:2760: checking for $ac_hdr" >&5
2760 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2761 echo $ac_n "(cached) $ac_c" 1>&6
2763 cat > conftest.$ac_ext <<EOF
2764 #line 2765 "configure"
2765 #include "confdefs.h"
2768 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2769 { (eval echo configure:2770: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2770 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2771 if test -z "$ac_err"; then
2773 eval "ac_cv_header_$ac_safe=yes"
2776 echo "configure: failed program was:" >&5
2777 cat conftest.$ac_ext >&5
2779 eval "ac_cv_header_$ac_safe=no"
2783 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2784 echo "$ac_t""yes" 1>&6
2785 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2786 cat >> confdefs.h <<EOF
2787 #define $ac_tr_hdr 1
2791 echo "$ac_t""no" 1>&6
2796 echo $ac_n "checking for working const""... $ac_c" 1>&6
2797 echo "configure:2798: checking for working const" >&5
2798 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2799 echo $ac_n "(cached) $ac_c" 1>&6
2801 cat > conftest.$ac_ext <<EOF
2802 #line 2803 "configure"
2803 #include "confdefs.h"
2807 /* Ultrix mips cc rejects this. */
2808 typedef int charset[2]; const charset x = {0,0};
2809 /* SunOS 4.1.1 cc rejects this. */
2810 char const *const *ccp;
2812 /* NEC SVR4.0.2 mips cc rejects this. */
2813 struct point {int x, y;};
2814 static struct point const zero = {0,0};
2815 /* AIX XL C 1.02.0.0 rejects this.
2816 It does not let you subtract one const X* pointer from another in an arm
2817 of an if-expression whose if-part is not a constant expression */
2818 const char *g = "string";
2819 ccp = &g + (g ? g-g : 0);
2820 /* HPUX 7.0 cc rejects these. */
2823 ccp = (char const *const *) p;
2824 { /* SCO 3.2v4 cc rejects this. */
2826 char const *s = 0 ? (char *) 0 : (char const *) 0;
2830 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2832 const int *foo = &x[0];
2835 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2836 typedef const int *iptr;
2840 { /* AIX XL C 1.02.0.0 rejects this saying
2841 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2842 struct s { int j; const int *ap[3]; };
2843 struct s *b; b->j = 5;
2845 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2851 if { (eval echo configure:2852: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2855 echo "configure: failed program was:" >&5
2856 cat conftest.$ac_ext >&5
2863 echo "$ac_t""$ac_cv_c_const" 1>&6
2864 if test $ac_cv_c_const = no; then
2865 cat >> confdefs.h <<\EOF
2871 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2872 echo "configure:2873: checking for ANSI C header files" >&5
2873 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2874 echo $ac_n "(cached) $ac_c" 1>&6
2876 cat > conftest.$ac_ext <<EOF
2877 #line 2878 "configure"
2878 #include "confdefs.h"
2884 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2885 { (eval echo configure:2886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2886 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2887 if test -z "$ac_err"; then
2889 ac_cv_header_stdc=yes
2892 echo "configure: failed program was:" >&5
2893 cat conftest.$ac_ext >&5
2895 ac_cv_header_stdc=no
2899 if test $ac_cv_header_stdc = yes; then
2900 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2901 cat > conftest.$ac_ext <<EOF
2902 #line 2903 "configure"
2903 #include "confdefs.h"
2906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2907 egrep "memchr" >/dev/null 2>&1; then
2911 ac_cv_header_stdc=no
2917 if test $ac_cv_header_stdc = yes; then
2918 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2919 cat > conftest.$ac_ext <<EOF
2920 #line 2921 "configure"
2921 #include "confdefs.h"
2924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2925 egrep "free" >/dev/null 2>&1; then
2929 ac_cv_header_stdc=no
2935 if test $ac_cv_header_stdc = yes; then
2936 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2937 if test "$cross_compiling" = yes; then
2940 cat > conftest.$ac_ext <<EOF
2941 #line 2942 "configure"
2942 #include "confdefs.h"
2944 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2945 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2946 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2947 int main () { int i; for (i = 0; i < 256; i++)
2948 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2952 if { (eval echo configure:2953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2956 echo "configure: failed program was:" >&5
2957 cat conftest.$ac_ext >&5
2959 ac_cv_header_stdc=no
2967 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2968 if test $ac_cv_header_stdc = yes; then
2969 cat >> confdefs.h <<\EOF
2970 #define STDC_HEADERS 1
2975 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2976 echo "configure:2977: checking for size_t" >&5
2977 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2978 echo $ac_n "(cached) $ac_c" 1>&6
2980 cat > conftest.$ac_ext <<EOF
2981 #line 2982 "configure"
2982 #include "confdefs.h"
2983 #include <sys/types.h>
2989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2990 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2992 ac_cv_type_size_t=yes
2995 ac_cv_type_size_t=no
3000 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3001 if test $ac_cv_type_size_t = no; then
3002 cat >> confdefs.h <<\EOF
3003 #define size_t unsigned
3008 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3009 echo "configure:3010: checking whether time.h and sys/time.h may both be included" >&5
3010 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3011 echo $ac_n "(cached) $ac_c" 1>&6
3013 cat > conftest.$ac_ext <<EOF
3014 #line 3015 "configure"
3015 #include "confdefs.h"
3016 #include <sys/types.h>
3017 #include <sys/time.h>
3023 if { (eval echo configure:3024: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3025 ac_cv_header_time=yes
3027 echo "configure: failed program was:" >&5
3028 cat conftest.$ac_ext >&5
3030 ac_cv_header_time=no
3035 echo "$ac_t""$ac_cv_header_time" 1>&6
3036 if test $ac_cv_header_time = yes; then
3037 cat >> confdefs.h <<\EOF
3038 #define TIME_WITH_SYS_TIME 1
3044 PLUGINS=${PLUGINS}"yuv ";
3047 # Check whether --enable-ppro or --disable-ppro was given.
3048 if test "${enable_ppro+set}" = set; then
3049 enableval="$enable_ppro"
3050 if test x$enableval = xyes; then ARCH=${ARCH}" pentiumpro"; fi
3053 # Check whether --enable-mmx or --disable-mmx was given.
3054 if test "${enable_mmx+set}" = set; then
3055 enableval="$enable_mmx"
3056 if test x$enableval = xyes; then ARCH=${ARCH}" mmx"; PLUGINS=${PLUGINS}"yuvmmx "; fi
3063 if test x$host_os = xbeos; then
3064 PLUGINS=${PLUGINS}"dummy beos "
3068 # Check whether --enable-dummy or --disable-dummy was given.
3069 if test "${enable_dummy+set}" = set; then
3070 enableval="$enable_dummy"
3074 if test x$enable_dummy != xno; then PLUGINS=${PLUGINS}"dummy "; fi
3075 # Check whether --enable-dsp or --disable-dsp was given.
3076 if test "${enable_dsp+set}" = set; then
3077 enableval="$enable_dsp"
3081 if test x$enable_dsp != xno; then PLUGINS=${PLUGINS}"dsp "; fi
3082 # Check whether --enable-esd or --disable-esd was given.
3083 if test "${enable_esd+set}" = set; then
3084 enableval="$enable_esd"
3085 if test x$enable_gnome = xyes; then PLUGINS=${PLUGINS}"esd "; fi
3088 # Check whether --enable-fb or --disable-fb was given.
3089 if test "${enable_fb+set}" = set; then
3090 enableval="$enable_fb"
3091 if test x$enable_fb = xyes; then PLUGINS=${PLUGINS}"fb "; ALIASES=${ALIASES}"fbvlc "; fi
3094 # Check whether --enable-ggi or --disable-ggi was given.
3095 if test "${enable_ggi+set}" = set; then
3096 enableval="$enable_ggi"
3097 if test x$enable_ggi = xyes; then PLUGINS=${PLUGINS}"ggi "; ALIASES=${ALIASES}"ggivlc "; fi
3100 # Check whether --enable-glide or --disable-glide was given.
3101 if test "${enable_glide+set}" = set; then
3102 enableval="$enable_glide"
3103 if test x$enable_glide = xyes; then PLUGINS=${PLUGINS}"glide "; ALIASES=${ALIASES}"glidevlc "; fi
3106 # Check whether --enable-gnome or --disable-gnome was given.
3107 if test "${enable_gnome+set}" = set; then
3108 enableval="$enable_gnome"
3109 if test x$enable_gnome = xyes; then PLUGINS=${PLUGINS}"gnome "; ALIASES=${ALIASES}"gvlc "; fi
3112 # Check whether --enable-x11 or --disable-x11 was given.
3113 if test "${enable_x11+set}" = set; then
3114 enableval="$enable_x11"
3118 if test x$enable_x11 != xno; then PLUGINS=${PLUGINS}"x11 "; ALIASES=${ALIASES}"xvlc "; fi
3128 cat > confcache <<\EOF
3129 # This file is a shell script that caches the results of configure
3130 # tests run on this system so they can be shared between configure
3131 # scripts and configure runs. It is not useful on other systems.
3132 # If it contains results you don't want to keep, you may remove or edit it.
3134 # By default, configure uses ./config.cache as the cache file,
3135 # creating it if it does not exist already. You can give configure
3136 # the --cache-file=FILE option to use a different cache file; that is
3137 # what configure does when it calls configure scripts in
3138 # subdirectories, so they share the cache.
3139 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3140 # config.status only pays attention to the cache file if you give it the
3141 # --recheck option to rerun configure.
3144 # The following way of writing the cache mishandles newlines in values,
3145 # but we know of no workaround that is simple, portable, and efficient.
3146 # So, don't put newlines in cache variables' values.
3147 # Ultrix sh set writes to stderr and can't be redirected directly,
3148 # and sets the high bit in the cache file unless we assign to the vars.
3150 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3152 # `set' does not quote correctly, so add quotes (double-quote substitution
3153 # turns \\\\ into \\, and sed turns \\ into \).
3155 -e "s/'/'\\\\''/g" \
3156 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3159 # `set' quotes correctly as required by POSIX, so do not add quotes.
3160 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3163 if cmp -s $cache_file confcache; then
3166 if test -w $cache_file; then
3167 echo "updating cache $cache_file"
3168 cat confcache > $cache_file
3170 echo "not updating unwritable cache $cache_file"
3175 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3177 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3178 # Let make expand exec_prefix.
3179 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3181 # Any assignment to VPATH causes Sun make to only execute
3182 # the first set of double-colon rules, so remove it if not needed.
3183 # If there is a colon in the path, we need to keep it.
3184 if test "x$srcdir" = x.; then
3185 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3188 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3190 DEFS=-DHAVE_CONFIG_H
3192 # Without the "./", some shells look in PATH for config.status.
3193 : ${CONFIG_STATUS=./config.status}
3195 echo creating $CONFIG_STATUS
3196 rm -f $CONFIG_STATUS
3197 cat > $CONFIG_STATUS <<EOF
3199 # Generated automatically by configure.
3200 # Run this file to recreate the current configuration.
3201 # This directory was configured as follows,
3202 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3204 # $0 $ac_configure_args
3206 # Compiler output produced by configure, useful for debugging
3207 # configure, is in ./config.log if it exists.
3209 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3212 case "\$ac_option" in
3213 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3214 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3215 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3216 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3217 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3219 -help | --help | --hel | --he | --h)
3220 echo "\$ac_cs_usage"; exit 0 ;;
3221 *) echo "\$ac_cs_usage"; exit 1 ;;
3225 ac_given_srcdir=$srcdir
3226 ac_given_INSTALL="$INSTALL"
3228 trap 'rm -fr `echo "Makefile include/config.h include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3230 cat >> $CONFIG_STATUS <<EOF
3232 # Protect against being on the right side of a sed subst in config.status.
3233 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3234 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3238 s%@CFLAGS@%$CFLAGS%g
3239 s%@CPPFLAGS@%$CPPFLAGS%g
3240 s%@CXXFLAGS@%$CXXFLAGS%g
3241 s%@FFLAGS@%$FFLAGS%g
3243 s%@LDFLAGS@%$LDFLAGS%g
3245 s%@exec_prefix@%$exec_prefix%g
3246 s%@prefix@%$prefix%g
3247 s%@program_transform_name@%$program_transform_name%g
3248 s%@bindir@%$bindir%g
3249 s%@sbindir@%$sbindir%g
3250 s%@libexecdir@%$libexecdir%g
3251 s%@datadir@%$datadir%g
3252 s%@sysconfdir@%$sysconfdir%g
3253 s%@sharedstatedir@%$sharedstatedir%g
3254 s%@localstatedir@%$localstatedir%g
3255 s%@libdir@%$libdir%g
3256 s%@includedir@%$includedir%g
3257 s%@oldincludedir@%$oldincludedir%g
3258 s%@infodir@%$infodir%g
3259 s%@mandir@%$mandir%g
3261 s%@host_alias@%$host_alias%g
3262 s%@host_cpu@%$host_cpu%g
3263 s%@host_vendor@%$host_vendor%g
3264 s%@host_os@%$host_os%g
3265 s%@VLC_VERSION@%$VLC_VERSION%g
3266 s%@VLC_CODENAME@%$VLC_CODENAME%g
3267 s%@SET_MAKE@%$SET_MAKE%g
3270 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3271 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3272 s%@INSTALL_DATA@%$INSTALL_DATA%g
3273 s%@LIBOBJS@%$LIBOBJS%g
3276 s%@PLUGINS@%$PLUGINS%g
3277 s%@ALIASES@%$ALIASES%g
3282 cat >> $CONFIG_STATUS <<\EOF
3284 # Split the substitutions into bite-sized pieces for seds with
3285 # small command number limits, like on Digital OSF/1 and HP-UX.
3286 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3287 ac_file=1 # Number of current file.
3288 ac_beg=1 # First line for current file.
3289 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3292 while $ac_more_lines; do
3293 if test $ac_beg -gt 1; then
3294 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3296 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3298 if test ! -s conftest.s$ac_file; then
3300 rm -f conftest.s$ac_file
3302 if test -z "$ac_sed_cmds"; then
3303 ac_sed_cmds="sed -f conftest.s$ac_file"
3305 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3307 ac_file=`expr $ac_file + 1`
3309 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3312 if test -z "$ac_sed_cmds"; then
3317 cat >> $CONFIG_STATUS <<EOF
3319 CONFIG_FILES=\${CONFIG_FILES-"Makefile include/config.h"}
3321 cat >> $CONFIG_STATUS <<\EOF
3322 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3323 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3325 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3326 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3327 *) ac_file_in="${ac_file}.in" ;;
3330 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3332 # Remove last slash and all that follows it. Not all systems have dirname.
3333 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3334 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3335 # The file is in a subdirectory.
3336 test ! -d "$ac_dir" && mkdir "$ac_dir"
3337 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3338 # A "../" for each directory in $ac_dir_suffix.
3339 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3341 ac_dir_suffix= ac_dots=
3344 case "$ac_given_srcdir" in
3346 if test -z "$ac_dots"; then top_srcdir=.
3347 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3348 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3350 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3351 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3354 case "$ac_given_INSTALL" in
3355 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3356 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3359 echo creating "$ac_file"
3361 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3363 *Makefile*) ac_comsub="1i\\
3364 # $configure_input" ;;
3368 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3370 s%@configure_input@%$configure_input%g
3371 s%@srcdir@%$srcdir%g
3372 s%@top_srcdir@%$top_srcdir%g
3373 s%@INSTALL@%$INSTALL%g
3374 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3378 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3379 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3381 # ac_d sets the value in "#define NAME VALUE" lines.
3382 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3383 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3386 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3387 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3388 ac_uB='\([ ]\)%\1#\2define\3'
3391 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3392 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3393 ac_eB='$%\1#\2define\3'
3397 if test "${CONFIG_HEADERS+set}" != set; then
3399 cat >> $CONFIG_STATUS <<EOF
3400 CONFIG_HEADERS="include/defs.h"
3402 cat >> $CONFIG_STATUS <<\EOF
3404 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3405 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3407 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3408 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3409 *) ac_file_in="${ac_file}.in" ;;
3412 echo creating $ac_file
3414 rm -f conftest.frag conftest.in conftest.out
3415 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3416 cat $ac_file_inputs > conftest.in
3420 # Transform confdefs.h into a sed script conftest.vals that substitutes
3421 # the proper values into config.h.in to produce config.h. And first:
3422 # Protect against being on the right side of a sed subst in config.status.
3423 # Protect against being in an unquoted here document in config.status.
3425 cat > conftest.hdr <<\EOF
3428 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3432 sed -n -f conftest.hdr confdefs.h > conftest.vals
3435 # This sed command replaces #undef with comments. This is necessary, for
3436 # example, in the case of _POSIX_SOURCE, which is predefined and required
3437 # on some systems where configure will not decide to define it.
3438 cat >> conftest.vals <<\EOF
3439 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3442 # Break up conftest.vals because some shells have a limit on
3443 # the size of here documents, and old seds have small limits too.
3448 ac_lines=`grep -c . conftest.vals`
3449 # grep -c gives empty output for an empty file on some AIX systems.
3450 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3451 # Write a limited-size here document to conftest.frag.
3452 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3453 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3455 sed -f conftest.frag conftest.in > conftest.out
3457 mv conftest.out conftest.in
3459 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3461 mv conftest.tail conftest.vals
3465 cat >> $CONFIG_STATUS <<\EOF
3466 rm -f conftest.frag conftest.h
3467 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3468 cat conftest.in >> conftest.h
3470 if cmp -s $ac_file conftest.h 2>/dev/null; then
3471 echo "$ac_file is unchanged"
3474 # Remove last slash and all that follows it. Not all systems have dirname.
3475 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3476 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3477 # The file is in a subdirectory.
3478 test ! -d "$ac_dir" && mkdir "$ac_dir"
3481 mv conftest.h $ac_file
3486 cat >> $CONFIG_STATUS <<EOF
3489 cat >> $CONFIG_STATUS <<\EOF
3493 chmod +x $CONFIG_STATUS
3494 rm -fr confdefs* $ac_clean_files
3495 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3501 vlc version : ${VLC_VERSION}
3503 architecture : ${ARCH}
3504 plugins : ${PLUGINS}
3505 vlc aliases : ${ALIASES}