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
775 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
776 echo "configure:777: checking for ${CC-cc} option to accept ANSI C" >&5
777 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
778 echo $ac_n "(cached) $ac_c" 1>&6
780 am_cv_prog_cc_stdc=no
782 # Don't try gcc -ansi; that turns off useful extensions and
783 # breaks some systems' header files.
785 # Ultrix and OSF/1 -std1
786 # HP-UX -Aa -D_HPUX_SOURCE
787 # SVR4 -Xc -D__EXTENSIONS__
788 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
790 CC="$ac_save_CC $ac_arg"
791 cat > conftest.$ac_ext <<EOF
792 #line 793 "configure"
793 #include "confdefs.h"
796 #include <sys/types.h>
797 #include <sys/stat.h>
798 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
799 struct buf { int x; };
800 FILE * (*rcsopen) (struct buf *, struct stat *, int);
801 static char *e (p, i)
807 static char *f (char * (*g) (char **, int), char **p, ...)
812 s = g (p, va_arg (v,int));
816 int test (int i, double x);
817 struct s1 {int (*f) (int a);};
818 struct s2 {int (*f) (double a);};
819 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
825 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
829 if { (eval echo configure:830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
831 am_cv_prog_cc_stdc="$ac_arg"; break
833 echo "configure: failed program was:" >&5
834 cat conftest.$ac_ext >&5
842 if test -z "$am_cv_prog_cc_stdc"; then
843 echo "$ac_t""none needed" 1>&6
845 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
847 case "x$am_cv_prog_cc_stdc" in
849 *) CC="$CC $am_cv_prog_cc_stdc" ;;
852 if test "$CFLAGS" != "" ; then
853 CFLAGS=`echo "$CFLAGS" | sed -e 's/-O2/-O3/'`
855 if test "$CFLAGS" != "" ; then
856 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pipe//g'`
859 echo $ac_n "checking for crypt in -lc""... $ac_c" 1>&6
860 echo "configure:861: checking for crypt in -lc" >&5
861 ac_lib_var=`echo c'_'crypt | sed 'y%./+-%__p_%'`
862 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
863 echo $ac_n "(cached) $ac_c" 1>&6
867 cat > conftest.$ac_ext <<EOF
868 #line 869 "configure"
869 #include "confdefs.h"
870 /* Override any gcc2 internal prototype to avoid an error. */
871 /* We use char because int might match the return type of a gcc2
872 builtin and then its argument prototype would still apply. */
879 if { (eval echo configure:880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
881 eval "ac_cv_lib_$ac_lib_var=yes"
883 echo "configure: failed program was:" >&5
884 cat conftest.$ac_ext >&5
886 eval "ac_cv_lib_$ac_lib_var=no"
892 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
893 echo "$ac_t""yes" 1>&6
896 echo "$ac_t""no" 1>&6
897 echo $ac_n "checking for crypt in -ldescrypt""... $ac_c" 1>&6
898 echo "configure:899: checking for crypt in -ldescrypt" >&5
899 ac_lib_var=`echo descrypt'_'crypt | sed 'y%./+-%__p_%'`
900 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
901 echo $ac_n "(cached) $ac_c" 1>&6
904 LIBS="-ldescrypt $LIBS"
905 cat > conftest.$ac_ext <<EOF
906 #line 907 "configure"
907 #include "confdefs.h"
908 /* Override any gcc2 internal prototype to avoid an error. */
909 /* We use char because int might match the return type of a gcc2
910 builtin and then its argument prototype would still apply. */
917 if { (eval echo configure:918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
919 eval "ac_cv_lib_$ac_lib_var=yes"
921 echo "configure: failed program was:" >&5
922 cat conftest.$ac_ext >&5
924 eval "ac_cv_lib_$ac_lib_var=no"
930 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
931 echo "$ac_t""yes" 1>&6
932 LIBS="-ldescrypt $LIBS"
934 echo "$ac_t""no" 1>&6
935 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
936 echo "configure:937: checking for crypt in -lcrypt" >&5
937 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
938 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
939 echo $ac_n "(cached) $ac_c" 1>&6
943 cat > conftest.$ac_ext <<EOF
944 #line 945 "configure"
945 #include "confdefs.h"
946 /* Override any gcc2 internal prototype to avoid an error. */
947 /* We use char because int might match the return type of a gcc2
948 builtin and then its argument prototype would still apply. */
955 if { (eval echo configure:956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
957 eval "ac_cv_lib_$ac_lib_var=yes"
959 echo "configure: failed program was:" >&5
960 cat conftest.$ac_ext >&5
962 eval "ac_cv_lib_$ac_lib_var=no"
968 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
969 echo "$ac_t""yes" 1>&6
970 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/^a-zA-Z0-9_/_/g' \
971 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
972 cat >> confdefs.h <<EOF
979 echo "$ac_t""no" 1>&6
986 echo $ac_n "checking for gethostbyname in -lc""... $ac_c" 1>&6
987 echo "configure:988: checking for gethostbyname in -lc" >&5
988 ac_lib_var=`echo c'_'gethostbyname | sed 'y%./+-%__p_%'`
989 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
990 echo $ac_n "(cached) $ac_c" 1>&6
994 cat > conftest.$ac_ext <<EOF
995 #line 996 "configure"
996 #include "confdefs.h"
997 /* Override any gcc2 internal prototype to avoid an error. */
998 /* We use char because int might match the return type of a gcc2
999 builtin and then its argument prototype would still apply. */
1000 char gethostbyname();
1006 if { (eval echo configure:1007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1008 eval "ac_cv_lib_$ac_lib_var=yes"
1010 echo "configure: failed program was:" >&5
1011 cat conftest.$ac_ext >&5
1013 eval "ac_cv_lib_$ac_lib_var=no"
1016 LIBS="$ac_save_LIBS"
1019 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1020 echo "$ac_t""yes" 1>&6
1023 echo "$ac_t""no" 1>&6
1024 echo $ac_n "checking for gethostbyaddr in -lnsl""... $ac_c" 1>&6
1025 echo "configure:1026: checking for gethostbyaddr in -lnsl" >&5
1026 ac_lib_var=`echo nsl'_'gethostbyaddr | sed 'y%./+-%__p_%'`
1027 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1028 echo $ac_n "(cached) $ac_c" 1>&6
1030 ac_save_LIBS="$LIBS"
1032 cat > conftest.$ac_ext <<EOF
1033 #line 1034 "configure"
1034 #include "confdefs.h"
1035 /* Override any gcc2 internal prototype to avoid an error. */
1036 /* We use char because int might match the return type of a gcc2
1037 builtin and then its argument prototype would still apply. */
1038 char gethostbyaddr();
1044 if { (eval echo configure:1045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1046 eval "ac_cv_lib_$ac_lib_var=yes"
1048 echo "configure: failed program was:" >&5
1049 cat conftest.$ac_ext >&5
1051 eval "ac_cv_lib_$ac_lib_var=no"
1054 LIBS="$ac_save_LIBS"
1057 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1058 echo "$ac_t""yes" 1>&6
1061 echo "$ac_t""no" 1>&6
1066 echo $ac_n "checking for socket in -lc""... $ac_c" 1>&6
1067 echo "configure:1068: checking for socket in -lc" >&5
1068 ac_lib_var=`echo c'_'socket | sed 'y%./+-%__p_%'`
1069 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1070 echo $ac_n "(cached) $ac_c" 1>&6
1072 ac_save_LIBS="$LIBS"
1074 cat > conftest.$ac_ext <<EOF
1075 #line 1076 "configure"
1076 #include "confdefs.h"
1077 /* Override any gcc2 internal prototype to avoid an error. */
1078 /* We use char because int might match the return type of a gcc2
1079 builtin and then its argument prototype would still apply. */
1086 if { (eval echo configure:1087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1088 eval "ac_cv_lib_$ac_lib_var=yes"
1090 echo "configure: failed program was:" >&5
1091 cat conftest.$ac_ext >&5
1093 eval "ac_cv_lib_$ac_lib_var=no"
1096 LIBS="$ac_save_LIBS"
1099 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1100 echo "$ac_t""yes" 1>&6
1103 echo "$ac_t""no" 1>&6
1104 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1105 echo "configure:1106: checking for socket in -lsocket" >&5
1106 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
1107 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1108 echo $ac_n "(cached) $ac_c" 1>&6
1110 ac_save_LIBS="$LIBS"
1111 LIBS="-lsocket $LIBS"
1112 cat > conftest.$ac_ext <<EOF
1113 #line 1114 "configure"
1114 #include "confdefs.h"
1115 /* Override any gcc2 internal prototype to avoid an error. */
1116 /* We use char because int might match the return type of a gcc2
1117 builtin and then its argument prototype would still apply. */
1124 if { (eval echo configure:1125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1126 eval "ac_cv_lib_$ac_lib_var=yes"
1128 echo "configure: failed program was:" >&5
1129 cat conftest.$ac_ext >&5
1131 eval "ac_cv_lib_$ac_lib_var=no"
1134 LIBS="$ac_save_LIBS"
1137 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1138 echo "$ac_t""yes" 1>&6
1139 LIBS="-lsocket $LIBS"
1141 echo "$ac_t""no" 1>&6
1146 echo $ac_n "checking for res_mkquery in -lresolv""... $ac_c" 1>&6
1147 echo "configure:1148: checking for res_mkquery in -lresolv" >&5
1148 if eval "test \"`echo '$''{'unet_cv_lib_resolv'+set}'`\" = set"; then
1149 echo $ac_n "(cached) $ac_c" 1>&6
1151 cat > conftest.$ac_ext <<EOF
1152 #line 1153 "configure"
1153 #include "confdefs.h"
1155 extern int res_mkquery(int, const char *, int, int, const char *,
1156 int, struct rrec *, unsigned char *, int);
1166 res_mkquery(op,dname,class,type,data,datalen,newrr,buf,buflen)
1169 if { (eval echo configure:1170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1171 unet_cv_lib_resolv=no
1173 echo "configure: failed program was:" >&5
1174 cat conftest.$ac_ext >&5
1177 LIBS="$LIBS -lresolv"
1178 cat > conftest.$ac_ext <<EOF
1179 #line 1180 "configure"
1180 #include "confdefs.h"
1186 if { (eval echo configure:1187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1188 unet_cv_lib_resolv=yes
1190 echo "configure: failed program was:" >&5
1191 cat conftest.$ac_ext >&5
1193 unet_cv_lib_resolv=no
1201 echo "$ac_t""$unet_cv_lib_resolv" 1>&6
1202 if test $unet_cv_lib_resolv = yes; then
1203 cat >> confdefs.h <<\EOF
1204 #define HAVE_LIB_RESOLV 1
1207 LIBS="$LIBS -lresolv"
1210 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1211 echo "configure:1212: checking how to run the C preprocessor" >&5
1212 # On Suns, sometimes $CPP names a directory.
1213 if test -n "$CPP" && test -d "$CPP"; then
1216 if test -z "$CPP"; then
1217 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1218 echo $ac_n "(cached) $ac_c" 1>&6
1220 # This must be in double quotes, not single quotes, because CPP may get
1221 # substituted into the Makefile and "${CC-cc}" will confuse make.
1223 # On the NeXT, cc -E runs the code through the compiler's parser,
1224 # not just through cpp.
1225 cat > conftest.$ac_ext <<EOF
1226 #line 1227 "configure"
1227 #include "confdefs.h"
1231 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1232 { (eval echo configure:1233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1233 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1234 if test -z "$ac_err"; then
1238 echo "configure: failed program was:" >&5
1239 cat conftest.$ac_ext >&5
1241 CPP="${CC-cc} -E -traditional-cpp"
1242 cat > conftest.$ac_ext <<EOF
1243 #line 1244 "configure"
1244 #include "confdefs.h"
1248 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1249 { (eval echo configure:1250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1250 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1251 if test -z "$ac_err"; then
1255 echo "configure: failed program was:" >&5
1256 cat conftest.$ac_ext >&5
1258 CPP="${CC-cc} -nologo -E"
1259 cat > conftest.$ac_ext <<EOF
1260 #line 1261 "configure"
1261 #include "confdefs.h"
1265 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1266 { (eval echo configure:1267: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1267 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1268 if test -z "$ac_err"; then
1272 echo "configure: failed program was:" >&5
1273 cat conftest.$ac_ext >&5
1282 ac_cv_prog_CPP="$CPP"
1284 CPP="$ac_cv_prog_CPP"
1286 ac_cv_prog_CPP="$CPP"
1288 echo "$ac_t""$CPP" 1>&6
1290 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1291 echo "configure:1292: checking for ANSI C header files" >&5
1292 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1293 echo $ac_n "(cached) $ac_c" 1>&6
1295 cat > conftest.$ac_ext <<EOF
1296 #line 1297 "configure"
1297 #include "confdefs.h"
1303 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1304 { (eval echo configure:1305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1305 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1306 if test -z "$ac_err"; then
1308 ac_cv_header_stdc=yes
1311 echo "configure: failed program was:" >&5
1312 cat conftest.$ac_ext >&5
1314 ac_cv_header_stdc=no
1318 if test $ac_cv_header_stdc = yes; then
1319 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1320 cat > conftest.$ac_ext <<EOF
1321 #line 1322 "configure"
1322 #include "confdefs.h"
1325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1326 egrep "memchr" >/dev/null 2>&1; then
1330 ac_cv_header_stdc=no
1336 if test $ac_cv_header_stdc = yes; then
1337 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1338 cat > conftest.$ac_ext <<EOF
1339 #line 1340 "configure"
1340 #include "confdefs.h"
1343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1344 egrep "free" >/dev/null 2>&1; then
1348 ac_cv_header_stdc=no
1354 if test $ac_cv_header_stdc = yes; then
1355 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1356 if test "$cross_compiling" = yes; then
1359 cat > conftest.$ac_ext <<EOF
1360 #line 1361 "configure"
1361 #include "confdefs.h"
1363 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1364 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1365 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1366 int main () { int i; for (i = 0; i < 256; i++)
1367 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1371 if { (eval echo configure:1372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1375 echo "configure: failed program was:" >&5
1376 cat conftest.$ac_ext >&5
1378 ac_cv_header_stdc=no
1386 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1387 if test $ac_cv_header_stdc = yes; then
1388 cat >> confdefs.h <<\EOF
1389 #define STDC_HEADERS 1
1395 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1396 echo "configure:1397: checking whether byte ordering is bigendian" >&5
1397 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1398 echo $ac_n "(cached) $ac_c" 1>&6
1400 ac_cv_c_bigendian=unknown
1401 # See if sys/param.h defines the BYTE_ORDER macro.
1402 cat > conftest.$ac_ext <<EOF
1403 #line 1404 "configure"
1404 #include "confdefs.h"
1405 #include <sys/types.h>
1406 #include <sys/param.h>
1409 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1414 if { (eval echo configure:1415: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1416 # It does; now see whether it defined to BIG_ENDIAN or not.
1417 cat > conftest.$ac_ext <<EOF
1418 #line 1419 "configure"
1419 #include "confdefs.h"
1420 #include <sys/types.h>
1421 #include <sys/param.h>
1424 #if BYTE_ORDER != BIG_ENDIAN
1429 if { (eval echo configure:1430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1431 ac_cv_c_bigendian=yes
1433 echo "configure: failed program was:" >&5
1434 cat conftest.$ac_ext >&5
1436 ac_cv_c_bigendian=no
1440 echo "configure: failed program was:" >&5
1441 cat conftest.$ac_ext >&5
1444 if test $ac_cv_c_bigendian = unknown; then
1445 if test "$cross_compiling" = yes; then
1446 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1448 cat > conftest.$ac_ext <<EOF
1449 #line 1450 "configure"
1450 #include "confdefs.h"
1452 /* Are we little or big endian? From Harbison&Steele. */
1456 char c[sizeof (long)];
1459 exit (u.c[sizeof (long) - 1] == 1);
1462 if { (eval echo configure:1463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1464 ac_cv_c_bigendian=no
1466 echo "configure: failed program was:" >&5
1467 cat conftest.$ac_ext >&5
1469 ac_cv_c_bigendian=yes
1477 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1478 if test $ac_cv_c_bigendian = yes; then
1479 cat >> confdefs.h <<\EOF
1480 #define WORDS_BIGENDIAN 1
1485 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1486 echo "configure:1487: checking for size_t" >&5
1487 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1488 echo $ac_n "(cached) $ac_c" 1>&6
1490 cat > conftest.$ac_ext <<EOF
1491 #line 1492 "configure"
1492 #include "confdefs.h"
1493 #include <sys/types.h>
1499 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1500 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1502 ac_cv_type_size_t=yes
1505 ac_cv_type_size_t=no
1510 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1511 if test $ac_cv_type_size_t = no; then
1512 cat >> confdefs.h <<\EOF
1513 #define size_t unsigned
1518 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1519 echo "configure:1520: checking whether time.h and sys/time.h may both be included" >&5
1520 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1521 echo $ac_n "(cached) $ac_c" 1>&6
1523 cat > conftest.$ac_ext <<EOF
1524 #line 1525 "configure"
1525 #include "confdefs.h"
1526 #include <sys/types.h>
1527 #include <sys/time.h>
1533 if { (eval echo configure:1534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1535 ac_cv_header_time=yes
1537 echo "configure: failed program was:" >&5
1538 cat conftest.$ac_ext >&5
1540 ac_cv_header_time=no
1545 echo "$ac_t""$ac_cv_header_time" 1>&6
1546 if test $ac_cv_header_time = yes; then
1547 cat >> confdefs.h <<\EOF
1548 #define TIME_WITH_SYS_TIME 1
1553 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
1554 echo "configure:1555: checking whether struct tm is in sys/time.h or time.h" >&5
1555 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
1556 echo $ac_n "(cached) $ac_c" 1>&6
1558 cat > conftest.$ac_ext <<EOF
1559 #line 1560 "configure"
1560 #include "confdefs.h"
1561 #include <sys/types.h>
1564 struct tm *tp; tp->tm_sec;
1567 if { (eval echo configure:1568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1569 ac_cv_struct_tm=time.h
1571 echo "configure: failed program was:" >&5
1572 cat conftest.$ac_ext >&5
1574 ac_cv_struct_tm=sys/time.h
1579 echo "$ac_t""$ac_cv_struct_tm" 1>&6
1580 if test $ac_cv_struct_tm = sys/time.h; then
1581 cat >> confdefs.h <<\EOF
1582 #define TM_IN_SYS_TIME 1
1587 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
1588 echo "configure:1589: checking for uid_t in sys/types.h" >&5
1589 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
1590 echo $ac_n "(cached) $ac_c" 1>&6
1592 cat > conftest.$ac_ext <<EOF
1593 #line 1594 "configure"
1594 #include "confdefs.h"
1595 #include <sys/types.h>
1597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1598 egrep "uid_t" >/dev/null 2>&1; then
1600 ac_cv_type_uid_t=yes
1609 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
1610 if test $ac_cv_type_uid_t = no; then
1611 cat >> confdefs.h <<\EOF
1615 cat >> confdefs.h <<\EOF
1621 echo $ac_n "checking size of short""... $ac_c" 1>&6
1622 echo "configure:1623: checking size of short" >&5
1623 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1624 echo $ac_n "(cached) $ac_c" 1>&6
1626 if test "$cross_compiling" = yes; then
1627 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1629 cat > conftest.$ac_ext <<EOF
1630 #line 1631 "configure"
1631 #include "confdefs.h"
1635 FILE *f=fopen("conftestval", "w");
1637 fprintf(f, "%d\n", sizeof(short));
1641 if { (eval echo configure:1642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1643 ac_cv_sizeof_short=`cat conftestval`
1645 echo "configure: failed program was:" >&5
1646 cat conftest.$ac_ext >&5
1648 ac_cv_sizeof_short=0
1654 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
1655 cat >> confdefs.h <<EOF
1656 #define SIZEOF_SHORT $ac_cv_sizeof_short
1660 echo $ac_n "checking size of int""... $ac_c" 1>&6
1661 echo "configure:1662: checking size of int" >&5
1662 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1663 echo $ac_n "(cached) $ac_c" 1>&6
1665 if test "$cross_compiling" = yes; then
1666 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1668 cat > conftest.$ac_ext <<EOF
1669 #line 1670 "configure"
1670 #include "confdefs.h"
1674 FILE *f=fopen("conftestval", "w");
1676 fprintf(f, "%d\n", sizeof(int));
1680 if { (eval echo configure:1681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1682 ac_cv_sizeof_int=`cat conftestval`
1684 echo "configure: failed program was:" >&5
1685 cat conftest.$ac_ext >&5
1693 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1694 cat >> confdefs.h <<EOF
1695 #define SIZEOF_INT $ac_cv_sizeof_int
1699 echo $ac_n "checking size of long""... $ac_c" 1>&6
1700 echo "configure:1701: checking size of long" >&5
1701 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1702 echo $ac_n "(cached) $ac_c" 1>&6
1704 if test "$cross_compiling" = yes; then
1705 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1707 cat > conftest.$ac_ext <<EOF
1708 #line 1709 "configure"
1709 #include "confdefs.h"
1713 FILE *f=fopen("conftestval", "w");
1715 fprintf(f, "%d\n", sizeof(long));
1719 if { (eval echo configure:1720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1721 ac_cv_sizeof_long=`cat conftestval`
1723 echo "configure: failed program was:" >&5
1724 cat conftest.$ac_ext >&5
1732 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1733 cat >> confdefs.h <<EOF
1734 #define SIZEOF_LONG $ac_cv_sizeof_long
1738 echo $ac_n "checking size of void *""... $ac_c" 1>&6
1739 echo "configure:1740: checking size of void *" >&5
1740 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
1741 echo $ac_n "(cached) $ac_c" 1>&6
1743 if test "$cross_compiling" = yes; then
1744 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1746 cat > conftest.$ac_ext <<EOF
1747 #line 1748 "configure"
1748 #include "confdefs.h"
1752 FILE *f=fopen("conftestval", "w");
1754 fprintf(f, "%d\n", sizeof(void *));
1758 if { (eval echo configure:1759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1760 ac_cv_sizeof_void_p=`cat conftestval`
1762 echo "configure: failed program was:" >&5
1763 cat conftest.$ac_ext >&5
1765 ac_cv_sizeof_void_p=0
1771 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
1772 cat >> confdefs.h <<EOF
1773 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
1777 if test "$ac_cv_sizeof_int" = 2 ; then
1778 echo $ac_n "checking for int16_t""... $ac_c" 1>&6
1779 echo "configure:1780: checking for int16_t" >&5
1780 if eval "test \"`echo '$''{'ac_cv_type_int16_t'+set}'`\" = set"; then
1781 echo $ac_n "(cached) $ac_c" 1>&6
1783 cat > conftest.$ac_ext <<EOF
1784 #line 1785 "configure"
1785 #include "confdefs.h"
1786 #include <sys/types.h>
1792 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1793 egrep "(^|[^a-zA-Z_0-9])int16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1795 ac_cv_type_int16_t=yes
1798 ac_cv_type_int16_t=no
1803 echo "$ac_t""$ac_cv_type_int16_t" 1>&6
1804 if test $ac_cv_type_int16_t = no; then
1805 cat >> confdefs.h <<\EOF
1811 echo $ac_n "checking for u_int16_t""... $ac_c" 1>&6
1812 echo "configure:1813: checking for u_int16_t" >&5
1813 if eval "test \"`echo '$''{'ac_cv_type_u_int16_t'+set}'`\" = set"; then
1814 echo $ac_n "(cached) $ac_c" 1>&6
1816 cat > conftest.$ac_ext <<EOF
1817 #line 1818 "configure"
1818 #include "confdefs.h"
1819 #include <sys/types.h>
1825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1826 egrep "(^|[^a-zA-Z_0-9])u_int16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1828 ac_cv_type_u_int16_t=yes
1831 ac_cv_type_u_int16_t=no
1836 echo "$ac_t""$ac_cv_type_u_int16_t" 1>&6
1837 if test $ac_cv_type_u_int16_t = no; then
1838 cat >> confdefs.h <<\EOF
1839 #define u_int16_t unsigned int
1844 elif test "$ac_cv_sizeof_short" = 2 ; then
1845 echo $ac_n "checking for int16_t""... $ac_c" 1>&6
1846 echo "configure:1847: checking for int16_t" >&5
1847 if eval "test \"`echo '$''{'ac_cv_type_int16_t'+set}'`\" = set"; then
1848 echo $ac_n "(cached) $ac_c" 1>&6
1850 cat > conftest.$ac_ext <<EOF
1851 #line 1852 "configure"
1852 #include "confdefs.h"
1853 #include <sys/types.h>
1859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1860 egrep "(^|[^a-zA-Z_0-9])int16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1862 ac_cv_type_int16_t=yes
1865 ac_cv_type_int16_t=no
1870 echo "$ac_t""$ac_cv_type_int16_t" 1>&6
1871 if test $ac_cv_type_int16_t = no; then
1872 cat >> confdefs.h <<\EOF
1873 #define int16_t short
1878 echo $ac_n "checking for u_int16_t""... $ac_c" 1>&6
1879 echo "configure:1880: checking for u_int16_t" >&5
1880 if eval "test \"`echo '$''{'ac_cv_type_u_int16_t'+set}'`\" = set"; then
1881 echo $ac_n "(cached) $ac_c" 1>&6
1883 cat > conftest.$ac_ext <<EOF
1884 #line 1885 "configure"
1885 #include "confdefs.h"
1886 #include <sys/types.h>
1892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1893 egrep "(^|[^a-zA-Z_0-9])u_int16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1895 ac_cv_type_u_int16_t=yes
1898 ac_cv_type_u_int16_t=no
1903 echo "$ac_t""$ac_cv_type_u_int16_t" 1>&6
1904 if test $ac_cv_type_u_int16_t = no; then
1905 cat >> confdefs.h <<\EOF
1906 #define u_int16_t unsigned short
1912 { echo "configure: error: Cannot find a type with size of 16 bits" 1>&2; exit 1; }
1914 if test "$ac_cv_sizeof_int" = 4 ; then
1915 echo $ac_n "checking for int32_t""... $ac_c" 1>&6
1916 echo "configure:1917: checking for int32_t" >&5
1917 if eval "test \"`echo '$''{'ac_cv_type_int32_t'+set}'`\" = set"; then
1918 echo $ac_n "(cached) $ac_c" 1>&6
1920 cat > conftest.$ac_ext <<EOF
1921 #line 1922 "configure"
1922 #include "confdefs.h"
1923 #include <sys/types.h>
1929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1930 egrep "(^|[^a-zA-Z_0-9])int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1932 ac_cv_type_int32_t=yes
1935 ac_cv_type_int32_t=no
1940 echo "$ac_t""$ac_cv_type_int32_t" 1>&6
1941 if test $ac_cv_type_int32_t = no; then
1942 cat >> confdefs.h <<\EOF
1948 echo $ac_n "checking for u_int32_t""... $ac_c" 1>&6
1949 echo "configure:1950: checking for u_int32_t" >&5
1950 if eval "test \"`echo '$''{'ac_cv_type_u_int32_t'+set}'`\" = set"; then
1951 echo $ac_n "(cached) $ac_c" 1>&6
1953 cat > conftest.$ac_ext <<EOF
1954 #line 1955 "configure"
1955 #include "confdefs.h"
1956 #include <sys/types.h>
1962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1963 egrep "(^|[^a-zA-Z_0-9])u_int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1965 ac_cv_type_u_int32_t=yes
1968 ac_cv_type_u_int32_t=no
1973 echo "$ac_t""$ac_cv_type_u_int32_t" 1>&6
1974 if test $ac_cv_type_u_int32_t = no; then
1975 cat >> confdefs.h <<\EOF
1976 #define u_int32_t unsigned int
1981 elif test "$ac_cv_sizeof_short" = 4 ; then
1982 echo $ac_n "checking for int32_t""... $ac_c" 1>&6
1983 echo "configure:1984: checking for int32_t" >&5
1984 if eval "test \"`echo '$''{'ac_cv_type_int32_t'+set}'`\" = set"; then
1985 echo $ac_n "(cached) $ac_c" 1>&6
1987 cat > conftest.$ac_ext <<EOF
1988 #line 1989 "configure"
1989 #include "confdefs.h"
1990 #include <sys/types.h>
1996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1997 egrep "(^|[^a-zA-Z_0-9])int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1999 ac_cv_type_int32_t=yes
2002 ac_cv_type_int32_t=no
2007 echo "$ac_t""$ac_cv_type_int32_t" 1>&6
2008 if test $ac_cv_type_int32_t = no; then
2009 cat >> confdefs.h <<\EOF
2010 #define int32_t short
2015 echo $ac_n "checking for u_int32_t""... $ac_c" 1>&6
2016 echo "configure:2017: checking for u_int32_t" >&5
2017 if eval "test \"`echo '$''{'ac_cv_type_u_int32_t'+set}'`\" = set"; then
2018 echo $ac_n "(cached) $ac_c" 1>&6
2020 cat > conftest.$ac_ext <<EOF
2021 #line 2022 "configure"
2022 #include "confdefs.h"
2023 #include <sys/types.h>
2029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2030 egrep "(^|[^a-zA-Z_0-9])u_int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2032 ac_cv_type_u_int32_t=yes
2035 ac_cv_type_u_int32_t=no
2040 echo "$ac_t""$ac_cv_type_u_int32_t" 1>&6
2041 if test $ac_cv_type_u_int32_t = no; then
2042 cat >> confdefs.h <<\EOF
2043 #define u_int32_t unsigned short
2048 elif test "$ac_cv_sizeof_long" = 4 ; then
2049 echo $ac_n "checking for int32_t""... $ac_c" 1>&6
2050 echo "configure:2051: checking for int32_t" >&5
2051 if eval "test \"`echo '$''{'ac_cv_type_int32_t'+set}'`\" = set"; then
2052 echo $ac_n "(cached) $ac_c" 1>&6
2054 cat > conftest.$ac_ext <<EOF
2055 #line 2056 "configure"
2056 #include "confdefs.h"
2057 #include <sys/types.h>
2063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2064 egrep "(^|[^a-zA-Z_0-9])int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2066 ac_cv_type_int32_t=yes
2069 ac_cv_type_int32_t=no
2074 echo "$ac_t""$ac_cv_type_int32_t" 1>&6
2075 if test $ac_cv_type_int32_t = no; then
2076 cat >> confdefs.h <<\EOF
2077 #define int32_t long
2082 echo $ac_n "checking for u_int32_t""... $ac_c" 1>&6
2083 echo "configure:2084: checking for u_int32_t" >&5
2084 if eval "test \"`echo '$''{'ac_cv_type_u_int32_t'+set}'`\" = set"; then
2085 echo $ac_n "(cached) $ac_c" 1>&6
2087 cat > conftest.$ac_ext <<EOF
2088 #line 2089 "configure"
2089 #include "confdefs.h"
2090 #include <sys/types.h>
2096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2097 egrep "(^|[^a-zA-Z_0-9])u_int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2099 ac_cv_type_u_int32_t=yes
2102 ac_cv_type_u_int32_t=no
2107 echo "$ac_t""$ac_cv_type_u_int32_t" 1>&6
2108 if test $ac_cv_type_u_int32_t = no; then
2109 cat >> confdefs.h <<\EOF
2110 #define u_int32_t unsigned long
2116 { echo "configure: error: Cannot find a type with size of 32 bits" 1>&2; exit 1; }
2119 echo $ac_n "checking size of size_t""... $ac_c" 1>&6
2120 echo "configure:2121: checking size of size_t" >&5
2121 if eval "test \"`echo '$''{'ac_cv_sizeof_size_t'+set}'`\" = set"; then
2122 echo $ac_n "(cached) $ac_c" 1>&6
2124 if test "$cross_compiling" = yes; then
2125 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2127 cat > conftest.$ac_ext <<EOF
2128 #line 2129 "configure"
2129 #include "confdefs.h"
2133 FILE *f=fopen("conftestval", "w");
2135 fprintf(f, "%d\n", sizeof(size_t));
2139 if { (eval echo configure:2140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2141 ac_cv_sizeof_size_t=`cat conftestval`
2143 echo "configure: failed program was:" >&5
2144 cat conftest.$ac_ext >&5
2146 ac_cv_sizeof_size_t=0
2152 echo "$ac_t""$ac_cv_sizeof_size_t" 1>&6
2153 cat >> confdefs.h <<EOF
2154 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
2157 echo $ac_n "checking printf format of size_t""... $ac_c" 1>&6
2158 echo "configure:2159: checking printf format of size_t" >&5
2159 if test "$ac_cv_sizeof_size_t" = 4 ; then
2160 echo "$ac_t"""%u"" 1>&6
2161 cat >> confdefs.h <<\EOF
2162 #define SIZE_T_FMT "%u"
2166 echo "$ac_t"""%lu"" 1>&6
2167 cat >> confdefs.h <<\EOF
2168 #define SIZE_T_FMT "%lu"
2172 echo $ac_n "checking size of time_t""... $ac_c" 1>&6
2173 echo "configure:2174: checking size of time_t" >&5
2174 if eval "test \"`echo '$''{'unet_cv_sizeof_time_t'+set}'`\" = set"; then
2175 echo $ac_n "(cached) $ac_c" 1>&6
2177 if test "$cross_compiling" = yes; then
2178 unet_cv_sizeof_time_t=0
2180 cat > conftest.$ac_ext <<EOF
2181 #line 2182 "configure"
2182 #include "confdefs.h"
2184 #include <sys/types.h>
2187 FILE *f=fopen("conftestval", "w");
2189 fprintf(f, "%d\n", sizeof(time_t));
2193 if { (eval echo configure:2194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2195 unet_cv_sizeof_time_t=`cat conftestval`
2197 echo "configure: failed program was:" >&5
2198 cat conftest.$ac_ext >&5
2200 unet_cv_sizeof_time_t=0
2207 if test "$unet_cv_sizeof_time_t" = 0 ; then
2208 echo "$ac_t""unknown" 1>&6
2209 cat >> confdefs.h <<\EOF
2210 #define TIME_T_FMT "%lu"
2213 cat >> confdefs.h <<\EOF
2214 #define STIME_T_FMT "%ld"
2218 echo "$ac_t""$unet_cv_sizeof_time_t" 1>&6
2219 echo $ac_n "checking printf format of time_t""... $ac_c" 1>&6
2220 echo "configure:2221: checking printf format of time_t" >&5
2221 if test "$unet_cv_sizeof_time_t" = "$ac_cv_sizeof_long" ; then
2222 echo "$ac_t"""%lu"" 1>&6
2223 cat >> confdefs.h <<\EOF
2224 #define TIME_T_FMT "%lu"
2227 cat >> confdefs.h <<\EOF
2228 #define STIME_T_FMT "%ld"
2232 echo "$ac_t"""%u"" 1>&6
2233 cat >> confdefs.h <<\EOF
2234 #define TIME_T_FMT "%u"
2237 cat >> confdefs.h <<\EOF
2238 #define STIME_T_FMT "%d"
2245 for ac_hdr in poll.h
2247 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2248 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2249 echo "configure:2250: checking for $ac_hdr" >&5
2250 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2251 echo $ac_n "(cached) $ac_c" 1>&6
2253 cat > conftest.$ac_ext <<EOF
2254 #line 2255 "configure"
2255 #include "confdefs.h"
2258 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2259 { (eval echo configure:2260: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2260 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2261 if test -z "$ac_err"; then
2263 eval "ac_cv_header_$ac_safe=yes"
2266 echo "configure: failed program was:" >&5
2267 cat conftest.$ac_ext >&5
2269 eval "ac_cv_header_$ac_safe=no"
2273 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2274 echo "$ac_t""yes" 1>&6
2275 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2276 cat >> confdefs.h <<EOF
2277 #define $ac_tr_hdr 1
2281 echo "$ac_t""no" 1>&6
2284 if test -z "$unet_cv_func_poll_syscall" ; then
2285 echo $ac_n "checking if poll is a system call (please wait)""... $ac_c" 1>&6
2286 echo "configure:2287: checking if poll is a system call (please wait)" >&5
2288 echo $ac_n "checking if poll is a system call""... $ac_c" 1>&6
2289 echo "configure:2290: checking if poll is a system call" >&5
2291 if eval "test \"`echo '$''{'unet_cv_func_poll_syscall'+set}'`\" = set"; then
2292 echo $ac_n "(cached) $ac_c" 1>&6
2294 unet_cv_func_poll_syscall=no
2295 if test "$ac_cv_header_poll_h" = yes; then
2296 unet_dirs=`find /usr/include/sys -type f -name '*.h' -exec egrep '^#include <[^/]*/.*>' {} \; | sed -e 's/^.*<//' -e 's%/.*$%%' | sort | uniq`
2297 for i in $unet_dirs ; do
2298 if test "$unet_cv_func_poll_syscall" = no ; then
2299 unet_files=`ls /usr/include/$i/*.h 2> /dev/null`
2300 if test -n "$unet_files" ; then
2301 for j in $unet_files ; do
2302 if test "$unet_cv_func_poll_syscall" = no ; then
2303 unet_line=`egrep '^#define[[:space:]]+[[:alnum:]_]*[Pp][Oo][Ll][Ll]' $j`
2304 if test -n "$unet_line" ; then
2305 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'`
2306 unet_set=`for k in "$unet_sig" ; do echo $k; done | sed -e 's% %|%g'`
2307 unet_match=`sed -e 's/[[:space:]]//g' -e 's%/\*.*\*/%%g' -e 's/[0-9]//g' $j | egrep "$unet_set"`
2308 if test -n "$unet_match" ; then
2309 unet_cv_func_poll_syscall=yes
2321 echo "$ac_t""$unet_cv_func_poll_syscall" 1>&6
2324 echo $ac_n "checking for restartable system calls""... $ac_c" 1>&6
2325 echo "configure:2326: checking for restartable system calls" >&5
2326 if eval "test \"`echo '$''{'ac_cv_sys_restartable_syscalls'+set}'`\" = set"; then
2327 echo $ac_n "(cached) $ac_c" 1>&6
2329 if test "$cross_compiling" = yes; then
2330 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2332 cat > conftest.$ac_ext <<EOF
2333 #line 2334 "configure"
2334 #include "confdefs.h"
2335 /* Exit 0 (true) if wait returns something other than -1,
2336 i.e. the pid of the child, which means that wait was restarted
2337 after getting the signal. */
2338 #include <sys/types.h>
2342 int i = fork (), status;
2343 if (i == 0) { sleep (3); kill (getppid (), SIGINT); sleep (3); exit (0); }
2344 signal (SIGINT, ucatch);
2346 if (status == -1) wait(&i);
2347 exit (status == -1);
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_sys_restartable_syscalls=yes
2355 echo "configure: failed program was:" >&5
2356 cat conftest.$ac_ext >&5
2358 ac_cv_sys_restartable_syscalls=no
2365 echo "$ac_t""$ac_cv_sys_restartable_syscalls" 1>&6
2366 if test $ac_cv_sys_restartable_syscalls = yes; then
2367 cat >> confdefs.h <<\EOF
2368 #define HAVE_RESTARTABLE_SYSCALLS 1
2374 for ac_prog in gawk mawk nawk awk
2376 # Extract the first word of "$ac_prog", so it can be a program name with args.
2377 set dummy $ac_prog; ac_word=$2
2378 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2379 echo "configure:2380: checking for $ac_word" >&5
2380 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2381 echo $ac_n "(cached) $ac_c" 1>&6
2383 if test -n "$AWK"; then
2384 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2386 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2388 for ac_dir in $ac_dummy; do
2389 test -z "$ac_dir" && ac_dir=.
2390 if test -f $ac_dir/$ac_word; then
2391 ac_cv_prog_AWK="$ac_prog"
2398 AWK="$ac_cv_prog_AWK"
2399 if test -n "$AWK"; then
2400 echo "$ac_t""$AWK" 1>&6
2402 echo "$ac_t""no" 1>&6
2405 test -n "$AWK" && break
2408 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
2409 echo "configure:2410: checking whether ${MAKE-make} sets \${MAKE}" >&5
2410 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
2411 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
2412 echo $ac_n "(cached) $ac_c" 1>&6
2414 cat > conftestmake <<\EOF
2416 @echo 'ac_maketemp="${MAKE}"'
2418 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2419 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
2420 if test -n "$ac_maketemp"; then
2421 eval ac_cv_prog_make_${ac_make}_set=yes
2423 eval ac_cv_prog_make_${ac_make}_set=no
2427 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2428 echo "$ac_t""yes" 1>&6
2431 echo "$ac_t""no" 1>&6
2432 SET_MAKE="MAKE=${MAKE-make}"
2435 # Find a good install program. We prefer a C program (faster),
2436 # so one script is as good as another. But avoid the broken or
2437 # incompatible versions:
2438 # SysV /etc/install, /usr/sbin/install
2439 # SunOS /usr/etc/install
2440 # IRIX /sbin/install
2442 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2443 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2444 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2445 # ./install, which can be erroneously created by make from ./install.sh.
2446 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2447 echo "configure:2448: checking for a BSD compatible install" >&5
2448 if test -z "$INSTALL"; then
2449 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2450 echo $ac_n "(cached) $ac_c" 1>&6
2452 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2453 for ac_dir in $PATH; do
2454 # Account for people who put trailing slashes in PATH elements.
2456 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2458 # OSF1 and SCO ODT 3.0 have their own names for install.
2459 # Don't use installbsd from OSF since it installs stuff as root
2461 for ac_prog in ginstall scoinst install; do
2462 if test -f $ac_dir/$ac_prog; then
2463 if test $ac_prog = install &&
2464 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2465 # AIX install. It has an incompatible calling convention.
2468 ac_cv_path_install="$ac_dir/$ac_prog -c"
2479 if test "${ac_cv_path_install+set}" = set; then
2480 INSTALL="$ac_cv_path_install"
2482 # As a last resort, use the slow shell script. We don't cache a
2483 # path for INSTALL within a source directory, because that will
2484 # break other packages using the cache if that directory is
2485 # removed, or if the path is relative.
2486 INSTALL="$ac_install_sh"
2489 echo "$ac_t""$INSTALL" 1>&6
2491 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2492 # It thinks the first close brace ends the variable substitution.
2493 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2495 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2497 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2499 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2500 echo "configure:2501: checking whether ln -s works" >&5
2501 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2502 echo $ac_n "(cached) $ac_c" 1>&6
2505 if ln -s X conftestdata 2>/dev/null
2508 ac_cv_prog_LN_S="ln -s"
2513 LN_S="$ac_cv_prog_LN_S"
2514 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2515 echo "$ac_t""yes" 1>&6
2517 echo "$ac_t""no" 1>&6
2522 # Extract the first word of "$ac_prog", so it can be a program name with args.
2523 set dummy $ac_prog; ac_word=$2
2524 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2525 echo "configure:2526: checking for $ac_word" >&5
2526 if eval "test \"`echo '$''{'ac_cv_path_RMPROG'+set}'`\" = set"; then
2527 echo $ac_n "(cached) $ac_c" 1>&6
2531 ac_cv_path_RMPROG="$RMPROG" # Let the user override the test with a path.
2534 ac_cv_path_RMPROG="$RMPROG" # Let the user override the test with a dos path.
2537 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2539 for ac_dir in $ac_dummy; do
2540 test -z "$ac_dir" && ac_dir=.
2541 if test -f $ac_dir/$ac_word; then
2542 ac_cv_path_RMPROG="$ac_dir/$ac_word"
2550 RMPROG="$ac_cv_path_RMPROG"
2551 if test -n "$RMPROG"; then
2552 echo "$ac_t""$RMPROG" 1>&6
2554 echo "$ac_t""no" 1>&6
2557 test -n "$RMPROG" && break
2559 test -n "$RMPROG" || RMPROG="/bin/rm"
2563 # Extract the first word of "$ac_prog", so it can be a program name with args.
2564 set dummy $ac_prog; ac_word=$2
2565 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2566 echo "configure:2567: checking for $ac_word" >&5
2567 if eval "test \"`echo '$''{'ac_cv_path_SHPROG'+set}'`\" = set"; then
2568 echo $ac_n "(cached) $ac_c" 1>&6
2572 ac_cv_path_SHPROG="$SHPROG" # Let the user override the test with a path.
2575 ac_cv_path_SHPROG="$SHPROG" # Let the user override the test with a dos path.
2578 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2580 for ac_dir in $ac_dummy; do
2581 test -z "$ac_dir" && ac_dir=.
2582 if test -f $ac_dir/$ac_word; then
2583 ac_cv_path_SHPROG="$ac_dir/$ac_word"
2591 SHPROG="$ac_cv_path_SHPROG"
2592 if test -n "$SHPROG"; then
2593 echo "$ac_t""$SHPROG" 1>&6
2595 echo "$ac_t""no" 1>&6
2598 test -n "$SHPROG" && break
2600 test -n "$SHPROG" || SHPROG="/bin/sh"
2603 echo $ac_n "checking for set -h""... $ac_c" 1>&6
2604 echo "configure:2605: checking for set -h" >&5
2605 if eval "test \"`echo '$''{'unet_cv_sys_set_h'+set}'`\" = set"; then
2606 echo $ac_n "(cached) $ac_c" 1>&6
2608 echo "set -h; exit $?" > conftest ;
2609 $SHPROG ./conftest 2> conftest.out
2610 ac_err=`grep -v '^ *+' conftest.out`
2611 if test -z "$ac_err"; then
2612 unet_cv_sys_set_h=yes
2614 unet_cv_sys_set_h=no
2616 $RMPROG -fr conftest*
2619 echo "$ac_t""$unet_cv_sys_set_h" 1>&6
2622 echo $ac_n "checking for posix non-blocking""... $ac_c" 1>&6
2623 echo "configure:2624: checking for posix non-blocking" >&5
2624 if eval "test \"`echo '$''{'unet_cv_sys_nonblocking_posix'+set}'`\" = set"; then
2625 echo $ac_n "(cached) $ac_c" 1>&6
2627 if test "$cross_compiling" = yes; then
2628 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2630 cat > conftest.$ac_ext <<EOF
2631 #line 2632 "configure"
2632 #include "confdefs.h"
2633 #include <sys/types.h>
2634 #include <sys/socket.h>
2636 #include <sys/ioctl.h>
2637 #include <sys/file.h>
2639 $ac_cv_type_signal alarmed() { exit(1); }
2644 size_t l = sizeof(x);
2645 int f = socket(AF_INET, SOCK_DGRAM, 0);
2646 if (f >= 0 && !(fcntl(f, F_SETFL, O_NONBLOCK)))
2648 signal(SIGALRM, alarmed);
2650 recvfrom(f, b, 12, 0, &x, &l);
2657 if { (eval echo configure:2658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2659 unet_cv_sys_nonblocking_posix=yes
2661 echo "configure: failed program was:" >&5
2662 cat conftest.$ac_ext >&5
2664 unet_cv_sys_nonblocking_posix=no
2671 echo "$ac_t""$unet_cv_sys_nonblocking_posix" 1>&6
2672 if test $unet_cv_sys_nonblocking_posix = yes; then
2673 cat >> confdefs.h <<\EOF
2674 #define NBLOCK_POSIX 1
2678 echo $ac_n "checking for bsd non-blocking""... $ac_c" 1>&6
2679 echo "configure:2680: checking for bsd non-blocking" >&5
2680 if eval "test \"`echo '$''{'unet_cv_sys_nonblocking_bsd'+set}'`\" = set"; then
2681 echo $ac_n "(cached) $ac_c" 1>&6
2683 if test "$cross_compiling" = yes; then
2684 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2686 cat > conftest.$ac_ext <<EOF
2687 #line 2688 "configure"
2688 #include "confdefs.h"
2689 #include <sys/types.h>
2690 #include <sys/socket.h>
2692 #include <sys/ioctl.h>
2693 #include <sys/file.h>
2695 $ac_cv_type_signal alarmed() { exit(1); }
2700 size_t l = sizeof(x);
2701 int f = socket(AF_INET, SOCK_DGRAM, 0);
2702 if (f >= 0 && !(fcntl(f, F_SETFL, O_NDELAY)))
2704 signal(SIGALRM, alarmed);
2706 recvfrom(f, b, 12, 0, &x, &l);
2713 if { (eval echo configure:2714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2715 unet_cv_sys_nonblocking_bsd=yes
2717 echo "configure: failed program was:" >&5
2718 cat conftest.$ac_ext >&5
2720 unet_cv_sys_nonblocking_bsd=no
2727 echo "$ac_t""$unet_cv_sys_nonblocking_bsd" 1>&6
2728 if test $unet_cv_sys_nonblocking_bsd = yes; then
2729 cat >> confdefs.h <<\EOF
2730 #define NBLOCK_BSD 1
2734 cat >> confdefs.h <<\EOF
2735 #define NBLOCK_SYSV 1
2740 echo $ac_n "checking for posix signals""... $ac_c" 1>&6
2741 echo "configure:2742: checking for posix signals" >&5
2742 if eval "test \"`echo '$''{'unet_cv_sys_signal_posix'+set}'`\" = set"; then
2743 echo $ac_n "(cached) $ac_c" 1>&6
2745 cat > conftest.$ac_ext <<EOF
2746 #line 2747 "configure"
2747 #include "confdefs.h"
2750 sigaction(SIGTERM, (struct sigaction *)0L, (struct sigaction *)0L)
2753 if { (eval echo configure:2754: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2755 unet_cv_sys_signal_posix=yes
2757 echo "configure: failed program was:" >&5
2758 cat conftest.$ac_ext >&5
2760 unet_cv_sys_signal_posix=no
2765 echo "$ac_t""$unet_cv_sys_signal_posix" 1>&6
2766 if test $unet_cv_sys_signal_posix = yes; then
2767 cat >> confdefs.h <<\EOF
2768 #define POSIX_SIGNALS 1
2772 echo $ac_n "checking for bsd reliable signals""... $ac_c" 1>&6
2773 echo "configure:2774: checking for bsd reliable signals" >&5
2774 if eval "test \"`echo '$''{'unet_cv_sys_signal_bsd'+set}'`\" = set"; then
2775 echo $ac_n "(cached) $ac_c" 1>&6
2777 if test "$cross_compiling" = yes; then
2778 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2780 cat > conftest.$ac_ext <<EOF
2781 #line 2782 "configure"
2782 #include "confdefs.h"
2785 $ac_cv_type_signal handler()
2789 kill(getpid(), SIGTERM);
2794 signal(SIGTERM, handler);
2795 kill(getpid(), SIGTERM);
2799 if { (eval echo configure:2800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2801 unet_cv_sys_signal_bsd=yes
2803 echo "configure: failed program was:" >&5
2804 cat conftest.$ac_ext >&5
2806 unet_cv_sys_signal_bsd=no
2813 echo "$ac_t""$unet_cv_sys_signal_bsd" 1>&6
2814 if test $unet_cv_sys_signal_bsd = yes; then
2815 cat >> confdefs.h <<\EOF
2816 #define BSD_RELIABLE_SIGNALS 1
2820 cat >> confdefs.h <<\EOF
2821 #define SYSV_UNRELIABLE_SIGNALS 1
2827 echo $ac_n "checking if the compiler understands -pipe""... $ac_c" 1>&6
2828 echo "configure:2829: checking if the compiler understands -pipe" >&5
2829 unet_cv_pipe_flags="$ac_cv_prog_gcc"
2830 if test "$ac_cv_prog_gcc" = no; then
2832 CFLAGS="$CFLAGS -pipe"
2833 cat > conftest.$ac_ext <<EOF
2834 #line 2835 "configure"
2835 #include "confdefs.h"
2841 if { (eval echo configure:2842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2843 unet_cv_pipe_flags=yes
2845 echo "configure: failed program was:" >&5
2846 cat conftest.$ac_ext >&5
2851 echo "$ac_t""$unet_cv_pipe_flags" 1>&6
2852 if test "$unet_cv_pipe_flags" = yes ; then
2853 x=`echo $CFLAGS | grep 'pipe' 2>/dev/null`
2854 if test "$x" = "" ; then
2855 CFLAGS="$CFLAGS -pipe"
2865 echo $ac_n "checking for OS type""... $ac_c" 1>&6
2866 echo "configure:2867: checking for OS type" >&5
2869 echo "$ac_t""$uname found." 1>&6
2870 OSDEP_C="os_linux.c"
2873 echo "$ac_t""$uname found." 1>&6
2874 OSDEP_C="os_solaris.c"
2877 echo "$ac_t""$uname found." 1>&6
2878 OSDEP_C="os_solaris.c"
2881 echo "$ac_t""$uname found." 1>&6
2885 echo "$ac_t""Unknown OS. Using generic routines." 1>&6
2886 OSDEP_C="os_generic.c"
2892 cat > confcache <<\EOF
2893 # This file is a shell script that caches the results of configure
2894 # tests run on this system so they can be shared between configure
2895 # scripts and configure runs. It is not useful on other systems.
2896 # If it contains results you don't want to keep, you may remove or edit it.
2898 # By default, configure uses ./config.cache as the cache file,
2899 # creating it if it does not exist already. You can give configure
2900 # the --cache-file=FILE option to use a different cache file; that is
2901 # what configure does when it calls configure scripts in
2902 # subdirectories, so they share the cache.
2903 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2904 # config.status only pays attention to the cache file if you give it the
2905 # --recheck option to rerun configure.
2908 # The following way of writing the cache mishandles newlines in values,
2909 # but we know of no workaround that is simple, portable, and efficient.
2910 # So, don't put newlines in cache variables' values.
2911 # Ultrix sh set writes to stderr and can't be redirected directly,
2912 # and sets the high bit in the cache file unless we assign to the vars.
2914 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2916 # `set' does not quote correctly, so add quotes (double-quote substitution
2917 # turns \\\\ into \\, and sed turns \\ into \).
2919 -e "s/'/'\\\\''/g" \
2920 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2923 # `set' quotes correctly as required by POSIX, so do not add quotes.
2924 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2927 if cmp -s $cache_file confcache; then
2930 if test -w $cache_file; then
2931 echo "updating cache $cache_file"
2932 cat confcache > $cache_file
2934 echo "not updating unwritable cache $cache_file"
2939 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2941 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2942 # Let make expand exec_prefix.
2943 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2945 # Any assignment to VPATH causes Sun make to only execute
2946 # the first set of double-colon rules, so remove it if not needed.
2947 # If there is a colon in the path, we need to keep it.
2948 if test "x$srcdir" = x.; then
2949 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2952 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2954 DEFS=-DHAVE_CONFIG_H
2956 # Without the "./", some shells look in PATH for config.status.
2957 : ${CONFIG_STATUS=./config.status}
2959 echo creating $CONFIG_STATUS
2960 rm -f $CONFIG_STATUS
2961 cat > $CONFIG_STATUS <<EOF
2963 # Generated automatically by configure.
2964 # Run this file to recreate the current configuration.
2965 # This directory was configured as follows,
2966 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2968 # $0 $ac_configure_args
2970 # Compiler output produced by configure, useful for debugging
2971 # configure, is in ./config.log if it exists.
2973 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2976 case "\$ac_option" in
2977 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2978 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2979 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2980 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2981 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2983 -help | --help | --hel | --he | --h)
2984 echo "\$ac_cs_usage"; exit 0 ;;
2985 *) echo "\$ac_cs_usage"; exit 1 ;;
2989 ac_given_srcdir=$srcdir
2990 ac_given_INSTALL="$INSTALL"
2992 trap 'rm -fr `echo "config-sh Configure ../Makefile ../ircd/Makefile ../doc/Makefile Makefile setup.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2994 cat >> $CONFIG_STATUS <<EOF
2996 # Protect against being on the right side of a sed subst in config.status.
2997 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2998 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3002 s%@CFLAGS@%$CFLAGS%g
3003 s%@CPPFLAGS@%$CPPFLAGS%g
3004 s%@CXXFLAGS@%$CXXFLAGS%g
3005 s%@FFLAGS@%$FFLAGS%g
3007 s%@LDFLAGS@%$LDFLAGS%g
3009 s%@exec_prefix@%$exec_prefix%g
3010 s%@prefix@%$prefix%g
3011 s%@program_transform_name@%$program_transform_name%g
3012 s%@bindir@%$bindir%g
3013 s%@sbindir@%$sbindir%g
3014 s%@libexecdir@%$libexecdir%g
3015 s%@datadir@%$datadir%g
3016 s%@sysconfdir@%$sysconfdir%g
3017 s%@sharedstatedir@%$sharedstatedir%g
3018 s%@localstatedir@%$localstatedir%g
3019 s%@libdir@%$libdir%g
3020 s%@includedir@%$includedir%g
3021 s%@oldincludedir@%$oldincludedir%g
3022 s%@infodir@%$infodir%g
3023 s%@mandir@%$mandir%g
3027 s%@SET_MAKE@%$SET_MAKE%g
3028 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3029 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3030 s%@INSTALL_DATA@%$INSTALL_DATA%g
3032 s%@RMPROG@%$RMPROG%g
3033 s%@SHPROG@%$SHPROG%g
3034 s%@unet_cv_sys_set_h@%$unet_cv_sys_set_h%g
3035 s%@ac_cv_header_poll_h@%$ac_cv_header_poll_h%g
3036 s%@ac_cv_header_syslog_h@%$ac_cv_header_syslog_h%g
3037 s%@unet_cv_func_poll_syscall@%$unet_cv_func_poll_syscall%g
3038 s%@OSDEP_C@%$OSDEP_C%g
3043 cat >> $CONFIG_STATUS <<\EOF
3045 # Split the substitutions into bite-sized pieces for seds with
3046 # small command number limits, like on Digital OSF/1 and HP-UX.
3047 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3048 ac_file=1 # Number of current file.
3049 ac_beg=1 # First line for current file.
3050 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3053 while $ac_more_lines; do
3054 if test $ac_beg -gt 1; then
3055 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3057 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3059 if test ! -s conftest.s$ac_file; then
3061 rm -f conftest.s$ac_file
3063 if test -z "$ac_sed_cmds"; then
3064 ac_sed_cmds="sed -f conftest.s$ac_file"
3066 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3068 ac_file=`expr $ac_file + 1`
3070 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3073 if test -z "$ac_sed_cmds"; then
3078 cat >> $CONFIG_STATUS <<EOF
3080 CONFIG_FILES=\${CONFIG_FILES-"config-sh Configure ../Makefile ../ircd/Makefile ../doc/Makefile Makefile"}
3082 cat >> $CONFIG_STATUS <<\EOF
3083 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3084 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3086 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3087 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3088 *) ac_file_in="${ac_file}.in" ;;
3091 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3093 # Remove last slash and all that follows it. Not all systems have dirname.
3094 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3095 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3096 # The file is in a subdirectory.
3097 test ! -d "$ac_dir" && mkdir "$ac_dir"
3098 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3099 # A "../" for each directory in $ac_dir_suffix.
3100 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3102 ac_dir_suffix= ac_dots=
3105 case "$ac_given_srcdir" in
3107 if test -z "$ac_dots"; then top_srcdir=.
3108 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3109 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3111 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3112 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3115 case "$ac_given_INSTALL" in
3116 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3117 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3120 echo creating "$ac_file"
3122 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3124 *Makefile*) ac_comsub="1i\\
3125 # $configure_input" ;;
3129 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3131 s%@configure_input@%$configure_input%g
3132 s%@srcdir@%$srcdir%g
3133 s%@top_srcdir@%$top_srcdir%g
3134 s%@INSTALL@%$INSTALL%g
3135 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3139 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3140 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3142 # ac_d sets the value in "#define NAME VALUE" lines.
3143 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3144 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3147 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3148 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3149 ac_uB='\([ ]\)%\1#\2define\3'
3152 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3153 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3154 ac_eB='$%\1#\2define\3'
3158 if test "${CONFIG_HEADERS+set}" != set; then
3160 cat >> $CONFIG_STATUS <<EOF
3161 CONFIG_HEADERS="setup.h"
3163 cat >> $CONFIG_STATUS <<\EOF
3165 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3166 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3168 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3169 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3170 *) ac_file_in="${ac_file}.in" ;;
3173 echo creating $ac_file
3175 rm -f conftest.frag conftest.in conftest.out
3176 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3177 cat $ac_file_inputs > conftest.in
3181 # Transform confdefs.h into a sed script conftest.vals that substitutes
3182 # the proper values into config.h.in to produce config.h. And first:
3183 # Protect against being on the right side of a sed subst in config.status.
3184 # Protect against being in an unquoted here document in config.status.
3186 cat > conftest.hdr <<\EOF
3189 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3193 sed -n -f conftest.hdr confdefs.h > conftest.vals
3196 # This sed command replaces #undef with comments. This is necessary, for
3197 # example, in the case of _POSIX_SOURCE, which is predefined and required
3198 # on some systems where configure will not decide to define it.
3199 cat >> conftest.vals <<\EOF
3200 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3203 # Break up conftest.vals because some shells have a limit on
3204 # the size of here documents, and old seds have small limits too.
3209 ac_lines=`grep -c . conftest.vals`
3210 # grep -c gives empty output for an empty file on some AIX systems.
3211 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3212 # Write a limited-size here document to conftest.frag.
3213 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3214 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3216 sed -f conftest.frag conftest.in > conftest.out
3218 mv conftest.out conftest.in
3220 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3222 mv conftest.tail conftest.vals
3226 cat >> $CONFIG_STATUS <<\EOF
3227 rm -f conftest.frag conftest.h
3228 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3229 cat conftest.in >> conftest.h
3231 if cmp -s $ac_file conftest.h 2>/dev/null; then
3232 echo "$ac_file is unchanged"
3235 # Remove last slash and all that follows it. Not all systems have dirname.
3236 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3237 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3238 # The file is in a subdirectory.
3239 test ! -d "$ac_dir" && mkdir "$ac_dir"
3242 mv conftest.h $ac_file
3247 cat >> $CONFIG_STATUS <<EOF
3250 cat >> $CONFIG_STATUS <<\EOF
3251 echo timestamp > stamp-h;
3254 chmod +x $CONFIG_STATUS
3255 rm -fr confdefs* $ac_clean_files
3256 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1