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 # Initialize some variables set by options.
16 # The variables have the same names as the options, with
17 # dashes changed to underlines.
19 cache_file=./config.cache
28 program_transform_name=s,x,x,
36 bindir='${exec_prefix}/bin'
37 sbindir='${exec_prefix}/sbin'
38 libexecdir='${exec_prefix}/libexec'
39 datadir='${prefix}/share'
40 sysconfdir='${prefix}/etc'
41 sharedstatedir='${prefix}/com'
42 localstatedir='${prefix}/var'
43 libdir='${exec_prefix}/lib'
44 includedir='${prefix}/include'
45 oldincludedir='/usr/include'
46 infodir='${prefix}/info'
47 mandir='${prefix}/man'
49 # Initialize some other variables.
52 SHELL=${CONFIG_SHELL-/bin/sh}
53 # Maximum number of lines to put in a shell here document.
60 # If the previous option needs an argument, assign it.
61 if test -n "$ac_prev"; then
62 eval "$ac_prev=\$ac_option"
68 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
72 # Accept the important Cygnus configure options, so we can diagnose typos.
76 -bindir | --bindir | --bindi | --bind | --bin | --bi)
78 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
79 bindir="$ac_optarg" ;;
81 -build | --build | --buil | --bui | --bu)
83 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
86 -cache-file | --cache-file | --cache-fil | --cache-fi \
87 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
89 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
90 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
91 cache_file="$ac_optarg" ;;
93 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
95 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
97 datadir="$ac_optarg" ;;
99 -disable-* | --disable-*)
100 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
101 # Reject names that are not valid shell variable names.
102 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
103 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
105 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
106 eval "enable_${ac_feature}=no" ;;
108 -enable-* | --enable-*)
109 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
110 # Reject names that are not valid shell variable names.
111 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
112 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
114 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
119 eval "enable_${ac_feature}='$ac_optarg'" ;;
121 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
122 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
123 | --exec | --exe | --ex)
124 ac_prev=exec_prefix ;;
125 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
126 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
127 | --exec=* | --exe=* | --ex=*)
128 exec_prefix="$ac_optarg" ;;
130 -gas | --gas | --ga | --g)
131 # Obsolete; use --with-gas.
134 -help | --help | --hel | --he)
135 # Omit some internal or obsolete options to make the list less imposing.
136 # This message is too long to be a string in the A/UX 3.1 sh.
138 Usage: configure [options] [host]
139 Options: [defaults in brackets after descriptions]
141 --cache-file=FILE cache test results in FILE
142 --help print this message
143 --no-create do not create output files
144 --quiet, --silent do not print \`checking...' messages
145 --version print the version of autoconf that created configure
146 Directory and file names:
147 --prefix=PREFIX install architecture-independent files in PREFIX
149 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
151 --bindir=DIR user executables in DIR [EPREFIX/bin]
152 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
153 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
154 --datadir=DIR read-only architecture-independent data in DIR
156 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
157 --sharedstatedir=DIR modifiable architecture-independent data in DIR
159 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
160 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
161 --includedir=DIR C header files in DIR [PREFIX/include]
162 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
163 --infodir=DIR info documentation in DIR [PREFIX/info]
164 --mandir=DIR man documentation in DIR [PREFIX/man]
165 --srcdir=DIR find the sources in DIR [configure dir or ..]
166 --program-prefix=PREFIX prepend PREFIX to installed program names
167 --program-suffix=SUFFIX append SUFFIX to installed program names
168 --program-transform-name=PROGRAM
169 run sed PROGRAM on installed program names
173 --build=BUILD configure for building on BUILD [BUILD=HOST]
174 --host=HOST configure for HOST [guessed]
175 --target=TARGET configure for TARGET [TARGET=HOST]
176 Features and packages:
177 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
178 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
179 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
180 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
181 --x-includes=DIR X include files are in DIR
182 --x-libraries=DIR X library files are in DIR
184 if test -n "$ac_help"; then
185 echo "--enable and --with options recognized:$ac_help"
189 -host | --host | --hos | --ho)
191 -host=* | --host=* | --hos=* | --ho=*)
194 -includedir | --includedir | --includedi | --included | --include \
195 | --includ | --inclu | --incl | --inc)
196 ac_prev=includedir ;;
197 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
198 | --includ=* | --inclu=* | --incl=* | --inc=*)
199 includedir="$ac_optarg" ;;
201 -infodir | --infodir | --infodi | --infod | --info | --inf)
203 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
204 infodir="$ac_optarg" ;;
206 -libdir | --libdir | --libdi | --libd)
208 -libdir=* | --libdir=* | --libdi=* | --libd=*)
209 libdir="$ac_optarg" ;;
211 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
212 | --libexe | --libex | --libe)
213 ac_prev=libexecdir ;;
214 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
215 | --libexe=* | --libex=* | --libe=*)
216 libexecdir="$ac_optarg" ;;
218 -localstatedir | --localstatedir | --localstatedi | --localstated \
219 | --localstate | --localstat | --localsta | --localst \
220 | --locals | --local | --loca | --loc | --lo)
221 ac_prev=localstatedir ;;
222 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
223 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
224 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
225 localstatedir="$ac_optarg" ;;
227 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
229 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
230 mandir="$ac_optarg" ;;
233 # Obsolete; use --without-fp.
236 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
240 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
241 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
244 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
245 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
246 | --oldin | --oldi | --old | --ol | --o)
247 ac_prev=oldincludedir ;;
248 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
249 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
250 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
251 oldincludedir="$ac_optarg" ;;
253 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
255 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
256 prefix="$ac_optarg" ;;
258 -program-prefix | --program-prefix | --program-prefi | --program-pref \
259 | --program-pre | --program-pr | --program-p)
260 ac_prev=program_prefix ;;
261 -program-prefix=* | --program-prefix=* | --program-prefi=* \
262 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
263 program_prefix="$ac_optarg" ;;
265 -program-suffix | --program-suffix | --program-suffi | --program-suff \
266 | --program-suf | --program-su | --program-s)
267 ac_prev=program_suffix ;;
268 -program-suffix=* | --program-suffix=* | --program-suffi=* \
269 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
270 program_suffix="$ac_optarg" ;;
272 -program-transform-name | --program-transform-name \
273 | --program-transform-nam | --program-transform-na \
274 | --program-transform-n | --program-transform- \
275 | --program-transform | --program-transfor \
276 | --program-transfo | --program-transf \
277 | --program-trans | --program-tran \
278 | --progr-tra | --program-tr | --program-t)
279 ac_prev=program_transform_name ;;
280 -program-transform-name=* | --program-transform-name=* \
281 | --program-transform-nam=* | --program-transform-na=* \
282 | --program-transform-n=* | --program-transform-=* \
283 | --program-transform=* | --program-transfor=* \
284 | --program-transfo=* | --program-transf=* \
285 | --program-trans=* | --program-tran=* \
286 | --progr-tra=* | --program-tr=* | --program-t=*)
287 program_transform_name="$ac_optarg" ;;
289 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
290 | -silent | --silent | --silen | --sile | --sil)
293 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
295 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
297 sbindir="$ac_optarg" ;;
299 -sharedstatedir | --sharedstatedir | --sharedstatedi \
300 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
301 | --sharedst | --shareds | --shared | --share | --shar \
303 ac_prev=sharedstatedir ;;
304 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
305 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
306 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
308 sharedstatedir="$ac_optarg" ;;
310 -site | --site | --sit)
312 -site=* | --site=* | --sit=*)
315 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
317 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
318 srcdir="$ac_optarg" ;;
320 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
321 | --syscon | --sysco | --sysc | --sys | --sy)
322 ac_prev=sysconfdir ;;
323 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
324 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
325 sysconfdir="$ac_optarg" ;;
327 -target | --target | --targe | --targ | --tar | --ta | --t)
329 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
330 target="$ac_optarg" ;;
332 -v | -verbose | --verbose | --verbos | --verbo | --verb)
335 -version | --version | --versio | --versi | --vers)
336 echo "configure generated by autoconf version 2.13"
340 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
341 # Reject names that are not valid shell variable names.
342 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
343 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
345 ac_package=`echo $ac_package| sed 's/-/_/g'`
350 eval "with_${ac_package}='$ac_optarg'" ;;
352 -without-* | --without-*)
353 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
354 # Reject names that are not valid shell variable names.
355 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
356 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
358 ac_package=`echo $ac_package| sed 's/-/_/g'`
359 eval "with_${ac_package}=no" ;;
362 # Obsolete; use --with-x.
365 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
366 | --x-incl | --x-inc | --x-in | --x-i)
367 ac_prev=x_includes ;;
368 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
369 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
370 x_includes="$ac_optarg" ;;
372 -x-libraries | --x-libraries | --x-librarie | --x-librari \
373 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
374 ac_prev=x_libraries ;;
375 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
376 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
377 x_libraries="$ac_optarg" ;;
379 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
383 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
384 echo "configure: warning: $ac_option: invalid host type" 1>&2
386 if test "x$nonopt" != xNONE; then
387 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
395 if test -n "$ac_prev"; then
396 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
399 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
401 # File descriptor usage:
404 # 2 errors and warnings
405 # 3 some systems may open it to /dev/tty
406 # 4 used on the Kubota Titan
407 # 6 checking for... messages and results
408 # 5 compiler messages saved in config.log
409 if test "$silent" = yes; then
417 This file contains any messages produced by compilers while
418 running configure, to aid debugging if configure makes a mistake.
421 # Strip out --no-create and --no-recursion so they do not pile up.
422 # Also quote any args containing shell metacharacters.
427 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
428 | --no-cr | --no-c) ;;
429 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
430 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
431 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
432 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
433 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
438 # Only set these to C if already set. These must not be set unconditionally
439 # because not all systems understand e.g. LANG=C (notably SCO).
440 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
441 # Non-C LC_CTYPE values break the ctype check.
442 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
443 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
444 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
445 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
447 # confdefs.h avoids OS command line length limits that DEFS can exceed.
448 rm -rf conftest* confdefs.h
449 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
452 # A filename unique to this package, relative to the directory that
453 # configure is in, which we can look for to find out if srcdir is correct.
454 ac_unique_file=thttpd.c
456 # Find the source files, if location was not specified.
457 if test -z "$srcdir"; then
458 ac_srcdir_defaulted=yes
459 # Try the directory containing this script, then its parent.
461 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
462 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
464 if test ! -r $srcdir/$ac_unique_file; then
468 ac_srcdir_defaulted=no
470 if test ! -r $srcdir/$ac_unique_file; then
471 if test "$ac_srcdir_defaulted" = yes; then
472 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
474 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
477 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
479 # Prefer explicitly selected file to automatically selected ones.
480 if test -z "$CONFIG_SITE"; then
481 if test "x$prefix" != xNONE; then
482 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
484 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
487 for ac_site_file in $CONFIG_SITE; do
488 if test -r "$ac_site_file"; then
489 echo "loading site script $ac_site_file"
494 if test -r "$cache_file"; then
495 echo "loading cache $cache_file"
498 echo "creating cache $cache_file"
503 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
504 ac_cpp='$CPP $CPPFLAGS'
505 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
506 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
507 cross_compiling=$ac_cv_prog_cc_cross
511 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
512 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
513 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
520 ac_n= ac_c='\c' ac_t=
526 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
527 if test -f $ac_dir/install-sh; then
529 ac_install_sh="$ac_aux_dir/install-sh -c"
531 elif test -f $ac_dir/install.sh; then
533 ac_install_sh="$ac_aux_dir/install.sh -c"
537 if test -z "$ac_aux_dir"; then
538 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
540 ac_config_guess=$ac_aux_dir/config.guess
541 ac_config_sub=$ac_aux_dir/config.sub
542 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
545 # Do some error checking and defaulting for the host and target type.
547 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
550 # 1. You are not allowed to specify --host, --target, and nonopt at the
552 # 2. Host defaults to nonopt.
553 # 3. If nonopt is not specified, then host defaults to the current host,
554 # as determined by config.guess.
555 # 4. Target and build default to nonopt.
556 # 5. If nonopt is not specified, then target and build default to host.
558 # The aliases save the names the user supplied, while $host etc.
559 # will get canonicalized.
560 case $host---$target---$nonopt in
561 NONE---*---* | *---NONE---* | *---*---NONE) ;;
562 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
566 # Make sure we can run config.sub.
567 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
568 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
571 echo $ac_n "checking host system type""... $ac_c" 1>&6
572 echo "configure:573: checking host system type" >&5
575 case "$host_alias" in
579 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
580 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
582 *) host_alias=$nonopt ;;
586 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
587 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
588 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
589 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
590 echo "$ac_t""$host" 1>&6
592 echo $ac_n "checking target system type""... $ac_c" 1>&6
593 echo "configure:594: checking target system type" >&5
596 case "$target_alias" in
599 NONE) target_alias=$host_alias ;;
600 *) target_alias=$nonopt ;;
604 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
605 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
606 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
607 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
608 echo "$ac_t""$target" 1>&6
610 echo $ac_n "checking build system type""... $ac_c" 1>&6
611 echo "configure:612: checking build system type" >&5
614 case "$build_alias" in
617 NONE) build_alias=$host_alias ;;
618 *) build_alias=$nonopt ;;
622 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
623 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
624 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
625 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
626 echo "$ac_t""$build" 1>&6
628 test "$host_alias" != "$target_alias" &&
629 test "$program_prefix$program_suffix$program_transform_name" = \
631 program_prefix=${target_alias}-
634 # Extract the first word of "gcc", so it can be a program name with args.
635 set dummy gcc; ac_word=$2
636 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
637 echo "configure:638: checking for $ac_word" >&5
638 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
639 echo $ac_n "(cached) $ac_c" 1>&6
641 if test -n "$CC"; then
642 ac_cv_prog_CC="$CC" # Let the user override the test.
644 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
646 for ac_dir in $ac_dummy; do
647 test -z "$ac_dir" && ac_dir=.
648 if test -f $ac_dir/$ac_word; then
657 if test -n "$CC"; then
658 echo "$ac_t""$CC" 1>&6
660 echo "$ac_t""no" 1>&6
663 if test -z "$CC"; then
664 # Extract the first word of "cc", so it can be a program name with args.
665 set dummy cc; ac_word=$2
666 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
667 echo "configure:668: checking for $ac_word" >&5
668 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
669 echo $ac_n "(cached) $ac_c" 1>&6
671 if test -n "$CC"; then
672 ac_cv_prog_CC="$CC" # Let the user override the test.
674 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
677 for ac_dir in $ac_dummy; do
678 test -z "$ac_dir" && ac_dir=.
679 if test -f $ac_dir/$ac_word; then
680 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
689 if test $ac_prog_rejected = yes; then
690 # We found a bogon in the path, so make sure we never use it.
691 set dummy $ac_cv_prog_CC
693 if test $# -gt 0; then
694 # We chose a different compiler from the bogus one.
695 # However, it has the same basename, so the bogon will be chosen
696 # first if we set CC to just the basename; use the full file name.
698 set dummy "$ac_dir/$ac_word" "$@"
706 if test -n "$CC"; then
707 echo "$ac_t""$CC" 1>&6
709 echo "$ac_t""no" 1>&6
712 if test -z "$CC"; then
715 # Extract the first word of "cl", so it can be a program name with args.
716 set dummy cl; ac_word=$2
717 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
718 echo "configure:719: checking for $ac_word" >&5
719 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
720 echo $ac_n "(cached) $ac_c" 1>&6
722 if test -n "$CC"; then
723 ac_cv_prog_CC="$CC" # Let the user override the test.
725 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
727 for ac_dir in $ac_dummy; do
728 test -z "$ac_dir" && ac_dir=.
729 if test -f $ac_dir/$ac_word; then
738 if test -n "$CC"; then
739 echo "$ac_t""$CC" 1>&6
741 echo "$ac_t""no" 1>&6
746 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
749 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
750 echo "configure:751: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
753 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
754 ac_cpp='$CPP $CPPFLAGS'
755 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
756 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
757 cross_compiling=$ac_cv_prog_cc_cross
759 cat > conftest.$ac_ext << EOF
761 #line 762 "configure"
762 #include "confdefs.h"
766 if { (eval echo configure:767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
767 ac_cv_prog_cc_works=yes
768 # If we can't run a trivial program, we are probably using a cross compiler.
769 if (./conftest; exit) 2>/dev/null; then
770 ac_cv_prog_cc_cross=no
772 ac_cv_prog_cc_cross=yes
775 echo "configure: failed program was:" >&5
776 cat conftest.$ac_ext >&5
777 ac_cv_prog_cc_works=no
781 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
782 ac_cpp='$CPP $CPPFLAGS'
783 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
784 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
785 cross_compiling=$ac_cv_prog_cc_cross
787 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
788 if test $ac_cv_prog_cc_works = no; then
789 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
791 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
792 echo "configure:793: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
793 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
794 cross_compiling=$ac_cv_prog_cc_cross
796 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
797 echo "configure:798: checking whether we are using GNU C" >&5
798 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
799 echo $ac_n "(cached) $ac_c" 1>&6
801 cat > conftest.c <<EOF
806 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:807: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
813 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
815 if test $ac_cv_prog_gcc = yes; then
821 ac_test_CFLAGS="${CFLAGS+set}"
822 ac_save_CFLAGS="$CFLAGS"
824 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
825 echo "configure:826: checking whether ${CC-cc} accepts -g" >&5
826 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
827 echo $ac_n "(cached) $ac_c" 1>&6
829 echo 'void f(){}' > conftest.c
830 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
839 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
840 if test "$ac_test_CFLAGS" = set; then
841 CFLAGS="$ac_save_CFLAGS"
842 elif test $ac_cv_prog_cc_g = yes; then
843 if test "$GCC" = yes; then
849 if test "$GCC" = yes; then
858 if test "$GCC" = yes ; then
859 echo $ac_n "checking gcc version""... $ac_c" 1>&6
860 echo "configure:861: checking gcc version" >&5
861 if eval "test \"`echo '$''{'ac_cv_lbl_gcc_vers'+set}'`\" = set"; then
862 echo $ac_n "(cached) $ac_c" 1>&6
864 ac_cv_lbl_gcc_vers=`$CC -dumpversion 2>&1 | \
868 echo "$ac_t""$ac_cv_lbl_gcc_vers" 1>&6
869 if test "$ac_cv_lbl_gcc_vers" -gt 1 ; then
873 if test -f .devel ; then
874 V_CCOPT="-g $V_CCOPT -ansi -pedantic -U__STRICT_ANSI__ -Wall -Wpointer-arith -Wshadow -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wno-long-long"
877 echo $ac_n "checking how to link static binaries""... $ac_c" 1>&6
878 echo "configure:879: checking how to link static binaries" >&5
879 if eval "test \"`echo '$''{'ac_cv_lbl_static_flag'+set}'`\" = set"; then
880 echo $ac_n "(cached) $ac_c" 1>&6
882 ac_cv_lbl_static_flag=unknown
883 echo 'main() {}' > conftest.c
884 if test "$GCC" != yes ; then
885 trial_flag="-Bstatic"
886 test=`$CC $trial_flag -o conftest conftest.c 2>&1`
887 if test -z "$test" ; then
888 ac_cv_lbl_static_flag="$trial_flag"
892 if test "$ac_cv_lbl_static_flag" = unknown ; then
894 test=`$CC $trial_flag -o conftest conftest.c 2>&1`
895 if test -z "$test" ; then
896 ac_cv_lbl_static_flag="$trial_flag"
903 echo "$ac_t""$ac_cv_lbl_static_flag" 1>&6
904 if test "$ac_cv_lbl_static_flag" != unknown ; then
905 V_STATICFLAG="$ac_cv_lbl_static_flag"
908 echo $ac_n "checking for __progname""... $ac_c" 1>&6
909 echo "configure:910: checking for __progname" >&5
910 if eval "test \"`echo '$''{'ac_cv_extern__progname'+set}'`\" = set"; then
911 echo $ac_n "(cached) $ac_c" 1>&6
913 cat > conftest.$ac_ext <<EOF
914 #line 915 "configure"
915 #include "confdefs.h"
918 extern char *__progname;
922 if { (eval echo configure:923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
924 ac_cv_extern__progname=yes
926 echo "configure: failed program was:" >&5
927 cat conftest.$ac_ext >&5
929 ac_cv_extern__progname=no
934 if test $ac_cv_extern__progname = yes ; then
935 cat >> confdefs.h <<\EOF
936 #define HAVE__PROGNAME 1
939 echo "$ac_t""yes" 1>&6
941 echo "$ac_t""no" 1>&6
944 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
945 echo "configure:946: checking how to run the C preprocessor" >&5
946 # On Suns, sometimes $CPP names a directory.
947 if test -n "$CPP" && test -d "$CPP"; then
950 if test -z "$CPP"; then
951 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
952 echo $ac_n "(cached) $ac_c" 1>&6
954 # This must be in double quotes, not single quotes, because CPP may get
955 # substituted into the Makefile and "${CC-cc}" will confuse make.
957 # On the NeXT, cc -E runs the code through the compiler's parser,
958 # not just through cpp.
959 cat > conftest.$ac_ext <<EOF
960 #line 961 "configure"
961 #include "confdefs.h"
965 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
966 { (eval echo configure:967: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
967 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
968 if test -z "$ac_err"; then
972 echo "configure: failed program was:" >&5
973 cat conftest.$ac_ext >&5
975 CPP="${CC-cc} -E -traditional-cpp"
976 cat > conftest.$ac_ext <<EOF
977 #line 978 "configure"
978 #include "confdefs.h"
982 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
983 { (eval echo configure:984: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
984 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
985 if test -z "$ac_err"; then
989 echo "configure: failed program was:" >&5
990 cat conftest.$ac_ext >&5
992 CPP="${CC-cc} -nologo -E"
993 cat > conftest.$ac_ext <<EOF
994 #line 995 "configure"
995 #include "confdefs.h"
999 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1000 { (eval echo configure:1001: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1001 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1002 if test -z "$ac_err"; then
1006 echo "configure: failed program was:" >&5
1007 cat conftest.$ac_ext >&5
1016 ac_cv_prog_CPP="$CPP"
1018 CPP="$ac_cv_prog_CPP"
1020 ac_cv_prog_CPP="$CPP"
1022 echo "$ac_t""$CPP" 1>&6
1024 for ac_hdr in fcntl.h grp.h memory.h paths.h poll.h sys/poll.h sys/devpoll.h sys/event.h osreldate.h
1026 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1027 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1028 echo "configure:1029: checking for $ac_hdr" >&5
1029 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1030 echo $ac_n "(cached) $ac_c" 1>&6
1032 cat > conftest.$ac_ext <<EOF
1033 #line 1034 "configure"
1034 #include "confdefs.h"
1037 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1038 { (eval echo configure:1039: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1039 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1040 if test -z "$ac_err"; then
1042 eval "ac_cv_header_$ac_safe=yes"
1045 echo "configure: failed program was:" >&5
1046 cat conftest.$ac_ext >&5
1048 eval "ac_cv_header_$ac_safe=no"
1052 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1053 echo "$ac_t""yes" 1>&6
1054 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1055 cat >> confdefs.h <<EOF
1056 #define $ac_tr_hdr 1
1060 echo "$ac_t""no" 1>&6
1064 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1065 echo "configure:1066: checking whether time.h and sys/time.h may both be included" >&5
1066 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1067 echo $ac_n "(cached) $ac_c" 1>&6
1069 cat > conftest.$ac_ext <<EOF
1070 #line 1071 "configure"
1071 #include "confdefs.h"
1072 #include <sys/types.h>
1073 #include <sys/time.h>
1079 if { (eval echo configure:1080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1081 ac_cv_header_time=yes
1083 echo "configure: failed program was:" >&5
1084 cat conftest.$ac_ext >&5
1086 ac_cv_header_time=no
1091 echo "$ac_t""$ac_cv_header_time" 1>&6
1092 if test $ac_cv_header_time = yes; then
1093 cat >> confdefs.h <<\EOF
1094 #define TIME_WITH_SYS_TIME 1
1100 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1102 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1103 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1104 echo "configure:1105: checking for $ac_hdr that defines DIR" >&5
1105 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1106 echo $ac_n "(cached) $ac_c" 1>&6
1108 cat > conftest.$ac_ext <<EOF
1109 #line 1110 "configure"
1110 #include "confdefs.h"
1111 #include <sys/types.h>
1117 if { (eval echo configure:1118: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1119 eval "ac_cv_header_dirent_$ac_safe=yes"
1121 echo "configure: failed program was:" >&5
1122 cat conftest.$ac_ext >&5
1124 eval "ac_cv_header_dirent_$ac_safe=no"
1128 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1129 echo "$ac_t""yes" 1>&6
1130 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1131 cat >> confdefs.h <<EOF
1132 #define $ac_tr_hdr 1
1134 ac_header_dirent=$ac_hdr; break
1136 echo "$ac_t""no" 1>&6
1139 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1140 if test $ac_header_dirent = dirent.h; then
1141 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1142 echo "configure:1143: checking for opendir in -ldir" >&5
1143 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1144 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1145 echo $ac_n "(cached) $ac_c" 1>&6
1147 ac_save_LIBS="$LIBS"
1149 cat > conftest.$ac_ext <<EOF
1150 #line 1151 "configure"
1151 #include "confdefs.h"
1152 /* Override any gcc2 internal prototype to avoid an error. */
1153 /* We use char because int might match the return type of a gcc2
1154 builtin and then its argument prototype would still apply. */
1161 if { (eval echo configure:1162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1163 eval "ac_cv_lib_$ac_lib_var=yes"
1165 echo "configure: failed program was:" >&5
1166 cat conftest.$ac_ext >&5
1168 eval "ac_cv_lib_$ac_lib_var=no"
1171 LIBS="$ac_save_LIBS"
1174 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1175 echo "$ac_t""yes" 1>&6
1178 echo "$ac_t""no" 1>&6
1182 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1183 echo "configure:1184: checking for opendir in -lx" >&5
1184 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1185 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1186 echo $ac_n "(cached) $ac_c" 1>&6
1188 ac_save_LIBS="$LIBS"
1190 cat > conftest.$ac_ext <<EOF
1191 #line 1192 "configure"
1192 #include "confdefs.h"
1193 /* Override any gcc2 internal prototype to avoid an error. */
1194 /* We use char because int might match the return type of a gcc2
1195 builtin and then its argument prototype would still apply. */
1202 if { (eval echo configure:1203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1204 eval "ac_cv_lib_$ac_lib_var=yes"
1206 echo "configure: failed program was:" >&5
1207 cat conftest.$ac_ext >&5
1209 eval "ac_cv_lib_$ac_lib_var=no"
1212 LIBS="$ac_save_LIBS"
1215 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1216 echo "$ac_t""yes" 1>&6
1219 echo "$ac_t""no" 1>&6
1225 d="/usr/local/v6/lib"
1226 echo $ac_n "checking for $d""... $ac_c" 1>&6
1227 echo "configure:1228: checking for $d" >&5
1229 echo "$ac_t""yes (Adding -L$d to LDFLAGS)" 1>&6
1230 LDFLAGS="$LDFLAGS -L$d"
1232 echo "$ac_t""no" 1>&6
1236 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1237 echo "configure:1238: checking for gethostbyname" >&5
1238 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1239 echo $ac_n "(cached) $ac_c" 1>&6
1241 cat > conftest.$ac_ext <<EOF
1242 #line 1243 "configure"
1243 #include "confdefs.h"
1244 /* System header to define __stub macros and hopefully few prototypes,
1245 which can conflict with char gethostbyname(); below. */
1247 /* Override any gcc2 internal prototype to avoid an error. */
1248 /* We use char because int might match the return type of a gcc2
1249 builtin and then its argument prototype would still apply. */
1250 char gethostbyname();
1254 /* The GNU C library defines this for functions which it implements
1255 to always fail with ENOSYS. Some functions are actually named
1256 something starting with __ and the normal name is an alias. */
1257 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1265 if { (eval echo configure:1266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1267 eval "ac_cv_func_gethostbyname=yes"
1269 echo "configure: failed program was:" >&5
1270 cat conftest.$ac_ext >&5
1272 eval "ac_cv_func_gethostbyname=no"
1277 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1278 echo "$ac_t""yes" 1>&6
1281 echo "$ac_t""no" 1>&6
1282 # Some OSes (eg. Solaris) place it in libnsl:
1283 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1284 echo "configure:1285: checking for gethostbyname in -lnsl" >&5
1285 ac_lib_var=`echo nsl'_'gethostbyname'_' | sed 'y%./+- %__p__%'`
1286 if eval "test \"`echo '$''{'ac_cv_lbl_lib_$ac_lib_var'+set}'`\" = set"; then
1287 echo $ac_n "(cached) $ac_c" 1>&6
1289 ac_save_LIBS="$LIBS"
1291 cat > conftest.$ac_ext <<EOF
1292 #line 1293 "configure"
1293 #include "confdefs.h"
1294 /* Override any gcc2 internal prototype to avoid an error. */
1295 /* We use char because int might match the return type of a gcc2
1296 builtin and then its argument prototype would still apply. */
1297 char gethostbyname();
1303 if { (eval echo configure:1304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1305 eval "ac_cv_lbl_lib_$ac_lib_var=yes"
1307 echo "configure: failed program was:" >&5
1308 cat conftest.$ac_ext >&5
1310 eval "ac_cv_lbl_lib_$ac_lib_var=no"
1313 LIBS="$ac_save_LIBS"
1316 if eval "test \"`echo '$ac_cv_lbl_lib_'$ac_lib_var`\" = yes"; then
1317 echo "$ac_t""yes" 1>&6
1318 V_NETLIBS="-lnsl $V_NETLIBS"
1320 echo "$ac_t""no" 1>&6
1321 # Some strange OSes (SINIX) have it in libsocket:
1322 echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6
1323 echo "configure:1324: checking for gethostbyname in -lsocket" >&5
1324 ac_lib_var=`echo socket'_'gethostbyname'_' | sed 'y%./+- %__p__%'`
1325 if eval "test \"`echo '$''{'ac_cv_lbl_lib_$ac_lib_var'+set}'`\" = set"; then
1326 echo $ac_n "(cached) $ac_c" 1>&6
1328 ac_save_LIBS="$LIBS"
1329 LIBS="-lsocket $LIBS"
1330 cat > conftest.$ac_ext <<EOF
1331 #line 1332 "configure"
1332 #include "confdefs.h"
1333 /* Override any gcc2 internal prototype to avoid an error. */
1334 /* We use char because int might match the return type of a gcc2
1335 builtin and then its argument prototype would still apply. */
1336 char gethostbyname();
1342 if { (eval echo configure:1343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1344 eval "ac_cv_lbl_lib_$ac_lib_var=yes"
1346 echo "configure: failed program was:" >&5
1347 cat conftest.$ac_ext >&5
1349 eval "ac_cv_lbl_lib_$ac_lib_var=no"
1352 LIBS="$ac_save_LIBS"
1355 if eval "test \"`echo '$ac_cv_lbl_lib_'$ac_lib_var`\" = yes"; then
1356 echo "$ac_t""yes" 1>&6
1357 V_NETLIBS="-lsocket $V_NETLIBS"
1359 echo "$ac_t""no" 1>&6
1360 # Unfortunately libsocket sometimes depends on libnsl.
1361 # AC_CHECK_LIB's API is essentially broken so the
1362 # following ugliness is necessary:
1363 echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6
1364 echo "configure:1365: checking for gethostbyname in -lsocket" >&5
1365 ac_lib_var=`echo socket'_'gethostbyname'_'-lnsl | sed 'y%./+- %__p__%'`
1366 if eval "test \"`echo '$''{'ac_cv_lbl_lib_$ac_lib_var'+set}'`\" = set"; then
1367 echo $ac_n "(cached) $ac_c" 1>&6
1369 ac_save_LIBS="$LIBS"
1370 LIBS="-lsocket -lnsl $LIBS"
1371 cat > conftest.$ac_ext <<EOF
1372 #line 1373 "configure"
1373 #include "confdefs.h"
1374 /* Override any gcc2 internal prototype to avoid an error. */
1375 /* We use char because int might match the return type of a gcc2
1376 builtin and then its argument prototype would still apply. */
1377 char gethostbyname();
1383 if { (eval echo configure:1384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1385 eval "ac_cv_lbl_lib_$ac_lib_var=yes"
1387 echo "configure: failed program was:" >&5
1388 cat conftest.$ac_ext >&5
1390 eval "ac_cv_lbl_lib_$ac_lib_var=no"
1393 LIBS="$ac_save_LIBS"
1396 if eval "test \"`echo '$ac_cv_lbl_lib_'$ac_lib_var`\" = yes"; then
1397 echo "$ac_t""yes" 1>&6
1398 V_NETLIBS="-lsocket -lnsl $V_NETLIBS"
1400 echo "$ac_t""no" 1>&6
1401 echo $ac_n "checking for gethostbyname in -lresolv""... $ac_c" 1>&6
1402 echo "configure:1403: checking for gethostbyname in -lresolv" >&5
1403 ac_lib_var=`echo resolv'_'gethostbyname | sed 'y%./+-%__p_%'`
1404 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1405 echo $ac_n "(cached) $ac_c" 1>&6
1407 ac_save_LIBS="$LIBS"
1408 LIBS="-lresolv $LIBS"
1409 cat > conftest.$ac_ext <<EOF
1410 #line 1411 "configure"
1411 #include "confdefs.h"
1412 /* Override any gcc2 internal prototype to avoid an error. */
1413 /* We use char because int might match the return type of a gcc2
1414 builtin and then its argument prototype would still apply. */
1415 char gethostbyname();
1421 if { (eval echo configure:1422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1423 eval "ac_cv_lib_$ac_lib_var=yes"
1425 echo "configure: failed program was:" >&5
1426 cat conftest.$ac_ext >&5
1428 eval "ac_cv_lib_$ac_lib_var=no"
1431 LIBS="$ac_save_LIBS"
1434 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1435 echo "$ac_t""yes" 1>&6
1436 V_NETLIBS="-lresolv $V_NETLIBS"
1438 echo "$ac_t""no" 1>&6
1449 echo $ac_n "checking for socket""... $ac_c" 1>&6
1450 echo "configure:1451: checking for socket" >&5
1451 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
1452 echo $ac_n "(cached) $ac_c" 1>&6
1454 cat > conftest.$ac_ext <<EOF
1455 #line 1456 "configure"
1456 #include "confdefs.h"
1457 /* System header to define __stub macros and hopefully few prototypes,
1458 which can conflict with char socket(); below. */
1460 /* Override any gcc2 internal prototype to avoid an error. */
1461 /* We use char because int might match the return type of a gcc2
1462 builtin and then its argument prototype would still apply. */
1467 /* The GNU C library defines this for functions which it implements
1468 to always fail with ENOSYS. Some functions are actually named
1469 something starting with __ and the normal name is an alias. */
1470 #if defined (__stub_socket) || defined (__stub___socket)
1478 if { (eval echo configure:1479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1480 eval "ac_cv_func_socket=yes"
1482 echo "configure: failed program was:" >&5
1483 cat conftest.$ac_ext >&5
1485 eval "ac_cv_func_socket=no"
1490 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
1491 echo "$ac_t""yes" 1>&6
1494 echo "$ac_t""no" 1>&6
1495 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1496 echo "configure:1497: checking for socket in -lsocket" >&5
1497 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
1498 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1499 echo $ac_n "(cached) $ac_c" 1>&6
1501 ac_save_LIBS="$LIBS"
1502 LIBS="-lsocket $LIBS"
1503 cat > conftest.$ac_ext <<EOF
1504 #line 1505 "configure"
1505 #include "confdefs.h"
1506 /* Override any gcc2 internal prototype to avoid an error. */
1507 /* We use char because int might match the return type of a gcc2
1508 builtin and then its argument prototype would still apply. */
1515 if { (eval echo configure:1516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1517 eval "ac_cv_lib_$ac_lib_var=yes"
1519 echo "configure: failed program was:" >&5
1520 cat conftest.$ac_ext >&5
1522 eval "ac_cv_lib_$ac_lib_var=no"
1525 LIBS="$ac_save_LIBS"
1528 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1529 echo "$ac_t""yes" 1>&6
1530 V_NETLIBS="-lsocket $V_NETLIBS"
1532 echo "$ac_t""no" 1>&6
1533 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1534 echo "configure:1535: checking for socket in -lsocket" >&5
1535 ac_lib_var=`echo socket'_'socket'_'-lnsl | sed 'y%./+- %__p__%'`
1536 if eval "test \"`echo '$''{'ac_cv_lbl_lib_$ac_lib_var'+set}'`\" = set"; then
1537 echo $ac_n "(cached) $ac_c" 1>&6
1539 ac_save_LIBS="$LIBS"
1540 LIBS="-lsocket -lnsl $LIBS"
1541 cat > conftest.$ac_ext <<EOF
1542 #line 1543 "configure"
1543 #include "confdefs.h"
1544 /* Override any gcc2 internal prototype to avoid an error. */
1545 /* We use char because int might match the return type of a gcc2
1546 builtin and then its argument prototype would still apply. */
1553 if { (eval echo configure:1554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1555 eval "ac_cv_lbl_lib_$ac_lib_var=yes"
1557 echo "configure: failed program was:" >&5
1558 cat conftest.$ac_ext >&5
1560 eval "ac_cv_lbl_lib_$ac_lib_var=no"
1563 LIBS="$ac_save_LIBS"
1566 if eval "test \"`echo '$ac_cv_lbl_lib_'$ac_lib_var`\" = yes"; then
1567 echo "$ac_t""yes" 1>&6
1568 V_NETLIBS="-lsocket -lnsl $V_NETLIBS"
1570 echo "$ac_t""no" 1>&6
1578 echo $ac_n "checking for main in -linet6""... $ac_c" 1>&6
1579 echo "configure:1580: checking for main in -linet6" >&5
1580 ac_lib_var=`echo inet6'_'main | sed 'y%./+-%__p_%'`
1581 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1582 echo $ac_n "(cached) $ac_c" 1>&6
1584 ac_save_LIBS="$LIBS"
1585 LIBS="-linet6 $LIBS"
1586 cat > conftest.$ac_ext <<EOF
1587 #line 1588 "configure"
1588 #include "confdefs.h"
1594 if { (eval echo configure:1595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1596 eval "ac_cv_lib_$ac_lib_var=yes"
1598 echo "configure: failed program was:" >&5
1599 cat conftest.$ac_ext >&5
1601 eval "ac_cv_lib_$ac_lib_var=no"
1604 LIBS="$ac_save_LIBS"
1607 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1608 echo "$ac_t""yes" 1>&6
1609 ac_tr_lib=HAVE_LIB`echo inet6 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1610 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1611 cat >> confdefs.h <<EOF
1612 #define $ac_tr_lib 1
1615 LIBS="-linet6 $LIBS"
1618 echo "$ac_t""no" 1>&6
1622 echo $ac_n "checking for crypt""... $ac_c" 1>&6
1623 echo "configure:1624: checking for crypt" >&5
1624 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
1625 echo $ac_n "(cached) $ac_c" 1>&6
1627 cat > conftest.$ac_ext <<EOF
1628 #line 1629 "configure"
1629 #include "confdefs.h"
1630 /* System header to define __stub macros and hopefully few prototypes,
1631 which can conflict with char crypt(); below. */
1633 /* Override any gcc2 internal prototype to avoid an error. */
1634 /* We use char because int might match the return type of a gcc2
1635 builtin and then its argument prototype would still apply. */
1640 /* The GNU C library defines this for functions which it implements
1641 to always fail with ENOSYS. Some functions are actually named
1642 something starting with __ and the normal name is an alias. */
1643 #if defined (__stub_crypt) || defined (__stub___crypt)
1651 if { (eval echo configure:1652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1653 eval "ac_cv_func_crypt=yes"
1655 echo "configure: failed program was:" >&5
1656 cat conftest.$ac_ext >&5
1658 eval "ac_cv_func_crypt=no"
1663 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
1664 echo "$ac_t""yes" 1>&6
1667 echo "$ac_t""no" 1>&6
1668 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
1669 echo "configure:1670: checking for crypt in -lcrypt" >&5
1670 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
1671 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1672 echo $ac_n "(cached) $ac_c" 1>&6
1674 ac_save_LIBS="$LIBS"
1675 LIBS="-lcrypt $LIBS"
1676 cat > conftest.$ac_ext <<EOF
1677 #line 1678 "configure"
1678 #include "confdefs.h"
1679 /* Override any gcc2 internal prototype to avoid an error. */
1680 /* We use char because int might match the return type of a gcc2
1681 builtin and then its argument prototype would still apply. */
1688 if { (eval echo configure:1689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1690 eval "ac_cv_lib_$ac_lib_var=yes"
1692 echo "configure: failed program was:" >&5
1693 cat conftest.$ac_ext >&5
1695 eval "ac_cv_lib_$ac_lib_var=no"
1698 LIBS="$ac_save_LIBS"
1701 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1702 echo "$ac_t""yes" 1>&6
1703 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/^a-zA-Z0-9_/_/g' \
1704 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1705 cat >> confdefs.h <<EOF
1706 #define $ac_tr_lib 1
1709 LIBS="-lcrypt $LIBS"
1712 echo "$ac_t""no" 1>&6
1717 echo $ac_n "checking for hstrerror""... $ac_c" 1>&6
1718 echo "configure:1719: checking for hstrerror" >&5
1719 if eval "test \"`echo '$''{'ac_cv_func_hstrerror'+set}'`\" = set"; then
1720 echo $ac_n "(cached) $ac_c" 1>&6
1722 cat > conftest.$ac_ext <<EOF
1723 #line 1724 "configure"
1724 #include "confdefs.h"
1725 /* System header to define __stub macros and hopefully few prototypes,
1726 which can conflict with char hstrerror(); below. */
1728 /* Override any gcc2 internal prototype to avoid an error. */
1729 /* We use char because int might match the return type of a gcc2
1730 builtin and then its argument prototype would still apply. */
1735 /* The GNU C library defines this for functions which it implements
1736 to always fail with ENOSYS. Some functions are actually named
1737 something starting with __ and the normal name is an alias. */
1738 #if defined (__stub_hstrerror) || defined (__stub___hstrerror)
1746 if { (eval echo configure:1747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1748 eval "ac_cv_func_hstrerror=yes"
1750 echo "configure: failed program was:" >&5
1751 cat conftest.$ac_ext >&5
1753 eval "ac_cv_func_hstrerror=no"
1758 if eval "test \"`echo '$ac_cv_func_'hstrerror`\" = yes"; then
1759 echo "$ac_t""yes" 1>&6
1762 echo "$ac_t""no" 1>&6
1763 echo $ac_n "checking for hstrerror in -lresolv""... $ac_c" 1>&6
1764 echo "configure:1765: checking for hstrerror in -lresolv" >&5
1765 ac_lib_var=`echo resolv'_'hstrerror | sed 'y%./+-%__p_%'`
1766 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1767 echo $ac_n "(cached) $ac_c" 1>&6
1769 ac_save_LIBS="$LIBS"
1770 LIBS="-lresolv $LIBS"
1771 cat > conftest.$ac_ext <<EOF
1772 #line 1773 "configure"
1773 #include "confdefs.h"
1774 /* Override any gcc2 internal prototype to avoid an error. */
1775 /* We use char because int might match the return type of a gcc2
1776 builtin and then its argument prototype would still apply. */
1783 if { (eval echo configure:1784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1785 eval "ac_cv_lib_$ac_lib_var=yes"
1787 echo "configure: failed program was:" >&5
1788 cat conftest.$ac_ext >&5
1790 eval "ac_cv_lib_$ac_lib_var=no"
1793 LIBS="$ac_save_LIBS"
1796 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1797 echo "$ac_t""yes" 1>&6
1798 V_NETLIBS="-lresolv $V_NETLIBS"
1800 echo "$ac_t""no" 1>&6
1806 for ac_func in strerror
1808 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1809 echo "configure:1810: checking for $ac_func" >&5
1810 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1811 echo $ac_n "(cached) $ac_c" 1>&6
1813 cat > conftest.$ac_ext <<EOF
1814 #line 1815 "configure"
1815 #include "confdefs.h"
1816 /* System header to define __stub macros and hopefully few prototypes,
1817 which can conflict with char $ac_func(); below. */
1819 /* Override any gcc2 internal prototype to avoid an error. */
1820 /* We use char because int might match the return type of a gcc2
1821 builtin and then its argument prototype would still apply. */
1826 /* The GNU C library defines this for functions which it implements
1827 to always fail with ENOSYS. Some functions are actually named
1828 something starting with __ and the normal name is an alias. */
1829 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1837 if { (eval echo configure:1838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1839 eval "ac_cv_func_$ac_func=yes"
1841 echo "configure: failed program was:" >&5
1842 cat conftest.$ac_ext >&5
1844 eval "ac_cv_func_$ac_func=no"
1849 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1850 echo "$ac_t""yes" 1>&6
1851 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1852 cat >> confdefs.h <<EOF
1853 #define $ac_tr_func 1
1857 echo "$ac_t""no" 1>&6
1858 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
1863 for ac_func in waitpid vsnprintf daemon setsid setlogin getaddrinfo getnameinfo gai_strerror kqueue sigset atoll
1865 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1866 echo "configure:1867: checking for $ac_func" >&5
1867 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1868 echo $ac_n "(cached) $ac_c" 1>&6
1870 cat > conftest.$ac_ext <<EOF
1871 #line 1872 "configure"
1872 #include "confdefs.h"
1873 /* System header to define __stub macros and hopefully few prototypes,
1874 which can conflict with char $ac_func(); below. */
1876 /* Override any gcc2 internal prototype to avoid an error. */
1877 /* We use char because int might match the return type of a gcc2
1878 builtin and then its argument prototype would still apply. */
1883 /* The GNU C library defines this for functions which it implements
1884 to always fail with ENOSYS. Some functions are actually named
1885 something starting with __ and the normal name is an alias. */
1886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1894 if { (eval echo configure:1895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1896 eval "ac_cv_func_$ac_func=yes"
1898 echo "configure: failed program was:" >&5
1899 cat conftest.$ac_ext >&5
1901 eval "ac_cv_func_$ac_func=no"
1906 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1907 echo "$ac_t""yes" 1>&6
1908 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1909 cat >> confdefs.h <<EOF
1910 #define $ac_tr_func 1
1914 echo "$ac_t""no" 1>&6
1918 for ac_hdr in unistd.h
1920 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1921 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1922 echo "configure:1923: checking for $ac_hdr" >&5
1923 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1924 echo $ac_n "(cached) $ac_c" 1>&6
1926 cat > conftest.$ac_ext <<EOF
1927 #line 1928 "configure"
1928 #include "confdefs.h"
1931 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1932 { (eval echo configure:1933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1933 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1934 if test -z "$ac_err"; then
1936 eval "ac_cv_header_$ac_safe=yes"
1939 echo "configure: failed program was:" >&5
1940 cat conftest.$ac_ext >&5
1942 eval "ac_cv_header_$ac_safe=no"
1946 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1947 echo "$ac_t""yes" 1>&6
1948 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1949 cat >> confdefs.h <<EOF
1950 #define $ac_tr_hdr 1
1954 echo "$ac_t""no" 1>&6
1958 for ac_func in getpagesize
1960 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1961 echo "configure:1962: checking for $ac_func" >&5
1962 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1963 echo $ac_n "(cached) $ac_c" 1>&6
1965 cat > conftest.$ac_ext <<EOF
1966 #line 1967 "configure"
1967 #include "confdefs.h"
1968 /* System header to define __stub macros and hopefully few prototypes,
1969 which can conflict with char $ac_func(); below. */
1971 /* Override any gcc2 internal prototype to avoid an error. */
1972 /* We use char because int might match the return type of a gcc2
1973 builtin and then its argument prototype would still apply. */
1978 /* The GNU C library defines this for functions which it implements
1979 to always fail with ENOSYS. Some functions are actually named
1980 something starting with __ and the normal name is an alias. */
1981 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1989 if { (eval echo configure:1990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1991 eval "ac_cv_func_$ac_func=yes"
1993 echo "configure: failed program was:" >&5
1994 cat conftest.$ac_ext >&5
1996 eval "ac_cv_func_$ac_func=no"
2001 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2002 echo "$ac_t""yes" 1>&6
2003 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2004 cat >> confdefs.h <<EOF
2005 #define $ac_tr_func 1
2009 echo "$ac_t""no" 1>&6
2013 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2014 echo "configure:2015: checking for working mmap" >&5
2015 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2016 echo $ac_n "(cached) $ac_c" 1>&6
2018 if test "$cross_compiling" = yes; then
2019 ac_cv_func_mmap_fixed_mapped=no
2021 cat > conftest.$ac_ext <<EOF
2022 #line 2023 "configure"
2023 #include "confdefs.h"
2025 /* Thanks to Mike Haertel and Jim Avera for this test.
2026 Here is a matrix of mmap possibilities:
2027 mmap private not fixed
2028 mmap private fixed at somewhere currently unmapped
2029 mmap private fixed at somewhere already mapped
2030 mmap shared not fixed
2031 mmap shared fixed at somewhere currently unmapped
2032 mmap shared fixed at somewhere already mapped
2033 For private mappings, we should verify that changes cannot be read()
2034 back from the file, nor mmap's back from the file at a different
2035 address. (There have been systems where private was not correctly
2036 implemented like the infamous i386 svr4.0, and systems where the
2037 VM page cache was not coherent with the filesystem buffer cache
2038 like early versions of FreeBSD and possibly contemporary NetBSD.)
2039 For shared mappings, we should conversely verify that changes get
2040 propogated back to all the places they're supposed to be.
2042 Grep wants private fixed already mapped.
2043 The main things grep needs to know about mmap are:
2044 * does it exist and is it safe to write into the mmap'd area
2045 * how to use it (BSD variants) */
2046 #include <sys/types.h>
2048 #include <sys/mman.h>
2050 /* This mess was copied from the GNU getpagesize.h. */
2051 #ifndef HAVE_GETPAGESIZE
2052 # ifdef HAVE_UNISTD_H
2053 # include <unistd.h>
2056 /* Assume that all systems that can run configure have sys/param.h. */
2057 # ifndef HAVE_SYS_PARAM_H
2058 # define HAVE_SYS_PARAM_H 1
2061 # ifdef _SC_PAGESIZE
2062 # define getpagesize() sysconf(_SC_PAGESIZE)
2063 # else /* no _SC_PAGESIZE */
2064 # ifdef HAVE_SYS_PARAM_H
2065 # include <sys/param.h>
2066 # ifdef EXEC_PAGESIZE
2067 # define getpagesize() EXEC_PAGESIZE
2068 # else /* no EXEC_PAGESIZE */
2070 # define getpagesize() NBPG * CLSIZE
2073 # endif /* no CLSIZE */
2074 # else /* no NBPG */
2076 # define getpagesize() NBPC
2077 # else /* no NBPC */
2079 # define getpagesize() PAGESIZE
2080 # endif /* PAGESIZE */
2081 # endif /* no NBPC */
2082 # endif /* no NBPG */
2083 # endif /* no EXEC_PAGESIZE */
2084 # else /* no HAVE_SYS_PARAM_H */
2085 # define getpagesize() 8192 /* punt totally */
2086 # endif /* no HAVE_SYS_PARAM_H */
2087 # endif /* no _SC_PAGESIZE */
2089 #endif /* no HAVE_GETPAGESIZE */
2092 extern "C" { void *malloc(unsigned); }
2100 char *data, *data2, *data3;
2104 pagesize = getpagesize();
2107 * First, make a file with some known garbage in it.
2109 data = malloc(pagesize);
2112 for (i = 0; i < pagesize; ++i)
2113 *(data + i) = rand();
2115 fd = creat("conftestmmap", 0600);
2118 if (write(fd, data, pagesize) != pagesize)
2123 * Next, try to mmap the file at a fixed address which
2124 * already has something else allocated at it. If we can,
2125 * also make sure that we see the same garbage.
2127 fd = open("conftestmmap", O_RDWR);
2130 data2 = malloc(2 * pagesize);
2133 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2134 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2135 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2137 for (i = 0; i < pagesize; ++i)
2138 if (*(data + i) != *(data2 + i))
2142 * Finally, make sure that changes to the mapped area
2143 * do not percolate back to the file as seen by read().
2144 * (This is a bug on some variants of i386 svr4.0.)
2146 for (i = 0; i < pagesize; ++i)
2147 *(data2 + i) = *(data2 + i) + 1;
2148 data3 = malloc(pagesize);
2151 if (read(fd, data3, pagesize) != pagesize)
2153 for (i = 0; i < pagesize; ++i)
2154 if (*(data + i) != *(data3 + i))
2157 unlink("conftestmmap");
2162 if { (eval echo configure:2163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2164 ac_cv_func_mmap_fixed_mapped=yes
2166 echo "configure: failed program was:" >&5
2167 cat conftest.$ac_ext >&5
2169 ac_cv_func_mmap_fixed_mapped=no
2176 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2177 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2178 cat >> confdefs.h <<\EOF
2185 case "$target_os" in
2189 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2190 echo "configure:2191: checking for $ac_func" >&5
2191 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2192 echo $ac_n "(cached) $ac_c" 1>&6
2194 cat > conftest.$ac_ext <<EOF
2195 #line 2196 "configure"
2196 #include "confdefs.h"
2197 /* System header to define __stub macros and hopefully few prototypes,
2198 which can conflict with char $ac_func(); below. */
2200 /* Override any gcc2 internal prototype to avoid an error. */
2201 /* We use char because int might match the return type of a gcc2
2202 builtin and then its argument prototype would still apply. */
2207 /* The GNU C library defines this for functions which it implements
2208 to always fail with ENOSYS. Some functions are actually named
2209 something starting with __ and the normal name is an alias. */
2210 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2218 if { (eval echo configure:2219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2220 eval "ac_cv_func_$ac_func=yes"
2222 echo "configure: failed program was:" >&5
2223 cat conftest.$ac_ext >&5
2225 eval "ac_cv_func_$ac_func=no"
2230 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2231 echo "$ac_t""yes" 1>&6
2232 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2233 cat >> confdefs.h <<EOF
2234 #define $ac_tr_func 1
2238 echo "$ac_t""no" 1>&6
2244 for ac_func in select poll
2246 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2247 echo "configure:2248: checking for $ac_func" >&5
2248 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2249 echo $ac_n "(cached) $ac_c" 1>&6
2251 cat > conftest.$ac_ext <<EOF
2252 #line 2253 "configure"
2253 #include "confdefs.h"
2254 /* System header to define __stub macros and hopefully few prototypes,
2255 which can conflict with char $ac_func(); below. */
2257 /* Override any gcc2 internal prototype to avoid an error. */
2258 /* We use char because int might match the return type of a gcc2
2259 builtin and then its argument prototype would still apply. */
2264 /* The GNU C library defines this for functions which it implements
2265 to always fail with ENOSYS. Some functions are actually named
2266 something starting with __ and the normal name is an alias. */
2267 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2275 if { (eval echo configure:2276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2277 eval "ac_cv_func_$ac_func=yes"
2279 echo "configure: failed program was:" >&5
2280 cat conftest.$ac_ext >&5
2282 eval "ac_cv_func_$ac_func=no"
2287 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2288 echo "$ac_t""yes" 1>&6
2289 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2290 cat >> confdefs.h <<EOF
2291 #define $ac_tr_func 1
2295 echo "$ac_t""no" 1>&6
2302 echo $ac_n "checking if struct tm has tm_gmtoff member""... $ac_c" 1>&6
2303 echo "configure:2304: checking if struct tm has tm_gmtoff member" >&5
2304 if eval "test \"`echo '$''{'ac_cv_acme_tm_has_tm_gmtoff'+set}'`\" = set"; then
2305 echo $ac_n "(cached) $ac_c" 1>&6
2307 cat > conftest.$ac_ext <<EOF
2308 #line 2309 "configure"
2309 #include "confdefs.h"
2311 # include <sys/types.h>
2314 u_int i = sizeof(((struct tm *)0)->tm_gmtoff)
2317 if { (eval echo configure:2318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2319 ac_cv_acme_tm_has_tm_gmtoff=yes
2321 echo "configure: failed program was:" >&5
2322 cat conftest.$ac_ext >&5
2324 ac_cv_acme_tm_has_tm_gmtoff=no
2329 echo "$ac_t""$ac_cv_acme_tm_has_tm_gmtoff" 1>&6
2330 if test $ac_cv_acme_tm_has_tm_gmtoff = yes ; then
2331 cat >> confdefs.h <<\EOF
2332 #define HAVE_TM_GMTOFF 1
2336 echo $ac_n "checking if int64_t exists""... $ac_c" 1>&6
2337 echo "configure:2338: checking if int64_t exists" >&5
2338 if eval "test \"`echo '$''{'ac_cv_acme_int64_t'+set}'`\" = set"; then
2339 echo $ac_n "(cached) $ac_c" 1>&6
2341 cat > conftest.$ac_ext <<EOF
2342 #line 2343 "configure"
2343 #include "confdefs.h"
2345 # include <sys/types.h>
2350 if { (eval echo configure:2351: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2352 ac_cv_acme_int64_t=yes
2354 echo "configure: failed program was:" >&5
2355 cat conftest.$ac_ext >&5
2357 ac_cv_acme_int64_t=no
2362 echo "$ac_t""$ac_cv_acme_int64_t" 1>&6
2363 if test $ac_cv_acme_int64_t = yes ; then
2364 cat >> confdefs.h <<\EOF
2365 #define HAVE_INT64T 1
2369 echo $ac_n "checking if socklen_t exists""... $ac_c" 1>&6
2370 echo "configure:2371: checking if socklen_t exists" >&5
2371 if eval "test \"`echo '$''{'ac_cv_acme_socklen_t'+set}'`\" = set"; then
2372 echo $ac_n "(cached) $ac_c" 1>&6
2374 cat > conftest.$ac_ext <<EOF
2375 #line 2376 "configure"
2376 #include "confdefs.h"
2378 # include <sys/types.h>
2379 # include <sys/socket.h>
2384 if { (eval echo configure:2385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2386 ac_cv_acme_socklen_t=yes
2388 echo "configure: failed program was:" >&5
2389 cat conftest.$ac_ext >&5
2391 ac_cv_acme_socklen_t=no
2396 echo "$ac_t""$ac_cv_acme_socklen_t" 1>&6
2397 if test $ac_cv_acme_socklen_t = yes ; then
2398 cat >> confdefs.h <<\EOF
2399 #define HAVE_SOCKLENT 1
2404 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
2405 echo "configure:2406: checking whether ${MAKE-make} sets \${MAKE}" >&5
2406 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
2407 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
2408 echo $ac_n "(cached) $ac_c" 1>&6
2410 cat > conftestmake <<\EOF
2412 @echo 'ac_maketemp="${MAKE}"'
2414 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2415 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
2416 if test -n "$ac_maketemp"; then
2417 eval ac_cv_prog_make_${ac_make}_set=yes
2419 eval ac_cv_prog_make_${ac_make}_set=no
2423 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2424 echo "$ac_t""yes" 1>&6
2427 echo "$ac_t""no" 1>&6
2428 SET_MAKE="MAKE=${MAKE-make}"
2431 # Find a good install program. We prefer a C program (faster),
2432 # so one script is as good as another. But avoid the broken or
2433 # incompatible versions:
2434 # SysV /etc/install, /usr/sbin/install
2435 # SunOS /usr/etc/install
2436 # IRIX /sbin/install
2438 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2439 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2440 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2441 # ./install, which can be erroneously created by make from ./install.sh.
2442 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2443 echo "configure:2444: checking for a BSD compatible install" >&5
2444 if test -z "$INSTALL"; then
2445 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2446 echo $ac_n "(cached) $ac_c" 1>&6
2448 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2449 for ac_dir in $PATH; do
2450 # Account for people who put trailing slashes in PATH elements.
2452 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2454 # OSF1 and SCO ODT 3.0 have their own names for install.
2455 # Don't use installbsd from OSF since it installs stuff as root
2457 for ac_prog in ginstall scoinst install; do
2458 if test -f $ac_dir/$ac_prog; then
2459 if test $ac_prog = install &&
2460 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2461 # AIX install. It has an incompatible calling convention.
2464 ac_cv_path_install="$ac_dir/$ac_prog -c"
2475 if test "${ac_cv_path_install+set}" = set; then
2476 INSTALL="$ac_cv_path_install"
2478 # As a last resort, use the slow shell script. We don't cache a
2479 # path for INSTALL within a source directory, because that will
2480 # break other packages using the cache if that directory is
2481 # removed, or if the path is relative.
2482 INSTALL="$ac_install_sh"
2485 echo "$ac_t""$INSTALL" 1>&6
2487 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2488 # It thinks the first close brace ends the variable substitution.
2489 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2491 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2493 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2502 cat > confcache <<\EOF
2503 # This file is a shell script that caches the results of configure
2504 # tests run on this system so they can be shared between configure
2505 # scripts and configure runs. It is not useful on other systems.
2506 # If it contains results you don't want to keep, you may remove or edit it.
2508 # By default, configure uses ./config.cache as the cache file,
2509 # creating it if it does not exist already. You can give configure
2510 # the --cache-file=FILE option to use a different cache file; that is
2511 # what configure does when it calls configure scripts in
2512 # subdirectories, so they share the cache.
2513 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2514 # config.status only pays attention to the cache file if you give it the
2515 # --recheck option to rerun configure.
2518 # The following way of writing the cache mishandles newlines in values,
2519 # but we know of no workaround that is simple, portable, and efficient.
2520 # So, don't put newlines in cache variables' values.
2521 # Ultrix sh set writes to stderr and can't be redirected directly,
2522 # and sets the high bit in the cache file unless we assign to the vars.
2524 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2526 # `set' does not quote correctly, so add quotes (double-quote substitution
2527 # turns \\\\ into \\, and sed turns \\ into \).
2529 -e "s/'/'\\\\''/g" \
2530 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2533 # `set' quotes correctly as required by POSIX, so do not add quotes.
2534 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2537 if cmp -s $cache_file confcache; then
2540 if test -w $cache_file; then
2541 echo "updating cache $cache_file"
2542 cat confcache > $cache_file
2544 echo "not updating unwritable cache $cache_file"
2549 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2551 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2552 # Let make expand exec_prefix.
2553 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2555 # Any assignment to VPATH causes Sun make to only execute
2556 # the first set of double-colon rules, so remove it if not needed.
2557 # If there is a colon in the path, we need to keep it.
2558 if test "x$srcdir" = x.; then
2559 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2562 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2564 # Transform confdefs.h into DEFS.
2565 # Protect against shell expansion while executing Makefile rules.
2566 # Protect against Makefile macro expansion.
2567 cat > conftest.defs <<\EOF
2568 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2569 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2574 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2578 # Without the "./", some shells look in PATH for config.status.
2579 : ${CONFIG_STATUS=./config.status}
2581 echo creating $CONFIG_STATUS
2582 rm -f $CONFIG_STATUS
2583 cat > $CONFIG_STATUS <<EOF
2585 # Generated automatically by configure.
2586 # Run this file to recreate the current configuration.
2587 # This directory was configured as follows,
2588 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2590 # $0 $ac_configure_args
2592 # Compiler output produced by configure, useful for debugging
2593 # configure, is in ./config.log if it exists.
2595 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2598 case "\$ac_option" in
2599 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2600 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2601 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2602 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2603 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2605 -help | --help | --hel | --he | --h)
2606 echo "\$ac_cs_usage"; exit 0 ;;
2607 *) echo "\$ac_cs_usage"; exit 1 ;;
2611 ac_given_srcdir=$srcdir
2612 ac_given_INSTALL="$INSTALL"
2614 trap 'rm -fr `echo "Makefile cgi-src/Makefile extras/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2616 cat >> $CONFIG_STATUS <<EOF
2618 # Protect against being on the right side of a sed subst in config.status.
2619 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2620 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2624 s%@CFLAGS@%$CFLAGS%g
2625 s%@CPPFLAGS@%$CPPFLAGS%g
2626 s%@CXXFLAGS@%$CXXFLAGS%g
2627 s%@FFLAGS@%$FFLAGS%g
2629 s%@LDFLAGS@%$LDFLAGS%g
2631 s%@exec_prefix@%$exec_prefix%g
2632 s%@prefix@%$prefix%g
2633 s%@program_transform_name@%$program_transform_name%g
2634 s%@bindir@%$bindir%g
2635 s%@sbindir@%$sbindir%g
2636 s%@libexecdir@%$libexecdir%g
2637 s%@datadir@%$datadir%g
2638 s%@sysconfdir@%$sysconfdir%g
2639 s%@sharedstatedir@%$sharedstatedir%g
2640 s%@localstatedir@%$localstatedir%g
2641 s%@libdir@%$libdir%g
2642 s%@includedir@%$includedir%g
2643 s%@oldincludedir@%$oldincludedir%g
2644 s%@infodir@%$infodir%g
2645 s%@mandir@%$mandir%g
2647 s%@host_alias@%$host_alias%g
2648 s%@host_cpu@%$host_cpu%g
2649 s%@host_vendor@%$host_vendor%g
2650 s%@host_os@%$host_os%g
2651 s%@target@%$target%g
2652 s%@target_alias@%$target_alias%g
2653 s%@target_cpu@%$target_cpu%g
2654 s%@target_vendor@%$target_vendor%g
2655 s%@target_os@%$target_os%g
2657 s%@build_alias@%$build_alias%g
2658 s%@build_cpu@%$build_cpu%g
2659 s%@build_vendor@%$build_vendor%g
2660 s%@build_os@%$build_os%g
2663 s%@LIBOBJS@%$LIBOBJS%g
2664 s%@SET_MAKE@%$SET_MAKE%g
2665 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2666 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2667 s%@INSTALL_DATA@%$INSTALL_DATA%g
2668 s%@V_CCOPT@%$V_CCOPT%g
2669 s%@V_STATICFLAG@%$V_STATICFLAG%g
2670 s%@V_NETLIBS@%$V_NETLIBS%g
2675 cat >> $CONFIG_STATUS <<\EOF
2677 # Split the substitutions into bite-sized pieces for seds with
2678 # small command number limits, like on Digital OSF/1 and HP-UX.
2679 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2680 ac_file=1 # Number of current file.
2681 ac_beg=1 # First line for current file.
2682 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2685 while $ac_more_lines; do
2686 if test $ac_beg -gt 1; then
2687 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2689 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2691 if test ! -s conftest.s$ac_file; then
2693 rm -f conftest.s$ac_file
2695 if test -z "$ac_sed_cmds"; then
2696 ac_sed_cmds="sed -f conftest.s$ac_file"
2698 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2700 ac_file=`expr $ac_file + 1`
2702 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2705 if test -z "$ac_sed_cmds"; then
2710 cat >> $CONFIG_STATUS <<EOF
2712 CONFIG_FILES=\${CONFIG_FILES-"Makefile cgi-src/Makefile extras/Makefile"}
2714 cat >> $CONFIG_STATUS <<\EOF
2715 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2716 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2718 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2719 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2720 *) ac_file_in="${ac_file}.in" ;;
2723 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2725 # Remove last slash and all that follows it. Not all systems have dirname.
2726 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2727 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2728 # The file is in a subdirectory.
2729 test ! -d "$ac_dir" && mkdir "$ac_dir"
2730 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2731 # A "../" for each directory in $ac_dir_suffix.
2732 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2734 ac_dir_suffix= ac_dots=
2737 case "$ac_given_srcdir" in
2739 if test -z "$ac_dots"; then top_srcdir=.
2740 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2741 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2743 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2744 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2747 case "$ac_given_INSTALL" in
2748 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2749 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2752 echo creating "$ac_file"
2754 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2756 *Makefile*) ac_comsub="1i\\
2757 # $configure_input" ;;
2761 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2763 s%@configure_input@%$configure_input%g
2764 s%@srcdir@%$srcdir%g
2765 s%@top_srcdir@%$top_srcdir%g
2766 s%@INSTALL@%$INSTALL%g
2767 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2772 cat >> $CONFIG_STATUS <<EOF
2775 cat >> $CONFIG_STATUS <<\EOF
2779 chmod +x $CONFIG_STATUS
2780 rm -fr confdefs* $ac_clean_files
2781 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1