2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="ircd/ircd.c"
275 ac_default_prefix=$HOME
276 # Factoring default headers for most tests.
277 ac_includes_default="\
280 # include <sys/types.h>
283 # include <sys/stat.h>
294 # if !STDC_HEADERS && HAVE_MEMORY_H
300 # include <strings.h>
303 # include <inttypes.h>
313 ac_subdirs_all="$ac_subdirs_all adns"
314 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP AWK SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S RMPROG SHPROG OSDEP_C ENGINE_C subdirs RES_C ADNS_SUBDIR INSTALL_RULE SYMLINK IRCDMODE IRCDOWN IRCDGRP DPATH LIBOBJS LTLIBOBJS'
317 # Initialize some variables set by options.
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
329 program_transform_name=s,x,x,
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build_alias ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build_alias=$ac_optarg ;;
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386 cache_file=$ac_optarg ;;
389 cache_file=config.cache ;;
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 datadir=$ac_optarg ;;
397 -disable-* | --disable-*)
398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
406 -enable-* | --enable-*)
407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 eval "enable_$ac_feature='$ac_optarg'" ;;
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
426 exec_prefix=$ac_optarg ;;
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
432 -help | --help | --hel | --he | -h)
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
439 -host | --host | --hos | --ho)
440 ac_prev=host_alias ;;
441 -host=* | --host=* | --hos=* | --ho=*)
442 host_alias=$ac_optarg ;;
444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
449 includedir=$ac_optarg ;;
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
456 -libdir | --libdir | --libdi | --libd)
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
466 libexecdir=$ac_optarg ;;
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475 localstatedir=$ac_optarg ;;
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
483 # Obsolete; use --without-fp.
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501 oldincludedir=$ac_optarg ;;
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513 program_prefix=$ac_optarg ;;
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520 program_suffix=$ac_optarg ;;
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
537 program_transform_name=$ac_optarg ;;
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 sbindir=$ac_optarg ;;
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 sharedstatedir=$ac_optarg ;;
560 -site | --site | --sit)
562 -site=* | --site=* | --sit=*)
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575 sysconfdir=$ac_optarg ;;
577 -target | --target | --targe | --targ | --tar | --ta | --t)
578 ac_prev=target_alias ;;
579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580 target_alias=$ac_optarg ;;
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 -version | --version | --versio | --versi | --vers | -V)
589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package=`echo $ac_package| sed 's/-/_/g'`
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 eval "with_$ac_package='$ac_optarg'" ;;
601 -without-* | --without-*)
602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
611 # Obsolete; use --with-x.
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619 x_includes=$ac_optarg ;;
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626 x_libraries=$ac_optarg ;;
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
654 if test -n "$ac_prev"; then
655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
663 eval ac_val=$`echo $ac_var`
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
675 eval ac_val=$`echo $ac_var`
677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704 test "$silent" = yes && exec 6>/dev/null
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
724 if test ! -r $srcdir/$ac_unique_file; then
728 ac_srcdir_defaulted=no
730 if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CC_set=${CC+set}
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CPP_set=${CPP+set}
772 ac_env_CPP_value=$CPP
773 ac_cv_env_CPP_set=${CPP+set}
774 ac_cv_env_CPP_value=$CPP
777 # Report the --help message.
779 if test "$ac_init_help" = "long"; then
780 # Omit some internal or obsolete options to make the list less imposing.
781 # This message is too long to be a string in the A/UX 3.1 sh.
783 \`configure' configures this package to adapt to many kinds of systems.
785 Usage: $0 [OPTION]... [VAR=VALUE]...
787 To assign environment variables (e.g., CC, CFLAGS...), specify them as
788 VAR=VALUE. See below for descriptions of some of the useful variables.
790 Defaults for the options are specified in brackets.
793 -h, --help display this help and exit
794 --help=short display options specific to this package
795 --help=recursive display the short help of all the included packages
796 -V, --version display version information and exit
797 -q, --quiet, --silent do not print \`checking...' messages
798 --cache-file=FILE cache test results in FILE [disabled]
799 -C, --config-cache alias for \`--cache-file=config.cache'
800 -n, --no-create do not create output files
801 --srcdir=DIR find the sources in DIR [configure dir or \`..']
806 Installation directories:
807 --prefix=PREFIX install architecture-independent files in PREFIX
809 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
812 By default, \`make install' will install all the files in
813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815 for instance \`--prefix=\$HOME'.
817 For better control, use the options below.
819 Fine tuning of the installation directories:
820 --bindir=DIR user executables [EPREFIX/bin]
821 --sbindir=DIR system admin executables [EPREFIX/sbin]
822 --libexecdir=DIR program executables [EPREFIX/libexec]
823 --datadir=DIR read-only architecture-independent data [PREFIX/share]
824 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
825 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
826 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
827 --libdir=DIR object code libraries [EPREFIX/lib]
828 --includedir=DIR C header files [PREFIX/include]
829 --oldincludedir=DIR C header files for non-gcc [/usr/include]
830 --infodir=DIR info documentation [PREFIX/info]
831 --mandir=DIR man documentation [PREFIX/man]
837 --build=BUILD configure for building on BUILD [guessed]
838 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 if test -n "$ac_init_help"; then
847 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
848 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
849 --enable-poll Force poll to be used regardless of whether or not
851 --enable-debug Turn on debugging mode
852 --disable-asserts Disable assertion checking
853 --disable-symbols Disable debugging symbols (remove -g from CFLAGS)
854 --enable-profile Enable profiling support (add -pg to CFLAGS)
855 --enable-pedantic Enable pedantic warnings (add -pedantic to CFLAGS)
856 --enable-warnings Enable warnings (add -Wall to CFLAGS)
857 --disable-inlines Disable inlining for a few critical functions
858 --disable-devpoll Disable the /dev/poll-based engine
859 --disable-kqueue Disable the kqueue-based engine
860 --disable-epoll Disable the epoll-based engine
861 --disable-adns Disable adns resolver
864 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
865 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
866 --with-leak-detect Turn on the leak detector(requires patched boehm)
867 --with-symlink=name Name to give the symlink; if name is "no," no
868 symlink will be created.
869 --with-mode=mode Permissions (in octal) to give the binary
870 --with-owner=owner Specify owner of the installed binary
871 --with-group=group Specify group owner of the installed binary
872 --with-domain=domain Domain name to use in local statistics gathering
873 --with-chroot=dir Specify that the server will be operated under
874 a different root directory given by dir. See
875 doc/readme.chroot for more information.
876 --with-dpath=dir Directory for all server data files
877 --with-cpath=file Set server configuration file
878 --with-lpath=file Set the debugging log file
879 --with-maxcon=maxcon Maximum number of connections server will accept
881 Some influential environment variables:
882 CC C compiler command
883 CFLAGS C compiler flags
884 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
885 nonstandard directory <lib dir>
886 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
887 headers in a nonstandard directory <include dir>
890 Use these variables to override the choices made by `configure' or to help
891 it to find libraries and programs with nonstandard names/locations.
896 if test "$ac_init_help" = "recursive"; then
897 # If there are subdirs, report their specific --help.
899 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
900 test -d $ac_dir || continue
903 if test "$ac_dir" != .; then
904 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
905 # A "../" for each directory in $ac_dir_suffix.
906 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
908 ac_dir_suffix= ac_top_builddir=
912 .) # No --srcdir option. We are building in place.
914 if test -z "$ac_top_builddir"; then
917 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
919 [\\/]* | ?:[\\/]* ) # Absolute path.
920 ac_srcdir=$srcdir$ac_dir_suffix;
921 ac_top_srcdir=$srcdir ;;
923 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
924 ac_top_srcdir=$ac_top_builddir$srcdir ;;
927 # Do not use `cd foo && pwd` to compute absolute paths, because
928 # the directories may not exist.
930 .) ac_abs_builddir="$ac_dir";;
933 .) ac_abs_builddir=`pwd`;;
934 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
935 *) ac_abs_builddir=`pwd`/"$ac_dir";;
938 case $ac_abs_builddir in
939 .) ac_abs_top_builddir=${ac_top_builddir}.;;
941 case ${ac_top_builddir}. in
942 .) ac_abs_top_builddir=$ac_abs_builddir;;
943 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
944 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
947 case $ac_abs_builddir in
948 .) ac_abs_srcdir=$ac_srcdir;;
951 .) ac_abs_srcdir=$ac_abs_builddir;;
952 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
953 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
956 case $ac_abs_builddir in
957 .) ac_abs_top_srcdir=$ac_top_srcdir;;
959 case $ac_top_srcdir in
960 .) ac_abs_top_srcdir=$ac_abs_builddir;;
961 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
962 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
967 # Check for guested configure; otherwise get Cygnus style configure.
968 if test -f $ac_srcdir/configure.gnu; then
970 $SHELL $ac_srcdir/configure.gnu --help=recursive
971 elif test -f $ac_srcdir/configure; then
973 $SHELL $ac_srcdir/configure --help=recursive
974 elif test -f $ac_srcdir/configure.ac ||
975 test -f $ac_srcdir/configure.in; then
979 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
985 test -n "$ac_init_help" && exit 0
986 if $ac_init_version; then
989 Copyright (C) 2003 Free Software Foundation, Inc.
990 This configure script is free software; the Free Software Foundation
991 gives unlimited permission to copy, distribute and modify it.
997 This file contains any messages produced by compilers while
998 running configure, to aid debugging if configure makes a mistake.
1000 It was created by $as_me, which was
1001 generated by GNU Autoconf 2.59. Invocation command line was
1012 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1013 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1014 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1015 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1016 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1018 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1019 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1021 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1022 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1023 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1024 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1025 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1026 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1027 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1035 test -z "$as_dir" && as_dir=.
1036 echo "PATH: $as_dir"
1051 # Keep a trace of the command line.
1052 # Strip out --no-create and --no-recursion so they do not pile up.
1053 # Strip out --silent because we don't want to record it for future runs.
1054 # Also quote any args containing shell meta-characters.
1055 # Make two passes to allow for proper duplicate-argument suppression.
1060 ac_must_keep_next=false
1066 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1067 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1068 | -silent | --silent | --silen | --sile | --sil)
1070 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1071 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1074 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1076 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1077 if test $ac_must_keep_next = true; then
1078 ac_must_keep_next=false # Got value, back to normal.
1081 *=* | --config-cache | -C | -disable-* | --disable-* \
1082 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1083 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1084 | -with-* | --with-* | -without-* | --without-* | --x)
1085 case "$ac_configure_args0 " in
1086 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1089 -* ) ac_must_keep_next=true ;;
1092 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1093 # Get rid of the leading space.
1099 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1100 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1102 # When interrupted or exit'd, cleanup temporary files, and complete
1103 # config.log. We remove comments because anyway the quotes in there
1104 # would cause problems or look ugly.
1105 # WARNING: Be sure not to use single quotes in there, as some shells,
1106 # such as our DU 5.0 friend, will then `close' the trap.
1107 trap 'exit_status=$?
1108 # Save into config.log some information that might help in debugging.
1113 ## ---------------- ##
1114 ## Cache variables. ##
1115 ## ---------------- ##
1118 # The following way of writing the cache mishandles newlines in values,
1121 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1124 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1125 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1129 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1136 ## ----------------- ##
1137 ## Output variables. ##
1138 ## ----------------- ##
1141 for ac_var in $ac_subst_vars
1143 eval ac_val=$`echo $ac_var`
1144 echo "$ac_var='"'"'$ac_val'"'"'"
1148 if test -n "$ac_subst_files"; then
1155 for ac_var in $ac_subst_files
1157 eval ac_val=$`echo $ac_var`
1158 echo "$ac_var='"'"'$ac_val'"'"'"
1163 if test -s confdefs.h; then
1170 sed "/^$/d" confdefs.h | sort
1173 test "$ac_signal" != 0 &&
1174 echo "$as_me: caught signal $ac_signal"
1175 echo "$as_me: exit $exit_status"
1177 rm -f core *.core &&
1178 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1181 for ac_signal in 1 2 13 15; do
1182 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1186 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1187 rm -rf conftest* confdefs.h
1188 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1191 # Predefined preprocessor variables.
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_NAME "$PACKAGE_NAME"
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_STRING "$PACKAGE_STRING"
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1218 # Let the site file select an alternate cache file if it wants to.
1219 # Prefer explicitly selected file to automatically selected ones.
1220 if test -z "$CONFIG_SITE"; then
1221 if test "x$prefix" != xNONE; then
1222 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1224 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1227 for ac_site_file in $CONFIG_SITE; do
1228 if test -r "$ac_site_file"; then
1229 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1230 echo "$as_me: loading site script $ac_site_file" >&6;}
1231 sed 's/^/| /' "$ac_site_file" >&5
1236 if test -r "$cache_file"; then
1237 # Some versions of bash will fail to source /dev/null (special
1238 # files actually), so we avoid doing that.
1239 if test -f "$cache_file"; then
1240 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1241 echo "$as_me: loading cache $cache_file" >&6;}
1243 [\\/]* | ?:[\\/]* ) . $cache_file;;
1244 *) . ./$cache_file;;
1248 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1249 echo "$as_me: creating cache $cache_file" >&6;}
1253 # Check that the precious variables saved in the cache have kept the same
1255 ac_cache_corrupted=false
1256 for ac_var in `(set) 2>&1 |
1257 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1258 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1259 eval ac_new_set=\$ac_env_${ac_var}_set
1260 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1261 eval ac_new_val="\$ac_env_${ac_var}_value"
1262 case $ac_old_set,$ac_new_set in
1264 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1265 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1266 ac_cache_corrupted=: ;;
1268 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1269 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1270 ac_cache_corrupted=: ;;
1273 if test "x$ac_old_val" != "x$ac_new_val"; then
1274 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1275 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1276 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1277 echo "$as_me: former value: $ac_old_val" >&2;}
1278 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1279 echo "$as_me: current value: $ac_new_val" >&2;}
1280 ac_cache_corrupted=:
1283 # Pass precious variables to config.status.
1284 if test "$ac_new_set" = set; then
1286 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1287 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1288 *) ac_arg=$ac_var=$ac_new_val ;;
1290 case " $ac_configure_args " in
1291 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1292 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1296 if $ac_cache_corrupted; then
1297 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1298 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1299 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1300 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1301 { (exit 1); exit 1; }; }
1305 ac_cpp='$CPP $CPPFLAGS'
1306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1330 echo "$as_me:$LINENO: checking for installation prefix" >&5
1331 echo $ECHO_N "checking for installation prefix... $ECHO_C" >&6
1332 if test "${unet_cv_prefix+set}" = set; then
1333 echo $ECHO_N "(cached) $ECHO_C" >&6
1335 unet_cv_prefix=$HOME
1338 if test x"$prefix" != xNONE; then
1339 unet_cv_prefix=$prefix
1341 echo "$as_me:$LINENO: result: $unet_cv_prefix" >&5
1342 echo "${ECHO_T}$unet_cv_prefix" >&6
1343 ac_default_prefix=$unet_cv_prefix
1345 ac_config_headers="$ac_config_headers config.h"
1351 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1352 if test -f $ac_dir/install-sh; then
1354 ac_install_sh="$ac_aux_dir/install-sh -c"
1356 elif test -f $ac_dir/install.sh; then
1358 ac_install_sh="$ac_aux_dir/install.sh -c"
1360 elif test -f $ac_dir/shtool; then
1362 ac_install_sh="$ac_aux_dir/shtool install -c"
1366 if test -z "$ac_aux_dir"; then
1367 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1368 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1369 { (exit 1); exit 1; }; }
1371 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1372 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1373 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1375 # Make sure we can run config.sub.
1376 $ac_config_sub sun4 >/dev/null 2>&1 ||
1377 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1378 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1379 { (exit 1); exit 1; }; }
1381 echo "$as_me:$LINENO: checking build system type" >&5
1382 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1383 if test "${ac_cv_build+set}" = set; then
1384 echo $ECHO_N "(cached) $ECHO_C" >&6
1386 ac_cv_build_alias=$build_alias
1387 test -z "$ac_cv_build_alias" &&
1388 ac_cv_build_alias=`$ac_config_guess`
1389 test -z "$ac_cv_build_alias" &&
1390 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1391 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1392 { (exit 1); exit 1; }; }
1393 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1394 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1395 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1396 { (exit 1); exit 1; }; }
1399 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1400 echo "${ECHO_T}$ac_cv_build" >&6
1402 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1403 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1404 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1407 echo "$as_me:$LINENO: checking host system type" >&5
1408 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1409 if test "${ac_cv_host+set}" = set; then
1410 echo $ECHO_N "(cached) $ECHO_C" >&6
1412 ac_cv_host_alias=$host_alias
1413 test -z "$ac_cv_host_alias" &&
1414 ac_cv_host_alias=$ac_cv_build_alias
1415 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1416 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1417 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1418 { (exit 1); exit 1; }; }
1421 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1422 echo "${ECHO_T}$ac_cv_host" >&6
1424 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1425 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1426 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1431 ac_cpp='$CPP $CPPFLAGS'
1432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1435 if test -n "$ac_tool_prefix"; then
1436 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1437 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1438 echo "$as_me:$LINENO: checking for $ac_word" >&5
1439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1440 if test "${ac_cv_prog_CC+set}" = set; then
1441 echo $ECHO_N "(cached) $ECHO_C" >&6
1443 if test -n "$CC"; then
1444 ac_cv_prog_CC="$CC" # Let the user override the test.
1446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1450 test -z "$as_dir" && as_dir=.
1451 for ac_exec_ext in '' $ac_executable_extensions; do
1452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1453 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1463 if test -n "$CC"; then
1464 echo "$as_me:$LINENO: result: $CC" >&5
1465 echo "${ECHO_T}$CC" >&6
1467 echo "$as_me:$LINENO: result: no" >&5
1468 echo "${ECHO_T}no" >&6
1472 if test -z "$ac_cv_prog_CC"; then
1474 # Extract the first word of "gcc", so it can be a program name with args.
1475 set dummy gcc; ac_word=$2
1476 echo "$as_me:$LINENO: checking for $ac_word" >&5
1477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1478 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1479 echo $ECHO_N "(cached) $ECHO_C" >&6
1481 if test -n "$ac_ct_CC"; then
1482 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1488 test -z "$as_dir" && as_dir=.
1489 for ac_exec_ext in '' $ac_executable_extensions; do
1490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1491 ac_cv_prog_ac_ct_CC="gcc"
1492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1500 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1501 if test -n "$ac_ct_CC"; then
1502 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1503 echo "${ECHO_T}$ac_ct_CC" >&6
1505 echo "$as_me:$LINENO: result: no" >&5
1506 echo "${ECHO_T}no" >&6
1514 if test -z "$CC"; then
1515 if test -n "$ac_tool_prefix"; then
1516 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1517 set dummy ${ac_tool_prefix}cc; ac_word=$2
1518 echo "$as_me:$LINENO: checking for $ac_word" >&5
1519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1520 if test "${ac_cv_prog_CC+set}" = set; then
1521 echo $ECHO_N "(cached) $ECHO_C" >&6
1523 if test -n "$CC"; then
1524 ac_cv_prog_CC="$CC" # Let the user override the test.
1526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1530 test -z "$as_dir" && as_dir=.
1531 for ac_exec_ext in '' $ac_executable_extensions; do
1532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1533 ac_cv_prog_CC="${ac_tool_prefix}cc"
1534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1543 if test -n "$CC"; then
1544 echo "$as_me:$LINENO: result: $CC" >&5
1545 echo "${ECHO_T}$CC" >&6
1547 echo "$as_me:$LINENO: result: no" >&5
1548 echo "${ECHO_T}no" >&6
1552 if test -z "$ac_cv_prog_CC"; then
1554 # Extract the first word of "cc", so it can be a program name with args.
1555 set dummy cc; ac_word=$2
1556 echo "$as_me:$LINENO: checking for $ac_word" >&5
1557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1558 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1559 echo $ECHO_N "(cached) $ECHO_C" >&6
1561 if test -n "$ac_ct_CC"; then
1562 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1568 test -z "$as_dir" && as_dir=.
1569 for ac_exec_ext in '' $ac_executable_extensions; do
1570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1571 ac_cv_prog_ac_ct_CC="cc"
1572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1580 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1581 if test -n "$ac_ct_CC"; then
1582 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1583 echo "${ECHO_T}$ac_ct_CC" >&6
1585 echo "$as_me:$LINENO: result: no" >&5
1586 echo "${ECHO_T}no" >&6
1595 if test -z "$CC"; then
1596 # Extract the first word of "cc", so it can be a program name with args.
1597 set dummy cc; ac_word=$2
1598 echo "$as_me:$LINENO: checking for $ac_word" >&5
1599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1600 if test "${ac_cv_prog_CC+set}" = set; then
1601 echo $ECHO_N "(cached) $ECHO_C" >&6
1603 if test -n "$CC"; then
1604 ac_cv_prog_CC="$CC" # Let the user override the test.
1607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1611 test -z "$as_dir" && as_dir=.
1612 for ac_exec_ext in '' $ac_executable_extensions; do
1613 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1614 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1615 ac_prog_rejected=yes
1619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1625 if test $ac_prog_rejected = yes; then
1626 # We found a bogon in the path, so make sure we never use it.
1627 set dummy $ac_cv_prog_CC
1629 if test $# != 0; then
1630 # We chose a different compiler from the bogus one.
1631 # However, it has the same basename, so the bogon will be chosen
1632 # first if we set CC to just the basename; use the full file name.
1634 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1640 if test -n "$CC"; then
1641 echo "$as_me:$LINENO: result: $CC" >&5
1642 echo "${ECHO_T}$CC" >&6
1644 echo "$as_me:$LINENO: result: no" >&5
1645 echo "${ECHO_T}no" >&6
1649 if test -z "$CC"; then
1650 if test -n "$ac_tool_prefix"; then
1653 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1654 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1655 echo "$as_me:$LINENO: checking for $ac_word" >&5
1656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1657 if test "${ac_cv_prog_CC+set}" = set; then
1658 echo $ECHO_N "(cached) $ECHO_C" >&6
1660 if test -n "$CC"; then
1661 ac_cv_prog_CC="$CC" # Let the user override the test.
1663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1667 test -z "$as_dir" && as_dir=.
1668 for ac_exec_ext in '' $ac_executable_extensions; do
1669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1670 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1680 if test -n "$CC"; then
1681 echo "$as_me:$LINENO: result: $CC" >&5
1682 echo "${ECHO_T}$CC" >&6
1684 echo "$as_me:$LINENO: result: no" >&5
1685 echo "${ECHO_T}no" >&6
1688 test -n "$CC" && break
1691 if test -z "$CC"; then
1695 # Extract the first word of "$ac_prog", so it can be a program name with args.
1696 set dummy $ac_prog; ac_word=$2
1697 echo "$as_me:$LINENO: checking for $ac_word" >&5
1698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1699 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1700 echo $ECHO_N "(cached) $ECHO_C" >&6
1702 if test -n "$ac_ct_CC"; then
1703 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1709 test -z "$as_dir" && as_dir=.
1710 for ac_exec_ext in '' $ac_executable_extensions; do
1711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1712 ac_cv_prog_ac_ct_CC="$ac_prog"
1713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1721 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1722 if test -n "$ac_ct_CC"; then
1723 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1724 echo "${ECHO_T}$ac_ct_CC" >&6
1726 echo "$as_me:$LINENO: result: no" >&5
1727 echo "${ECHO_T}no" >&6
1730 test -n "$ac_ct_CC" && break
1739 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1740 See \`config.log' for more details." >&5
1741 echo "$as_me: error: no acceptable C compiler found in \$PATH
1742 See \`config.log' for more details." >&2;}
1743 { (exit 1); exit 1; }; }
1745 # Provide some information about the compiler.
1746 echo "$as_me:$LINENO:" \
1747 "checking for C compiler version" >&5
1748 ac_compiler=`set X $ac_compile; echo $2`
1749 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1750 (eval $ac_compiler --version </dev/null >&5) 2>&5
1752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1753 (exit $ac_status); }
1754 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1755 (eval $ac_compiler -v </dev/null >&5) 2>&5
1757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1758 (exit $ac_status); }
1759 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1760 (eval $ac_compiler -V </dev/null >&5) 2>&5
1762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1763 (exit $ac_status); }
1765 cat >conftest.$ac_ext <<_ACEOF
1768 cat confdefs.h >>conftest.$ac_ext
1769 cat >>conftest.$ac_ext <<_ACEOF
1770 /* end confdefs.h. */
1780 ac_clean_files_save=$ac_clean_files
1781 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1782 # Try to create an executable without -o first, disregard a.out.
1783 # It will help us diagnose broken compilers, and finding out an intuition
1785 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1786 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1787 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1788 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1789 (eval $ac_link_default) 2>&5
1791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1792 (exit $ac_status); }; then
1793 # Find the output, starting from the most likely. This scheme is
1794 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1797 # Be careful to initialize this variable, since it used to be cached.
1798 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1800 # b.out is created by i960 compilers.
1801 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1803 test -f "$ac_file" || continue
1805 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1808 # This is the source file.
1811 # We found the default executable, but exeext='' is most
1815 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1816 # FIXME: I believe we export ac_cv_exeext for Libtool,
1817 # but it would be cool to find out if it's true. Does anybody
1818 # maintain Libtool? --akim.
1826 echo "$as_me: failed program was:" >&5
1827 sed 's/^/| /' conftest.$ac_ext >&5
1829 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1830 See \`config.log' for more details." >&5
1831 echo "$as_me: error: C compiler cannot create executables
1832 See \`config.log' for more details." >&2;}
1833 { (exit 77); exit 77; }; }
1836 ac_exeext=$ac_cv_exeext
1837 echo "$as_me:$LINENO: result: $ac_file" >&5
1838 echo "${ECHO_T}$ac_file" >&6
1840 # Check the compiler produces executables we can run. If not, either
1841 # the compiler is broken, or we cross compile.
1842 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1843 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1844 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1845 # If not cross compiling, check that we can run a simple program.
1846 if test "$cross_compiling" != yes; then
1847 if { ac_try='./$ac_file'
1848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1852 (exit $ac_status); }; }; then
1855 if test "$cross_compiling" = maybe; then
1858 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1859 If you meant to cross compile, use \`--host'.
1860 See \`config.log' for more details." >&5
1861 echo "$as_me: error: cannot run C compiled programs.
1862 If you meant to cross compile, use \`--host'.
1863 See \`config.log' for more details." >&2;}
1864 { (exit 1); exit 1; }; }
1868 echo "$as_me:$LINENO: result: yes" >&5
1869 echo "${ECHO_T}yes" >&6
1871 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1872 ac_clean_files=$ac_clean_files_save
1873 # Check the compiler produces executables we can run. If not, either
1874 # the compiler is broken, or we cross compile.
1875 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1876 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1877 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1878 echo "${ECHO_T}$cross_compiling" >&6
1880 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1881 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1883 (eval $ac_link) 2>&5
1885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1886 (exit $ac_status); }; then
1887 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1888 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1889 # work properly (i.e., refer to `conftest.exe'), while it won't with
1891 for ac_file in conftest.exe conftest conftest.*; do
1892 test -f "$ac_file" || continue
1894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1895 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1902 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1903 See \`config.log' for more details." >&5
1904 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1905 See \`config.log' for more details." >&2;}
1906 { (exit 1); exit 1; }; }
1909 rm -f conftest$ac_cv_exeext
1910 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1911 echo "${ECHO_T}$ac_cv_exeext" >&6
1913 rm -f conftest.$ac_ext
1914 EXEEXT=$ac_cv_exeext
1916 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1917 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1918 if test "${ac_cv_objext+set}" = set; then
1919 echo $ECHO_N "(cached) $ECHO_C" >&6
1921 cat >conftest.$ac_ext <<_ACEOF
1924 cat confdefs.h >>conftest.$ac_ext
1925 cat >>conftest.$ac_ext <<_ACEOF
1926 /* end confdefs.h. */
1936 rm -f conftest.o conftest.obj
1937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1938 (eval $ac_compile) 2>&5
1940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1941 (exit $ac_status); }; then
1942 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1944 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1945 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1950 echo "$as_me: failed program was:" >&5
1951 sed 's/^/| /' conftest.$ac_ext >&5
1953 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1954 See \`config.log' for more details." >&5
1955 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1956 See \`config.log' for more details." >&2;}
1957 { (exit 1); exit 1; }; }
1960 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1962 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1963 echo "${ECHO_T}$ac_cv_objext" >&6
1964 OBJEXT=$ac_cv_objext
1966 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1967 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1968 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1969 echo $ECHO_N "(cached) $ECHO_C" >&6
1971 cat >conftest.$ac_ext <<_ACEOF
1974 cat confdefs.h >>conftest.$ac_ext
1975 cat >>conftest.$ac_ext <<_ACEOF
1976 /* end confdefs.h. */
1989 rm -f conftest.$ac_objext
1990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1991 (eval $ac_compile) 2>conftest.er1
1993 grep -v '^ *+' conftest.er1 >conftest.err
1995 cat conftest.err >&5
1996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1997 (exit $ac_status); } &&
1998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2003 (exit $ac_status); }; } &&
2004 { ac_try='test -s conftest.$ac_objext'
2005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2009 (exit $ac_status); }; }; then
2012 echo "$as_me: failed program was:" >&5
2013 sed 's/^/| /' conftest.$ac_ext >&5
2017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2018 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2021 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2022 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2023 GCC=`test $ac_compiler_gnu = yes && echo yes`
2024 ac_test_CFLAGS=${CFLAGS+set}
2025 ac_save_CFLAGS=$CFLAGS
2027 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2028 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2029 if test "${ac_cv_prog_cc_g+set}" = set; then
2030 echo $ECHO_N "(cached) $ECHO_C" >&6
2032 cat >conftest.$ac_ext <<_ACEOF
2035 cat confdefs.h >>conftest.$ac_ext
2036 cat >>conftest.$ac_ext <<_ACEOF
2037 /* end confdefs.h. */
2047 rm -f conftest.$ac_objext
2048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2049 (eval $ac_compile) 2>conftest.er1
2051 grep -v '^ *+' conftest.er1 >conftest.err
2053 cat conftest.err >&5
2054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055 (exit $ac_status); } &&
2056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2061 (exit $ac_status); }; } &&
2062 { ac_try='test -s conftest.$ac_objext'
2063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067 (exit $ac_status); }; }; then
2070 echo "$as_me: failed program was:" >&5
2071 sed 's/^/| /' conftest.$ac_ext >&5
2075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2077 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2078 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2079 if test "$ac_test_CFLAGS" = set; then
2080 CFLAGS=$ac_save_CFLAGS
2081 elif test $ac_cv_prog_cc_g = yes; then
2082 if test "$GCC" = yes; then
2088 if test "$GCC" = yes; then
2094 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2095 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2096 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2097 echo $ECHO_N "(cached) $ECHO_C" >&6
2099 ac_cv_prog_cc_stdc=no
2101 cat >conftest.$ac_ext <<_ACEOF
2104 cat confdefs.h >>conftest.$ac_ext
2105 cat >>conftest.$ac_ext <<_ACEOF
2106 /* end confdefs.h. */
2109 #include <sys/types.h>
2110 #include <sys/stat.h>
2111 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2112 struct buf { int x; };
2113 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2114 static char *e (p, i)
2120 static char *f (char * (*g) (char **, int), char **p, ...)
2125 s = g (p, va_arg (v,int));
2130 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2131 function prototypes and stuff, but not '\xHH' hex character constants.
2132 These don't provoke an error unfortunately, instead are silently treated
2133 as 'x'. The following induces an error, until -std1 is added to get
2134 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2135 array size at least. It's necessary to write '\x00'==0 to get something
2136 that's true only with -std1. */
2137 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2139 int test (int i, double x);
2140 struct s1 {int (*f) (int a);};
2141 struct s2 {int (*f) (double a);};
2142 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2148 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2153 # Don't try gcc -ansi; that turns off useful extensions and
2154 # breaks some systems' header files.
2155 # AIX -qlanglvl=ansi
2156 # Ultrix and OSF/1 -std1
2157 # HP-UX 10.20 and later -Ae
2158 # HP-UX older versions -Aa -D_HPUX_SOURCE
2159 # SVR4 -Xc -D__EXTENSIONS__
2160 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2162 CC="$ac_save_CC $ac_arg"
2163 rm -f conftest.$ac_objext
2164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2165 (eval $ac_compile) 2>conftest.er1
2167 grep -v '^ *+' conftest.er1 >conftest.err
2169 cat conftest.err >&5
2170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171 (exit $ac_status); } &&
2172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177 (exit $ac_status); }; } &&
2178 { ac_try='test -s conftest.$ac_objext'
2179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183 (exit $ac_status); }; }; then
2184 ac_cv_prog_cc_stdc=$ac_arg
2187 echo "$as_me: failed program was:" >&5
2188 sed 's/^/| /' conftest.$ac_ext >&5
2191 rm -f conftest.err conftest.$ac_objext
2193 rm -f conftest.$ac_ext conftest.$ac_objext
2198 case "x$ac_cv_prog_cc_stdc" in
2200 echo "$as_me:$LINENO: result: none needed" >&5
2201 echo "${ECHO_T}none needed" >&6 ;;
2203 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2204 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2205 CC="$CC $ac_cv_prog_cc_stdc" ;;
2208 # Some people use a C++ compiler to compile C. Since we use `exit',
2209 # in C++ we need to declare it. In case someone uses the same compiler
2210 # for both compiling C and C++ we need to have the C++ compiler decide
2211 # the declaration of exit, since it's the most demanding environment.
2212 cat >conftest.$ac_ext <<_ACEOF
2217 rm -f conftest.$ac_objext
2218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2219 (eval $ac_compile) 2>conftest.er1
2221 grep -v '^ *+' conftest.er1 >conftest.err
2223 cat conftest.err >&5
2224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225 (exit $ac_status); } &&
2226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); }; } &&
2232 { ac_try='test -s conftest.$ac_objext'
2233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237 (exit $ac_status); }; }; then
2238 for ac_declaration in \
2240 'extern "C" void std::exit (int) throw (); using std::exit;' \
2241 'extern "C" void std::exit (int); using std::exit;' \
2242 'extern "C" void exit (int) throw ();' \
2243 'extern "C" void exit (int);' \
2246 cat >conftest.$ac_ext <<_ACEOF
2249 cat confdefs.h >>conftest.$ac_ext
2250 cat >>conftest.$ac_ext <<_ACEOF
2251 /* end confdefs.h. */
2262 rm -f conftest.$ac_objext
2263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2264 (eval $ac_compile) 2>conftest.er1
2266 grep -v '^ *+' conftest.er1 >conftest.err
2268 cat conftest.err >&5
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); } &&
2271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); }; } &&
2277 { ac_try='test -s conftest.$ac_objext'
2278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); }; }; then
2285 echo "$as_me: failed program was:" >&5
2286 sed 's/^/| /' conftest.$ac_ext >&5
2290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2291 cat >conftest.$ac_ext <<_ACEOF
2294 cat confdefs.h >>conftest.$ac_ext
2295 cat >>conftest.$ac_ext <<_ACEOF
2296 /* end confdefs.h. */
2306 rm -f conftest.$ac_objext
2307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2308 (eval $ac_compile) 2>conftest.er1
2310 grep -v '^ *+' conftest.er1 >conftest.err
2312 cat conftest.err >&5
2313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314 (exit $ac_status); } &&
2315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 (exit $ac_status); }; } &&
2321 { ac_try='test -s conftest.$ac_objext'
2322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); }; }; then
2329 echo "$as_me: failed program was:" >&5
2330 sed 's/^/| /' conftest.$ac_ext >&5
2333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2336 if test -n "$ac_declaration"; then
2337 echo '#ifdef __cplusplus' >>confdefs.h
2338 echo $ac_declaration >>confdefs.h
2339 echo '#endif' >>confdefs.h
2343 echo "$as_me: failed program was:" >&5
2344 sed 's/^/| /' conftest.$ac_ext >&5
2347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2349 ac_cpp='$CPP $CPPFLAGS'
2350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2359 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2360 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2361 if test "${am_cv_prog_cc_stdc+set}" = set; then
2362 echo $ECHO_N "(cached) $ECHO_C" >&6
2364 am_cv_prog_cc_stdc=no
2366 # Don't try gcc -ansi; that turns off useful extensions and
2367 # breaks some systems' header files.
2368 # AIX -qlanglvl=ansi
2369 # Ultrix and OSF/1 -std1
2370 # HP-UX -Aa -D_HPUX_SOURCE
2371 # SVR4 -Xc -D__EXTENSIONS__
2372 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2374 CC="$ac_save_CC $ac_arg"
2375 cat >conftest.$ac_ext <<_ACEOF
2378 cat confdefs.h >>conftest.$ac_ext
2379 cat >>conftest.$ac_ext <<_ACEOF
2380 /* end confdefs.h. */
2383 #include <sys/types.h>
2384 #include <sys/stat.h>
2385 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2386 struct buf { int x; };
2387 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2388 static char *e (p, i)
2394 static char *f (char * (*g) (char **, int), char **p, ...)
2399 s = g (p, va_arg (v,int));
2403 int test (int i, double x);
2404 struct s1 {int (*f) (int a);};
2405 struct s2 {int (*f) (double a);};
2406 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2414 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2420 rm -f conftest.$ac_objext
2421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2422 (eval $ac_compile) 2>conftest.er1
2424 grep -v '^ *+' conftest.er1 >conftest.err
2426 cat conftest.err >&5
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); } &&
2429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); }; } &&
2435 { ac_try='test -s conftest.$ac_objext'
2436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); }; }; then
2441 am_cv_prog_cc_stdc="$ac_arg"; break
2443 echo "$as_me: failed program was:" >&5
2444 sed 's/^/| /' conftest.$ac_ext >&5
2447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2453 if test -z "$am_cv_prog_cc_stdc"; then
2454 echo "$as_me:$LINENO: result: none needed" >&5
2455 echo "${ECHO_T}none needed" >&6
2457 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2458 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2460 case "x$am_cv_prog_cc_stdc" in
2462 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2465 if test x"$CFLAGS" != x; then
2466 CFLAGS=`echo "$CFLAGS" | sed -e 's/-O2/-O3/'`
2468 if test x"$CFLAGS" != x; then
2469 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pipe//g'`
2471 if test x"$CFLAGS" != x; then
2472 unet_old_cflags=$CFLAGS
2473 CFLAGS=`echo "$CFLAGS" | sed -e 's/-g//g'`
2475 if test x"$CFLAGS" != x"$unet_old_cflags"; then
2476 # If -g was already there, force symbols to be enabled
2477 unet_cv_enable_symbols=yes
2479 if test x"$CFLAGS" != x; then
2480 unet_old_cflags=$CFLAGS
2481 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pg//g'`
2483 if test x"$CFLAGS" != x"$unet_old_cflags"; then
2484 # If -pg was already there, force profiling to be enabled
2485 unet_cv_enable_profile=yes
2487 if test x"$CFLAGS" != x; then
2488 unet_old_cflags=$CFLAGS
2489 CFLAGS=`echo "$CFLAGS" | sed -e 's/-Wall//g'`
2491 if test x"$CFLAGS" != x"$unet_old_cflags"; then
2492 # If -Wall was already there, force warnings to be enabled
2493 unet_cv_enable_warnings=yes
2495 if test x"$CFLAGS" != x; then
2496 unet_old_cflags=$CFLAGS
2497 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pedantic//g'`
2499 if test x"$CFLAGS" != x"$unet_old_cflags"; then
2500 # If -pedantic was already there, force pedatic to be enabled
2501 unet_cv_enable_pedantic=yes
2505 echo "$as_me:$LINENO: checking for library containing crypt" >&5
2506 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
2507 if test "${ac_cv_search_crypt+set}" = set; then
2508 echo $ECHO_N "(cached) $ECHO_C" >&6
2510 ac_func_search_save_LIBS=$LIBS
2511 ac_cv_search_crypt=no
2512 cat >conftest.$ac_ext <<_ACEOF
2515 cat confdefs.h >>conftest.$ac_ext
2516 cat >>conftest.$ac_ext <<_ACEOF
2517 /* end confdefs.h. */
2519 /* Override any gcc2 internal prototype to avoid an error. */
2523 /* We use char because int might match the return type of a gcc2
2524 builtin and then its argument prototype would still apply. */
2534 rm -f conftest.$ac_objext conftest$ac_exeext
2535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2536 (eval $ac_link) 2>conftest.er1
2538 grep -v '^ *+' conftest.er1 >conftest.err
2540 cat conftest.err >&5
2541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542 (exit $ac_status); } &&
2543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); }; } &&
2549 { ac_try='test -s conftest$ac_exeext'
2550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); }; }; then
2555 ac_cv_search_crypt="none required"
2557 echo "$as_me: failed program was:" >&5
2558 sed 's/^/| /' conftest.$ac_ext >&5
2561 rm -f conftest.err conftest.$ac_objext \
2562 conftest$ac_exeext conftest.$ac_ext
2563 if test "$ac_cv_search_crypt" = no; then
2564 for ac_lib in descrypt crypt; do
2565 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2566 cat >conftest.$ac_ext <<_ACEOF
2569 cat confdefs.h >>conftest.$ac_ext
2570 cat >>conftest.$ac_ext <<_ACEOF
2571 /* end confdefs.h. */
2573 /* Override any gcc2 internal prototype to avoid an error. */
2577 /* We use char because int might match the return type of a gcc2
2578 builtin and then its argument prototype would still apply. */
2588 rm -f conftest.$ac_objext conftest$ac_exeext
2589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2590 (eval $ac_link) 2>conftest.er1
2592 grep -v '^ *+' conftest.er1 >conftest.err
2594 cat conftest.err >&5
2595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596 (exit $ac_status); } &&
2597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602 (exit $ac_status); }; } &&
2603 { ac_try='test -s conftest$ac_exeext'
2604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); }; }; then
2609 ac_cv_search_crypt="-l$ac_lib"
2612 echo "$as_me: failed program was:" >&5
2613 sed 's/^/| /' conftest.$ac_ext >&5
2616 rm -f conftest.err conftest.$ac_objext \
2617 conftest$ac_exeext conftest.$ac_ext
2620 LIBS=$ac_func_search_save_LIBS
2622 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
2623 echo "${ECHO_T}$ac_cv_search_crypt" >&6
2624 if test "$ac_cv_search_crypt" != no; then
2625 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
2628 { { echo "$as_me:$LINENO: error: Unable to find library containing crypt()" >&5
2629 echo "$as_me: error: Unable to find library containing crypt()" >&2;}
2630 { (exit 1); exit 1; }; }
2635 # Most operating systems have gethostbyname() in the default searched
2636 # libraries (i.e. libc):
2637 echo "$as_me:$LINENO: checking for gethostbyname" >&5
2638 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
2639 if test "${ac_cv_func_gethostbyname+set}" = set; then
2640 echo $ECHO_N "(cached) $ECHO_C" >&6
2642 cat >conftest.$ac_ext <<_ACEOF
2645 cat confdefs.h >>conftest.$ac_ext
2646 cat >>conftest.$ac_ext <<_ACEOF
2647 /* end confdefs.h. */
2648 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
2649 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2650 #define gethostbyname innocuous_gethostbyname
2652 /* System header to define __stub macros and hopefully few prototypes,
2653 which can conflict with char gethostbyname (); below.
2654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2655 <limits.h> exists even on freestanding compilers. */
2658 # include <limits.h>
2660 # include <assert.h>
2663 #undef gethostbyname
2665 /* Override any gcc2 internal prototype to avoid an error. */
2670 /* We use char because int might match the return type of a gcc2
2671 builtin and then its argument prototype would still apply. */
2672 char gethostbyname ();
2673 /* The GNU C library defines this for functions which it implements
2674 to always fail with ENOSYS. Some functions are actually named
2675 something starting with __ and the normal name is an alias. */
2676 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2679 char (*f) () = gethostbyname;
2688 return f != gethostbyname;
2693 rm -f conftest.$ac_objext conftest$ac_exeext
2694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2695 (eval $ac_link) 2>conftest.er1
2697 grep -v '^ *+' conftest.er1 >conftest.err
2699 cat conftest.err >&5
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); } &&
2702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); }; } &&
2708 { ac_try='test -s conftest$ac_exeext'
2709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); }; }; then
2714 ac_cv_func_gethostbyname=yes
2716 echo "$as_me: failed program was:" >&5
2717 sed 's/^/| /' conftest.$ac_ext >&5
2719 ac_cv_func_gethostbyname=no
2721 rm -f conftest.err conftest.$ac_objext \
2722 conftest$ac_exeext conftest.$ac_ext
2724 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
2725 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
2726 if test $ac_cv_func_gethostbyname = yes; then
2729 # Some OSes (eg. Solaris) place it in libnsl:
2731 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
2732 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
2733 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
2734 echo $ECHO_N "(cached) $ECHO_C" >&6
2736 ac_check_lib_save_LIBS=$LIBS
2738 cat >conftest.$ac_ext <<_ACEOF
2741 cat confdefs.h >>conftest.$ac_ext
2742 cat >>conftest.$ac_ext <<_ACEOF
2743 /* end confdefs.h. */
2745 /* Override any gcc2 internal prototype to avoid an error. */
2749 /* We use char because int might match the return type of a gcc2
2750 builtin and then its argument prototype would still apply. */
2751 char gethostbyname ();
2760 rm -f conftest.$ac_objext conftest$ac_exeext
2761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2762 (eval $ac_link) 2>conftest.er1
2764 grep -v '^ *+' conftest.er1 >conftest.err
2766 cat conftest.err >&5
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); } &&
2769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); }; } &&
2775 { ac_try='test -s conftest$ac_exeext'
2776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); }; }; then
2781 ac_cv_lib_nsl_gethostbyname=yes
2783 echo "$as_me: failed program was:" >&5
2784 sed 's/^/| /' conftest.$ac_ext >&5
2786 ac_cv_lib_nsl_gethostbyname=no
2788 rm -f conftest.err conftest.$ac_objext \
2789 conftest$ac_exeext conftest.$ac_ext
2790 LIBS=$ac_check_lib_save_LIBS
2792 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
2793 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
2794 if test $ac_cv_lib_nsl_gethostbyname = yes; then
2795 cat >>confdefs.h <<_ACEOF
2796 #define HAVE_LIBNSL 1
2802 # Some strange OSes (SINIX) have it in libsocket:
2804 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
2805 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
2806 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
2807 echo $ECHO_N "(cached) $ECHO_C" >&6
2809 ac_check_lib_save_LIBS=$LIBS
2810 LIBS="-lsocket $LIBS"
2811 cat >conftest.$ac_ext <<_ACEOF
2814 cat confdefs.h >>conftest.$ac_ext
2815 cat >>conftest.$ac_ext <<_ACEOF
2816 /* end confdefs.h. */
2818 /* Override any gcc2 internal prototype to avoid an error. */
2822 /* We use char because int might match the return type of a gcc2
2823 builtin and then its argument prototype would still apply. */
2824 char gethostbyname ();
2833 rm -f conftest.$ac_objext conftest$ac_exeext
2834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2835 (eval $ac_link) 2>conftest.er1
2837 grep -v '^ *+' conftest.er1 >conftest.err
2839 cat conftest.err >&5
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); } &&
2842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); }; } &&
2848 { ac_try='test -s conftest$ac_exeext'
2849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853 (exit $ac_status); }; }; then
2854 ac_cv_lib_socket_gethostbyname=yes
2856 echo "$as_me: failed program was:" >&5
2857 sed 's/^/| /' conftest.$ac_ext >&5
2859 ac_cv_lib_socket_gethostbyname=no
2861 rm -f conftest.err conftest.$ac_objext \
2862 conftest$ac_exeext conftest.$ac_ext
2863 LIBS=$ac_check_lib_save_LIBS
2865 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
2866 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
2867 if test $ac_cv_lib_socket_gethostbyname = yes; then
2868 cat >>confdefs.h <<_ACEOF
2869 #define HAVE_LIBSOCKET 1
2872 LIBS="-lsocket $LIBS"
2875 # Unfortunately libsocket sometimes depends on libnsl.
2876 # AC_CHECK_LIB's API is essentially broken so the following
2877 # ugliness is necessary:
2878 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
2879 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
2880 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
2881 echo $ECHO_N "(cached) $ECHO_C" >&6
2883 ac_check_lib_save_LIBS=$LIBS
2884 LIBS="-lsocket -lnsl $LIBS"
2885 cat >conftest.$ac_ext <<_ACEOF
2888 cat confdefs.h >>conftest.$ac_ext
2889 cat >>conftest.$ac_ext <<_ACEOF
2890 /* end confdefs.h. */
2892 /* Override any gcc2 internal prototype to avoid an error. */
2896 /* We use char because int might match the return type of a gcc2
2897 builtin and then its argument prototype would still apply. */
2898 char gethostbyname ();
2907 rm -f conftest.$ac_objext conftest$ac_exeext
2908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2909 (eval $ac_link) 2>conftest.er1
2911 grep -v '^ *+' conftest.er1 >conftest.err
2913 cat conftest.err >&5
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); } &&
2916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); }; } &&
2922 { ac_try='test -s conftest$ac_exeext'
2923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); }; }; then
2928 ac_cv_lib_socket_gethostbyname=yes
2930 echo "$as_me: failed program was:" >&5
2931 sed 's/^/| /' conftest.$ac_ext >&5
2933 ac_cv_lib_socket_gethostbyname=no
2935 rm -f conftest.err conftest.$ac_objext \
2936 conftest$ac_exeext conftest.$ac_ext
2937 LIBS=$ac_check_lib_save_LIBS
2939 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
2940 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
2941 if test $ac_cv_lib_socket_gethostbyname = yes; then
2942 LIBS="-lsocket -lnsl $LIBS"
2945 echo "$as_me:$LINENO: checking for gethostbyname in -lresolv" >&5
2946 echo $ECHO_N "checking for gethostbyname in -lresolv... $ECHO_C" >&6
2947 if test "${ac_cv_lib_resolv_gethostbyname+set}" = set; then
2948 echo $ECHO_N "(cached) $ECHO_C" >&6
2950 ac_check_lib_save_LIBS=$LIBS
2951 LIBS="-lresolv $LIBS"
2952 cat >conftest.$ac_ext <<_ACEOF
2955 cat confdefs.h >>conftest.$ac_ext
2956 cat >>conftest.$ac_ext <<_ACEOF
2957 /* end confdefs.h. */
2959 /* Override any gcc2 internal prototype to avoid an error. */
2963 /* We use char because int might match the return type of a gcc2
2964 builtin and then its argument prototype would still apply. */
2965 char gethostbyname ();
2974 rm -f conftest.$ac_objext conftest$ac_exeext
2975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2976 (eval $ac_link) 2>conftest.er1
2978 grep -v '^ *+' conftest.er1 >conftest.err
2980 cat conftest.err >&5
2981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982 (exit $ac_status); } &&
2983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); }; } &&
2989 { ac_try='test -s conftest$ac_exeext'
2990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); }; }; then
2995 ac_cv_lib_resolv_gethostbyname=yes
2997 echo "$as_me: failed program was:" >&5
2998 sed 's/^/| /' conftest.$ac_ext >&5
3000 ac_cv_lib_resolv_gethostbyname=no
3002 rm -f conftest.err conftest.$ac_objext \
3003 conftest$ac_exeext conftest.$ac_ext
3004 LIBS=$ac_check_lib_save_LIBS
3006 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname" >&5
3007 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname" >&6
3008 if test $ac_cv_lib_resolv_gethostbyname = yes; then
3009 cat >>confdefs.h <<_ACEOF
3010 #define HAVE_LIBRESOLV 1
3013 LIBS="-lresolv $LIBS"
3028 echo "$as_me:$LINENO: checking for socket" >&5
3029 echo $ECHO_N "checking for socket... $ECHO_C" >&6
3030 if test "${ac_cv_func_socket+set}" = set; then
3031 echo $ECHO_N "(cached) $ECHO_C" >&6
3033 cat >conftest.$ac_ext <<_ACEOF
3036 cat confdefs.h >>conftest.$ac_ext
3037 cat >>conftest.$ac_ext <<_ACEOF
3038 /* end confdefs.h. */
3039 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
3040 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3041 #define socket innocuous_socket
3043 /* System header to define __stub macros and hopefully few prototypes,
3044 which can conflict with char socket (); below.
3045 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3046 <limits.h> exists even on freestanding compilers. */
3049 # include <limits.h>
3051 # include <assert.h>
3056 /* Override any gcc2 internal prototype to avoid an error. */
3061 /* We use char because int might match the return type of a gcc2
3062 builtin and then its argument prototype would still apply. */
3064 /* The GNU C library defines this for functions which it implements
3065 to always fail with ENOSYS. Some functions are actually named
3066 something starting with __ and the normal name is an alias. */
3067 #if defined (__stub_socket) || defined (__stub___socket)
3070 char (*f) () = socket;
3084 rm -f conftest.$ac_objext conftest$ac_exeext
3085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3086 (eval $ac_link) 2>conftest.er1
3088 grep -v '^ *+' conftest.er1 >conftest.err
3090 cat conftest.err >&5
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); } &&
3093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); }; } &&
3099 { ac_try='test -s conftest$ac_exeext'
3100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); }; }; then
3105 ac_cv_func_socket=yes
3107 echo "$as_me: failed program was:" >&5
3108 sed 's/^/| /' conftest.$ac_ext >&5
3110 ac_cv_func_socket=no
3112 rm -f conftest.err conftest.$ac_objext \
3113 conftest$ac_exeext conftest.$ac_ext
3115 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
3116 echo "${ECHO_T}$ac_cv_func_socket" >&6
3117 if test $ac_cv_func_socket = yes; then
3121 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3122 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3123 if test "${ac_cv_lib_socket_socket+set}" = set; then
3124 echo $ECHO_N "(cached) $ECHO_C" >&6
3126 ac_check_lib_save_LIBS=$LIBS
3127 LIBS="-lsocket $LIBS"
3128 cat >conftest.$ac_ext <<_ACEOF
3131 cat confdefs.h >>conftest.$ac_ext
3132 cat >>conftest.$ac_ext <<_ACEOF
3133 /* end confdefs.h. */
3135 /* Override any gcc2 internal prototype to avoid an error. */
3139 /* We use char because int might match the return type of a gcc2
3140 builtin and then its argument prototype would still apply. */
3150 rm -f conftest.$ac_objext conftest$ac_exeext
3151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3152 (eval $ac_link) 2>conftest.er1
3154 grep -v '^ *+' conftest.er1 >conftest.err
3156 cat conftest.err >&5
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); } &&
3159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); }; } &&
3165 { ac_try='test -s conftest$ac_exeext'
3166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); }; }; then
3171 ac_cv_lib_socket_socket=yes
3173 echo "$as_me: failed program was:" >&5
3174 sed 's/^/| /' conftest.$ac_ext >&5
3176 ac_cv_lib_socket_socket=no
3178 rm -f conftest.err conftest.$ac_objext \
3179 conftest$ac_exeext conftest.$ac_ext
3180 LIBS=$ac_check_lib_save_LIBS
3182 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3183 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3184 if test $ac_cv_lib_socket_socket = yes; then
3185 cat >>confdefs.h <<_ACEOF
3186 #define HAVE_LIBSOCKET 1
3189 LIBS="-lsocket $LIBS"
3192 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3193 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3194 if test "${ac_cv_lib_socket_socket+set}" = set; then
3195 echo $ECHO_N "(cached) $ECHO_C" >&6
3197 ac_check_lib_save_LIBS=$LIBS
3198 LIBS="-lsocket -lnsl $LIBS"
3199 cat >conftest.$ac_ext <<_ACEOF
3202 cat confdefs.h >>conftest.$ac_ext
3203 cat >>conftest.$ac_ext <<_ACEOF
3204 /* end confdefs.h. */
3206 /* Override any gcc2 internal prototype to avoid an error. */
3210 /* We use char because int might match the return type of a gcc2
3211 builtin and then its argument prototype would still apply. */
3221 rm -f conftest.$ac_objext conftest$ac_exeext
3222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3223 (eval $ac_link) 2>conftest.er1
3225 grep -v '^ *+' conftest.er1 >conftest.err
3227 cat conftest.err >&5
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); } &&
3230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235 (exit $ac_status); }; } &&
3236 { ac_try='test -s conftest$ac_exeext'
3237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241 (exit $ac_status); }; }; then
3242 ac_cv_lib_socket_socket=yes
3244 echo "$as_me: failed program was:" >&5
3245 sed 's/^/| /' conftest.$ac_ext >&5
3247 ac_cv_lib_socket_socket=no
3249 rm -f conftest.err conftest.$ac_objext \
3250 conftest$ac_exeext conftest.$ac_ext
3251 LIBS=$ac_check_lib_save_LIBS
3253 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3254 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3255 if test $ac_cv_lib_socket_socket = yes; then
3256 LIBS="-lsocket -lnsl $LIBS"
3265 echo "$as_me:$LINENO: checking for library containing res_mkquery" >&5
3266 echo $ECHO_N "checking for library containing res_mkquery... $ECHO_C" >&6
3267 if test "${ac_cv_search_res_mkquery+set}" = set; then
3268 echo $ECHO_N "(cached) $ECHO_C" >&6
3270 ac_func_search_save_LIBS=$LIBS
3271 ac_cv_search_res_mkquery=no
3272 cat >conftest.$ac_ext <<_ACEOF
3275 cat confdefs.h >>conftest.$ac_ext
3276 cat >>conftest.$ac_ext <<_ACEOF
3277 /* end confdefs.h. */
3279 /* Override any gcc2 internal prototype to avoid an error. */
3283 /* We use char because int might match the return type of a gcc2
3284 builtin and then its argument prototype would still apply. */
3285 char res_mkquery ();
3294 rm -f conftest.$ac_objext conftest$ac_exeext
3295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3296 (eval $ac_link) 2>conftest.er1
3298 grep -v '^ *+' conftest.er1 >conftest.err
3300 cat conftest.err >&5
3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 (exit $ac_status); } &&
3303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); }; } &&
3309 { ac_try='test -s conftest$ac_exeext'
3310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); }; }; then
3315 ac_cv_search_res_mkquery="none required"
3317 echo "$as_me: failed program was:" >&5
3318 sed 's/^/| /' conftest.$ac_ext >&5
3321 rm -f conftest.err conftest.$ac_objext \
3322 conftest$ac_exeext conftest.$ac_ext
3323 if test "$ac_cv_search_res_mkquery" = no; then
3324 for ac_lib in resolv; do
3325 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3326 cat >conftest.$ac_ext <<_ACEOF
3329 cat confdefs.h >>conftest.$ac_ext
3330 cat >>conftest.$ac_ext <<_ACEOF
3331 /* end confdefs.h. */
3333 /* Override any gcc2 internal prototype to avoid an error. */
3337 /* We use char because int might match the return type of a gcc2
3338 builtin and then its argument prototype would still apply. */
3339 char res_mkquery ();
3348 rm -f conftest.$ac_objext conftest$ac_exeext
3349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3350 (eval $ac_link) 2>conftest.er1
3352 grep -v '^ *+' conftest.er1 >conftest.err
3354 cat conftest.err >&5
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); } &&
3357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362 (exit $ac_status); }; } &&
3363 { ac_try='test -s conftest$ac_exeext'
3364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368 (exit $ac_status); }; }; then
3369 ac_cv_search_res_mkquery="-l$ac_lib"
3372 echo "$as_me: failed program was:" >&5
3373 sed 's/^/| /' conftest.$ac_ext >&5
3376 rm -f conftest.err conftest.$ac_objext \
3377 conftest$ac_exeext conftest.$ac_ext
3380 LIBS=$ac_func_search_save_LIBS
3382 echo "$as_me:$LINENO: result: $ac_cv_search_res_mkquery" >&5
3383 echo "${ECHO_T}$ac_cv_search_res_mkquery" >&6
3384 if test "$ac_cv_search_res_mkquery" != no; then
3385 test "$ac_cv_search_res_mkquery" = "none required" || LIBS="$ac_cv_search_res_mkquery $LIBS"
3388 { { echo "$as_me:$LINENO: error: Unable to find library containing res_mkquery()" >&5
3389 echo "$as_me: error: Unable to find library containing res_mkquery()" >&2;}
3390 { (exit 1); exit 1; }; }
3395 ac_cpp='$CPP $CPPFLAGS'
3396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3399 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3400 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3401 # On Suns, sometimes $CPP names a directory.
3402 if test -n "$CPP" && test -d "$CPP"; then
3405 if test -z "$CPP"; then
3406 if test "${ac_cv_prog_CPP+set}" = set; then
3407 echo $ECHO_N "(cached) $ECHO_C" >&6
3409 # Double quotes because CPP needs to be expanded
3410 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3413 for ac_c_preproc_warn_flag in '' yes
3415 # Use a header file that comes with gcc, so configuring glibc
3416 # with a fresh cross-compiler works.
3417 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3418 # <limits.h> exists even on freestanding compilers.
3419 # On the NeXT, cc -E runs the code through the compiler's parser,
3420 # not just through cpp. "Syntax error" is here to catch this case.
3421 cat >conftest.$ac_ext <<_ACEOF
3424 cat confdefs.h >>conftest.$ac_ext
3425 cat >>conftest.$ac_ext <<_ACEOF
3426 /* end confdefs.h. */
3428 # include <limits.h>
3430 # include <assert.h>
3434 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3435 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3437 grep -v '^ *+' conftest.er1 >conftest.err
3439 cat conftest.err >&5
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); } >/dev/null; then
3442 if test -s conftest.err; then
3443 ac_cpp_err=$ac_c_preproc_warn_flag
3444 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3451 if test -z "$ac_cpp_err"; then
3454 echo "$as_me: failed program was:" >&5
3455 sed 's/^/| /' conftest.$ac_ext >&5
3457 # Broken: fails on valid input.
3460 rm -f conftest.err conftest.$ac_ext
3462 # OK, works on sane cases. Now check whether non-existent headers
3463 # can be detected and how.
3464 cat >conftest.$ac_ext <<_ACEOF
3467 cat confdefs.h >>conftest.$ac_ext
3468 cat >>conftest.$ac_ext <<_ACEOF
3469 /* end confdefs.h. */
3470 #include <ac_nonexistent.h>
3472 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3473 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3475 grep -v '^ *+' conftest.er1 >conftest.err
3477 cat conftest.err >&5
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); } >/dev/null; then
3480 if test -s conftest.err; then
3481 ac_cpp_err=$ac_c_preproc_warn_flag
3482 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3489 if test -z "$ac_cpp_err"; then
3490 # Broken: success on invalid input.
3493 echo "$as_me: failed program was:" >&5
3494 sed 's/^/| /' conftest.$ac_ext >&5
3496 # Passes both tests.
3500 rm -f conftest.err conftest.$ac_ext
3503 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3504 rm -f conftest.err conftest.$ac_ext
3505 if $ac_preproc_ok; then
3517 echo "$as_me:$LINENO: result: $CPP" >&5
3518 echo "${ECHO_T}$CPP" >&6
3520 for ac_c_preproc_warn_flag in '' yes
3522 # Use a header file that comes with gcc, so configuring glibc
3523 # with a fresh cross-compiler works.
3524 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3525 # <limits.h> exists even on freestanding compilers.
3526 # On the NeXT, cc -E runs the code through the compiler's parser,
3527 # not just through cpp. "Syntax error" is here to catch this case.
3528 cat >conftest.$ac_ext <<_ACEOF
3531 cat confdefs.h >>conftest.$ac_ext
3532 cat >>conftest.$ac_ext <<_ACEOF
3533 /* end confdefs.h. */
3535 # include <limits.h>
3537 # include <assert.h>
3541 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3542 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3544 grep -v '^ *+' conftest.er1 >conftest.err
3546 cat conftest.err >&5
3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548 (exit $ac_status); } >/dev/null; then
3549 if test -s conftest.err; then
3550 ac_cpp_err=$ac_c_preproc_warn_flag
3551 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3558 if test -z "$ac_cpp_err"; then
3561 echo "$as_me: failed program was:" >&5
3562 sed 's/^/| /' conftest.$ac_ext >&5
3564 # Broken: fails on valid input.
3567 rm -f conftest.err conftest.$ac_ext
3569 # OK, works on sane cases. Now check whether non-existent headers
3570 # can be detected and how.
3571 cat >conftest.$ac_ext <<_ACEOF
3574 cat confdefs.h >>conftest.$ac_ext
3575 cat >>conftest.$ac_ext <<_ACEOF
3576 /* end confdefs.h. */
3577 #include <ac_nonexistent.h>
3579 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3580 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3582 grep -v '^ *+' conftest.er1 >conftest.err
3584 cat conftest.err >&5
3585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586 (exit $ac_status); } >/dev/null; then
3587 if test -s conftest.err; then
3588 ac_cpp_err=$ac_c_preproc_warn_flag
3589 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3596 if test -z "$ac_cpp_err"; then
3597 # Broken: success on invalid input.
3600 echo "$as_me: failed program was:" >&5
3601 sed 's/^/| /' conftest.$ac_ext >&5
3603 # Passes both tests.
3607 rm -f conftest.err conftest.$ac_ext
3610 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3611 rm -f conftest.err conftest.$ac_ext
3612 if $ac_preproc_ok; then
3615 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3616 See \`config.log' for more details." >&5
3617 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3618 See \`config.log' for more details." >&2;}
3619 { (exit 1); exit 1; }; }
3623 ac_cpp='$CPP $CPPFLAGS'
3624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3629 echo "$as_me:$LINENO: checking for egrep" >&5
3630 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3631 if test "${ac_cv_prog_egrep+set}" = set; then
3632 echo $ECHO_N "(cached) $ECHO_C" >&6
3634 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3635 then ac_cv_prog_egrep='grep -E'
3636 else ac_cv_prog_egrep='egrep'
3639 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3640 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3641 EGREP=$ac_cv_prog_egrep
3644 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3645 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3646 if test "${ac_cv_header_stdc+set}" = set; then
3647 echo $ECHO_N "(cached) $ECHO_C" >&6
3649 cat >conftest.$ac_ext <<_ACEOF
3652 cat confdefs.h >>conftest.$ac_ext
3653 cat >>conftest.$ac_ext <<_ACEOF
3654 /* end confdefs.h. */
3668 rm -f conftest.$ac_objext
3669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3670 (eval $ac_compile) 2>conftest.er1
3672 grep -v '^ *+' conftest.er1 >conftest.err
3674 cat conftest.err >&5
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); } &&
3677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682 (exit $ac_status); }; } &&
3683 { ac_try='test -s conftest.$ac_objext'
3684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688 (exit $ac_status); }; }; then
3689 ac_cv_header_stdc=yes
3691 echo "$as_me: failed program was:" >&5
3692 sed 's/^/| /' conftest.$ac_ext >&5
3694 ac_cv_header_stdc=no
3696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3698 if test $ac_cv_header_stdc = yes; then
3699 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3700 cat >conftest.$ac_ext <<_ACEOF
3703 cat confdefs.h >>conftest.$ac_ext
3704 cat >>conftest.$ac_ext <<_ACEOF
3705 /* end confdefs.h. */
3709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3710 $EGREP "memchr" >/dev/null 2>&1; then
3713 ac_cv_header_stdc=no
3719 if test $ac_cv_header_stdc = yes; then
3720 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3721 cat >conftest.$ac_ext <<_ACEOF
3724 cat confdefs.h >>conftest.$ac_ext
3725 cat >>conftest.$ac_ext <<_ACEOF
3726 /* end confdefs.h. */
3730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3731 $EGREP "free" >/dev/null 2>&1; then
3734 ac_cv_header_stdc=no
3740 if test $ac_cv_header_stdc = yes; then
3741 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3742 if test "$cross_compiling" = yes; then
3745 cat >conftest.$ac_ext <<_ACEOF
3748 cat confdefs.h >>conftest.$ac_ext
3749 cat >>conftest.$ac_ext <<_ACEOF
3750 /* end confdefs.h. */
3752 #if ((' ' & 0x0FF) == 0x020)
3753 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3754 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3756 # define ISLOWER(c) \
3757 (('a' <= (c) && (c) <= 'i') \
3758 || ('j' <= (c) && (c) <= 'r') \
3759 || ('s' <= (c) && (c) <= 'z'))
3760 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3763 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3768 for (i = 0; i < 256; i++)
3769 if (XOR (islower (i), ISLOWER (i))
3770 || toupper (i) != TOUPPER (i))
3775 rm -f conftest$ac_exeext
3776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3777 (eval $ac_link) 2>&5
3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785 (exit $ac_status); }; }; then
3788 echo "$as_me: program exited with status $ac_status" >&5
3789 echo "$as_me: failed program was:" >&5
3790 sed 's/^/| /' conftest.$ac_ext >&5
3793 ac_cv_header_stdc=no
3795 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3799 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3800 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3801 if test $ac_cv_header_stdc = yes; then
3803 cat >>confdefs.h <<\_ACEOF
3804 #define STDC_HEADERS 1
3809 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3819 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3820 inttypes.h stdint.h unistd.h
3822 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3823 echo "$as_me:$LINENO: checking for $ac_header" >&5
3824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3825 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3826 echo $ECHO_N "(cached) $ECHO_C" >&6
3828 cat >conftest.$ac_ext <<_ACEOF
3831 cat confdefs.h >>conftest.$ac_ext
3832 cat >>conftest.$ac_ext <<_ACEOF
3833 /* end confdefs.h. */
3834 $ac_includes_default
3836 #include <$ac_header>
3838 rm -f conftest.$ac_objext
3839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3840 (eval $ac_compile) 2>conftest.er1
3842 grep -v '^ *+' conftest.er1 >conftest.err
3844 cat conftest.err >&5
3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846 (exit $ac_status); } &&
3847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852 (exit $ac_status); }; } &&
3853 { ac_try='test -s conftest.$ac_objext'
3854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); }; }; then
3859 eval "$as_ac_Header=yes"
3861 echo "$as_me: failed program was:" >&5
3862 sed 's/^/| /' conftest.$ac_ext >&5
3864 eval "$as_ac_Header=no"
3866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3868 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3869 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3870 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3871 cat >>confdefs.h <<_ACEOF
3872 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3884 for ac_header in poll.h sys/devpoll.h sys/epoll.h sys/event.h
3886 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3888 echo "$as_me:$LINENO: checking for $ac_header" >&5
3889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3891 echo $ECHO_N "(cached) $ECHO_C" >&6
3893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3894 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3896 # Is the header compilable?
3897 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3898 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3899 cat >conftest.$ac_ext <<_ACEOF
3902 cat confdefs.h >>conftest.$ac_ext
3903 cat >>conftest.$ac_ext <<_ACEOF
3904 /* end confdefs.h. */
3905 $ac_includes_default
3906 #include <$ac_header>
3908 rm -f conftest.$ac_objext
3909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3910 (eval $ac_compile) 2>conftest.er1
3912 grep -v '^ *+' conftest.er1 >conftest.err
3914 cat conftest.err >&5
3915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916 (exit $ac_status); } &&
3917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922 (exit $ac_status); }; } &&
3923 { ac_try='test -s conftest.$ac_objext'
3924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928 (exit $ac_status); }; }; then
3929 ac_header_compiler=yes
3931 echo "$as_me: failed program was:" >&5
3932 sed 's/^/| /' conftest.$ac_ext >&5
3934 ac_header_compiler=no
3936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3937 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3938 echo "${ECHO_T}$ac_header_compiler" >&6
3940 # Is the header present?
3941 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3942 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3943 cat >conftest.$ac_ext <<_ACEOF
3946 cat confdefs.h >>conftest.$ac_ext
3947 cat >>conftest.$ac_ext <<_ACEOF
3948 /* end confdefs.h. */
3949 #include <$ac_header>
3951 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3952 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3954 grep -v '^ *+' conftest.er1 >conftest.err
3956 cat conftest.err >&5
3957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958 (exit $ac_status); } >/dev/null; then
3959 if test -s conftest.err; then
3960 ac_cpp_err=$ac_c_preproc_warn_flag
3961 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3968 if test -z "$ac_cpp_err"; then
3969 ac_header_preproc=yes
3971 echo "$as_me: failed program was:" >&5
3972 sed 's/^/| /' conftest.$ac_ext >&5
3974 ac_header_preproc=no
3976 rm -f conftest.err conftest.$ac_ext
3977 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3978 echo "${ECHO_T}$ac_header_preproc" >&6
3980 # So? What about this header?
3981 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3983 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3984 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3986 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3987 ac_header_preproc=yes
3990 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3991 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3992 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3993 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3994 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3995 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3996 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3997 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3999 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4000 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4001 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4004 ## ------------------------------------------ ##
4005 ## Report this to the AC_PACKAGE_NAME lists. ##
4006 ## ------------------------------------------ ##
4009 sed "s/^/$as_me: WARNING: /" >&2
4012 echo "$as_me:$LINENO: checking for $ac_header" >&5
4013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4015 echo $ECHO_N "(cached) $ECHO_C" >&6
4017 eval "$as_ac_Header=\$ac_header_preproc"
4019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4020 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4023 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4024 cat >>confdefs.h <<_ACEOF
4025 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4033 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4034 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4035 if test "${ac_cv_c_bigendian+set}" = set; then
4036 echo $ECHO_N "(cached) $ECHO_C" >&6
4038 # See if sys/param.h defines the BYTE_ORDER macro.
4039 cat >conftest.$ac_ext <<_ACEOF
4042 cat confdefs.h >>conftest.$ac_ext
4043 cat >>conftest.$ac_ext <<_ACEOF
4044 /* end confdefs.h. */
4045 #include <sys/types.h>
4046 #include <sys/param.h>
4051 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4059 rm -f conftest.$ac_objext
4060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4061 (eval $ac_compile) 2>conftest.er1
4063 grep -v '^ *+' conftest.er1 >conftest.err
4065 cat conftest.err >&5
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); } &&
4068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); }; } &&
4074 { ac_try='test -s conftest.$ac_objext'
4075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); }; }; then
4080 # It does; now see whether it defined to BIG_ENDIAN or not.
4081 cat >conftest.$ac_ext <<_ACEOF
4084 cat confdefs.h >>conftest.$ac_ext
4085 cat >>conftest.$ac_ext <<_ACEOF
4086 /* end confdefs.h. */
4087 #include <sys/types.h>
4088 #include <sys/param.h>
4093 #if BYTE_ORDER != BIG_ENDIAN
4101 rm -f conftest.$ac_objext
4102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4103 (eval $ac_compile) 2>conftest.er1
4105 grep -v '^ *+' conftest.er1 >conftest.err
4107 cat conftest.err >&5
4108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109 (exit $ac_status); } &&
4110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115 (exit $ac_status); }; } &&
4116 { ac_try='test -s conftest.$ac_objext'
4117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121 (exit $ac_status); }; }; then
4122 ac_cv_c_bigendian=yes
4124 echo "$as_me: failed program was:" >&5
4125 sed 's/^/| /' conftest.$ac_ext >&5
4127 ac_cv_c_bigendian=no
4129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4131 echo "$as_me: failed program was:" >&5
4132 sed 's/^/| /' conftest.$ac_ext >&5
4134 # It does not; compile a test program.
4135 if test "$cross_compiling" = yes; then
4136 # try to guess the endianness by grepping values into an object file
4137 ac_cv_c_bigendian=unknown
4138 cat >conftest.$ac_ext <<_ACEOF
4141 cat confdefs.h >>conftest.$ac_ext
4142 cat >>conftest.$ac_ext <<_ACEOF
4143 /* end confdefs.h. */
4144 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4145 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4146 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4147 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4148 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4149 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4153 _ascii (); _ebcdic ();
4158 rm -f conftest.$ac_objext
4159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4160 (eval $ac_compile) 2>conftest.er1
4162 grep -v '^ *+' conftest.er1 >conftest.err
4164 cat conftest.err >&5
4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); } &&
4167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); }; } &&
4173 { ac_try='test -s conftest.$ac_objext'
4174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); }; }; then
4179 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4180 ac_cv_c_bigendian=yes
4182 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4183 if test "$ac_cv_c_bigendian" = unknown; then
4184 ac_cv_c_bigendian=no
4186 # finding both strings is unlikely to happen, but who knows?
4187 ac_cv_c_bigendian=unknown
4191 echo "$as_me: failed program was:" >&5
4192 sed 's/^/| /' conftest.$ac_ext >&5
4195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4197 cat >conftest.$ac_ext <<_ACEOF
4200 cat confdefs.h >>conftest.$ac_ext
4201 cat >>conftest.$ac_ext <<_ACEOF
4202 /* end confdefs.h. */
4206 /* Are we little or big endian? From Harbison&Steele. */
4210 char c[sizeof (long)];
4213 exit (u.c[sizeof (long) - 1] == 1);
4216 rm -f conftest$ac_exeext
4217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4218 (eval $ac_link) 2>&5
4220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 (exit $ac_status); }; }; then
4227 ac_cv_c_bigendian=no
4229 echo "$as_me: program exited with status $ac_status" >&5
4230 echo "$as_me: failed program was:" >&5
4231 sed 's/^/| /' conftest.$ac_ext >&5
4234 ac_cv_c_bigendian=yes
4236 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4241 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4242 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4243 case $ac_cv_c_bigendian in
4246 cat >>confdefs.h <<\_ACEOF
4247 #define WORDS_BIGENDIAN 1
4253 { { echo "$as_me:$LINENO: error: unknown endianness
4254 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4255 echo "$as_me: error: unknown endianness
4256 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4257 { (exit 1); exit 1; }; } ;;
4260 echo "$as_me:$LINENO: checking for size_t" >&5
4261 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4262 if test "${ac_cv_type_size_t+set}" = set; then
4263 echo $ECHO_N "(cached) $ECHO_C" >&6
4265 cat >conftest.$ac_ext <<_ACEOF
4268 cat confdefs.h >>conftest.$ac_ext
4269 cat >>conftest.$ac_ext <<_ACEOF
4270 /* end confdefs.h. */
4271 $ac_includes_default
4277 if (sizeof (size_t))
4283 rm -f conftest.$ac_objext
4284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4285 (eval $ac_compile) 2>conftest.er1
4287 grep -v '^ *+' conftest.er1 >conftest.err
4289 cat conftest.err >&5
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); } &&
4292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297 (exit $ac_status); }; } &&
4298 { ac_try='test -s conftest.$ac_objext'
4299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); }; }; then
4304 ac_cv_type_size_t=yes
4306 echo "$as_me: failed program was:" >&5
4307 sed 's/^/| /' conftest.$ac_ext >&5
4309 ac_cv_type_size_t=no
4311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4313 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4314 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4315 if test $ac_cv_type_size_t = yes; then
4319 cat >>confdefs.h <<_ACEOF
4320 #define size_t unsigned
4325 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4326 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4327 if test "${ac_cv_header_time+set}" = set; then
4328 echo $ECHO_N "(cached) $ECHO_C" >&6
4330 cat >conftest.$ac_ext <<_ACEOF
4333 cat confdefs.h >>conftest.$ac_ext
4334 cat >>conftest.$ac_ext <<_ACEOF
4335 /* end confdefs.h. */
4336 #include <sys/types.h>
4337 #include <sys/time.h>
4343 if ((struct tm *) 0)
4349 rm -f conftest.$ac_objext
4350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4351 (eval $ac_compile) 2>conftest.er1
4353 grep -v '^ *+' conftest.er1 >conftest.err
4355 cat conftest.err >&5
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); } &&
4358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); }; } &&
4364 { ac_try='test -s conftest.$ac_objext'
4365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369 (exit $ac_status); }; }; then
4370 ac_cv_header_time=yes
4372 echo "$as_me: failed program was:" >&5
4373 sed 's/^/| /' conftest.$ac_ext >&5
4375 ac_cv_header_time=no
4377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4379 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4380 echo "${ECHO_T}$ac_cv_header_time" >&6
4381 if test $ac_cv_header_time = yes; then
4383 cat >>confdefs.h <<\_ACEOF
4384 #define TIME_WITH_SYS_TIME 1
4389 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4390 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4391 if test "${ac_cv_struct_tm+set}" = set; then
4392 echo $ECHO_N "(cached) $ECHO_C" >&6
4394 cat >conftest.$ac_ext <<_ACEOF
4397 cat confdefs.h >>conftest.$ac_ext
4398 cat >>conftest.$ac_ext <<_ACEOF
4399 /* end confdefs.h. */
4400 #include <sys/types.h>
4406 struct tm *tp; tp->tm_sec;
4411 rm -f conftest.$ac_objext
4412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4413 (eval $ac_compile) 2>conftest.er1
4415 grep -v '^ *+' conftest.er1 >conftest.err
4417 cat conftest.err >&5
4418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419 (exit $ac_status); } &&
4420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425 (exit $ac_status); }; } &&
4426 { ac_try='test -s conftest.$ac_objext'
4427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4431 (exit $ac_status); }; }; then
4432 ac_cv_struct_tm=time.h
4434 echo "$as_me: failed program was:" >&5
4435 sed 's/^/| /' conftest.$ac_ext >&5
4437 ac_cv_struct_tm=sys/time.h
4439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4441 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4442 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4443 if test $ac_cv_struct_tm = sys/time.h; then
4445 cat >>confdefs.h <<\_ACEOF
4446 #define TM_IN_SYS_TIME 1
4451 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
4452 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
4453 if test "${ac_cv_type_uid_t+set}" = set; then
4454 echo $ECHO_N "(cached) $ECHO_C" >&6
4456 cat >conftest.$ac_ext <<_ACEOF
4459 cat confdefs.h >>conftest.$ac_ext
4460 cat >>conftest.$ac_ext <<_ACEOF
4461 /* end confdefs.h. */
4462 #include <sys/types.h>
4465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4466 $EGREP "uid_t" >/dev/null 2>&1; then
4467 ac_cv_type_uid_t=yes
4474 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
4475 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
4476 if test $ac_cv_type_uid_t = no; then
4478 cat >>confdefs.h <<\_ACEOF
4483 cat >>confdefs.h <<\_ACEOF
4489 echo "$as_me:$LINENO: checking for short" >&5
4490 echo $ECHO_N "checking for short... $ECHO_C" >&6
4491 if test "${ac_cv_type_short+set}" = set; then
4492 echo $ECHO_N "(cached) $ECHO_C" >&6
4494 cat >conftest.$ac_ext <<_ACEOF
4497 cat confdefs.h >>conftest.$ac_ext
4498 cat >>conftest.$ac_ext <<_ACEOF
4499 /* end confdefs.h. */
4500 $ac_includes_default
4512 rm -f conftest.$ac_objext
4513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4514 (eval $ac_compile) 2>conftest.er1
4516 grep -v '^ *+' conftest.er1 >conftest.err
4518 cat conftest.err >&5
4519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520 (exit $ac_status); } &&
4521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526 (exit $ac_status); }; } &&
4527 { ac_try='test -s conftest.$ac_objext'
4528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); }; }; then
4533 ac_cv_type_short=yes
4535 echo "$as_me: failed program was:" >&5
4536 sed 's/^/| /' conftest.$ac_ext >&5
4540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4542 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4543 echo "${ECHO_T}$ac_cv_type_short" >&6
4545 echo "$as_me:$LINENO: checking size of short" >&5
4546 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4547 if test "${ac_cv_sizeof_short+set}" = set; then
4548 echo $ECHO_N "(cached) $ECHO_C" >&6
4550 if test "$ac_cv_type_short" = yes; then
4551 # The cast to unsigned long works around a bug in the HP C Compiler
4552 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4553 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4554 # This bug is HP SR number 8606223364.
4555 if test "$cross_compiling" = yes; then
4556 # Depending upon the size, compute the lo and hi bounds.
4557 cat >conftest.$ac_ext <<_ACEOF
4560 cat confdefs.h >>conftest.$ac_ext
4561 cat >>conftest.$ac_ext <<_ACEOF
4562 /* end confdefs.h. */
4563 $ac_includes_default
4567 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4574 rm -f conftest.$ac_objext
4575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4576 (eval $ac_compile) 2>conftest.er1
4578 grep -v '^ *+' conftest.er1 >conftest.err
4580 cat conftest.err >&5
4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582 (exit $ac_status); } &&
4583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588 (exit $ac_status); }; } &&
4589 { ac_try='test -s conftest.$ac_objext'
4590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); }; }; then
4597 cat >conftest.$ac_ext <<_ACEOF
4600 cat confdefs.h >>conftest.$ac_ext
4601 cat >>conftest.$ac_ext <<_ACEOF
4602 /* end confdefs.h. */
4603 $ac_includes_default
4607 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4614 rm -f conftest.$ac_objext
4615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4616 (eval $ac_compile) 2>conftest.er1
4618 grep -v '^ *+' conftest.er1 >conftest.err
4620 cat conftest.err >&5
4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 (exit $ac_status); } &&
4623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628 (exit $ac_status); }; } &&
4629 { ac_try='test -s conftest.$ac_objext'
4630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634 (exit $ac_status); }; }; then
4635 ac_hi=$ac_mid; break
4637 echo "$as_me: failed program was:" >&5
4638 sed 's/^/| /' conftest.$ac_ext >&5
4640 ac_lo=`expr $ac_mid + 1`
4641 if test $ac_lo -le $ac_mid; then
4645 ac_mid=`expr 2 '*' $ac_mid + 1`
4647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4650 echo "$as_me: failed program was:" >&5
4651 sed 's/^/| /' conftest.$ac_ext >&5
4653 cat >conftest.$ac_ext <<_ACEOF
4656 cat confdefs.h >>conftest.$ac_ext
4657 cat >>conftest.$ac_ext <<_ACEOF
4658 /* end confdefs.h. */
4659 $ac_includes_default
4663 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4670 rm -f conftest.$ac_objext
4671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4672 (eval $ac_compile) 2>conftest.er1
4674 grep -v '^ *+' conftest.er1 >conftest.err
4676 cat conftest.err >&5
4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678 (exit $ac_status); } &&
4679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684 (exit $ac_status); }; } &&
4685 { ac_try='test -s conftest.$ac_objext'
4686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); }; }; then
4693 cat >conftest.$ac_ext <<_ACEOF
4696 cat confdefs.h >>conftest.$ac_ext
4697 cat >>conftest.$ac_ext <<_ACEOF
4698 /* end confdefs.h. */
4699 $ac_includes_default
4703 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4710 rm -f conftest.$ac_objext
4711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4712 (eval $ac_compile) 2>conftest.er1
4714 grep -v '^ *+' conftest.er1 >conftest.err
4716 cat conftest.err >&5
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); } &&
4719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); }; } &&
4725 { ac_try='test -s conftest.$ac_objext'
4726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730 (exit $ac_status); }; }; then
4731 ac_lo=$ac_mid; break
4733 echo "$as_me: failed program was:" >&5
4734 sed 's/^/| /' conftest.$ac_ext >&5
4736 ac_hi=`expr '(' $ac_mid ')' - 1`
4737 if test $ac_mid -le $ac_hi; then
4741 ac_mid=`expr 2 '*' $ac_mid`
4743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4746 echo "$as_me: failed program was:" >&5
4747 sed 's/^/| /' conftest.$ac_ext >&5
4751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4754 # Binary search between lo and hi bounds.
4755 while test "x$ac_lo" != "x$ac_hi"; do
4756 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4757 cat >conftest.$ac_ext <<_ACEOF
4760 cat confdefs.h >>conftest.$ac_ext
4761 cat >>conftest.$ac_ext <<_ACEOF
4762 /* end confdefs.h. */
4763 $ac_includes_default
4767 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4774 rm -f conftest.$ac_objext
4775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4776 (eval $ac_compile) 2>conftest.er1
4778 grep -v '^ *+' conftest.er1 >conftest.err
4780 cat conftest.err >&5
4781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782 (exit $ac_status); } &&
4783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788 (exit $ac_status); }; } &&
4789 { ac_try='test -s conftest.$ac_objext'
4790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794 (exit $ac_status); }; }; then
4797 echo "$as_me: failed program was:" >&5
4798 sed 's/^/| /' conftest.$ac_ext >&5
4800 ac_lo=`expr '(' $ac_mid ')' + 1`
4802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4805 ?*) ac_cv_sizeof_short=$ac_lo;;
4806 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4807 See \`config.log' for more details." >&5
4808 echo "$as_me: error: cannot compute sizeof (short), 77
4809 See \`config.log' for more details." >&2;}
4810 { (exit 1); exit 1; }; } ;;
4813 if test "$cross_compiling" = yes; then
4814 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4815 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4816 { (exit 1); exit 1; }; }
4818 cat >conftest.$ac_ext <<_ACEOF
4821 cat confdefs.h >>conftest.$ac_ext
4822 cat >>conftest.$ac_ext <<_ACEOF
4823 /* end confdefs.h. */
4824 $ac_includes_default
4825 long longval () { return (long) (sizeof (short)); }
4826 unsigned long ulongval () { return (long) (sizeof (short)); }
4833 FILE *f = fopen ("conftest.val", "w");
4836 if (((long) (sizeof (short))) < 0)
4838 long i = longval ();
4839 if (i != ((long) (sizeof (short))))
4841 fprintf (f, "%ld\n", i);
4845 unsigned long i = ulongval ();
4846 if (i != ((long) (sizeof (short))))
4848 fprintf (f, "%lu\n", i);
4850 exit (ferror (f) || fclose (f) != 0);
4856 rm -f conftest$ac_exeext
4857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4858 (eval $ac_link) 2>&5
4860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866 (exit $ac_status); }; }; then
4867 ac_cv_sizeof_short=`cat conftest.val`
4869 echo "$as_me: program exited with status $ac_status" >&5
4870 echo "$as_me: failed program was:" >&5
4871 sed 's/^/| /' conftest.$ac_ext >&5
4874 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4875 See \`config.log' for more details." >&5
4876 echo "$as_me: error: cannot compute sizeof (short), 77
4877 See \`config.log' for more details." >&2;}
4878 { (exit 1); exit 1; }; }
4880 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4885 ac_cv_sizeof_short=0
4888 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4889 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4890 cat >>confdefs.h <<_ACEOF
4891 #define SIZEOF_SHORT $ac_cv_sizeof_short
4895 echo "$as_me:$LINENO: checking for int" >&5
4896 echo $ECHO_N "checking for int... $ECHO_C" >&6
4897 if test "${ac_cv_type_int+set}" = set; then
4898 echo $ECHO_N "(cached) $ECHO_C" >&6
4900 cat >conftest.$ac_ext <<_ACEOF
4903 cat confdefs.h >>conftest.$ac_ext
4904 cat >>conftest.$ac_ext <<_ACEOF
4905 /* end confdefs.h. */
4906 $ac_includes_default
4918 rm -f conftest.$ac_objext
4919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4920 (eval $ac_compile) 2>conftest.er1
4922 grep -v '^ *+' conftest.er1 >conftest.err
4924 cat conftest.err >&5
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); } &&
4927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932 (exit $ac_status); }; } &&
4933 { ac_try='test -s conftest.$ac_objext'
4934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 (exit $ac_status); }; }; then
4941 echo "$as_me: failed program was:" >&5
4942 sed 's/^/| /' conftest.$ac_ext >&5
4946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4948 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4949 echo "${ECHO_T}$ac_cv_type_int" >&6
4951 echo "$as_me:$LINENO: checking size of int" >&5
4952 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4953 if test "${ac_cv_sizeof_int+set}" = set; then
4954 echo $ECHO_N "(cached) $ECHO_C" >&6
4956 if test "$ac_cv_type_int" = yes; then
4957 # The cast to unsigned long works around a bug in the HP C Compiler
4958 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4959 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4960 # This bug is HP SR number 8606223364.
4961 if test "$cross_compiling" = yes; then
4962 # Depending upon the size, compute the lo and hi bounds.
4963 cat >conftest.$ac_ext <<_ACEOF
4966 cat confdefs.h >>conftest.$ac_ext
4967 cat >>conftest.$ac_ext <<_ACEOF
4968 /* end confdefs.h. */
4969 $ac_includes_default
4973 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4980 rm -f conftest.$ac_objext
4981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4982 (eval $ac_compile) 2>conftest.er1
4984 grep -v '^ *+' conftest.er1 >conftest.err
4986 cat conftest.err >&5
4987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988 (exit $ac_status); } &&
4989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); }; } &&
4995 { ac_try='test -s conftest.$ac_objext'
4996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000 (exit $ac_status); }; }; then
5003 cat >conftest.$ac_ext <<_ACEOF
5006 cat confdefs.h >>conftest.$ac_ext
5007 cat >>conftest.$ac_ext <<_ACEOF
5008 /* end confdefs.h. */
5009 $ac_includes_default
5013 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5020 rm -f conftest.$ac_objext
5021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5022 (eval $ac_compile) 2>conftest.er1
5024 grep -v '^ *+' conftest.er1 >conftest.err
5026 cat conftest.err >&5
5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); } &&
5029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034 (exit $ac_status); }; } &&
5035 { ac_try='test -s conftest.$ac_objext'
5036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 (exit $ac_status); }; }; then
5041 ac_hi=$ac_mid; break
5043 echo "$as_me: failed program was:" >&5
5044 sed 's/^/| /' conftest.$ac_ext >&5
5046 ac_lo=`expr $ac_mid + 1`
5047 if test $ac_lo -le $ac_mid; then
5051 ac_mid=`expr 2 '*' $ac_mid + 1`
5053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5056 echo "$as_me: failed program was:" >&5
5057 sed 's/^/| /' conftest.$ac_ext >&5
5059 cat >conftest.$ac_ext <<_ACEOF
5062 cat confdefs.h >>conftest.$ac_ext
5063 cat >>conftest.$ac_ext <<_ACEOF
5064 /* end confdefs.h. */
5065 $ac_includes_default
5069 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5076 rm -f conftest.$ac_objext
5077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5078 (eval $ac_compile) 2>conftest.er1
5080 grep -v '^ *+' conftest.er1 >conftest.err
5082 cat conftest.err >&5
5083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 (exit $ac_status); } &&
5085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090 (exit $ac_status); }; } &&
5091 { ac_try='test -s conftest.$ac_objext'
5092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); }; }; then
5099 cat >conftest.$ac_ext <<_ACEOF
5102 cat confdefs.h >>conftest.$ac_ext
5103 cat >>conftest.$ac_ext <<_ACEOF
5104 /* end confdefs.h. */
5105 $ac_includes_default
5109 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5116 rm -f conftest.$ac_objext
5117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5118 (eval $ac_compile) 2>conftest.er1
5120 grep -v '^ *+' conftest.er1 >conftest.err
5122 cat conftest.err >&5
5123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124 (exit $ac_status); } &&
5125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130 (exit $ac_status); }; } &&
5131 { ac_try='test -s conftest.$ac_objext'
5132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); }; }; then
5137 ac_lo=$ac_mid; break
5139 echo "$as_me: failed program was:" >&5
5140 sed 's/^/| /' conftest.$ac_ext >&5
5142 ac_hi=`expr '(' $ac_mid ')' - 1`
5143 if test $ac_mid -le $ac_hi; then
5147 ac_mid=`expr 2 '*' $ac_mid`
5149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5152 echo "$as_me: failed program was:" >&5
5153 sed 's/^/| /' conftest.$ac_ext >&5
5157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5160 # Binary search between lo and hi bounds.
5161 while test "x$ac_lo" != "x$ac_hi"; do
5162 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5163 cat >conftest.$ac_ext <<_ACEOF
5166 cat confdefs.h >>conftest.$ac_ext
5167 cat >>conftest.$ac_ext <<_ACEOF
5168 /* end confdefs.h. */
5169 $ac_includes_default
5173 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5180 rm -f conftest.$ac_objext
5181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5182 (eval $ac_compile) 2>conftest.er1
5184 grep -v '^ *+' conftest.er1 >conftest.err
5186 cat conftest.err >&5
5187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188 (exit $ac_status); } &&
5189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194 (exit $ac_status); }; } &&
5195 { ac_try='test -s conftest.$ac_objext'
5196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); }; }; then
5203 echo "$as_me: failed program was:" >&5
5204 sed 's/^/| /' conftest.$ac_ext >&5
5206 ac_lo=`expr '(' $ac_mid ')' + 1`
5208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5211 ?*) ac_cv_sizeof_int=$ac_lo;;
5212 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5213 See \`config.log' for more details." >&5
5214 echo "$as_me: error: cannot compute sizeof (int), 77
5215 See \`config.log' for more details." >&2;}
5216 { (exit 1); exit 1; }; } ;;
5219 if test "$cross_compiling" = yes; then
5220 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5221 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5222 { (exit 1); exit 1; }; }
5224 cat >conftest.$ac_ext <<_ACEOF
5227 cat confdefs.h >>conftest.$ac_ext
5228 cat >>conftest.$ac_ext <<_ACEOF
5229 /* end confdefs.h. */
5230 $ac_includes_default
5231 long longval () { return (long) (sizeof (int)); }
5232 unsigned long ulongval () { return (long) (sizeof (int)); }
5239 FILE *f = fopen ("conftest.val", "w");
5242 if (((long) (sizeof (int))) < 0)
5244 long i = longval ();
5245 if (i != ((long) (sizeof (int))))
5247 fprintf (f, "%ld\n", i);
5251 unsigned long i = ulongval ();
5252 if (i != ((long) (sizeof (int))))
5254 fprintf (f, "%lu\n", i);
5256 exit (ferror (f) || fclose (f) != 0);
5262 rm -f conftest$ac_exeext
5263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5264 (eval $ac_link) 2>&5
5266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272 (exit $ac_status); }; }; then
5273 ac_cv_sizeof_int=`cat conftest.val`
5275 echo "$as_me: program exited with status $ac_status" >&5
5276 echo "$as_me: failed program was:" >&5
5277 sed 's/^/| /' conftest.$ac_ext >&5
5280 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5281 See \`config.log' for more details." >&5
5282 echo "$as_me: error: cannot compute sizeof (int), 77
5283 See \`config.log' for more details." >&2;}
5284 { (exit 1); exit 1; }; }
5286 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5294 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5295 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5296 cat >>confdefs.h <<_ACEOF
5297 #define SIZEOF_INT $ac_cv_sizeof_int
5301 echo "$as_me:$LINENO: checking for long" >&5
5302 echo $ECHO_N "checking for long... $ECHO_C" >&6
5303 if test "${ac_cv_type_long+set}" = set; then
5304 echo $ECHO_N "(cached) $ECHO_C" >&6
5306 cat >conftest.$ac_ext <<_ACEOF
5309 cat confdefs.h >>conftest.$ac_ext
5310 cat >>conftest.$ac_ext <<_ACEOF
5311 /* end confdefs.h. */
5312 $ac_includes_default
5324 rm -f conftest.$ac_objext
5325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5326 (eval $ac_compile) 2>conftest.er1
5328 grep -v '^ *+' conftest.er1 >conftest.err
5330 cat conftest.err >&5
5331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332 (exit $ac_status); } &&
5333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338 (exit $ac_status); }; } &&
5339 { ac_try='test -s conftest.$ac_objext'
5340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344 (exit $ac_status); }; }; then
5347 echo "$as_me: failed program was:" >&5
5348 sed 's/^/| /' conftest.$ac_ext >&5
5352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5354 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5355 echo "${ECHO_T}$ac_cv_type_long" >&6
5357 echo "$as_me:$LINENO: checking size of long" >&5
5358 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5359 if test "${ac_cv_sizeof_long+set}" = set; then
5360 echo $ECHO_N "(cached) $ECHO_C" >&6
5362 if test "$ac_cv_type_long" = yes; then
5363 # The cast to unsigned long works around a bug in the HP C Compiler
5364 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5365 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5366 # This bug is HP SR number 8606223364.
5367 if test "$cross_compiling" = yes; then
5368 # Depending upon the size, compute the lo and hi bounds.
5369 cat >conftest.$ac_ext <<_ACEOF
5372 cat confdefs.h >>conftest.$ac_ext
5373 cat >>conftest.$ac_ext <<_ACEOF
5374 /* end confdefs.h. */
5375 $ac_includes_default
5379 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5386 rm -f conftest.$ac_objext
5387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5388 (eval $ac_compile) 2>conftest.er1
5390 grep -v '^ *+' conftest.er1 >conftest.err
5392 cat conftest.err >&5
5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394 (exit $ac_status); } &&
5395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400 (exit $ac_status); }; } &&
5401 { ac_try='test -s conftest.$ac_objext'
5402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); }; }; then
5409 cat >conftest.$ac_ext <<_ACEOF
5412 cat confdefs.h >>conftest.$ac_ext
5413 cat >>conftest.$ac_ext <<_ACEOF
5414 /* end confdefs.h. */
5415 $ac_includes_default
5419 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5426 rm -f conftest.$ac_objext
5427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5428 (eval $ac_compile) 2>conftest.er1
5430 grep -v '^ *+' conftest.er1 >conftest.err
5432 cat conftest.err >&5
5433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434 (exit $ac_status); } &&
5435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440 (exit $ac_status); }; } &&
5441 { ac_try='test -s conftest.$ac_objext'
5442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); }; }; then
5447 ac_hi=$ac_mid; break
5449 echo "$as_me: failed program was:" >&5
5450 sed 's/^/| /' conftest.$ac_ext >&5
5452 ac_lo=`expr $ac_mid + 1`
5453 if test $ac_lo -le $ac_mid; then
5457 ac_mid=`expr 2 '*' $ac_mid + 1`
5459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5462 echo "$as_me: failed program was:" >&5
5463 sed 's/^/| /' conftest.$ac_ext >&5
5465 cat >conftest.$ac_ext <<_ACEOF
5468 cat confdefs.h >>conftest.$ac_ext
5469 cat >>conftest.$ac_ext <<_ACEOF
5470 /* end confdefs.h. */
5471 $ac_includes_default
5475 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5482 rm -f conftest.$ac_objext
5483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5484 (eval $ac_compile) 2>conftest.er1
5486 grep -v '^ *+' conftest.er1 >conftest.err
5488 cat conftest.err >&5
5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); } &&
5491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496 (exit $ac_status); }; } &&
5497 { ac_try='test -s conftest.$ac_objext'
5498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502 (exit $ac_status); }; }; then
5505 cat >conftest.$ac_ext <<_ACEOF
5508 cat confdefs.h >>conftest.$ac_ext
5509 cat >>conftest.$ac_ext <<_ACEOF
5510 /* end confdefs.h. */
5511 $ac_includes_default
5515 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5522 rm -f conftest.$ac_objext
5523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5524 (eval $ac_compile) 2>conftest.er1
5526 grep -v '^ *+' conftest.er1 >conftest.err
5528 cat conftest.err >&5
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); } &&
5531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); }; } &&
5537 { ac_try='test -s conftest.$ac_objext'
5538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); }; }; then
5543 ac_lo=$ac_mid; break
5545 echo "$as_me: failed program was:" >&5
5546 sed 's/^/| /' conftest.$ac_ext >&5
5548 ac_hi=`expr '(' $ac_mid ')' - 1`
5549 if test $ac_mid -le $ac_hi; then
5553 ac_mid=`expr 2 '*' $ac_mid`
5555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5558 echo "$as_me: failed program was:" >&5
5559 sed 's/^/| /' conftest.$ac_ext >&5
5563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5566 # Binary search between lo and hi bounds.
5567 while test "x$ac_lo" != "x$ac_hi"; do
5568 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5569 cat >conftest.$ac_ext <<_ACEOF
5572 cat confdefs.h >>conftest.$ac_ext
5573 cat >>conftest.$ac_ext <<_ACEOF
5574 /* end confdefs.h. */
5575 $ac_includes_default
5579 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5586 rm -f conftest.$ac_objext
5587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5588 (eval $ac_compile) 2>conftest.er1
5590 grep -v '^ *+' conftest.er1 >conftest.err
5592 cat conftest.err >&5
5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); } &&
5595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 (exit $ac_status); }; } &&
5601 { ac_try='test -s conftest.$ac_objext'
5602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606 (exit $ac_status); }; }; then
5609 echo "$as_me: failed program was:" >&5
5610 sed 's/^/| /' conftest.$ac_ext >&5
5612 ac_lo=`expr '(' $ac_mid ')' + 1`
5614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5617 ?*) ac_cv_sizeof_long=$ac_lo;;
5618 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5619 See \`config.log' for more details." >&5
5620 echo "$as_me: error: cannot compute sizeof (long), 77
5621 See \`config.log' for more details." >&2;}
5622 { (exit 1); exit 1; }; } ;;
5625 if test "$cross_compiling" = yes; then
5626 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5627 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5628 { (exit 1); exit 1; }; }
5630 cat >conftest.$ac_ext <<_ACEOF
5633 cat confdefs.h >>conftest.$ac_ext
5634 cat >>conftest.$ac_ext <<_ACEOF
5635 /* end confdefs.h. */
5636 $ac_includes_default
5637 long longval () { return (long) (sizeof (long)); }
5638 unsigned long ulongval () { return (long) (sizeof (long)); }
5645 FILE *f = fopen ("conftest.val", "w");
5648 if (((long) (sizeof (long))) < 0)
5650 long i = longval ();
5651 if (i != ((long) (sizeof (long))))
5653 fprintf (f, "%ld\n", i);
5657 unsigned long i = ulongval ();
5658 if (i != ((long) (sizeof (long))))
5660 fprintf (f, "%lu\n", i);
5662 exit (ferror (f) || fclose (f) != 0);
5668 rm -f conftest$ac_exeext
5669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5670 (eval $ac_link) 2>&5
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); }; }; then
5679 ac_cv_sizeof_long=`cat conftest.val`
5681 echo "$as_me: program exited with status $ac_status" >&5
5682 echo "$as_me: failed program was:" >&5
5683 sed 's/^/| /' conftest.$ac_ext >&5
5686 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5687 See \`config.log' for more details." >&5
5688 echo "$as_me: error: cannot compute sizeof (long), 77
5689 See \`config.log' for more details." >&2;}
5690 { (exit 1); exit 1; }; }
5692 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5700 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5701 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5702 cat >>confdefs.h <<_ACEOF
5703 #define SIZEOF_LONG $ac_cv_sizeof_long
5707 echo "$as_me:$LINENO: checking for void *" >&5
5708 echo $ECHO_N "checking for void *... $ECHO_C" >&6
5709 if test "${ac_cv_type_void_p+set}" = set; then
5710 echo $ECHO_N "(cached) $ECHO_C" >&6
5712 cat >conftest.$ac_ext <<_ACEOF
5715 cat confdefs.h >>conftest.$ac_ext
5716 cat >>conftest.$ac_ext <<_ACEOF
5717 /* end confdefs.h. */
5718 $ac_includes_default
5724 if (sizeof (void *))
5730 rm -f conftest.$ac_objext
5731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5732 (eval $ac_compile) 2>conftest.er1
5734 grep -v '^ *+' conftest.er1 >conftest.err
5736 cat conftest.err >&5
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); } &&
5739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); }; } &&
5745 { ac_try='test -s conftest.$ac_objext'
5746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); }; }; then
5751 ac_cv_type_void_p=yes
5753 echo "$as_me: failed program was:" >&5
5754 sed 's/^/| /' conftest.$ac_ext >&5
5756 ac_cv_type_void_p=no
5758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5760 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
5761 echo "${ECHO_T}$ac_cv_type_void_p" >&6
5763 echo "$as_me:$LINENO: checking size of void *" >&5
5764 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
5765 if test "${ac_cv_sizeof_void_p+set}" = set; then
5766 echo $ECHO_N "(cached) $ECHO_C" >&6
5768 if test "$ac_cv_type_void_p" = yes; then
5769 # The cast to unsigned long works around a bug in the HP C Compiler
5770 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5771 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5772 # This bug is HP SR number 8606223364.
5773 if test "$cross_compiling" = yes; then
5774 # Depending upon the size, compute the lo and hi bounds.
5775 cat >conftest.$ac_ext <<_ACEOF
5778 cat confdefs.h >>conftest.$ac_ext
5779 cat >>conftest.$ac_ext <<_ACEOF
5780 /* end confdefs.h. */
5781 $ac_includes_default
5785 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
5792 rm -f conftest.$ac_objext
5793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5794 (eval $ac_compile) 2>conftest.er1
5796 grep -v '^ *+' conftest.er1 >conftest.err
5798 cat conftest.err >&5
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); } &&
5801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806 (exit $ac_status); }; } &&
5807 { ac_try='test -s conftest.$ac_objext'
5808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); }; }; then
5815 cat >conftest.$ac_ext <<_ACEOF
5818 cat confdefs.h >>conftest.$ac_ext
5819 cat >>conftest.$ac_ext <<_ACEOF
5820 /* end confdefs.h. */
5821 $ac_includes_default
5825 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
5832 rm -f conftest.$ac_objext
5833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5834 (eval $ac_compile) 2>conftest.er1
5836 grep -v '^ *+' conftest.er1 >conftest.err
5838 cat conftest.err >&5
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); } &&
5841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); }; } &&
5847 { ac_try='test -s conftest.$ac_objext'
5848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852 (exit $ac_status); }; }; then
5853 ac_hi=$ac_mid; break
5855 echo "$as_me: failed program was:" >&5
5856 sed 's/^/| /' conftest.$ac_ext >&5
5858 ac_lo=`expr $ac_mid + 1`
5859 if test $ac_lo -le $ac_mid; then
5863 ac_mid=`expr 2 '*' $ac_mid + 1`
5865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5868 echo "$as_me: failed program was:" >&5
5869 sed 's/^/| /' conftest.$ac_ext >&5
5871 cat >conftest.$ac_ext <<_ACEOF
5874 cat confdefs.h >>conftest.$ac_ext
5875 cat >>conftest.$ac_ext <<_ACEOF
5876 /* end confdefs.h. */
5877 $ac_includes_default
5881 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
5888 rm -f conftest.$ac_objext
5889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5890 (eval $ac_compile) 2>conftest.er1
5892 grep -v '^ *+' conftest.er1 >conftest.err
5894 cat conftest.err >&5
5895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896 (exit $ac_status); } &&
5897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902 (exit $ac_status); }; } &&
5903 { ac_try='test -s conftest.$ac_objext'
5904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908 (exit $ac_status); }; }; then
5911 cat >conftest.$ac_ext <<_ACEOF
5914 cat confdefs.h >>conftest.$ac_ext
5915 cat >>conftest.$ac_ext <<_ACEOF
5916 /* end confdefs.h. */
5917 $ac_includes_default
5921 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
5928 rm -f conftest.$ac_objext
5929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5930 (eval $ac_compile) 2>conftest.er1
5932 grep -v '^ *+' conftest.er1 >conftest.err
5934 cat conftest.err >&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); } &&
5937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); }; } &&
5943 { ac_try='test -s conftest.$ac_objext'
5944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); }; }; then
5949 ac_lo=$ac_mid; break
5951 echo "$as_me: failed program was:" >&5
5952 sed 's/^/| /' conftest.$ac_ext >&5
5954 ac_hi=`expr '(' $ac_mid ')' - 1`
5955 if test $ac_mid -le $ac_hi; then
5959 ac_mid=`expr 2 '*' $ac_mid`
5961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5964 echo "$as_me: failed program was:" >&5
5965 sed 's/^/| /' conftest.$ac_ext >&5
5969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5972 # Binary search between lo and hi bounds.
5973 while test "x$ac_lo" != "x$ac_hi"; do
5974 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5975 cat >conftest.$ac_ext <<_ACEOF
5978 cat confdefs.h >>conftest.$ac_ext
5979 cat >>conftest.$ac_ext <<_ACEOF
5980 /* end confdefs.h. */
5981 $ac_includes_default
5985 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
5992 rm -f conftest.$ac_objext
5993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5994 (eval $ac_compile) 2>conftest.er1
5996 grep -v '^ *+' conftest.er1 >conftest.err
5998 cat conftest.err >&5
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); } &&
6001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); }; } &&
6007 { ac_try='test -s conftest.$ac_objext'
6008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); }; }; then
6015 echo "$as_me: failed program was:" >&5
6016 sed 's/^/| /' conftest.$ac_ext >&5
6018 ac_lo=`expr '(' $ac_mid ')' + 1`
6020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6023 ?*) ac_cv_sizeof_void_p=$ac_lo;;
6024 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
6025 See \`config.log' for more details." >&5
6026 echo "$as_me: error: cannot compute sizeof (void *), 77
6027 See \`config.log' for more details." >&2;}
6028 { (exit 1); exit 1; }; } ;;
6031 if test "$cross_compiling" = yes; then
6032 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6033 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6034 { (exit 1); exit 1; }; }
6036 cat >conftest.$ac_ext <<_ACEOF
6039 cat confdefs.h >>conftest.$ac_ext
6040 cat >>conftest.$ac_ext <<_ACEOF
6041 /* end confdefs.h. */
6042 $ac_includes_default
6043 long longval () { return (long) (sizeof (void *)); }
6044 unsigned long ulongval () { return (long) (sizeof (void *)); }
6051 FILE *f = fopen ("conftest.val", "w");
6054 if (((long) (sizeof (void *))) < 0)
6056 long i = longval ();
6057 if (i != ((long) (sizeof (void *))))
6059 fprintf (f, "%ld\n", i);
6063 unsigned long i = ulongval ();
6064 if (i != ((long) (sizeof (void *))))
6066 fprintf (f, "%lu\n", i);
6068 exit (ferror (f) || fclose (f) != 0);
6074 rm -f conftest$ac_exeext
6075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6076 (eval $ac_link) 2>&5
6078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); }; }; then
6085 ac_cv_sizeof_void_p=`cat conftest.val`
6087 echo "$as_me: program exited with status $ac_status" >&5
6088 echo "$as_me: failed program was:" >&5
6089 sed 's/^/| /' conftest.$ac_ext >&5
6092 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
6093 See \`config.log' for more details." >&5
6094 echo "$as_me: error: cannot compute sizeof (void *), 77
6095 See \`config.log' for more details." >&2;}
6096 { (exit 1); exit 1; }; }
6098 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6103 ac_cv_sizeof_void_p=0
6106 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
6107 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
6108 cat >>confdefs.h <<_ACEOF
6109 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6113 if test "$ac_cv_sizeof_int" = 2 ; then
6114 echo "$as_me:$LINENO: checking for int16_t" >&5
6115 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
6116 if test "${ac_cv_type_int16_t+set}" = set; then
6117 echo $ECHO_N "(cached) $ECHO_C" >&6
6119 cat >conftest.$ac_ext <<_ACEOF
6122 cat confdefs.h >>conftest.$ac_ext
6123 cat >>conftest.$ac_ext <<_ACEOF
6124 /* end confdefs.h. */
6125 $ac_includes_default
6131 if (sizeof (int16_t))
6137 rm -f conftest.$ac_objext
6138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6139 (eval $ac_compile) 2>conftest.er1
6141 grep -v '^ *+' conftest.er1 >conftest.err
6143 cat conftest.err >&5
6144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); } &&
6146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); }; } &&
6152 { ac_try='test -s conftest.$ac_objext'
6153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157 (exit $ac_status); }; }; then
6158 ac_cv_type_int16_t=yes
6160 echo "$as_me: failed program was:" >&5
6161 sed 's/^/| /' conftest.$ac_ext >&5
6163 ac_cv_type_int16_t=no
6165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6167 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
6168 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
6169 if test $ac_cv_type_int16_t = yes; then
6173 cat >>confdefs.h <<_ACEOF
6179 echo "$as_me:$LINENO: checking for u_int16_t" >&5
6180 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
6181 if test "${ac_cv_type_u_int16_t+set}" = set; then
6182 echo $ECHO_N "(cached) $ECHO_C" >&6
6184 cat >conftest.$ac_ext <<_ACEOF
6187 cat confdefs.h >>conftest.$ac_ext
6188 cat >>conftest.$ac_ext <<_ACEOF
6189 /* end confdefs.h. */
6190 $ac_includes_default
6194 if ((u_int16_t *) 0)
6196 if (sizeof (u_int16_t))
6202 rm -f conftest.$ac_objext
6203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6204 (eval $ac_compile) 2>conftest.er1
6206 grep -v '^ *+' conftest.er1 >conftest.err
6208 cat conftest.err >&5
6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210 (exit $ac_status); } &&
6211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); }; } &&
6217 { ac_try='test -s conftest.$ac_objext'
6218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222 (exit $ac_status); }; }; then
6223 ac_cv_type_u_int16_t=yes
6225 echo "$as_me: failed program was:" >&5
6226 sed 's/^/| /' conftest.$ac_ext >&5
6228 ac_cv_type_u_int16_t=no
6230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6232 echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
6233 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
6234 if test $ac_cv_type_u_int16_t = yes; then
6238 cat >>confdefs.h <<_ACEOF
6239 #define u_int16_t unsigned int
6244 elif test "$ac_cv_sizeof_short" = 2 ; then
6245 echo "$as_me:$LINENO: checking for int16_t" >&5
6246 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
6247 if test "${ac_cv_type_int16_t+set}" = set; then
6248 echo $ECHO_N "(cached) $ECHO_C" >&6
6250 cat >conftest.$ac_ext <<_ACEOF
6253 cat confdefs.h >>conftest.$ac_ext
6254 cat >>conftest.$ac_ext <<_ACEOF
6255 /* end confdefs.h. */
6256 $ac_includes_default
6262 if (sizeof (int16_t))
6268 rm -f conftest.$ac_objext
6269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6270 (eval $ac_compile) 2>conftest.er1
6272 grep -v '^ *+' conftest.er1 >conftest.err
6274 cat conftest.err >&5
6275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276 (exit $ac_status); } &&
6277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282 (exit $ac_status); }; } &&
6283 { ac_try='test -s conftest.$ac_objext'
6284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288 (exit $ac_status); }; }; then
6289 ac_cv_type_int16_t=yes
6291 echo "$as_me: failed program was:" >&5
6292 sed 's/^/| /' conftest.$ac_ext >&5
6294 ac_cv_type_int16_t=no
6296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6298 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
6299 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
6300 if test $ac_cv_type_int16_t = yes; then
6304 cat >>confdefs.h <<_ACEOF
6305 #define int16_t short
6310 echo "$as_me:$LINENO: checking for u_int16_t" >&5
6311 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
6312 if test "${ac_cv_type_u_int16_t+set}" = set; then
6313 echo $ECHO_N "(cached) $ECHO_C" >&6
6315 cat >conftest.$ac_ext <<_ACEOF
6318 cat confdefs.h >>conftest.$ac_ext
6319 cat >>conftest.$ac_ext <<_ACEOF
6320 /* end confdefs.h. */
6321 $ac_includes_default
6325 if ((u_int16_t *) 0)
6327 if (sizeof (u_int16_t))
6333 rm -f conftest.$ac_objext
6334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6335 (eval $ac_compile) 2>conftest.er1
6337 grep -v '^ *+' conftest.er1 >conftest.err
6339 cat conftest.err >&5
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); } &&
6342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); }; } &&
6348 { ac_try='test -s conftest.$ac_objext'
6349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); }; }; then
6354 ac_cv_type_u_int16_t=yes
6356 echo "$as_me: failed program was:" >&5
6357 sed 's/^/| /' conftest.$ac_ext >&5
6359 ac_cv_type_u_int16_t=no
6361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6363 echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
6364 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
6365 if test $ac_cv_type_u_int16_t = yes; then
6369 cat >>confdefs.h <<_ACEOF
6370 #define u_int16_t unsigned short
6376 { { echo "$as_me:$LINENO: error: Cannot find a type with size of 16 bits" >&5
6377 echo "$as_me: error: Cannot find a type with size of 16 bits" >&2;}
6378 { (exit 1); exit 1; }; }
6380 if test "$ac_cv_sizeof_int" = 4 ; then
6381 echo "$as_me:$LINENO: checking for int32_t" >&5
6382 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
6383 if test "${ac_cv_type_int32_t+set}" = set; then
6384 echo $ECHO_N "(cached) $ECHO_C" >&6
6386 cat >conftest.$ac_ext <<_ACEOF
6389 cat confdefs.h >>conftest.$ac_ext
6390 cat >>conftest.$ac_ext <<_ACEOF
6391 /* end confdefs.h. */
6392 $ac_includes_default
6398 if (sizeof (int32_t))
6404 rm -f conftest.$ac_objext
6405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6406 (eval $ac_compile) 2>conftest.er1
6408 grep -v '^ *+' conftest.er1 >conftest.err
6410 cat conftest.err >&5
6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412 (exit $ac_status); } &&
6413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418 (exit $ac_status); }; } &&
6419 { ac_try='test -s conftest.$ac_objext'
6420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424 (exit $ac_status); }; }; then
6425 ac_cv_type_int32_t=yes
6427 echo "$as_me: failed program was:" >&5
6428 sed 's/^/| /' conftest.$ac_ext >&5
6430 ac_cv_type_int32_t=no
6432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6434 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
6435 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
6436 if test $ac_cv_type_int32_t = yes; then
6440 cat >>confdefs.h <<_ACEOF
6446 echo "$as_me:$LINENO: checking for u_int32_t" >&5
6447 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
6448 if test "${ac_cv_type_u_int32_t+set}" = set; then
6449 echo $ECHO_N "(cached) $ECHO_C" >&6
6451 cat >conftest.$ac_ext <<_ACEOF
6454 cat confdefs.h >>conftest.$ac_ext
6455 cat >>conftest.$ac_ext <<_ACEOF
6456 /* end confdefs.h. */
6457 $ac_includes_default
6461 if ((u_int32_t *) 0)
6463 if (sizeof (u_int32_t))
6469 rm -f conftest.$ac_objext
6470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6471 (eval $ac_compile) 2>conftest.er1
6473 grep -v '^ *+' conftest.er1 >conftest.err
6475 cat conftest.err >&5
6476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477 (exit $ac_status); } &&
6478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483 (exit $ac_status); }; } &&
6484 { ac_try='test -s conftest.$ac_objext'
6485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); }; }; then
6490 ac_cv_type_u_int32_t=yes
6492 echo "$as_me: failed program was:" >&5
6493 sed 's/^/| /' conftest.$ac_ext >&5
6495 ac_cv_type_u_int32_t=no
6497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6499 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
6500 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
6501 if test $ac_cv_type_u_int32_t = yes; then
6505 cat >>confdefs.h <<_ACEOF
6506 #define u_int32_t unsigned int
6511 elif test "$ac_cv_sizeof_short" = 4 ; then
6512 echo "$as_me:$LINENO: checking for int32_t" >&5
6513 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
6514 if test "${ac_cv_type_int32_t+set}" = set; then
6515 echo $ECHO_N "(cached) $ECHO_C" >&6
6517 cat >conftest.$ac_ext <<_ACEOF
6520 cat confdefs.h >>conftest.$ac_ext
6521 cat >>conftest.$ac_ext <<_ACEOF
6522 /* end confdefs.h. */
6523 $ac_includes_default
6529 if (sizeof (int32_t))
6535 rm -f conftest.$ac_objext
6536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6537 (eval $ac_compile) 2>conftest.er1
6539 grep -v '^ *+' conftest.er1 >conftest.err
6541 cat conftest.err >&5
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); } &&
6544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); }; } &&
6550 { ac_try='test -s conftest.$ac_objext'
6551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555 (exit $ac_status); }; }; then
6556 ac_cv_type_int32_t=yes
6558 echo "$as_me: failed program was:" >&5
6559 sed 's/^/| /' conftest.$ac_ext >&5
6561 ac_cv_type_int32_t=no
6563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6565 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
6566 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
6567 if test $ac_cv_type_int32_t = yes; then
6571 cat >>confdefs.h <<_ACEOF
6572 #define int32_t short
6577 echo "$as_me:$LINENO: checking for u_int32_t" >&5
6578 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
6579 if test "${ac_cv_type_u_int32_t+set}" = set; then
6580 echo $ECHO_N "(cached) $ECHO_C" >&6
6582 cat >conftest.$ac_ext <<_ACEOF
6585 cat confdefs.h >>conftest.$ac_ext
6586 cat >>conftest.$ac_ext <<_ACEOF
6587 /* end confdefs.h. */
6588 $ac_includes_default
6592 if ((u_int32_t *) 0)
6594 if (sizeof (u_int32_t))
6600 rm -f conftest.$ac_objext
6601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6602 (eval $ac_compile) 2>conftest.er1
6604 grep -v '^ *+' conftest.er1 >conftest.err
6606 cat conftest.err >&5
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); } &&
6609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614 (exit $ac_status); }; } &&
6615 { ac_try='test -s conftest.$ac_objext'
6616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 (exit $ac_status); }; }; then
6621 ac_cv_type_u_int32_t=yes
6623 echo "$as_me: failed program was:" >&5
6624 sed 's/^/| /' conftest.$ac_ext >&5
6626 ac_cv_type_u_int32_t=no
6628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6630 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
6631 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
6632 if test $ac_cv_type_u_int32_t = yes; then
6636 cat >>confdefs.h <<_ACEOF
6637 #define u_int32_t unsigned short
6642 elif test "$ac_cv_sizeof_long" = 4 ; then
6643 echo "$as_me:$LINENO: checking for int32_t" >&5
6644 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
6645 if test "${ac_cv_type_int32_t+set}" = set; then
6646 echo $ECHO_N "(cached) $ECHO_C" >&6
6648 cat >conftest.$ac_ext <<_ACEOF
6651 cat confdefs.h >>conftest.$ac_ext
6652 cat >>conftest.$ac_ext <<_ACEOF
6653 /* end confdefs.h. */
6654 $ac_includes_default
6660 if (sizeof (int32_t))
6666 rm -f conftest.$ac_objext
6667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6668 (eval $ac_compile) 2>conftest.er1
6670 grep -v '^ *+' conftest.er1 >conftest.err
6672 cat conftest.err >&5
6673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674 (exit $ac_status); } &&
6675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680 (exit $ac_status); }; } &&
6681 { ac_try='test -s conftest.$ac_objext'
6682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686 (exit $ac_status); }; }; then
6687 ac_cv_type_int32_t=yes
6689 echo "$as_me: failed program was:" >&5
6690 sed 's/^/| /' conftest.$ac_ext >&5
6692 ac_cv_type_int32_t=no
6694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6696 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
6697 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
6698 if test $ac_cv_type_int32_t = yes; then
6702 cat >>confdefs.h <<_ACEOF
6703 #define int32_t long
6708 echo "$as_me:$LINENO: checking for u_int32_t" >&5
6709 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
6710 if test "${ac_cv_type_u_int32_t+set}" = set; then
6711 echo $ECHO_N "(cached) $ECHO_C" >&6
6713 cat >conftest.$ac_ext <<_ACEOF
6716 cat confdefs.h >>conftest.$ac_ext
6717 cat >>conftest.$ac_ext <<_ACEOF
6718 /* end confdefs.h. */
6719 $ac_includes_default
6723 if ((u_int32_t *) 0)
6725 if (sizeof (u_int32_t))
6731 rm -f conftest.$ac_objext
6732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6733 (eval $ac_compile) 2>conftest.er1
6735 grep -v '^ *+' conftest.er1 >conftest.err
6737 cat conftest.err >&5
6738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739 (exit $ac_status); } &&
6740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745 (exit $ac_status); }; } &&
6746 { ac_try='test -s conftest.$ac_objext'
6747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751 (exit $ac_status); }; }; then
6752 ac_cv_type_u_int32_t=yes
6754 echo "$as_me: failed program was:" >&5
6755 sed 's/^/| /' conftest.$ac_ext >&5
6757 ac_cv_type_u_int32_t=no
6759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6761 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
6762 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
6763 if test $ac_cv_type_u_int32_t = yes; then
6767 cat >>confdefs.h <<_ACEOF
6768 #define u_int32_t unsigned long
6774 { { echo "$as_me:$LINENO: error: Cannot find a type with size of 32 bits" >&5
6775 echo "$as_me: error: Cannot find a type with size of 32 bits" >&2;}
6776 { (exit 1); exit 1; }; }
6783 for ac_func in kqueue setrlimit getrusage times
6785 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6786 echo "$as_me:$LINENO: checking for $ac_func" >&5
6787 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6788 if eval "test \"\${$as_ac_var+set}\" = set"; then
6789 echo $ECHO_N "(cached) $ECHO_C" >&6
6791 cat >conftest.$ac_ext <<_ACEOF
6794 cat confdefs.h >>conftest.$ac_ext
6795 cat >>conftest.$ac_ext <<_ACEOF
6796 /* end confdefs.h. */
6797 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6798 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6799 #define $ac_func innocuous_$ac_func
6801 /* System header to define __stub macros and hopefully few prototypes,
6802 which can conflict with char $ac_func (); below.
6803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6804 <limits.h> exists even on freestanding compilers. */
6807 # include <limits.h>
6809 # include <assert.h>
6814 /* Override any gcc2 internal prototype to avoid an error. */
6819 /* We use char because int might match the return type of a gcc2
6820 builtin and then its argument prototype would still apply. */
6822 /* The GNU C library defines this for functions which it implements
6823 to always fail with ENOSYS. Some functions are actually named
6824 something starting with __ and the normal name is an alias. */
6825 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6828 char (*f) () = $ac_func;
6837 return f != $ac_func;
6842 rm -f conftest.$ac_objext conftest$ac_exeext
6843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6844 (eval $ac_link) 2>conftest.er1
6846 grep -v '^ *+' conftest.er1 >conftest.err
6848 cat conftest.err >&5
6849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850 (exit $ac_status); } &&
6851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856 (exit $ac_status); }; } &&
6857 { ac_try='test -s conftest$ac_exeext'
6858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6862 (exit $ac_status); }; }; then
6863 eval "$as_ac_var=yes"
6865 echo "$as_me: failed program was:" >&5
6866 sed 's/^/| /' conftest.$ac_ext >&5
6868 eval "$as_ac_var=no"
6870 rm -f conftest.err conftest.$ac_objext \
6871 conftest$ac_exeext conftest.$ac_ext
6873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6874 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6875 if test `eval echo '${'$as_ac_var'}'` = yes; then
6876 cat >>confdefs.h <<_ACEOF
6877 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6884 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6885 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6886 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6887 echo $ECHO_N "(cached) $ECHO_C" >&6
6889 cat >conftest.$ac_ext <<_ACEOF
6892 cat confdefs.h >>conftest.$ac_ext
6893 cat >>conftest.$ac_ext <<_ACEOF
6894 /* end confdefs.h. */
6895 #include <sys/types.h>
6896 #include <sys/wait.h>
6898 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6901 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6909 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6914 rm -f conftest.$ac_objext
6915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6916 (eval $ac_compile) 2>conftest.er1
6918 grep -v '^ *+' conftest.er1 >conftest.err
6920 cat conftest.err >&5
6921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922 (exit $ac_status); } &&
6923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928 (exit $ac_status); }; } &&
6929 { ac_try='test -s conftest.$ac_objext'
6930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934 (exit $ac_status); }; }; then
6935 ac_cv_header_sys_wait_h=yes
6937 echo "$as_me: failed program was:" >&5
6938 sed 's/^/| /' conftest.$ac_ext >&5
6940 ac_cv_header_sys_wait_h=no
6942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6944 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6945 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6946 if test $ac_cv_header_sys_wait_h = yes; then
6948 cat >>confdefs.h <<\_ACEOF
6949 #define HAVE_SYS_WAIT_H 1
6955 for ac_header in unistd.h
6957 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6958 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6959 echo "$as_me:$LINENO: checking for $ac_header" >&5
6960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6962 echo $ECHO_N "(cached) $ECHO_C" >&6
6964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6965 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6967 # Is the header compilable?
6968 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6969 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6970 cat >conftest.$ac_ext <<_ACEOF
6973 cat confdefs.h >>conftest.$ac_ext
6974 cat >>conftest.$ac_ext <<_ACEOF
6975 /* end confdefs.h. */
6976 $ac_includes_default
6977 #include <$ac_header>
6979 rm -f conftest.$ac_objext
6980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6981 (eval $ac_compile) 2>conftest.er1
6983 grep -v '^ *+' conftest.er1 >conftest.err
6985 cat conftest.err >&5
6986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987 (exit $ac_status); } &&
6988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993 (exit $ac_status); }; } &&
6994 { ac_try='test -s conftest.$ac_objext'
6995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999 (exit $ac_status); }; }; then
7000 ac_header_compiler=yes
7002 echo "$as_me: failed program was:" >&5
7003 sed 's/^/| /' conftest.$ac_ext >&5
7005 ac_header_compiler=no
7007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7008 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7009 echo "${ECHO_T}$ac_header_compiler" >&6
7011 # Is the header present?
7012 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7013 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7014 cat >conftest.$ac_ext <<_ACEOF
7017 cat confdefs.h >>conftest.$ac_ext
7018 cat >>conftest.$ac_ext <<_ACEOF
7019 /* end confdefs.h. */
7020 #include <$ac_header>
7022 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7023 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7025 grep -v '^ *+' conftest.er1 >conftest.err
7027 cat conftest.err >&5
7028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029 (exit $ac_status); } >/dev/null; then
7030 if test -s conftest.err; then
7031 ac_cpp_err=$ac_c_preproc_warn_flag
7032 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7039 if test -z "$ac_cpp_err"; then
7040 ac_header_preproc=yes
7042 echo "$as_me: failed program was:" >&5
7043 sed 's/^/| /' conftest.$ac_ext >&5
7045 ac_header_preproc=no
7047 rm -f conftest.err conftest.$ac_ext
7048 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7049 echo "${ECHO_T}$ac_header_preproc" >&6
7051 # So? What about this header?
7052 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7054 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7055 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7056 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7057 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7058 ac_header_preproc=yes
7061 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7062 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7063 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7064 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7065 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7066 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7067 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7068 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7069 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7070 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7071 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7072 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7075 ## ------------------------------------------ ##
7076 ## Report this to the AC_PACKAGE_NAME lists. ##
7077 ## ------------------------------------------ ##
7080 sed "s/^/$as_me: WARNING: /" >&2
7083 echo "$as_me:$LINENO: checking for $ac_header" >&5
7084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7085 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7086 echo $ECHO_N "(cached) $ECHO_C" >&6
7088 eval "$as_ac_Header=\$ac_header_preproc"
7090 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7091 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7094 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7095 cat >>confdefs.h <<_ACEOF
7096 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7103 echo "$as_me:$LINENO: checking for restartable system calls" >&5
7104 echo $ECHO_N "checking for restartable system calls... $ECHO_C" >&6
7105 if test "${ac_cv_sys_restartable_syscalls+set}" = set; then
7106 echo $ECHO_N "(cached) $ECHO_C" >&6
7108 if test "$cross_compiling" = yes; then
7109 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7110 See \`config.log' for more details." >&5
7111 echo "$as_me: error: cannot run test program while cross compiling
7112 See \`config.log' for more details." >&2;}
7113 { (exit 1); exit 1; }; }
7115 cat >conftest.$ac_ext <<_ACEOF
7118 cat confdefs.h >>conftest.$ac_ext
7119 cat >>conftest.$ac_ext <<_ACEOF
7120 /* end confdefs.h. */
7121 /* Exit 0 (true) if wait returns something other than -1,
7122 i.e. the pid of the child, which means that wait was restarted
7123 after getting the signal. */
7125 #include <sys/types.h>
7128 # include <unistd.h>
7131 # include <sys/wait.h>
7134 /* Some platforms explicitly require an extern "C" signal handler
7137 extern "C" void ucatch (int dummy) { }
7139 void ucatch (dummy) int dummy; { }
7145 int i = fork (), status;
7150 kill (getppid (), SIGINT);
7155 signal (SIGINT, ucatch);
7161 exit (status == -1);
7164 rm -f conftest$ac_exeext
7165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7166 (eval $ac_link) 2>&5
7168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7169 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7174 (exit $ac_status); }; }; then
7175 ac_cv_sys_restartable_syscalls=yes
7177 echo "$as_me: program exited with status $ac_status" >&5
7178 echo "$as_me: failed program was:" >&5
7179 sed 's/^/| /' conftest.$ac_ext >&5
7182 ac_cv_sys_restartable_syscalls=no
7184 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7187 echo "$as_me:$LINENO: result: $ac_cv_sys_restartable_syscalls" >&5
7188 echo "${ECHO_T}$ac_cv_sys_restartable_syscalls" >&6
7189 if test $ac_cv_sys_restartable_syscalls = yes; then
7191 cat >>confdefs.h <<\_ACEOF
7192 #define HAVE_RESTARTABLE_SYSCALLS 1
7198 echo "$as_me:$LINENO: checking for donuts" >&5
7199 echo $ECHO_N "checking for donuts... $ECHO_C" >&6
7200 echo "$as_me:$LINENO: result: yes" >&5
7201 echo "${ECHO_T}yes" >&6
7203 for ac_prog in gawk mawk nawk awk
7205 # Extract the first word of "$ac_prog", so it can be a program name with args.
7206 set dummy $ac_prog; ac_word=$2
7207 echo "$as_me:$LINENO: checking for $ac_word" >&5
7208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7209 if test "${ac_cv_prog_AWK+set}" = set; then
7210 echo $ECHO_N "(cached) $ECHO_C" >&6
7212 if test -n "$AWK"; then
7213 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219 test -z "$as_dir" && as_dir=.
7220 for ac_exec_ext in '' $ac_executable_extensions; do
7221 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7222 ac_cv_prog_AWK="$ac_prog"
7223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7232 if test -n "$AWK"; then
7233 echo "$as_me:$LINENO: result: $AWK" >&5
7234 echo "${ECHO_T}$AWK" >&6
7236 echo "$as_me:$LINENO: result: no" >&5
7237 echo "${ECHO_T}no" >&6
7240 test -n "$AWK" && break
7243 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7244 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7245 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7246 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7247 echo $ECHO_N "(cached) $ECHO_C" >&6
7249 cat >conftest.make <<\_ACEOF
7251 @echo 'ac_maketemp="$(MAKE)"'
7253 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7254 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7255 if test -n "$ac_maketemp"; then
7256 eval ac_cv_prog_make_${ac_make}_set=yes
7258 eval ac_cv_prog_make_${ac_make}_set=no
7262 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7263 echo "$as_me:$LINENO: result: yes" >&5
7264 echo "${ECHO_T}yes" >&6
7267 echo "$as_me:$LINENO: result: no" >&5
7268 echo "${ECHO_T}no" >&6
7269 SET_MAKE="MAKE=${MAKE-make}"
7272 # Find a good install program. We prefer a C program (faster),
7273 # so one script is as good as another. But avoid the broken or
7274 # incompatible versions:
7275 # SysV /etc/install, /usr/sbin/install
7276 # SunOS /usr/etc/install
7277 # IRIX /sbin/install
7279 # AmigaOS /C/install, which installs bootblocks on floppy discs
7280 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7281 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7282 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7283 # OS/2's system install, which has a completely different semantic
7284 # ./install, which can be erroneously created by make from ./install.sh.
7285 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7286 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
7287 if test -z "$INSTALL"; then
7288 if test "${ac_cv_path_install+set}" = set; then
7289 echo $ECHO_N "(cached) $ECHO_C" >&6
7291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7295 test -z "$as_dir" && as_dir=.
7296 # Account for people who put trailing slashes in PATH elements.
7298 ./ | .// | /cC/* | \
7299 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7300 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7303 # OSF1 and SCO ODT 3.0 have their own names for install.
7304 # Don't use installbsd from OSF since it installs stuff as root
7306 for ac_prog in ginstall scoinst install; do
7307 for ac_exec_ext in '' $ac_executable_extensions; do
7308 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7309 if test $ac_prog = install &&
7310 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7311 # AIX install. It has an incompatible calling convention.
7313 elif test $ac_prog = install &&
7314 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7315 # program-specific install script used by HP pwplus--don't use.
7318 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7330 if test "${ac_cv_path_install+set}" = set; then
7331 INSTALL=$ac_cv_path_install
7333 # As a last resort, use the slow shell script. We don't cache a
7334 # path for INSTALL within a source directory, because that will
7335 # break other packages using the cache if that directory is
7336 # removed, or if the path is relative.
7337 INSTALL=$ac_install_sh
7340 echo "$as_me:$LINENO: result: $INSTALL" >&5
7341 echo "${ECHO_T}$INSTALL" >&6
7343 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7344 # It thinks the first close brace ends the variable substitution.
7345 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7347 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7349 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7351 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7352 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7354 if test "$LN_S" = "ln -s"; then
7355 echo "$as_me:$LINENO: result: yes" >&5
7356 echo "${ECHO_T}yes" >&6
7358 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7359 echo "${ECHO_T}no, using $LN_S" >&6
7364 # Extract the first word of "$ac_prog", so it can be a program name with args.
7365 set dummy $ac_prog; ac_word=$2
7366 echo "$as_me:$LINENO: checking for $ac_word" >&5
7367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7368 if test "${ac_cv_path_RMPROG+set}" = set; then
7369 echo $ECHO_N "(cached) $ECHO_C" >&6
7373 ac_cv_path_RMPROG="$RMPROG" # Let the user override the test with a path.
7376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7380 test -z "$as_dir" && as_dir=.
7381 for ac_exec_ext in '' $ac_executable_extensions; do
7382 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7383 ac_cv_path_RMPROG="$as_dir/$ac_word$ac_exec_ext"
7384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7393 RMPROG=$ac_cv_path_RMPROG
7395 if test -n "$RMPROG"; then
7396 echo "$as_me:$LINENO: result: $RMPROG" >&5
7397 echo "${ECHO_T}$RMPROG" >&6
7399 echo "$as_me:$LINENO: result: no" >&5
7400 echo "${ECHO_T}no" >&6
7403 test -n "$RMPROG" && break
7405 test -n "$RMPROG" || RMPROG="/bin/rm"
7409 # Extract the first word of "$ac_prog", so it can be a program name with args.
7410 set dummy $ac_prog; ac_word=$2
7411 echo "$as_me:$LINENO: checking for $ac_word" >&5
7412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7413 if test "${ac_cv_path_SHPROG+set}" = set; then
7414 echo $ECHO_N "(cached) $ECHO_C" >&6
7418 ac_cv_path_SHPROG="$SHPROG" # Let the user override the test with a path.
7421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7425 test -z "$as_dir" && as_dir=.
7426 for ac_exec_ext in '' $ac_executable_extensions; do
7427 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7428 ac_cv_path_SHPROG="$as_dir/$ac_word$ac_exec_ext"
7429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7438 SHPROG=$ac_cv_path_SHPROG
7440 if test -n "$SHPROG"; then
7441 echo "$as_me:$LINENO: result: $SHPROG" >&5
7442 echo "${ECHO_T}$SHPROG" >&6
7444 echo "$as_me:$LINENO: result: no" >&5
7445 echo "${ECHO_T}no" >&6
7448 test -n "$SHPROG" && break
7450 test -n "$SHPROG" || SHPROG="/bin/sh"
7453 echo "$as_me:$LINENO: checking for posix non-blocking" >&5
7454 echo $ECHO_N "checking for posix non-blocking... $ECHO_C" >&6
7455 if test "${unet_cv_sys_nonblocking_posix+set}" = set; then
7456 echo $ECHO_N "(cached) $ECHO_C" >&6
7458 if test "$cross_compiling" = yes; then
7459 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7460 See \`config.log' for more details." >&5
7461 echo "$as_me: error: cannot run test program while cross compiling
7462 See \`config.log' for more details." >&2;}
7463 { (exit 1); exit 1; }; }
7465 cat >conftest.$ac_ext <<_ACEOF
7468 cat confdefs.h >>conftest.$ac_ext
7469 cat >>conftest.$ac_ext <<_ACEOF
7470 /* end confdefs.h. */
7471 #include <sys/types.h>
7472 #include <sys/socket.h>
7474 #include <sys/ioctl.h>
7475 #include <sys/file.h>
7477 $ac_cv_type_signal alarmed() { exit(1); }
7482 size_t l = sizeof(x);
7483 int f = socket(AF_INET, SOCK_DGRAM, 0);
7484 if (f >= 0 && !(fcntl(f, F_SETFL, O_NONBLOCK)))
7486 signal(SIGALRM, alarmed);
7488 recvfrom(f, b, 12, 0, &x, &l);
7495 rm -f conftest$ac_exeext
7496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7497 (eval $ac_link) 2>&5
7499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505 (exit $ac_status); }; }; then
7506 unet_cv_sys_nonblocking_posix=yes
7508 echo "$as_me: program exited with status $ac_status" >&5
7509 echo "$as_me: failed program was:" >&5
7510 sed 's/^/| /' conftest.$ac_ext >&5
7513 unet_cv_sys_nonblocking_posix=no
7515 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7518 echo "$as_me:$LINENO: result: $unet_cv_sys_nonblocking_posix" >&5
7519 echo "${ECHO_T}$unet_cv_sys_nonblocking_posix" >&6
7520 if test $unet_cv_sys_nonblocking_posix = yes; then
7521 cat >>confdefs.h <<\_ACEOF
7522 #define NBLOCK_POSIX 1
7526 echo "$as_me:$LINENO: checking for bsd non-blocking" >&5
7527 echo $ECHO_N "checking for bsd non-blocking... $ECHO_C" >&6
7528 if test "${unet_cv_sys_nonblocking_bsd+set}" = set; then
7529 echo $ECHO_N "(cached) $ECHO_C" >&6
7531 if test "$cross_compiling" = yes; then
7532 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7533 See \`config.log' for more details." >&5
7534 echo "$as_me: error: cannot run test program while cross compiling
7535 See \`config.log' for more details." >&2;}
7536 { (exit 1); exit 1; }; }
7538 cat >conftest.$ac_ext <<_ACEOF
7541 cat confdefs.h >>conftest.$ac_ext
7542 cat >>conftest.$ac_ext <<_ACEOF
7543 /* end confdefs.h. */
7544 #include <sys/types.h>
7545 #include <sys/socket.h>
7547 #include <sys/ioctl.h>
7548 #include <sys/file.h>
7550 $ac_cv_type_signal alarmed() { exit(1); }
7555 size_t l = sizeof(x);
7556 int f = socket(AF_INET, SOCK_DGRAM, 0);
7557 if (f >= 0 && !(fcntl(f, F_SETFL, O_NDELAY)))
7559 signal(SIGALRM, alarmed);
7561 recvfrom(f, b, 12, 0, &x, &l);
7568 rm -f conftest$ac_exeext
7569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7570 (eval $ac_link) 2>&5
7572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578 (exit $ac_status); }; }; then
7579 unet_cv_sys_nonblocking_bsd=yes
7581 echo "$as_me: program exited with status $ac_status" >&5
7582 echo "$as_me: failed program was:" >&5
7583 sed 's/^/| /' conftest.$ac_ext >&5
7586 unet_cv_sys_nonblocking_bsd=no
7588 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7591 echo "$as_me:$LINENO: result: $unet_cv_sys_nonblocking_bsd" >&5
7592 echo "${ECHO_T}$unet_cv_sys_nonblocking_bsd" >&6
7593 if test $unet_cv_sys_nonblocking_bsd = yes; then
7594 cat >>confdefs.h <<\_ACEOF
7595 #define NBLOCK_BSD 1
7599 cat >>confdefs.h <<\_ACEOF
7600 #define NBLOCK_SYSV 1
7605 echo "$as_me:$LINENO: checking for posix signals" >&5
7606 echo $ECHO_N "checking for posix signals... $ECHO_C" >&6
7607 if test "${unet_cv_sys_signal_posix+set}" = set; then
7608 echo $ECHO_N "(cached) $ECHO_C" >&6
7610 cat >conftest.$ac_ext <<_ACEOF
7613 cat confdefs.h >>conftest.$ac_ext
7614 cat >>conftest.$ac_ext <<_ACEOF
7615 /* end confdefs.h. */
7620 sigaction(SIGTERM, (struct sigaction *)0L, (struct sigaction *)0L)
7625 rm -f conftest.$ac_objext
7626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7627 (eval $ac_compile) 2>conftest.er1
7629 grep -v '^ *+' conftest.er1 >conftest.err
7631 cat conftest.err >&5
7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633 (exit $ac_status); } &&
7634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639 (exit $ac_status); }; } &&
7640 { ac_try='test -s conftest.$ac_objext'
7641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645 (exit $ac_status); }; }; then
7646 unet_cv_sys_signal_posix=yes
7648 echo "$as_me: failed program was:" >&5
7649 sed 's/^/| /' conftest.$ac_ext >&5
7651 unet_cv_sys_signal_posix=no
7653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7655 echo "$as_me:$LINENO: result: $unet_cv_sys_signal_posix" >&5
7656 echo "${ECHO_T}$unet_cv_sys_signal_posix" >&6
7657 if test $unet_cv_sys_signal_posix = yes; then
7658 cat >>confdefs.h <<\_ACEOF
7659 #define POSIX_SIGNALS 1
7663 echo "$as_me:$LINENO: checking for bsd reliable signals" >&5
7664 echo $ECHO_N "checking for bsd reliable signals... $ECHO_C" >&6
7665 if test "${unet_cv_sys_signal_bsd+set}" = set; then
7666 echo $ECHO_N "(cached) $ECHO_C" >&6
7668 if test "$cross_compiling" = yes; then
7669 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7670 See \`config.log' for more details." >&5
7671 echo "$as_me: error: cannot run test program while cross compiling
7672 See \`config.log' for more details." >&2;}
7673 { (exit 1); exit 1; }; }
7675 cat >conftest.$ac_ext <<_ACEOF
7678 cat confdefs.h >>conftest.$ac_ext
7679 cat >>conftest.$ac_ext <<_ACEOF
7680 /* end confdefs.h. */
7683 $ac_cv_type_signal handler()
7687 kill(getpid(), SIGTERM);
7692 signal(SIGTERM, handler);
7693 kill(getpid(), SIGTERM);
7697 rm -f conftest$ac_exeext
7698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7699 (eval $ac_link) 2>&5
7701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7707 (exit $ac_status); }; }; then
7708 unet_cv_sys_signal_bsd=yes
7710 echo "$as_me: program exited with status $ac_status" >&5
7711 echo "$as_me: failed program was:" >&5
7712 sed 's/^/| /' conftest.$ac_ext >&5
7715 unet_cv_sys_signal_bsd=no
7717 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7720 echo "$as_me:$LINENO: result: $unet_cv_sys_signal_bsd" >&5
7721 echo "${ECHO_T}$unet_cv_sys_signal_bsd" >&6
7722 if test $unet_cv_sys_signal_bsd = yes; then
7723 cat >>confdefs.h <<\_ACEOF
7724 #define BSD_RELIABLE_SIGNALS 1
7728 cat >>confdefs.h <<\_ACEOF
7729 #define SYSV_UNRELIABLE_SIGNALS 1
7735 echo "$as_me:$LINENO: checking if the compiler understands -pipe" >&5
7736 echo $ECHO_N "checking if the compiler understands -pipe... $ECHO_C" >&6
7737 unet_cv_pipe_flags="$ac_cv_c_compiler_gnu"
7738 if test "$ac_cv_c_compiler_gnu" = no; then
7740 CFLAGS="$CFLAGS -pipe"
7741 cat >conftest.$ac_ext <<_ACEOF
7744 cat confdefs.h >>conftest.$ac_ext
7745 cat >>conftest.$ac_ext <<_ACEOF
7746 /* end confdefs.h. */
7756 rm -f conftest.$ac_objext
7757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7758 (eval $ac_compile) 2>conftest.er1
7760 grep -v '^ *+' conftest.er1 >conftest.err
7762 cat conftest.err >&5
7763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7764 (exit $ac_status); } &&
7765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770 (exit $ac_status); }; } &&
7771 { ac_try='test -s conftest.$ac_objext'
7772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776 (exit $ac_status); }; }; then
7777 unet_cv_pipe_flags=yes
7779 echo "$as_me: failed program was:" >&5
7780 sed 's/^/| /' conftest.$ac_ext >&5
7783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7786 echo "$as_me:$LINENO: result: $unet_cv_pipe_flags" >&5
7787 echo "${ECHO_T}$unet_cv_pipe_flags" >&6
7788 if test "$unet_cv_pipe_flags" = yes ; then
7789 x=`echo $CFLAGS | grep 'pipe' 2>/dev/null`
7790 if test "$x" = "" ; then
7791 CFLAGS="$CFLAGS -pipe"
7796 echo "$as_me:$LINENO: checking for OS-dependent information" >&5
7797 echo $ECHO_N "checking for OS-dependent information... $ECHO_C" >&6
7800 echo "$as_me:$LINENO: result: Linux ($host) found." >&5
7801 echo "${ECHO_T}Linux ($host) found." >&6
7802 unet_poll_syscall=yes
7807 echo "$as_me:$LINENO: result: Solaris ($host) found." >&5
7808 echo "${ECHO_T}Solaris ($host) found." >&6
7809 if test x"$ac_cv_header_poll_h" = xyes; then
7810 unet_poll_syscall=yes
7812 unet_poll_syscall=no
7814 OSDEP_C=os_solaris.c
7818 echo "$as_me:$LINENO: result: Solaris ($host) found." >&5
7819 echo "${ECHO_T}Solaris ($host) found." >&6
7820 unet_poll_syscall=no
7821 OSDEP_C=os_solaris.c
7825 echo "$as_me:$LINENO: result: OpenBSD ($host) found." >&5
7826 echo "${ECHO_T}OpenBSD ($host) found." >&6
7827 if test x"$ac_cv_header_poll_h" = xyes; then
7828 unet_poll_syscall=yes
7830 unet_poll_syscall=no
7832 OSDEP_C=os_openbsd.c
7836 echo "$as_me:$LINENO: result: Generic BSD ($host) found." >&5
7837 echo "${ECHO_T}Generic BSD ($host) found." >&6
7838 if test x"$ac_cv_header_poll_h" = xyes; then
7839 unet_poll_syscall=yes
7841 unet_poll_syscall=no
7847 echo "$as_me:$LINENO: result: Darwin (Mac OS X) ($host) found." >&5
7848 echo "${ECHO_T}Darwin (Mac OS X) ($host) found." >&6
7849 unet_poll_syscall=no
7854 echo "$as_me:$LINENO: result: Unknown system type $host found." >&5
7855 echo "${ECHO_T}Unknown system type $host found." >&6
7856 { echo "$as_me:$LINENO: WARNING: Unknown OS type; using generic routines." >&5
7857 echo "$as_me: WARNING: Unknown OS type; using generic routines." >&2;}
7858 unet_poll_syscall=no
7859 OSDEP_C=os_generic.c
7864 echo "$as_me:$LINENO: checking whether to enable use of poll()" >&5
7865 echo $ECHO_N "checking whether to enable use of poll()... $ECHO_C" >&6
7866 # Check whether --enable-poll or --disable-poll was given.
7867 if test "${enable_poll+set}" = set; then
7868 enableval="$enable_poll"
7869 unet_cv_enable_poll=$enable_poll
7871 if test "${unet_cv_enable_poll+set}" = set; then
7872 echo $ECHO_N "(cached) $ECHO_C" >&6
7874 unet_cv_enable_poll=$unet_poll_syscall
7879 # Force poll to be disabled if there is no poll.h
7880 if test x"$ac_cv_header_poll_h" != xyes; then
7881 unet_cv_enable_poll=no
7884 echo "$as_me:$LINENO: result: $unet_cv_enable_poll" >&5
7885 echo "${ECHO_T}$unet_cv_enable_poll" >&6
7887 if test x"$unet_cv_enable_poll" = xyes; then
7889 cat >>confdefs.h <<\_ACEOF
7893 ENGINE_C=engine_poll.c
7895 ENGINE_C=engine_select.c
7899 echo "$as_me:$LINENO: checking whether to enable debug mode" >&5
7900 echo $ECHO_N "checking whether to enable debug mode... $ECHO_C" >&6
7901 # Check whether --enable-debug or --disable-debug was given.
7902 if test "${enable_debug+set}" = set; then
7903 enableval="$enable_debug"
7904 unet_cv_enable_debug=$enable_debug
7906 if test "${unet_cv_enable_debug+set}" = set; then
7907 echo $ECHO_N "(cached) $ECHO_C" >&6
7909 unet_cv_enable_debug=no
7913 echo "$as_me:$LINENO: result: $unet_cv_enable_debug" >&5
7914 echo "${ECHO_T}$unet_cv_enable_debug" >&6
7916 if test x"$unet_cv_enable_debug" = xyes; then
7918 cat >>confdefs.h <<\_ACEOF
7924 echo "$as_me:$LINENO: checking whether to enable leak detection" >&5
7925 echo $ECHO_N "checking whether to enable leak detection... $ECHO_C" >&6
7927 # Check whether --with-leak-detect or --without-leak-detect was given.
7928 if test "${with_leak_detect+set}" = set; then
7929 withval="$with_leak_detect"
7930 unet_cv_with_leak_detect=$with_leak_detect
7932 if test "${unet_cv_with_leak_detect+set}" = set; then
7933 echo $ECHO_N "(cached) $ECHO_C" >&6
7935 unet_cv_with_leak_detect=no
7939 echo "$as_me:$LINENO: result: $unet_cv_enable_leak_detect" >&5
7940 echo "${ECHO_T}$unet_cv_enable_leak_detect" >&6
7942 if test x"$unet_cv_with_leak_detect" != xno; then
7944 CFLAGS="-DMDEBUG $CFLAGS"
7945 if test x"$unet_cv_with_leak_detect" != xyes; then
7946 LIBS="-L$unet_cv_with_leak_detect $LIBS"
7950 echo "$as_me:$LINENO: checking whether to enable asserts" >&5
7951 echo $ECHO_N "checking whether to enable asserts... $ECHO_C" >&6
7952 # Check whether --enable-asserts or --disable-asserts was given.
7953 if test "${enable_asserts+set}" = set; then
7954 enableval="$enable_asserts"
7955 unet_cv_enable_asserts=$enable_asserts
7957 if test "${unet_cv_enable_asserts+set}" = set; then
7958 echo $ECHO_N "(cached) $ECHO_C" >&6
7960 unet_cv_enable_asserts=yes
7964 echo "$as_me:$LINENO: result: $unet_cv_enable_asserts" >&5
7965 echo "${ECHO_T}$unet_cv_enable_asserts" >&6
7967 if test x"$unet_cv_enable_asserts" = xno; then
7969 cat >>confdefs.h <<\_ACEOF
7975 echo "$as_me:$LINENO: checking whether to enable debugging symbols" >&5
7976 echo $ECHO_N "checking whether to enable debugging symbols... $ECHO_C" >&6
7977 # Check whether --enable-symbols or --disable-symbols was given.
7978 if test "${enable_symbols+set}" = set; then
7979 enableval="$enable_symbols"
7980 unet_cv_enable_symbols=$enable_symbols
7982 if test "${unet_cv_enable_symbols+set}" = set; then
7983 echo $ECHO_N "(cached) $ECHO_C" >&6
7985 unet_cv_enable_symbols=yes
7989 echo "$as_me:$LINENO: result: $unet_cv_enable_symbols" >&5
7990 echo "${ECHO_T}$unet_cv_enable_symbols" >&6
7992 if test x"$unet_cv_enable_symbols" = xyes; then
7996 echo "$as_me:$LINENO: checking whether to enable profiling support (gprof)" >&5
7997 echo $ECHO_N "checking whether to enable profiling support (gprof)... $ECHO_C" >&6
7998 # Check whether --enable-profile or --disable-profile was given.
7999 if test "${enable_profile+set}" = set; then
8000 enableval="$enable_profile"
8001 unet_cv_enable_profile=$enable_profile
8003 if test "${unet_cv_enable_profile+set}" = set; then
8004 echo $ECHO_N "(cached) $ECHO_C" >&6
8006 unet_cv_enable_profile=no
8010 echo "$as_me:$LINENO: result: $unet_cv_enable_profile" >&5
8011 echo "${ECHO_T}$unet_cv_enable_profile" >&6
8013 if test x"$unet_cv_enable_profile" = xyes; then
8014 CFLAGS="-pg $CFLAGS"
8017 echo "$as_me:$LINENO: checking whether to enable pedantic compiler warnings" >&5
8018 echo $ECHO_N "checking whether to enable pedantic compiler warnings... $ECHO_C" >&6
8019 # Check whether --enable-pedantic or --disable-pedantic was given.
8020 if test "${enable_pedantic+set}" = set; then
8021 enableval="$enable_pedantic"
8022 unet_cv_enable_pedantic=$enable_pedantic
8024 if test "${unet_cv_enable_pedantic+set}" = set; then
8025 echo $ECHO_N "(cached) $ECHO_C" >&6
8027 unet_cv_enable_pedantic=no
8031 echo "$as_me:$LINENO: result: $unet_cv_enable_pedantic" >&5
8032 echo "${ECHO_T}$unet_cv_enable_pedantic" >&6
8034 if test x"$unet_cv_enable_pedantic" = xyes; then
8035 CFLAGS="-pedantic $CFLAGS"
8038 echo "$as_me:$LINENO: checking whether to enable compiler warnings" >&5
8039 echo $ECHO_N "checking whether to enable compiler warnings... $ECHO_C" >&6
8040 # Check whether --enable-warnings or --disable-warnings was given.
8041 if test "${enable_warnings+set}" = set; then
8042 enableval="$enable_warnings"
8043 unet_cv_enable_warnings=$enable_warnings
8045 if test "${unet_cv_enable_warnings+set}" = set; then
8046 echo $ECHO_N "(cached) $ECHO_C" >&6
8048 unet_cv_enable_warnings=no
8052 echo "$as_me:$LINENO: result: $unet_cv_enable_warnings" >&5
8053 echo "${ECHO_T}$unet_cv_enable_warnings" >&6
8055 if test x"$unet_cv_enable_warnings" = xyes; then
8056 CFLAGS="-Wall $CFLAGS"
8059 echo "$as_me:$LINENO: checking whether to enable inlining for a few critical functions" >&5
8060 echo $ECHO_N "checking whether to enable inlining for a few critical functions... $ECHO_C" >&6
8061 # Check whether --enable-inlines or --disable-inlines was given.
8062 if test "${enable_inlines+set}" = set; then
8063 enableval="$enable_inlines"
8064 unet_cv_enable_inlines=$enable_inlines
8066 if test "${unet_cv_enable_inlines+set}" = set; then
8067 echo $ECHO_N "(cached) $ECHO_C" >&6
8069 unet_cv_enable_inlines=yes
8073 echo "$as_me:$LINENO: result: $unet_cv_enable_inlines" >&5
8074 echo "${ECHO_T}$unet_cv_enable_inlines" >&6
8076 if test x"$unet_cv_enable_inlines" = xyes; then
8078 cat >>confdefs.h <<\_ACEOF
8084 echo "$as_me:$LINENO: checking whether to enable the /dev/poll event engine" >&5
8085 echo $ECHO_N "checking whether to enable the /dev/poll event engine... $ECHO_C" >&6
8086 # Check whether --enable-devpoll or --disable-devpoll was given.
8087 if test "${enable_devpoll+set}" = set; then
8088 enableval="$enable_devpoll"
8089 unet_cv_enable_devpoll=$enable_devpoll
8091 if test "${unet_cv_enable_devpoll+set}" = set; then
8092 echo $ECHO_N "(cached) $ECHO_C" >&6
8094 unet_cv_enable_devpoll=yes
8099 if test x"$ac_cv_header_sys_devpoll_h" = xno; then
8100 unet_cv_enable_devpoll=no
8103 echo "$as_me:$LINENO: result: $unet_cv_enable_devpoll" >&5
8104 echo "${ECHO_T}$unet_cv_enable_devpoll" >&6
8106 if test x"$unet_cv_enable_devpoll" != xno; then
8108 cat >>confdefs.h <<\_ACEOF
8112 ENGINE_C="engine_devpoll.c $ENGINE_C"
8115 echo "$as_me:$LINENO: checking whether to enable the kqueue event engine" >&5
8116 echo $ECHO_N "checking whether to enable the kqueue event engine... $ECHO_C" >&6
8117 # Check whether --enable-kqueue or --disable-kqueue was given.
8118 if test "${enable_kqueue+set}" = set; then
8119 enableval="$enable_kqueue"
8120 unet_cv_enable_kqueue=$enable_kqueue
8122 if test "${unet_cv_enable_kqueue+set}" = set; then
8123 echo $ECHO_N "(cached) $ECHO_C" >&6
8125 unet_cv_enable_kqueue=yes
8130 if test x"$ac_cv_header_sys_event_h" = xno -o x"$ac_cv_func_kqueue" = xno; then
8131 unet_cv_enable_kqueue=no
8134 echo "$as_me:$LINENO: result: $unet_cv_enable_kqueue" >&5
8135 echo "${ECHO_T}$unet_cv_enable_kqueue" >&6
8137 if test x"$unet_cv_enable_kqueue" != xno; then
8139 cat >>confdefs.h <<\_ACEOF
8143 ENGINE_C="engine_kqueue.c $ENGINE_C"
8146 echo "$as_me:$LINENO: checking whether to enable the epoll event engine" >&5
8147 echo $ECHO_N "checking whether to enable the epoll event engine... $ECHO_C" >&6
8148 # Check whether --enable-epoll or --disable-epoll was given.
8149 if test "${enable_epoll+set}" = set; then
8150 enableval="$enable_epoll"
8151 unet_cv_enable_epoll=$enable_epoll
8153 if test "${unet_cv_enable_epoll+set}" = set; then
8154 echo $ECHO_N "(cached) $ECHO_C" >&6
8156 unet_cv_enable_epoll=yes
8161 if test x"$ac_cv_header_sys_epoll_h" = xno -o x"$ac_cv_func_epoll" = xno; then
8162 unet_cv_enable_epoll=no
8165 echo "$as_me:$LINENO: result: $unet_cv_enable_epoll" >&5
8166 echo "${ECHO_T}$unet_cv_enable_epoll" >&6
8168 if test x"$unet_cv_enable_epoll" != xno; then
8169 echo "$as_me:$LINENO: checking whether epoll functions are properly defined" >&5
8170 echo $ECHO_N "checking whether epoll functions are properly defined... $ECHO_C" >&6
8171 cat >conftest.$ac_ext <<_ACEOF
8174 cat confdefs.h >>conftest.$ac_ext
8175 cat >>conftest.$ac_ext <<_ACEOF
8176 /* end confdefs.h. */
8177 #include <sys/epoll.h>
8186 rm -f conftest.$ac_objext conftest$ac_exeext
8187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8188 (eval $ac_link) 2>conftest.er1
8190 grep -v '^ *+' conftest.er1 >conftest.err
8192 cat conftest.err >&5
8193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194 (exit $ac_status); } &&
8195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200 (exit $ac_status); }; } &&
8201 { ac_try='test -s conftest$ac_exeext'
8202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206 (exit $ac_status); }; }; then
8207 echo "$as_me:$LINENO: result: yes" >&5
8208 echo "${ECHO_T}yes" >&6
8210 echo "$as_me: failed program was:" >&5
8211 sed 's/^/| /' conftest.$ac_ext >&5
8213 echo "$as_me:$LINENO: result: no" >&5
8214 echo "${ECHO_T}no" >&6
8216 cat >>confdefs.h <<\_ACEOF
8217 #define EPOLL_NEED_BODY
8221 rm -f conftest.err conftest.$ac_objext \
8222 conftest$ac_exeext conftest.$ac_ext
8224 cat >>confdefs.h <<\_ACEOF
8228 ENGINE_C="engine_epoll.c $ENGINE_C"
8231 echo "$as_me:$LINENO: checking whether to enable the adns resolver engine" >&5
8232 echo $ECHO_N "checking whether to enable the adns resolver engine... $ECHO_C" >&6
8233 # Check whether --enable-adns or --disable-adns was given.
8234 if test "${enable_adns+set}" = set; then
8235 enableval="$enable_adns"
8236 unet_cv_enable_adns=$enable_adns
8238 if test "${unet_cv_enable_adns+set}" = set; then
8239 echo $ECHO_N "(cached) $ECHO_C" >&6
8241 unet_cv_enable_adns=yes
8246 echo "$as_me:$LINENO: result: $unet_cv_enable_adns" >&5
8247 echo "${ECHO_T}$unet_cv_enable_adns" >&6
8249 if test x"$unet_cv_enable_adns" != xno; then
8251 cat >>confdefs.h <<\_ACEOF
8257 subdirs="$subdirs adns"
8260 LIBS="../adns/src/libadns.a $LIBS"
8263 RES_C="res_libresolv.c"
8266 echo "$as_me:$LINENO: checking for library containing res_mkquery" >&5
8267 echo $ECHO_N "checking for library containing res_mkquery... $ECHO_C" >&6
8268 if test "${ac_cv_search_res_mkquery+set}" = set; then
8269 echo $ECHO_N "(cached) $ECHO_C" >&6
8271 ac_func_search_save_LIBS=$LIBS
8272 ac_cv_search_res_mkquery=no
8273 cat >conftest.$ac_ext <<_ACEOF
8276 cat confdefs.h >>conftest.$ac_ext
8277 cat >>conftest.$ac_ext <<_ACEOF
8278 /* end confdefs.h. */
8280 /* Override any gcc2 internal prototype to avoid an error. */
8284 /* We use char because int might match the return type of a gcc2
8285 builtin and then its argument prototype would still apply. */
8286 char res_mkquery ();
8295 rm -f conftest.$ac_objext conftest$ac_exeext
8296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8297 (eval $ac_link) 2>conftest.er1
8299 grep -v '^ *+' conftest.er1 >conftest.err
8301 cat conftest.err >&5
8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); } &&
8304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309 (exit $ac_status); }; } &&
8310 { ac_try='test -s conftest$ac_exeext'
8311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315 (exit $ac_status); }; }; then
8316 ac_cv_search_res_mkquery="none required"
8318 echo "$as_me: failed program was:" >&5
8319 sed 's/^/| /' conftest.$ac_ext >&5
8322 rm -f conftest.err conftest.$ac_objext \
8323 conftest$ac_exeext conftest.$ac_ext
8324 if test "$ac_cv_search_res_mkquery" = no; then
8325 for ac_lib in resolv; do
8326 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8327 cat >conftest.$ac_ext <<_ACEOF
8330 cat confdefs.h >>conftest.$ac_ext
8331 cat >>conftest.$ac_ext <<_ACEOF
8332 /* end confdefs.h. */
8334 /* Override any gcc2 internal prototype to avoid an error. */
8338 /* We use char because int might match the return type of a gcc2
8339 builtin and then its argument prototype would still apply. */
8340 char res_mkquery ();
8349 rm -f conftest.$ac_objext conftest$ac_exeext
8350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8351 (eval $ac_link) 2>conftest.er1
8353 grep -v '^ *+' conftest.er1 >conftest.err
8355 cat conftest.err >&5
8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357 (exit $ac_status); } &&
8358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363 (exit $ac_status); }; } &&
8364 { ac_try='test -s conftest$ac_exeext'
8365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369 (exit $ac_status); }; }; then
8370 ac_cv_search_res_mkquery="-l$ac_lib"
8373 echo "$as_me: failed program was:" >&5
8374 sed 's/^/| /' conftest.$ac_ext >&5
8377 rm -f conftest.err conftest.$ac_objext \
8378 conftest$ac_exeext conftest.$ac_ext
8381 LIBS=$ac_func_search_save_LIBS
8383 echo "$as_me:$LINENO: result: $ac_cv_search_res_mkquery" >&5
8384 echo "${ECHO_T}$ac_cv_search_res_mkquery" >&6
8385 if test "$ac_cv_search_res_mkquery" != no; then
8386 test "$ac_cv_search_res_mkquery" = "none required" || LIBS="$ac_cv_search_res_mkquery $LIBS"
8389 { { echo "$as_me:$LINENO: error: Unable to find library containing res_mkquery()" >&5
8390 echo "$as_me: error: Unable to find library containing res_mkquery()" >&2;}
8391 { (exit 1); exit 1; }; }
8398 echo "$as_me:$LINENO: checking what name to give the symlink" >&5
8399 echo $ECHO_N "checking what name to give the symlink... $ECHO_C" >&6
8401 # Check whether --with-symlink or --without-symlink was given.
8402 if test "${with_symlink+set}" = set; then
8403 withval="$with_symlink"
8404 unet_cv_with_symlink=$with_symlink
8406 if test "${unet_cv_with_symlink+set}" = set; then
8407 echo $ECHO_N "(cached) $ECHO_C" >&6
8409 unet_cv_with_symlink="ircd"
8414 if test x"$unet_cv_with_symlink" = xyes; then
8415 unet_cv_with_symlink="ircd"
8418 echo "$as_me:$LINENO: result: $unet_cv_with_symlink" >&5
8419 echo "${ECHO_T}$unet_cv_with_symlink" >&6
8421 if test x"$unet_cv_with_symlink" = xno; then
8422 INSTALL_RULE=install-no-symlink
8425 INSTALL_RULE=install-with-symlink
8426 SYMLINK=$unet_cv_with_symlink
8431 echo "$as_me:$LINENO: checking what permissions to set on the installed binary" >&5
8432 echo $ECHO_N "checking what permissions to set on the installed binary... $ECHO_C" >&6
8434 # Check whether --with-mode or --without-mode was given.
8435 if test "${with_mode+set}" = set; then
8436 withval="$with_mode"
8437 unet_cv_with_mode=$with_mode
8439 if test "${unet_cv_with_mode+set}" = set; then
8440 echo $ECHO_N "(cached) $ECHO_C" >&6
8442 unet_cv_with_mode=711
8447 if test x"$unet_cv_with_mode" = xyes -o x"$unet_cv_with_mode" = xno; then
8448 unet_cv_with_mode=711
8451 echo "$as_me:$LINENO: result: $unet_cv_with_mode" >&5
8452 echo "${ECHO_T}$unet_cv_with_mode" >&6
8454 IRCDMODE=$unet_cv_with_mode
8457 unet_uid=`id | sed -e 's/.*uid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
8458 echo "$as_me:$LINENO: checking which user should own the installed binary" >&5
8459 echo $ECHO_N "checking which user should own the installed binary... $ECHO_C" >&6
8461 # Check whether --with-owner or --without-owner was given.
8462 if test "${with_owner+set}" = set; then
8463 withval="$with_owner"
8464 unet_cv_with_owner=$with_owner
8466 if test "${unet_cv_with_owner+set}" = set; then
8467 echo $ECHO_N "(cached) $ECHO_C" >&6
8469 unet_cv_with_owner=$unet_uid
8474 if test x"$unet_cv_with_owner" = xyes -o x"$unet_cv_with_owner" = xno; then
8475 unet_cv_with_owner=$unet_uid
8478 echo "$as_me:$LINENO: result: $unet_cv_with_owner" >&5
8479 echo "${ECHO_T}$unet_cv_with_owner" >&6
8481 IRCDOWN=$unet_cv_with_owner
8484 unet_gid=`id | sed -e 's/.*gid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
8485 echo "$as_me:$LINENO: checking which group should own the installed binary" >&5
8486 echo $ECHO_N "checking which group should own the installed binary... $ECHO_C" >&6
8488 # Check whether --with-group or --without-group was given.
8489 if test "${with_group+set}" = set; then
8490 withval="$with_group"
8491 unet_cv_with_group=$with_group
8493 if test "${unet_cv_with_group+set}" = set; then
8494 echo $ECHO_N "(cached) $ECHO_C" >&6
8496 unet_cv_with_group=$unet_gid
8501 if test x"$unet_cv_with_group" = xyes -o x"$unet_cv_with_group" = xno; then
8502 unet_cv_with_group=$unet_gid
8505 echo "$as_me:$LINENO: result: $unet_cv_with_group" >&5
8506 echo "${ECHO_T}$unet_cv_with_group" >&6
8508 IRCDGRP=$unet_cv_with_group
8512 if test -f /etc/resolv.conf; then
8513 unet_domain=`awk '/^domain/ { print $2; exit }' /etc/resolv.conf`
8514 if test x"$unet_domain" = x; then
8515 unet_domain=`awk '/^search/ { print $2; exit }' /etc/resolv.conf`
8518 echo "$as_me:$LINENO: checking for site domain name" >&5
8519 echo $ECHO_N "checking for site domain name... $ECHO_C" >&6
8521 # Check whether --with-domain or --without-domain was given.
8522 if test "${with_domain+set}" = set; then
8523 withval="$with_domain"
8524 unet_cv_with_domain=$with_domain
8526 if test "${unet_cv_with_domain+set}" = set; then
8527 echo $ECHO_N "(cached) $ECHO_C" >&6
8529 unet_cv_with_domain=$unet_domain
8534 if test x"$unet_cv_with_domain" = xyes -o x"$unet_cv_with_domain" = xno; then
8535 unet_cv_with_domain=$unet_domain
8537 if test x"$unet_cv_with_domain" = xno; then
8538 { { echo "$as_me:$LINENO: error: Unable to determine server DNS domain; use --with-domain to set it" >&5
8539 echo "$as_me: error: Unable to determine server DNS domain; use --with-domain to set it" >&2;}
8540 { (exit 1); exit 1; }; }
8543 echo "$as_me:$LINENO: result: $unet_cv_with_domain" >&5
8544 echo "${ECHO_T}$unet_cv_with_domain" >&6
8547 cat >>confdefs.h <<_ACEOF
8548 #define DOMAINNAME "*$unet_cv_with_domain"
8552 echo "$as_me:$LINENO: checking if chroot operation is desired" >&5
8553 echo $ECHO_N "checking if chroot operation is desired... $ECHO_C" >&6
8555 # Check whether --with-chroot or --without-chroot was given.
8556 if test "${with_chroot+set}" = set; then
8557 withval="$with_chroot"
8558 unet_cv_with_chroot=$with_chroot
8560 if test "${unet_cv_with_chroot+set}" = set; then
8561 echo $ECHO_N "(cached) $ECHO_C" >&6
8563 unet_cv_with_chroot=no
8568 if test x"$unet_cv_with_chroot" = xyes; then
8569 { { echo "$as_me:$LINENO: error: --with-chroot given with no directory. See doc/readme.chroot." >&5
8570 echo "$as_me: error: --with-chroot given with no directory. See doc/readme.chroot." >&2;}
8571 { (exit 1); exit 1; }; }
8574 # Ensure there are no trailing /'s to mess us up
8575 unet_cv_with_chroot=`echo "$unet_cv_with_chroot" | sed 's%/*$%%'`
8577 echo "$as_me:$LINENO: result: $unet_cv_with_chroot" >&5
8578 echo "${ECHO_T}$unet_cv_with_chroot" >&6
8580 # Deal with the annoying value "NONE" here
8581 unet_save_prefix=$prefix
8582 if test x"$prefix" = xNONE; then
8583 prefix=$ac_default_prefix
8588 unet_save_exec_prefix=$exec_prefix
8589 if test x"$exec_prefix" = xNONE; then
8592 exec_prefix=$exec_prefix
8595 # Obtain the actual interesting directories
8596 unet_bindir=`eval echo "$bindir"`
8597 unet_libdir=`eval echo "$libdir"`
8599 # Restore the original settings of $prefix and $exec_prefix
8600 prefix=$unet_save_prefix
8601 exec_prefix=$unet_save_exec_prefix
8603 echo "$as_me:$LINENO: checking where the binary will be for /restart" >&5
8604 echo $ECHO_N "checking where the binary will be for /restart... $ECHO_C" >&6
8605 if test x"$unet_cv_with_symlink" = xno; then
8606 unet_spath="$unet_bindir/ircd"
8608 unet_spath="$unet_bindir/$unet_cv_with_symlink"
8610 echo "$as_me:$LINENO: result: $unet_spath" >&5
8611 echo "${ECHO_T}$unet_spath" >&6
8613 if test x"$unet_cv_with_chroot" != xno; then
8614 if echo "$unet_spath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
8615 unet_spath=`echo "$unet_spath" | sed "s%^$unet_cv_with_chroot%%"`
8617 { echo "$as_me:$LINENO: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&5
8618 echo "$as_me: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&2;}
8623 cat >>confdefs.h <<_ACEOF
8624 #define SPATH "$unet_spath"
8628 echo "$as_me:$LINENO: checking what the data directory should be" >&5
8629 echo $ECHO_N "checking what the data directory should be... $ECHO_C" >&6
8631 # Check whether --with-dpath or --without-dpath was given.
8632 if test "${with_dpath+set}" = set; then
8633 withval="$with_dpath"
8634 unet_cv_with_dpath=$with_dpath
8636 if test "${unet_cv_with_dpath+set}" = set; then
8637 echo $ECHO_N "(cached) $ECHO_C" >&6
8639 unet_cv_with_dpath=$unet_libdir
8644 if test x"$unet_cv_with_dpath" = xyes -o x"$unet_cv_with_dpath" = xno; then
8645 unet_cv_with_dpath=$unet_libdir
8648 # Ensure there are no trailing /'s to mess us up
8649 unet_cv_with_dpath=`echo "$unet_cv_with_dpath" | sed 's%/*$%%'`
8651 echo "$as_me:$LINENO: result: $unet_cv_with_dpath" >&5
8652 echo "${ECHO_T}$unet_cv_with_dpath" >&6
8654 if test x"$unet_cv_with_chroot" != xno; then
8655 if echo "$unet_cv_with_dpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
8656 unet_dpath=`echo "$unet_cv_with_dpath" | sed "s%^$unet_cv_with_chroot%%"`
8658 { { echo "$as_me:$LINENO: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&5
8659 echo "$as_me: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&2;}
8660 { (exit 1); exit 1; }; }
8663 unet_dpath=$unet_cv_with_dpath
8667 cat >>confdefs.h <<_ACEOF
8668 #define DPATH "$unet_dpath"
8672 DPATH=$unet_cv_with_dpath
8675 echo "$as_me:$LINENO: checking where the default configuration file resides" >&5
8676 echo $ECHO_N "checking where the default configuration file resides... $ECHO_C" >&6
8678 # Check whether --with-cpath or --without-cpath was given.
8679 if test "${with_cpath+set}" = set; then
8680 withval="$with_cpath"
8681 unet_cv_with_cpath=$with_cpath
8683 if test "${unet_cv_with_cpath+set}" = set; then
8684 echo $ECHO_N "(cached) $ECHO_C" >&6
8686 unet_cv_with_cpath="ircd.conf"
8691 if test x"$unet_cv_with_cpath" = xyes -o x"$unet_cv_with_cpath" = xno; then
8692 unet_cv_with_cpath="ircd.conf"
8695 echo "$as_me:$LINENO: result: $unet_cv_with_cpath" >&5
8696 echo "${ECHO_T}$unet_cv_with_cpath" >&6
8698 if echo "$unet_cv_with_cpath" | grep '^/' > /dev/null 2>&1; then
8699 # Absolute path; check against chroot stuff
8700 if test x"$unet_cv_with_chroot" != xno; then
8701 if echo "$unet_cv_with_cpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
8702 unet_cpath=`echo "$unet_cv_with_cpath" | sed "s%^$unet_cv_with_chroot%%"`
8704 { { echo "$as_me:$LINENO: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&5
8705 echo "$as_me: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&2;}
8706 { (exit 1); exit 1; }; }
8709 unet_cpath=$unet_cv_with_cpath
8712 unet_cpath=$unet_cv_with_cpath
8716 cat >>confdefs.h <<_ACEOF
8717 #define CPATH "$unet_cpath"
8721 echo "$as_me:$LINENO: checking where to put the debugging log if debugging enabled" >&5
8722 echo $ECHO_N "checking where to put the debugging log if debugging enabled... $ECHO_C" >&6
8724 # Check whether --with-lpath or --without-lpath was given.
8725 if test "${with_lpath+set}" = set; then
8726 withval="$with_lpath"
8727 unet_cv_with_lpath=$with_lpath
8729 if test "${unet_cv_with_lpath+set}" = set; then
8730 echo $ECHO_N "(cached) $ECHO_C" >&6
8732 unet_cv_with_lpath="ircd.log"
8737 if test x"$unet_cv_with_lpath" = xyes -o x"$unet_cv_with_lpath" = xno; then
8738 unet_cv_with_lpath="ircd.log"
8741 echo "$as_me:$LINENO: result: $unet_cv_with_lpath" >&5
8742 echo "${ECHO_T}$unet_cv_with_lpath" >&6
8744 if echo "$unet_cv_with_lpath" | grep '^/' > /dev/null 2>&1; then
8745 # Absolute path; check against chroot stuff
8746 if test x"$unet_cv_with_chroot" != xno; then
8747 if echo "$unet_cv_with_lpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
8748 unet_lpath=`echo "$unet_cv_with_lpath" | sed "s%^$unet_cv_with_chroot%%"`
8750 { echo "$as_me:$LINENO: WARNING: Log file $unet_cv_with_lpath not relative to root directory $unet_cv_with_chroot; using default ircd.log instead" >&5
8751 echo "$as_me: WARNING: Log file $unet_cv_with_lpath not relative to root directory $unet_cv_with_chroot; using default ircd.log instead" >&2;}
8752 unet_cv_with_lpath="ircd.log"
8753 unet_lpath="ircd.log"
8756 unet_lpath=$unet_cv_with_lpath
8759 unet_lpath=$unet_cv_with_lpath
8763 cat >>confdefs.h <<_ACEOF
8764 #define LPATH "$unet_lpath"
8768 unet_maxcon=`ulimit -Hn`
8769 if test x"$unet_maxcon" = xunlimited; then
8770 unet_maxcon=`ulimit -Sn`
8772 unet_maxcon=`expr $unet_maxcon - 4`
8773 echo "$as_me:$LINENO: checking max connections" >&5
8774 echo $ECHO_N "checking max connections... $ECHO_C" >&6
8776 # Check whether --with-maxcon or --without-maxcon was given.
8777 if test "${with_maxcon+set}" = set; then
8778 withval="$with_maxcon"
8779 unet_cv_with_maxcon=$with_maxcon
8781 if test "${unet_cv_with_maxcon+set}" = set; then
8782 echo $ECHO_N "(cached) $ECHO_C" >&6
8784 unet_cv_with_maxcon=$unet_maxcon
8789 if test x"$unet_cv_with_maxcon" = xyes -o x"$unet_cv_with_maxcon" = xno; then
8790 unet_cv_with_maxcon=$unet_maxcon
8793 echo "$as_me:$LINENO: result: $unet_cv_with_maxcon" >&5
8794 echo "${ECHO_T}$unet_cv_with_maxcon" >&6
8797 cat >>confdefs.h <<_ACEOF
8798 #define MAXCONNECTIONS $unet_cv_with_maxcon
8802 ac_config_files="$ac_config_files Makefile ircd/Makefile doc/Makefile"
8803 ac_config_commands="$ac_config_commands default"
8804 cat >confcache <<\_ACEOF
8805 # This file is a shell script that caches the results of configure
8806 # tests run on this system so they can be shared between configure
8807 # scripts and configure runs, see configure's option --config-cache.
8808 # It is not useful on other systems. If it contains results you don't
8809 # want to keep, you may remove or edit it.
8811 # config.status only pays attention to the cache file if you give it
8812 # the --recheck option to rerun configure.
8814 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8815 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8820 # The following way of writing the cache mishandles newlines in values,
8821 # but we know of no workaround that is simple, portable, and efficient.
8822 # So, don't put newlines in cache variables' values.
8823 # Ultrix sh set writes to stderr and can't be redirected directly,
8824 # and sets the high bit in the cache file unless we assign to the vars.
8827 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8829 # `set' does not quote correctly, so add quotes (double-quote
8830 # substitution turns \\\\ into \\, and sed turns \\ into \).
8833 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8836 # `set' quotes correctly as required by POSIX, so do not add quotes.
8838 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8845 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8847 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8849 if diff $cache_file confcache >/dev/null 2>&1; then :; else
8850 if test -w $cache_file; then
8851 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8852 cat confcache >$cache_file
8854 echo "not updating unwritable cache $cache_file"
8859 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8860 # Let make expand exec_prefix.
8861 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8863 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8864 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8865 # trailing colons and then remove the whole line if VPATH becomes empty
8866 # (actually we leave an empty line to preserve line numbers).
8867 if test "x$srcdir" = x.; then
8868 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8869 s/:*\$(srcdir):*/:/;
8870 s/:*\${srcdir}:*/:/;
8872 s/^\([^=]*=[ ]*\):*/\1/;
8878 DEFS=-DHAVE_CONFIG_H
8882 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8883 # 1. Remove the extension, and $U if already installed.
8884 ac_i=`echo "$ac_i" |
8885 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8887 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8888 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8892 LTLIBOBJS=$ac_ltlibobjs
8896 : ${CONFIG_STATUS=./config.status}
8897 ac_clean_files_save=$ac_clean_files
8898 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8899 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8900 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8901 cat >$CONFIG_STATUS <<_ACEOF
8903 # Generated by $as_me.
8904 # Run this file to recreate the current configuration.
8905 # Compiler output produced by configure, useful for debugging
8906 # configure, is in config.log if it exists.
8911 SHELL=\${CONFIG_SHELL-$SHELL}
8914 cat >>$CONFIG_STATUS <<\_ACEOF
8915 ## --------------------- ##
8916 ## M4sh Initialization. ##
8917 ## --------------------- ##
8919 # Be Bourne compatible
8920 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8923 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8924 # is contrary to our usage. Disable this feature.
8925 alias -g '${1+"$@"}'='"$@"'
8926 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8929 DUALCASE=1; export DUALCASE # for MKS sh
8931 # Support unset when possible.
8932 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8939 # Work around bugs in pre-3.0 UWIN ksh.
8940 $as_unset ENV MAIL MAILPATH
8947 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8948 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8949 LC_TELEPHONE LC_TIME
8951 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8952 eval $as_var=C; export $as_var
8958 # Required to use basename.
8959 if expr a : '\(a\)' >/dev/null 2>&1; then
8965 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8966 as_basename=basename
8972 # Name of the executable.
8973 as_me=`$as_basename "$0" ||
8974 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8975 X"$0" : 'X\(//\)$' \| \
8976 X"$0" : 'X\(/\)$' \| \
8977 . : '\(.\)' 2>/dev/null ||
8979 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8980 /^X\/\(\/\/\)$/{ s//\1/; q; }
8981 /^X\/\(\/\).*/{ s//\1/; q; }
8985 # PATH needs CR, and LINENO needs CR and PATH.
8986 # Avoid depending upon Character Ranges.
8987 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8988 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8989 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8990 as_cr_digits='0123456789'
8991 as_cr_alnum=$as_cr_Letters$as_cr_digits
8993 # The user is always right.
8994 if test "${PATH_SEPARATOR+set}" != set; then
8995 echo "#! /bin/sh" >conf$$.sh
8996 echo "exit 0" >>conf$$.sh
8998 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9009 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9010 test "x$as_lineno_1" != "x$as_lineno_2" &&
9011 test "x$as_lineno_3" = "x$as_lineno_2" || {
9012 # Find who we are. Look in the path if we contain no path at all
9015 *[\\/]* ) as_myself=$0 ;;
9016 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9020 test -z "$as_dir" && as_dir=.
9021 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9026 # We did not find ourselves, most probably we were run as `sh COMMAND'
9027 # in which case we are not to be found in the path.
9028 if test "x$as_myself" = x; then
9031 if test ! -f "$as_myself"; then
9032 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9033 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9034 { (exit 1); exit 1; }; }
9036 case $CONFIG_SHELL in
9038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9039 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9042 test -z "$as_dir" && as_dir=.
9043 for as_base in sh bash ksh sh5; do
9046 if ("$as_dir/$as_base" -c '
9049 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9050 test "x$as_lineno_1" != "x$as_lineno_2" &&
9051 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9052 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9053 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9054 CONFIG_SHELL=$as_dir/$as_base
9056 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9064 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9065 # uniformly replaced by the line number. The first 'sed' inserts a
9066 # line-number line before each line; the second 'sed' does the real
9067 # work. The second script uses 'N' to pair each line-number line
9068 # with the numbered line, and appends trailing '-' during
9069 # substitution so that $LINENO is not a special case at line end.
9070 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9071 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9072 sed '=' <$as_myself |
9077 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9080 s,^['$as_cr_digits']*\n,,
9082 chmod +x $as_me.lineno ||
9083 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9084 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9085 { (exit 1); exit 1; }; }
9087 # Don't try to exec as it changes $[0], causing all sort of problems
9088 # (the dirname of $[0] is not the place where we might find the
9089 # original and so on. Autoconf is especially sensible to this).
9091 # Exit status is that of the last command.
9096 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9097 *c*,-n*) ECHO_N= ECHO_C='
9099 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9100 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9103 if expr a : '\(a\)' >/dev/null 2>&1; then
9109 rm -f conf$$ conf$$.exe conf$$.file
9111 if ln -s conf$$.file conf$$ 2>/dev/null; then
9112 # We could just check for DJGPP; but this test a) works b) is more generic
9113 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9114 if test -f conf$$.exe; then
9115 # Don't use ln at all; we don't have any links
9120 elif ln conf$$.file conf$$ 2>/dev/null; then
9125 rm -f conf$$ conf$$.exe conf$$.file
9127 if mkdir -p . 2>/dev/null; then
9130 test -d ./-p && rmdir ./-p
9134 as_executable_p="test -f"
9136 # Sed expression to map a string onto a valid CPP name.
9137 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9139 # Sed expression to map a string onto a valid variable name.
9140 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9144 # We need space, tab and new line, in precisely that order.
9154 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9155 # report actual input values of CONFIG_FILES etc. instead of their
9156 # values after options handling. Logging --version etc. is OK.
9160 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9161 ## Running $as_me. ##
9166 This file was extended by $as_me, which was
9167 generated by GNU Autoconf 2.59. Invocation command line was
9169 CONFIG_FILES = $CONFIG_FILES
9170 CONFIG_HEADERS = $CONFIG_HEADERS
9171 CONFIG_LINKS = $CONFIG_LINKS
9172 CONFIG_COMMANDS = $CONFIG_COMMANDS
9176 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9180 # Files that config.status was made for.
9181 if test -n "$ac_config_files"; then
9182 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9185 if test -n "$ac_config_headers"; then
9186 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9189 if test -n "$ac_config_links"; then
9190 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9193 if test -n "$ac_config_commands"; then
9194 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9197 cat >>$CONFIG_STATUS <<\_ACEOF
9200 \`$as_me' instantiates files from templates according to the
9201 current configuration.
9203 Usage: $0 [OPTIONS] [FILE]...
9205 -h, --help print this help, then exit
9206 -V, --version print version number, then exit
9207 -q, --quiet do not print progress messages
9208 -d, --debug don't remove temporary files
9209 --recheck update $as_me by reconfiguring in the same conditions
9210 --file=FILE[:TEMPLATE]
9211 instantiate the configuration file FILE
9212 --header=FILE[:TEMPLATE]
9213 instantiate the configuration header FILE
9215 Configuration files:
9218 Configuration headers:
9221 Configuration commands:
9224 Report bugs to <bug-autoconf@gnu.org>."
9227 cat >>$CONFIG_STATUS <<_ACEOF
9230 configured by $0, generated by GNU Autoconf 2.59,
9231 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9233 Copyright (C) 2003 Free Software Foundation, Inc.
9234 This config.status script is free software; the Free Software Foundation
9235 gives unlimited permission to copy, distribute and modify it."
9240 cat >>$CONFIG_STATUS <<\_ACEOF
9241 # If no file are specified by the user, then we need to provide default
9242 # value. By we need to know if files were specified by the user.
9248 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9249 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9257 *) # This is not an option, so the user has probably given explicit
9260 ac_need_defaults=false;;
9264 # Handling of the options.
9266 cat >>$CONFIG_STATUS <<\_ACEOF
9267 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9269 --version | --vers* | -V )
9270 echo "$ac_cs_version"; exit 0 ;;
9272 # Conflict between --help and --header
9273 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9274 Try \`$0 --help' for more information." >&5
9275 echo "$as_me: error: ambiguous option: $1
9276 Try \`$0 --help' for more information." >&2;}
9277 { (exit 1); exit 1; }; };;
9278 --help | --hel | -h )
9279 echo "$ac_cs_usage"; exit 0 ;;
9280 --debug | --d* | -d )
9282 --file | --fil | --fi | --f )
9284 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9285 ac_need_defaults=false;;
9286 --header | --heade | --head | --hea )
9288 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9289 ac_need_defaults=false;;
9290 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9291 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9295 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9296 Try \`$0 --help' for more information." >&5
9297 echo "$as_me: error: unrecognized option: $1
9298 Try \`$0 --help' for more information." >&2;}
9299 { (exit 1); exit 1; }; } ;;
9301 *) ac_config_targets="$ac_config_targets $1" ;;
9307 ac_configure_extra_args=
9309 if $ac_cs_silent; then
9311 ac_configure_extra_args="$ac_configure_extra_args --silent"
9315 cat >>$CONFIG_STATUS <<_ACEOF
9316 if \$ac_cs_recheck; then
9317 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9318 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9327 cat >>$CONFIG_STATUS <<\_ACEOF
9328 for ac_config_target in $ac_config_targets
9330 case "$ac_config_target" in
9331 # Handling of arguments.
9332 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9333 "ircd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ircd/Makefile" ;;
9334 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
9335 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
9336 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9337 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9338 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9339 { (exit 1); exit 1; }; };;
9343 # If the user did not use the arguments to specify the items to instantiate,
9344 # then the envvar interface is used. Set only those that are not.
9345 # We use the long form for the default assignment because of an extremely
9346 # bizarre bug on SunOS 4.1.3.
9347 if $ac_need_defaults; then
9348 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9349 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9350 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9353 # Have a temporary directory for convenience. Make it in the build tree
9354 # simply because there is no reason to put it here, and in addition,
9355 # creating and moving files from /tmp can sometimes cause problems.
9356 # Create a temporary directory, and hook for its removal unless debugging.
9359 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9360 trap '{ (exit 1); exit 1; }' 1 2 13 15
9363 # Create a (secure) tmp directory for tmp files.
9366 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9367 test -n "$tmp" && test -d "$tmp"
9370 tmp=./confstat$$-$RANDOM
9371 (umask 077 && mkdir $tmp)
9374 echo "$me: cannot create a temporary directory in ." >&2
9375 { (exit 1); exit 1; }
9380 cat >>$CONFIG_STATUS <<_ACEOF
9383 # CONFIG_FILES section.
9386 # No need to generate the scripts if there are no CONFIG_FILES.
9387 # This happens for instance when ./config.status config.h
9388 if test -n "\$CONFIG_FILES"; then
9389 # Protect against being on the right side of a sed subst in config.status.
9390 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9391 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9392 s,@SHELL@,$SHELL,;t t
9393 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9394 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9395 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9396 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9397 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9398 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9399 s,@exec_prefix@,$exec_prefix,;t t
9400 s,@prefix@,$prefix,;t t
9401 s,@program_transform_name@,$program_transform_name,;t t
9402 s,@bindir@,$bindir,;t t
9403 s,@sbindir@,$sbindir,;t t
9404 s,@libexecdir@,$libexecdir,;t t
9405 s,@datadir@,$datadir,;t t
9406 s,@sysconfdir@,$sysconfdir,;t t
9407 s,@sharedstatedir@,$sharedstatedir,;t t
9408 s,@localstatedir@,$localstatedir,;t t
9409 s,@libdir@,$libdir,;t t
9410 s,@includedir@,$includedir,;t t
9411 s,@oldincludedir@,$oldincludedir,;t t
9412 s,@infodir@,$infodir,;t t
9413 s,@mandir@,$mandir,;t t
9414 s,@build_alias@,$build_alias,;t t
9415 s,@host_alias@,$host_alias,;t t
9416 s,@target_alias@,$target_alias,;t t
9418 s,@ECHO_C@,$ECHO_C,;t t
9419 s,@ECHO_N@,$ECHO_N,;t t
9420 s,@ECHO_T@,$ECHO_T,;t t
9422 s,@build@,$build,;t t
9423 s,@build_cpu@,$build_cpu,;t t
9424 s,@build_vendor@,$build_vendor,;t t
9425 s,@build_os@,$build_os,;t t
9427 s,@host_cpu@,$host_cpu,;t t
9428 s,@host_vendor@,$host_vendor,;t t
9429 s,@host_os@,$host_os,;t t
9431 s,@CFLAGS@,$CFLAGS,;t t
9432 s,@LDFLAGS@,$LDFLAGS,;t t
9433 s,@CPPFLAGS@,$CPPFLAGS,;t t
9434 s,@ac_ct_CC@,$ac_ct_CC,;t t
9435 s,@EXEEXT@,$EXEEXT,;t t
9436 s,@OBJEXT@,$OBJEXT,;t t
9438 s,@EGREP@,$EGREP,;t t
9440 s,@SET_MAKE@,$SET_MAKE,;t t
9441 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9442 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9443 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9445 s,@RMPROG@,$RMPROG,;t t
9446 s,@SHPROG@,$SHPROG,;t t
9447 s,@OSDEP_C@,$OSDEP_C,;t t
9448 s,@ENGINE_C@,$ENGINE_C,;t t
9449 s,@subdirs@,$subdirs,;t t
9450 s,@RES_C@,$RES_C,;t t
9451 s,@ADNS_SUBDIR@,$ADNS_SUBDIR,;t t
9452 s,@INSTALL_RULE@,$INSTALL_RULE,;t t
9453 s,@SYMLINK@,$SYMLINK,;t t
9454 s,@IRCDMODE@,$IRCDMODE,;t t
9455 s,@IRCDOWN@,$IRCDOWN,;t t
9456 s,@IRCDGRP@,$IRCDGRP,;t t
9457 s,@DPATH@,$DPATH,;t t
9458 s,@LIBOBJS@,$LIBOBJS,;t t
9459 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9464 cat >>$CONFIG_STATUS <<\_ACEOF
9465 # Split the substitutions into bite-sized pieces for seds with
9466 # small command number limits, like on Digital OSF/1 and HP-UX.
9468 ac_sed_frag=1 # Number of current file.
9469 ac_beg=1 # First line for current file.
9470 ac_end=$ac_max_sed_lines # Line after last line for current file.
9473 while $ac_more_lines; do
9474 if test $ac_beg -gt 1; then
9475 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9477 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9479 if test ! -s $tmp/subs.frag; then
9482 # The purpose of the label and of the branching condition is to
9483 # speed up the sed processing (if there are no `@' at all, there
9484 # is no need to browse any of the substitutions).
9485 # These are the two extra sed commands mentioned above.
9487 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9488 if test -z "$ac_sed_cmds"; then
9489 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9491 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9493 ac_sed_frag=`expr $ac_sed_frag + 1`
9495 ac_end=`expr $ac_end + $ac_max_sed_lines`
9498 if test -z "$ac_sed_cmds"; then
9501 fi # test -n "$CONFIG_FILES"
9504 cat >>$CONFIG_STATUS <<\_ACEOF
9505 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9506 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9508 - | *:- | *:-:* ) # input from stdin
9510 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9511 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9512 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9513 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9514 * ) ac_file_in=$ac_file.in ;;
9517 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9518 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9519 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9520 X"$ac_file" : 'X\(//\)[^/]' \| \
9521 X"$ac_file" : 'X\(//\)$' \| \
9522 X"$ac_file" : 'X\(/\)' \| \
9523 . : '\(.\)' 2>/dev/null ||
9525 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9526 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9527 /^X\(\/\/\)$/{ s//\1/; q; }
9528 /^X\(\/\).*/{ s//\1/; q; }
9530 { if $as_mkdir_p; then
9535 while test ! -d "$as_dir"; do
9536 as_dirs="$as_dir $as_dirs"
9537 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9538 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9539 X"$as_dir" : 'X\(//\)[^/]' \| \
9540 X"$as_dir" : 'X\(//\)$' \| \
9541 X"$as_dir" : 'X\(/\)' \| \
9542 . : '\(.\)' 2>/dev/null ||
9544 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9545 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9546 /^X\(\/\/\)$/{ s//\1/; q; }
9547 /^X\(\/\).*/{ s//\1/; q; }
9550 test ! -n "$as_dirs" || mkdir $as_dirs
9551 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9552 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9553 { (exit 1); exit 1; }; }; }
9557 if test "$ac_dir" != .; then
9558 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9559 # A "../" for each directory in $ac_dir_suffix.
9560 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9562 ac_dir_suffix= ac_top_builddir=
9566 .) # No --srcdir option. We are building in place.
9568 if test -z "$ac_top_builddir"; then
9571 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9573 [\\/]* | ?:[\\/]* ) # Absolute path.
9574 ac_srcdir=$srcdir$ac_dir_suffix;
9575 ac_top_srcdir=$srcdir ;;
9577 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9578 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9581 # Do not use `cd foo && pwd` to compute absolute paths, because
9582 # the directories may not exist.
9584 .) ac_abs_builddir="$ac_dir";;
9587 .) ac_abs_builddir=`pwd`;;
9588 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9589 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9592 case $ac_abs_builddir in
9593 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9595 case ${ac_top_builddir}. in
9596 .) ac_abs_top_builddir=$ac_abs_builddir;;
9597 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9598 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9601 case $ac_abs_builddir in
9602 .) ac_abs_srcdir=$ac_srcdir;;
9605 .) ac_abs_srcdir=$ac_abs_builddir;;
9606 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9607 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9610 case $ac_abs_builddir in
9611 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9613 case $ac_top_srcdir in
9614 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9615 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9616 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9622 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9623 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9626 # Let's still pretend it is `configure' which instantiates (i.e., don't
9627 # use $as_me), people would be surprised to read:
9628 # /* config.h. Generated by config.status. */
9629 if test x"$ac_file" = x-; then
9632 configure_input="$ac_file. "
9634 configure_input=$configure_input"Generated from `echo $ac_file_in |
9635 sed 's,.*/,,'` by configure."
9637 # First look for the input files in the build tree, otherwise in the
9639 ac_file_inputs=`IFS=:
9640 for f in $ac_file_in; do
9642 -) echo $tmp/stdin ;;
9644 # Absolute (can't be DOS-style, as IFS=:)
9645 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9646 echo "$as_me: error: cannot find input file: $f" >&2;}
9647 { (exit 1); exit 1; }; }
9650 if test -f "$f"; then
9653 elif test -f "$srcdir/$f"; then
9658 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9659 echo "$as_me: error: cannot find input file: $f" >&2;}
9660 { (exit 1); exit 1; }; }
9663 done` || { (exit 1); exit 1; }
9665 if test x"$ac_file" != x-; then
9666 { echo "$as_me:$LINENO: creating $ac_file" >&5
9667 echo "$as_me: creating $ac_file" >&6;}
9671 cat >>$CONFIG_STATUS <<_ACEOF
9675 cat >>$CONFIG_STATUS <<\_ACEOF
9677 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9678 s,@configure_input@,$configure_input,;t t
9679 s,@srcdir@,$ac_srcdir,;t t
9680 s,@abs_srcdir@,$ac_abs_srcdir,;t t
9681 s,@top_srcdir@,$ac_top_srcdir,;t t
9682 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9683 s,@builddir@,$ac_builddir,;t t
9684 s,@abs_builddir@,$ac_abs_builddir,;t t
9685 s,@top_builddir@,$ac_top_builddir,;t t
9686 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9687 s,@INSTALL@,$ac_INSTALL,;t t
9688 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9690 if test x"$ac_file" != x-; then
9691 mv $tmp/out $ac_file
9699 cat >>$CONFIG_STATUS <<\_ACEOF
9702 # CONFIG_HEADER section.
9705 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9706 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9708 # ac_d sets the value in "#define NAME VALUE" lines.
9709 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9710 ac_dB='[ ].*$,\1#\2'
9713 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9714 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9715 ac_uB='$,\1#\2define\3'
9719 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9720 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9722 - | *:- | *:-:* ) # input from stdin
9724 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9725 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9726 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9727 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9728 * ) ac_file_in=$ac_file.in ;;
9731 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9732 echo "$as_me: creating $ac_file" >&6;}
9734 # First look for the input files in the build tree, otherwise in the
9736 ac_file_inputs=`IFS=:
9737 for f in $ac_file_in; do
9739 -) echo $tmp/stdin ;;
9741 # Absolute (can't be DOS-style, as IFS=:)
9742 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9743 echo "$as_me: error: cannot find input file: $f" >&2;}
9744 { (exit 1); exit 1; }; }
9745 # Do quote $f, to prevent DOS paths from being IFS'd.
9748 if test -f "$f"; then
9751 elif test -f "$srcdir/$f"; then
9756 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9757 echo "$as_me: error: cannot find input file: $f" >&2;}
9758 { (exit 1); exit 1; }; }
9761 done` || { (exit 1); exit 1; }
9762 # Remove the trailing spaces.
9763 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9767 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9768 # `conftest.undefs', that substitutes the proper values into
9769 # config.h.in to produce config.h. The first handles `#define'
9770 # templates, and the second `#undef' templates.
9771 # And first: Protect against being on the right side of a sed subst in
9772 # config.status. Protect against being in an unquoted here document
9774 rm -f conftest.defines conftest.undefs
9775 # Using a here document instead of a string reduces the quoting nightmare.
9776 # Putting comments in sed scripts is not portable.
9778 # `end' is used to avoid that the second main sed command (meant for
9779 # 0-ary CPP macros) applies to n-ary macro definitions.
9780 # See the Autoconf documentation for `clear'.
9781 cat >confdef2sed.sed <<\_ACEOF
9786 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9788 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9791 # If some macros were called several times there might be several times
9792 # the same #defines, which is useless. Nevertheless, we may not want to
9793 # sort them, since we want the *last* AC-DEFINE to be honored.
9794 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9795 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9796 rm -f confdef2sed.sed
9798 # This sed command replaces #undef with comments. This is necessary, for
9799 # example, in the case of _POSIX_SOURCE, which is predefined and required
9800 # on some systems where configure will not decide to define it.
9801 cat >>conftest.undefs <<\_ACEOF
9802 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9805 # Break up conftest.defines because some shells have a limit on the size
9806 # of here documents, and old seds have small limits too (100 cmds).
9807 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9808 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9809 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9810 echo ' :' >>$CONFIG_STATUS
9812 while grep . conftest.defines >/dev/null
9814 # Write a limited-size here document to $tmp/defines.sed.
9815 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9816 # Speed up: don't consider the non `#define' lines.
9817 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9818 # Work around the forget-to-reset-the-flag bug.
9819 echo 't clr' >>$CONFIG_STATUS
9820 echo ': clr' >>$CONFIG_STATUS
9821 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9823 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9827 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9828 rm -f conftest.defines
9829 mv conftest.tail conftest.defines
9831 rm -f conftest.defines
9832 echo ' fi # grep' >>$CONFIG_STATUS
9833 echo >>$CONFIG_STATUS
9835 # Break up conftest.undefs because some shells have a limit on the size
9836 # of here documents, and old seds have small limits too (100 cmds).
9837 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9839 while grep . conftest.undefs >/dev/null
9841 # Write a limited-size here document to $tmp/undefs.sed.
9842 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9843 # Speed up: don't consider the non `#undef'
9844 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9845 # Work around the forget-to-reset-the-flag bug.
9846 echo 't clr' >>$CONFIG_STATUS
9847 echo ': clr' >>$CONFIG_STATUS
9848 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9850 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9854 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9855 rm -f conftest.undefs
9856 mv conftest.tail conftest.undefs
9858 rm -f conftest.undefs
9860 cat >>$CONFIG_STATUS <<\_ACEOF
9861 # Let's still pretend it is `configure' which instantiates (i.e., don't
9862 # use $as_me), people would be surprised to read:
9863 # /* config.h. Generated by config.status. */
9864 if test x"$ac_file" = x-; then
9865 echo "/* Generated by configure. */" >$tmp/config.h
9867 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9869 cat $tmp/in >>$tmp/config.h
9871 if test x"$ac_file" != x-; then
9872 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9873 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9874 echo "$as_me: $ac_file is unchanged" >&6;}
9876 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9877 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9878 X"$ac_file" : 'X\(//\)[^/]' \| \
9879 X"$ac_file" : 'X\(//\)$' \| \
9880 X"$ac_file" : 'X\(/\)' \| \
9881 . : '\(.\)' 2>/dev/null ||
9883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9884 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9885 /^X\(\/\/\)$/{ s//\1/; q; }
9886 /^X\(\/\).*/{ s//\1/; q; }
9888 { if $as_mkdir_p; then
9893 while test ! -d "$as_dir"; do
9894 as_dirs="$as_dir $as_dirs"
9895 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9896 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9897 X"$as_dir" : 'X\(//\)[^/]' \| \
9898 X"$as_dir" : 'X\(//\)$' \| \
9899 X"$as_dir" : 'X\(/\)' \| \
9900 . : '\(.\)' 2>/dev/null ||
9902 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9903 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9904 /^X\(\/\/\)$/{ s//\1/; q; }
9905 /^X\(\/\).*/{ s//\1/; q; }
9908 test ! -n "$as_dirs" || mkdir $as_dirs
9909 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9910 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9911 { (exit 1); exit 1; }; }; }
9914 mv $tmp/config.h $ac_file
9922 cat >>$CONFIG_STATUS <<\_ACEOF
9925 # CONFIG_COMMANDS section.
9927 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9928 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9929 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9930 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
9931 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9932 X"$ac_dest" : 'X\(//\)[^/]' \| \
9933 X"$ac_dest" : 'X\(//\)$' \| \
9934 X"$ac_dest" : 'X\(/\)' \| \
9935 . : '\(.\)' 2>/dev/null ||
9937 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9938 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9939 /^X\(\/\/\)$/{ s//\1/; q; }
9940 /^X\(\/\).*/{ s//\1/; q; }
9942 { if $as_mkdir_p; then
9947 while test ! -d "$as_dir"; do
9948 as_dirs="$as_dir $as_dirs"
9949 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9950 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9951 X"$as_dir" : 'X\(//\)[^/]' \| \
9952 X"$as_dir" : 'X\(//\)$' \| \
9953 X"$as_dir" : 'X\(/\)' \| \
9954 . : '\(.\)' 2>/dev/null ||
9956 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9957 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9958 /^X\(\/\/\)$/{ s//\1/; q; }
9959 /^X\(\/\).*/{ s//\1/; q; }
9962 test ! -n "$as_dirs" || mkdir $as_dirs
9963 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9964 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9965 { (exit 1); exit 1; }; }; }
9969 if test "$ac_dir" != .; then
9970 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9971 # A "../" for each directory in $ac_dir_suffix.
9972 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9974 ac_dir_suffix= ac_top_builddir=
9978 .) # No --srcdir option. We are building in place.
9980 if test -z "$ac_top_builddir"; then
9983 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9985 [\\/]* | ?:[\\/]* ) # Absolute path.
9986 ac_srcdir=$srcdir$ac_dir_suffix;
9987 ac_top_srcdir=$srcdir ;;
9989 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9990 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9993 # Do not use `cd foo && pwd` to compute absolute paths, because
9994 # the directories may not exist.
9996 .) ac_abs_builddir="$ac_dir";;
9999 .) ac_abs_builddir=`pwd`;;
10000 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10001 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10004 case $ac_abs_builddir in
10005 .) ac_abs_top_builddir=${ac_top_builddir}.;;
10007 case ${ac_top_builddir}. in
10008 .) ac_abs_top_builddir=$ac_abs_builddir;;
10009 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10010 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10013 case $ac_abs_builddir in
10014 .) ac_abs_srcdir=$ac_srcdir;;
10017 .) ac_abs_srcdir=$ac_abs_builddir;;
10018 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10019 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10022 case $ac_abs_builddir in
10023 .) ac_abs_top_srcdir=$ac_top_srcdir;;
10025 case $ac_top_srcdir in
10026 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10027 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10028 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10033 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10034 echo "$as_me: executing $ac_dest commands" >&6;}
10036 default ) echo timestamp > stamp-h ;;
10041 cat >>$CONFIG_STATUS <<\_ACEOF
10043 { (exit 0); exit 0; }
10045 chmod +x $CONFIG_STATUS
10046 ac_clean_files=$ac_clean_files_save
10049 # configure is writing to config.log, and then calls config.status.
10050 # config.status does its own redirection, appending to config.log.
10051 # Unfortunately, on DOS this fails, as config.log is still kept open
10052 # by configure, so config.status won't be able to write to it; its
10053 # output is simply discarded. So we exec the FD to /dev/null,
10054 # effectively closing config.log, so it can be properly (re)opened and
10055 # appended to by config.status. When coming back to configure, we
10056 # need to make the FD available again.
10057 if test "$no_create" != yes; then
10059 ac_config_status_args=
10060 test "$silent" = yes &&
10061 ac_config_status_args="$ac_config_status_args --quiet"
10063 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10065 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10066 # would make configure fail if this is the last instruction.
10067 $ac_cs_success || { (exit 1); exit 1; }
10071 # CONFIG_SUBDIRS section.
10073 if test "$no_recursion" != yes; then
10075 # Remove --cache-file and --srcdir arguments so they do not pile up.
10076 ac_sub_configure_args=
10078 for ac_arg in $ac_configure_args; do
10079 if test -n "$ac_prev"; then
10084 -cache-file | --cache-file | --cache-fil | --cache-fi \
10085 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10086 ac_prev=cache_file ;;
10087 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10088 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
10091 --config-cache | -C)
10093 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10095 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10097 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10099 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10101 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
10105 # Always prepend --prefix to ensure using the same prefix
10106 # in subdir configurations.
10107 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
10110 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
10112 # Do not complain, so a configure script can configure whichever
10113 # parts of a large source tree are present.
10114 test -d $srcdir/$ac_dir || continue
10116 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
10117 echo "$as_me: configuring in $ac_dir" >&6;}
10118 { if $as_mkdir_p; then
10123 while test ! -d "$as_dir"; do
10124 as_dirs="$as_dir $as_dirs"
10125 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10126 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10127 X"$as_dir" : 'X\(//\)[^/]' \| \
10128 X"$as_dir" : 'X\(//\)$' \| \
10129 X"$as_dir" : 'X\(/\)' \| \
10130 . : '\(.\)' 2>/dev/null ||
10132 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10133 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10134 /^X\(\/\/\)$/{ s//\1/; q; }
10135 /^X\(\/\).*/{ s//\1/; q; }
10138 test ! -n "$as_dirs" || mkdir $as_dirs
10139 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10140 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10141 { (exit 1); exit 1; }; }; }
10145 if test "$ac_dir" != .; then
10146 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10147 # A "../" for each directory in $ac_dir_suffix.
10148 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10150 ac_dir_suffix= ac_top_builddir=
10154 .) # No --srcdir option. We are building in place.
10156 if test -z "$ac_top_builddir"; then
10159 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10161 [\\/]* | ?:[\\/]* ) # Absolute path.
10162 ac_srcdir=$srcdir$ac_dir_suffix;
10163 ac_top_srcdir=$srcdir ;;
10164 *) # Relative path.
10165 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10166 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10169 # Do not use `cd foo && pwd` to compute absolute paths, because
10170 # the directories may not exist.
10172 .) ac_abs_builddir="$ac_dir";;
10175 .) ac_abs_builddir=`pwd`;;
10176 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10177 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10180 case $ac_abs_builddir in
10181 .) ac_abs_top_builddir=${ac_top_builddir}.;;
10183 case ${ac_top_builddir}. in
10184 .) ac_abs_top_builddir=$ac_abs_builddir;;
10185 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10186 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10189 case $ac_abs_builddir in
10190 .) ac_abs_srcdir=$ac_srcdir;;
10193 .) ac_abs_srcdir=$ac_abs_builddir;;
10194 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10195 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10198 case $ac_abs_builddir in
10199 .) ac_abs_top_srcdir=$ac_top_srcdir;;
10201 case $ac_top_srcdir in
10202 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10203 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10204 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10211 # Check for guested configure; otherwise get Cygnus style configure.
10212 if test -f $ac_srcdir/configure.gnu; then
10213 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
10214 elif test -f $ac_srcdir/configure; then
10215 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
10216 elif test -f $ac_srcdir/configure.in; then
10217 ac_sub_configure=$ac_configure
10219 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
10220 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
10224 # The recursion is here.
10225 if test -n "$ac_sub_configure"; then
10226 # Make the cache file name correct relative to the subdirectory.
10227 case $cache_file in
10228 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
10229 *) # Relative path.
10230 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
10233 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
10234 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
10235 # The eval makes quoting arguments work.
10236 eval $ac_sub_configure $ac_sub_configure_args \
10237 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
10238 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
10239 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
10240 { (exit 1); exit 1; }; }
10248 ac_config_commands="$ac_config_commands default-1"