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=config-sh.in
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/.; 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/." 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.
549 # Extract the first word of "gcc", so it can be a program name with args.
550 set dummy gcc; ac_word=$2
551 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
552 echo "configure:553: checking for $ac_word" >&5
553 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
554 echo $ac_n "(cached) $ac_c" 1>&6
556 if test -n "$CC"; then
557 ac_cv_prog_CC="$CC" # Let the user override the test.
559 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
561 for ac_dir in $ac_dummy; do
562 test -z "$ac_dir" && ac_dir=.
563 if test -f $ac_dir/$ac_word; then
572 if test -n "$CC"; then
573 echo "$ac_t""$CC" 1>&6
575 echo "$ac_t""no" 1>&6
578 if test -z "$CC"; then
579 # Extract the first word of "cc", so it can be a program name with args.
580 set dummy cc; ac_word=$2
581 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
582 echo "configure:583: checking for $ac_word" >&5
583 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
584 echo $ac_n "(cached) $ac_c" 1>&6
586 if test -n "$CC"; then
587 ac_cv_prog_CC="$CC" # Let the user override the test.
589 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
592 for ac_dir in $ac_dummy; do
593 test -z "$ac_dir" && ac_dir=.
594 if test -f $ac_dir/$ac_word; then
595 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
604 if test $ac_prog_rejected = yes; then
605 # We found a bogon in the path, so make sure we never use it.
606 set dummy $ac_cv_prog_CC
608 if test $# -gt 0; then
609 # We chose a different compiler from the bogus one.
610 # However, it has the same basename, so the bogon will be chosen
611 # first if we set CC to just the basename; use the full file name.
613 set dummy "$ac_dir/$ac_word" "$@"
621 if test -n "$CC"; then
622 echo "$ac_t""$CC" 1>&6
624 echo "$ac_t""no" 1>&6
627 if test -z "$CC"; then
630 # Extract the first word of "cl", so it can be a program name with args.
631 set dummy cl; ac_word=$2
632 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
633 echo "configure:634: checking for $ac_word" >&5
634 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
635 echo $ac_n "(cached) $ac_c" 1>&6
637 if test -n "$CC"; then
638 ac_cv_prog_CC="$CC" # Let the user override the test.
640 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
642 for ac_dir in $ac_dummy; do
643 test -z "$ac_dir" && ac_dir=.
644 if test -f $ac_dir/$ac_word; then
653 if test -n "$CC"; then
654 echo "$ac_t""$CC" 1>&6
656 echo "$ac_t""no" 1>&6
661 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
664 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
665 echo "configure:666: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
668 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
669 ac_cpp='$CPP $CPPFLAGS'
670 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
671 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
672 cross_compiling=$ac_cv_prog_cc_cross
674 cat > conftest.$ac_ext << EOF
676 #line 677 "configure"
677 #include "confdefs.h"
681 if { (eval echo configure:682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
682 ac_cv_prog_cc_works=yes
683 # If we can't run a trivial program, we are probably using a cross compiler.
684 if (./conftest; exit) 2>/dev/null; then
685 ac_cv_prog_cc_cross=no
687 ac_cv_prog_cc_cross=yes
690 echo "configure: failed program was:" >&5
691 cat conftest.$ac_ext >&5
692 ac_cv_prog_cc_works=no
696 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
697 ac_cpp='$CPP $CPPFLAGS'
698 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
699 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
700 cross_compiling=$ac_cv_prog_cc_cross
702 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
703 if test $ac_cv_prog_cc_works = no; then
704 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
706 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
707 echo "configure:708: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
708 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
709 cross_compiling=$ac_cv_prog_cc_cross
711 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
712 echo "configure:713: checking whether we are using GNU C" >&5
713 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
714 echo $ac_n "(cached) $ac_c" 1>&6
716 cat > conftest.c <<EOF
721 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:722: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
728 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
730 if test $ac_cv_prog_gcc = yes; then
736 ac_test_CFLAGS="${CFLAGS+set}"
737 ac_save_CFLAGS="$CFLAGS"
739 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
740 echo "configure:741: checking whether ${CC-cc} accepts -g" >&5
741 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
742 echo $ac_n "(cached) $ac_c" 1>&6
744 echo 'void f(){}' > conftest.c
745 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
754 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
755 if test "$ac_test_CFLAGS" = set; then
756 CFLAGS="$ac_save_CFLAGS"
757 elif test $ac_cv_prog_cc_g = yes; then
758 if test "$GCC" = yes; then
764 if test "$GCC" = yes; then
772 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
773 echo "configure:774: checking how to run the C preprocessor" >&5
774 # On Suns, sometimes $CPP names a directory.
775 if test -n "$CPP" && test -d "$CPP"; then
778 if test -z "$CPP"; then
779 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
780 echo $ac_n "(cached) $ac_c" 1>&6
782 # This must be in double quotes, not single quotes, because CPP may get
783 # substituted into the Makefile and "${CC-cc}" will confuse make.
785 # On the NeXT, cc -E runs the code through the compiler's parser,
786 # not just through cpp.
787 cat > conftest.$ac_ext <<EOF
788 #line 789 "configure"
789 #include "confdefs.h"
793 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
794 { (eval echo configure:795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
795 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
796 if test -z "$ac_err"; then
800 echo "configure: failed program was:" >&5
801 cat conftest.$ac_ext >&5
803 CPP="${CC-cc} -E -traditional-cpp"
804 cat > conftest.$ac_ext <<EOF
805 #line 806 "configure"
806 #include "confdefs.h"
810 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
811 { (eval echo configure:812: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
812 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
813 if test -z "$ac_err"; then
817 echo "configure: failed program was:" >&5
818 cat conftest.$ac_ext >&5
820 CPP="${CC-cc} -nologo -E"
821 cat > conftest.$ac_ext <<EOF
822 #line 823 "configure"
823 #include "confdefs.h"
827 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
828 { (eval echo configure:829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
829 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
830 if test -z "$ac_err"; then
834 echo "configure: failed program was:" >&5
835 cat conftest.$ac_ext >&5
844 ac_cv_prog_CPP="$CPP"
846 CPP="$ac_cv_prog_CPP"
848 ac_cv_prog_CPP="$CPP"
850 echo "$ac_t""$CPP" 1>&6
852 echo $ac_n "checking for AIX""... $ac_c" 1>&6
853 echo "configure:854: checking for AIX" >&5
854 cat > conftest.$ac_ext <<EOF
855 #line 856 "configure"
856 #include "confdefs.h"
862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
863 egrep "yes" >/dev/null 2>&1; then
865 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
866 #define _ALL_SOURCE 1
871 echo "$ac_t""no" 1>&6
876 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
877 echo "configure:878: checking for POSIXized ISC" >&5
878 if test -d /etc/conf/kconfig.d &&
879 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
881 echo "$ac_t""yes" 1>&6
882 ISC=yes # If later tests want to check for ISC.
883 cat >> confdefs.h <<\EOF
884 #define _POSIX_SOURCE 1
887 if test "$GCC" = yes; then
893 echo "$ac_t""no" 1>&6
897 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
898 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
899 echo "configure:900: checking for minix/config.h" >&5
900 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
901 echo $ac_n "(cached) $ac_c" 1>&6
903 cat > conftest.$ac_ext <<EOF
904 #line 905 "configure"
905 #include "confdefs.h"
906 #include <minix/config.h>
908 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
909 { (eval echo configure:910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
910 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
911 if test -z "$ac_err"; then
913 eval "ac_cv_header_$ac_safe=yes"
916 echo "configure: failed program was:" >&5
917 cat conftest.$ac_ext >&5
919 eval "ac_cv_header_$ac_safe=no"
923 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
924 echo "$ac_t""yes" 1>&6
927 echo "$ac_t""no" 1>&6
931 if test "$MINIX" = yes; then
932 cat >> confdefs.h <<\EOF
933 #define _POSIX_SOURCE 1
936 cat >> confdefs.h <<\EOF
937 #define _POSIX_1_SOURCE 2
940 cat >> confdefs.h <<\EOF
949 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
950 echo "configure:951: checking for ${CC-cc} option to accept ANSI C" >&5
951 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
952 echo $ac_n "(cached) $ac_c" 1>&6
954 am_cv_prog_cc_stdc=no
956 # Don't try gcc -ansi; that turns off useful extensions and
957 # breaks some systems' header files.
959 # Ultrix and OSF/1 -std1
960 # HP-UX -Aa -D_HPUX_SOURCE
961 # SVR4 -Xc -D__EXTENSIONS__
962 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
964 CC="$ac_save_CC $ac_arg"
965 cat > conftest.$ac_ext <<EOF
966 #line 967 "configure"
967 #include "confdefs.h"
970 #include <sys/types.h>
971 #include <sys/stat.h>
972 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
973 struct buf { int x; };
974 FILE * (*rcsopen) (struct buf *, struct stat *, int);
975 static char *e (p, i)
981 static char *f (char * (*g) (char **, int), char **p, ...)
986 s = g (p, va_arg (v,int));
990 int test (int i, double x);
991 struct s1 {int (*f) (int a);};
992 struct s2 {int (*f) (double a);};
993 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
999 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1003 if { (eval echo configure:1004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1005 am_cv_prog_cc_stdc="$ac_arg"; break
1007 echo "configure: failed program was:" >&5
1008 cat conftest.$ac_ext >&5
1016 if test -z "$am_cv_prog_cc_stdc"; then
1017 echo "$ac_t""none needed" 1>&6
1019 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
1021 case "x$am_cv_prog_cc_stdc" in
1023 *) CC="$CC $am_cv_prog_cc_stdc" ;;
1026 if test "$CFLAGS" != "" ; then
1027 CFLAGS=`echo "$CFLAGS" | sed -e 's/-O2/-O3/'`
1029 if test "$CFLAGS" != "" ; then
1030 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pipe//g'`
1033 echo $ac_n "checking for crypt in -lc""... $ac_c" 1>&6
1034 echo "configure:1035: checking for crypt in -lc" >&5
1035 ac_lib_var=`echo c'_'crypt | sed 'y%./+-%__p_%'`
1036 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1037 echo $ac_n "(cached) $ac_c" 1>&6
1039 ac_save_LIBS="$LIBS"
1041 cat > conftest.$ac_ext <<EOF
1042 #line 1043 "configure"
1043 #include "confdefs.h"
1044 /* Override any gcc2 internal prototype to avoid an error. */
1045 /* We use char because int might match the return type of a gcc2
1046 builtin and then its argument prototype would still apply. */
1053 if { (eval echo configure:1054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1055 eval "ac_cv_lib_$ac_lib_var=yes"
1057 echo "configure: failed program was:" >&5
1058 cat conftest.$ac_ext >&5
1060 eval "ac_cv_lib_$ac_lib_var=no"
1063 LIBS="$ac_save_LIBS"
1066 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1067 echo "$ac_t""yes" 1>&6
1070 echo "$ac_t""no" 1>&6
1071 echo $ac_n "checking for crypt in -ldescrypt""... $ac_c" 1>&6
1072 echo "configure:1073: checking for crypt in -ldescrypt" >&5
1073 ac_lib_var=`echo descrypt'_'crypt | sed 'y%./+-%__p_%'`
1074 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1075 echo $ac_n "(cached) $ac_c" 1>&6
1077 ac_save_LIBS="$LIBS"
1078 LIBS="-ldescrypt $LIBS"
1079 cat > conftest.$ac_ext <<EOF
1080 #line 1081 "configure"
1081 #include "confdefs.h"
1082 /* Override any gcc2 internal prototype to avoid an error. */
1083 /* We use char because int might match the return type of a gcc2
1084 builtin and then its argument prototype would still apply. */
1091 if { (eval echo configure:1092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1093 eval "ac_cv_lib_$ac_lib_var=yes"
1095 echo "configure: failed program was:" >&5
1096 cat conftest.$ac_ext >&5
1098 eval "ac_cv_lib_$ac_lib_var=no"
1101 LIBS="$ac_save_LIBS"
1104 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1105 echo "$ac_t""yes" 1>&6
1106 LIBS="-ldescrypt $LIBS"
1108 echo "$ac_t""no" 1>&6
1109 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
1110 echo "configure:1111: checking for crypt in -lcrypt" >&5
1111 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
1112 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1113 echo $ac_n "(cached) $ac_c" 1>&6
1115 ac_save_LIBS="$LIBS"
1116 LIBS="-lcrypt $LIBS"
1117 cat > conftest.$ac_ext <<EOF
1118 #line 1119 "configure"
1119 #include "confdefs.h"
1120 /* Override any gcc2 internal prototype to avoid an error. */
1121 /* We use char because int might match the return type of a gcc2
1122 builtin and then its argument prototype would still apply. */
1129 if { (eval echo configure:1130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1131 eval "ac_cv_lib_$ac_lib_var=yes"
1133 echo "configure: failed program was:" >&5
1134 cat conftest.$ac_ext >&5
1136 eval "ac_cv_lib_$ac_lib_var=no"
1139 LIBS="$ac_save_LIBS"
1142 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1143 echo "$ac_t""yes" 1>&6
1144 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/^a-zA-Z0-9_/_/g' \
1145 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1146 cat >> confdefs.h <<EOF
1147 #define $ac_tr_lib 1
1150 LIBS="-lcrypt $LIBS"
1153 echo "$ac_t""no" 1>&6
1160 echo $ac_n "checking for gethostbyname in -lc""... $ac_c" 1>&6
1161 echo "configure:1162: checking for gethostbyname in -lc" >&5
1162 ac_lib_var=`echo c'_'gethostbyname | sed 'y%./+-%__p_%'`
1163 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1164 echo $ac_n "(cached) $ac_c" 1>&6
1166 ac_save_LIBS="$LIBS"
1168 cat > conftest.$ac_ext <<EOF
1169 #line 1170 "configure"
1170 #include "confdefs.h"
1171 /* Override any gcc2 internal prototype to avoid an error. */
1172 /* We use char because int might match the return type of a gcc2
1173 builtin and then its argument prototype would still apply. */
1174 char gethostbyname();
1180 if { (eval echo configure:1181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1182 eval "ac_cv_lib_$ac_lib_var=yes"
1184 echo "configure: failed program was:" >&5
1185 cat conftest.$ac_ext >&5
1187 eval "ac_cv_lib_$ac_lib_var=no"
1190 LIBS="$ac_save_LIBS"
1193 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1194 echo "$ac_t""yes" 1>&6
1197 echo "$ac_t""no" 1>&6
1198 echo $ac_n "checking for gethostbyaddr in -lnsl""... $ac_c" 1>&6
1199 echo "configure:1200: checking for gethostbyaddr in -lnsl" >&5
1200 ac_lib_var=`echo nsl'_'gethostbyaddr | sed 'y%./+-%__p_%'`
1201 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1202 echo $ac_n "(cached) $ac_c" 1>&6
1204 ac_save_LIBS="$LIBS"
1206 cat > conftest.$ac_ext <<EOF
1207 #line 1208 "configure"
1208 #include "confdefs.h"
1209 /* Override any gcc2 internal prototype to avoid an error. */
1210 /* We use char because int might match the return type of a gcc2
1211 builtin and then its argument prototype would still apply. */
1212 char gethostbyaddr();
1218 if { (eval echo configure:1219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1220 eval "ac_cv_lib_$ac_lib_var=yes"
1222 echo "configure: failed program was:" >&5
1223 cat conftest.$ac_ext >&5
1225 eval "ac_cv_lib_$ac_lib_var=no"
1228 LIBS="$ac_save_LIBS"
1231 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1232 echo "$ac_t""yes" 1>&6
1235 echo "$ac_t""no" 1>&6
1240 echo $ac_n "checking for socket in -lc""... $ac_c" 1>&6
1241 echo "configure:1242: checking for socket in -lc" >&5
1242 ac_lib_var=`echo c'_'socket | sed 'y%./+-%__p_%'`
1243 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1244 echo $ac_n "(cached) $ac_c" 1>&6
1246 ac_save_LIBS="$LIBS"
1248 cat > conftest.$ac_ext <<EOF
1249 #line 1250 "configure"
1250 #include "confdefs.h"
1251 /* Override any gcc2 internal prototype to avoid an error. */
1252 /* We use char because int might match the return type of a gcc2
1253 builtin and then its argument prototype would still apply. */
1260 if { (eval echo configure:1261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1262 eval "ac_cv_lib_$ac_lib_var=yes"
1264 echo "configure: failed program was:" >&5
1265 cat conftest.$ac_ext >&5
1267 eval "ac_cv_lib_$ac_lib_var=no"
1270 LIBS="$ac_save_LIBS"
1273 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1274 echo "$ac_t""yes" 1>&6
1277 echo "$ac_t""no" 1>&6
1278 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1279 echo "configure:1280: checking for socket in -lsocket" >&5
1280 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
1281 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1282 echo $ac_n "(cached) $ac_c" 1>&6
1284 ac_save_LIBS="$LIBS"
1285 LIBS="-lsocket $LIBS"
1286 cat > conftest.$ac_ext <<EOF
1287 #line 1288 "configure"
1288 #include "confdefs.h"
1289 /* Override any gcc2 internal prototype to avoid an error. */
1290 /* We use char because int might match the return type of a gcc2
1291 builtin and then its argument prototype would still apply. */
1298 if { (eval echo configure:1299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1300 eval "ac_cv_lib_$ac_lib_var=yes"
1302 echo "configure: failed program was:" >&5
1303 cat conftest.$ac_ext >&5
1305 eval "ac_cv_lib_$ac_lib_var=no"
1308 LIBS="$ac_save_LIBS"
1311 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1312 echo "$ac_t""yes" 1>&6
1313 LIBS="-lsocket $LIBS"
1315 echo "$ac_t""no" 1>&6
1320 echo $ac_n "checking for res_mkquery in -lresolv""... $ac_c" 1>&6
1321 echo "configure:1322: checking for res_mkquery in -lresolv" >&5
1322 if eval "test \"`echo '$''{'unet_cv_lib_resolv'+set}'`\" = set"; then
1323 echo $ac_n "(cached) $ac_c" 1>&6
1325 cat > conftest.$ac_ext <<EOF
1326 #line 1327 "configure"
1327 #include "confdefs.h"
1329 extern int res_mkquery(int, const char *, int, int, const char *,
1330 int, struct rrec *, unsigned char *, int);
1340 res_mkquery(op,dname,class,type,data,datalen,newrr,buf,buflen)
1343 if { (eval echo configure:1344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1345 unet_cv_lib_resolv=no
1347 echo "configure: failed program was:" >&5
1348 cat conftest.$ac_ext >&5
1351 LIBS="$LIBS -lresolv"
1352 cat > conftest.$ac_ext <<EOF
1353 #line 1354 "configure"
1354 #include "confdefs.h"
1360 if { (eval echo configure:1361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1362 unet_cv_lib_resolv=yes
1364 echo "configure: failed program was:" >&5
1365 cat conftest.$ac_ext >&5
1367 unet_cv_lib_resolv=no
1375 echo "$ac_t""$unet_cv_lib_resolv" 1>&6
1376 if test $unet_cv_lib_resolv = yes; then
1377 cat >> confdefs.h <<\EOF
1378 #define HAVE_LIB_RESOLV 1
1381 LIBS="$LIBS -lresolv"
1384 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1385 echo "configure:1386: checking for ANSI C header files" >&5
1386 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1387 echo $ac_n "(cached) $ac_c" 1>&6
1389 cat > conftest.$ac_ext <<EOF
1390 #line 1391 "configure"
1391 #include "confdefs.h"
1397 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1398 { (eval echo configure:1399: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1399 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1400 if test -z "$ac_err"; then
1402 ac_cv_header_stdc=yes
1405 echo "configure: failed program was:" >&5
1406 cat conftest.$ac_ext >&5
1408 ac_cv_header_stdc=no
1412 if test $ac_cv_header_stdc = yes; then
1413 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1414 cat > conftest.$ac_ext <<EOF
1415 #line 1416 "configure"
1416 #include "confdefs.h"
1419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1420 egrep "memchr" >/dev/null 2>&1; then
1424 ac_cv_header_stdc=no
1430 if test $ac_cv_header_stdc = yes; then
1431 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1432 cat > conftest.$ac_ext <<EOF
1433 #line 1434 "configure"
1434 #include "confdefs.h"
1437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1438 egrep "free" >/dev/null 2>&1; then
1442 ac_cv_header_stdc=no
1448 if test $ac_cv_header_stdc = yes; then
1449 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1450 if test "$cross_compiling" = yes; then
1453 cat > conftest.$ac_ext <<EOF
1454 #line 1455 "configure"
1455 #include "confdefs.h"
1457 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1458 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1459 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1460 int main () { int i; for (i = 0; i < 256; i++)
1461 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1465 if { (eval echo configure:1466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1469 echo "configure: failed program was:" >&5
1470 cat conftest.$ac_ext >&5
1472 ac_cv_header_stdc=no
1480 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1481 if test $ac_cv_header_stdc = yes; then
1482 cat >> confdefs.h <<\EOF
1483 #define STDC_HEADERS 1
1488 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1489 echo "configure:1490: checking for sys/wait.h that is POSIX.1 compatible" >&5
1490 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1491 echo $ac_n "(cached) $ac_c" 1>&6
1493 cat > conftest.$ac_ext <<EOF
1494 #line 1495 "configure"
1495 #include "confdefs.h"
1496 #include <sys/types.h>
1497 #include <sys/wait.h>
1499 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1502 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1507 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1510 if { (eval echo configure:1511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1512 ac_cv_header_sys_wait_h=yes
1514 echo "configure: failed program was:" >&5
1515 cat conftest.$ac_ext >&5
1517 ac_cv_header_sys_wait_h=no
1522 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1523 if test $ac_cv_header_sys_wait_h = yes; then
1524 cat >> confdefs.h <<\EOF
1525 #define HAVE_SYS_WAIT_H 1
1530 for ac_hdr in malloc.h sys/malloc.h fcntl.h string.h strings.h sys/file.h sys/ioctl.h sys/time.h syslog.h unistd.h memory.h errno.h net/errno.h sys/cdefs.h
1532 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1533 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1534 echo "configure:1535: checking for $ac_hdr" >&5
1535 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1536 echo $ac_n "(cached) $ac_c" 1>&6
1538 cat > conftest.$ac_ext <<EOF
1539 #line 1540 "configure"
1540 #include "confdefs.h"
1543 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1544 { (eval echo configure:1545: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1545 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1546 if test -z "$ac_err"; then
1548 eval "ac_cv_header_$ac_safe=yes"
1551 echo "configure: failed program was:" >&5
1552 cat conftest.$ac_ext >&5
1554 eval "ac_cv_header_$ac_safe=no"
1558 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1559 echo "$ac_t""yes" 1>&6
1560 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1561 cat >> confdefs.h <<EOF
1562 #define $ac_tr_hdr 1
1566 echo "$ac_t""no" 1>&6
1571 echo $ac_n "checking for working const""... $ac_c" 1>&6
1572 echo "configure:1573: checking for working const" >&5
1573 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1574 echo $ac_n "(cached) $ac_c" 1>&6
1576 cat > conftest.$ac_ext <<EOF
1577 #line 1578 "configure"
1578 #include "confdefs.h"
1582 /* Ultrix mips cc rejects this. */
1583 typedef int charset[2]; const charset x;
1584 /* SunOS 4.1.1 cc rejects this. */
1585 char const *const *ccp;
1587 /* NEC SVR4.0.2 mips cc rejects this. */
1588 struct point {int x, y;};
1589 static struct point const zero = {0,0};
1590 /* AIX XL C 1.02.0.0 rejects this.
1591 It does not let you subtract one const X* pointer from another in an arm
1592 of an if-expression whose if-part is not a constant expression */
1593 const char *g = "string";
1594 ccp = &g + (g ? g-g : 0);
1595 /* HPUX 7.0 cc rejects these. */
1598 ccp = (char const *const *) p;
1599 { /* SCO 3.2v4 cc rejects this. */
1601 char const *s = 0 ? (char *) 0 : (char const *) 0;
1605 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1607 const int *foo = &x[0];
1610 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1611 typedef const int *iptr;
1615 { /* AIX XL C 1.02.0.0 rejects this saying
1616 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1617 struct s { int j; const int *ap[3]; };
1618 struct s *b; b->j = 5;
1620 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1626 if { (eval echo configure:1627: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1630 echo "configure: failed program was:" >&5
1631 cat conftest.$ac_ext >&5
1638 echo "$ac_t""$ac_cv_c_const" 1>&6
1639 if test $ac_cv_c_const = no; then
1640 cat >> confdefs.h <<\EOF
1646 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1647 echo "configure:1648: checking whether byte ordering is bigendian" >&5
1648 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1649 echo $ac_n "(cached) $ac_c" 1>&6
1651 ac_cv_c_bigendian=unknown
1652 # See if sys/param.h defines the BYTE_ORDER macro.
1653 cat > conftest.$ac_ext <<EOF
1654 #line 1655 "configure"
1655 #include "confdefs.h"
1656 #include <sys/types.h>
1657 #include <sys/param.h>
1660 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1665 if { (eval echo configure:1666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1667 # It does; now see whether it defined to BIG_ENDIAN or not.
1668 cat > conftest.$ac_ext <<EOF
1669 #line 1670 "configure"
1670 #include "confdefs.h"
1671 #include <sys/types.h>
1672 #include <sys/param.h>
1675 #if BYTE_ORDER != BIG_ENDIAN
1680 if { (eval echo configure:1681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1682 ac_cv_c_bigendian=yes
1684 echo "configure: failed program was:" >&5
1685 cat conftest.$ac_ext >&5
1687 ac_cv_c_bigendian=no
1691 echo "configure: failed program was:" >&5
1692 cat conftest.$ac_ext >&5
1695 if test $ac_cv_c_bigendian = unknown; then
1696 if test "$cross_compiling" = yes; then
1697 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1699 cat > conftest.$ac_ext <<EOF
1700 #line 1701 "configure"
1701 #include "confdefs.h"
1703 /* Are we little or big endian? From Harbison&Steele. */
1707 char c[sizeof (long)];
1710 exit (u.c[sizeof (long) - 1] == 1);
1713 if { (eval echo configure:1714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1715 ac_cv_c_bigendian=no
1717 echo "configure: failed program was:" >&5
1718 cat conftest.$ac_ext >&5
1720 ac_cv_c_bigendian=yes
1728 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1729 if test $ac_cv_c_bigendian = yes; then
1730 cat >> confdefs.h <<\EOF
1731 #define WORDS_BIGENDIAN 1
1736 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1737 echo "configure:1738: checking for size_t" >&5
1738 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1739 echo $ac_n "(cached) $ac_c" 1>&6
1741 cat > conftest.$ac_ext <<EOF
1742 #line 1743 "configure"
1743 #include "confdefs.h"
1744 #include <sys/types.h>
1750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1751 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1753 ac_cv_type_size_t=yes
1756 ac_cv_type_size_t=no
1761 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1762 if test $ac_cv_type_size_t = no; then
1763 cat >> confdefs.h <<\EOF
1764 #define size_t unsigned
1769 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1770 echo "configure:1771: checking whether time.h and sys/time.h may both be included" >&5
1771 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1772 echo $ac_n "(cached) $ac_c" 1>&6
1774 cat > conftest.$ac_ext <<EOF
1775 #line 1776 "configure"
1776 #include "confdefs.h"
1777 #include <sys/types.h>
1778 #include <sys/time.h>
1784 if { (eval echo configure:1785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1786 ac_cv_header_time=yes
1788 echo "configure: failed program was:" >&5
1789 cat conftest.$ac_ext >&5
1791 ac_cv_header_time=no
1796 echo "$ac_t""$ac_cv_header_time" 1>&6
1797 if test $ac_cv_header_time = yes; then
1798 cat >> confdefs.h <<\EOF
1799 #define TIME_WITH_SYS_TIME 1
1804 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
1805 echo "configure:1806: checking whether struct tm is in sys/time.h or time.h" >&5
1806 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
1807 echo $ac_n "(cached) $ac_c" 1>&6
1809 cat > conftest.$ac_ext <<EOF
1810 #line 1811 "configure"
1811 #include "confdefs.h"
1812 #include <sys/types.h>
1815 struct tm *tp; tp->tm_sec;
1818 if { (eval echo configure:1819: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1820 ac_cv_struct_tm=time.h
1822 echo "configure: failed program was:" >&5
1823 cat conftest.$ac_ext >&5
1825 ac_cv_struct_tm=sys/time.h
1830 echo "$ac_t""$ac_cv_struct_tm" 1>&6
1831 if test $ac_cv_struct_tm = sys/time.h; then
1832 cat >> confdefs.h <<\EOF
1833 #define TM_IN_SYS_TIME 1
1838 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
1839 echo "configure:1840: checking for uid_t in sys/types.h" >&5
1840 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
1841 echo $ac_n "(cached) $ac_c" 1>&6
1843 cat > conftest.$ac_ext <<EOF
1844 #line 1845 "configure"
1845 #include "confdefs.h"
1846 #include <sys/types.h>
1848 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1849 egrep "uid_t" >/dev/null 2>&1; then
1851 ac_cv_type_uid_t=yes
1860 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
1861 if test $ac_cv_type_uid_t = no; then
1862 cat >> confdefs.h <<\EOF
1866 cat >> confdefs.h <<\EOF
1872 echo $ac_n "checking size of short""... $ac_c" 1>&6
1873 echo "configure:1874: checking size of short" >&5
1874 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1875 echo $ac_n "(cached) $ac_c" 1>&6
1877 if test "$cross_compiling" = yes; then
1878 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1880 cat > conftest.$ac_ext <<EOF
1881 #line 1882 "configure"
1882 #include "confdefs.h"
1886 FILE *f=fopen("conftestval", "w");
1888 fprintf(f, "%d\n", sizeof(short));
1892 if { (eval echo configure:1893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1894 ac_cv_sizeof_short=`cat conftestval`
1896 echo "configure: failed program was:" >&5
1897 cat conftest.$ac_ext >&5
1899 ac_cv_sizeof_short=0
1905 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
1906 cat >> confdefs.h <<EOF
1907 #define SIZEOF_SHORT $ac_cv_sizeof_short
1911 echo $ac_n "checking size of int""... $ac_c" 1>&6
1912 echo "configure:1913: checking size of int" >&5
1913 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1914 echo $ac_n "(cached) $ac_c" 1>&6
1916 if test "$cross_compiling" = yes; then
1917 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1919 cat > conftest.$ac_ext <<EOF
1920 #line 1921 "configure"
1921 #include "confdefs.h"
1925 FILE *f=fopen("conftestval", "w");
1927 fprintf(f, "%d\n", sizeof(int));
1931 if { (eval echo configure:1932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1933 ac_cv_sizeof_int=`cat conftestval`
1935 echo "configure: failed program was:" >&5
1936 cat conftest.$ac_ext >&5
1944 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1945 cat >> confdefs.h <<EOF
1946 #define SIZEOF_INT $ac_cv_sizeof_int
1950 echo $ac_n "checking size of long""... $ac_c" 1>&6
1951 echo "configure:1952: checking size of long" >&5
1952 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1953 echo $ac_n "(cached) $ac_c" 1>&6
1955 if test "$cross_compiling" = yes; then
1956 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1958 cat > conftest.$ac_ext <<EOF
1959 #line 1960 "configure"
1960 #include "confdefs.h"
1964 FILE *f=fopen("conftestval", "w");
1966 fprintf(f, "%d\n", sizeof(long));
1970 if { (eval echo configure:1971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1972 ac_cv_sizeof_long=`cat conftestval`
1974 echo "configure: failed program was:" >&5
1975 cat conftest.$ac_ext >&5
1983 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1984 cat >> confdefs.h <<EOF
1985 #define SIZEOF_LONG $ac_cv_sizeof_long
1989 if test "$ac_cv_sizeof_int" = 2 ; then
1990 echo $ac_n "checking for int16_t""... $ac_c" 1>&6
1991 echo "configure:1992: checking for int16_t" >&5
1992 if eval "test \"`echo '$''{'ac_cv_type_int16_t'+set}'`\" = set"; then
1993 echo $ac_n "(cached) $ac_c" 1>&6
1995 cat > conftest.$ac_ext <<EOF
1996 #line 1997 "configure"
1997 #include "confdefs.h"
1998 #include <sys/types.h>
2004 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2005 egrep "(^|[^a-zA-Z_0-9])int16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2007 ac_cv_type_int16_t=yes
2010 ac_cv_type_int16_t=no
2015 echo "$ac_t""$ac_cv_type_int16_t" 1>&6
2016 if test $ac_cv_type_int16_t = no; then
2017 cat >> confdefs.h <<\EOF
2023 echo $ac_n "checking for u_int16_t""... $ac_c" 1>&6
2024 echo "configure:2025: checking for u_int16_t" >&5
2025 if eval "test \"`echo '$''{'ac_cv_type_u_int16_t'+set}'`\" = set"; then
2026 echo $ac_n "(cached) $ac_c" 1>&6
2028 cat > conftest.$ac_ext <<EOF
2029 #line 2030 "configure"
2030 #include "confdefs.h"
2031 #include <sys/types.h>
2037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2038 egrep "(^|[^a-zA-Z_0-9])u_int16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2040 ac_cv_type_u_int16_t=yes
2043 ac_cv_type_u_int16_t=no
2048 echo "$ac_t""$ac_cv_type_u_int16_t" 1>&6
2049 if test $ac_cv_type_u_int16_t = no; then
2050 cat >> confdefs.h <<\EOF
2051 #define u_int16_t unsigned int
2056 elif test "$ac_cv_sizeof_short" = 2 ; then
2057 echo $ac_n "checking for int16_t""... $ac_c" 1>&6
2058 echo "configure:2059: checking for int16_t" >&5
2059 if eval "test \"`echo '$''{'ac_cv_type_int16_t'+set}'`\" = set"; then
2060 echo $ac_n "(cached) $ac_c" 1>&6
2062 cat > conftest.$ac_ext <<EOF
2063 #line 2064 "configure"
2064 #include "confdefs.h"
2065 #include <sys/types.h>
2071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2072 egrep "(^|[^a-zA-Z_0-9])int16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2074 ac_cv_type_int16_t=yes
2077 ac_cv_type_int16_t=no
2082 echo "$ac_t""$ac_cv_type_int16_t" 1>&6
2083 if test $ac_cv_type_int16_t = no; then
2084 cat >> confdefs.h <<\EOF
2085 #define int16_t short
2090 echo $ac_n "checking for u_int16_t""... $ac_c" 1>&6
2091 echo "configure:2092: checking for u_int16_t" >&5
2092 if eval "test \"`echo '$''{'ac_cv_type_u_int16_t'+set}'`\" = set"; then
2093 echo $ac_n "(cached) $ac_c" 1>&6
2095 cat > conftest.$ac_ext <<EOF
2096 #line 2097 "configure"
2097 #include "confdefs.h"
2098 #include <sys/types.h>
2104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2105 egrep "(^|[^a-zA-Z_0-9])u_int16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2107 ac_cv_type_u_int16_t=yes
2110 ac_cv_type_u_int16_t=no
2115 echo "$ac_t""$ac_cv_type_u_int16_t" 1>&6
2116 if test $ac_cv_type_u_int16_t = no; then
2117 cat >> confdefs.h <<\EOF
2118 #define u_int16_t unsigned short
2124 { echo "configure: error: Cannot find a type with size of 16 bits" 1>&2; exit 1; }
2126 if test "$ac_cv_sizeof_int" = 4 ; then
2127 echo $ac_n "checking for int32_t""... $ac_c" 1>&6
2128 echo "configure:2129: checking for int32_t" >&5
2129 if eval "test \"`echo '$''{'ac_cv_type_int32_t'+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 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2142 egrep "(^|[^a-zA-Z_0-9])int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2144 ac_cv_type_int32_t=yes
2147 ac_cv_type_int32_t=no
2152 echo "$ac_t""$ac_cv_type_int32_t" 1>&6
2153 if test $ac_cv_type_int32_t = no; then
2154 cat >> confdefs.h <<\EOF
2160 echo $ac_n "checking for u_int32_t""... $ac_c" 1>&6
2161 echo "configure:2162: checking for u_int32_t" >&5
2162 if eval "test \"`echo '$''{'ac_cv_type_u_int32_t'+set}'`\" = set"; then
2163 echo $ac_n "(cached) $ac_c" 1>&6
2165 cat > conftest.$ac_ext <<EOF
2166 #line 2167 "configure"
2167 #include "confdefs.h"
2168 #include <sys/types.h>
2174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2175 egrep "(^|[^a-zA-Z_0-9])u_int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2177 ac_cv_type_u_int32_t=yes
2180 ac_cv_type_u_int32_t=no
2185 echo "$ac_t""$ac_cv_type_u_int32_t" 1>&6
2186 if test $ac_cv_type_u_int32_t = no; then
2187 cat >> confdefs.h <<\EOF
2188 #define u_int32_t unsigned int
2193 elif test "$ac_cv_sizeof_short" = 4 ; then
2194 echo $ac_n "checking for int32_t""... $ac_c" 1>&6
2195 echo "configure:2196: checking for int32_t" >&5
2196 if eval "test \"`echo '$''{'ac_cv_type_int32_t'+set}'`\" = set"; then
2197 echo $ac_n "(cached) $ac_c" 1>&6
2199 cat > conftest.$ac_ext <<EOF
2200 #line 2201 "configure"
2201 #include "confdefs.h"
2202 #include <sys/types.h>
2208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2209 egrep "(^|[^a-zA-Z_0-9])int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2211 ac_cv_type_int32_t=yes
2214 ac_cv_type_int32_t=no
2219 echo "$ac_t""$ac_cv_type_int32_t" 1>&6
2220 if test $ac_cv_type_int32_t = no; then
2221 cat >> confdefs.h <<\EOF
2222 #define int32_t short
2227 echo $ac_n "checking for u_int32_t""... $ac_c" 1>&6
2228 echo "configure:2229: checking for u_int32_t" >&5
2229 if eval "test \"`echo '$''{'ac_cv_type_u_int32_t'+set}'`\" = set"; then
2230 echo $ac_n "(cached) $ac_c" 1>&6
2232 cat > conftest.$ac_ext <<EOF
2233 #line 2234 "configure"
2234 #include "confdefs.h"
2235 #include <sys/types.h>
2241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2242 egrep "(^|[^a-zA-Z_0-9])u_int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2244 ac_cv_type_u_int32_t=yes
2247 ac_cv_type_u_int32_t=no
2252 echo "$ac_t""$ac_cv_type_u_int32_t" 1>&6
2253 if test $ac_cv_type_u_int32_t = no; then
2254 cat >> confdefs.h <<\EOF
2255 #define u_int32_t unsigned short
2260 elif test "$ac_cv_sizeof_long" = 4 ; then
2261 echo $ac_n "checking for int32_t""... $ac_c" 1>&6
2262 echo "configure:2263: checking for int32_t" >&5
2263 if eval "test \"`echo '$''{'ac_cv_type_int32_t'+set}'`\" = set"; then
2264 echo $ac_n "(cached) $ac_c" 1>&6
2266 cat > conftest.$ac_ext <<EOF
2267 #line 2268 "configure"
2268 #include "confdefs.h"
2269 #include <sys/types.h>
2275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2276 egrep "(^|[^a-zA-Z_0-9])int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2278 ac_cv_type_int32_t=yes
2281 ac_cv_type_int32_t=no
2286 echo "$ac_t""$ac_cv_type_int32_t" 1>&6
2287 if test $ac_cv_type_int32_t = no; then
2288 cat >> confdefs.h <<\EOF
2289 #define int32_t long
2294 echo $ac_n "checking for u_int32_t""... $ac_c" 1>&6
2295 echo "configure:2296: checking for u_int32_t" >&5
2296 if eval "test \"`echo '$''{'ac_cv_type_u_int32_t'+set}'`\" = set"; then
2297 echo $ac_n "(cached) $ac_c" 1>&6
2299 cat > conftest.$ac_ext <<EOF
2300 #line 2301 "configure"
2301 #include "confdefs.h"
2302 #include <sys/types.h>
2308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2309 egrep "(^|[^a-zA-Z_0-9])u_int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2311 ac_cv_type_u_int32_t=yes
2314 ac_cv_type_u_int32_t=no
2319 echo "$ac_t""$ac_cv_type_u_int32_t" 1>&6
2320 if test $ac_cv_type_u_int32_t = no; then
2321 cat >> confdefs.h <<\EOF
2322 #define u_int32_t unsigned long
2328 { echo "configure: error: Cannot find a type with size of 32 bits" 1>&2; exit 1; }
2331 echo $ac_n "checking size of size_t""... $ac_c" 1>&6
2332 echo "configure:2333: checking size of size_t" >&5
2333 if eval "test \"`echo '$''{'ac_cv_sizeof_size_t'+set}'`\" = set"; then
2334 echo $ac_n "(cached) $ac_c" 1>&6
2336 if test "$cross_compiling" = yes; then
2337 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2339 cat > conftest.$ac_ext <<EOF
2340 #line 2341 "configure"
2341 #include "confdefs.h"
2345 FILE *f=fopen("conftestval", "w");
2347 fprintf(f, "%d\n", sizeof(size_t));
2351 if { (eval echo configure:2352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2353 ac_cv_sizeof_size_t=`cat conftestval`
2355 echo "configure: failed program was:" >&5
2356 cat conftest.$ac_ext >&5
2358 ac_cv_sizeof_size_t=0
2364 echo "$ac_t""$ac_cv_sizeof_size_t" 1>&6
2365 cat >> confdefs.h <<EOF
2366 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
2369 echo $ac_n "checking printf format of size_t""... $ac_c" 1>&6
2370 echo "configure:2371: checking printf format of size_t" >&5
2371 if test "$ac_cv_sizeof_size_t" = 4 ; then
2372 echo "$ac_t"""%u"" 1>&6
2373 cat >> confdefs.h <<\EOF
2374 #define SIZE_T_FMT "%u"
2378 echo "$ac_t"""%lu"" 1>&6
2379 cat >> confdefs.h <<\EOF
2380 #define SIZE_T_FMT "%lu"
2384 echo $ac_n "checking size of time_t""... $ac_c" 1>&6
2385 echo "configure:2386: checking size of time_t" >&5
2386 if eval "test \"`echo '$''{'unet_cv_sizeof_time_t'+set}'`\" = set"; then
2387 echo $ac_n "(cached) $ac_c" 1>&6
2389 if test "$cross_compiling" = yes; then
2390 unet_cv_sizeof_time_t=0
2392 cat > conftest.$ac_ext <<EOF
2393 #line 2394 "configure"
2394 #include "confdefs.h"
2396 #include <sys/types.h>
2399 FILE *f=fopen("conftestval", "w");
2401 fprintf(f, "%d\n", sizeof(time_t));
2405 if { (eval echo configure:2406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2407 unet_cv_sizeof_time_t=`cat conftestval`
2409 echo "configure: failed program was:" >&5
2410 cat conftest.$ac_ext >&5
2412 unet_cv_sizeof_time_t=0
2419 if test "$unet_cv_sizeof_time_t" = 0 ; then
2420 echo "$ac_t""unknown" 1>&6
2421 cat >> confdefs.h <<\EOF
2422 #define TIME_T_FMT "%lu"
2425 cat >> confdefs.h <<\EOF
2426 #define STIME_T_FMT "%ld"
2430 echo "$ac_t""$unet_cv_sizeof_time_t" 1>&6
2431 echo $ac_n "checking printf format of time_t""... $ac_c" 1>&6
2432 echo "configure:2433: checking printf format of time_t" >&5
2433 if test "$unet_cv_sizeof_time_t" = "$ac_cv_sizeof_long" ; then
2434 echo "$ac_t"""%lu"" 1>&6
2435 cat >> confdefs.h <<\EOF
2436 #define TIME_T_FMT "%lu"
2439 cat >> confdefs.h <<\EOF
2440 #define STIME_T_FMT "%ld"
2444 echo "$ac_t"""%u"" 1>&6
2445 cat >> confdefs.h <<\EOF
2446 #define TIME_T_FMT "%u"
2449 cat >> confdefs.h <<\EOF
2450 #define STIME_T_FMT "%d"
2456 if test $ac_cv_prog_gcc = yes; then
2457 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
2458 echo "configure:2459: checking whether ${CC-cc} needs -traditional" >&5
2459 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
2460 echo $ac_n "(cached) $ac_c" 1>&6
2462 ac_pattern="Autoconf.*'x'"
2463 cat > conftest.$ac_ext <<EOF
2464 #line 2465 "configure"
2465 #include "confdefs.h"
2469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2470 egrep "$ac_pattern" >/dev/null 2>&1; then
2472 ac_cv_prog_gcc_traditional=yes
2475 ac_cv_prog_gcc_traditional=no
2480 if test $ac_cv_prog_gcc_traditional = no; then
2481 cat > conftest.$ac_ext <<EOF
2482 #line 2483 "configure"
2483 #include "confdefs.h"
2487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2488 egrep "$ac_pattern" >/dev/null 2>&1; then
2490 ac_cv_prog_gcc_traditional=yes
2497 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
2498 if test $ac_cv_prog_gcc_traditional = yes; then
2499 CC="$CC -traditional"
2503 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
2504 echo "configure:2505: checking for 8-bit clean memcmp" >&5
2505 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
2506 echo $ac_n "(cached) $ac_c" 1>&6
2508 if test "$cross_compiling" = yes; then
2509 ac_cv_func_memcmp_clean=no
2511 cat > conftest.$ac_ext <<EOF
2512 #line 2513 "configure"
2513 #include "confdefs.h"
2517 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
2518 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
2522 if { (eval echo configure:2523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2524 ac_cv_func_memcmp_clean=yes
2526 echo "configure: failed program was:" >&5
2527 cat conftest.$ac_ext >&5
2529 ac_cv_func_memcmp_clean=no
2536 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
2537 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
2539 echo $ac_n "checking whether setvbuf arguments are reversed""... $ac_c" 1>&6
2540 echo "configure:2541: checking whether setvbuf arguments are reversed" >&5
2541 if eval "test \"`echo '$''{'ac_cv_func_setvbuf_reversed'+set}'`\" = set"; then
2542 echo $ac_n "(cached) $ac_c" 1>&6
2544 if test "$cross_compiling" = yes; then
2545 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2547 cat > conftest.$ac_ext <<EOF
2548 #line 2549 "configure"
2549 #include "confdefs.h"
2551 /* If setvbuf has the reversed format, exit 0. */
2553 /* This call has the arguments reversed.
2554 A reversed system may check and see that the address of main
2555 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
2556 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
2559 exit(0); /* Non-reversed systems segv here. */
2562 if { (eval echo configure:2563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2564 ac_cv_func_setvbuf_reversed=yes
2566 echo "configure: failed program was:" >&5
2567 cat conftest.$ac_ext >&5
2569 ac_cv_func_setvbuf_reversed=no
2574 rm -f core core.* *.core
2577 echo "$ac_t""$ac_cv_func_setvbuf_reversed" 1>&6
2578 if test $ac_cv_func_setvbuf_reversed = yes; then
2579 cat >> confdefs.h <<\EOF
2580 #define SETVBUF_REVERSED 1
2585 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2586 echo "configure:2587: checking return type of signal handlers" >&5
2587 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2588 echo $ac_n "(cached) $ac_c" 1>&6
2590 cat > conftest.$ac_ext <<EOF
2591 #line 2592 "configure"
2592 #include "confdefs.h"
2593 #include <sys/types.h>
2599 extern "C" void (*signal (int, void (*)(int)))(int);
2601 void (*signal ()) ();
2608 if { (eval echo configure:2609: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2610 ac_cv_type_signal=void
2612 echo "configure: failed program was:" >&5
2613 cat conftest.$ac_ext >&5
2615 ac_cv_type_signal=int
2620 echo "$ac_t""$ac_cv_type_signal" 1>&6
2621 cat >> confdefs.h <<EOF
2622 #define RETSIGTYPE $ac_cv_type_signal
2626 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2627 echo "configure:2628: checking for vprintf" >&5
2628 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2629 echo $ac_n "(cached) $ac_c" 1>&6
2631 cat > conftest.$ac_ext <<EOF
2632 #line 2633 "configure"
2633 #include "confdefs.h"
2634 /* System header to define __stub macros and hopefully few prototypes,
2635 which can conflict with char vprintf(); below. */
2637 /* Override any gcc2 internal prototype to avoid an error. */
2638 /* We use char because int might match the return type of a gcc2
2639 builtin and then its argument prototype would still apply. */
2644 /* The GNU C library defines this for functions which it implements
2645 to always fail with ENOSYS. Some functions are actually named
2646 something starting with __ and the normal name is an alias. */
2647 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2655 if { (eval echo configure:2656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2657 eval "ac_cv_func_vprintf=yes"
2659 echo "configure: failed program was:" >&5
2660 cat conftest.$ac_ext >&5
2662 eval "ac_cv_func_vprintf=no"
2667 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2668 echo "$ac_t""yes" 1>&6
2669 cat >> confdefs.h <<\EOF
2670 #define HAVE_VPRINTF 1
2674 echo "$ac_t""no" 1>&6
2677 if test "$ac_cv_func_vprintf" != yes; then
2678 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2679 echo "configure:2680: checking for _doprnt" >&5
2680 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2681 echo $ac_n "(cached) $ac_c" 1>&6
2683 cat > conftest.$ac_ext <<EOF
2684 #line 2685 "configure"
2685 #include "confdefs.h"
2686 /* System header to define __stub macros and hopefully few prototypes,
2687 which can conflict with char _doprnt(); below. */
2689 /* Override any gcc2 internal prototype to avoid an error. */
2690 /* We use char because int might match the return type of a gcc2
2691 builtin and then its argument prototype would still apply. */
2696 /* The GNU C library defines this for functions which it implements
2697 to always fail with ENOSYS. Some functions are actually named
2698 something starting with __ and the normal name is an alias. */
2699 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2707 if { (eval echo configure:2708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2709 eval "ac_cv_func__doprnt=yes"
2711 echo "configure: failed program was:" >&5
2712 cat conftest.$ac_ext >&5
2714 eval "ac_cv_func__doprnt=no"
2719 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2720 echo "$ac_t""yes" 1>&6
2721 cat >> confdefs.h <<\EOF
2722 #define HAVE_DOPRNT 1
2726 echo "$ac_t""no" 1>&6
2731 for ac_func in strchr memcpy memmove
2733 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2734 echo "configure:2735: checking for $ac_func" >&5
2735 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2736 echo $ac_n "(cached) $ac_c" 1>&6
2738 cat > conftest.$ac_ext <<EOF
2739 #line 2740 "configure"
2740 #include "confdefs.h"
2741 /* System header to define __stub macros and hopefully few prototypes,
2742 which can conflict with char $ac_func(); below. */
2744 /* Override any gcc2 internal prototype to avoid an error. */
2745 /* We use char because int might match the return type of a gcc2
2746 builtin and then its argument prototype would still apply. */
2751 /* The GNU C library defines this for functions which it implements
2752 to always fail with ENOSYS. Some functions are actually named
2753 something starting with __ and the normal name is an alias. */
2754 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2762 if { (eval echo configure:2763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2764 eval "ac_cv_func_$ac_func=yes"
2766 echo "configure: failed program was:" >&5
2767 cat conftest.$ac_ext >&5
2769 eval "ac_cv_func_$ac_func=no"
2774 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2775 echo "$ac_t""yes" 1>&6
2776 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2777 cat >> confdefs.h <<EOF
2778 #define $ac_tr_func 1
2782 echo "$ac_t""no" 1>&6
2786 for ac_func in gethostname gettimeofday mkdir strerror strtoken
2788 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2789 echo "configure:2790: checking for $ac_func" >&5
2790 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2791 echo $ac_n "(cached) $ac_c" 1>&6
2793 cat > conftest.$ac_ext <<EOF
2794 #line 2795 "configure"
2795 #include "confdefs.h"
2796 /* System header to define __stub macros and hopefully few prototypes,
2797 which can conflict with char $ac_func(); below. */
2799 /* Override any gcc2 internal prototype to avoid an error. */
2800 /* We use char because int might match the return type of a gcc2
2801 builtin and then its argument prototype would still apply. */
2806 /* The GNU C library defines this for functions which it implements
2807 to always fail with ENOSYS. Some functions are actually named
2808 something starting with __ and the normal name is an alias. */
2809 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2817 if { (eval echo configure:2818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2819 eval "ac_cv_func_$ac_func=yes"
2821 echo "configure: failed program was:" >&5
2822 cat conftest.$ac_ext >&5
2824 eval "ac_cv_func_$ac_func=no"
2829 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2830 echo "$ac_t""yes" 1>&6
2831 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2832 cat >> confdefs.h <<EOF
2833 #define $ac_tr_func 1
2837 echo "$ac_t""no" 1>&6
2841 for ac_func in select socket uname
2843 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2844 echo "configure:2845: checking for $ac_func" >&5
2845 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2846 echo $ac_n "(cached) $ac_c" 1>&6
2848 cat > conftest.$ac_ext <<EOF
2849 #line 2850 "configure"
2850 #include "confdefs.h"
2851 /* System header to define __stub macros and hopefully few prototypes,
2852 which can conflict with char $ac_func(); below. */
2854 /* Override any gcc2 internal prototype to avoid an error. */
2855 /* We use char because int might match the return type of a gcc2
2856 builtin and then its argument prototype would still apply. */
2861 /* The GNU C library defines this for functions which it implements
2862 to always fail with ENOSYS. Some functions are actually named
2863 something starting with __ and the normal name is an alias. */
2864 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2872 if { (eval echo configure:2873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2874 eval "ac_cv_func_$ac_func=yes"
2876 echo "configure: failed program was:" >&5
2877 cat conftest.$ac_ext >&5
2879 eval "ac_cv_func_$ac_func=no"
2884 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2885 echo "$ac_t""yes" 1>&6
2886 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2887 cat >> confdefs.h <<EOF
2888 #define $ac_tr_func 1
2892 echo "$ac_t""no" 1>&6
2896 for ac_func in setrlimit inet_netof getrusage times res_init
2898 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2899 echo "configure:2900: checking for $ac_func" >&5
2900 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2901 echo $ac_n "(cached) $ac_c" 1>&6
2903 cat > conftest.$ac_ext <<EOF
2904 #line 2905 "configure"
2905 #include "confdefs.h"
2906 /* System header to define __stub macros and hopefully few prototypes,
2907 which can conflict with char $ac_func(); below. */
2909 /* Override any gcc2 internal prototype to avoid an error. */
2910 /* We use char because int might match the return type of a gcc2
2911 builtin and then its argument prototype would still apply. */
2916 /* The GNU C library defines this for functions which it implements
2917 to always fail with ENOSYS. Some functions are actually named
2918 something starting with __ and the normal name is an alias. */
2919 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2927 if { (eval echo configure:2928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2929 eval "ac_cv_func_$ac_func=yes"
2931 echo "configure: failed program was:" >&5
2932 cat conftest.$ac_ext >&5
2934 eval "ac_cv_func_$ac_func=no"
2939 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2940 echo "$ac_t""yes" 1>&6
2941 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2942 cat >> confdefs.h <<EOF
2943 #define $ac_tr_func 1
2947 echo "$ac_t""no" 1>&6
2952 for ac_hdr in poll.h
2954 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2955 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2956 echo "configure:2957: checking for $ac_hdr" >&5
2957 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2958 echo $ac_n "(cached) $ac_c" 1>&6
2960 cat > conftest.$ac_ext <<EOF
2961 #line 2962 "configure"
2962 #include "confdefs.h"
2965 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2966 { (eval echo configure:2967: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2967 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2968 if test -z "$ac_err"; then
2970 eval "ac_cv_header_$ac_safe=yes"
2973 echo "configure: failed program was:" >&5
2974 cat conftest.$ac_ext >&5
2976 eval "ac_cv_header_$ac_safe=no"
2980 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2981 echo "$ac_t""yes" 1>&6
2982 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2983 cat >> confdefs.h <<EOF
2984 #define $ac_tr_hdr 1
2988 echo "$ac_t""no" 1>&6
2991 if test -z "$unet_cv_func_poll_syscall" ; then
2992 echo $ac_n "checking if poll is a system call (please wait)""... $ac_c" 1>&6
2993 echo "configure:2994: checking if poll is a system call (please wait)" >&5
2995 echo $ac_n "checking if poll is a system call""... $ac_c" 1>&6
2996 echo "configure:2997: checking if poll is a system call" >&5
2998 if eval "test \"`echo '$''{'unet_cv_func_poll_syscall'+set}'`\" = set"; then
2999 echo $ac_n "(cached) $ac_c" 1>&6
3001 unet_cv_func_poll_syscall=no
3002 if test "$ac_cv_header_poll_h" = yes; then
3003 unet_dirs=`find /usr/include/sys -type f -name '*.h' -exec egrep '^#include <[^/]*/.*>' {} \; | sed -e 's/^.*<//' -e 's%/.*$%%' | sort | uniq`
3004 for i in $unet_dirs ; do
3005 if test "$unet_cv_func_poll_syscall" = no ; then
3006 unet_files=`ls /usr/include/$i/*.h 2> /dev/null`
3007 if test -n "$unet_files" ; then
3008 for j in $unet_files ; do
3009 if test "$unet_cv_func_poll_syscall" = no ; then
3010 unet_line=`egrep '^#define[[:space:]]+[[:alnum:]_]*[Pp][Oo][Ll][Ll]' $j`
3011 if test -n "$unet_line" ; then
3012 unet_sig=`echo "$unet_line" | sed -e 's/poll/fork/g' -e 's/POLL/FORK/g' -e 's/[[:space:]]//g' -e 's%/\*.*\*/%%g' -e 's/[0-9]//g'`
3013 unet_set=`for k in "$unet_sig" ; do echo $k; done | sed -e 's% %|%g'`
3014 unet_match=`sed -e 's/[[:space:]]//g' -e 's%/\*.*\*/%%g' -e 's/[0-9]//g' $j | egrep "$unet_set"`
3015 if test -n "$unet_match" ; then
3016 unet_cv_func_poll_syscall=yes
3028 echo "$ac_t""$unet_cv_func_poll_syscall" 1>&6
3031 echo $ac_n "checking for restartable system calls""... $ac_c" 1>&6
3032 echo "configure:3033: checking for restartable system calls" >&5
3033 if eval "test \"`echo '$''{'ac_cv_sys_restartable_syscalls'+set}'`\" = set"; then
3034 echo $ac_n "(cached) $ac_c" 1>&6
3036 if test "$cross_compiling" = yes; then
3037 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3039 cat > conftest.$ac_ext <<EOF
3040 #line 3041 "configure"
3041 #include "confdefs.h"
3042 /* Exit 0 (true) if wait returns something other than -1,
3043 i.e. the pid of the child, which means that wait was restarted
3044 after getting the signal. */
3045 #include <sys/types.h>
3049 int i = fork (), status;
3050 if (i == 0) { sleep (3); kill (getppid (), SIGINT); sleep (3); exit (0); }
3051 signal (SIGINT, ucatch);
3053 if (status == -1) wait(&i);
3054 exit (status == -1);
3058 if { (eval echo configure:3059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3060 ac_cv_sys_restartable_syscalls=yes
3062 echo "configure: failed program was:" >&5
3063 cat conftest.$ac_ext >&5
3065 ac_cv_sys_restartable_syscalls=no
3072 echo "$ac_t""$ac_cv_sys_restartable_syscalls" 1>&6
3073 if test $ac_cv_sys_restartable_syscalls = yes; then
3074 cat >> confdefs.h <<\EOF
3075 #define HAVE_RESTARTABLE_SYSCALLS 1
3081 for ac_prog in mawk gawk nawk awk
3083 # Extract the first word of "$ac_prog", so it can be a program name with args.
3084 set dummy $ac_prog; ac_word=$2
3085 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3086 echo "configure:3087: checking for $ac_word" >&5
3087 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
3088 echo $ac_n "(cached) $ac_c" 1>&6
3090 if test -n "$AWK"; then
3091 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3093 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3095 for ac_dir in $ac_dummy; do
3096 test -z "$ac_dir" && ac_dir=.
3097 if test -f $ac_dir/$ac_word; then
3098 ac_cv_prog_AWK="$ac_prog"
3105 AWK="$ac_cv_prog_AWK"
3106 if test -n "$AWK"; then
3107 echo "$ac_t""$AWK" 1>&6
3109 echo "$ac_t""no" 1>&6
3112 test -n "$AWK" && break
3115 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
3116 echo "configure:3117: checking whether ${MAKE-make} sets \${MAKE}" >&5
3117 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
3118 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
3119 echo $ac_n "(cached) $ac_c" 1>&6
3121 cat > conftestmake <<\EOF
3123 @echo 'ac_maketemp="${MAKE}"'
3125 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3126 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
3127 if test -n "$ac_maketemp"; then
3128 eval ac_cv_prog_make_${ac_make}_set=yes
3130 eval ac_cv_prog_make_${ac_make}_set=no
3134 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3135 echo "$ac_t""yes" 1>&6
3138 echo "$ac_t""no" 1>&6
3139 SET_MAKE="MAKE=${MAKE-make}"
3142 # Find a good install program. We prefer a C program (faster),
3143 # so one script is as good as another. But avoid the broken or
3144 # incompatible versions:
3145 # SysV /etc/install, /usr/sbin/install
3146 # SunOS /usr/etc/install
3147 # IRIX /sbin/install
3149 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3150 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3151 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3152 # ./install, which can be erroneously created by make from ./install.sh.
3153 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3154 echo "configure:3155: checking for a BSD compatible install" >&5
3155 if test -z "$INSTALL"; then
3156 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3157 echo $ac_n "(cached) $ac_c" 1>&6
3159 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3160 for ac_dir in $PATH; do
3161 # Account for people who put trailing slashes in PATH elements.
3163 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3165 # OSF1 and SCO ODT 3.0 have their own names for install.
3166 # Don't use installbsd from OSF since it installs stuff as root
3168 for ac_prog in ginstall scoinst install; do
3169 if test -f $ac_dir/$ac_prog; then
3170 if test $ac_prog = install &&
3171 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3172 # AIX install. It has an incompatible calling convention.
3175 ac_cv_path_install="$ac_dir/$ac_prog -c"
3186 if test "${ac_cv_path_install+set}" = set; then
3187 INSTALL="$ac_cv_path_install"
3189 # As a last resort, use the slow shell script. We don't cache a
3190 # path for INSTALL within a source directory, because that will
3191 # break other packages using the cache if that directory is
3192 # removed, or if the path is relative.
3193 INSTALL="$ac_install_sh"
3196 echo "$ac_t""$INSTALL" 1>&6
3198 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3199 # It thinks the first close brace ends the variable substitution.
3200 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3202 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3204 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3206 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3207 echo "configure:3208: checking whether ln -s works" >&5
3208 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
3209 echo $ac_n "(cached) $ac_c" 1>&6
3212 if ln -s X conftestdata 2>/dev/null
3215 ac_cv_prog_LN_S="ln -s"
3220 LN_S="$ac_cv_prog_LN_S"
3221 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3222 echo "$ac_t""yes" 1>&6
3224 echo "$ac_t""no" 1>&6
3229 # Extract the first word of "$ac_prog", so it can be a program name with args.
3230 set dummy $ac_prog; ac_word=$2
3231 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3232 echo "configure:3233: checking for $ac_word" >&5
3233 if eval "test \"`echo '$''{'ac_cv_path_RMPROG'+set}'`\" = set"; then
3234 echo $ac_n "(cached) $ac_c" 1>&6
3238 ac_cv_path_RMPROG="$RMPROG" # Let the user override the test with a path.
3241 ac_cv_path_RMPROG="$RMPROG" # Let the user override the test with a dos path.
3244 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3246 for ac_dir in $ac_dummy; do
3247 test -z "$ac_dir" && ac_dir=.
3248 if test -f $ac_dir/$ac_word; then
3249 ac_cv_path_RMPROG="$ac_dir/$ac_word"
3257 RMPROG="$ac_cv_path_RMPROG"
3258 if test -n "$RMPROG"; then
3259 echo "$ac_t""$RMPROG" 1>&6
3261 echo "$ac_t""no" 1>&6
3264 test -n "$RMPROG" && break
3266 test -n "$RMPROG" || RMPROG="/bin/rm"
3270 # Extract the first word of "$ac_prog", so it can be a program name with args.
3271 set dummy $ac_prog; ac_word=$2
3272 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3273 echo "configure:3274: checking for $ac_word" >&5
3274 if eval "test \"`echo '$''{'ac_cv_path_SHPROG'+set}'`\" = set"; then
3275 echo $ac_n "(cached) $ac_c" 1>&6
3279 ac_cv_path_SHPROG="$SHPROG" # Let the user override the test with a path.
3282 ac_cv_path_SHPROG="$SHPROG" # Let the user override the test with a dos path.
3285 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3287 for ac_dir in $ac_dummy; do
3288 test -z "$ac_dir" && ac_dir=.
3289 if test -f $ac_dir/$ac_word; then
3290 ac_cv_path_SHPROG="$ac_dir/$ac_word"
3298 SHPROG="$ac_cv_path_SHPROG"
3299 if test -n "$SHPROG"; then
3300 echo "$ac_t""$SHPROG" 1>&6
3302 echo "$ac_t""no" 1>&6
3305 test -n "$SHPROG" && break
3307 test -n "$SHPROG" || SHPROG="/bin/sh"
3310 echo $ac_n "checking for set -h""... $ac_c" 1>&6
3311 echo "configure:3312: checking for set -h" >&5
3312 if eval "test \"`echo '$''{'unet_cv_sys_set_h'+set}'`\" = set"; then
3313 echo $ac_n "(cached) $ac_c" 1>&6
3315 echo "set -h; exit $?" > conftest ;
3316 $SHPROG ./conftest 2> conftest.out
3317 ac_err=`grep -v '^ *+' conftest.out`
3318 if test -z "$ac_err"; then
3319 unet_cv_sys_set_h=yes
3321 unet_cv_sys_set_h=no
3323 $RMPROG -fr conftest*
3326 echo "$ac_t""$unet_cv_sys_set_h" 1>&6
3329 echo $ac_n "checking for posix non-blocking""... $ac_c" 1>&6
3330 echo "configure:3331: checking for posix non-blocking" >&5
3331 if eval "test \"`echo '$''{'unet_cv_sys_nonblocking_posix'+set}'`\" = set"; then
3332 echo $ac_n "(cached) $ac_c" 1>&6
3334 if test "$cross_compiling" = yes; then
3335 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3337 cat > conftest.$ac_ext <<EOF
3338 #line 3339 "configure"
3339 #include "confdefs.h"
3340 #include <sys/types.h>
3341 #include <sys/socket.h>
3343 #include <sys/ioctl.h>
3344 #include <sys/file.h>
3346 $ac_cv_type_signal alarmed() { exit(1); }
3351 size_t l = sizeof(x);
3352 int f = socket(AF_INET, SOCK_DGRAM, 0);
3353 if (f >= 0 && !(fcntl(f, F_SETFL, O_NONBLOCK)))
3355 signal(SIGALRM, alarmed);
3357 recvfrom(f, b, 12, 0, &x, &l);
3364 if { (eval echo configure:3365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3366 unet_cv_sys_nonblocking_posix=yes
3368 echo "configure: failed program was:" >&5
3369 cat conftest.$ac_ext >&5
3371 unet_cv_sys_nonblocking_posix=no
3378 echo "$ac_t""$unet_cv_sys_nonblocking_posix" 1>&6
3379 if test $unet_cv_sys_nonblocking_posix = yes; then
3380 cat >> confdefs.h <<\EOF
3381 #define NBLOCK_POSIX 1
3385 echo $ac_n "checking for bsd non-blocking""... $ac_c" 1>&6
3386 echo "configure:3387: checking for bsd non-blocking" >&5
3387 if eval "test \"`echo '$''{'unet_cv_sys_nonblocking_bsd'+set}'`\" = set"; then
3388 echo $ac_n "(cached) $ac_c" 1>&6
3390 if test "$cross_compiling" = yes; then
3391 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3393 cat > conftest.$ac_ext <<EOF
3394 #line 3395 "configure"
3395 #include "confdefs.h"
3396 #include <sys/types.h>
3397 #include <sys/socket.h>
3399 #include <sys/ioctl.h>
3400 #include <sys/file.h>
3402 $ac_cv_type_signal alarmed() { exit(1); }
3407 size_t l = sizeof(x);
3408 int f = socket(AF_INET, SOCK_DGRAM, 0);
3409 if (f >= 0 && !(fcntl(f, F_SETFL, O_NDELAY)))
3411 signal(SIGALRM, alarmed);
3413 recvfrom(f, b, 12, 0, &x, &l);
3420 if { (eval echo configure:3421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3422 unet_cv_sys_nonblocking_bsd=yes
3424 echo "configure: failed program was:" >&5
3425 cat conftest.$ac_ext >&5
3427 unet_cv_sys_nonblocking_bsd=no
3434 echo "$ac_t""$unet_cv_sys_nonblocking_bsd" 1>&6
3435 if test $unet_cv_sys_nonblocking_bsd = yes; then
3436 cat >> confdefs.h <<\EOF
3437 #define NBLOCK_BSD 1
3441 cat >> confdefs.h <<\EOF
3442 #define NBLOCK_SYSV 1
3447 echo $ac_n "checking for posix signals""... $ac_c" 1>&6
3448 echo "configure:3449: checking for posix signals" >&5
3449 if eval "test \"`echo '$''{'unet_cv_sys_signal_posix'+set}'`\" = set"; then
3450 echo $ac_n "(cached) $ac_c" 1>&6
3452 cat > conftest.$ac_ext <<EOF
3453 #line 3454 "configure"
3454 #include "confdefs.h"
3457 sigaction(SIGTERM, (struct sigaction *)0L, (struct sigaction *)0L)
3460 if { (eval echo configure:3461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3462 unet_cv_sys_signal_posix=yes
3464 echo "configure: failed program was:" >&5
3465 cat conftest.$ac_ext >&5
3467 unet_cv_sys_signal_posix=no
3472 echo "$ac_t""$unet_cv_sys_signal_posix" 1>&6
3473 if test $unet_cv_sys_signal_posix = yes; then
3474 cat >> confdefs.h <<\EOF
3475 #define POSIX_SIGNALS 1
3479 echo $ac_n "checking for bsd reliable signals""... $ac_c" 1>&6
3480 echo "configure:3481: checking for bsd reliable signals" >&5
3481 if eval "test \"`echo '$''{'unet_cv_sys_signal_bsd'+set}'`\" = set"; then
3482 echo $ac_n "(cached) $ac_c" 1>&6
3484 if test "$cross_compiling" = yes; then
3485 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3487 cat > conftest.$ac_ext <<EOF
3488 #line 3489 "configure"
3489 #include "confdefs.h"
3492 $ac_cv_type_signal handler()
3496 kill(getpid(), SIGTERM);
3501 signal(SIGTERM, handler);
3502 kill(getpid(), SIGTERM);
3506 if { (eval echo configure:3507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3508 unet_cv_sys_signal_bsd=yes
3510 echo "configure: failed program was:" >&5
3511 cat conftest.$ac_ext >&5
3513 unet_cv_sys_signal_bsd=no
3520 echo "$ac_t""$unet_cv_sys_signal_bsd" 1>&6
3521 if test $unet_cv_sys_signal_bsd = yes; then
3522 cat >> confdefs.h <<\EOF
3523 #define BSD_RELIABLE_SIGNALS 1
3527 cat >> confdefs.h <<\EOF
3528 #define SYSV_UNRELIABLE_SIGNALS 1
3534 echo $ac_n "checking if the compiler understands -pipe""... $ac_c" 1>&6
3535 echo "configure:3536: checking if the compiler understands -pipe" >&5
3536 unet_cv_pipe_flags="$ac_cv_prog_gcc"
3537 if test "$ac_cv_prog_gcc" = no; then
3539 CFLAGS="$CFLAGS -pipe"
3540 cat > conftest.$ac_ext <<EOF
3541 #line 3542 "configure"
3542 #include "confdefs.h"
3548 if { (eval echo configure:3549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3550 unet_cv_pipe_flags=yes
3552 echo "configure: failed program was:" >&5
3553 cat conftest.$ac_ext >&5
3558 echo "$ac_t""$unet_cv_pipe_flags" 1>&6
3559 if test "$unet_cv_pipe_flags" = yes ; then
3560 x=`echo $CFLAGS | grep 'pipe' 2>/dev/null`
3561 if test "$x" = "" ; then
3562 CFLAGS="$CFLAGS -pipe"
3572 cat > confcache <<\EOF
3573 # This file is a shell script that caches the results of configure
3574 # tests run on this system so they can be shared between configure
3575 # scripts and configure runs. It is not useful on other systems.
3576 # If it contains results you don't want to keep, you may remove or edit it.
3578 # By default, configure uses ./config.cache as the cache file,
3579 # creating it if it does not exist already. You can give configure
3580 # the --cache-file=FILE option to use a different cache file; that is
3581 # what configure does when it calls configure scripts in
3582 # subdirectories, so they share the cache.
3583 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3584 # config.status only pays attention to the cache file if you give it the
3585 # --recheck option to rerun configure.
3588 # The following way of writing the cache mishandles newlines in values,
3589 # but we know of no workaround that is simple, portable, and efficient.
3590 # So, don't put newlines in cache variables' values.
3591 # Ultrix sh set writes to stderr and can't be redirected directly,
3592 # and sets the high bit in the cache file unless we assign to the vars.
3594 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3596 # `set' does not quote correctly, so add quotes (double-quote substitution
3597 # turns \\\\ into \\, and sed turns \\ into \).
3599 -e "s/'/'\\\\''/g" \
3600 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3603 # `set' quotes correctly as required by POSIX, so do not add quotes.
3604 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3607 if cmp -s $cache_file confcache; then
3610 if test -w $cache_file; then
3611 echo "updating cache $cache_file"
3612 cat confcache > $cache_file
3614 echo "not updating unwritable cache $cache_file"
3619 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3621 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3622 # Let make expand exec_prefix.
3623 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3625 # Any assignment to VPATH causes Sun make to only execute
3626 # the first set of double-colon rules, so remove it if not needed.
3627 # If there is a colon in the path, we need to keep it.
3628 if test "x$srcdir" = x.; then
3629 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3632 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3634 DEFS=-DHAVE_CONFIG_H
3636 # Without the "./", some shells look in PATH for config.status.
3637 : ${CONFIG_STATUS=./config.status}
3639 echo creating $CONFIG_STATUS
3640 rm -f $CONFIG_STATUS
3641 cat > $CONFIG_STATUS <<EOF
3643 # Generated automatically by configure.
3644 # Run this file to recreate the current configuration.
3645 # This directory was configured as follows,
3646 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3648 # $0 $ac_configure_args
3650 # Compiler output produced by configure, useful for debugging
3651 # configure, is in ./config.log if it exists.
3653 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3656 case "\$ac_option" in
3657 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3658 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3659 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3660 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3661 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3663 -help | --help | --hel | --he | --h)
3664 echo "\$ac_cs_usage"; exit 0 ;;
3665 *) echo "\$ac_cs_usage"; exit 1 ;;
3669 ac_given_srcdir=$srcdir
3670 ac_given_INSTALL="$INSTALL"
3672 trap 'rm -fr `echo "config-sh Configure ../Makefile ../ircd/Makefile ../doc/Makefile Makefile setup.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3674 cat >> $CONFIG_STATUS <<EOF
3676 # Protect against being on the right side of a sed subst in config.status.
3677 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3678 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3682 s%@CFLAGS@%$CFLAGS%g
3683 s%@CPPFLAGS@%$CPPFLAGS%g
3684 s%@CXXFLAGS@%$CXXFLAGS%g
3685 s%@FFLAGS@%$FFLAGS%g
3687 s%@LDFLAGS@%$LDFLAGS%g
3689 s%@exec_prefix@%$exec_prefix%g
3690 s%@prefix@%$prefix%g
3691 s%@program_transform_name@%$program_transform_name%g
3692 s%@bindir@%$bindir%g
3693 s%@sbindir@%$sbindir%g
3694 s%@libexecdir@%$libexecdir%g
3695 s%@datadir@%$datadir%g
3696 s%@sysconfdir@%$sysconfdir%g
3697 s%@sharedstatedir@%$sharedstatedir%g
3698 s%@localstatedir@%$localstatedir%g
3699 s%@libdir@%$libdir%g
3700 s%@includedir@%$includedir%g
3701 s%@oldincludedir@%$oldincludedir%g
3702 s%@infodir@%$infodir%g
3703 s%@mandir@%$mandir%g
3706 s%@LIBOBJS@%$LIBOBJS%g
3708 s%@SET_MAKE@%$SET_MAKE%g
3709 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3710 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3711 s%@INSTALL_DATA@%$INSTALL_DATA%g
3713 s%@RMPROG@%$RMPROG%g
3714 s%@SHPROG@%$SHPROG%g
3715 s%@unet_cv_sys_set_h@%$unet_cv_sys_set_h%g
3716 s%@ac_cv_header_poll_h@%$ac_cv_header_poll_h%g
3717 s%@ac_cv_header_syslog_h@%$ac_cv_header_syslog_h%g
3718 s%@unet_cv_func_poll_syscall@%$unet_cv_func_poll_syscall%g
3723 cat >> $CONFIG_STATUS <<\EOF
3725 # Split the substitutions into bite-sized pieces for seds with
3726 # small command number limits, like on Digital OSF/1 and HP-UX.
3727 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3728 ac_file=1 # Number of current file.
3729 ac_beg=1 # First line for current file.
3730 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3733 while $ac_more_lines; do
3734 if test $ac_beg -gt 1; then
3735 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3737 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3739 if test ! -s conftest.s$ac_file; then
3741 rm -f conftest.s$ac_file
3743 if test -z "$ac_sed_cmds"; then
3744 ac_sed_cmds="sed -f conftest.s$ac_file"
3746 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3748 ac_file=`expr $ac_file + 1`
3750 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3753 if test -z "$ac_sed_cmds"; then
3758 cat >> $CONFIG_STATUS <<EOF
3760 CONFIG_FILES=\${CONFIG_FILES-"config-sh Configure ../Makefile ../ircd/Makefile ../doc/Makefile Makefile"}
3762 cat >> $CONFIG_STATUS <<\EOF
3763 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3764 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3766 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3767 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3768 *) ac_file_in="${ac_file}.in" ;;
3771 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3773 # Remove last slash and all that follows it. Not all systems have dirname.
3774 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3775 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3776 # The file is in a subdirectory.
3777 test ! -d "$ac_dir" && mkdir "$ac_dir"
3778 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3779 # A "../" for each directory in $ac_dir_suffix.
3780 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3782 ac_dir_suffix= ac_dots=
3785 case "$ac_given_srcdir" in
3787 if test -z "$ac_dots"; then top_srcdir=.
3788 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3789 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3791 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3792 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3795 case "$ac_given_INSTALL" in
3796 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3797 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3800 echo creating "$ac_file"
3802 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3804 *Makefile*) ac_comsub="1i\\
3805 # $configure_input" ;;
3809 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3811 s%@configure_input@%$configure_input%g
3812 s%@srcdir@%$srcdir%g
3813 s%@top_srcdir@%$top_srcdir%g
3814 s%@INSTALL@%$INSTALL%g
3815 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3819 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3820 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3822 # ac_d sets the value in "#define NAME VALUE" lines.
3823 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3824 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3827 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3828 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3829 ac_uB='\([ ]\)%\1#\2define\3'
3832 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3833 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3834 ac_eB='$%\1#\2define\3'
3838 if test "${CONFIG_HEADERS+set}" != set; then
3840 cat >> $CONFIG_STATUS <<EOF
3841 CONFIG_HEADERS="setup.h"
3843 cat >> $CONFIG_STATUS <<\EOF
3845 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3846 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3848 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3849 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3850 *) ac_file_in="${ac_file}.in" ;;
3853 echo creating $ac_file
3855 rm -f conftest.frag conftest.in conftest.out
3856 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3857 cat $ac_file_inputs > conftest.in
3861 # Transform confdefs.h into a sed script conftest.vals that substitutes
3862 # the proper values into config.h.in to produce config.h. And first:
3863 # Protect against being on the right side of a sed subst in config.status.
3864 # Protect against being in an unquoted here document in config.status.
3866 cat > conftest.hdr <<\EOF
3869 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3873 sed -n -f conftest.hdr confdefs.h > conftest.vals
3876 # This sed command replaces #undef with comments. This is necessary, for
3877 # example, in the case of _POSIX_SOURCE, which is predefined and required
3878 # on some systems where configure will not decide to define it.
3879 cat >> conftest.vals <<\EOF
3880 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3883 # Break up conftest.vals because some shells have a limit on
3884 # the size of here documents, and old seds have small limits too.
3889 ac_lines=`grep -c . conftest.vals`
3890 # grep -c gives empty output for an empty file on some AIX systems.
3891 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3892 # Write a limited-size here document to conftest.frag.
3893 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3894 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3896 sed -f conftest.frag conftest.in > conftest.out
3898 mv conftest.out conftest.in
3900 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3902 mv conftest.tail conftest.vals
3906 cat >> $CONFIG_STATUS <<\EOF
3907 rm -f conftest.frag conftest.h
3908 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3909 cat conftest.in >> conftest.h
3911 if cmp -s $ac_file conftest.h 2>/dev/null; then
3912 echo "$ac_file is unchanged"
3915 # Remove last slash and all that follows it. Not all systems have dirname.
3916 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3917 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3918 # The file is in a subdirectory.
3919 test ! -d "$ac_dir" && mkdir "$ac_dir"
3922 mv conftest.h $ac_file
3927 cat >> $CONFIG_STATUS <<EOF
3930 cat >> $CONFIG_STATUS <<\EOF
3931 echo timestamp > stamp-h;
3934 chmod +x $CONFIG_STATUS
3935 rm -fr confdefs* $ac_clean_files
3936 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1