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-vout-dummy dummy video support (default enabled)"
17 --enable-x11 X11 video support (default enabled)"
19 --enable-fb Linux framebuffer video support (default disabled)"
21 --enable-gnome Gnome video support (default disabled)"
23 --enable-glide Glide (3dfx) video support (default disabled)"
25 --enable-ggi GGI video support (default disabled)"
27 --enable-aout-dummy dummy audio support (default enabled)"
29 --enable-dsp Linux /dev/dsp support (default enabled)"
31 --enable-esd Esound library support (default disabled)"
33 --enable-ppro Enable PentiumPro optimizations (default is no)"
35 --enable-mmx Enable MMX optimizations (default is no)"
37 # Initialize some variables set by options.
38 # The variables have the same names as the options, with
39 # dashes changed to underlines.
41 cache_file=./config.cache
50 program_transform_name=s,x,x,
58 bindir='${exec_prefix}/bin'
59 sbindir='${exec_prefix}/sbin'
60 libexecdir='${exec_prefix}/libexec'
61 datadir='${prefix}/share'
62 sysconfdir='${prefix}/etc'
63 sharedstatedir='${prefix}/com'
64 localstatedir='${prefix}/var'
65 libdir='${exec_prefix}/lib'
66 includedir='${prefix}/include'
67 oldincludedir='/usr/include'
68 infodir='${prefix}/info'
69 mandir='${prefix}/man'
71 # Initialize some other variables.
74 SHELL=${CONFIG_SHELL-/bin/sh}
75 # Maximum number of lines to put in a shell here document.
82 # If the previous option needs an argument, assign it.
83 if test -n "$ac_prev"; then
84 eval "$ac_prev=\$ac_option"
90 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
94 # Accept the important Cygnus configure options, so we can diagnose typos.
98 -bindir | --bindir | --bindi | --bind | --bin | --bi)
100 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
101 bindir="$ac_optarg" ;;
103 -build | --build | --buil | --bui | --bu)
105 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
106 build="$ac_optarg" ;;
108 -cache-file | --cache-file | --cache-fil | --cache-fi \
109 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
110 ac_prev=cache_file ;;
111 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
112 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
113 cache_file="$ac_optarg" ;;
115 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
117 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
119 datadir="$ac_optarg" ;;
121 -disable-* | --disable-*)
122 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
123 # Reject names that are not valid shell variable names.
124 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
125 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
127 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
128 eval "enable_${ac_feature}=no" ;;
130 -enable-* | --enable-*)
131 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
132 # Reject names that are not valid shell variable names.
133 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
134 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
136 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
141 eval "enable_${ac_feature}='$ac_optarg'" ;;
143 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
144 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
145 | --exec | --exe | --ex)
146 ac_prev=exec_prefix ;;
147 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
148 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
149 | --exec=* | --exe=* | --ex=*)
150 exec_prefix="$ac_optarg" ;;
152 -gas | --gas | --ga | --g)
153 # Obsolete; use --with-gas.
156 -help | --help | --hel | --he)
157 # Omit some internal or obsolete options to make the list less imposing.
158 # This message is too long to be a string in the A/UX 3.1 sh.
160 Usage: configure [options] [host]
161 Options: [defaults in brackets after descriptions]
163 --cache-file=FILE cache test results in FILE
164 --help print this message
165 --no-create do not create output files
166 --quiet, --silent do not print \`checking...' messages
167 --version print the version of autoconf that created configure
168 Directory and file names:
169 --prefix=PREFIX install architecture-independent files in PREFIX
171 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
173 --bindir=DIR user executables in DIR [EPREFIX/bin]
174 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
175 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
176 --datadir=DIR read-only architecture-independent data in DIR
178 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
179 --sharedstatedir=DIR modifiable architecture-independent data in DIR
181 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
182 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
183 --includedir=DIR C header files in DIR [PREFIX/include]
184 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
185 --infodir=DIR info documentation in DIR [PREFIX/info]
186 --mandir=DIR man documentation in DIR [PREFIX/man]
187 --srcdir=DIR find the sources in DIR [configure dir or ..]
188 --program-prefix=PREFIX prepend PREFIX to installed program names
189 --program-suffix=SUFFIX append SUFFIX to installed program names
190 --program-transform-name=PROGRAM
191 run sed PROGRAM on installed program names
195 --build=BUILD configure for building on BUILD [BUILD=HOST]
196 --host=HOST configure for HOST [guessed]
197 --target=TARGET configure for TARGET [TARGET=HOST]
198 Features and packages:
199 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
200 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
201 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
202 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
203 --x-includes=DIR X include files are in DIR
204 --x-libraries=DIR X library files are in DIR
206 if test -n "$ac_help"; then
207 echo "--enable and --with options recognized:$ac_help"
211 -host | --host | --hos | --ho)
213 -host=* | --host=* | --hos=* | --ho=*)
216 -includedir | --includedir | --includedi | --included | --include \
217 | --includ | --inclu | --incl | --inc)
218 ac_prev=includedir ;;
219 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
220 | --includ=* | --inclu=* | --incl=* | --inc=*)
221 includedir="$ac_optarg" ;;
223 -infodir | --infodir | --infodi | --infod | --info | --inf)
225 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
226 infodir="$ac_optarg" ;;
228 -libdir | --libdir | --libdi | --libd)
230 -libdir=* | --libdir=* | --libdi=* | --libd=*)
231 libdir="$ac_optarg" ;;
233 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
234 | --libexe | --libex | --libe)
235 ac_prev=libexecdir ;;
236 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
237 | --libexe=* | --libex=* | --libe=*)
238 libexecdir="$ac_optarg" ;;
240 -localstatedir | --localstatedir | --localstatedi | --localstated \
241 | --localstate | --localstat | --localsta | --localst \
242 | --locals | --local | --loca | --loc | --lo)
243 ac_prev=localstatedir ;;
244 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
245 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
246 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
247 localstatedir="$ac_optarg" ;;
249 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
251 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
252 mandir="$ac_optarg" ;;
255 # Obsolete; use --without-fp.
258 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
262 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
263 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
266 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
267 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
268 | --oldin | --oldi | --old | --ol | --o)
269 ac_prev=oldincludedir ;;
270 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
271 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
272 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
273 oldincludedir="$ac_optarg" ;;
275 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
277 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
278 prefix="$ac_optarg" ;;
280 -program-prefix | --program-prefix | --program-prefi | --program-pref \
281 | --program-pre | --program-pr | --program-p)
282 ac_prev=program_prefix ;;
283 -program-prefix=* | --program-prefix=* | --program-prefi=* \
284 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
285 program_prefix="$ac_optarg" ;;
287 -program-suffix | --program-suffix | --program-suffi | --program-suff \
288 | --program-suf | --program-su | --program-s)
289 ac_prev=program_suffix ;;
290 -program-suffix=* | --program-suffix=* | --program-suffi=* \
291 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
292 program_suffix="$ac_optarg" ;;
294 -program-transform-name | --program-transform-name \
295 | --program-transform-nam | --program-transform-na \
296 | --program-transform-n | --program-transform- \
297 | --program-transform | --program-transfor \
298 | --program-transfo | --program-transf \
299 | --program-trans | --program-tran \
300 | --progr-tra | --program-tr | --program-t)
301 ac_prev=program_transform_name ;;
302 -program-transform-name=* | --program-transform-name=* \
303 | --program-transform-nam=* | --program-transform-na=* \
304 | --program-transform-n=* | --program-transform-=* \
305 | --program-transform=* | --program-transfor=* \
306 | --program-transfo=* | --program-transf=* \
307 | --program-trans=* | --program-tran=* \
308 | --progr-tra=* | --program-tr=* | --program-t=*)
309 program_transform_name="$ac_optarg" ;;
311 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
312 | -silent | --silent | --silen | --sile | --sil)
315 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
317 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
319 sbindir="$ac_optarg" ;;
321 -sharedstatedir | --sharedstatedir | --sharedstatedi \
322 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
323 | --sharedst | --shareds | --shared | --share | --shar \
325 ac_prev=sharedstatedir ;;
326 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
327 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
328 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
330 sharedstatedir="$ac_optarg" ;;
332 -site | --site | --sit)
334 -site=* | --site=* | --sit=*)
337 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
339 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
340 srcdir="$ac_optarg" ;;
342 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
343 | --syscon | --sysco | --sysc | --sys | --sy)
344 ac_prev=sysconfdir ;;
345 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
346 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
347 sysconfdir="$ac_optarg" ;;
349 -target | --target | --targe | --targ | --tar | --ta | --t)
351 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
352 target="$ac_optarg" ;;
354 -v | -verbose | --verbose | --verbos | --verbo | --verb)
357 -version | --version | --versio | --versi | --vers)
358 echo "configure generated by autoconf version 2.13"
362 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
363 # Reject names that are not valid shell variable names.
364 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
365 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
367 ac_package=`echo $ac_package| sed 's/-/_/g'`
372 eval "with_${ac_package}='$ac_optarg'" ;;
374 -without-* | --without-*)
375 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
376 # Reject names that are not valid shell variable names.
377 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
378 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
380 ac_package=`echo $ac_package| sed 's/-/_/g'`
381 eval "with_${ac_package}=no" ;;
384 # Obsolete; use --with-x.
387 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
388 | --x-incl | --x-inc | --x-in | --x-i)
389 ac_prev=x_includes ;;
390 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
391 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
392 x_includes="$ac_optarg" ;;
394 -x-libraries | --x-libraries | --x-librarie | --x-librari \
395 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
396 ac_prev=x_libraries ;;
397 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
398 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
399 x_libraries="$ac_optarg" ;;
401 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
405 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
406 echo "configure: warning: $ac_option: invalid host type" 1>&2
408 if test "x$nonopt" != xNONE; then
409 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
417 if test -n "$ac_prev"; then
418 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
421 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
423 # File descriptor usage:
426 # 2 errors and warnings
427 # 3 some systems may open it to /dev/tty
428 # 4 used on the Kubota Titan
429 # 6 checking for... messages and results
430 # 5 compiler messages saved in config.log
431 if test "$silent" = yes; then
439 This file contains any messages produced by compilers while
440 running configure, to aid debugging if configure makes a mistake.
443 # Strip out --no-create and --no-recursion so they do not pile up.
444 # Also quote any args containing shell metacharacters.
449 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
450 | --no-cr | --no-c) ;;
451 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
453 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
454 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
455 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
460 # Only set these to C if already set. These must not be set unconditionally
461 # because not all systems understand e.g. LANG=C (notably SCO).
462 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
463 # Non-C LC_CTYPE values break the ctype check.
464 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
465 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
466 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
467 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
469 # confdefs.h avoids OS command line length limits that DEFS can exceed.
470 rm -rf conftest* confdefs.h
471 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
474 # A filename unique to this package, relative to the directory that
475 # configure is in, which we can look for to find out if srcdir is correct.
476 ac_unique_file=src/interface/main.c
478 # Find the source files, if location was not specified.
479 if test -z "$srcdir"; then
480 ac_srcdir_defaulted=yes
481 # Try the directory containing this script, then its parent.
483 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
484 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
486 if test ! -r $srcdir/$ac_unique_file; then
490 ac_srcdir_defaulted=no
492 if test ! -r $srcdir/$ac_unique_file; then
493 if test "$ac_srcdir_defaulted" = yes; then
494 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
496 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
499 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
501 # Prefer explicitly selected file to automatically selected ones.
502 if test -z "$CONFIG_SITE"; then
503 if test "x$prefix" != xNONE; then
504 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
506 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
509 for ac_site_file in $CONFIG_SITE; do
510 if test -r "$ac_site_file"; then
511 echo "loading site script $ac_site_file"
516 if test -r "$cache_file"; then
517 echo "loading cache $cache_file"
520 echo "creating cache $cache_file"
525 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
526 ac_cpp='$CPP $CPPFLAGS'
527 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
528 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
529 cross_compiling=$ac_cv_prog_cc_cross
533 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
534 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
535 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
542 ac_n= ac_c='\c' ac_t=
549 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
550 if test -f $ac_dir/install-sh; then
552 ac_install_sh="$ac_aux_dir/install-sh -c"
554 elif test -f $ac_dir/install.sh; then
556 ac_install_sh="$ac_aux_dir/install.sh -c"
560 if test -z "$ac_aux_dir"; then
561 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
563 ac_config_guess=$ac_aux_dir/config.guess
564 ac_config_sub=$ac_aux_dir/config.sub
565 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
568 # Make sure we can run config.sub.
569 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
570 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
573 echo $ac_n "checking host system type""... $ac_c" 1>&6
574 echo "configure:575: checking host system type" >&5
577 case "$host_alias" in
581 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
582 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
584 *) host_alias=$nonopt ;;
588 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
589 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
590 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
591 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
592 echo "$ac_t""$host" 1>&6
600 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
601 echo "configure:602: checking whether ${MAKE-make} sets \${MAKE}" >&5
602 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
603 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
604 echo $ac_n "(cached) $ac_c" 1>&6
606 cat > conftestmake <<\EOF
608 @echo 'ac_maketemp="${MAKE}"'
610 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
611 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
612 if test -n "$ac_maketemp"; then
613 eval ac_cv_prog_make_${ac_make}_set=yes
615 eval ac_cv_prog_make_${ac_make}_set=no
619 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
620 echo "$ac_t""yes" 1>&6
623 echo "$ac_t""no" 1>&6
624 SET_MAKE="MAKE=${MAKE-make}"
627 # Extract the first word of "gcc", so it can be a program name with args.
628 set dummy gcc; ac_word=$2
629 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
630 echo "configure:631: checking for $ac_word" >&5
631 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
632 echo $ac_n "(cached) $ac_c" 1>&6
634 if test -n "$CC"; then
635 ac_cv_prog_CC="$CC" # Let the user override the test.
637 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
639 for ac_dir in $ac_dummy; do
640 test -z "$ac_dir" && ac_dir=.
641 if test -f $ac_dir/$ac_word; then
650 if test -n "$CC"; then
651 echo "$ac_t""$CC" 1>&6
653 echo "$ac_t""no" 1>&6
656 if test -z "$CC"; then
657 # Extract the first word of "cc", so it can be a program name with args.
658 set dummy cc; ac_word=$2
659 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
660 echo "configure:661: checking for $ac_word" >&5
661 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
662 echo $ac_n "(cached) $ac_c" 1>&6
664 if test -n "$CC"; then
665 ac_cv_prog_CC="$CC" # Let the user override the test.
667 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
670 for ac_dir in $ac_dummy; do
671 test -z "$ac_dir" && ac_dir=.
672 if test -f $ac_dir/$ac_word; then
673 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
682 if test $ac_prog_rejected = yes; then
683 # We found a bogon in the path, so make sure we never use it.
684 set dummy $ac_cv_prog_CC
686 if test $# -gt 0; then
687 # We chose a different compiler from the bogus one.
688 # However, it has the same basename, so the bogon will be chosen
689 # first if we set CC to just the basename; use the full file name.
691 set dummy "$ac_dir/$ac_word" "$@"
699 if test -n "$CC"; then
700 echo "$ac_t""$CC" 1>&6
702 echo "$ac_t""no" 1>&6
705 if test -z "$CC"; then
708 # Extract the first word of "cl", so it can be a program name with args.
709 set dummy cl; ac_word=$2
710 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
711 echo "configure:712: checking for $ac_word" >&5
712 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
713 echo $ac_n "(cached) $ac_c" 1>&6
715 if test -n "$CC"; then
716 ac_cv_prog_CC="$CC" # Let the user override the test.
718 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
720 for ac_dir in $ac_dummy; do
721 test -z "$ac_dir" && ac_dir=.
722 if test -f $ac_dir/$ac_word; then
731 if test -n "$CC"; then
732 echo "$ac_t""$CC" 1>&6
734 echo "$ac_t""no" 1>&6
739 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
742 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
743 echo "configure:744: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
746 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
747 ac_cpp='$CPP $CPPFLAGS'
748 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
749 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
750 cross_compiling=$ac_cv_prog_cc_cross
752 cat > conftest.$ac_ext << EOF
754 #line 755 "configure"
755 #include "confdefs.h"
759 if { (eval echo configure:760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
760 ac_cv_prog_cc_works=yes
761 # If we can't run a trivial program, we are probably using a cross compiler.
762 if (./conftest; exit) 2>/dev/null; then
763 ac_cv_prog_cc_cross=no
765 ac_cv_prog_cc_cross=yes
768 echo "configure: failed program was:" >&5
769 cat conftest.$ac_ext >&5
770 ac_cv_prog_cc_works=no
774 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
775 ac_cpp='$CPP $CPPFLAGS'
776 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
777 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
778 cross_compiling=$ac_cv_prog_cc_cross
780 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
781 if test $ac_cv_prog_cc_works = no; then
782 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
784 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
785 echo "configure:786: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
786 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
787 cross_compiling=$ac_cv_prog_cc_cross
789 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
790 echo "configure:791: checking whether we are using GNU C" >&5
791 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
792 echo $ac_n "(cached) $ac_c" 1>&6
794 cat > conftest.c <<EOF
799 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:800: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
806 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
808 if test $ac_cv_prog_gcc = yes; then
814 ac_test_CFLAGS="${CFLAGS+set}"
815 ac_save_CFLAGS="$CFLAGS"
817 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
818 echo "configure:819: checking whether ${CC-cc} accepts -g" >&5
819 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
820 echo $ac_n "(cached) $ac_c" 1>&6
822 echo 'void f(){}' > conftest.c
823 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
832 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
833 if test "$ac_test_CFLAGS" = set; then
834 CFLAGS="$ac_save_CFLAGS"
835 elif test $ac_cv_prog_cc_g = yes; then
836 if test "$GCC" = yes; then
842 if test "$GCC" = yes; then
849 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
850 echo "configure:851: checking how to run the C preprocessor" >&5
851 # On Suns, sometimes $CPP names a directory.
852 if test -n "$CPP" && test -d "$CPP"; then
855 if test -z "$CPP"; then
856 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
857 echo $ac_n "(cached) $ac_c" 1>&6
859 # This must be in double quotes, not single quotes, because CPP may get
860 # substituted into the Makefile and "${CC-cc}" will confuse make.
862 # On the NeXT, cc -E runs the code through the compiler's parser,
863 # not just through cpp.
864 cat > conftest.$ac_ext <<EOF
865 #line 866 "configure"
866 #include "confdefs.h"
870 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
871 { (eval echo configure:872: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
872 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
873 if test -z "$ac_err"; then
877 echo "configure: failed program was:" >&5
878 cat conftest.$ac_ext >&5
880 CPP="${CC-cc} -E -traditional-cpp"
881 cat > conftest.$ac_ext <<EOF
882 #line 883 "configure"
883 #include "confdefs.h"
887 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
888 { (eval echo configure:889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
889 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
890 if test -z "$ac_err"; then
894 echo "configure: failed program was:" >&5
895 cat conftest.$ac_ext >&5
897 CPP="${CC-cc} -nologo -E"
898 cat > conftest.$ac_ext <<EOF
899 #line 900 "configure"
900 #include "confdefs.h"
904 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
905 { (eval echo configure:906: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
906 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
907 if test -z "$ac_err"; then
911 echo "configure: failed program was:" >&5
912 cat conftest.$ac_ext >&5
921 ac_cv_prog_CPP="$CPP"
923 CPP="$ac_cv_prog_CPP"
925 ac_cv_prog_CPP="$CPP"
927 echo "$ac_t""$CPP" 1>&6
930 # Find a good install program. We prefer a C program (faster),
931 # so one script is as good as another. But avoid the broken or
932 # incompatible versions:
933 # SysV /etc/install, /usr/sbin/install
934 # SunOS /usr/etc/install
937 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
938 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
939 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
940 # ./install, which can be erroneously created by make from ./install.sh.
941 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
942 echo "configure:943: checking for a BSD compatible install" >&5
943 if test -z "$INSTALL"; then
944 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
945 echo $ac_n "(cached) $ac_c" 1>&6
947 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
948 for ac_dir in $PATH; do
949 # Account for people who put trailing slashes in PATH elements.
951 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
953 # OSF1 and SCO ODT 3.0 have their own names for install.
954 # Don't use installbsd from OSF since it installs stuff as root
956 for ac_prog in ginstall scoinst install; do
957 if test -f $ac_dir/$ac_prog; then
958 if test $ac_prog = install &&
959 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
960 # AIX install. It has an incompatible calling convention.
963 ac_cv_path_install="$ac_dir/$ac_prog -c"
974 if test "${ac_cv_path_install+set}" = set; then
975 INSTALL="$ac_cv_path_install"
977 # As a last resort, use the slow shell script. We don't cache a
978 # path for INSTALL within a source directory, because that will
979 # break other packages using the cache if that directory is
980 # removed, or if the path is relative.
981 INSTALL="$ac_install_sh"
984 echo "$ac_t""$INSTALL" 1>&6
986 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
987 # It thinks the first close brace ends the variable substitution.
988 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
990 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
992 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
995 echo $ac_n "checking for working const""... $ac_c" 1>&6
996 echo "configure:997: checking for working const" >&5
997 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
998 echo $ac_n "(cached) $ac_c" 1>&6
1000 cat > conftest.$ac_ext <<EOF
1001 #line 1002 "configure"
1002 #include "confdefs.h"
1006 /* Ultrix mips cc rejects this. */
1007 typedef int charset[2]; const charset x = {0,0};
1008 /* SunOS 4.1.1 cc rejects this. */
1009 char const *const *ccp;
1011 /* NEC SVR4.0.2 mips cc rejects this. */
1012 struct point {int x, y;};
1013 static struct point const zero = {0,0};
1014 /* AIX XL C 1.02.0.0 rejects this.
1015 It does not let you subtract one const X* pointer from another in an arm
1016 of an if-expression whose if-part is not a constant expression */
1017 const char *g = "string";
1018 ccp = &g + (g ? g-g : 0);
1019 /* HPUX 7.0 cc rejects these. */
1022 ccp = (char const *const *) p;
1023 { /* SCO 3.2v4 cc rejects this. */
1025 char const *s = 0 ? (char *) 0 : (char const *) 0;
1029 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1031 const int *foo = &x[0];
1034 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1035 typedef const int *iptr;
1039 { /* AIX XL C 1.02.0.0 rejects this saying
1040 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1041 struct s { int j; const int *ap[3]; };
1042 struct s *b; b->j = 5;
1044 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1050 if { (eval echo configure:1051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1054 echo "configure: failed program was:" >&5
1055 cat conftest.$ac_ext >&5
1062 echo "$ac_t""$ac_cv_c_const" 1>&6
1063 if test $ac_cv_c_const = no; then
1064 cat >> confdefs.h <<\EOF
1070 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1071 echo "configure:1072: checking whether byte ordering is bigendian" >&5
1072 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1073 echo $ac_n "(cached) $ac_c" 1>&6
1075 ac_cv_c_bigendian=unknown
1076 # See if sys/param.h defines the BYTE_ORDER macro.
1077 cat > conftest.$ac_ext <<EOF
1078 #line 1079 "configure"
1079 #include "confdefs.h"
1080 #include <sys/types.h>
1081 #include <sys/param.h>
1084 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1089 if { (eval echo configure:1090: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1091 # It does; now see whether it defined to BIG_ENDIAN or not.
1092 cat > conftest.$ac_ext <<EOF
1093 #line 1094 "configure"
1094 #include "confdefs.h"
1095 #include <sys/types.h>
1096 #include <sys/param.h>
1099 #if BYTE_ORDER != BIG_ENDIAN
1104 if { (eval echo configure:1105: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1106 ac_cv_c_bigendian=yes
1108 echo "configure: failed program was:" >&5
1109 cat conftest.$ac_ext >&5
1111 ac_cv_c_bigendian=no
1115 echo "configure: failed program was:" >&5
1116 cat conftest.$ac_ext >&5
1119 if test $ac_cv_c_bigendian = unknown; then
1120 if test "$cross_compiling" = yes; then
1121 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1123 cat > conftest.$ac_ext <<EOF
1124 #line 1125 "configure"
1125 #include "confdefs.h"
1127 /* Are we little or big endian? From Harbison&Steele. */
1131 char c[sizeof (long)];
1134 exit (u.c[sizeof (long) - 1] == 1);
1137 if { (eval echo configure:1138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1139 ac_cv_c_bigendian=no
1141 echo "configure: failed program was:" >&5
1142 cat conftest.$ac_ext >&5
1144 ac_cv_c_bigendian=yes
1152 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1153 if test $ac_cv_c_bigendian = yes; then
1154 cat >> confdefs.h <<\EOF
1155 #define WORDS_BIGENDIAN 1
1161 for ac_func in gettimeofday select strerror strtod strtol
1163 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1164 echo "configure:1165: checking for $ac_func" >&5
1165 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1166 echo $ac_n "(cached) $ac_c" 1>&6
1168 cat > conftest.$ac_ext <<EOF
1169 #line 1170 "configure"
1170 #include "confdefs.h"
1171 /* System header to define __stub macros and hopefully few prototypes,
1172 which can conflict with char $ac_func(); below. */
1174 /* Override any gcc2 internal prototype to avoid an error. */
1175 /* We use char because int might match the return type of a gcc2
1176 builtin and then its argument prototype would still apply. */
1181 /* The GNU C library defines this for functions which it implements
1182 to always fail with ENOSYS. Some functions are actually named
1183 something starting with __ and the normal name is an alias. */
1184 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1192 if { (eval echo configure:1193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1194 eval "ac_cv_func_$ac_func=yes"
1196 echo "configure: failed program was:" >&5
1197 cat conftest.$ac_ext >&5
1199 eval "ac_cv_func_$ac_func=no"
1204 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1205 echo "$ac_t""yes" 1>&6
1206 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1207 cat >> confdefs.h <<EOF
1208 #define $ac_tr_func 1
1212 echo "$ac_t""no" 1>&6
1216 for ac_func in setenv putenv
1218 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1219 echo "configure:1220: checking for $ac_func" >&5
1220 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1221 echo $ac_n "(cached) $ac_c" 1>&6
1223 cat > conftest.$ac_ext <<EOF
1224 #line 1225 "configure"
1225 #include "confdefs.h"
1226 /* System header to define __stub macros and hopefully few prototypes,
1227 which can conflict with char $ac_func(); below. */
1229 /* Override any gcc2 internal prototype to avoid an error. */
1230 /* We use char because int might match the return type of a gcc2
1231 builtin and then its argument prototype would still apply. */
1236 /* The GNU C library defines this for functions which it implements
1237 to always fail with ENOSYS. Some functions are actually named
1238 something starting with __ and the normal name is an alias. */
1239 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1247 if { (eval echo configure:1248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1249 eval "ac_cv_func_$ac_func=yes"
1251 echo "configure: failed program was:" >&5
1252 cat conftest.$ac_ext >&5
1254 eval "ac_cv_func_$ac_func=no"
1259 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1260 echo "$ac_t""yes" 1>&6
1261 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1262 cat >> confdefs.h <<EOF
1263 #define $ac_tr_func 1
1267 echo "$ac_t""no" 1>&6
1271 echo $ac_n "checking for connect""... $ac_c" 1>&6
1272 echo "configure:1273: checking for connect" >&5
1273 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1274 echo $ac_n "(cached) $ac_c" 1>&6
1276 cat > conftest.$ac_ext <<EOF
1277 #line 1278 "configure"
1278 #include "confdefs.h"
1279 /* System header to define __stub macros and hopefully few prototypes,
1280 which can conflict with char connect(); below. */
1282 /* Override any gcc2 internal prototype to avoid an error. */
1283 /* We use char because int might match the return type of a gcc2
1284 builtin and then its argument prototype would still apply. */
1289 /* The GNU C library defines this for functions which it implements
1290 to always fail with ENOSYS. Some functions are actually named
1291 something starting with __ and the normal name is an alias. */
1292 #if defined (__stub_connect) || defined (__stub___connect)
1300 if { (eval echo configure:1301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1302 eval "ac_cv_func_connect=yes"
1304 echo "configure: failed program was:" >&5
1305 cat conftest.$ac_ext >&5
1307 eval "ac_cv_func_connect=no"
1312 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1313 echo "$ac_t""yes" 1>&6
1316 echo "$ac_t""no" 1>&6
1317 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1318 echo "configure:1319: checking for connect in -lsocket" >&5
1319 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1320 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1321 echo $ac_n "(cached) $ac_c" 1>&6
1323 ac_save_LIBS="$LIBS"
1324 LIBS="-lsocket $LIBS"
1325 cat > conftest.$ac_ext <<EOF
1326 #line 1327 "configure"
1327 #include "confdefs.h"
1328 /* Override any gcc2 internal prototype to avoid an error. */
1329 /* We use char because int might match the return type of a gcc2
1330 builtin and then its argument prototype would still apply. */
1337 if { (eval echo configure:1338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1339 eval "ac_cv_lib_$ac_lib_var=yes"
1341 echo "configure: failed program was:" >&5
1342 cat conftest.$ac_ext >&5
1344 eval "ac_cv_lib_$ac_lib_var=no"
1347 LIBS="$ac_save_LIBS"
1350 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1351 echo "$ac_t""yes" 1>&6
1352 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1353 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1354 cat >> confdefs.h <<EOF
1355 #define $ac_tr_lib 1
1358 LIBS="-lsocket $LIBS"
1361 echo "$ac_t""no" 1>&6
1366 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1367 echo "configure:1368: checking for gethostbyname" >&5
1368 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1369 echo $ac_n "(cached) $ac_c" 1>&6
1371 cat > conftest.$ac_ext <<EOF
1372 #line 1373 "configure"
1373 #include "confdefs.h"
1374 /* System header to define __stub macros and hopefully few prototypes,
1375 which can conflict with char gethostbyname(); below. */
1377 /* Override any gcc2 internal prototype to avoid an error. */
1378 /* We use char because int might match the return type of a gcc2
1379 builtin and then its argument prototype would still apply. */
1380 char gethostbyname();
1384 /* The GNU C library defines this for functions which it implements
1385 to always fail with ENOSYS. Some functions are actually named
1386 something starting with __ and the normal name is an alias. */
1387 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1395 if { (eval echo configure:1396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1397 eval "ac_cv_func_gethostbyname=yes"
1399 echo "configure: failed program was:" >&5
1400 cat conftest.$ac_ext >&5
1402 eval "ac_cv_func_gethostbyname=no"
1407 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1408 echo "$ac_t""yes" 1>&6
1411 echo "$ac_t""no" 1>&6
1412 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1413 echo "configure:1414: checking for gethostbyname in -lnsl" >&5
1414 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1415 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1416 echo $ac_n "(cached) $ac_c" 1>&6
1418 ac_save_LIBS="$LIBS"
1420 cat > conftest.$ac_ext <<EOF
1421 #line 1422 "configure"
1422 #include "confdefs.h"
1423 /* Override any gcc2 internal prototype to avoid an error. */
1424 /* We use char because int might match the return type of a gcc2
1425 builtin and then its argument prototype would still apply. */
1426 char gethostbyname();
1432 if { (eval echo configure:1433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1434 eval "ac_cv_lib_$ac_lib_var=yes"
1436 echo "configure: failed program was:" >&5
1437 cat conftest.$ac_ext >&5
1439 eval "ac_cv_lib_$ac_lib_var=no"
1442 LIBS="$ac_save_LIBS"
1445 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1446 echo "$ac_t""yes" 1>&6
1447 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1448 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1449 cat >> confdefs.h <<EOF
1450 #define $ac_tr_lib 1
1456 echo "$ac_t""no" 1>&6
1461 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
1462 echo "configure:1463: checking for nanosleep" >&5
1463 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
1464 echo $ac_n "(cached) $ac_c" 1>&6
1466 cat > conftest.$ac_ext <<EOF
1467 #line 1468 "configure"
1468 #include "confdefs.h"
1469 /* System header to define __stub macros and hopefully few prototypes,
1470 which can conflict with char nanosleep(); below. */
1472 /* Override any gcc2 internal prototype to avoid an error. */
1473 /* We use char because int might match the return type of a gcc2
1474 builtin and then its argument prototype would still apply. */
1479 /* The GNU C library defines this for functions which it implements
1480 to always fail with ENOSYS. Some functions are actually named
1481 something starting with __ and the normal name is an alias. */
1482 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
1490 if { (eval echo configure:1491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1492 eval "ac_cv_func_nanosleep=yes"
1494 echo "configure: failed program was:" >&5
1495 cat conftest.$ac_ext >&5
1497 eval "ac_cv_func_nanosleep=no"
1502 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
1503 echo "$ac_t""yes" 1>&6
1506 echo "$ac_t""no" 1>&6
1507 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
1508 echo "configure:1509: checking for nanosleep in -lrt" >&5
1509 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
1510 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1511 echo $ac_n "(cached) $ac_c" 1>&6
1513 ac_save_LIBS="$LIBS"
1515 cat > conftest.$ac_ext <<EOF
1516 #line 1517 "configure"
1517 #include "confdefs.h"
1518 /* Override any gcc2 internal prototype to avoid an error. */
1519 /* We use char because int might match the return type of a gcc2
1520 builtin and then its argument prototype would still apply. */
1527 if { (eval echo configure:1528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1529 eval "ac_cv_lib_$ac_lib_var=yes"
1531 echo "configure: failed program was:" >&5
1532 cat conftest.$ac_ext >&5
1534 eval "ac_cv_lib_$ac_lib_var=no"
1537 LIBS="$ac_save_LIBS"
1540 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1541 echo "$ac_t""yes" 1>&6
1542 ac_tr_lib=HAVE_LIB`echo rt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1543 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1544 cat >> confdefs.h <<EOF
1545 #define $ac_tr_lib 1
1551 echo "$ac_t""no" 1>&6
1552 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
1553 echo "configure:1554: checking for nanosleep in -lposix4" >&5
1554 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
1555 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1556 echo $ac_n "(cached) $ac_c" 1>&6
1558 ac_save_LIBS="$LIBS"
1559 LIBS="-lposix4 $LIBS"
1560 cat > conftest.$ac_ext <<EOF
1561 #line 1562 "configure"
1562 #include "confdefs.h"
1563 /* Override any gcc2 internal prototype to avoid an error. */
1564 /* We use char because int might match the return type of a gcc2
1565 builtin and then its argument prototype would still apply. */
1572 if { (eval echo configure:1573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1574 eval "ac_cv_lib_$ac_lib_var=yes"
1576 echo "configure: failed program was:" >&5
1577 cat conftest.$ac_ext >&5
1579 eval "ac_cv_lib_$ac_lib_var=no"
1582 LIBS="$ac_save_LIBS"
1585 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1586 echo "$ac_t""yes" 1>&6
1587 ac_tr_lib=HAVE_LIB`echo posix4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1588 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1589 cat >> confdefs.h <<EOF
1590 #define $ac_tr_lib 1
1593 LIBS="-lposix4 $LIBS"
1596 echo "$ac_t""no" 1>&6
1603 for ac_func in usleep
1605 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1606 echo "configure:1607: checking for $ac_func" >&5
1607 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1608 echo $ac_n "(cached) $ac_c" 1>&6
1610 cat > conftest.$ac_ext <<EOF
1611 #line 1612 "configure"
1612 #include "confdefs.h"
1613 /* System header to define __stub macros and hopefully few prototypes,
1614 which can conflict with char $ac_func(); below. */
1616 /* Override any gcc2 internal prototype to avoid an error. */
1617 /* We use char because int might match the return type of a gcc2
1618 builtin and then its argument prototype would still apply. */
1623 /* The GNU C library defines this for functions which it implements
1624 to always fail with ENOSYS. Some functions are actually named
1625 something starting with __ and the normal name is an alias. */
1626 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1634 if { (eval echo configure:1635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1636 eval "ac_cv_func_$ac_func=yes"
1638 echo "configure: failed program was:" >&5
1639 cat conftest.$ac_ext >&5
1641 eval "ac_cv_func_$ac_func=no"
1646 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1647 echo "$ac_t""yes" 1>&6
1648 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1649 cat >> confdefs.h <<EOF
1650 #define $ac_tr_func 1
1654 echo "$ac_t""no" 1>&6
1658 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
1659 echo "configure:1660: checking for inet_aton" >&5
1660 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
1661 echo $ac_n "(cached) $ac_c" 1>&6
1663 cat > conftest.$ac_ext <<EOF
1664 #line 1665 "configure"
1665 #include "confdefs.h"
1666 /* System header to define __stub macros and hopefully few prototypes,
1667 which can conflict with char inet_aton(); below. */
1669 /* Override any gcc2 internal prototype to avoid an error. */
1670 /* We use char because int might match the return type of a gcc2
1671 builtin and then its argument prototype would still apply. */
1676 /* The GNU C library defines this for functions which it implements
1677 to always fail with ENOSYS. Some functions are actually named
1678 something starting with __ and the normal name is an alias. */
1679 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
1687 if { (eval echo configure:1688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1689 eval "ac_cv_func_inet_aton=yes"
1691 echo "configure: failed program was:" >&5
1692 cat conftest.$ac_ext >&5
1694 eval "ac_cv_func_inet_aton=no"
1699 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
1700 echo "$ac_t""yes" 1>&6
1703 echo "$ac_t""no" 1>&6
1704 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
1705 echo "configure:1706: checking for inet_aton in -lresolv" >&5
1706 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
1707 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1708 echo $ac_n "(cached) $ac_c" 1>&6
1710 ac_save_LIBS="$LIBS"
1711 LIBS="-lresolv $LIBS"
1712 cat > conftest.$ac_ext <<EOF
1713 #line 1714 "configure"
1714 #include "confdefs.h"
1715 /* Override any gcc2 internal prototype to avoid an error. */
1716 /* We use char because int might match the return type of a gcc2
1717 builtin and then its argument prototype would still apply. */
1724 if { (eval echo configure:1725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1726 eval "ac_cv_lib_$ac_lib_var=yes"
1728 echo "configure: failed program was:" >&5
1729 cat conftest.$ac_ext >&5
1731 eval "ac_cv_lib_$ac_lib_var=no"
1734 LIBS="$ac_save_LIBS"
1737 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1738 echo "$ac_t""yes" 1>&6
1739 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1740 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1741 cat >> confdefs.h <<EOF
1742 #define $ac_tr_lib 1
1745 LIBS="-lresolv $LIBS"
1748 echo "$ac_t""no" 1>&6
1753 for ac_hdr in unistd.h
1755 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1756 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1757 echo "configure:1758: checking for $ac_hdr" >&5
1758 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1759 echo $ac_n "(cached) $ac_c" 1>&6
1761 cat > conftest.$ac_ext <<EOF
1762 #line 1763 "configure"
1763 #include "confdefs.h"
1766 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1767 { (eval echo configure:1768: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1768 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1769 if test -z "$ac_err"; then
1771 eval "ac_cv_header_$ac_safe=yes"
1774 echo "configure: failed program was:" >&5
1775 cat conftest.$ac_ext >&5
1777 eval "ac_cv_header_$ac_safe=no"
1781 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1782 echo "$ac_t""yes" 1>&6
1783 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1784 cat >> confdefs.h <<EOF
1785 #define $ac_tr_hdr 1
1789 echo "$ac_t""no" 1>&6
1793 for ac_func in getpagesize
1795 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1796 echo "configure:1797: checking for $ac_func" >&5
1797 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1798 echo $ac_n "(cached) $ac_c" 1>&6
1800 cat > conftest.$ac_ext <<EOF
1801 #line 1802 "configure"
1802 #include "confdefs.h"
1803 /* System header to define __stub macros and hopefully few prototypes,
1804 which can conflict with char $ac_func(); below. */
1806 /* Override any gcc2 internal prototype to avoid an error. */
1807 /* We use char because int might match the return type of a gcc2
1808 builtin and then its argument prototype would still apply. */
1813 /* The GNU C library defines this for functions which it implements
1814 to always fail with ENOSYS. Some functions are actually named
1815 something starting with __ and the normal name is an alias. */
1816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1824 if { (eval echo configure:1825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1826 eval "ac_cv_func_$ac_func=yes"
1828 echo "configure: failed program was:" >&5
1829 cat conftest.$ac_ext >&5
1831 eval "ac_cv_func_$ac_func=no"
1836 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1837 echo "$ac_t""yes" 1>&6
1838 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1839 cat >> confdefs.h <<EOF
1840 #define $ac_tr_func 1
1844 echo "$ac_t""no" 1>&6
1848 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1849 echo "configure:1850: checking for working mmap" >&5
1850 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1851 echo $ac_n "(cached) $ac_c" 1>&6
1853 if test "$cross_compiling" = yes; then
1854 ac_cv_func_mmap_fixed_mapped=no
1856 cat > conftest.$ac_ext <<EOF
1857 #line 1858 "configure"
1858 #include "confdefs.h"
1860 /* Thanks to Mike Haertel and Jim Avera for this test.
1861 Here is a matrix of mmap possibilities:
1862 mmap private not fixed
1863 mmap private fixed at somewhere currently unmapped
1864 mmap private fixed at somewhere already mapped
1865 mmap shared not fixed
1866 mmap shared fixed at somewhere currently unmapped
1867 mmap shared fixed at somewhere already mapped
1868 For private mappings, we should verify that changes cannot be read()
1869 back from the file, nor mmap's back from the file at a different
1870 address. (There have been systems where private was not correctly
1871 implemented like the infamous i386 svr4.0, and systems where the
1872 VM page cache was not coherent with the filesystem buffer cache
1873 like early versions of FreeBSD and possibly contemporary NetBSD.)
1874 For shared mappings, we should conversely verify that changes get
1875 propogated back to all the places they're supposed to be.
1877 Grep wants private fixed already mapped.
1878 The main things grep needs to know about mmap are:
1879 * does it exist and is it safe to write into the mmap'd area
1880 * how to use it (BSD variants) */
1881 #include <sys/types.h>
1883 #include <sys/mman.h>
1885 #include <sys/stat.h>
1887 #ifdef HAVE_UNISTD_H
1888 # include <unistd.h>
1891 /* This mess was copied from the GNU getpagesize.h. */
1892 #ifndef HAVE_GETPAGESIZE
1894 /* Assume that all systems that can run configure have sys/param.h. */
1895 # ifndef HAVE_SYS_PARAM_H
1896 # define HAVE_SYS_PARAM_H 1
1899 # ifdef _SC_PAGESIZE
1900 # define getpagesize() sysconf(_SC_PAGESIZE)
1901 # else /* no _SC_PAGESIZE */
1902 # ifdef HAVE_SYS_PARAM_H
1903 # include <sys/param.h>
1904 # ifdef EXEC_PAGESIZE
1905 # define getpagesize() EXEC_PAGESIZE
1906 # else /* no EXEC_PAGESIZE */
1908 # define getpagesize() NBPG * CLSIZE
1911 # endif /* no CLSIZE */
1912 # else /* no NBPG */
1914 # define getpagesize() NBPC
1915 # else /* no NBPC */
1917 # define getpagesize() PAGESIZE
1918 # endif /* PAGESIZE */
1919 # endif /* no NBPC */
1920 # endif /* no NBPG */
1921 # endif /* no EXEC_PAGESIZE */
1922 # else /* no HAVE_SYS_PARAM_H */
1923 # define getpagesize() 8192 /* punt totally */
1924 # endif /* no HAVE_SYS_PARAM_H */
1925 # endif /* no _SC_PAGESIZE */
1927 #endif /* no HAVE_GETPAGESIZE */
1930 extern "C" { void *malloc(unsigned); }
1938 char *data, *data2, *data3;
1942 pagesize = getpagesize();
1945 * First, make a file with some known garbage in it.
1947 data = (char*)malloc(pagesize);
1950 for (i = 0; i < pagesize; ++i)
1951 *(data + i) = rand();
1953 fd = creat("conftestmmap", 0600);
1956 if (write(fd, data, pagesize) != pagesize)
1961 * Next, try to mmap the file at a fixed address which
1962 * already has something else allocated at it. If we can,
1963 * also make sure that we see the same garbage.
1965 fd = open("conftestmmap", O_RDWR);
1968 data2 = (char*)malloc(2 * pagesize);
1971 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1972 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1973 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1975 for (i = 0; i < pagesize; ++i)
1976 if (*(data + i) != *(data2 + i))
1980 * Finally, make sure that changes to the mapped area
1981 * do not percolate back to the file as seen by read().
1982 * (This is a bug on some variants of i386 svr4.0.)
1984 for (i = 0; i < pagesize; ++i)
1985 *(data2 + i) = *(data2 + i) + 1;
1986 data3 = (char*)malloc(pagesize);
1989 if (read(fd, data3, pagesize) != pagesize)
1991 for (i = 0; i < pagesize; ++i)
1992 if (*(data + i) != *(data3 + i))
1995 unlink("conftestmmap");
2000 if { (eval echo configure:2001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2002 ac_cv_func_mmap_fixed_mapped=yes
2004 echo "configure: failed program was:" >&5
2005 cat conftest.$ac_ext >&5
2007 ac_cv_func_mmap_fixed_mapped=no
2014 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2015 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2016 cat >> confdefs.h <<\EOF
2022 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2023 echo "configure:2024: checking for vprintf" >&5
2024 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2025 echo $ac_n "(cached) $ac_c" 1>&6
2027 cat > conftest.$ac_ext <<EOF
2028 #line 2029 "configure"
2029 #include "confdefs.h"
2030 /* System header to define __stub macros and hopefully few prototypes,
2031 which can conflict with char vprintf(); below. */
2033 /* Override any gcc2 internal prototype to avoid an error. */
2034 /* We use char because int might match the return type of a gcc2
2035 builtin and then its argument prototype would still apply. */
2040 /* The GNU C library defines this for functions which it implements
2041 to always fail with ENOSYS. Some functions are actually named
2042 something starting with __ and the normal name is an alias. */
2043 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2051 if { (eval echo configure:2052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2053 eval "ac_cv_func_vprintf=yes"
2055 echo "configure: failed program was:" >&5
2056 cat conftest.$ac_ext >&5
2058 eval "ac_cv_func_vprintf=no"
2063 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2064 echo "$ac_t""yes" 1>&6
2065 cat >> confdefs.h <<\EOF
2066 #define HAVE_VPRINTF 1
2070 echo "$ac_t""no" 1>&6
2073 if test "$ac_cv_func_vprintf" != yes; then
2074 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2075 echo "configure:2076: checking for _doprnt" >&5
2076 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2077 echo $ac_n "(cached) $ac_c" 1>&6
2079 cat > conftest.$ac_ext <<EOF
2080 #line 2081 "configure"
2081 #include "confdefs.h"
2082 /* System header to define __stub macros and hopefully few prototypes,
2083 which can conflict with char _doprnt(); below. */
2085 /* Override any gcc2 internal prototype to avoid an error. */
2086 /* We use char because int might match the return type of a gcc2
2087 builtin and then its argument prototype would still apply. */
2092 /* The GNU C library defines this for functions which it implements
2093 to always fail with ENOSYS. Some functions are actually named
2094 something starting with __ and the normal name is an alias. */
2095 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2103 if { (eval echo configure:2104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2105 eval "ac_cv_func__doprnt=yes"
2107 echo "configure: failed program was:" >&5
2108 cat conftest.$ac_ext >&5
2110 eval "ac_cv_func__doprnt=no"
2115 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2116 echo "$ac_t""yes" 1>&6
2117 cat >> confdefs.h <<\EOF
2118 #define HAVE_DOPRNT 1
2122 echo "$ac_t""no" 1>&6
2127 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2128 echo "configure:2129: checking return type of signal handlers" >&5
2129 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2130 echo $ac_n "(cached) $ac_c" 1>&6
2132 cat > conftest.$ac_ext <<EOF
2133 #line 2134 "configure"
2134 #include "confdefs.h"
2135 #include <sys/types.h>
2141 extern "C" void (*signal (int, void (*)(int)))(int);
2143 void (*signal ()) ();
2150 if { (eval echo configure:2151: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2152 ac_cv_type_signal=void
2154 echo "configure: failed program was:" >&5
2155 cat conftest.$ac_ext >&5
2157 ac_cv_type_signal=int
2162 echo "$ac_t""$ac_cv_type_signal" 1>&6
2163 cat >> confdefs.h <<EOF
2164 #define RETSIGTYPE $ac_cv_type_signal
2168 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2169 echo "configure:2170: checking for dlopen in -ldl" >&5
2170 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2171 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2172 echo $ac_n "(cached) $ac_c" 1>&6
2174 ac_save_LIBS="$LIBS"
2176 cat > conftest.$ac_ext <<EOF
2177 #line 2178 "configure"
2178 #include "confdefs.h"
2179 /* Override any gcc2 internal prototype to avoid an error. */
2180 /* We use char because int might match the return type of a gcc2
2181 builtin and then its argument prototype would still apply. */
2188 if { (eval echo configure:2189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2190 eval "ac_cv_lib_$ac_lib_var=yes"
2192 echo "configure: failed program was:" >&5
2193 cat conftest.$ac_ext >&5
2195 eval "ac_cv_lib_$ac_lib_var=no"
2198 LIBS="$ac_save_LIBS"
2201 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2202 echo "$ac_t""yes" 1>&6
2203 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2204 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2205 cat >> confdefs.h <<EOF
2206 #define $ac_tr_lib 1
2212 echo "$ac_t""no" 1>&6
2215 echo $ac_n "checking for optarg in -lgnugetopt""... $ac_c" 1>&6
2216 echo "configure:2217: checking for optarg in -lgnugetopt" >&5
2217 ac_lib_var=`echo gnugetopt'_'optarg | sed 'y%./+-%__p_%'`
2218 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2219 echo $ac_n "(cached) $ac_c" 1>&6
2221 ac_save_LIBS="$LIBS"
2222 LIBS="-lgnugetopt $LIBS"
2223 cat > conftest.$ac_ext <<EOF
2224 #line 2225 "configure"
2225 #include "confdefs.h"
2226 /* Override any gcc2 internal prototype to avoid an error. */
2227 /* We use char because int might match the return type of a gcc2
2228 builtin and then its argument prototype would still apply. */
2235 if { (eval echo configure:2236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2237 eval "ac_cv_lib_$ac_lib_var=yes"
2239 echo "configure: failed program was:" >&5
2240 cat conftest.$ac_ext >&5
2242 eval "ac_cv_lib_$ac_lib_var=no"
2245 LIBS="$ac_save_LIBS"
2248 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2249 echo "$ac_t""yes" 1>&6
2250 ac_tr_lib=HAVE_LIB`echo gnugetopt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2251 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2252 cat >> confdefs.h <<EOF
2253 #define $ac_tr_lib 1
2256 LIBS="-lgnugetopt $LIBS"
2259 echo "$ac_t""no" 1>&6
2262 echo $ac_n "checking for _ in -lbe""... $ac_c" 1>&6
2263 echo "configure:2264: checking for _ in -lbe" >&5
2264 ac_lib_var=`echo be'_'_ | sed 'y%./+-%__p_%'`
2265 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2266 echo $ac_n "(cached) $ac_c" 1>&6
2268 ac_save_LIBS="$LIBS"
2270 cat > conftest.$ac_ext <<EOF
2271 #line 2272 "configure"
2272 #include "confdefs.h"
2273 /* Override any gcc2 internal prototype to avoid an error. */
2274 /* We use char because int might match the return type of a gcc2
2275 builtin and then its argument prototype would still apply. */
2282 if { (eval echo configure:2283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2284 eval "ac_cv_lib_$ac_lib_var=yes"
2286 echo "configure: failed program was:" >&5
2287 cat conftest.$ac_ext >&5
2289 eval "ac_cv_lib_$ac_lib_var=no"
2292 LIBS="$ac_save_LIBS"
2295 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2296 echo "$ac_t""yes" 1>&6
2297 ac_tr_lib=HAVE_LIB`echo be | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2298 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2299 cat >> confdefs.h <<EOF
2300 #define $ac_tr_lib 1
2306 echo "$ac_t""no" 1>&6
2309 echo $ac_n "checking for _ in -lgame""... $ac_c" 1>&6
2310 echo "configure:2311: checking for _ in -lgame" >&5
2311 ac_lib_var=`echo game'_'_ | sed 'y%./+-%__p_%'`
2312 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2313 echo $ac_n "(cached) $ac_c" 1>&6
2315 ac_save_LIBS="$LIBS"
2317 cat > conftest.$ac_ext <<EOF
2318 #line 2319 "configure"
2319 #include "confdefs.h"
2320 /* Override any gcc2 internal prototype to avoid an error. */
2321 /* We use char because int might match the return type of a gcc2
2322 builtin and then its argument prototype would still apply. */
2329 if { (eval echo configure:2330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2331 eval "ac_cv_lib_$ac_lib_var=yes"
2333 echo "configure: failed program was:" >&5
2334 cat conftest.$ac_ext >&5
2336 eval "ac_cv_lib_$ac_lib_var=no"
2339 LIBS="$ac_save_LIBS"
2342 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2343 echo "$ac_t""yes" 1>&6
2344 ac_tr_lib=HAVE_LIB`echo game | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2345 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2346 cat >> confdefs.h <<EOF
2347 #define $ac_tr_lib 1
2353 echo "$ac_t""no" 1>&6
2356 echo $ac_n "checking for _ in -lroot""... $ac_c" 1>&6
2357 echo "configure:2358: checking for _ in -lroot" >&5
2358 ac_lib_var=`echo root'_'_ | sed 'y%./+-%__p_%'`
2359 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2360 echo $ac_n "(cached) $ac_c" 1>&6
2362 ac_save_LIBS="$LIBS"
2364 cat > conftest.$ac_ext <<EOF
2365 #line 2366 "configure"
2366 #include "confdefs.h"
2367 /* Override any gcc2 internal prototype to avoid an error. */
2368 /* We use char because int might match the return type of a gcc2
2369 builtin and then its argument prototype would still apply. */
2376 if { (eval echo configure:2377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2378 eval "ac_cv_lib_$ac_lib_var=yes"
2380 echo "configure: failed program was:" >&5
2381 cat conftest.$ac_ext >&5
2383 eval "ac_cv_lib_$ac_lib_var=no"
2386 LIBS="$ac_save_LIBS"
2389 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2390 echo "$ac_t""yes" 1>&6
2391 ac_tr_lib=HAVE_LIB`echo root | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2392 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2393 cat >> confdefs.h <<EOF
2394 #define $ac_tr_lib 1
2400 echo "$ac_t""no" 1>&6
2403 echo $ac_n "checking for powl in -lm""... $ac_c" 1>&6
2404 echo "configure:2405: checking for powl in -lm" >&5
2405 ac_lib_var=`echo m'_'powl | sed 'y%./+-%__p_%'`
2406 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2407 echo $ac_n "(cached) $ac_c" 1>&6
2409 ac_save_LIBS="$LIBS"
2411 cat > conftest.$ac_ext <<EOF
2412 #line 2413 "configure"
2413 #include "confdefs.h"
2414 /* Override any gcc2 internal prototype to avoid an error. */
2415 /* We use char because int might match the return type of a gcc2
2416 builtin and then its argument prototype would still apply. */
2423 if { (eval echo configure:2424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2425 eval "ac_cv_lib_$ac_lib_var=yes"
2427 echo "configure: failed program was:" >&5
2428 cat conftest.$ac_ext >&5
2430 eval "ac_cv_lib_$ac_lib_var=no"
2433 LIBS="$ac_save_LIBS"
2436 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2437 echo "$ac_t""yes" 1>&6
2438 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2439 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2440 cat >> confdefs.h <<EOF
2441 #define $ac_tr_lib 1
2447 echo "$ac_t""no" 1>&6
2450 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
2451 echo "configure:2452: checking for pthread_create in -lpthread" >&5
2452 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
2453 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2454 echo $ac_n "(cached) $ac_c" 1>&6
2456 ac_save_LIBS="$LIBS"
2457 LIBS="-lpthread $LIBS"
2458 cat > conftest.$ac_ext <<EOF
2459 #line 2460 "configure"
2460 #include "confdefs.h"
2461 /* Override any gcc2 internal prototype to avoid an error. */
2462 /* We use char because int might match the return type of a gcc2
2463 builtin and then its argument prototype would still apply. */
2464 char pthread_create();
2470 if { (eval echo configure:2471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2472 eval "ac_cv_lib_$ac_lib_var=yes"
2474 echo "configure: failed program was:" >&5
2475 cat conftest.$ac_ext >&5
2477 eval "ac_cv_lib_$ac_lib_var=no"
2480 LIBS="$ac_save_LIBS"
2483 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2484 echo "$ac_t""yes" 1>&6
2485 ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2486 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2487 cat >> confdefs.h <<EOF
2488 #define $ac_tr_lib 1
2491 LIBS="-lpthread $LIBS"
2494 echo "$ac_t""no" 1>&6
2497 echo $ac_n "checking for thread_create in -lthreads""... $ac_c" 1>&6
2498 echo "configure:2499: checking for thread_create in -lthreads" >&5
2499 ac_lib_var=`echo threads'_'thread_create | sed 'y%./+-%__p_%'`
2500 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2501 echo $ac_n "(cached) $ac_c" 1>&6
2503 ac_save_LIBS="$LIBS"
2504 LIBS="-lthreads $LIBS"
2505 cat > conftest.$ac_ext <<EOF
2506 #line 2507 "configure"
2507 #include "confdefs.h"
2508 /* Override any gcc2 internal prototype to avoid an error. */
2509 /* We use char because int might match the return type of a gcc2
2510 builtin and then its argument prototype would still apply. */
2511 char thread_create();
2517 if { (eval echo configure:2518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2519 eval "ac_cv_lib_$ac_lib_var=yes"
2521 echo "configure: failed program was:" >&5
2522 cat conftest.$ac_ext >&5
2524 eval "ac_cv_lib_$ac_lib_var=no"
2527 LIBS="$ac_save_LIBS"
2530 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2531 echo "$ac_t""yes" 1>&6
2532 ac_tr_lib=HAVE_LIB`echo threads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2533 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2534 cat >> confdefs.h <<EOF
2535 #define $ac_tr_lib 1
2538 LIBS="-lthreads $LIBS"
2541 echo "$ac_t""no" 1>&6
2545 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
2546 echo "configure:2547: checking for getopt_long" >&5
2547 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
2548 echo $ac_n "(cached) $ac_c" 1>&6
2550 cat > conftest.$ac_ext <<EOF
2551 #line 2552 "configure"
2552 #include "confdefs.h"
2553 /* System header to define __stub macros and hopefully few prototypes,
2554 which can conflict with char getopt_long(); below. */
2556 /* Override any gcc2 internal prototype to avoid an error. */
2557 /* We use char because int might match the return type of a gcc2
2558 builtin and then its argument prototype would still apply. */
2563 /* The GNU C library defines this for functions which it implements
2564 to always fail with ENOSYS. Some functions are actually named
2565 something starting with __ and the normal name is an alias. */
2566 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
2574 if { (eval echo configure:2575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2576 eval "ac_cv_func_getopt_long=yes"
2578 echo "configure: failed program was:" >&5
2579 cat conftest.$ac_ext >&5
2581 eval "ac_cv_func_getopt_long=no"
2586 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
2587 echo "$ac_t""yes" 1>&6
2590 echo "$ac_t""no" 1>&6
2591 LIBOBJS="$LIBOBJS getopt.o getopt1.o"
2596 for ac_hdr in fcntl.h sys/ioctl.h sys/time.h unistd.h
2598 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2599 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2600 echo "configure:2601: checking for $ac_hdr" >&5
2601 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2602 echo $ac_n "(cached) $ac_c" 1>&6
2604 cat > conftest.$ac_ext <<EOF
2605 #line 2606 "configure"
2606 #include "confdefs.h"
2609 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2610 { (eval echo configure:2611: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2611 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2612 if test -z "$ac_err"; then
2614 eval "ac_cv_header_$ac_safe=yes"
2617 echo "configure: failed program was:" >&5
2618 cat conftest.$ac_ext >&5
2620 eval "ac_cv_header_$ac_safe=no"
2624 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2625 echo "$ac_t""yes" 1>&6
2626 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2627 cat >> confdefs.h <<EOF
2628 #define $ac_tr_hdr 1
2632 echo "$ac_t""no" 1>&6
2636 for ac_hdr in sys/soundcard.h machine/soundcard.h
2638 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2639 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2640 echo "configure:2641: checking for $ac_hdr" >&5
2641 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2642 echo $ac_n "(cached) $ac_c" 1>&6
2644 cat > conftest.$ac_ext <<EOF
2645 #line 2646 "configure"
2646 #include "confdefs.h"
2649 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2650 { (eval echo configure:2651: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2651 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2652 if test -z "$ac_err"; then
2654 eval "ac_cv_header_$ac_safe=yes"
2657 echo "configure: failed program was:" >&5
2658 cat conftest.$ac_ext >&5
2660 eval "ac_cv_header_$ac_safe=no"
2664 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2665 echo "$ac_t""yes" 1>&6
2666 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2667 cat >> confdefs.h <<EOF
2668 #define $ac_tr_hdr 1
2672 echo "$ac_t""no" 1>&6
2676 for ac_hdr in dlfcn.h image.h
2678 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2679 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2680 echo "configure:2681: checking for $ac_hdr" >&5
2681 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2682 echo $ac_n "(cached) $ac_c" 1>&6
2684 cat > conftest.$ac_ext <<EOF
2685 #line 2686 "configure"
2686 #include "confdefs.h"
2689 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2690 { (eval echo configure:2691: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2691 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2692 if test -z "$ac_err"; then
2694 eval "ac_cv_header_$ac_safe=yes"
2697 echo "configure: failed program was:" >&5
2698 cat conftest.$ac_ext >&5
2700 eval "ac_cv_header_$ac_safe=no"
2704 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2705 echo "$ac_t""yes" 1>&6
2706 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2707 cat >> confdefs.h <<EOF
2708 #define $ac_tr_hdr 1
2712 echo "$ac_t""no" 1>&6
2716 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
2718 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2719 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2720 echo "configure:2721: checking for $ac_hdr" >&5
2721 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2722 echo $ac_n "(cached) $ac_c" 1>&6
2724 cat > conftest.$ac_ext <<EOF
2725 #line 2726 "configure"
2726 #include "confdefs.h"
2729 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2730 { (eval echo configure:2731: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2731 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2732 if test -z "$ac_err"; then
2734 eval "ac_cv_header_$ac_safe=yes"
2737 echo "configure: failed program was:" >&5
2738 cat conftest.$ac_ext >&5
2740 eval "ac_cv_header_$ac_safe=no"
2744 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2745 echo "$ac_t""yes" 1>&6
2746 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2747 cat >> confdefs.h <<EOF
2748 #define $ac_tr_hdr 1
2752 echo "$ac_t""no" 1>&6
2757 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
2759 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2760 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2761 echo "configure:2762: checking for $ac_hdr" >&5
2762 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2763 echo $ac_n "(cached) $ac_c" 1>&6
2765 cat > conftest.$ac_ext <<EOF
2766 #line 2767 "configure"
2767 #include "confdefs.h"
2770 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2771 { (eval echo configure:2772: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2772 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2773 if test -z "$ac_err"; then
2775 eval "ac_cv_header_$ac_safe=yes"
2778 echo "configure: failed program was:" >&5
2779 cat conftest.$ac_ext >&5
2781 eval "ac_cv_header_$ac_safe=no"
2785 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2786 echo "$ac_t""yes" 1>&6
2787 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2788 cat >> confdefs.h <<EOF
2789 #define $ac_tr_hdr 1
2793 echo "$ac_t""no" 1>&6
2798 echo $ac_n "checking for working const""... $ac_c" 1>&6
2799 echo "configure:2800: checking for working const" >&5
2800 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2801 echo $ac_n "(cached) $ac_c" 1>&6
2803 cat > conftest.$ac_ext <<EOF
2804 #line 2805 "configure"
2805 #include "confdefs.h"
2809 /* Ultrix mips cc rejects this. */
2810 typedef int charset[2]; const charset x = {0,0};
2811 /* SunOS 4.1.1 cc rejects this. */
2812 char const *const *ccp;
2814 /* NEC SVR4.0.2 mips cc rejects this. */
2815 struct point {int x, y;};
2816 static struct point const zero = {0,0};
2817 /* AIX XL C 1.02.0.0 rejects this.
2818 It does not let you subtract one const X* pointer from another in an arm
2819 of an if-expression whose if-part is not a constant expression */
2820 const char *g = "string";
2821 ccp = &g + (g ? g-g : 0);
2822 /* HPUX 7.0 cc rejects these. */
2825 ccp = (char const *const *) p;
2826 { /* SCO 3.2v4 cc rejects this. */
2828 char const *s = 0 ? (char *) 0 : (char const *) 0;
2832 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2834 const int *foo = &x[0];
2837 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2838 typedef const int *iptr;
2842 { /* AIX XL C 1.02.0.0 rejects this saying
2843 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2844 struct s { int j; const int *ap[3]; };
2845 struct s *b; b->j = 5;
2847 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2853 if { (eval echo configure:2854: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2857 echo "configure: failed program was:" >&5
2858 cat conftest.$ac_ext >&5
2865 echo "$ac_t""$ac_cv_c_const" 1>&6
2866 if test $ac_cv_c_const = no; then
2867 cat >> confdefs.h <<\EOF
2873 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2874 echo "configure:2875: checking for ANSI C header files" >&5
2875 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2876 echo $ac_n "(cached) $ac_c" 1>&6
2878 cat > conftest.$ac_ext <<EOF
2879 #line 2880 "configure"
2880 #include "confdefs.h"
2886 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2887 { (eval echo configure:2888: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2888 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2889 if test -z "$ac_err"; then
2891 ac_cv_header_stdc=yes
2894 echo "configure: failed program was:" >&5
2895 cat conftest.$ac_ext >&5
2897 ac_cv_header_stdc=no
2901 if test $ac_cv_header_stdc = yes; then
2902 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2903 cat > conftest.$ac_ext <<EOF
2904 #line 2905 "configure"
2905 #include "confdefs.h"
2908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2909 egrep "memchr" >/dev/null 2>&1; then
2913 ac_cv_header_stdc=no
2919 if test $ac_cv_header_stdc = yes; then
2920 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2921 cat > conftest.$ac_ext <<EOF
2922 #line 2923 "configure"
2923 #include "confdefs.h"
2926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2927 egrep "free" >/dev/null 2>&1; then
2931 ac_cv_header_stdc=no
2937 if test $ac_cv_header_stdc = yes; then
2938 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2939 if test "$cross_compiling" = yes; then
2942 cat > conftest.$ac_ext <<EOF
2943 #line 2944 "configure"
2944 #include "confdefs.h"
2946 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2947 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2948 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2949 int main () { int i; for (i = 0; i < 256; i++)
2950 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2954 if { (eval echo configure:2955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2958 echo "configure: failed program was:" >&5
2959 cat conftest.$ac_ext >&5
2961 ac_cv_header_stdc=no
2969 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2970 if test $ac_cv_header_stdc = yes; then
2971 cat >> confdefs.h <<\EOF
2972 #define STDC_HEADERS 1
2977 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2978 echo "configure:2979: checking for size_t" >&5
2979 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2980 echo $ac_n "(cached) $ac_c" 1>&6
2982 cat > conftest.$ac_ext <<EOF
2983 #line 2984 "configure"
2984 #include "confdefs.h"
2985 #include <sys/types.h>
2991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2992 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2994 ac_cv_type_size_t=yes
2997 ac_cv_type_size_t=no
3002 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3003 if test $ac_cv_type_size_t = no; then
3004 cat >> confdefs.h <<\EOF
3005 #define size_t unsigned
3010 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3011 echo "configure:3012: checking whether time.h and sys/time.h may both be included" >&5
3012 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3013 echo $ac_n "(cached) $ac_c" 1>&6
3015 cat > conftest.$ac_ext <<EOF
3016 #line 3017 "configure"
3017 #include "confdefs.h"
3018 #include <sys/types.h>
3019 #include <sys/time.h>
3025 if { (eval echo configure:3026: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3027 ac_cv_header_time=yes
3029 echo "configure: failed program was:" >&5
3030 cat conftest.$ac_ext >&5
3032 ac_cv_header_time=no
3037 echo "$ac_t""$ac_cv_header_time" 1>&6
3038 if test $ac_cv_header_time = yes; then
3039 cat >> confdefs.h <<\EOF
3040 #define TIME_WITH_SYS_TIME 1
3046 # Check whether --enable-dummy or --disable-dummy was given.
3047 if test "${enable_dummy+set}" = set; then
3048 enableval="$enable_dummy"
3052 if test x$enable_vout_dummy != xno; then VOUT=${VOUT}"dummy "; fi
3053 # Check whether --enable-x11 or --disable-x11 was given.
3054 if test "${enable_x11+set}" = set; then
3055 enableval="$enable_x11"
3059 if test x$enable_x11 != xno; then VOUT=${VOUT}"x11 "; fi
3060 # Check whether --enable-fb or --disable-fb was given.
3061 if test "${enable_fb+set}" = set; then
3062 enableval="$enable_fb"
3063 if test x$enable_fb = xyes; then VOUT=${VOUT}"fb "; fi
3066 # Check whether --enable-gnome or --disable-gnome was given.
3067 if test "${enable_gnome+set}" = set; then
3068 enableval="$enable_gnome"
3069 if test x$enable_gnome = xyes; then VOUT=${VOUT}"gnome "; fi
3072 # Check whether --enable-glide or --disable-glide was given.
3073 if test "${enable_glide+set}" = set; then
3074 enableval="$enable_glide"
3075 if test x$enable_glide = xyes; then VOUT=${VOUT}"glide "; fi
3078 # Check whether --enable-ggi or --disable-ggi was given.
3079 if test "${enable_ggi+set}" = set; then
3080 enableval="$enable_ggi"
3081 if test x$enable_ggi = xyes; then VOUT=${VOUT}"ggi "; fi
3085 # Check whether --enable-dummy or --disable-dummy was given.
3086 if test "${enable_dummy+set}" = set; then
3087 enableval="$enable_dummy"
3091 if test x$enable_aout_dummy != xno; then AOUT=${AOUT}"dummy "; fi
3092 # Check whether --enable-dsp or --disable-dsp was given.
3093 if test "${enable_dsp+set}" = set; then
3094 enableval="$enable_dsp"
3098 if test x$enable_dsp != xno; then AOUT=${AOUT}"dsp "; fi
3099 # Check whether --enable-esd or --disable-esd was given.
3100 if test "${enable_esd+set}" = set; then
3101 enableval="$enable_esd"
3102 if test x$enable_gnome = xyes; then AOUT=${AOUT}"esd "; fi
3107 # Check whether --enable-ppro or --disable-ppro was given.
3108 if test "${enable_ppro+set}" = set; then
3109 enableval="$enable_ppro"
3110 if test x$enableval = xyes; then ARCH=${ARCH}" pentiumpro"; fi
3113 # Check whether --enable-mmx or --disable-mmx was given.
3114 if test "${enable_mmx+set}" = set; then
3115 enableval="$enable_mmx"
3116 if test x$enableval = xyes; then ARCH=${ARCH}" mmx"; fi
3123 if test x$host_os = xbeos; then
3134 cat > confcache <<\EOF
3135 # This file is a shell script that caches the results of configure
3136 # tests run on this system so they can be shared between configure
3137 # scripts and configure runs. It is not useful on other systems.
3138 # If it contains results you don't want to keep, you may remove or edit it.
3140 # By default, configure uses ./config.cache as the cache file,
3141 # creating it if it does not exist already. You can give configure
3142 # the --cache-file=FILE option to use a different cache file; that is
3143 # what configure does when it calls configure scripts in
3144 # subdirectories, so they share the cache.
3145 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3146 # config.status only pays attention to the cache file if you give it the
3147 # --recheck option to rerun configure.
3150 # The following way of writing the cache mishandles newlines in values,
3151 # but we know of no workaround that is simple, portable, and efficient.
3152 # So, don't put newlines in cache variables' values.
3153 # Ultrix sh set writes to stderr and can't be redirected directly,
3154 # and sets the high bit in the cache file unless we assign to the vars.
3156 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3158 # `set' does not quote correctly, so add quotes (double-quote substitution
3159 # turns \\\\ into \\, and sed turns \\ into \).
3161 -e "s/'/'\\\\''/g" \
3162 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3165 # `set' quotes correctly as required by POSIX, so do not add quotes.
3166 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3169 if cmp -s $cache_file confcache; then
3172 if test -w $cache_file; then
3173 echo "updating cache $cache_file"
3174 cat confcache > $cache_file
3176 echo "not updating unwritable cache $cache_file"
3181 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3183 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3184 # Let make expand exec_prefix.
3185 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3187 # Any assignment to VPATH causes Sun make to only execute
3188 # the first set of double-colon rules, so remove it if not needed.
3189 # If there is a colon in the path, we need to keep it.
3190 if test "x$srcdir" = x.; then
3191 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3194 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3196 DEFS=-DHAVE_CONFIG_H
3198 # Without the "./", some shells look in PATH for config.status.
3199 : ${CONFIG_STATUS=./config.status}
3201 echo creating $CONFIG_STATUS
3202 rm -f $CONFIG_STATUS
3203 cat > $CONFIG_STATUS <<EOF
3205 # Generated automatically by configure.
3206 # Run this file to recreate the current configuration.
3207 # This directory was configured as follows,
3208 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3210 # $0 $ac_configure_args
3212 # Compiler output produced by configure, useful for debugging
3213 # configure, is in ./config.log if it exists.
3215 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3218 case "\$ac_option" in
3219 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3220 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3221 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3222 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3223 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3225 -help | --help | --hel | --he | --h)
3226 echo "\$ac_cs_usage"; exit 0 ;;
3227 *) echo "\$ac_cs_usage"; exit 1 ;;
3231 ac_given_srcdir=$srcdir
3232 ac_given_INSTALL="$INSTALL"
3234 trap 'rm -fr `echo "Makefile include/config.h include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3236 cat >> $CONFIG_STATUS <<EOF
3238 # Protect against being on the right side of a sed subst in config.status.
3239 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3240 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3244 s%@CFLAGS@%$CFLAGS%g
3245 s%@CPPFLAGS@%$CPPFLAGS%g
3246 s%@CXXFLAGS@%$CXXFLAGS%g
3247 s%@FFLAGS@%$FFLAGS%g
3249 s%@LDFLAGS@%$LDFLAGS%g
3251 s%@exec_prefix@%$exec_prefix%g
3252 s%@prefix@%$prefix%g
3253 s%@program_transform_name@%$program_transform_name%g
3254 s%@bindir@%$bindir%g
3255 s%@sbindir@%$sbindir%g
3256 s%@libexecdir@%$libexecdir%g
3257 s%@datadir@%$datadir%g
3258 s%@sysconfdir@%$sysconfdir%g
3259 s%@sharedstatedir@%$sharedstatedir%g
3260 s%@localstatedir@%$localstatedir%g
3261 s%@libdir@%$libdir%g
3262 s%@includedir@%$includedir%g
3263 s%@oldincludedir@%$oldincludedir%g
3264 s%@infodir@%$infodir%g
3265 s%@mandir@%$mandir%g
3267 s%@host_alias@%$host_alias%g
3268 s%@host_cpu@%$host_cpu%g
3269 s%@host_vendor@%$host_vendor%g
3270 s%@host_os@%$host_os%g
3271 s%@VLC_VERSION@%$VLC_VERSION%g
3272 s%@VLC_CODENAME@%$VLC_CODENAME%g
3273 s%@SET_MAKE@%$SET_MAKE%g
3276 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3277 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3278 s%@INSTALL_DATA@%$INSTALL_DATA%g
3279 s%@LIBOBJS@%$LIBOBJS%g
3288 cat >> $CONFIG_STATUS <<\EOF
3290 # Split the substitutions into bite-sized pieces for seds with
3291 # small command number limits, like on Digital OSF/1 and HP-UX.
3292 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3293 ac_file=1 # Number of current file.
3294 ac_beg=1 # First line for current file.
3295 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3298 while $ac_more_lines; do
3299 if test $ac_beg -gt 1; then
3300 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3302 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3304 if test ! -s conftest.s$ac_file; then
3306 rm -f conftest.s$ac_file
3308 if test -z "$ac_sed_cmds"; then
3309 ac_sed_cmds="sed -f conftest.s$ac_file"
3311 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3313 ac_file=`expr $ac_file + 1`
3315 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3318 if test -z "$ac_sed_cmds"; then
3323 cat >> $CONFIG_STATUS <<EOF
3325 CONFIG_FILES=\${CONFIG_FILES-"Makefile include/config.h"}
3327 cat >> $CONFIG_STATUS <<\EOF
3328 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3329 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3331 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3332 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3333 *) ac_file_in="${ac_file}.in" ;;
3336 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3338 # Remove last slash and all that follows it. Not all systems have dirname.
3339 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3340 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3341 # The file is in a subdirectory.
3342 test ! -d "$ac_dir" && mkdir "$ac_dir"
3343 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3344 # A "../" for each directory in $ac_dir_suffix.
3345 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3347 ac_dir_suffix= ac_dots=
3350 case "$ac_given_srcdir" in
3352 if test -z "$ac_dots"; then top_srcdir=.
3353 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3354 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3356 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3357 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3360 case "$ac_given_INSTALL" in
3361 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3362 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3365 echo creating "$ac_file"
3367 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3369 *Makefile*) ac_comsub="1i\\
3370 # $configure_input" ;;
3374 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3376 s%@configure_input@%$configure_input%g
3377 s%@srcdir@%$srcdir%g
3378 s%@top_srcdir@%$top_srcdir%g
3379 s%@INSTALL@%$INSTALL%g
3380 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3384 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3385 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3387 # ac_d sets the value in "#define NAME VALUE" lines.
3388 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3389 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3392 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3393 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3394 ac_uB='\([ ]\)%\1#\2define\3'
3397 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3398 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3399 ac_eB='$%\1#\2define\3'
3403 if test "${CONFIG_HEADERS+set}" != set; then
3405 cat >> $CONFIG_STATUS <<EOF
3406 CONFIG_HEADERS="include/defs.h"
3408 cat >> $CONFIG_STATUS <<\EOF
3410 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3411 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3413 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3414 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3415 *) ac_file_in="${ac_file}.in" ;;
3418 echo creating $ac_file
3420 rm -f conftest.frag conftest.in conftest.out
3421 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3422 cat $ac_file_inputs > conftest.in
3426 # Transform confdefs.h into a sed script conftest.vals that substitutes
3427 # the proper values into config.h.in to produce config.h. And first:
3428 # Protect against being on the right side of a sed subst in config.status.
3429 # Protect against being in an unquoted here document in config.status.
3431 cat > conftest.hdr <<\EOF
3434 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3438 sed -n -f conftest.hdr confdefs.h > conftest.vals
3441 # This sed command replaces #undef with comments. This is necessary, for
3442 # example, in the case of _POSIX_SOURCE, which is predefined and required
3443 # on some systems where configure will not decide to define it.
3444 cat >> conftest.vals <<\EOF
3445 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3448 # Break up conftest.vals because some shells have a limit on
3449 # the size of here documents, and old seds have small limits too.
3454 ac_lines=`grep -c . conftest.vals`
3455 # grep -c gives empty output for an empty file on some AIX systems.
3456 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3457 # Write a limited-size here document to conftest.frag.
3458 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3459 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3461 sed -f conftest.frag conftest.in > conftest.out
3463 mv conftest.out conftest.in
3465 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3467 mv conftest.tail conftest.vals
3471 cat >> $CONFIG_STATUS <<\EOF
3472 rm -f conftest.frag conftest.h
3473 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3474 cat conftest.in >> conftest.h
3476 if cmp -s $ac_file conftest.h 2>/dev/null; then
3477 echo "$ac_file is unchanged"
3480 # Remove last slash and all that follows it. Not all systems have dirname.
3481 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3482 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3483 # The file is in a subdirectory.
3484 test ! -d "$ac_dir" && mkdir "$ac_dir"
3487 mv conftest.h $ac_file
3492 cat >> $CONFIG_STATUS <<EOF
3495 cat >> $CONFIG_STATUS <<\EOF
3499 chmod +x $CONFIG_STATUS
3500 rm -fr confdefs* $ac_clean_files
3501 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3507 vlc version : ${VLC_VERSION}
3509 architecture : ${ARCH}