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_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 LEX LEXLIB LEX_OUTPUT_ROOT YACC RMPROG SHPROG ENGINE_C INSTALL_RULE SYMLINK IRCDMODE IRCDOWN IRCDGRP DPATH LIBOBJS LTLIBOBJS'
316 # Initialize some variables set by options.
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
328 program_transform_name=s,x,x,
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
388 cache_file=config.cache ;;
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 datadir=$ac_optarg ;;
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
431 -help | --help | --hel | --he | -h)
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
455 -libdir | --libdir | --libdi | --libd)
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 # Obsolete; use --without-fp.
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 sbindir=$ac_optarg ;;
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 sharedstatedir=$ac_optarg ;;
559 -site | --site | --sit)
561 -site=* | --site=* | --sit=*)
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 -version | --version | --versio | --versi | --vers | -V)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
610 # Obsolete; use --with-x.
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
662 eval ac_val=$`echo $ac_var`
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val=$`echo $ac_var`
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703 test "$silent" = yes && exec 6>/dev/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
723 if test ! -r $srcdir/$ac_unique_file; then
727 ac_srcdir_defaulted=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
776 # Report the --help message.
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
782 \`configure' configures this package to adapt to many kinds of systems.
784 Usage: $0 [OPTION]... [VAR=VALUE]...
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
789 Defaults for the options are specified in brackets.
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
816 For better control, use the options below.
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
836 --build=BUILD configure for building on BUILD [guessed]
837 --host=HOST cross-compile to build programs to run on HOST [BUILD]
841 if test -n "$ac_init_help"; then
846 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
847 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
848 --enable-poll Force poll to be used regardless of whether or not
850 --enable-debug Turn on debugging mode
851 --disable-asserts Disable assertion checking
852 --disable-symbols Disable debugging symbols (remove -g from CFLAGS)
853 --enable-profile Enable profiling support (add -pg to CFLAGS)
854 --enable-pedantic Enable pedantic warnings (add -pedantic to CFLAGS)
855 --enable-warnings Enable warnings (add -Wall to CFLAGS)
856 --disable-inlines Disable inlining for a few critical functions
857 --disable-devpoll Disable the /dev/poll-based engine
858 --disable-kqueue Disable the kqueue-based engine
859 --disable-epoll Disable the epoll-based engine
862 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
863 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
864 --with-leak-detect Turn on the leak detector(requires patched boehm)
865 --with-symlink=name Name to give the symlink; if name is "no," no
866 symlink will be created.
867 --with-mode=mode Permissions (in octal) to give the binary
868 --with-owner=owner Specify owner of the installed binary
869 --with-group=group Specify group owner of the installed binary
870 --with-domain=domain Domain name to use in local statistics gathering
871 --with-chroot=dir Specify that the server will be operated under
872 a different root directory given by dir. See
873 doc/readme.chroot for more information.
874 --with-dpath=dir Directory for all server data files
875 --with-cpath=file Set server configuration file
876 --with-lpath=file Set the debugging log file
877 --with-maxcon=maxcon Maximum number of connections server will accept
879 Some influential environment variables:
880 CC C compiler command
881 CFLAGS C compiler flags
882 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
883 nonstandard directory <lib dir>
884 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
885 headers in a nonstandard directory <include dir>
888 Use these variables to override the choices made by `configure' or to help
889 it to find libraries and programs with nonstandard names/locations.
894 if test "$ac_init_help" = "recursive"; then
895 # If there are subdirs, report their specific --help.
897 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
898 test -d $ac_dir || continue
901 if test "$ac_dir" != .; then
902 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
903 # A "../" for each directory in $ac_dir_suffix.
904 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
906 ac_dir_suffix= ac_top_builddir=
910 .) # No --srcdir option. We are building in place.
912 if test -z "$ac_top_builddir"; then
915 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
917 [\\/]* | ?:[\\/]* ) # Absolute path.
918 ac_srcdir=$srcdir$ac_dir_suffix;
919 ac_top_srcdir=$srcdir ;;
921 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
922 ac_top_srcdir=$ac_top_builddir$srcdir ;;
925 # Do not use `cd foo && pwd` to compute absolute paths, because
926 # the directories may not exist.
928 .) ac_abs_builddir="$ac_dir";;
931 .) ac_abs_builddir=`pwd`;;
932 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
933 *) ac_abs_builddir=`pwd`/"$ac_dir";;
936 case $ac_abs_builddir in
937 .) ac_abs_top_builddir=${ac_top_builddir}.;;
939 case ${ac_top_builddir}. in
940 .) ac_abs_top_builddir=$ac_abs_builddir;;
941 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
942 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
945 case $ac_abs_builddir in
946 .) ac_abs_srcdir=$ac_srcdir;;
949 .) ac_abs_srcdir=$ac_abs_builddir;;
950 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
951 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
954 case $ac_abs_builddir in
955 .) ac_abs_top_srcdir=$ac_top_srcdir;;
957 case $ac_top_srcdir in
958 .) ac_abs_top_srcdir=$ac_abs_builddir;;
959 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
960 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
965 # Check for guested configure; otherwise get Cygnus style configure.
966 if test -f $ac_srcdir/configure.gnu; then
968 $SHELL $ac_srcdir/configure.gnu --help=recursive
969 elif test -f $ac_srcdir/configure; then
971 $SHELL $ac_srcdir/configure --help=recursive
972 elif test -f $ac_srcdir/configure.ac ||
973 test -f $ac_srcdir/configure.in; then
977 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
983 test -n "$ac_init_help" && exit 0
984 if $ac_init_version; then
987 Copyright (C) 2003 Free Software Foundation, Inc.
988 This configure script is free software; the Free Software Foundation
989 gives unlimited permission to copy, distribute and modify it.
995 This file contains any messages produced by compilers while
996 running configure, to aid debugging if configure makes a mistake.
998 It was created by $as_me, which was
999 generated by GNU Autoconf 2.59. Invocation command line was
1010 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1011 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1012 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1013 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1014 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1016 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1017 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1019 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1020 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1021 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1022 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1023 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1024 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1025 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1033 test -z "$as_dir" && as_dir=.
1034 echo "PATH: $as_dir"
1049 # Keep a trace of the command line.
1050 # Strip out --no-create and --no-recursion so they do not pile up.
1051 # Strip out --silent because we don't want to record it for future runs.
1052 # Also quote any args containing shell meta-characters.
1053 # Make two passes to allow for proper duplicate-argument suppression.
1058 ac_must_keep_next=false
1064 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1065 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1066 | -silent | --silent | --silen | --sile | --sil)
1068 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1069 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1072 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1074 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1075 if test $ac_must_keep_next = true; then
1076 ac_must_keep_next=false # Got value, back to normal.
1079 *=* | --config-cache | -C | -disable-* | --disable-* \
1080 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1081 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1082 | -with-* | --with-* | -without-* | --without-* | --x)
1083 case "$ac_configure_args0 " in
1084 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1087 -* ) ac_must_keep_next=true ;;
1090 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1091 # Get rid of the leading space.
1097 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1098 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1100 # When interrupted or exit'd, cleanup temporary files, and complete
1101 # config.log. We remove comments because anyway the quotes in there
1102 # would cause problems or look ugly.
1103 # WARNING: Be sure not to use single quotes in there, as some shells,
1104 # such as our DU 5.0 friend, will then `close' the trap.
1105 trap 'exit_status=$?
1106 # Save into config.log some information that might help in debugging.
1111 ## ---------------- ##
1112 ## Cache variables. ##
1113 ## ---------------- ##
1116 # The following way of writing the cache mishandles newlines in values,
1119 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1122 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1123 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1127 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1134 ## ----------------- ##
1135 ## Output variables. ##
1136 ## ----------------- ##
1139 for ac_var in $ac_subst_vars
1141 eval ac_val=$`echo $ac_var`
1142 echo "$ac_var='"'"'$ac_val'"'"'"
1146 if test -n "$ac_subst_files"; then
1153 for ac_var in $ac_subst_files
1155 eval ac_val=$`echo $ac_var`
1156 echo "$ac_var='"'"'$ac_val'"'"'"
1161 if test -s confdefs.h; then
1168 sed "/^$/d" confdefs.h | sort
1171 test "$ac_signal" != 0 &&
1172 echo "$as_me: caught signal $ac_signal"
1173 echo "$as_me: exit $exit_status"
1175 rm -f core *.core &&
1176 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1179 for ac_signal in 1 2 13 15; do
1180 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1184 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1185 rm -rf conftest* confdefs.h
1186 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1189 # Predefined preprocessor variables.
1191 cat >>confdefs.h <<_ACEOF
1192 #define PACKAGE_NAME "$PACKAGE_NAME"
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_STRING "$PACKAGE_STRING"
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1216 # Let the site file select an alternate cache file if it wants to.
1217 # Prefer explicitly selected file to automatically selected ones.
1218 if test -z "$CONFIG_SITE"; then
1219 if test "x$prefix" != xNONE; then
1220 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1222 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1225 for ac_site_file in $CONFIG_SITE; do
1226 if test -r "$ac_site_file"; then
1227 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1228 echo "$as_me: loading site script $ac_site_file" >&6;}
1229 sed 's/^/| /' "$ac_site_file" >&5
1234 if test -r "$cache_file"; then
1235 # Some versions of bash will fail to source /dev/null (special
1236 # files actually), so we avoid doing that.
1237 if test -f "$cache_file"; then
1238 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1239 echo "$as_me: loading cache $cache_file" >&6;}
1241 [\\/]* | ?:[\\/]* ) . $cache_file;;
1242 *) . ./$cache_file;;
1246 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1247 echo "$as_me: creating cache $cache_file" >&6;}
1251 # Check that the precious variables saved in the cache have kept the same
1253 ac_cache_corrupted=false
1254 for ac_var in `(set) 2>&1 |
1255 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1256 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1257 eval ac_new_set=\$ac_env_${ac_var}_set
1258 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1259 eval ac_new_val="\$ac_env_${ac_var}_value"
1260 case $ac_old_set,$ac_new_set in
1262 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1263 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1264 ac_cache_corrupted=: ;;
1266 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1267 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1268 ac_cache_corrupted=: ;;
1271 if test "x$ac_old_val" != "x$ac_new_val"; then
1272 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1273 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1274 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1275 echo "$as_me: former value: $ac_old_val" >&2;}
1276 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1277 echo "$as_me: current value: $ac_new_val" >&2;}
1278 ac_cache_corrupted=:
1281 # Pass precious variables to config.status.
1282 if test "$ac_new_set" = set; then
1284 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1285 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1286 *) ac_arg=$ac_var=$ac_new_val ;;
1288 case " $ac_configure_args " in
1289 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1290 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1294 if $ac_cache_corrupted; then
1295 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1296 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1297 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1298 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1299 { (exit 1); exit 1; }; }
1303 ac_cpp='$CPP $CPPFLAGS'
1304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1328 echo "$as_me:$LINENO: checking for installation prefix" >&5
1329 echo $ECHO_N "checking for installation prefix... $ECHO_C" >&6
1330 if test "${unet_cv_prefix+set}" = set; then
1331 echo $ECHO_N "(cached) $ECHO_C" >&6
1333 unet_cv_prefix=$HOME
1336 if test x"$prefix" != xNONE; then
1337 unet_cv_prefix=$prefix
1339 echo "$as_me:$LINENO: result: $unet_cv_prefix" >&5
1340 echo "${ECHO_T}$unet_cv_prefix" >&6
1341 ac_default_prefix=$unet_cv_prefix
1343 ac_config_headers="$ac_config_headers config.h"
1349 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1350 if test -f $ac_dir/install-sh; then
1352 ac_install_sh="$ac_aux_dir/install-sh -c"
1354 elif test -f $ac_dir/install.sh; then
1356 ac_install_sh="$ac_aux_dir/install.sh -c"
1358 elif test -f $ac_dir/shtool; then
1360 ac_install_sh="$ac_aux_dir/shtool install -c"
1364 if test -z "$ac_aux_dir"; then
1365 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1366 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1367 { (exit 1); exit 1; }; }
1369 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1370 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1371 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1373 # Make sure we can run config.sub.
1374 $ac_config_sub sun4 >/dev/null 2>&1 ||
1375 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1376 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1377 { (exit 1); exit 1; }; }
1379 echo "$as_me:$LINENO: checking build system type" >&5
1380 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1381 if test "${ac_cv_build+set}" = set; then
1382 echo $ECHO_N "(cached) $ECHO_C" >&6
1384 ac_cv_build_alias=$build_alias
1385 test -z "$ac_cv_build_alias" &&
1386 ac_cv_build_alias=`$ac_config_guess`
1387 test -z "$ac_cv_build_alias" &&
1388 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1389 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1390 { (exit 1); exit 1; }; }
1391 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1392 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1393 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1394 { (exit 1); exit 1; }; }
1397 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1398 echo "${ECHO_T}$ac_cv_build" >&6
1400 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1401 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1402 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1405 echo "$as_me:$LINENO: checking host system type" >&5
1406 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1407 if test "${ac_cv_host+set}" = set; then
1408 echo $ECHO_N "(cached) $ECHO_C" >&6
1410 ac_cv_host_alias=$host_alias
1411 test -z "$ac_cv_host_alias" &&
1412 ac_cv_host_alias=$ac_cv_build_alias
1413 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1414 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1415 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1416 { (exit 1); exit 1; }; }
1419 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1420 echo "${ECHO_T}$ac_cv_host" >&6
1422 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1423 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1424 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1429 ac_cpp='$CPP $CPPFLAGS'
1430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1433 if test -n "$ac_tool_prefix"; then
1434 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1435 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1436 echo "$as_me:$LINENO: checking for $ac_word" >&5
1437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1438 if test "${ac_cv_prog_CC+set}" = set; then
1439 echo $ECHO_N "(cached) $ECHO_C" >&6
1441 if test -n "$CC"; then
1442 ac_cv_prog_CC="$CC" # Let the user override the test.
1444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1448 test -z "$as_dir" && as_dir=.
1449 for ac_exec_ext in '' $ac_executable_extensions; do
1450 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1451 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1461 if test -n "$CC"; then
1462 echo "$as_me:$LINENO: result: $CC" >&5
1463 echo "${ECHO_T}$CC" >&6
1465 echo "$as_me:$LINENO: result: no" >&5
1466 echo "${ECHO_T}no" >&6
1470 if test -z "$ac_cv_prog_CC"; then
1472 # Extract the first word of "gcc", so it can be a program name with args.
1473 set dummy gcc; ac_word=$2
1474 echo "$as_me:$LINENO: checking for $ac_word" >&5
1475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1476 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1477 echo $ECHO_N "(cached) $ECHO_C" >&6
1479 if test -n "$ac_ct_CC"; then
1480 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1486 test -z "$as_dir" && as_dir=.
1487 for ac_exec_ext in '' $ac_executable_extensions; do
1488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1489 ac_cv_prog_ac_ct_CC="gcc"
1490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1498 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1499 if test -n "$ac_ct_CC"; then
1500 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1501 echo "${ECHO_T}$ac_ct_CC" >&6
1503 echo "$as_me:$LINENO: result: no" >&5
1504 echo "${ECHO_T}no" >&6
1512 if test -z "$CC"; then
1513 if test -n "$ac_tool_prefix"; then
1514 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1515 set dummy ${ac_tool_prefix}cc; ac_word=$2
1516 echo "$as_me:$LINENO: checking for $ac_word" >&5
1517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1518 if test "${ac_cv_prog_CC+set}" = set; then
1519 echo $ECHO_N "(cached) $ECHO_C" >&6
1521 if test -n "$CC"; then
1522 ac_cv_prog_CC="$CC" # Let the user override the test.
1524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1528 test -z "$as_dir" && as_dir=.
1529 for ac_exec_ext in '' $ac_executable_extensions; do
1530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1531 ac_cv_prog_CC="${ac_tool_prefix}cc"
1532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1541 if test -n "$CC"; then
1542 echo "$as_me:$LINENO: result: $CC" >&5
1543 echo "${ECHO_T}$CC" >&6
1545 echo "$as_me:$LINENO: result: no" >&5
1546 echo "${ECHO_T}no" >&6
1550 if test -z "$ac_cv_prog_CC"; then
1552 # Extract the first word of "cc", so it can be a program name with args.
1553 set dummy cc; ac_word=$2
1554 echo "$as_me:$LINENO: checking for $ac_word" >&5
1555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1556 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1557 echo $ECHO_N "(cached) $ECHO_C" >&6
1559 if test -n "$ac_ct_CC"; then
1560 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1566 test -z "$as_dir" && as_dir=.
1567 for ac_exec_ext in '' $ac_executable_extensions; do
1568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1569 ac_cv_prog_ac_ct_CC="cc"
1570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1578 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1579 if test -n "$ac_ct_CC"; then
1580 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1581 echo "${ECHO_T}$ac_ct_CC" >&6
1583 echo "$as_me:$LINENO: result: no" >&5
1584 echo "${ECHO_T}no" >&6
1593 if test -z "$CC"; then
1594 # Extract the first word of "cc", so it can be a program name with args.
1595 set dummy cc; ac_word=$2
1596 echo "$as_me:$LINENO: checking for $ac_word" >&5
1597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1598 if test "${ac_cv_prog_CC+set}" = set; then
1599 echo $ECHO_N "(cached) $ECHO_C" >&6
1601 if test -n "$CC"; then
1602 ac_cv_prog_CC="$CC" # Let the user override the test.
1605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1609 test -z "$as_dir" && as_dir=.
1610 for ac_exec_ext in '' $ac_executable_extensions; do
1611 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1612 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1613 ac_prog_rejected=yes
1617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1623 if test $ac_prog_rejected = yes; then
1624 # We found a bogon in the path, so make sure we never use it.
1625 set dummy $ac_cv_prog_CC
1627 if test $# != 0; then
1628 # We chose a different compiler from the bogus one.
1629 # However, it has the same basename, so the bogon will be chosen
1630 # first if we set CC to just the basename; use the full file name.
1632 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1638 if test -n "$CC"; then
1639 echo "$as_me:$LINENO: result: $CC" >&5
1640 echo "${ECHO_T}$CC" >&6
1642 echo "$as_me:$LINENO: result: no" >&5
1643 echo "${ECHO_T}no" >&6
1647 if test -z "$CC"; then
1648 if test -n "$ac_tool_prefix"; then
1651 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1652 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1653 echo "$as_me:$LINENO: checking for $ac_word" >&5
1654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1655 if test "${ac_cv_prog_CC+set}" = set; then
1656 echo $ECHO_N "(cached) $ECHO_C" >&6
1658 if test -n "$CC"; then
1659 ac_cv_prog_CC="$CC" # Let the user override the test.
1661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1665 test -z "$as_dir" && as_dir=.
1666 for ac_exec_ext in '' $ac_executable_extensions; do
1667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1668 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1678 if test -n "$CC"; then
1679 echo "$as_me:$LINENO: result: $CC" >&5
1680 echo "${ECHO_T}$CC" >&6
1682 echo "$as_me:$LINENO: result: no" >&5
1683 echo "${ECHO_T}no" >&6
1686 test -n "$CC" && break
1689 if test -z "$CC"; then
1693 # Extract the first word of "$ac_prog", so it can be a program name with args.
1694 set dummy $ac_prog; ac_word=$2
1695 echo "$as_me:$LINENO: checking for $ac_word" >&5
1696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1697 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1698 echo $ECHO_N "(cached) $ECHO_C" >&6
1700 if test -n "$ac_ct_CC"; then
1701 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1707 test -z "$as_dir" && as_dir=.
1708 for ac_exec_ext in '' $ac_executable_extensions; do
1709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1710 ac_cv_prog_ac_ct_CC="$ac_prog"
1711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1719 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1720 if test -n "$ac_ct_CC"; then
1721 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1722 echo "${ECHO_T}$ac_ct_CC" >&6
1724 echo "$as_me:$LINENO: result: no" >&5
1725 echo "${ECHO_T}no" >&6
1728 test -n "$ac_ct_CC" && break
1737 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1738 See \`config.log' for more details." >&5
1739 echo "$as_me: error: no acceptable C compiler found in \$PATH
1740 See \`config.log' for more details." >&2;}
1741 { (exit 1); exit 1; }; }
1743 # Provide some information about the compiler.
1744 echo "$as_me:$LINENO:" \
1745 "checking for C compiler version" >&5
1746 ac_compiler=`set X $ac_compile; echo $2`
1747 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1748 (eval $ac_compiler --version </dev/null >&5) 2>&5
1750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1751 (exit $ac_status); }
1752 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1753 (eval $ac_compiler -v </dev/null >&5) 2>&5
1755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1756 (exit $ac_status); }
1757 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1758 (eval $ac_compiler -V </dev/null >&5) 2>&5
1760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1761 (exit $ac_status); }
1763 cat >conftest.$ac_ext <<_ACEOF
1766 cat confdefs.h >>conftest.$ac_ext
1767 cat >>conftest.$ac_ext <<_ACEOF
1768 /* end confdefs.h. */
1778 ac_clean_files_save=$ac_clean_files
1779 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1780 # Try to create an executable without -o first, disregard a.out.
1781 # It will help us diagnose broken compilers, and finding out an intuition
1783 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1784 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1785 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1786 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1787 (eval $ac_link_default) 2>&5
1789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1790 (exit $ac_status); }; then
1791 # Find the output, starting from the most likely. This scheme is
1792 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1795 # Be careful to initialize this variable, since it used to be cached.
1796 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1798 # b.out is created by i960 compilers.
1799 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1801 test -f "$ac_file" || continue
1803 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1806 # This is the source file.
1809 # We found the default executable, but exeext='' is most
1813 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1814 # FIXME: I believe we export ac_cv_exeext for Libtool,
1815 # but it would be cool to find out if it's true. Does anybody
1816 # maintain Libtool? --akim.
1824 echo "$as_me: failed program was:" >&5
1825 sed 's/^/| /' conftest.$ac_ext >&5
1827 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1828 See \`config.log' for more details." >&5
1829 echo "$as_me: error: C compiler cannot create executables
1830 See \`config.log' for more details." >&2;}
1831 { (exit 77); exit 77; }; }
1834 ac_exeext=$ac_cv_exeext
1835 echo "$as_me:$LINENO: result: $ac_file" >&5
1836 echo "${ECHO_T}$ac_file" >&6
1838 # Check the compiler produces executables we can run. If not, either
1839 # the compiler is broken, or we cross compile.
1840 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1841 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1842 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1843 # If not cross compiling, check that we can run a simple program.
1844 if test "$cross_compiling" != yes; then
1845 if { ac_try='./$ac_file'
1846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1850 (exit $ac_status); }; }; then
1853 if test "$cross_compiling" = maybe; then
1856 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1857 If you meant to cross compile, use \`--host'.
1858 See \`config.log' for more details." >&5
1859 echo "$as_me: error: cannot run C compiled programs.
1860 If you meant to cross compile, use \`--host'.
1861 See \`config.log' for more details." >&2;}
1862 { (exit 1); exit 1; }; }
1866 echo "$as_me:$LINENO: result: yes" >&5
1867 echo "${ECHO_T}yes" >&6
1869 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1870 ac_clean_files=$ac_clean_files_save
1871 # Check the compiler produces executables we can run. If not, either
1872 # the compiler is broken, or we cross compile.
1873 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1874 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1875 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1876 echo "${ECHO_T}$cross_compiling" >&6
1878 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1879 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1881 (eval $ac_link) 2>&5
1883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1884 (exit $ac_status); }; then
1885 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1886 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1887 # work properly (i.e., refer to `conftest.exe'), while it won't with
1889 for ac_file in conftest.exe conftest conftest.*; do
1890 test -f "$ac_file" || continue
1892 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1893 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1900 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1901 See \`config.log' for more details." >&5
1902 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1903 See \`config.log' for more details." >&2;}
1904 { (exit 1); exit 1; }; }
1907 rm -f conftest$ac_cv_exeext
1908 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1909 echo "${ECHO_T}$ac_cv_exeext" >&6
1911 rm -f conftest.$ac_ext
1912 EXEEXT=$ac_cv_exeext
1914 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1915 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1916 if test "${ac_cv_objext+set}" = set; then
1917 echo $ECHO_N "(cached) $ECHO_C" >&6
1919 cat >conftest.$ac_ext <<_ACEOF
1922 cat confdefs.h >>conftest.$ac_ext
1923 cat >>conftest.$ac_ext <<_ACEOF
1924 /* end confdefs.h. */
1934 rm -f conftest.o conftest.obj
1935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1936 (eval $ac_compile) 2>&5
1938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1939 (exit $ac_status); }; then
1940 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1942 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1943 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1948 echo "$as_me: failed program was:" >&5
1949 sed 's/^/| /' conftest.$ac_ext >&5
1951 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1952 See \`config.log' for more details." >&5
1953 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1954 See \`config.log' for more details." >&2;}
1955 { (exit 1); exit 1; }; }
1958 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1960 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1961 echo "${ECHO_T}$ac_cv_objext" >&6
1962 OBJEXT=$ac_cv_objext
1964 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1965 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1966 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1967 echo $ECHO_N "(cached) $ECHO_C" >&6
1969 cat >conftest.$ac_ext <<_ACEOF
1972 cat confdefs.h >>conftest.$ac_ext
1973 cat >>conftest.$ac_ext <<_ACEOF
1974 /* end confdefs.h. */
1987 rm -f conftest.$ac_objext
1988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1989 (eval $ac_compile) 2>conftest.er1
1991 grep -v '^ *+' conftest.er1 >conftest.err
1993 cat conftest.err >&5
1994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1995 (exit $ac_status); } &&
1996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001 (exit $ac_status); }; } &&
2002 { ac_try='test -s conftest.$ac_objext'
2003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007 (exit $ac_status); }; }; then
2010 echo "$as_me: failed program was:" >&5
2011 sed 's/^/| /' conftest.$ac_ext >&5
2015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2016 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2019 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2020 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2021 GCC=`test $ac_compiler_gnu = yes && echo yes`
2022 ac_test_CFLAGS=${CFLAGS+set}
2023 ac_save_CFLAGS=$CFLAGS
2025 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2026 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2027 if test "${ac_cv_prog_cc_g+set}" = set; then
2028 echo $ECHO_N "(cached) $ECHO_C" >&6
2030 cat >conftest.$ac_ext <<_ACEOF
2033 cat confdefs.h >>conftest.$ac_ext
2034 cat >>conftest.$ac_ext <<_ACEOF
2035 /* end confdefs.h. */
2045 rm -f conftest.$ac_objext
2046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2047 (eval $ac_compile) 2>conftest.er1
2049 grep -v '^ *+' conftest.er1 >conftest.err
2051 cat conftest.err >&5
2052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2053 (exit $ac_status); } &&
2054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2059 (exit $ac_status); }; } &&
2060 { ac_try='test -s conftest.$ac_objext'
2061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065 (exit $ac_status); }; }; then
2068 echo "$as_me: failed program was:" >&5
2069 sed 's/^/| /' conftest.$ac_ext >&5
2073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2075 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2076 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2077 if test "$ac_test_CFLAGS" = set; then
2078 CFLAGS=$ac_save_CFLAGS
2079 elif test $ac_cv_prog_cc_g = yes; then
2080 if test "$GCC" = yes; then
2086 if test "$GCC" = yes; then
2092 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2093 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2094 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2095 echo $ECHO_N "(cached) $ECHO_C" >&6
2097 ac_cv_prog_cc_stdc=no
2099 cat >conftest.$ac_ext <<_ACEOF
2102 cat confdefs.h >>conftest.$ac_ext
2103 cat >>conftest.$ac_ext <<_ACEOF
2104 /* end confdefs.h. */
2107 #include <sys/types.h>
2108 #include <sys/stat.h>
2109 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2110 struct buf { int x; };
2111 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2112 static char *e (p, i)
2118 static char *f (char * (*g) (char **, int), char **p, ...)
2123 s = g (p, va_arg (v,int));
2128 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2129 function prototypes and stuff, but not '\xHH' hex character constants.
2130 These don't provoke an error unfortunately, instead are silently treated
2131 as 'x'. The following induces an error, until -std1 is added to get
2132 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2133 array size at least. It's necessary to write '\x00'==0 to get something
2134 that's true only with -std1. */
2135 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2137 int test (int i, double x);
2138 struct s1 {int (*f) (int a);};
2139 struct s2 {int (*f) (double a);};
2140 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2146 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2151 # Don't try gcc -ansi; that turns off useful extensions and
2152 # breaks some systems' header files.
2153 # AIX -qlanglvl=ansi
2154 # Ultrix and OSF/1 -std1
2155 # HP-UX 10.20 and later -Ae
2156 # HP-UX older versions -Aa -D_HPUX_SOURCE
2157 # SVR4 -Xc -D__EXTENSIONS__
2158 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2160 CC="$ac_save_CC $ac_arg"
2161 rm -f conftest.$ac_objext
2162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2163 (eval $ac_compile) 2>conftest.er1
2165 grep -v '^ *+' conftest.er1 >conftest.err
2167 cat conftest.err >&5
2168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169 (exit $ac_status); } &&
2170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175 (exit $ac_status); }; } &&
2176 { ac_try='test -s conftest.$ac_objext'
2177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181 (exit $ac_status); }; }; then
2182 ac_cv_prog_cc_stdc=$ac_arg
2185 echo "$as_me: failed program was:" >&5
2186 sed 's/^/| /' conftest.$ac_ext >&5
2189 rm -f conftest.err conftest.$ac_objext
2191 rm -f conftest.$ac_ext conftest.$ac_objext
2196 case "x$ac_cv_prog_cc_stdc" in
2198 echo "$as_me:$LINENO: result: none needed" >&5
2199 echo "${ECHO_T}none needed" >&6 ;;
2201 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2202 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2203 CC="$CC $ac_cv_prog_cc_stdc" ;;
2206 # Some people use a C++ compiler to compile C. Since we use `exit',
2207 # in C++ we need to declare it. In case someone uses the same compiler
2208 # for both compiling C and C++ we need to have the C++ compiler decide
2209 # the declaration of exit, since it's the most demanding environment.
2210 cat >conftest.$ac_ext <<_ACEOF
2215 rm -f conftest.$ac_objext
2216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2217 (eval $ac_compile) 2>conftest.er1
2219 grep -v '^ *+' conftest.er1 >conftest.err
2221 cat conftest.err >&5
2222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223 (exit $ac_status); } &&
2224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); }; } &&
2230 { ac_try='test -s conftest.$ac_objext'
2231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); }; }; then
2236 for ac_declaration in \
2238 'extern "C" void std::exit (int) throw (); using std::exit;' \
2239 'extern "C" void std::exit (int); using std::exit;' \
2240 'extern "C" void exit (int) throw ();' \
2241 'extern "C" void exit (int);' \
2244 cat >conftest.$ac_ext <<_ACEOF
2247 cat confdefs.h >>conftest.$ac_ext
2248 cat >>conftest.$ac_ext <<_ACEOF
2249 /* end confdefs.h. */
2260 rm -f conftest.$ac_objext
2261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2262 (eval $ac_compile) 2>conftest.er1
2264 grep -v '^ *+' conftest.er1 >conftest.err
2266 cat conftest.err >&5
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); } &&
2269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }; } &&
2275 { ac_try='test -s conftest.$ac_objext'
2276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); }; }; then
2283 echo "$as_me: failed program was:" >&5
2284 sed 's/^/| /' conftest.$ac_ext >&5
2288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2289 cat >conftest.$ac_ext <<_ACEOF
2292 cat confdefs.h >>conftest.$ac_ext
2293 cat >>conftest.$ac_ext <<_ACEOF
2294 /* end confdefs.h. */
2304 rm -f conftest.$ac_objext
2305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2306 (eval $ac_compile) 2>conftest.er1
2308 grep -v '^ *+' conftest.er1 >conftest.err
2310 cat conftest.err >&5
2311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312 (exit $ac_status); } &&
2313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); }; } &&
2319 { ac_try='test -s conftest.$ac_objext'
2320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); }; }; then
2327 echo "$as_me: failed program was:" >&5
2328 sed 's/^/| /' conftest.$ac_ext >&5
2331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2334 if test -n "$ac_declaration"; then
2335 echo '#ifdef __cplusplus' >>confdefs.h
2336 echo $ac_declaration >>confdefs.h
2337 echo '#endif' >>confdefs.h
2341 echo "$as_me: failed program was:" >&5
2342 sed 's/^/| /' conftest.$ac_ext >&5
2345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2347 ac_cpp='$CPP $CPPFLAGS'
2348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2357 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2358 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2359 if test "${am_cv_prog_cc_stdc+set}" = set; then
2360 echo $ECHO_N "(cached) $ECHO_C" >&6
2362 am_cv_prog_cc_stdc=no
2364 # Don't try gcc -ansi; that turns off useful extensions and
2365 # breaks some systems' header files.
2366 # AIX -qlanglvl=ansi
2367 # Ultrix and OSF/1 -std1
2368 # HP-UX -Aa -D_HPUX_SOURCE
2369 # SVR4 -Xc -D__EXTENSIONS__
2370 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2372 CC="$ac_save_CC $ac_arg"
2373 cat >conftest.$ac_ext <<_ACEOF
2376 cat confdefs.h >>conftest.$ac_ext
2377 cat >>conftest.$ac_ext <<_ACEOF
2378 /* end confdefs.h. */
2381 #include <sys/types.h>
2382 #include <sys/stat.h>
2383 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2384 struct buf { int x; };
2385 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2386 static char *e (p, i)
2392 static char *f (char * (*g) (char **, int), char **p, ...)
2397 s = g (p, va_arg (v,int));
2401 int test (int i, double x);
2402 struct s1 {int (*f) (int a);};
2403 struct s2 {int (*f) (double a);};
2404 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2412 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2418 rm -f conftest.$ac_objext
2419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2420 (eval $ac_compile) 2>conftest.er1
2422 grep -v '^ *+' conftest.er1 >conftest.err
2424 cat conftest.err >&5
2425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426 (exit $ac_status); } &&
2427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432 (exit $ac_status); }; } &&
2433 { ac_try='test -s conftest.$ac_objext'
2434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); }; }; then
2439 am_cv_prog_cc_stdc="$ac_arg"; break
2441 echo "$as_me: failed program was:" >&5
2442 sed 's/^/| /' conftest.$ac_ext >&5
2445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2451 if test -z "$am_cv_prog_cc_stdc"; then
2452 echo "$as_me:$LINENO: result: none needed" >&5
2453 echo "${ECHO_T}none needed" >&6
2455 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2456 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2458 case "x$am_cv_prog_cc_stdc" in
2460 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2463 if test x"$CFLAGS" != x; then
2464 CFLAGS=`echo "$CFLAGS" | sed -e 's/-O2/-O3/'`
2466 if test x"$CFLAGS" != x; then
2467 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pipe//g'`
2469 if test x"$CFLAGS" != x; then
2470 unet_old_cflags=$CFLAGS
2471 CFLAGS=`echo "$CFLAGS" | sed -e 's/-g//g'`
2473 if test x"$CFLAGS" != x"$unet_old_cflags"; then
2474 # If -g was already there, force symbols to be enabled
2475 unet_cv_enable_symbols=yes
2477 if test x"$CFLAGS" != x; then
2478 unet_old_cflags=$CFLAGS
2479 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pg//g'`
2481 if test x"$CFLAGS" != x"$unet_old_cflags"; then
2482 # If -pg was already there, force profiling to be enabled
2483 unet_cv_enable_profile=yes
2485 if test x"$CFLAGS" != x; then
2486 unet_old_cflags=$CFLAGS
2487 CFLAGS=`echo "$CFLAGS" | sed -e 's/-Wall//g'`
2489 if test x"$CFLAGS" != x"$unet_old_cflags"; then
2490 # If -Wall was already there, force warnings to be enabled
2491 unet_cv_enable_warnings=yes
2493 if test x"$CFLAGS" != x; then
2494 unet_old_cflags=$CFLAGS
2495 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pedantic//g'`
2497 if test x"$CFLAGS" != x"$unet_old_cflags"; then
2498 # If -pedantic was already there, force pedatic to be enabled
2499 unet_cv_enable_pedantic=yes
2503 echo "$as_me:$LINENO: checking for library containing crypt" >&5
2504 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
2505 if test "${ac_cv_search_crypt+set}" = set; then
2506 echo $ECHO_N "(cached) $ECHO_C" >&6
2508 ac_func_search_save_LIBS=$LIBS
2509 ac_cv_search_crypt=no
2510 cat >conftest.$ac_ext <<_ACEOF
2513 cat confdefs.h >>conftest.$ac_ext
2514 cat >>conftest.$ac_ext <<_ACEOF
2515 /* end confdefs.h. */
2517 /* Override any gcc2 internal prototype to avoid an error. */
2521 /* We use char because int might match the return type of a gcc2
2522 builtin and then its argument prototype would still apply. */
2532 rm -f conftest.$ac_objext conftest$ac_exeext
2533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2534 (eval $ac_link) 2>conftest.er1
2536 grep -v '^ *+' conftest.er1 >conftest.err
2538 cat conftest.err >&5
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); } &&
2541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); }; } &&
2547 { ac_try='test -s conftest$ac_exeext'
2548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); }; }; then
2553 ac_cv_search_crypt="none required"
2555 echo "$as_me: failed program was:" >&5
2556 sed 's/^/| /' conftest.$ac_ext >&5
2559 rm -f conftest.err conftest.$ac_objext \
2560 conftest$ac_exeext conftest.$ac_ext
2561 if test "$ac_cv_search_crypt" = no; then
2562 for ac_lib in descrypt crypt; do
2563 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2564 cat >conftest.$ac_ext <<_ACEOF
2567 cat confdefs.h >>conftest.$ac_ext
2568 cat >>conftest.$ac_ext <<_ACEOF
2569 /* end confdefs.h. */
2571 /* Override any gcc2 internal prototype to avoid an error. */
2575 /* We use char because int might match the return type of a gcc2
2576 builtin and then its argument prototype would still apply. */
2586 rm -f conftest.$ac_objext conftest$ac_exeext
2587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2588 (eval $ac_link) 2>conftest.er1
2590 grep -v '^ *+' conftest.er1 >conftest.err
2592 cat conftest.err >&5
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); } &&
2595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); }; } &&
2601 { ac_try='test -s conftest$ac_exeext'
2602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); }; }; then
2607 ac_cv_search_crypt="-l$ac_lib"
2610 echo "$as_me: failed program was:" >&5
2611 sed 's/^/| /' conftest.$ac_ext >&5
2614 rm -f conftest.err conftest.$ac_objext \
2615 conftest$ac_exeext conftest.$ac_ext
2618 LIBS=$ac_func_search_save_LIBS
2620 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
2621 echo "${ECHO_T}$ac_cv_search_crypt" >&6
2622 if test "$ac_cv_search_crypt" != no; then
2623 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
2626 { { echo "$as_me:$LINENO: error: Unable to find library containing crypt()" >&5
2627 echo "$as_me: error: Unable to find library containing crypt()" >&2;}
2628 { (exit 1); exit 1; }; }
2633 # Most operating systems have gethostbyname() in the default searched
2634 # libraries (i.e. libc):
2635 echo "$as_me:$LINENO: checking for gethostbyname" >&5
2636 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
2637 if test "${ac_cv_func_gethostbyname+set}" = set; then
2638 echo $ECHO_N "(cached) $ECHO_C" >&6
2640 cat >conftest.$ac_ext <<_ACEOF
2643 cat confdefs.h >>conftest.$ac_ext
2644 cat >>conftest.$ac_ext <<_ACEOF
2645 /* end confdefs.h. */
2646 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
2647 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2648 #define gethostbyname innocuous_gethostbyname
2650 /* System header to define __stub macros and hopefully few prototypes,
2651 which can conflict with char gethostbyname (); below.
2652 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2653 <limits.h> exists even on freestanding compilers. */
2656 # include <limits.h>
2658 # include <assert.h>
2661 #undef gethostbyname
2663 /* Override any gcc2 internal prototype to avoid an error. */
2668 /* We use char because int might match the return type of a gcc2
2669 builtin and then its argument prototype would still apply. */
2670 char gethostbyname ();
2671 /* The GNU C library defines this for functions which it implements
2672 to always fail with ENOSYS. Some functions are actually named
2673 something starting with __ and the normal name is an alias. */
2674 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2677 char (*f) () = gethostbyname;
2686 return f != gethostbyname;
2691 rm -f conftest.$ac_objext conftest$ac_exeext
2692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2693 (eval $ac_link) 2>conftest.er1
2695 grep -v '^ *+' conftest.er1 >conftest.err
2697 cat conftest.err >&5
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); } &&
2700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); }; } &&
2706 { ac_try='test -s conftest$ac_exeext'
2707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); }; }; then
2712 ac_cv_func_gethostbyname=yes
2714 echo "$as_me: failed program was:" >&5
2715 sed 's/^/| /' conftest.$ac_ext >&5
2717 ac_cv_func_gethostbyname=no
2719 rm -f conftest.err conftest.$ac_objext \
2720 conftest$ac_exeext conftest.$ac_ext
2722 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
2723 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
2724 if test $ac_cv_func_gethostbyname = yes; then
2727 # Some OSes (eg. Solaris) place it in libnsl:
2729 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
2730 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
2731 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
2732 echo $ECHO_N "(cached) $ECHO_C" >&6
2734 ac_check_lib_save_LIBS=$LIBS
2736 cat >conftest.$ac_ext <<_ACEOF
2739 cat confdefs.h >>conftest.$ac_ext
2740 cat >>conftest.$ac_ext <<_ACEOF
2741 /* end confdefs.h. */
2743 /* Override any gcc2 internal prototype to avoid an error. */
2747 /* We use char because int might match the return type of a gcc2
2748 builtin and then its argument prototype would still apply. */
2749 char gethostbyname ();
2758 rm -f conftest.$ac_objext conftest$ac_exeext
2759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2760 (eval $ac_link) 2>conftest.er1
2762 grep -v '^ *+' conftest.er1 >conftest.err
2764 cat conftest.err >&5
2765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766 (exit $ac_status); } &&
2767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); }; } &&
2773 { ac_try='test -s conftest$ac_exeext'
2774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); }; }; then
2779 ac_cv_lib_nsl_gethostbyname=yes
2781 echo "$as_me: failed program was:" >&5
2782 sed 's/^/| /' conftest.$ac_ext >&5
2784 ac_cv_lib_nsl_gethostbyname=no
2786 rm -f conftest.err conftest.$ac_objext \
2787 conftest$ac_exeext conftest.$ac_ext
2788 LIBS=$ac_check_lib_save_LIBS
2790 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
2791 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
2792 if test $ac_cv_lib_nsl_gethostbyname = yes; then
2793 cat >>confdefs.h <<_ACEOF
2794 #define HAVE_LIBNSL 1
2800 # Some strange OSes (SINIX) have it in libsocket:
2802 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
2803 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
2804 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
2805 echo $ECHO_N "(cached) $ECHO_C" >&6
2807 ac_check_lib_save_LIBS=$LIBS
2808 LIBS="-lsocket $LIBS"
2809 cat >conftest.$ac_ext <<_ACEOF
2812 cat confdefs.h >>conftest.$ac_ext
2813 cat >>conftest.$ac_ext <<_ACEOF
2814 /* end confdefs.h. */
2816 /* Override any gcc2 internal prototype to avoid an error. */
2820 /* We use char because int might match the return type of a gcc2
2821 builtin and then its argument prototype would still apply. */
2822 char gethostbyname ();
2831 rm -f conftest.$ac_objext conftest$ac_exeext
2832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2833 (eval $ac_link) 2>conftest.er1
2835 grep -v '^ *+' conftest.er1 >conftest.err
2837 cat conftest.err >&5
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); } &&
2840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); }; } &&
2846 { ac_try='test -s conftest$ac_exeext'
2847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851 (exit $ac_status); }; }; then
2852 ac_cv_lib_socket_gethostbyname=yes
2854 echo "$as_me: failed program was:" >&5
2855 sed 's/^/| /' conftest.$ac_ext >&5
2857 ac_cv_lib_socket_gethostbyname=no
2859 rm -f conftest.err conftest.$ac_objext \
2860 conftest$ac_exeext conftest.$ac_ext
2861 LIBS=$ac_check_lib_save_LIBS
2863 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
2864 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
2865 if test $ac_cv_lib_socket_gethostbyname = yes; then
2866 cat >>confdefs.h <<_ACEOF
2867 #define HAVE_LIBSOCKET 1
2870 LIBS="-lsocket $LIBS"
2873 # Unfortunately libsocket sometimes depends on libnsl.
2874 # AC_CHECK_LIB's API is essentially broken so the following
2875 # ugliness is necessary:
2876 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
2877 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
2878 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
2879 echo $ECHO_N "(cached) $ECHO_C" >&6
2881 ac_check_lib_save_LIBS=$LIBS
2882 LIBS="-lsocket -lnsl $LIBS"
2883 cat >conftest.$ac_ext <<_ACEOF
2886 cat confdefs.h >>conftest.$ac_ext
2887 cat >>conftest.$ac_ext <<_ACEOF
2888 /* end confdefs.h. */
2890 /* Override any gcc2 internal prototype to avoid an error. */
2894 /* We use char because int might match the return type of a gcc2
2895 builtin and then its argument prototype would still apply. */
2896 char gethostbyname ();
2905 rm -f conftest.$ac_objext conftest$ac_exeext
2906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2907 (eval $ac_link) 2>conftest.er1
2909 grep -v '^ *+' conftest.er1 >conftest.err
2911 cat conftest.err >&5
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); } &&
2914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919 (exit $ac_status); }; } &&
2920 { ac_try='test -s conftest$ac_exeext'
2921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); }; }; then
2926 ac_cv_lib_socket_gethostbyname=yes
2928 echo "$as_me: failed program was:" >&5
2929 sed 's/^/| /' conftest.$ac_ext >&5
2931 ac_cv_lib_socket_gethostbyname=no
2933 rm -f conftest.err conftest.$ac_objext \
2934 conftest$ac_exeext conftest.$ac_ext
2935 LIBS=$ac_check_lib_save_LIBS
2937 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
2938 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
2939 if test $ac_cv_lib_socket_gethostbyname = yes; then
2940 LIBS="-lsocket -lnsl $LIBS"
2943 echo "$as_me:$LINENO: checking for gethostbyname in -lresolv" >&5
2944 echo $ECHO_N "checking for gethostbyname in -lresolv... $ECHO_C" >&6
2945 if test "${ac_cv_lib_resolv_gethostbyname+set}" = set; then
2946 echo $ECHO_N "(cached) $ECHO_C" >&6
2948 ac_check_lib_save_LIBS=$LIBS
2949 LIBS="-lresolv $LIBS"
2950 cat >conftest.$ac_ext <<_ACEOF
2953 cat confdefs.h >>conftest.$ac_ext
2954 cat >>conftest.$ac_ext <<_ACEOF
2955 /* end confdefs.h. */
2957 /* Override any gcc2 internal prototype to avoid an error. */
2961 /* We use char because int might match the return type of a gcc2
2962 builtin and then its argument prototype would still apply. */
2963 char gethostbyname ();
2972 rm -f conftest.$ac_objext conftest$ac_exeext
2973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2974 (eval $ac_link) 2>conftest.er1
2976 grep -v '^ *+' conftest.er1 >conftest.err
2978 cat conftest.err >&5
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); } &&
2981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); }; } &&
2987 { ac_try='test -s conftest$ac_exeext'
2988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); }; }; then
2993 ac_cv_lib_resolv_gethostbyname=yes
2995 echo "$as_me: failed program was:" >&5
2996 sed 's/^/| /' conftest.$ac_ext >&5
2998 ac_cv_lib_resolv_gethostbyname=no
3000 rm -f conftest.err conftest.$ac_objext \
3001 conftest$ac_exeext conftest.$ac_ext
3002 LIBS=$ac_check_lib_save_LIBS
3004 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname" >&5
3005 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname" >&6
3006 if test $ac_cv_lib_resolv_gethostbyname = yes; then
3007 cat >>confdefs.h <<_ACEOF
3008 #define HAVE_LIBRESOLV 1
3011 LIBS="-lresolv $LIBS"
3026 echo "$as_me:$LINENO: checking for socket" >&5
3027 echo $ECHO_N "checking for socket... $ECHO_C" >&6
3028 if test "${ac_cv_func_socket+set}" = set; then
3029 echo $ECHO_N "(cached) $ECHO_C" >&6
3031 cat >conftest.$ac_ext <<_ACEOF
3034 cat confdefs.h >>conftest.$ac_ext
3035 cat >>conftest.$ac_ext <<_ACEOF
3036 /* end confdefs.h. */
3037 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
3038 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3039 #define socket innocuous_socket
3041 /* System header to define __stub macros and hopefully few prototypes,
3042 which can conflict with char socket (); below.
3043 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3044 <limits.h> exists even on freestanding compilers. */
3047 # include <limits.h>
3049 # include <assert.h>
3054 /* Override any gcc2 internal prototype to avoid an error. */
3059 /* We use char because int might match the return type of a gcc2
3060 builtin and then its argument prototype would still apply. */
3062 /* The GNU C library defines this for functions which it implements
3063 to always fail with ENOSYS. Some functions are actually named
3064 something starting with __ and the normal name is an alias. */
3065 #if defined (__stub_socket) || defined (__stub___socket)
3068 char (*f) () = socket;
3082 rm -f conftest.$ac_objext conftest$ac_exeext
3083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3084 (eval $ac_link) 2>conftest.er1
3086 grep -v '^ *+' conftest.er1 >conftest.err
3088 cat conftest.err >&5
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); } &&
3091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); }; } &&
3097 { ac_try='test -s conftest$ac_exeext'
3098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); }; }; then
3103 ac_cv_func_socket=yes
3105 echo "$as_me: failed program was:" >&5
3106 sed 's/^/| /' conftest.$ac_ext >&5
3108 ac_cv_func_socket=no
3110 rm -f conftest.err conftest.$ac_objext \
3111 conftest$ac_exeext conftest.$ac_ext
3113 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
3114 echo "${ECHO_T}$ac_cv_func_socket" >&6
3115 if test $ac_cv_func_socket = yes; then
3119 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3120 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3121 if test "${ac_cv_lib_socket_socket+set}" = set; then
3122 echo $ECHO_N "(cached) $ECHO_C" >&6
3124 ac_check_lib_save_LIBS=$LIBS
3125 LIBS="-lsocket $LIBS"
3126 cat >conftest.$ac_ext <<_ACEOF
3129 cat confdefs.h >>conftest.$ac_ext
3130 cat >>conftest.$ac_ext <<_ACEOF
3131 /* end confdefs.h. */
3133 /* Override any gcc2 internal prototype to avoid an error. */
3137 /* We use char because int might match the return type of a gcc2
3138 builtin and then its argument prototype would still apply. */
3148 rm -f conftest.$ac_objext conftest$ac_exeext
3149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3150 (eval $ac_link) 2>conftest.er1
3152 grep -v '^ *+' conftest.er1 >conftest.err
3154 cat conftest.err >&5
3155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156 (exit $ac_status); } &&
3157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162 (exit $ac_status); }; } &&
3163 { ac_try='test -s conftest$ac_exeext'
3164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); }; }; then
3169 ac_cv_lib_socket_socket=yes
3171 echo "$as_me: failed program was:" >&5
3172 sed 's/^/| /' conftest.$ac_ext >&5
3174 ac_cv_lib_socket_socket=no
3176 rm -f conftest.err conftest.$ac_objext \
3177 conftest$ac_exeext conftest.$ac_ext
3178 LIBS=$ac_check_lib_save_LIBS
3180 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3181 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3182 if test $ac_cv_lib_socket_socket = yes; then
3183 cat >>confdefs.h <<_ACEOF
3184 #define HAVE_LIBSOCKET 1
3187 LIBS="-lsocket $LIBS"
3190 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3191 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3192 if test "${ac_cv_lib_socket_socket+set}" = set; then
3193 echo $ECHO_N "(cached) $ECHO_C" >&6
3195 ac_check_lib_save_LIBS=$LIBS
3196 LIBS="-lsocket -lnsl $LIBS"
3197 cat >conftest.$ac_ext <<_ACEOF
3200 cat confdefs.h >>conftest.$ac_ext
3201 cat >>conftest.$ac_ext <<_ACEOF
3202 /* end confdefs.h. */
3204 /* Override any gcc2 internal prototype to avoid an error. */
3208 /* We use char because int might match the return type of a gcc2
3209 builtin and then its argument prototype would still apply. */
3219 rm -f conftest.$ac_objext conftest$ac_exeext
3220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3221 (eval $ac_link) 2>conftest.er1
3223 grep -v '^ *+' conftest.er1 >conftest.err
3225 cat conftest.err >&5
3226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227 (exit $ac_status); } &&
3228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233 (exit $ac_status); }; } &&
3234 { ac_try='test -s conftest$ac_exeext'
3235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); }; }; then
3240 ac_cv_lib_socket_socket=yes
3242 echo "$as_me: failed program was:" >&5
3243 sed 's/^/| /' conftest.$ac_ext >&5
3245 ac_cv_lib_socket_socket=no
3247 rm -f conftest.err conftest.$ac_objext \
3248 conftest$ac_exeext conftest.$ac_ext
3249 LIBS=$ac_check_lib_save_LIBS
3251 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3252 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3253 if test $ac_cv_lib_socket_socket = yes; then
3254 LIBS="-lsocket -lnsl $LIBS"
3264 ac_cpp='$CPP $CPPFLAGS'
3265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3268 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3269 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3270 # On Suns, sometimes $CPP names a directory.
3271 if test -n "$CPP" && test -d "$CPP"; then
3274 if test -z "$CPP"; then
3275 if test "${ac_cv_prog_CPP+set}" = set; then
3276 echo $ECHO_N "(cached) $ECHO_C" >&6
3278 # Double quotes because CPP needs to be expanded
3279 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3282 for ac_c_preproc_warn_flag in '' yes
3284 # Use a header file that comes with gcc, so configuring glibc
3285 # with a fresh cross-compiler works.
3286 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3287 # <limits.h> exists even on freestanding compilers.
3288 # On the NeXT, cc -E runs the code through the compiler's parser,
3289 # not just through cpp. "Syntax error" is here to catch this case.
3290 cat >conftest.$ac_ext <<_ACEOF
3293 cat confdefs.h >>conftest.$ac_ext
3294 cat >>conftest.$ac_ext <<_ACEOF
3295 /* end confdefs.h. */
3297 # include <limits.h>
3299 # include <assert.h>
3303 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3304 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3306 grep -v '^ *+' conftest.er1 >conftest.err
3308 cat conftest.err >&5
3309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310 (exit $ac_status); } >/dev/null; then
3311 if test -s conftest.err; then
3312 ac_cpp_err=$ac_c_preproc_warn_flag
3313 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3320 if test -z "$ac_cpp_err"; then
3323 echo "$as_me: failed program was:" >&5
3324 sed 's/^/| /' conftest.$ac_ext >&5
3326 # Broken: fails on valid input.
3329 rm -f conftest.err conftest.$ac_ext
3331 # OK, works on sane cases. Now check whether non-existent headers
3332 # can be detected and how.
3333 cat >conftest.$ac_ext <<_ACEOF
3336 cat confdefs.h >>conftest.$ac_ext
3337 cat >>conftest.$ac_ext <<_ACEOF
3338 /* end confdefs.h. */
3339 #include <ac_nonexistent.h>
3341 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3342 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3344 grep -v '^ *+' conftest.er1 >conftest.err
3346 cat conftest.err >&5
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); } >/dev/null; then
3349 if test -s conftest.err; then
3350 ac_cpp_err=$ac_c_preproc_warn_flag
3351 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3358 if test -z "$ac_cpp_err"; then
3359 # Broken: success on invalid input.
3362 echo "$as_me: failed program was:" >&5
3363 sed 's/^/| /' conftest.$ac_ext >&5
3365 # Passes both tests.
3369 rm -f conftest.err conftest.$ac_ext
3372 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3373 rm -f conftest.err conftest.$ac_ext
3374 if $ac_preproc_ok; then
3386 echo "$as_me:$LINENO: result: $CPP" >&5
3387 echo "${ECHO_T}$CPP" >&6
3389 for ac_c_preproc_warn_flag in '' yes
3391 # Use a header file that comes with gcc, so configuring glibc
3392 # with a fresh cross-compiler works.
3393 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3394 # <limits.h> exists even on freestanding compilers.
3395 # On the NeXT, cc -E runs the code through the compiler's parser,
3396 # not just through cpp. "Syntax error" is here to catch this case.
3397 cat >conftest.$ac_ext <<_ACEOF
3400 cat confdefs.h >>conftest.$ac_ext
3401 cat >>conftest.$ac_ext <<_ACEOF
3402 /* end confdefs.h. */
3404 # include <limits.h>
3406 # include <assert.h>
3410 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3411 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3413 grep -v '^ *+' conftest.er1 >conftest.err
3415 cat conftest.err >&5
3416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417 (exit $ac_status); } >/dev/null; then
3418 if test -s conftest.err; then
3419 ac_cpp_err=$ac_c_preproc_warn_flag
3420 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3427 if test -z "$ac_cpp_err"; then
3430 echo "$as_me: failed program was:" >&5
3431 sed 's/^/| /' conftest.$ac_ext >&5
3433 # Broken: fails on valid input.
3436 rm -f conftest.err conftest.$ac_ext
3438 # OK, works on sane cases. Now check whether non-existent headers
3439 # can be detected and how.
3440 cat >conftest.$ac_ext <<_ACEOF
3443 cat confdefs.h >>conftest.$ac_ext
3444 cat >>conftest.$ac_ext <<_ACEOF
3445 /* end confdefs.h. */
3446 #include <ac_nonexistent.h>
3448 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3449 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3451 grep -v '^ *+' conftest.er1 >conftest.err
3453 cat conftest.err >&5
3454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455 (exit $ac_status); } >/dev/null; then
3456 if test -s conftest.err; then
3457 ac_cpp_err=$ac_c_preproc_warn_flag
3458 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3465 if test -z "$ac_cpp_err"; then
3466 # Broken: success on invalid input.
3469 echo "$as_me: failed program was:" >&5
3470 sed 's/^/| /' conftest.$ac_ext >&5
3472 # Passes both tests.
3476 rm -f conftest.err conftest.$ac_ext
3479 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3480 rm -f conftest.err conftest.$ac_ext
3481 if $ac_preproc_ok; then
3484 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3485 See \`config.log' for more details." >&5
3486 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3487 See \`config.log' for more details." >&2;}
3488 { (exit 1); exit 1; }; }
3492 ac_cpp='$CPP $CPPFLAGS'
3493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3498 echo "$as_me:$LINENO: checking for egrep" >&5
3499 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3500 if test "${ac_cv_prog_egrep+set}" = set; then
3501 echo $ECHO_N "(cached) $ECHO_C" >&6
3503 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3504 then ac_cv_prog_egrep='grep -E'
3505 else ac_cv_prog_egrep='egrep'
3508 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3509 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3510 EGREP=$ac_cv_prog_egrep
3513 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3514 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3515 if test "${ac_cv_header_stdc+set}" = set; then
3516 echo $ECHO_N "(cached) $ECHO_C" >&6
3518 cat >conftest.$ac_ext <<_ACEOF
3521 cat confdefs.h >>conftest.$ac_ext
3522 cat >>conftest.$ac_ext <<_ACEOF
3523 /* end confdefs.h. */
3537 rm -f conftest.$ac_objext
3538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3539 (eval $ac_compile) 2>conftest.er1
3541 grep -v '^ *+' conftest.er1 >conftest.err
3543 cat conftest.err >&5
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); } &&
3546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); }; } &&
3552 { ac_try='test -s conftest.$ac_objext'
3553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557 (exit $ac_status); }; }; then
3558 ac_cv_header_stdc=yes
3560 echo "$as_me: failed program was:" >&5
3561 sed 's/^/| /' conftest.$ac_ext >&5
3563 ac_cv_header_stdc=no
3565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3567 if test $ac_cv_header_stdc = yes; then
3568 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3569 cat >conftest.$ac_ext <<_ACEOF
3572 cat confdefs.h >>conftest.$ac_ext
3573 cat >>conftest.$ac_ext <<_ACEOF
3574 /* end confdefs.h. */
3578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3579 $EGREP "memchr" >/dev/null 2>&1; then
3582 ac_cv_header_stdc=no
3588 if test $ac_cv_header_stdc = yes; then
3589 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3590 cat >conftest.$ac_ext <<_ACEOF
3593 cat confdefs.h >>conftest.$ac_ext
3594 cat >>conftest.$ac_ext <<_ACEOF
3595 /* end confdefs.h. */
3599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3600 $EGREP "free" >/dev/null 2>&1; then
3603 ac_cv_header_stdc=no
3609 if test $ac_cv_header_stdc = yes; then
3610 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3611 if test "$cross_compiling" = yes; then
3614 cat >conftest.$ac_ext <<_ACEOF
3617 cat confdefs.h >>conftest.$ac_ext
3618 cat >>conftest.$ac_ext <<_ACEOF
3619 /* end confdefs.h. */
3621 #if ((' ' & 0x0FF) == 0x020)
3622 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3623 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3625 # define ISLOWER(c) \
3626 (('a' <= (c) && (c) <= 'i') \
3627 || ('j' <= (c) && (c) <= 'r') \
3628 || ('s' <= (c) && (c) <= 'z'))
3629 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3632 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3637 for (i = 0; i < 256; i++)
3638 if (XOR (islower (i), ISLOWER (i))
3639 || toupper (i) != TOUPPER (i))
3644 rm -f conftest$ac_exeext
3645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3646 (eval $ac_link) 2>&5
3648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654 (exit $ac_status); }; }; then
3657 echo "$as_me: program exited with status $ac_status" >&5
3658 echo "$as_me: failed program was:" >&5
3659 sed 's/^/| /' conftest.$ac_ext >&5
3662 ac_cv_header_stdc=no
3664 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3668 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3669 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3670 if test $ac_cv_header_stdc = yes; then
3672 cat >>confdefs.h <<\_ACEOF
3673 #define STDC_HEADERS 1
3678 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3688 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3689 inttypes.h stdint.h unistd.h
3691 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3692 echo "$as_me:$LINENO: checking for $ac_header" >&5
3693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3694 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3695 echo $ECHO_N "(cached) $ECHO_C" >&6
3697 cat >conftest.$ac_ext <<_ACEOF
3700 cat confdefs.h >>conftest.$ac_ext
3701 cat >>conftest.$ac_ext <<_ACEOF
3702 /* end confdefs.h. */
3703 $ac_includes_default
3705 #include <$ac_header>
3707 rm -f conftest.$ac_objext
3708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3709 (eval $ac_compile) 2>conftest.er1
3711 grep -v '^ *+' conftest.er1 >conftest.err
3713 cat conftest.err >&5
3714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715 (exit $ac_status); } &&
3716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721 (exit $ac_status); }; } &&
3722 { ac_try='test -s conftest.$ac_objext'
3723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); }; }; then
3728 eval "$as_ac_Header=yes"
3730 echo "$as_me: failed program was:" >&5
3731 sed 's/^/| /' conftest.$ac_ext >&5
3733 eval "$as_ac_Header=no"
3735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3738 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3739 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3740 cat >>confdefs.h <<_ACEOF
3741 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3757 for ac_header in crypt.h poll.h stdint.h sys/devpoll.h sys/epoll.h sys/event.h sys/param.h sys/socket.h
3759 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3761 echo "$as_me:$LINENO: checking for $ac_header" >&5
3762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3764 echo $ECHO_N "(cached) $ECHO_C" >&6
3766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3767 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3769 # Is the header compilable?
3770 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3771 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3772 cat >conftest.$ac_ext <<_ACEOF
3775 cat confdefs.h >>conftest.$ac_ext
3776 cat >>conftest.$ac_ext <<_ACEOF
3777 /* end confdefs.h. */
3778 $ac_includes_default
3779 #include <$ac_header>
3781 rm -f conftest.$ac_objext
3782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3783 (eval $ac_compile) 2>conftest.er1
3785 grep -v '^ *+' conftest.er1 >conftest.err
3787 cat conftest.err >&5
3788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789 (exit $ac_status); } &&
3790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 (exit $ac_status); }; } &&
3796 { ac_try='test -s conftest.$ac_objext'
3797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); }; }; then
3802 ac_header_compiler=yes
3804 echo "$as_me: failed program was:" >&5
3805 sed 's/^/| /' conftest.$ac_ext >&5
3807 ac_header_compiler=no
3809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3810 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3811 echo "${ECHO_T}$ac_header_compiler" >&6
3813 # Is the header present?
3814 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3815 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3816 cat >conftest.$ac_ext <<_ACEOF
3819 cat confdefs.h >>conftest.$ac_ext
3820 cat >>conftest.$ac_ext <<_ACEOF
3821 /* end confdefs.h. */
3822 #include <$ac_header>
3824 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3825 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3827 grep -v '^ *+' conftest.er1 >conftest.err
3829 cat conftest.err >&5
3830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831 (exit $ac_status); } >/dev/null; then
3832 if test -s conftest.err; then
3833 ac_cpp_err=$ac_c_preproc_warn_flag
3834 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3841 if test -z "$ac_cpp_err"; then
3842 ac_header_preproc=yes
3844 echo "$as_me: failed program was:" >&5
3845 sed 's/^/| /' conftest.$ac_ext >&5
3847 ac_header_preproc=no
3849 rm -f conftest.err conftest.$ac_ext
3850 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3851 echo "${ECHO_T}$ac_header_preproc" >&6
3853 # So? What about this header?
3854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3856 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3857 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3859 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3860 ac_header_preproc=yes
3863 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3864 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3865 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3866 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3867 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3868 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3869 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3870 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3871 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3872 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3873 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3874 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3877 ## ------------------------------------------ ##
3878 ## Report this to the AC_PACKAGE_NAME lists. ##
3879 ## ------------------------------------------ ##
3882 sed "s/^/$as_me: WARNING: /" >&2
3885 echo "$as_me:$LINENO: checking for $ac_header" >&5
3886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3888 echo $ECHO_N "(cached) $ECHO_C" >&6
3890 eval "$as_ac_Header=\$ac_header_preproc"
3892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3893 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3896 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3897 cat >>confdefs.h <<_ACEOF
3898 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3906 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3907 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3908 if test "${ac_cv_c_bigendian+set}" = set; then
3909 echo $ECHO_N "(cached) $ECHO_C" >&6
3911 # See if sys/param.h defines the BYTE_ORDER macro.
3912 cat >conftest.$ac_ext <<_ACEOF
3915 cat confdefs.h >>conftest.$ac_ext
3916 cat >>conftest.$ac_ext <<_ACEOF
3917 /* end confdefs.h. */
3918 #include <sys/types.h>
3919 #include <sys/param.h>
3924 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3932 rm -f conftest.$ac_objext
3933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3934 (eval $ac_compile) 2>conftest.er1
3936 grep -v '^ *+' conftest.er1 >conftest.err
3938 cat conftest.err >&5
3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); } &&
3941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946 (exit $ac_status); }; } &&
3947 { ac_try='test -s conftest.$ac_objext'
3948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952 (exit $ac_status); }; }; then
3953 # It does; now see whether it defined to BIG_ENDIAN or not.
3954 cat >conftest.$ac_ext <<_ACEOF
3957 cat confdefs.h >>conftest.$ac_ext
3958 cat >>conftest.$ac_ext <<_ACEOF
3959 /* end confdefs.h. */
3960 #include <sys/types.h>
3961 #include <sys/param.h>
3966 #if BYTE_ORDER != BIG_ENDIAN
3974 rm -f conftest.$ac_objext
3975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3976 (eval $ac_compile) 2>conftest.er1
3978 grep -v '^ *+' conftest.er1 >conftest.err
3980 cat conftest.err >&5
3981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3982 (exit $ac_status); } &&
3983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3988 (exit $ac_status); }; } &&
3989 { ac_try='test -s conftest.$ac_objext'
3990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); }; }; then
3995 ac_cv_c_bigendian=yes
3997 echo "$as_me: failed program was:" >&5
3998 sed 's/^/| /' conftest.$ac_ext >&5
4000 ac_cv_c_bigendian=no
4002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4004 echo "$as_me: failed program was:" >&5
4005 sed 's/^/| /' conftest.$ac_ext >&5
4007 # It does not; compile a test program.
4008 if test "$cross_compiling" = yes; then
4009 # try to guess the endianness by grepping values into an object file
4010 ac_cv_c_bigendian=unknown
4011 cat >conftest.$ac_ext <<_ACEOF
4014 cat confdefs.h >>conftest.$ac_ext
4015 cat >>conftest.$ac_ext <<_ACEOF
4016 /* end confdefs.h. */
4017 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4018 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4019 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4020 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4021 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4022 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4026 _ascii (); _ebcdic ();
4031 rm -f conftest.$ac_objext
4032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4033 (eval $ac_compile) 2>conftest.er1
4035 grep -v '^ *+' conftest.er1 >conftest.err
4037 cat conftest.err >&5
4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039 (exit $ac_status); } &&
4040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045 (exit $ac_status); }; } &&
4046 { ac_try='test -s conftest.$ac_objext'
4047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); }; }; then
4052 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4053 ac_cv_c_bigendian=yes
4055 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4056 if test "$ac_cv_c_bigendian" = unknown; then
4057 ac_cv_c_bigendian=no
4059 # finding both strings is unlikely to happen, but who knows?
4060 ac_cv_c_bigendian=unknown
4064 echo "$as_me: failed program was:" >&5
4065 sed 's/^/| /' conftest.$ac_ext >&5
4068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4070 cat >conftest.$ac_ext <<_ACEOF
4073 cat confdefs.h >>conftest.$ac_ext
4074 cat >>conftest.$ac_ext <<_ACEOF
4075 /* end confdefs.h. */
4079 /* Are we little or big endian? From Harbison&Steele. */
4083 char c[sizeof (long)];
4086 exit (u.c[sizeof (long) - 1] == 1);
4089 rm -f conftest$ac_exeext
4090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4091 (eval $ac_link) 2>&5
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); }; }; then
4100 ac_cv_c_bigendian=no
4102 echo "$as_me: program exited with status $ac_status" >&5
4103 echo "$as_me: failed program was:" >&5
4104 sed 's/^/| /' conftest.$ac_ext >&5
4107 ac_cv_c_bigendian=yes
4109 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4114 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4115 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4116 case $ac_cv_c_bigendian in
4119 cat >>confdefs.h <<\_ACEOF
4120 #define WORDS_BIGENDIAN 1
4126 { { echo "$as_me:$LINENO: error: unknown endianness
4127 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4128 echo "$as_me: error: unknown endianness
4129 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4130 { (exit 1); exit 1; }; } ;;
4133 echo "$as_me:$LINENO: checking for size_t" >&5
4134 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4135 if test "${ac_cv_type_size_t+set}" = set; then
4136 echo $ECHO_N "(cached) $ECHO_C" >&6
4138 cat >conftest.$ac_ext <<_ACEOF
4141 cat confdefs.h >>conftest.$ac_ext
4142 cat >>conftest.$ac_ext <<_ACEOF
4143 /* end confdefs.h. */
4144 $ac_includes_default
4150 if (sizeof (size_t))
4156 rm -f conftest.$ac_objext
4157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4158 (eval $ac_compile) 2>conftest.er1
4160 grep -v '^ *+' conftest.er1 >conftest.err
4162 cat conftest.err >&5
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); } &&
4165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); }; } &&
4171 { ac_try='test -s conftest.$ac_objext'
4172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); }; }; then
4177 ac_cv_type_size_t=yes
4179 echo "$as_me: failed program was:" >&5
4180 sed 's/^/| /' conftest.$ac_ext >&5
4182 ac_cv_type_size_t=no
4184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4186 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4187 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4188 if test $ac_cv_type_size_t = yes; then
4192 cat >>confdefs.h <<_ACEOF
4193 #define size_t unsigned
4198 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4199 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4200 if test "${ac_cv_header_time+set}" = set; then
4201 echo $ECHO_N "(cached) $ECHO_C" >&6
4203 cat >conftest.$ac_ext <<_ACEOF
4206 cat confdefs.h >>conftest.$ac_ext
4207 cat >>conftest.$ac_ext <<_ACEOF
4208 /* end confdefs.h. */
4209 #include <sys/types.h>
4210 #include <sys/time.h>
4216 if ((struct tm *) 0)
4222 rm -f conftest.$ac_objext
4223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4224 (eval $ac_compile) 2>conftest.er1
4226 grep -v '^ *+' conftest.er1 >conftest.err
4228 cat conftest.err >&5
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); } &&
4231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); }; } &&
4237 { ac_try='test -s conftest.$ac_objext'
4238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242 (exit $ac_status); }; }; then
4243 ac_cv_header_time=yes
4245 echo "$as_me: failed program was:" >&5
4246 sed 's/^/| /' conftest.$ac_ext >&5
4248 ac_cv_header_time=no
4250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4252 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4253 echo "${ECHO_T}$ac_cv_header_time" >&6
4254 if test $ac_cv_header_time = yes; then
4256 cat >>confdefs.h <<\_ACEOF
4257 #define TIME_WITH_SYS_TIME 1
4262 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4263 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4264 if test "${ac_cv_struct_tm+set}" = set; then
4265 echo $ECHO_N "(cached) $ECHO_C" >&6
4267 cat >conftest.$ac_ext <<_ACEOF
4270 cat confdefs.h >>conftest.$ac_ext
4271 cat >>conftest.$ac_ext <<_ACEOF
4272 /* end confdefs.h. */
4273 #include <sys/types.h>
4279 struct tm *tp; tp->tm_sec;
4284 rm -f conftest.$ac_objext
4285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4286 (eval $ac_compile) 2>conftest.er1
4288 grep -v '^ *+' conftest.er1 >conftest.err
4290 cat conftest.err >&5
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); } &&
4293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); }; } &&
4299 { ac_try='test -s conftest.$ac_objext'
4300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); }; }; then
4305 ac_cv_struct_tm=time.h
4307 echo "$as_me: failed program was:" >&5
4308 sed 's/^/| /' conftest.$ac_ext >&5
4310 ac_cv_struct_tm=sys/time.h
4312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4314 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4315 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4316 if test $ac_cv_struct_tm = sys/time.h; then
4318 cat >>confdefs.h <<\_ACEOF
4319 #define TM_IN_SYS_TIME 1
4324 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
4325 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
4326 if test "${ac_cv_type_uid_t+set}" = set; then
4327 echo $ECHO_N "(cached) $ECHO_C" >&6
4329 cat >conftest.$ac_ext <<_ACEOF
4332 cat confdefs.h >>conftest.$ac_ext
4333 cat >>conftest.$ac_ext <<_ACEOF
4334 /* end confdefs.h. */
4335 #include <sys/types.h>
4338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4339 $EGREP "uid_t" >/dev/null 2>&1; then
4340 ac_cv_type_uid_t=yes
4347 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
4348 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
4349 if test $ac_cv_type_uid_t = no; then
4351 cat >>confdefs.h <<\_ACEOF
4356 cat >>confdefs.h <<\_ACEOF
4362 echo "$as_me:$LINENO: checking for short" >&5
4363 echo $ECHO_N "checking for short... $ECHO_C" >&6
4364 if test "${ac_cv_type_short+set}" = set; then
4365 echo $ECHO_N "(cached) $ECHO_C" >&6
4367 cat >conftest.$ac_ext <<_ACEOF
4370 cat confdefs.h >>conftest.$ac_ext
4371 cat >>conftest.$ac_ext <<_ACEOF
4372 /* end confdefs.h. */
4373 $ac_includes_default
4385 rm -f conftest.$ac_objext
4386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4387 (eval $ac_compile) 2>conftest.er1
4389 grep -v '^ *+' conftest.er1 >conftest.err
4391 cat conftest.err >&5
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); } &&
4394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); }; } &&
4400 { ac_try='test -s conftest.$ac_objext'
4401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); }; }; then
4406 ac_cv_type_short=yes
4408 echo "$as_me: failed program was:" >&5
4409 sed 's/^/| /' conftest.$ac_ext >&5
4413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4415 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4416 echo "${ECHO_T}$ac_cv_type_short" >&6
4418 echo "$as_me:$LINENO: checking size of short" >&5
4419 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4420 if test "${ac_cv_sizeof_short+set}" = set; then
4421 echo $ECHO_N "(cached) $ECHO_C" >&6
4423 if test "$ac_cv_type_short" = yes; then
4424 # The cast to unsigned long works around a bug in the HP C Compiler
4425 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4426 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4427 # This bug is HP SR number 8606223364.
4428 if test "$cross_compiling" = yes; then
4429 # Depending upon the size, compute the lo and hi bounds.
4430 cat >conftest.$ac_ext <<_ACEOF
4433 cat confdefs.h >>conftest.$ac_ext
4434 cat >>conftest.$ac_ext <<_ACEOF
4435 /* end confdefs.h. */
4436 $ac_includes_default
4440 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4447 rm -f conftest.$ac_objext
4448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4449 (eval $ac_compile) 2>conftest.er1
4451 grep -v '^ *+' conftest.er1 >conftest.err
4453 cat conftest.err >&5
4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455 (exit $ac_status); } &&
4456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); }; } &&
4462 { ac_try='test -s conftest.$ac_objext'
4463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); }; }; then
4470 cat >conftest.$ac_ext <<_ACEOF
4473 cat confdefs.h >>conftest.$ac_ext
4474 cat >>conftest.$ac_ext <<_ACEOF
4475 /* end confdefs.h. */
4476 $ac_includes_default
4480 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4487 rm -f conftest.$ac_objext
4488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4489 (eval $ac_compile) 2>conftest.er1
4491 grep -v '^ *+' conftest.er1 >conftest.err
4493 cat conftest.err >&5
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); } &&
4496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); }; } &&
4502 { ac_try='test -s conftest.$ac_objext'
4503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507 (exit $ac_status); }; }; then
4508 ac_hi=$ac_mid; break
4510 echo "$as_me: failed program was:" >&5
4511 sed 's/^/| /' conftest.$ac_ext >&5
4513 ac_lo=`expr $ac_mid + 1`
4514 if test $ac_lo -le $ac_mid; then
4518 ac_mid=`expr 2 '*' $ac_mid + 1`
4520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4523 echo "$as_me: failed program was:" >&5
4524 sed 's/^/| /' conftest.$ac_ext >&5
4526 cat >conftest.$ac_ext <<_ACEOF
4529 cat confdefs.h >>conftest.$ac_ext
4530 cat >>conftest.$ac_ext <<_ACEOF
4531 /* end confdefs.h. */
4532 $ac_includes_default
4536 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4543 rm -f conftest.$ac_objext
4544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4545 (eval $ac_compile) 2>conftest.er1
4547 grep -v '^ *+' conftest.er1 >conftest.err
4549 cat conftest.err >&5
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); } &&
4552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); }; } &&
4558 { ac_try='test -s conftest.$ac_objext'
4559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); }; }; then
4566 cat >conftest.$ac_ext <<_ACEOF
4569 cat confdefs.h >>conftest.$ac_ext
4570 cat >>conftest.$ac_ext <<_ACEOF
4571 /* end confdefs.h. */
4572 $ac_includes_default
4576 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4583 rm -f conftest.$ac_objext
4584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4585 (eval $ac_compile) 2>conftest.er1
4587 grep -v '^ *+' conftest.er1 >conftest.err
4589 cat conftest.err >&5
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); } &&
4592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597 (exit $ac_status); }; } &&
4598 { ac_try='test -s conftest.$ac_objext'
4599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); }; }; then
4604 ac_lo=$ac_mid; break
4606 echo "$as_me: failed program was:" >&5
4607 sed 's/^/| /' conftest.$ac_ext >&5
4609 ac_hi=`expr '(' $ac_mid ')' - 1`
4610 if test $ac_mid -le $ac_hi; then
4614 ac_mid=`expr 2 '*' $ac_mid`
4616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4619 echo "$as_me: failed program was:" >&5
4620 sed 's/^/| /' conftest.$ac_ext >&5
4624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4627 # Binary search between lo and hi bounds.
4628 while test "x$ac_lo" != "x$ac_hi"; do
4629 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4630 cat >conftest.$ac_ext <<_ACEOF
4633 cat confdefs.h >>conftest.$ac_ext
4634 cat >>conftest.$ac_ext <<_ACEOF
4635 /* end confdefs.h. */
4636 $ac_includes_default
4640 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4647 rm -f conftest.$ac_objext
4648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4649 (eval $ac_compile) 2>conftest.er1
4651 grep -v '^ *+' conftest.er1 >conftest.err
4653 cat conftest.err >&5
4654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655 (exit $ac_status); } &&
4656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); }; } &&
4662 { ac_try='test -s conftest.$ac_objext'
4663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667 (exit $ac_status); }; }; then
4670 echo "$as_me: failed program was:" >&5
4671 sed 's/^/| /' conftest.$ac_ext >&5
4673 ac_lo=`expr '(' $ac_mid ')' + 1`
4675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4678 ?*) ac_cv_sizeof_short=$ac_lo;;
4679 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4680 See \`config.log' for more details." >&5
4681 echo "$as_me: error: cannot compute sizeof (short), 77
4682 See \`config.log' for more details." >&2;}
4683 { (exit 1); exit 1; }; } ;;
4686 if test "$cross_compiling" = yes; then
4687 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4688 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4689 { (exit 1); exit 1; }; }
4691 cat >conftest.$ac_ext <<_ACEOF
4694 cat confdefs.h >>conftest.$ac_ext
4695 cat >>conftest.$ac_ext <<_ACEOF
4696 /* end confdefs.h. */
4697 $ac_includes_default
4698 long longval () { return (long) (sizeof (short)); }
4699 unsigned long ulongval () { return (long) (sizeof (short)); }
4706 FILE *f = fopen ("conftest.val", "w");
4709 if (((long) (sizeof (short))) < 0)
4711 long i = longval ();
4712 if (i != ((long) (sizeof (short))))
4714 fprintf (f, "%ld\n", i);
4718 unsigned long i = ulongval ();
4719 if (i != ((long) (sizeof (short))))
4721 fprintf (f, "%lu\n", i);
4723 exit (ferror (f) || fclose (f) != 0);
4729 rm -f conftest$ac_exeext
4730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4731 (eval $ac_link) 2>&5
4733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739 (exit $ac_status); }; }; then
4740 ac_cv_sizeof_short=`cat conftest.val`
4742 echo "$as_me: program exited with status $ac_status" >&5
4743 echo "$as_me: failed program was:" >&5
4744 sed 's/^/| /' conftest.$ac_ext >&5
4747 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4748 See \`config.log' for more details." >&5
4749 echo "$as_me: error: cannot compute sizeof (short), 77
4750 See \`config.log' for more details." >&2;}
4751 { (exit 1); exit 1; }; }
4753 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4758 ac_cv_sizeof_short=0
4761 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4762 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4763 cat >>confdefs.h <<_ACEOF
4764 #define SIZEOF_SHORT $ac_cv_sizeof_short
4768 echo "$as_me:$LINENO: checking for int" >&5
4769 echo $ECHO_N "checking for int... $ECHO_C" >&6
4770 if test "${ac_cv_type_int+set}" = set; then
4771 echo $ECHO_N "(cached) $ECHO_C" >&6
4773 cat >conftest.$ac_ext <<_ACEOF
4776 cat confdefs.h >>conftest.$ac_ext
4777 cat >>conftest.$ac_ext <<_ACEOF
4778 /* end confdefs.h. */
4779 $ac_includes_default
4791 rm -f conftest.$ac_objext
4792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4793 (eval $ac_compile) 2>conftest.er1
4795 grep -v '^ *+' conftest.er1 >conftest.err
4797 cat conftest.err >&5
4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); } &&
4800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805 (exit $ac_status); }; } &&
4806 { ac_try='test -s conftest.$ac_objext'
4807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); }; }; then
4814 echo "$as_me: failed program was:" >&5
4815 sed 's/^/| /' conftest.$ac_ext >&5
4819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4821 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4822 echo "${ECHO_T}$ac_cv_type_int" >&6
4824 echo "$as_me:$LINENO: checking size of int" >&5
4825 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4826 if test "${ac_cv_sizeof_int+set}" = set; then
4827 echo $ECHO_N "(cached) $ECHO_C" >&6
4829 if test "$ac_cv_type_int" = yes; then
4830 # The cast to unsigned long works around a bug in the HP C Compiler
4831 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4832 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4833 # This bug is HP SR number 8606223364.
4834 if test "$cross_compiling" = yes; then
4835 # Depending upon the size, compute the lo and hi bounds.
4836 cat >conftest.$ac_ext <<_ACEOF
4839 cat confdefs.h >>conftest.$ac_ext
4840 cat >>conftest.$ac_ext <<_ACEOF
4841 /* end confdefs.h. */
4842 $ac_includes_default
4846 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4853 rm -f conftest.$ac_objext
4854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4855 (eval $ac_compile) 2>conftest.er1
4857 grep -v '^ *+' conftest.er1 >conftest.err
4859 cat conftest.err >&5
4860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861 (exit $ac_status); } &&
4862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); }; } &&
4868 { ac_try='test -s conftest.$ac_objext'
4869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); }; }; then
4876 cat >conftest.$ac_ext <<_ACEOF
4879 cat confdefs.h >>conftest.$ac_ext
4880 cat >>conftest.$ac_ext <<_ACEOF
4881 /* end confdefs.h. */
4882 $ac_includes_default
4886 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4893 rm -f conftest.$ac_objext
4894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4895 (eval $ac_compile) 2>conftest.er1
4897 grep -v '^ *+' conftest.er1 >conftest.err
4899 cat conftest.err >&5
4900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901 (exit $ac_status); } &&
4902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907 (exit $ac_status); }; } &&
4908 { ac_try='test -s conftest.$ac_objext'
4909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); }; }; then
4914 ac_hi=$ac_mid; break
4916 echo "$as_me: failed program was:" >&5
4917 sed 's/^/| /' conftest.$ac_ext >&5
4919 ac_lo=`expr $ac_mid + 1`
4920 if test $ac_lo -le $ac_mid; then
4924 ac_mid=`expr 2 '*' $ac_mid + 1`
4926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4929 echo "$as_me: failed program was:" >&5
4930 sed 's/^/| /' conftest.$ac_ext >&5
4932 cat >conftest.$ac_ext <<_ACEOF
4935 cat confdefs.h >>conftest.$ac_ext
4936 cat >>conftest.$ac_ext <<_ACEOF
4937 /* end confdefs.h. */
4938 $ac_includes_default
4942 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4949 rm -f conftest.$ac_objext
4950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4951 (eval $ac_compile) 2>conftest.er1
4953 grep -v '^ *+' conftest.er1 >conftest.err
4955 cat conftest.err >&5
4956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957 (exit $ac_status); } &&
4958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963 (exit $ac_status); }; } &&
4964 { ac_try='test -s conftest.$ac_objext'
4965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969 (exit $ac_status); }; }; then
4972 cat >conftest.$ac_ext <<_ACEOF
4975 cat confdefs.h >>conftest.$ac_ext
4976 cat >>conftest.$ac_ext <<_ACEOF
4977 /* end confdefs.h. */
4978 $ac_includes_default
4982 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4989 rm -f conftest.$ac_objext
4990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4991 (eval $ac_compile) 2>conftest.er1
4993 grep -v '^ *+' conftest.er1 >conftest.err
4995 cat conftest.err >&5
4996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); } &&
4998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003 (exit $ac_status); }; } &&
5004 { ac_try='test -s conftest.$ac_objext'
5005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009 (exit $ac_status); }; }; then
5010 ac_lo=$ac_mid; break
5012 echo "$as_me: failed program was:" >&5
5013 sed 's/^/| /' conftest.$ac_ext >&5
5015 ac_hi=`expr '(' $ac_mid ')' - 1`
5016 if test $ac_mid -le $ac_hi; then
5020 ac_mid=`expr 2 '*' $ac_mid`
5022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5025 echo "$as_me: failed program was:" >&5
5026 sed 's/^/| /' conftest.$ac_ext >&5
5030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5033 # Binary search between lo and hi bounds.
5034 while test "x$ac_lo" != "x$ac_hi"; do
5035 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5036 cat >conftest.$ac_ext <<_ACEOF
5039 cat confdefs.h >>conftest.$ac_ext
5040 cat >>conftest.$ac_ext <<_ACEOF
5041 /* end confdefs.h. */
5042 $ac_includes_default
5046 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5053 rm -f conftest.$ac_objext
5054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5055 (eval $ac_compile) 2>conftest.er1
5057 grep -v '^ *+' conftest.er1 >conftest.err
5059 cat conftest.err >&5
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); } &&
5062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); }; } &&
5068 { ac_try='test -s conftest.$ac_objext'
5069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); }; }; then
5076 echo "$as_me: failed program was:" >&5
5077 sed 's/^/| /' conftest.$ac_ext >&5
5079 ac_lo=`expr '(' $ac_mid ')' + 1`
5081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5084 ?*) ac_cv_sizeof_int=$ac_lo;;
5085 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5086 See \`config.log' for more details." >&5
5087 echo "$as_me: error: cannot compute sizeof (int), 77
5088 See \`config.log' for more details." >&2;}
5089 { (exit 1); exit 1; }; } ;;
5092 if test "$cross_compiling" = yes; then
5093 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5094 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5095 { (exit 1); exit 1; }; }
5097 cat >conftest.$ac_ext <<_ACEOF
5100 cat confdefs.h >>conftest.$ac_ext
5101 cat >>conftest.$ac_ext <<_ACEOF
5102 /* end confdefs.h. */
5103 $ac_includes_default
5104 long longval () { return (long) (sizeof (int)); }
5105 unsigned long ulongval () { return (long) (sizeof (int)); }
5112 FILE *f = fopen ("conftest.val", "w");
5115 if (((long) (sizeof (int))) < 0)
5117 long i = longval ();
5118 if (i != ((long) (sizeof (int))))
5120 fprintf (f, "%ld\n", i);
5124 unsigned long i = ulongval ();
5125 if (i != ((long) (sizeof (int))))
5127 fprintf (f, "%lu\n", i);
5129 exit (ferror (f) || fclose (f) != 0);
5135 rm -f conftest$ac_exeext
5136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5137 (eval $ac_link) 2>&5
5139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145 (exit $ac_status); }; }; then
5146 ac_cv_sizeof_int=`cat conftest.val`
5148 echo "$as_me: program exited with status $ac_status" >&5
5149 echo "$as_me: failed program was:" >&5
5150 sed 's/^/| /' conftest.$ac_ext >&5
5153 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5154 See \`config.log' for more details." >&5
5155 echo "$as_me: error: cannot compute sizeof (int), 77
5156 See \`config.log' for more details." >&2;}
5157 { (exit 1); exit 1; }; }
5159 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5167 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5168 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5169 cat >>confdefs.h <<_ACEOF
5170 #define SIZEOF_INT $ac_cv_sizeof_int
5174 echo "$as_me:$LINENO: checking for long" >&5
5175 echo $ECHO_N "checking for long... $ECHO_C" >&6
5176 if test "${ac_cv_type_long+set}" = set; then
5177 echo $ECHO_N "(cached) $ECHO_C" >&6
5179 cat >conftest.$ac_ext <<_ACEOF
5182 cat confdefs.h >>conftest.$ac_ext
5183 cat >>conftest.$ac_ext <<_ACEOF
5184 /* end confdefs.h. */
5185 $ac_includes_default
5197 rm -f conftest.$ac_objext
5198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5199 (eval $ac_compile) 2>conftest.er1
5201 grep -v '^ *+' conftest.er1 >conftest.err
5203 cat conftest.err >&5
5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); } &&
5206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); }; } &&
5212 { ac_try='test -s conftest.$ac_objext'
5213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217 (exit $ac_status); }; }; then
5220 echo "$as_me: failed program was:" >&5
5221 sed 's/^/| /' conftest.$ac_ext >&5
5225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5227 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5228 echo "${ECHO_T}$ac_cv_type_long" >&6
5230 echo "$as_me:$LINENO: checking size of long" >&5
5231 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5232 if test "${ac_cv_sizeof_long+set}" = set; then
5233 echo $ECHO_N "(cached) $ECHO_C" >&6
5235 if test "$ac_cv_type_long" = yes; then
5236 # The cast to unsigned long works around a bug in the HP C Compiler
5237 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5238 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5239 # This bug is HP SR number 8606223364.
5240 if test "$cross_compiling" = yes; then
5241 # Depending upon the size, compute the lo and hi bounds.
5242 cat >conftest.$ac_ext <<_ACEOF
5245 cat confdefs.h >>conftest.$ac_ext
5246 cat >>conftest.$ac_ext <<_ACEOF
5247 /* end confdefs.h. */
5248 $ac_includes_default
5252 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5259 rm -f conftest.$ac_objext
5260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5261 (eval $ac_compile) 2>conftest.er1
5263 grep -v '^ *+' conftest.er1 >conftest.err
5265 cat conftest.err >&5
5266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267 (exit $ac_status); } &&
5268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273 (exit $ac_status); }; } &&
5274 { ac_try='test -s conftest.$ac_objext'
5275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279 (exit $ac_status); }; }; then
5282 cat >conftest.$ac_ext <<_ACEOF
5285 cat confdefs.h >>conftest.$ac_ext
5286 cat >>conftest.$ac_ext <<_ACEOF
5287 /* end confdefs.h. */
5288 $ac_includes_default
5292 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5299 rm -f conftest.$ac_objext
5300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5301 (eval $ac_compile) 2>conftest.er1
5303 grep -v '^ *+' conftest.er1 >conftest.err
5305 cat conftest.err >&5
5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 (exit $ac_status); } &&
5308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); }; } &&
5314 { ac_try='test -s conftest.$ac_objext'
5315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); }; }; then
5320 ac_hi=$ac_mid; break
5322 echo "$as_me: failed program was:" >&5
5323 sed 's/^/| /' conftest.$ac_ext >&5
5325 ac_lo=`expr $ac_mid + 1`
5326 if test $ac_lo -le $ac_mid; then
5330 ac_mid=`expr 2 '*' $ac_mid + 1`
5332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5335 echo "$as_me: failed program was:" >&5
5336 sed 's/^/| /' conftest.$ac_ext >&5
5338 cat >conftest.$ac_ext <<_ACEOF
5341 cat confdefs.h >>conftest.$ac_ext
5342 cat >>conftest.$ac_ext <<_ACEOF
5343 /* end confdefs.h. */
5344 $ac_includes_default
5348 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5355 rm -f conftest.$ac_objext
5356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5357 (eval $ac_compile) 2>conftest.er1
5359 grep -v '^ *+' conftest.er1 >conftest.err
5361 cat conftest.err >&5
5362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363 (exit $ac_status); } &&
5364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); }; } &&
5370 { ac_try='test -s conftest.$ac_objext'
5371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375 (exit $ac_status); }; }; then
5378 cat >conftest.$ac_ext <<_ACEOF
5381 cat confdefs.h >>conftest.$ac_ext
5382 cat >>conftest.$ac_ext <<_ACEOF
5383 /* end confdefs.h. */
5384 $ac_includes_default
5388 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5395 rm -f conftest.$ac_objext
5396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5397 (eval $ac_compile) 2>conftest.er1
5399 grep -v '^ *+' conftest.er1 >conftest.err
5401 cat conftest.err >&5
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); } &&
5404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409 (exit $ac_status); }; } &&
5410 { ac_try='test -s conftest.$ac_objext'
5411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415 (exit $ac_status); }; }; then
5416 ac_lo=$ac_mid; break
5418 echo "$as_me: failed program was:" >&5
5419 sed 's/^/| /' conftest.$ac_ext >&5
5421 ac_hi=`expr '(' $ac_mid ')' - 1`
5422 if test $ac_mid -le $ac_hi; then
5426 ac_mid=`expr 2 '*' $ac_mid`
5428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5431 echo "$as_me: failed program was:" >&5
5432 sed 's/^/| /' conftest.$ac_ext >&5
5436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5439 # Binary search between lo and hi bounds.
5440 while test "x$ac_lo" != "x$ac_hi"; do
5441 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5442 cat >conftest.$ac_ext <<_ACEOF
5445 cat confdefs.h >>conftest.$ac_ext
5446 cat >>conftest.$ac_ext <<_ACEOF
5447 /* end confdefs.h. */
5448 $ac_includes_default
5452 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5459 rm -f conftest.$ac_objext
5460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5461 (eval $ac_compile) 2>conftest.er1
5463 grep -v '^ *+' conftest.er1 >conftest.err
5465 cat conftest.err >&5
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); } &&
5468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473 (exit $ac_status); }; } &&
5474 { ac_try='test -s conftest.$ac_objext'
5475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); }; }; then
5482 echo "$as_me: failed program was:" >&5
5483 sed 's/^/| /' conftest.$ac_ext >&5
5485 ac_lo=`expr '(' $ac_mid ')' + 1`
5487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5490 ?*) ac_cv_sizeof_long=$ac_lo;;
5491 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5492 See \`config.log' for more details." >&5
5493 echo "$as_me: error: cannot compute sizeof (long), 77
5494 See \`config.log' for more details." >&2;}
5495 { (exit 1); exit 1; }; } ;;
5498 if test "$cross_compiling" = yes; then
5499 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5500 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5501 { (exit 1); exit 1; }; }
5503 cat >conftest.$ac_ext <<_ACEOF
5506 cat confdefs.h >>conftest.$ac_ext
5507 cat >>conftest.$ac_ext <<_ACEOF
5508 /* end confdefs.h. */
5509 $ac_includes_default
5510 long longval () { return (long) (sizeof (long)); }
5511 unsigned long ulongval () { return (long) (sizeof (long)); }
5518 FILE *f = fopen ("conftest.val", "w");
5521 if (((long) (sizeof (long))) < 0)
5523 long i = longval ();
5524 if (i != ((long) (sizeof (long))))
5526 fprintf (f, "%ld\n", i);
5530 unsigned long i = ulongval ();
5531 if (i != ((long) (sizeof (long))))
5533 fprintf (f, "%lu\n", i);
5535 exit (ferror (f) || fclose (f) != 0);
5541 rm -f conftest$ac_exeext
5542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5543 (eval $ac_link) 2>&5
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551 (exit $ac_status); }; }; then
5552 ac_cv_sizeof_long=`cat conftest.val`
5554 echo "$as_me: program exited with status $ac_status" >&5
5555 echo "$as_me: failed program was:" >&5
5556 sed 's/^/| /' conftest.$ac_ext >&5
5559 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5560 See \`config.log' for more details." >&5
5561 echo "$as_me: error: cannot compute sizeof (long), 77
5562 See \`config.log' for more details." >&2;}
5563 { (exit 1); exit 1; }; }
5565 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5573 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5574 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5575 cat >>confdefs.h <<_ACEOF
5576 #define SIZEOF_LONG $ac_cv_sizeof_long
5580 echo "$as_me:$LINENO: checking for void *" >&5
5581 echo $ECHO_N "checking for void *... $ECHO_C" >&6
5582 if test "${ac_cv_type_void_p+set}" = set; then
5583 echo $ECHO_N "(cached) $ECHO_C" >&6
5585 cat >conftest.$ac_ext <<_ACEOF
5588 cat confdefs.h >>conftest.$ac_ext
5589 cat >>conftest.$ac_ext <<_ACEOF
5590 /* end confdefs.h. */
5591 $ac_includes_default
5597 if (sizeof (void *))
5603 rm -f conftest.$ac_objext
5604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5605 (eval $ac_compile) 2>conftest.er1
5607 grep -v '^ *+' conftest.er1 >conftest.err
5609 cat conftest.err >&5
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); } &&
5612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617 (exit $ac_status); }; } &&
5618 { ac_try='test -s conftest.$ac_objext'
5619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623 (exit $ac_status); }; }; then
5624 ac_cv_type_void_p=yes
5626 echo "$as_me: failed program was:" >&5
5627 sed 's/^/| /' conftest.$ac_ext >&5
5629 ac_cv_type_void_p=no
5631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5633 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
5634 echo "${ECHO_T}$ac_cv_type_void_p" >&6
5636 echo "$as_me:$LINENO: checking size of void *" >&5
5637 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
5638 if test "${ac_cv_sizeof_void_p+set}" = set; then
5639 echo $ECHO_N "(cached) $ECHO_C" >&6
5641 if test "$ac_cv_type_void_p" = yes; then
5642 # The cast to unsigned long works around a bug in the HP C Compiler
5643 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5644 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5645 # This bug is HP SR number 8606223364.
5646 if test "$cross_compiling" = yes; then
5647 # Depending upon the size, compute the lo and hi bounds.
5648 cat >conftest.$ac_ext <<_ACEOF
5651 cat confdefs.h >>conftest.$ac_ext
5652 cat >>conftest.$ac_ext <<_ACEOF
5653 /* end confdefs.h. */
5654 $ac_includes_default
5658 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
5665 rm -f conftest.$ac_objext
5666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5667 (eval $ac_compile) 2>conftest.er1
5669 grep -v '^ *+' conftest.er1 >conftest.err
5671 cat conftest.err >&5
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); } &&
5674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); }; } &&
5680 { ac_try='test -s conftest.$ac_objext'
5681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); }; }; then
5688 cat >conftest.$ac_ext <<_ACEOF
5691 cat confdefs.h >>conftest.$ac_ext
5692 cat >>conftest.$ac_ext <<_ACEOF
5693 /* end confdefs.h. */
5694 $ac_includes_default
5698 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
5705 rm -f conftest.$ac_objext
5706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5707 (eval $ac_compile) 2>conftest.er1
5709 grep -v '^ *+' conftest.er1 >conftest.err
5711 cat conftest.err >&5
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); } &&
5714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); }; } &&
5720 { ac_try='test -s conftest.$ac_objext'
5721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); }; }; then
5726 ac_hi=$ac_mid; break
5728 echo "$as_me: failed program was:" >&5
5729 sed 's/^/| /' conftest.$ac_ext >&5
5731 ac_lo=`expr $ac_mid + 1`
5732 if test $ac_lo -le $ac_mid; then
5736 ac_mid=`expr 2 '*' $ac_mid + 1`
5738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5741 echo "$as_me: failed program was:" >&5
5742 sed 's/^/| /' conftest.$ac_ext >&5
5744 cat >conftest.$ac_ext <<_ACEOF
5747 cat confdefs.h >>conftest.$ac_ext
5748 cat >>conftest.$ac_ext <<_ACEOF
5749 /* end confdefs.h. */
5750 $ac_includes_default
5754 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
5761 rm -f conftest.$ac_objext
5762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5763 (eval $ac_compile) 2>conftest.er1
5765 grep -v '^ *+' conftest.er1 >conftest.err
5767 cat conftest.err >&5
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); } &&
5770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); }; } &&
5776 { ac_try='test -s conftest.$ac_objext'
5777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); }; }; then
5784 cat >conftest.$ac_ext <<_ACEOF
5787 cat confdefs.h >>conftest.$ac_ext
5788 cat >>conftest.$ac_ext <<_ACEOF
5789 /* end confdefs.h. */
5790 $ac_includes_default
5794 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
5801 rm -f conftest.$ac_objext
5802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5803 (eval $ac_compile) 2>conftest.er1
5805 grep -v '^ *+' conftest.er1 >conftest.err
5807 cat conftest.err >&5
5808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809 (exit $ac_status); } &&
5810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815 (exit $ac_status); }; } &&
5816 { ac_try='test -s conftest.$ac_objext'
5817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821 (exit $ac_status); }; }; then
5822 ac_lo=$ac_mid; break
5824 echo "$as_me: failed program was:" >&5
5825 sed 's/^/| /' conftest.$ac_ext >&5
5827 ac_hi=`expr '(' $ac_mid ')' - 1`
5828 if test $ac_mid -le $ac_hi; then
5832 ac_mid=`expr 2 '*' $ac_mid`
5834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5837 echo "$as_me: failed program was:" >&5
5838 sed 's/^/| /' conftest.$ac_ext >&5
5842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5845 # Binary search between lo and hi bounds.
5846 while test "x$ac_lo" != "x$ac_hi"; do
5847 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5848 cat >conftest.$ac_ext <<_ACEOF
5851 cat confdefs.h >>conftest.$ac_ext
5852 cat >>conftest.$ac_ext <<_ACEOF
5853 /* end confdefs.h. */
5854 $ac_includes_default
5858 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
5865 rm -f conftest.$ac_objext
5866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5867 (eval $ac_compile) 2>conftest.er1
5869 grep -v '^ *+' conftest.er1 >conftest.err
5871 cat conftest.err >&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); } &&
5874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); }; } &&
5880 { ac_try='test -s conftest.$ac_objext'
5881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); }; }; then
5888 echo "$as_me: failed program was:" >&5
5889 sed 's/^/| /' conftest.$ac_ext >&5
5891 ac_lo=`expr '(' $ac_mid ')' + 1`
5893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5896 ?*) ac_cv_sizeof_void_p=$ac_lo;;
5897 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
5898 See \`config.log' for more details." >&5
5899 echo "$as_me: error: cannot compute sizeof (void *), 77
5900 See \`config.log' for more details." >&2;}
5901 { (exit 1); exit 1; }; } ;;
5904 if test "$cross_compiling" = yes; then
5905 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5906 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5907 { (exit 1); exit 1; }; }
5909 cat >conftest.$ac_ext <<_ACEOF
5912 cat confdefs.h >>conftest.$ac_ext
5913 cat >>conftest.$ac_ext <<_ACEOF
5914 /* end confdefs.h. */
5915 $ac_includes_default
5916 long longval () { return (long) (sizeof (void *)); }
5917 unsigned long ulongval () { return (long) (sizeof (void *)); }
5924 FILE *f = fopen ("conftest.val", "w");
5927 if (((long) (sizeof (void *))) < 0)
5929 long i = longval ();
5930 if (i != ((long) (sizeof (void *))))
5932 fprintf (f, "%ld\n", i);
5936 unsigned long i = ulongval ();
5937 if (i != ((long) (sizeof (void *))))
5939 fprintf (f, "%lu\n", i);
5941 exit (ferror (f) || fclose (f) != 0);
5947 rm -f conftest$ac_exeext
5948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5949 (eval $ac_link) 2>&5
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); }; }; then
5958 ac_cv_sizeof_void_p=`cat conftest.val`
5960 echo "$as_me: program exited with status $ac_status" >&5
5961 echo "$as_me: failed program was:" >&5
5962 sed 's/^/| /' conftest.$ac_ext >&5
5965 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
5966 See \`config.log' for more details." >&5
5967 echo "$as_me: error: cannot compute sizeof (void *), 77
5968 See \`config.log' for more details." >&2;}
5969 { (exit 1); exit 1; }; }
5971 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5976 ac_cv_sizeof_void_p=0
5979 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
5980 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
5981 cat >>confdefs.h <<_ACEOF
5982 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5986 if test "$ac_cv_sizeof_int" = 2 ; then
5987 echo "$as_me:$LINENO: checking for int16_t" >&5
5988 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
5989 if test "${ac_cv_type_int16_t+set}" = set; then
5990 echo $ECHO_N "(cached) $ECHO_C" >&6
5992 cat >conftest.$ac_ext <<_ACEOF
5995 cat confdefs.h >>conftest.$ac_ext
5996 cat >>conftest.$ac_ext <<_ACEOF
5997 /* end confdefs.h. */
5998 $ac_includes_default
6004 if (sizeof (int16_t))
6010 rm -f conftest.$ac_objext
6011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6012 (eval $ac_compile) 2>conftest.er1
6014 grep -v '^ *+' conftest.er1 >conftest.err
6016 cat conftest.err >&5
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); } &&
6019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024 (exit $ac_status); }; } &&
6025 { ac_try='test -s conftest.$ac_objext'
6026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030 (exit $ac_status); }; }; then
6031 ac_cv_type_int16_t=yes
6033 echo "$as_me: failed program was:" >&5
6034 sed 's/^/| /' conftest.$ac_ext >&5
6036 ac_cv_type_int16_t=no
6038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6040 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
6041 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
6042 if test $ac_cv_type_int16_t = yes; then
6046 cat >>confdefs.h <<_ACEOF
6052 echo "$as_me:$LINENO: checking for uint16_t" >&5
6053 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
6054 if test "${ac_cv_type_uint16_t+set}" = set; then
6055 echo $ECHO_N "(cached) $ECHO_C" >&6
6057 cat >conftest.$ac_ext <<_ACEOF
6060 cat confdefs.h >>conftest.$ac_ext
6061 cat >>conftest.$ac_ext <<_ACEOF
6062 /* end confdefs.h. */
6063 $ac_includes_default
6069 if (sizeof (uint16_t))
6075 rm -f conftest.$ac_objext
6076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6077 (eval $ac_compile) 2>conftest.er1
6079 grep -v '^ *+' conftest.er1 >conftest.err
6081 cat conftest.err >&5
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); } &&
6084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); }; } &&
6090 { ac_try='test -s conftest.$ac_objext'
6091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); }; }; then
6096 ac_cv_type_uint16_t=yes
6098 echo "$as_me: failed program was:" >&5
6099 sed 's/^/| /' conftest.$ac_ext >&5
6101 ac_cv_type_uint16_t=no
6103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6105 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
6106 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
6107 if test $ac_cv_type_uint16_t = yes; then
6111 cat >>confdefs.h <<_ACEOF
6112 #define uint16_t unsigned int
6117 elif test "$ac_cv_sizeof_short" = 2 ; then
6118 echo "$as_me:$LINENO: checking for int16_t" >&5
6119 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
6120 if test "${ac_cv_type_int16_t+set}" = set; then
6121 echo $ECHO_N "(cached) $ECHO_C" >&6
6123 cat >conftest.$ac_ext <<_ACEOF
6126 cat confdefs.h >>conftest.$ac_ext
6127 cat >>conftest.$ac_ext <<_ACEOF
6128 /* end confdefs.h. */
6129 $ac_includes_default
6135 if (sizeof (int16_t))
6141 rm -f conftest.$ac_objext
6142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6143 (eval $ac_compile) 2>conftest.er1
6145 grep -v '^ *+' conftest.er1 >conftest.err
6147 cat conftest.err >&5
6148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149 (exit $ac_status); } &&
6150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); }; } &&
6156 { ac_try='test -s conftest.$ac_objext'
6157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); }; }; then
6162 ac_cv_type_int16_t=yes
6164 echo "$as_me: failed program was:" >&5
6165 sed 's/^/| /' conftest.$ac_ext >&5
6167 ac_cv_type_int16_t=no
6169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6171 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
6172 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
6173 if test $ac_cv_type_int16_t = yes; then
6177 cat >>confdefs.h <<_ACEOF
6178 #define int16_t short
6183 echo "$as_me:$LINENO: checking for uint16_t" >&5
6184 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
6185 if test "${ac_cv_type_uint16_t+set}" = set; then
6186 echo $ECHO_N "(cached) $ECHO_C" >&6
6188 cat >conftest.$ac_ext <<_ACEOF
6191 cat confdefs.h >>conftest.$ac_ext
6192 cat >>conftest.$ac_ext <<_ACEOF
6193 /* end confdefs.h. */
6194 $ac_includes_default
6200 if (sizeof (uint16_t))
6206 rm -f conftest.$ac_objext
6207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6208 (eval $ac_compile) 2>conftest.er1
6210 grep -v '^ *+' conftest.er1 >conftest.err
6212 cat conftest.err >&5
6213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214 (exit $ac_status); } &&
6215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220 (exit $ac_status); }; } &&
6221 { ac_try='test -s conftest.$ac_objext'
6222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226 (exit $ac_status); }; }; then
6227 ac_cv_type_uint16_t=yes
6229 echo "$as_me: failed program was:" >&5
6230 sed 's/^/| /' conftest.$ac_ext >&5
6232 ac_cv_type_uint16_t=no
6234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6236 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
6237 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
6238 if test $ac_cv_type_uint16_t = yes; then
6242 cat >>confdefs.h <<_ACEOF
6243 #define uint16_t unsigned short
6249 { { echo "$as_me:$LINENO: error: Cannot find a type with size of 16 bits" >&5
6250 echo "$as_me: error: Cannot find a type with size of 16 bits" >&2;}
6251 { (exit 1); exit 1; }; }
6253 if test "$ac_cv_sizeof_int" = 4 ; then
6254 echo "$as_me:$LINENO: checking for int32_t" >&5
6255 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
6256 if test "${ac_cv_type_int32_t+set}" = set; then
6257 echo $ECHO_N "(cached) $ECHO_C" >&6
6259 cat >conftest.$ac_ext <<_ACEOF
6262 cat confdefs.h >>conftest.$ac_ext
6263 cat >>conftest.$ac_ext <<_ACEOF
6264 /* end confdefs.h. */
6265 $ac_includes_default
6271 if (sizeof (int32_t))
6277 rm -f conftest.$ac_objext
6278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6279 (eval $ac_compile) 2>conftest.er1
6281 grep -v '^ *+' conftest.er1 >conftest.err
6283 cat conftest.err >&5
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); } &&
6286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291 (exit $ac_status); }; } &&
6292 { ac_try='test -s conftest.$ac_objext'
6293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297 (exit $ac_status); }; }; then
6298 ac_cv_type_int32_t=yes
6300 echo "$as_me: failed program was:" >&5
6301 sed 's/^/| /' conftest.$ac_ext >&5
6303 ac_cv_type_int32_t=no
6305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6307 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
6308 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
6309 if test $ac_cv_type_int32_t = yes; then
6313 cat >>confdefs.h <<_ACEOF
6319 echo "$as_me:$LINENO: checking for uint32_t" >&5
6320 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
6321 if test "${ac_cv_type_uint32_t+set}" = set; then
6322 echo $ECHO_N "(cached) $ECHO_C" >&6
6324 cat >conftest.$ac_ext <<_ACEOF
6327 cat confdefs.h >>conftest.$ac_ext
6328 cat >>conftest.$ac_ext <<_ACEOF
6329 /* end confdefs.h. */
6330 $ac_includes_default
6336 if (sizeof (uint32_t))
6342 rm -f conftest.$ac_objext
6343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6344 (eval $ac_compile) 2>conftest.er1
6346 grep -v '^ *+' conftest.er1 >conftest.err
6348 cat conftest.err >&5
6349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350 (exit $ac_status); } &&
6351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); }; } &&
6357 { ac_try='test -s conftest.$ac_objext'
6358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); }; }; then
6363 ac_cv_type_uint32_t=yes
6365 echo "$as_me: failed program was:" >&5
6366 sed 's/^/| /' conftest.$ac_ext >&5
6368 ac_cv_type_uint32_t=no
6370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6372 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
6373 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
6374 if test $ac_cv_type_uint32_t = yes; then
6378 cat >>confdefs.h <<_ACEOF
6379 #define uint32_t unsigned int
6384 elif test "$ac_cv_sizeof_short" = 4 ; then
6385 echo "$as_me:$LINENO: checking for int32_t" >&5
6386 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
6387 if test "${ac_cv_type_int32_t+set}" = set; then
6388 echo $ECHO_N "(cached) $ECHO_C" >&6
6390 cat >conftest.$ac_ext <<_ACEOF
6393 cat confdefs.h >>conftest.$ac_ext
6394 cat >>conftest.$ac_ext <<_ACEOF
6395 /* end confdefs.h. */
6396 $ac_includes_default
6402 if (sizeof (int32_t))
6408 rm -f conftest.$ac_objext
6409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6410 (eval $ac_compile) 2>conftest.er1
6412 grep -v '^ *+' conftest.er1 >conftest.err
6414 cat conftest.err >&5
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); } &&
6417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); }; } &&
6423 { ac_try='test -s conftest.$ac_objext'
6424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428 (exit $ac_status); }; }; then
6429 ac_cv_type_int32_t=yes
6431 echo "$as_me: failed program was:" >&5
6432 sed 's/^/| /' conftest.$ac_ext >&5
6434 ac_cv_type_int32_t=no
6436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6438 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
6439 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
6440 if test $ac_cv_type_int32_t = yes; then
6444 cat >>confdefs.h <<_ACEOF
6445 #define int32_t short
6450 echo "$as_me:$LINENO: checking for uint32_t" >&5
6451 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
6452 if test "${ac_cv_type_uint32_t+set}" = set; then
6453 echo $ECHO_N "(cached) $ECHO_C" >&6
6455 cat >conftest.$ac_ext <<_ACEOF
6458 cat confdefs.h >>conftest.$ac_ext
6459 cat >>conftest.$ac_ext <<_ACEOF
6460 /* end confdefs.h. */
6461 $ac_includes_default
6467 if (sizeof (uint32_t))
6473 rm -f conftest.$ac_objext
6474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6475 (eval $ac_compile) 2>conftest.er1
6477 grep -v '^ *+' conftest.er1 >conftest.err
6479 cat conftest.err >&5
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); } &&
6482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); }; } &&
6488 { ac_try='test -s conftest.$ac_objext'
6489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493 (exit $ac_status); }; }; then
6494 ac_cv_type_uint32_t=yes
6496 echo "$as_me: failed program was:" >&5
6497 sed 's/^/| /' conftest.$ac_ext >&5
6499 ac_cv_type_uint32_t=no
6501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6503 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
6504 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
6505 if test $ac_cv_type_uint32_t = yes; then
6509 cat >>confdefs.h <<_ACEOF
6510 #define uint32_t unsigned short
6515 elif test "$ac_cv_sizeof_long" = 4 ; then
6516 echo "$as_me:$LINENO: checking for int32_t" >&5
6517 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
6518 if test "${ac_cv_type_int32_t+set}" = set; then
6519 echo $ECHO_N "(cached) $ECHO_C" >&6
6521 cat >conftest.$ac_ext <<_ACEOF
6524 cat confdefs.h >>conftest.$ac_ext
6525 cat >>conftest.$ac_ext <<_ACEOF
6526 /* end confdefs.h. */
6527 $ac_includes_default
6533 if (sizeof (int32_t))
6539 rm -f conftest.$ac_objext
6540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6541 (eval $ac_compile) 2>conftest.er1
6543 grep -v '^ *+' conftest.er1 >conftest.err
6545 cat conftest.err >&5
6546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6547 (exit $ac_status); } &&
6548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553 (exit $ac_status); }; } &&
6554 { ac_try='test -s conftest.$ac_objext'
6555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559 (exit $ac_status); }; }; then
6560 ac_cv_type_int32_t=yes
6562 echo "$as_me: failed program was:" >&5
6563 sed 's/^/| /' conftest.$ac_ext >&5
6565 ac_cv_type_int32_t=no
6567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6569 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
6570 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
6571 if test $ac_cv_type_int32_t = yes; then
6575 cat >>confdefs.h <<_ACEOF
6576 #define int32_t long
6581 echo "$as_me:$LINENO: checking for uint32_t" >&5
6582 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
6583 if test "${ac_cv_type_uint32_t+set}" = set; then
6584 echo $ECHO_N "(cached) $ECHO_C" >&6
6586 cat >conftest.$ac_ext <<_ACEOF
6589 cat confdefs.h >>conftest.$ac_ext
6590 cat >>conftest.$ac_ext <<_ACEOF
6591 /* end confdefs.h. */
6592 $ac_includes_default
6598 if (sizeof (uint32_t))
6604 rm -f conftest.$ac_objext
6605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6606 (eval $ac_compile) 2>conftest.er1
6608 grep -v '^ *+' conftest.er1 >conftest.err
6610 cat conftest.err >&5
6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); } &&
6613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618 (exit $ac_status); }; } &&
6619 { ac_try='test -s conftest.$ac_objext'
6620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624 (exit $ac_status); }; }; then
6625 ac_cv_type_uint32_t=yes
6627 echo "$as_me: failed program was:" >&5
6628 sed 's/^/| /' conftest.$ac_ext >&5
6630 ac_cv_type_uint32_t=no
6632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6634 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
6635 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
6636 if test $ac_cv_type_uint32_t = yes; then
6640 cat >>confdefs.h <<_ACEOF
6641 #define uint32_t unsigned long
6647 { { echo "$as_me:$LINENO: error: Cannot find a type with size of 32 bits" >&5
6648 echo "$as_me: error: Cannot find a type with size of 32 bits" >&2;}
6649 { (exit 1); exit 1; }; }
6651 echo "$as_me:$LINENO: checking for socklen_t" >&5
6652 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
6653 if test "${ac_cv_type_socklen_t+set}" = set; then
6654 echo $ECHO_N "(cached) $ECHO_C" >&6
6656 cat >conftest.$ac_ext <<_ACEOF
6659 cat confdefs.h >>conftest.$ac_ext
6660 cat >>conftest.$ac_ext <<_ACEOF
6661 /* end confdefs.h. */
6662 $ac_includes_default
6666 if ((socklen_t *) 0)
6668 if (sizeof (socklen_t))
6674 rm -f conftest.$ac_objext
6675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6676 (eval $ac_compile) 2>conftest.er1
6678 grep -v '^ *+' conftest.er1 >conftest.err
6680 cat conftest.err >&5
6681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682 (exit $ac_status); } &&
6683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688 (exit $ac_status); }; } &&
6689 { ac_try='test -s conftest.$ac_objext'
6690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694 (exit $ac_status); }; }; then
6695 ac_cv_type_socklen_t=yes
6697 echo "$as_me: failed program was:" >&5
6698 sed 's/^/| /' conftest.$ac_ext >&5
6700 ac_cv_type_socklen_t=no
6702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6704 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
6705 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
6706 if test $ac_cv_type_socklen_t = yes; then
6710 cat >>confdefs.h <<_ACEOF
6711 #define socklen_t unsigned int
6721 for ac_func in kqueue setrlimit getrusage times
6723 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6724 echo "$as_me:$LINENO: checking for $ac_func" >&5
6725 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6726 if eval "test \"\${$as_ac_var+set}\" = set"; then
6727 echo $ECHO_N "(cached) $ECHO_C" >&6
6729 cat >conftest.$ac_ext <<_ACEOF
6732 cat confdefs.h >>conftest.$ac_ext
6733 cat >>conftest.$ac_ext <<_ACEOF
6734 /* end confdefs.h. */
6735 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6737 #define $ac_func innocuous_$ac_func
6739 /* System header to define __stub macros and hopefully few prototypes,
6740 which can conflict with char $ac_func (); below.
6741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6742 <limits.h> exists even on freestanding compilers. */
6745 # include <limits.h>
6747 # include <assert.h>
6752 /* Override any gcc2 internal prototype to avoid an error. */
6757 /* We use char because int might match the return type of a gcc2
6758 builtin and then its argument prototype would still apply. */
6760 /* The GNU C library defines this for functions which it implements
6761 to always fail with ENOSYS. Some functions are actually named
6762 something starting with __ and the normal name is an alias. */
6763 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6766 char (*f) () = $ac_func;
6775 return f != $ac_func;
6780 rm -f conftest.$ac_objext conftest$ac_exeext
6781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6782 (eval $ac_link) 2>conftest.er1
6784 grep -v '^ *+' conftest.er1 >conftest.err
6786 cat conftest.err >&5
6787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788 (exit $ac_status); } &&
6789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794 (exit $ac_status); }; } &&
6795 { ac_try='test -s conftest$ac_exeext'
6796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800 (exit $ac_status); }; }; then
6801 eval "$as_ac_var=yes"
6803 echo "$as_me: failed program was:" >&5
6804 sed 's/^/| /' conftest.$ac_ext >&5
6806 eval "$as_ac_var=no"
6808 rm -f conftest.err conftest.$ac_objext \
6809 conftest$ac_exeext conftest.$ac_ext
6811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6812 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6813 if test `eval echo '${'$as_ac_var'}'` = yes; then
6814 cat >>confdefs.h <<_ACEOF
6815 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6822 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6823 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6824 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6825 echo $ECHO_N "(cached) $ECHO_C" >&6
6827 cat >conftest.$ac_ext <<_ACEOF
6830 cat confdefs.h >>conftest.$ac_ext
6831 cat >>conftest.$ac_ext <<_ACEOF
6832 /* end confdefs.h. */
6833 #include <sys/types.h>
6834 #include <sys/wait.h>
6836 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6839 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6847 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6852 rm -f conftest.$ac_objext
6853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6854 (eval $ac_compile) 2>conftest.er1
6856 grep -v '^ *+' conftest.er1 >conftest.err
6858 cat conftest.err >&5
6859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860 (exit $ac_status); } &&
6861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6866 (exit $ac_status); }; } &&
6867 { ac_try='test -s conftest.$ac_objext'
6868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872 (exit $ac_status); }; }; then
6873 ac_cv_header_sys_wait_h=yes
6875 echo "$as_me: failed program was:" >&5
6876 sed 's/^/| /' conftest.$ac_ext >&5
6878 ac_cv_header_sys_wait_h=no
6880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6882 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6883 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6884 if test $ac_cv_header_sys_wait_h = yes; then
6886 cat >>confdefs.h <<\_ACEOF
6887 #define HAVE_SYS_WAIT_H 1
6893 for ac_header in unistd.h
6895 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6896 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6897 echo "$as_me:$LINENO: checking for $ac_header" >&5
6898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6899 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6900 echo $ECHO_N "(cached) $ECHO_C" >&6
6902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6903 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6905 # Is the header compilable?
6906 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6907 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6908 cat >conftest.$ac_ext <<_ACEOF
6911 cat confdefs.h >>conftest.$ac_ext
6912 cat >>conftest.$ac_ext <<_ACEOF
6913 /* end confdefs.h. */
6914 $ac_includes_default
6915 #include <$ac_header>
6917 rm -f conftest.$ac_objext
6918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6919 (eval $ac_compile) 2>conftest.er1
6921 grep -v '^ *+' conftest.er1 >conftest.err
6923 cat conftest.err >&5
6924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925 (exit $ac_status); } &&
6926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931 (exit $ac_status); }; } &&
6932 { ac_try='test -s conftest.$ac_objext'
6933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937 (exit $ac_status); }; }; then
6938 ac_header_compiler=yes
6940 echo "$as_me: failed program was:" >&5
6941 sed 's/^/| /' conftest.$ac_ext >&5
6943 ac_header_compiler=no
6945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6946 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6947 echo "${ECHO_T}$ac_header_compiler" >&6
6949 # Is the header present?
6950 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6951 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6952 cat >conftest.$ac_ext <<_ACEOF
6955 cat confdefs.h >>conftest.$ac_ext
6956 cat >>conftest.$ac_ext <<_ACEOF
6957 /* end confdefs.h. */
6958 #include <$ac_header>
6960 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6961 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6963 grep -v '^ *+' conftest.er1 >conftest.err
6965 cat conftest.err >&5
6966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967 (exit $ac_status); } >/dev/null; then
6968 if test -s conftest.err; then
6969 ac_cpp_err=$ac_c_preproc_warn_flag
6970 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6977 if test -z "$ac_cpp_err"; then
6978 ac_header_preproc=yes
6980 echo "$as_me: failed program was:" >&5
6981 sed 's/^/| /' conftest.$ac_ext >&5
6983 ac_header_preproc=no
6985 rm -f conftest.err conftest.$ac_ext
6986 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6987 echo "${ECHO_T}$ac_header_preproc" >&6
6989 # So? What about this header?
6990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6992 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6993 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6994 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6995 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6996 ac_header_preproc=yes
6999 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7000 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7001 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7002 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7003 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7004 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7005 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7006 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7008 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7009 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7010 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7013 ## ------------------------------------------ ##
7014 ## Report this to the AC_PACKAGE_NAME lists. ##
7015 ## ------------------------------------------ ##
7018 sed "s/^/$as_me: WARNING: /" >&2
7021 echo "$as_me:$LINENO: checking for $ac_header" >&5
7022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7023 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7024 echo $ECHO_N "(cached) $ECHO_C" >&6
7026 eval "$as_ac_Header=\$ac_header_preproc"
7028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7029 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7032 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7033 cat >>confdefs.h <<_ACEOF
7034 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7041 echo "$as_me:$LINENO: checking for restartable system calls" >&5
7042 echo $ECHO_N "checking for restartable system calls... $ECHO_C" >&6
7043 if test "${ac_cv_sys_restartable_syscalls+set}" = set; then
7044 echo $ECHO_N "(cached) $ECHO_C" >&6
7046 if test "$cross_compiling" = yes; then
7047 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7048 See \`config.log' for more details." >&5
7049 echo "$as_me: error: cannot run test program while cross compiling
7050 See \`config.log' for more details." >&2;}
7051 { (exit 1); exit 1; }; }
7053 cat >conftest.$ac_ext <<_ACEOF
7056 cat confdefs.h >>conftest.$ac_ext
7057 cat >>conftest.$ac_ext <<_ACEOF
7058 /* end confdefs.h. */
7059 /* Exit 0 (true) if wait returns something other than -1,
7060 i.e. the pid of the child, which means that wait was restarted
7061 after getting the signal. */
7063 #include <sys/types.h>
7066 # include <unistd.h>
7069 # include <sys/wait.h>
7072 /* Some platforms explicitly require an extern "C" signal handler
7075 extern "C" void ucatch (int dummy) { }
7077 void ucatch (dummy) int dummy; { }
7083 int i = fork (), status;
7088 kill (getppid (), SIGINT);
7093 signal (SIGINT, ucatch);
7099 exit (status == -1);
7102 rm -f conftest$ac_exeext
7103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7104 (eval $ac_link) 2>&5
7106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7107 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112 (exit $ac_status); }; }; then
7113 ac_cv_sys_restartable_syscalls=yes
7115 echo "$as_me: program exited with status $ac_status" >&5
7116 echo "$as_me: failed program was:" >&5
7117 sed 's/^/| /' conftest.$ac_ext >&5
7120 ac_cv_sys_restartable_syscalls=no
7122 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7125 echo "$as_me:$LINENO: result: $ac_cv_sys_restartable_syscalls" >&5
7126 echo "${ECHO_T}$ac_cv_sys_restartable_syscalls" >&6
7127 if test $ac_cv_sys_restartable_syscalls = yes; then
7129 cat >>confdefs.h <<\_ACEOF
7130 #define HAVE_RESTARTABLE_SYSCALLS 1
7136 echo "$as_me:$LINENO: checking for donuts" >&5
7137 echo $ECHO_N "checking for donuts... $ECHO_C" >&6
7138 echo "$as_me:$LINENO: result: yes" >&5
7139 echo "${ECHO_T}yes" >&6
7141 for ac_prog in gawk mawk nawk awk
7143 # Extract the first word of "$ac_prog", so it can be a program name with args.
7144 set dummy $ac_prog; ac_word=$2
7145 echo "$as_me:$LINENO: checking for $ac_word" >&5
7146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7147 if test "${ac_cv_prog_AWK+set}" = set; then
7148 echo $ECHO_N "(cached) $ECHO_C" >&6
7150 if test -n "$AWK"; then
7151 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7157 test -z "$as_dir" && as_dir=.
7158 for ac_exec_ext in '' $ac_executable_extensions; do
7159 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7160 ac_cv_prog_AWK="$ac_prog"
7161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7170 if test -n "$AWK"; then
7171 echo "$as_me:$LINENO: result: $AWK" >&5
7172 echo "${ECHO_T}$AWK" >&6
7174 echo "$as_me:$LINENO: result: no" >&5
7175 echo "${ECHO_T}no" >&6
7178 test -n "$AWK" && break
7181 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7182 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7183 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7184 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7185 echo $ECHO_N "(cached) $ECHO_C" >&6
7187 cat >conftest.make <<\_ACEOF
7189 @echo 'ac_maketemp="$(MAKE)"'
7191 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7192 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7193 if test -n "$ac_maketemp"; then
7194 eval ac_cv_prog_make_${ac_make}_set=yes
7196 eval ac_cv_prog_make_${ac_make}_set=no
7200 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7201 echo "$as_me:$LINENO: result: yes" >&5
7202 echo "${ECHO_T}yes" >&6
7205 echo "$as_me:$LINENO: result: no" >&5
7206 echo "${ECHO_T}no" >&6
7207 SET_MAKE="MAKE=${MAKE-make}"
7210 # Find a good install program. We prefer a C program (faster),
7211 # so one script is as good as another. But avoid the broken or
7212 # incompatible versions:
7213 # SysV /etc/install, /usr/sbin/install
7214 # SunOS /usr/etc/install
7215 # IRIX /sbin/install
7217 # AmigaOS /C/install, which installs bootblocks on floppy discs
7218 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7219 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7220 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7221 # OS/2's system install, which has a completely different semantic
7222 # ./install, which can be erroneously created by make from ./install.sh.
7223 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7224 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
7225 if test -z "$INSTALL"; then
7226 if test "${ac_cv_path_install+set}" = set; then
7227 echo $ECHO_N "(cached) $ECHO_C" >&6
7229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7233 test -z "$as_dir" && as_dir=.
7234 # Account for people who put trailing slashes in PATH elements.
7236 ./ | .// | /cC/* | \
7237 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7238 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7241 # OSF1 and SCO ODT 3.0 have their own names for install.
7242 # Don't use installbsd from OSF since it installs stuff as root
7244 for ac_prog in ginstall scoinst install; do
7245 for ac_exec_ext in '' $ac_executable_extensions; do
7246 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7247 if test $ac_prog = install &&
7248 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7249 # AIX install. It has an incompatible calling convention.
7251 elif test $ac_prog = install &&
7252 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7253 # program-specific install script used by HP pwplus--don't use.
7256 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7268 if test "${ac_cv_path_install+set}" = set; then
7269 INSTALL=$ac_cv_path_install
7271 # As a last resort, use the slow shell script. We don't cache a
7272 # path for INSTALL within a source directory, because that will
7273 # break other packages using the cache if that directory is
7274 # removed, or if the path is relative.
7275 INSTALL=$ac_install_sh
7278 echo "$as_me:$LINENO: result: $INSTALL" >&5
7279 echo "${ECHO_T}$INSTALL" >&6
7281 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7282 # It thinks the first close brace ends the variable substitution.
7283 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7285 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7287 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7289 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7290 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7292 if test "$LN_S" = "ln -s"; then
7293 echo "$as_me:$LINENO: result: yes" >&5
7294 echo "${ECHO_T}yes" >&6
7296 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7297 echo "${ECHO_T}no, using $LN_S" >&6
7300 for ac_prog in flex lex
7302 # Extract the first word of "$ac_prog", so it can be a program name with args.
7303 set dummy $ac_prog; ac_word=$2
7304 echo "$as_me:$LINENO: checking for $ac_word" >&5
7305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7306 if test "${ac_cv_prog_LEX+set}" = set; then
7307 echo $ECHO_N "(cached) $ECHO_C" >&6
7309 if test -n "$LEX"; then
7310 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7316 test -z "$as_dir" && as_dir=.
7317 for ac_exec_ext in '' $ac_executable_extensions; do
7318 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7319 ac_cv_prog_LEX="$ac_prog"
7320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7329 if test -n "$LEX"; then
7330 echo "$as_me:$LINENO: result: $LEX" >&5
7331 echo "${ECHO_T}$LEX" >&6
7333 echo "$as_me:$LINENO: result: no" >&5
7334 echo "${ECHO_T}no" >&6
7337 test -n "$LEX" && break
7339 test -n "$LEX" || LEX=":"
7341 if test -z "$LEXLIB"
7343 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
7344 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
7345 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
7346 echo $ECHO_N "(cached) $ECHO_C" >&6
7348 ac_check_lib_save_LIBS=$LIBS
7350 cat >conftest.$ac_ext <<_ACEOF
7353 cat confdefs.h >>conftest.$ac_ext
7354 cat >>conftest.$ac_ext <<_ACEOF
7355 /* end confdefs.h. */
7357 /* Override any gcc2 internal prototype to avoid an error. */
7361 /* We use char because int might match the return type of a gcc2
7362 builtin and then its argument prototype would still apply. */
7372 rm -f conftest.$ac_objext conftest$ac_exeext
7373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7374 (eval $ac_link) 2>conftest.er1
7376 grep -v '^ *+' conftest.er1 >conftest.err
7378 cat conftest.err >&5
7379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7380 (exit $ac_status); } &&
7381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386 (exit $ac_status); }; } &&
7387 { ac_try='test -s conftest$ac_exeext'
7388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392 (exit $ac_status); }; }; then
7393 ac_cv_lib_fl_yywrap=yes
7395 echo "$as_me: failed program was:" >&5
7396 sed 's/^/| /' conftest.$ac_ext >&5
7398 ac_cv_lib_fl_yywrap=no
7400 rm -f conftest.err conftest.$ac_objext \
7401 conftest$ac_exeext conftest.$ac_ext
7402 LIBS=$ac_check_lib_save_LIBS
7404 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
7405 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
7406 if test $ac_cv_lib_fl_yywrap = yes; then
7409 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
7410 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
7411 if test "${ac_cv_lib_l_yywrap+set}" = set; then
7412 echo $ECHO_N "(cached) $ECHO_C" >&6
7414 ac_check_lib_save_LIBS=$LIBS
7416 cat >conftest.$ac_ext <<_ACEOF
7419 cat confdefs.h >>conftest.$ac_ext
7420 cat >>conftest.$ac_ext <<_ACEOF
7421 /* end confdefs.h. */
7423 /* Override any gcc2 internal prototype to avoid an error. */
7427 /* We use char because int might match the return type of a gcc2
7428 builtin and then its argument prototype would still apply. */
7438 rm -f conftest.$ac_objext conftest$ac_exeext
7439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7440 (eval $ac_link) 2>conftest.er1
7442 grep -v '^ *+' conftest.er1 >conftest.err
7444 cat conftest.err >&5
7445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7446 (exit $ac_status); } &&
7447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452 (exit $ac_status); }; } &&
7453 { ac_try='test -s conftest$ac_exeext'
7454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458 (exit $ac_status); }; }; then
7459 ac_cv_lib_l_yywrap=yes
7461 echo "$as_me: failed program was:" >&5
7462 sed 's/^/| /' conftest.$ac_ext >&5
7464 ac_cv_lib_l_yywrap=no
7466 rm -f conftest.err conftest.$ac_objext \
7467 conftest$ac_exeext conftest.$ac_ext
7468 LIBS=$ac_check_lib_save_LIBS
7470 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
7471 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
7472 if test $ac_cv_lib_l_yywrap = yes; then
7480 if test "x$LEX" != "x:"; then
7481 echo "$as_me:$LINENO: checking lex output file root" >&5
7482 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
7483 if test "${ac_cv_prog_lex_root+set}" = set; then
7484 echo $ECHO_N "(cached) $ECHO_C" >&6
7486 # The minimal lex program is just a single line: %%. But some broken lexes
7487 # (Solaris, I think it was) want two %% lines, so accommodate them.
7488 cat >conftest.l <<_ACEOF
7492 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
7493 (eval $LEX conftest.l) 2>&5
7495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7496 (exit $ac_status); }
7497 if test -f lex.yy.c; then
7498 ac_cv_prog_lex_root=lex.yy
7499 elif test -f lexyy.c; then
7500 ac_cv_prog_lex_root=lexyy
7502 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
7503 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
7504 { (exit 1); exit 1; }; }
7507 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
7508 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
7510 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
7512 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
7513 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
7514 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
7515 echo $ECHO_N "(cached) $ECHO_C" >&6
7517 # POSIX says lex can declare yytext either as a pointer or an array; the
7518 # default is implementation-dependent. Figure out which it is, since
7519 # not all implementations provide the %pointer and %array declarations.
7520 ac_cv_prog_lex_yytext_pointer=no
7521 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
7523 LIBS="$LIBS $LEXLIB"
7524 cat >conftest.$ac_ext <<_ACEOF
7525 `cat $LEX_OUTPUT_ROOT.c`
7527 rm -f conftest.$ac_objext conftest$ac_exeext
7528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7529 (eval $ac_link) 2>conftest.er1
7531 grep -v '^ *+' conftest.er1 >conftest.err
7533 cat conftest.err >&5
7534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7535 (exit $ac_status); } &&
7536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541 (exit $ac_status); }; } &&
7542 { ac_try='test -s conftest$ac_exeext'
7543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547 (exit $ac_status); }; }; then
7548 ac_cv_prog_lex_yytext_pointer=yes
7550 echo "$as_me: failed program was:" >&5
7551 sed 's/^/| /' conftest.$ac_ext >&5
7554 rm -f conftest.err conftest.$ac_objext \
7555 conftest$ac_exeext conftest.$ac_ext
7557 rm -f "${LEX_OUTPUT_ROOT}.c"
7560 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
7561 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
7562 if test $ac_cv_prog_lex_yytext_pointer = yes; then
7564 cat >>confdefs.h <<\_ACEOF
7565 #define YYTEXT_POINTER 1
7571 for ac_prog in 'bison -y' byacc
7573 # Extract the first word of "$ac_prog", so it can be a program name with args.
7574 set dummy $ac_prog; ac_word=$2
7575 echo "$as_me:$LINENO: checking for $ac_word" >&5
7576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7577 if test "${ac_cv_prog_YACC+set}" = set; then
7578 echo $ECHO_N "(cached) $ECHO_C" >&6
7580 if test -n "$YACC"; then
7581 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7587 test -z "$as_dir" && as_dir=.
7588 for ac_exec_ext in '' $ac_executable_extensions; do
7589 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7590 ac_cv_prog_YACC="$ac_prog"
7591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7599 YACC=$ac_cv_prog_YACC
7600 if test -n "$YACC"; then
7601 echo "$as_me:$LINENO: result: $YACC" >&5
7602 echo "${ECHO_T}$YACC" >&6
7604 echo "$as_me:$LINENO: result: no" >&5
7605 echo "${ECHO_T}no" >&6
7608 test -n "$YACC" && break
7610 test -n "$YACC" || YACC="yacc"
7614 # Extract the first word of "$ac_prog", so it can be a program name with args.
7615 set dummy $ac_prog; ac_word=$2
7616 echo "$as_me:$LINENO: checking for $ac_word" >&5
7617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7618 if test "${ac_cv_path_RMPROG+set}" = set; then
7619 echo $ECHO_N "(cached) $ECHO_C" >&6
7623 ac_cv_path_RMPROG="$RMPROG" # Let the user override the test with a path.
7626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7630 test -z "$as_dir" && as_dir=.
7631 for ac_exec_ext in '' $ac_executable_extensions; do
7632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7633 ac_cv_path_RMPROG="$as_dir/$ac_word$ac_exec_ext"
7634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7643 RMPROG=$ac_cv_path_RMPROG
7645 if test -n "$RMPROG"; then
7646 echo "$as_me:$LINENO: result: $RMPROG" >&5
7647 echo "${ECHO_T}$RMPROG" >&6
7649 echo "$as_me:$LINENO: result: no" >&5
7650 echo "${ECHO_T}no" >&6
7653 test -n "$RMPROG" && break
7655 test -n "$RMPROG" || RMPROG="/bin/rm"
7659 # Extract the first word of "$ac_prog", so it can be a program name with args.
7660 set dummy $ac_prog; ac_word=$2
7661 echo "$as_me:$LINENO: checking for $ac_word" >&5
7662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7663 if test "${ac_cv_path_SHPROG+set}" = set; then
7664 echo $ECHO_N "(cached) $ECHO_C" >&6
7668 ac_cv_path_SHPROG="$SHPROG" # Let the user override the test with a path.
7671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7675 test -z "$as_dir" && as_dir=.
7676 for ac_exec_ext in '' $ac_executable_extensions; do
7677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7678 ac_cv_path_SHPROG="$as_dir/$ac_word$ac_exec_ext"
7679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7688 SHPROG=$ac_cv_path_SHPROG
7690 if test -n "$SHPROG"; then
7691 echo "$as_me:$LINENO: result: $SHPROG" >&5
7692 echo "${ECHO_T}$SHPROG" >&6
7694 echo "$as_me:$LINENO: result: no" >&5
7695 echo "${ECHO_T}no" >&6
7698 test -n "$SHPROG" && break
7700 test -n "$SHPROG" || SHPROG="/bin/sh"
7703 LIBS="$LEXLIB $LIBS"
7705 echo "$as_me:$LINENO: checking for posix non-blocking" >&5
7706 echo $ECHO_N "checking for posix non-blocking... $ECHO_C" >&6
7707 if test "${unet_cv_sys_nonblocking_posix+set}" = set; then
7708 echo $ECHO_N "(cached) $ECHO_C" >&6
7710 if test "$cross_compiling" = yes; then
7711 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7712 See \`config.log' for more details." >&5
7713 echo "$as_me: error: cannot run test program while cross compiling
7714 See \`config.log' for more details." >&2;}
7715 { (exit 1); exit 1; }; }
7717 cat >conftest.$ac_ext <<_ACEOF
7720 cat confdefs.h >>conftest.$ac_ext
7721 cat >>conftest.$ac_ext <<_ACEOF
7722 /* end confdefs.h. */
7723 #include <sys/types.h>
7724 #include <sys/socket.h>
7726 #include <sys/ioctl.h>
7727 #include <sys/file.h>
7729 $ac_cv_type_signal alarmed() { exit(1); }
7734 size_t l = sizeof(x);
7735 int f = socket(AF_INET, SOCK_DGRAM, 0);
7736 if (f >= 0 && !(fcntl(f, F_SETFL, O_NONBLOCK)))
7738 signal(SIGALRM, alarmed);
7740 recvfrom(f, b, 12, 0, &x, &l);
7747 rm -f conftest$ac_exeext
7748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7749 (eval $ac_link) 2>&5
7751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757 (exit $ac_status); }; }; then
7758 unet_cv_sys_nonblocking_posix=yes
7760 echo "$as_me: program exited with status $ac_status" >&5
7761 echo "$as_me: failed program was:" >&5
7762 sed 's/^/| /' conftest.$ac_ext >&5
7765 unet_cv_sys_nonblocking_posix=no
7767 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7770 echo "$as_me:$LINENO: result: $unet_cv_sys_nonblocking_posix" >&5
7771 echo "${ECHO_T}$unet_cv_sys_nonblocking_posix" >&6
7772 if test $unet_cv_sys_nonblocking_posix = yes; then
7773 cat >>confdefs.h <<\_ACEOF
7774 #define NBLOCK_POSIX 1
7778 echo "$as_me:$LINENO: checking for bsd non-blocking" >&5
7779 echo $ECHO_N "checking for bsd non-blocking... $ECHO_C" >&6
7780 if test "${unet_cv_sys_nonblocking_bsd+set}" = set; then
7781 echo $ECHO_N "(cached) $ECHO_C" >&6
7783 if test "$cross_compiling" = yes; then
7784 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7785 See \`config.log' for more details." >&5
7786 echo "$as_me: error: cannot run test program while cross compiling
7787 See \`config.log' for more details." >&2;}
7788 { (exit 1); exit 1; }; }
7790 cat >conftest.$ac_ext <<_ACEOF
7793 cat confdefs.h >>conftest.$ac_ext
7794 cat >>conftest.$ac_ext <<_ACEOF
7795 /* end confdefs.h. */
7796 #include <sys/types.h>
7797 #include <sys/socket.h>
7799 #include <sys/ioctl.h>
7800 #include <sys/file.h>
7802 $ac_cv_type_signal alarmed() { exit(1); }
7807 size_t l = sizeof(x);
7808 int f = socket(AF_INET, SOCK_DGRAM, 0);
7809 if (f >= 0 && !(fcntl(f, F_SETFL, O_NDELAY)))
7811 signal(SIGALRM, alarmed);
7813 recvfrom(f, b, 12, 0, &x, &l);
7820 rm -f conftest$ac_exeext
7821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7822 (eval $ac_link) 2>&5
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830 (exit $ac_status); }; }; then
7831 unet_cv_sys_nonblocking_bsd=yes
7833 echo "$as_me: program exited with status $ac_status" >&5
7834 echo "$as_me: failed program was:" >&5
7835 sed 's/^/| /' conftest.$ac_ext >&5
7838 unet_cv_sys_nonblocking_bsd=no
7840 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7843 echo "$as_me:$LINENO: result: $unet_cv_sys_nonblocking_bsd" >&5
7844 echo "${ECHO_T}$unet_cv_sys_nonblocking_bsd" >&6
7845 if test $unet_cv_sys_nonblocking_bsd = yes; then
7846 cat >>confdefs.h <<\_ACEOF
7847 #define NBLOCK_BSD 1
7851 cat >>confdefs.h <<\_ACEOF
7852 #define NBLOCK_SYSV 1
7857 echo "$as_me:$LINENO: checking for posix signals" >&5
7858 echo $ECHO_N "checking for posix signals... $ECHO_C" >&6
7859 if test "${unet_cv_sys_signal_posix+set}" = set; then
7860 echo $ECHO_N "(cached) $ECHO_C" >&6
7862 cat >conftest.$ac_ext <<_ACEOF
7865 cat confdefs.h >>conftest.$ac_ext
7866 cat >>conftest.$ac_ext <<_ACEOF
7867 /* end confdefs.h. */
7872 sigaction(SIGTERM, (struct sigaction *)0L, (struct sigaction *)0L)
7877 rm -f conftest.$ac_objext
7878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7879 (eval $ac_compile) 2>conftest.er1
7881 grep -v '^ *+' conftest.er1 >conftest.err
7883 cat conftest.err >&5
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); } &&
7886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); }; } &&
7892 { ac_try='test -s conftest.$ac_objext'
7893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897 (exit $ac_status); }; }; then
7898 unet_cv_sys_signal_posix=yes
7900 echo "$as_me: failed program was:" >&5
7901 sed 's/^/| /' conftest.$ac_ext >&5
7903 unet_cv_sys_signal_posix=no
7905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7907 echo "$as_me:$LINENO: result: $unet_cv_sys_signal_posix" >&5
7908 echo "${ECHO_T}$unet_cv_sys_signal_posix" >&6
7909 if test $unet_cv_sys_signal_posix = yes; then
7910 cat >>confdefs.h <<\_ACEOF
7911 #define POSIX_SIGNALS 1
7915 echo "$as_me:$LINENO: checking for bsd reliable signals" >&5
7916 echo $ECHO_N "checking for bsd reliable signals... $ECHO_C" >&6
7917 if test "${unet_cv_sys_signal_bsd+set}" = set; then
7918 echo $ECHO_N "(cached) $ECHO_C" >&6
7920 if test "$cross_compiling" = yes; then
7921 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7922 See \`config.log' for more details." >&5
7923 echo "$as_me: error: cannot run test program while cross compiling
7924 See \`config.log' for more details." >&2;}
7925 { (exit 1); exit 1; }; }
7927 cat >conftest.$ac_ext <<_ACEOF
7930 cat confdefs.h >>conftest.$ac_ext
7931 cat >>conftest.$ac_ext <<_ACEOF
7932 /* end confdefs.h. */
7935 $ac_cv_type_signal handler()
7939 kill(getpid(), SIGTERM);
7944 signal(SIGTERM, handler);
7945 kill(getpid(), SIGTERM);
7949 rm -f conftest$ac_exeext
7950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7951 (eval $ac_link) 2>&5
7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 (exit $ac_status); }; }; then
7960 unet_cv_sys_signal_bsd=yes
7962 echo "$as_me: program exited with status $ac_status" >&5
7963 echo "$as_me: failed program was:" >&5
7964 sed 's/^/| /' conftest.$ac_ext >&5
7967 unet_cv_sys_signal_bsd=no
7969 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7972 echo "$as_me:$LINENO: result: $unet_cv_sys_signal_bsd" >&5
7973 echo "${ECHO_T}$unet_cv_sys_signal_bsd" >&6
7974 if test $unet_cv_sys_signal_bsd = yes; then
7975 cat >>confdefs.h <<\_ACEOF
7976 #define BSD_RELIABLE_SIGNALS 1
7980 cat >>confdefs.h <<\_ACEOF
7981 #define SYSV_UNRELIABLE_SIGNALS 1
7987 echo "$as_me:$LINENO: checking if the compiler understands -pipe" >&5
7988 echo $ECHO_N "checking if the compiler understands -pipe... $ECHO_C" >&6
7989 unet_cv_pipe_flags="$ac_cv_c_compiler_gnu"
7990 if test "$ac_cv_c_compiler_gnu" = no; then
7992 CFLAGS="$CFLAGS -pipe"
7993 cat >conftest.$ac_ext <<_ACEOF
7996 cat confdefs.h >>conftest.$ac_ext
7997 cat >>conftest.$ac_ext <<_ACEOF
7998 /* end confdefs.h. */
8008 rm -f conftest.$ac_objext
8009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8010 (eval $ac_compile) 2>conftest.er1
8012 grep -v '^ *+' conftest.er1 >conftest.err
8014 cat conftest.err >&5
8015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016 (exit $ac_status); } &&
8017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022 (exit $ac_status); }; } &&
8023 { ac_try='test -s conftest.$ac_objext'
8024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028 (exit $ac_status); }; }; then
8029 unet_cv_pipe_flags=yes
8031 echo "$as_me: failed program was:" >&5
8032 sed 's/^/| /' conftest.$ac_ext >&5
8035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8038 echo "$as_me:$LINENO: result: $unet_cv_pipe_flags" >&5
8039 echo "${ECHO_T}$unet_cv_pipe_flags" >&6
8040 if test "$unet_cv_pipe_flags" = yes ; then
8041 x=`echo $CFLAGS | grep 'pipe' 2>/dev/null`
8042 if test "$x" = "" ; then
8043 CFLAGS="$CFLAGS -pipe"
8048 echo "$as_me:$LINENO: checking for OS-dependent information" >&5
8049 echo $ECHO_N "checking for OS-dependent information... $ECHO_C" >&6
8052 echo "$as_me:$LINENO: result: Linux ($host) found." >&5
8053 echo "${ECHO_T}Linux ($host) found." >&6
8054 unet_poll_syscall=yes
8058 echo "$as_me:$LINENO: result: Solaris ($host) found." >&5
8059 echo "${ECHO_T}Solaris ($host) found." >&6
8060 if test x"$ac_cv_header_poll_h" = xyes; then
8061 unet_poll_syscall=yes
8063 unet_poll_syscall=no
8068 echo "$as_me:$LINENO: result: Solaris ($host) found." >&5
8069 echo "${ECHO_T}Solaris ($host) found." >&6
8070 unet_poll_syscall=no
8074 echo "$as_me:$LINENO: result: OpenBSD ($host) found." >&5
8075 echo "${ECHO_T}OpenBSD ($host) found." >&6
8076 if test x"$ac_cv_header_poll_h" = xyes; then
8077 unet_poll_syscall=yes
8079 unet_poll_syscall=no
8084 echo "$as_me:$LINENO: result: Generic BSD ($host) found." >&5
8085 echo "${ECHO_T}Generic BSD ($host) found." >&6
8086 if test x"$ac_cv_header_poll_h" = xyes; then
8087 unet_poll_syscall=yes
8089 unet_poll_syscall=no
8094 echo "$as_me:$LINENO: result: Darwin (Mac OS X) ($host) found." >&5
8095 echo "${ECHO_T}Darwin (Mac OS X) ($host) found." >&6
8096 unet_poll_syscall=no
8100 echo "$as_me:$LINENO: result: Unknown system type $host found." >&5
8101 echo "${ECHO_T}Unknown system type $host found." >&6
8102 { echo "$as_me:$LINENO: WARNING: Unknown OS type; using generic routines." >&5
8103 echo "$as_me: WARNING: Unknown OS type; using generic routines." >&2;}
8104 unet_poll_syscall=no
8108 echo "$as_me:$LINENO: checking whether to enable use of poll()" >&5
8109 echo $ECHO_N "checking whether to enable use of poll()... $ECHO_C" >&6
8110 # Check whether --enable-poll or --disable-poll was given.
8111 if test "${enable_poll+set}" = set; then
8112 enableval="$enable_poll"
8113 unet_cv_enable_poll=$enable_poll
8115 if test "${unet_cv_enable_poll+set}" = set; then
8116 echo $ECHO_N "(cached) $ECHO_C" >&6
8118 unet_cv_enable_poll=$unet_poll_syscall
8123 # Force poll to be disabled if there is no poll.h
8124 if test x"$ac_cv_header_poll_h" != xyes; then
8125 unet_cv_enable_poll=no
8128 echo "$as_me:$LINENO: result: $unet_cv_enable_poll" >&5
8129 echo "${ECHO_T}$unet_cv_enable_poll" >&6
8131 if test x"$unet_cv_enable_poll" = xyes; then
8133 cat >>confdefs.h <<\_ACEOF
8137 ENGINE_C=engine_poll.c
8139 ENGINE_C=engine_select.c
8143 echo "$as_me:$LINENO: checking whether to enable debug mode" >&5
8144 echo $ECHO_N "checking whether to enable debug mode... $ECHO_C" >&6
8145 # Check whether --enable-debug or --disable-debug was given.
8146 if test "${enable_debug+set}" = set; then
8147 enableval="$enable_debug"
8148 unet_cv_enable_debug=$enable_debug
8150 if test "${unet_cv_enable_debug+set}" = set; then
8151 echo $ECHO_N "(cached) $ECHO_C" >&6
8153 unet_cv_enable_debug=no
8157 echo "$as_me:$LINENO: result: $unet_cv_enable_debug" >&5
8158 echo "${ECHO_T}$unet_cv_enable_debug" >&6
8160 if test x"$unet_cv_enable_debug" = xyes; then
8162 cat >>confdefs.h <<\_ACEOF
8168 echo "$as_me:$LINENO: checking whether to enable leak detection" >&5
8169 echo $ECHO_N "checking whether to enable leak detection... $ECHO_C" >&6
8171 # Check whether --with-leak-detect or --without-leak-detect was given.
8172 if test "${with_leak_detect+set}" = set; then
8173 withval="$with_leak_detect"
8174 unet_cv_with_leak_detect=$with_leak_detect
8176 if test "${unet_cv_with_leak_detect+set}" = set; then
8177 echo $ECHO_N "(cached) $ECHO_C" >&6
8179 unet_cv_with_leak_detect=no
8183 echo "$as_me:$LINENO: result: $unet_cv_enable_leak_detect" >&5
8184 echo "${ECHO_T}$unet_cv_enable_leak_detect" >&6
8186 if test x"$unet_cv_with_leak_detect" != xno; then
8188 CFLAGS="-DMDEBUG $CFLAGS"
8189 if test x"$unet_cv_with_leak_detect" != xyes; then
8190 LIBS="-L$unet_cv_with_leak_detect $LIBS"
8194 echo "$as_me:$LINENO: checking whether to enable asserts" >&5
8195 echo $ECHO_N "checking whether to enable asserts... $ECHO_C" >&6
8196 # Check whether --enable-asserts or --disable-asserts was given.
8197 if test "${enable_asserts+set}" = set; then
8198 enableval="$enable_asserts"
8199 unet_cv_enable_asserts=$enable_asserts
8201 if test "${unet_cv_enable_asserts+set}" = set; then
8202 echo $ECHO_N "(cached) $ECHO_C" >&6
8204 unet_cv_enable_asserts=yes
8208 echo "$as_me:$LINENO: result: $unet_cv_enable_asserts" >&5
8209 echo "${ECHO_T}$unet_cv_enable_asserts" >&6
8211 if test x"$unet_cv_enable_asserts" = xno; then
8213 cat >>confdefs.h <<\_ACEOF
8219 echo "$as_me:$LINENO: checking whether to enable debugging symbols" >&5
8220 echo $ECHO_N "checking whether to enable debugging symbols... $ECHO_C" >&6
8221 # Check whether --enable-symbols or --disable-symbols was given.
8222 if test "${enable_symbols+set}" = set; then
8223 enableval="$enable_symbols"
8224 unet_cv_enable_symbols=$enable_symbols
8226 if test "${unet_cv_enable_symbols+set}" = set; then
8227 echo $ECHO_N "(cached) $ECHO_C" >&6
8229 unet_cv_enable_symbols=yes
8233 echo "$as_me:$LINENO: result: $unet_cv_enable_symbols" >&5
8234 echo "${ECHO_T}$unet_cv_enable_symbols" >&6
8236 if test x"$unet_cv_enable_symbols" = xyes; then
8240 echo "$as_me:$LINENO: checking whether to enable profiling support (gprof)" >&5
8241 echo $ECHO_N "checking whether to enable profiling support (gprof)... $ECHO_C" >&6
8242 # Check whether --enable-profile or --disable-profile was given.
8243 if test "${enable_profile+set}" = set; then
8244 enableval="$enable_profile"
8245 unet_cv_enable_profile=$enable_profile
8247 if test "${unet_cv_enable_profile+set}" = set; then
8248 echo $ECHO_N "(cached) $ECHO_C" >&6
8250 unet_cv_enable_profile=no
8254 echo "$as_me:$LINENO: result: $unet_cv_enable_profile" >&5
8255 echo "${ECHO_T}$unet_cv_enable_profile" >&6
8257 if test x"$unet_cv_enable_profile" = xyes; then
8258 CFLAGS="-pg $CFLAGS"
8261 echo "$as_me:$LINENO: checking whether to enable pedantic compiler warnings" >&5
8262 echo $ECHO_N "checking whether to enable pedantic compiler warnings... $ECHO_C" >&6
8263 # Check whether --enable-pedantic or --disable-pedantic was given.
8264 if test "${enable_pedantic+set}" = set; then
8265 enableval="$enable_pedantic"
8266 unet_cv_enable_pedantic=$enable_pedantic
8268 if test "${unet_cv_enable_pedantic+set}" = set; then
8269 echo $ECHO_N "(cached) $ECHO_C" >&6
8271 unet_cv_enable_pedantic=no
8275 echo "$as_me:$LINENO: result: $unet_cv_enable_pedantic" >&5
8276 echo "${ECHO_T}$unet_cv_enable_pedantic" >&6
8278 if test x"$unet_cv_enable_pedantic" = xyes; then
8279 CFLAGS="-pedantic $CFLAGS"
8282 echo "$as_me:$LINENO: checking whether to enable compiler warnings" >&5
8283 echo $ECHO_N "checking whether to enable compiler warnings... $ECHO_C" >&6
8284 # Check whether --enable-warnings or --disable-warnings was given.
8285 if test "${enable_warnings+set}" = set; then
8286 enableval="$enable_warnings"
8287 unet_cv_enable_warnings=$enable_warnings
8289 if test "${unet_cv_enable_warnings+set}" = set; then
8290 echo $ECHO_N "(cached) $ECHO_C" >&6
8292 unet_cv_enable_warnings=no
8296 echo "$as_me:$LINENO: result: $unet_cv_enable_warnings" >&5
8297 echo "${ECHO_T}$unet_cv_enable_warnings" >&6
8299 if test x"$unet_cv_enable_warnings" = xyes; then
8300 CFLAGS="-Wall $CFLAGS"
8303 echo "$as_me:$LINENO: checking whether to enable inlining for a few critical functions" >&5
8304 echo $ECHO_N "checking whether to enable inlining for a few critical functions... $ECHO_C" >&6
8305 # Check whether --enable-inlines or --disable-inlines was given.
8306 if test "${enable_inlines+set}" = set; then
8307 enableval="$enable_inlines"
8308 unet_cv_enable_inlines=$enable_inlines
8310 if test "${unet_cv_enable_inlines+set}" = set; then
8311 echo $ECHO_N "(cached) $ECHO_C" >&6
8313 unet_cv_enable_inlines=yes
8317 echo "$as_me:$LINENO: result: $unet_cv_enable_inlines" >&5
8318 echo "${ECHO_T}$unet_cv_enable_inlines" >&6
8320 if test x"$unet_cv_enable_inlines" = xyes; then
8322 cat >>confdefs.h <<\_ACEOF
8328 echo "$as_me:$LINENO: checking whether to enable the /dev/poll event engine" >&5
8329 echo $ECHO_N "checking whether to enable the /dev/poll event engine... $ECHO_C" >&6
8330 # Check whether --enable-devpoll or --disable-devpoll was given.
8331 if test "${enable_devpoll+set}" = set; then
8332 enableval="$enable_devpoll"
8333 unet_cv_enable_devpoll=$enable_devpoll
8335 if test "${unet_cv_enable_devpoll+set}" = set; then
8336 echo $ECHO_N "(cached) $ECHO_C" >&6
8338 unet_cv_enable_devpoll=yes
8343 if test x"$ac_cv_header_sys_devpoll_h" = xno; then
8344 unet_cv_enable_devpoll=no
8347 echo "$as_me:$LINENO: result: $unet_cv_enable_devpoll" >&5
8348 echo "${ECHO_T}$unet_cv_enable_devpoll" >&6
8350 if test x"$unet_cv_enable_devpoll" != xno; then
8352 cat >>confdefs.h <<\_ACEOF
8356 ENGINE_C="engine_devpoll.c $ENGINE_C"
8359 echo "$as_me:$LINENO: checking whether to enable the kqueue event engine" >&5
8360 echo $ECHO_N "checking whether to enable the kqueue event engine... $ECHO_C" >&6
8361 # Check whether --enable-kqueue or --disable-kqueue was given.
8362 if test "${enable_kqueue+set}" = set; then
8363 enableval="$enable_kqueue"
8364 unet_cv_enable_kqueue=$enable_kqueue
8366 if test "${unet_cv_enable_kqueue+set}" = set; then
8367 echo $ECHO_N "(cached) $ECHO_C" >&6
8369 unet_cv_enable_kqueue=yes
8374 if test x"$ac_cv_header_sys_event_h" = xno -o x"$ac_cv_func_kqueue" = xno; then
8375 unet_cv_enable_kqueue=no
8378 echo "$as_me:$LINENO: result: $unet_cv_enable_kqueue" >&5
8379 echo "${ECHO_T}$unet_cv_enable_kqueue" >&6
8381 if test x"$unet_cv_enable_kqueue" != xno; then
8383 cat >>confdefs.h <<\_ACEOF
8387 ENGINE_C="engine_kqueue.c $ENGINE_C"
8390 echo "$as_me:$LINENO: checking whether to enable the epoll event engine" >&5
8391 echo $ECHO_N "checking whether to enable the epoll event engine... $ECHO_C" >&6
8392 # Check whether --enable-epoll or --disable-epoll was given.
8393 if test "${enable_epoll+set}" = set; then
8394 enableval="$enable_epoll"
8395 unet_cv_enable_epoll=$enable_epoll
8397 if test "${unet_cv_enable_epoll+set}" = set; then
8398 echo $ECHO_N "(cached) $ECHO_C" >&6
8400 unet_cv_enable_epoll=yes
8405 if test x"$ac_cv_header_sys_epoll_h" = xno -o x"$ac_cv_func_epoll" = xno; then
8406 unet_cv_enable_epoll=no
8409 echo "$as_me:$LINENO: result: $unet_cv_enable_epoll" >&5
8410 echo "${ECHO_T}$unet_cv_enable_epoll" >&6
8412 if test x"$unet_cv_enable_epoll" != xno; then
8413 echo "$as_me:$LINENO: checking whether epoll functions are properly defined" >&5
8414 echo $ECHO_N "checking whether epoll functions are properly defined... $ECHO_C" >&6
8415 cat >conftest.$ac_ext <<_ACEOF
8418 cat confdefs.h >>conftest.$ac_ext
8419 cat >>conftest.$ac_ext <<_ACEOF
8420 /* end confdefs.h. */
8421 #include <sys/epoll.h>
8430 rm -f conftest.$ac_objext conftest$ac_exeext
8431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8432 (eval $ac_link) 2>conftest.er1
8434 grep -v '^ *+' conftest.er1 >conftest.err
8436 cat conftest.err >&5
8437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438 (exit $ac_status); } &&
8439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444 (exit $ac_status); }; } &&
8445 { ac_try='test -s conftest$ac_exeext'
8446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); }; }; then
8451 echo "$as_me:$LINENO: result: yes" >&5
8452 echo "${ECHO_T}yes" >&6
8454 echo "$as_me: failed program was:" >&5
8455 sed 's/^/| /' conftest.$ac_ext >&5
8457 echo "$as_me:$LINENO: result: no" >&5
8458 echo "${ECHO_T}no" >&6
8460 cat >>confdefs.h <<\_ACEOF
8461 #define EPOLL_NEED_BODY
8465 rm -f conftest.err conftest.$ac_objext \
8466 conftest$ac_exeext conftest.$ac_ext
8468 cat >>confdefs.h <<\_ACEOF
8472 ENGINE_C="engine_epoll.c $ENGINE_C"
8475 echo "$as_me:$LINENO: checking for va_copy" >&5
8476 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
8477 if test "${unet_cv_c_va_copy+set}" = set; then
8478 echo $ECHO_N "(cached) $ECHO_C" >&6
8480 cat >conftest.$ac_ext <<_ACEOF
8483 cat confdefs.h >>conftest.$ac_ext
8484 cat >>conftest.$ac_ext <<_ACEOF
8485 /* end confdefs.h. */
8490 va_list ap1, ap2; va_copy(ap1, ap2);
8495 rm -f conftest.$ac_objext conftest$ac_exeext
8496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8497 (eval $ac_link) 2>conftest.er1
8499 grep -v '^ *+' conftest.er1 >conftest.err
8501 cat conftest.err >&5
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); } &&
8504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509 (exit $ac_status); }; } &&
8510 { ac_try='test -s conftest$ac_exeext'
8511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515 (exit $ac_status); }; }; then
8516 unet_cv_c_va_copy="yes"
8518 echo "$as_me: failed program was:" >&5
8519 sed 's/^/| /' conftest.$ac_ext >&5
8521 unet_cv_c_va_copy="no"
8524 rm -f conftest.err conftest.$ac_objext \
8525 conftest$ac_exeext conftest.$ac_ext
8527 echo "$as_me:$LINENO: result: $unet_cv_c_va_copy" >&5
8528 echo "${ECHO_T}$unet_cv_c_va_copy" >&6
8529 if test "$unet_cv_c_va_copy" = "yes" ; then
8531 cat >>confdefs.h <<\_ACEOF
8532 #define HAVE_VA_COPY 1
8537 echo "$as_me:$LINENO: checking for __va_copy" >&5
8538 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
8539 if test "${unet_cv_c___va_copy+set}" = set; then
8540 echo $ECHO_N "(cached) $ECHO_C" >&6
8542 cat >conftest.$ac_ext <<_ACEOF
8545 cat confdefs.h >>conftest.$ac_ext
8546 cat >>conftest.$ac_ext <<_ACEOF
8547 /* end confdefs.h. */
8552 va_list ap1, ap2; __va_copy(ap1, ap2);
8557 rm -f conftest.$ac_objext conftest$ac_exeext
8558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8559 (eval $ac_link) 2>conftest.er1
8561 grep -v '^ *+' conftest.er1 >conftest.err
8563 cat conftest.err >&5
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); } &&
8566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571 (exit $ac_status); }; } &&
8572 { ac_try='test -s conftest$ac_exeext'
8573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577 (exit $ac_status); }; }; then
8578 unet_cv_c___va_copy="yes"
8580 echo "$as_me: failed program was:" >&5
8581 sed 's/^/| /' conftest.$ac_ext >&5
8583 unet_cv_c___va_copy="no"
8586 rm -f conftest.err conftest.$ac_objext \
8587 conftest$ac_exeext conftest.$ac_ext
8589 echo "$as_me:$LINENO: result: $unet_cv_c___va_copy" >&5
8590 echo "${ECHO_T}$unet_cv_c___va_copy" >&6
8591 if test "$unet_cv_c___va_copy" = "yes" ; then
8593 cat >>confdefs.h <<\_ACEOF
8594 #define HAVE___VA_COPY 1
8599 echo "$as_me:$LINENO: checking what name to give the symlink" >&5
8600 echo $ECHO_N "checking what name to give the symlink... $ECHO_C" >&6
8602 # Check whether --with-symlink or --without-symlink was given.
8603 if test "${with_symlink+set}" = set; then
8604 withval="$with_symlink"
8605 unet_cv_with_symlink=$with_symlink
8607 if test "${unet_cv_with_symlink+set}" = set; then
8608 echo $ECHO_N "(cached) $ECHO_C" >&6
8610 unet_cv_with_symlink="ircd"
8615 if test x"$unet_cv_with_symlink" = xyes; then
8616 unet_cv_with_symlink="ircd"
8619 echo "$as_me:$LINENO: result: $unet_cv_with_symlink" >&5
8620 echo "${ECHO_T}$unet_cv_with_symlink" >&6
8622 if test x"$unet_cv_with_symlink" = xno; then
8623 INSTALL_RULE=install-no-symlink
8626 INSTALL_RULE=install-with-symlink
8627 SYMLINK=$unet_cv_with_symlink
8632 echo "$as_me:$LINENO: checking what permissions to set on the installed binary" >&5
8633 echo $ECHO_N "checking what permissions to set on the installed binary... $ECHO_C" >&6
8635 # Check whether --with-mode or --without-mode was given.
8636 if test "${with_mode+set}" = set; then
8637 withval="$with_mode"
8638 unet_cv_with_mode=$with_mode
8640 if test "${unet_cv_with_mode+set}" = set; then
8641 echo $ECHO_N "(cached) $ECHO_C" >&6
8643 unet_cv_with_mode=711
8648 if test x"$unet_cv_with_mode" = xyes -o x"$unet_cv_with_mode" = xno; then
8649 unet_cv_with_mode=711
8652 echo "$as_me:$LINENO: result: $unet_cv_with_mode" >&5
8653 echo "${ECHO_T}$unet_cv_with_mode" >&6
8655 IRCDMODE=$unet_cv_with_mode
8658 unet_uid=`id | sed -e 's/.*uid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
8659 echo "$as_me:$LINENO: checking which user should own the installed binary" >&5
8660 echo $ECHO_N "checking which user should own the installed binary... $ECHO_C" >&6
8662 # Check whether --with-owner or --without-owner was given.
8663 if test "${with_owner+set}" = set; then
8664 withval="$with_owner"
8665 unet_cv_with_owner=$with_owner
8667 if test "${unet_cv_with_owner+set}" = set; then
8668 echo $ECHO_N "(cached) $ECHO_C" >&6
8670 unet_cv_with_owner=$unet_uid
8675 if test x"$unet_cv_with_owner" = xyes -o x"$unet_cv_with_owner" = xno; then
8676 unet_cv_with_owner=$unet_uid
8679 echo "$as_me:$LINENO: result: $unet_cv_with_owner" >&5
8680 echo "${ECHO_T}$unet_cv_with_owner" >&6
8682 IRCDOWN=$unet_cv_with_owner
8685 unet_gid=`id | sed -e 's/.*gid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
8686 echo "$as_me:$LINENO: checking which group should own the installed binary" >&5
8687 echo $ECHO_N "checking which group should own the installed binary... $ECHO_C" >&6
8689 # Check whether --with-group or --without-group was given.
8690 if test "${with_group+set}" = set; then
8691 withval="$with_group"
8692 unet_cv_with_group=$with_group
8694 if test "${unet_cv_with_group+set}" = set; then
8695 echo $ECHO_N "(cached) $ECHO_C" >&6
8697 unet_cv_with_group=$unet_gid
8702 if test x"$unet_cv_with_group" = xyes -o x"$unet_cv_with_group" = xno; then
8703 unet_cv_with_group=$unet_gid
8706 echo "$as_me:$LINENO: result: $unet_cv_with_group" >&5
8707 echo "${ECHO_T}$unet_cv_with_group" >&6
8709 IRCDGRP=$unet_cv_with_group
8713 if test -f /etc/resolv.conf; then
8714 unet_domain=`awk '/^domain/ { print $2; exit }' /etc/resolv.conf`
8715 if test x"$unet_domain" = x; then
8716 unet_domain=`awk '/^search/ { print $2; exit }' /etc/resolv.conf`
8719 echo "$as_me:$LINENO: checking for site domain name" >&5
8720 echo $ECHO_N "checking for site domain name... $ECHO_C" >&6
8722 # Check whether --with-domain or --without-domain was given.
8723 if test "${with_domain+set}" = set; then
8724 withval="$with_domain"
8725 unet_cv_with_domain=$with_domain
8727 if test "${unet_cv_with_domain+set}" = set; then
8728 echo $ECHO_N "(cached) $ECHO_C" >&6
8730 unet_cv_with_domain=$unet_domain
8735 if test x"$unet_cv_with_domain" = xyes -o x"$unet_cv_with_domain" = xno; then
8736 unet_cv_with_domain=$unet_domain
8738 if test x"$unet_cv_with_domain" = xno; then
8739 { { echo "$as_me:$LINENO: error: Unable to determine server DNS domain; use --with-domain to set it" >&5
8740 echo "$as_me: error: Unable to determine server DNS domain; use --with-domain to set it" >&2;}
8741 { (exit 1); exit 1; }; }
8744 echo "$as_me:$LINENO: result: $unet_cv_with_domain" >&5
8745 echo "${ECHO_T}$unet_cv_with_domain" >&6
8748 cat >>confdefs.h <<_ACEOF
8749 #define DOMAINNAME "*$unet_cv_with_domain"
8753 echo "$as_me:$LINENO: checking if chroot operation is desired" >&5
8754 echo $ECHO_N "checking if chroot operation is desired... $ECHO_C" >&6
8756 # Check whether --with-chroot or --without-chroot was given.
8757 if test "${with_chroot+set}" = set; then
8758 withval="$with_chroot"
8759 unet_cv_with_chroot=$with_chroot
8761 if test "${unet_cv_with_chroot+set}" = set; then
8762 echo $ECHO_N "(cached) $ECHO_C" >&6
8764 unet_cv_with_chroot=no
8769 if test x"$unet_cv_with_chroot" = xyes; then
8770 { { echo "$as_me:$LINENO: error: --with-chroot given with no directory. See doc/readme.chroot." >&5
8771 echo "$as_me: error: --with-chroot given with no directory. See doc/readme.chroot." >&2;}
8772 { (exit 1); exit 1; }; }
8775 # Ensure there are no trailing /'s to mess us up
8776 unet_cv_with_chroot=`echo "$unet_cv_with_chroot" | sed 's%/*$%%'`
8778 echo "$as_me:$LINENO: result: $unet_cv_with_chroot" >&5
8779 echo "${ECHO_T}$unet_cv_with_chroot" >&6
8781 # Deal with the annoying value "NONE" here
8782 unet_save_prefix=$prefix
8783 if test x"$prefix" = xNONE; then
8784 prefix=$ac_default_prefix
8789 unet_save_exec_prefix=$exec_prefix
8790 if test x"$exec_prefix" = xNONE; then
8793 exec_prefix=$exec_prefix
8796 # Obtain the actual interesting directories
8797 unet_bindir=`eval echo "$bindir"`
8798 unet_libdir=`eval echo "$libdir"`
8800 # Restore the original settings of $prefix and $exec_prefix
8801 prefix=$unet_save_prefix
8802 exec_prefix=$unet_save_exec_prefix
8804 echo "$as_me:$LINENO: checking where the binary will be for /restart" >&5
8805 echo $ECHO_N "checking where the binary will be for /restart... $ECHO_C" >&6
8806 if test x"$unet_cv_with_symlink" = xno; then
8807 unet_spath="$unet_bindir/ircd"
8809 unet_spath="$unet_bindir/$unet_cv_with_symlink"
8811 echo "$as_me:$LINENO: result: $unet_spath" >&5
8812 echo "${ECHO_T}$unet_spath" >&6
8814 if test x"$unet_cv_with_chroot" != xno; then
8815 if echo "$unet_spath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
8816 unet_spath=`echo "$unet_spath" | sed "s%^$unet_cv_with_chroot%%"`
8818 { echo "$as_me:$LINENO: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&5
8819 echo "$as_me: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&2;}
8824 cat >>confdefs.h <<_ACEOF
8825 #define SPATH "$unet_spath"
8829 echo "$as_me:$LINENO: checking what the data directory should be" >&5
8830 echo $ECHO_N "checking what the data directory should be... $ECHO_C" >&6
8832 # Check whether --with-dpath or --without-dpath was given.
8833 if test "${with_dpath+set}" = set; then
8834 withval="$with_dpath"
8835 unet_cv_with_dpath=$with_dpath
8837 if test "${unet_cv_with_dpath+set}" = set; then
8838 echo $ECHO_N "(cached) $ECHO_C" >&6
8840 unet_cv_with_dpath=$unet_libdir
8845 if test x"$unet_cv_with_dpath" = xyes -o x"$unet_cv_with_dpath" = xno; then
8846 unet_cv_with_dpath=$unet_libdir
8849 # Ensure there are no trailing /'s to mess us up
8850 unet_cv_with_dpath=`echo "$unet_cv_with_dpath" | sed 's%/*$%%'`
8852 echo "$as_me:$LINENO: result: $unet_cv_with_dpath" >&5
8853 echo "${ECHO_T}$unet_cv_with_dpath" >&6
8855 if test x"$unet_cv_with_chroot" != xno; then
8856 if echo "$unet_cv_with_dpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
8857 unet_dpath=`echo "$unet_cv_with_dpath" | sed "s%^$unet_cv_with_chroot%%"`
8859 { { echo "$as_me:$LINENO: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&5
8860 echo "$as_me: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&2;}
8861 { (exit 1); exit 1; }; }
8864 unet_dpath=$unet_cv_with_dpath
8868 cat >>confdefs.h <<_ACEOF
8869 #define DPATH "$unet_dpath"
8873 DPATH=$unet_cv_with_dpath
8876 echo "$as_me:$LINENO: checking where the default configuration file resides" >&5
8877 echo $ECHO_N "checking where the default configuration file resides... $ECHO_C" >&6
8879 # Check whether --with-cpath or --without-cpath was given.
8880 if test "${with_cpath+set}" = set; then
8881 withval="$with_cpath"
8882 unet_cv_with_cpath=$with_cpath
8884 if test "${unet_cv_with_cpath+set}" = set; then
8885 echo $ECHO_N "(cached) $ECHO_C" >&6
8887 unet_cv_with_cpath="ircd.conf"
8892 if test x"$unet_cv_with_cpath" = xyes -o x"$unet_cv_with_cpath" = xno; then
8893 unet_cv_with_cpath="ircd.conf"
8896 echo "$as_me:$LINENO: result: $unet_cv_with_cpath" >&5
8897 echo "${ECHO_T}$unet_cv_with_cpath" >&6
8899 if echo "$unet_cv_with_cpath" | grep '^/' > /dev/null 2>&1; then
8900 # Absolute path; check against chroot stuff
8901 if test x"$unet_cv_with_chroot" != xno; then
8902 if echo "$unet_cv_with_cpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
8903 unet_cpath=`echo "$unet_cv_with_cpath" | sed "s%^$unet_cv_with_chroot%%"`
8905 { { echo "$as_me:$LINENO: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&5
8906 echo "$as_me: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&2;}
8907 { (exit 1); exit 1; }; }
8910 unet_cpath=$unet_cv_with_cpath
8913 unet_cpath=$unet_cv_with_cpath
8917 cat >>confdefs.h <<_ACEOF
8918 #define CPATH "$unet_cpath"
8922 echo "$as_me:$LINENO: checking where to put the debugging log if debugging enabled" >&5
8923 echo $ECHO_N "checking where to put the debugging log if debugging enabled... $ECHO_C" >&6
8925 # Check whether --with-lpath or --without-lpath was given.
8926 if test "${with_lpath+set}" = set; then
8927 withval="$with_lpath"
8928 unet_cv_with_lpath=$with_lpath
8930 if test "${unet_cv_with_lpath+set}" = set; then
8931 echo $ECHO_N "(cached) $ECHO_C" >&6
8933 unet_cv_with_lpath="ircd.log"
8938 if test x"$unet_cv_with_lpath" = xyes -o x"$unet_cv_with_lpath" = xno; then
8939 unet_cv_with_lpath="ircd.log"
8942 echo "$as_me:$LINENO: result: $unet_cv_with_lpath" >&5
8943 echo "${ECHO_T}$unet_cv_with_lpath" >&6
8945 if echo "$unet_cv_with_lpath" | grep '^/' > /dev/null 2>&1; then
8946 # Absolute path; check against chroot stuff
8947 if test x"$unet_cv_with_chroot" != xno; then
8948 if echo "$unet_cv_with_lpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
8949 unet_lpath=`echo "$unet_cv_with_lpath" | sed "s%^$unet_cv_with_chroot%%"`
8951 { 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
8952 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;}
8953 unet_cv_with_lpath="ircd.log"
8954 unet_lpath="ircd.log"
8957 unet_lpath=$unet_cv_with_lpath
8960 unet_lpath=$unet_cv_with_lpath
8964 cat >>confdefs.h <<_ACEOF
8965 #define LPATH "$unet_lpath"
8969 unet_maxcon=`ulimit -Hn`
8970 if test x"$unet_maxcon" = xunlimited; then
8971 unet_maxcon=`ulimit -Sn`
8973 unet_maxcon=`expr $unet_maxcon - 4`
8974 echo "$as_me:$LINENO: checking max connections" >&5
8975 echo $ECHO_N "checking max connections... $ECHO_C" >&6
8977 # Check whether --with-maxcon or --without-maxcon was given.
8978 if test "${with_maxcon+set}" = set; then
8979 withval="$with_maxcon"
8980 unet_cv_with_maxcon=$with_maxcon
8982 if test "${unet_cv_with_maxcon+set}" = set; then
8983 echo $ECHO_N "(cached) $ECHO_C" >&6
8985 unet_cv_with_maxcon=$unet_maxcon
8990 if test x"$unet_cv_with_maxcon" = xyes -o x"$unet_cv_with_maxcon" = xno; then
8991 unet_cv_with_maxcon=$unet_maxcon
8994 echo "$as_me:$LINENO: result: $unet_cv_with_maxcon" >&5
8995 echo "${ECHO_T}$unet_cv_with_maxcon" >&6
8998 cat >>confdefs.h <<_ACEOF
8999 #define MAXCONNECTIONS $unet_cv_with_maxcon
9003 ac_config_files="$ac_config_files Makefile ircd/Makefile doc/Makefile"
9004 ac_config_commands="$ac_config_commands default"
9005 cat >confcache <<\_ACEOF
9006 # This file is a shell script that caches the results of configure
9007 # tests run on this system so they can be shared between configure
9008 # scripts and configure runs, see configure's option --config-cache.
9009 # It is not useful on other systems. If it contains results you don't
9010 # want to keep, you may remove or edit it.
9012 # config.status only pays attention to the cache file if you give it
9013 # the --recheck option to rerun configure.
9015 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9016 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9021 # The following way of writing the cache mishandles newlines in values,
9022 # but we know of no workaround that is simple, portable, and efficient.
9023 # So, don't put newlines in cache variables' values.
9024 # Ultrix sh set writes to stderr and can't be redirected directly,
9025 # and sets the high bit in the cache file unless we assign to the vars.
9028 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9030 # `set' does not quote correctly, so add quotes (double-quote
9031 # substitution turns \\\\ into \\, and sed turns \\ into \).
9034 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9037 # `set' quotes correctly as required by POSIX, so do not add quotes.
9039 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9046 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9048 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9050 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9051 if test -w $cache_file; then
9052 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9053 cat confcache >$cache_file
9055 echo "not updating unwritable cache $cache_file"
9060 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9061 # Let make expand exec_prefix.
9062 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9064 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9065 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9066 # trailing colons and then remove the whole line if VPATH becomes empty
9067 # (actually we leave an empty line to preserve line numbers).
9068 if test "x$srcdir" = x.; then
9069 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9070 s/:*\$(srcdir):*/:/;
9071 s/:*\${srcdir}:*/:/;
9073 s/^\([^=]*=[ ]*\):*/\1/;
9079 DEFS=-DHAVE_CONFIG_H
9083 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9084 # 1. Remove the extension, and $U if already installed.
9085 ac_i=`echo "$ac_i" |
9086 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9088 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9089 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9093 LTLIBOBJS=$ac_ltlibobjs
9097 : ${CONFIG_STATUS=./config.status}
9098 ac_clean_files_save=$ac_clean_files
9099 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9100 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9101 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9102 cat >$CONFIG_STATUS <<_ACEOF
9104 # Generated by $as_me.
9105 # Run this file to recreate the current configuration.
9106 # Compiler output produced by configure, useful for debugging
9107 # configure, is in config.log if it exists.
9112 SHELL=\${CONFIG_SHELL-$SHELL}
9115 cat >>$CONFIG_STATUS <<\_ACEOF
9116 ## --------------------- ##
9117 ## M4sh Initialization. ##
9118 ## --------------------- ##
9120 # Be Bourne compatible
9121 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9124 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9125 # is contrary to our usage. Disable this feature.
9126 alias -g '${1+"$@"}'='"$@"'
9127 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9130 DUALCASE=1; export DUALCASE # for MKS sh
9132 # Support unset when possible.
9133 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9140 # Work around bugs in pre-3.0 UWIN ksh.
9141 $as_unset ENV MAIL MAILPATH
9148 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9149 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9150 LC_TELEPHONE LC_TIME
9152 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9153 eval $as_var=C; export $as_var
9159 # Required to use basename.
9160 if expr a : '\(a\)' >/dev/null 2>&1; then
9166 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9167 as_basename=basename
9173 # Name of the executable.
9174 as_me=`$as_basename "$0" ||
9175 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9176 X"$0" : 'X\(//\)$' \| \
9177 X"$0" : 'X\(/\)$' \| \
9178 . : '\(.\)' 2>/dev/null ||
9180 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9181 /^X\/\(\/\/\)$/{ s//\1/; q; }
9182 /^X\/\(\/\).*/{ s//\1/; q; }
9186 # PATH needs CR, and LINENO needs CR and PATH.
9187 # Avoid depending upon Character Ranges.
9188 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9189 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9190 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9191 as_cr_digits='0123456789'
9192 as_cr_alnum=$as_cr_Letters$as_cr_digits
9194 # The user is always right.
9195 if test "${PATH_SEPARATOR+set}" != set; then
9196 echo "#! /bin/sh" >conf$$.sh
9197 echo "exit 0" >>conf$$.sh
9199 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9210 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9211 test "x$as_lineno_1" != "x$as_lineno_2" &&
9212 test "x$as_lineno_3" = "x$as_lineno_2" || {
9213 # Find who we are. Look in the path if we contain no path at all
9216 *[\\/]* ) as_myself=$0 ;;
9217 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9221 test -z "$as_dir" && as_dir=.
9222 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9227 # We did not find ourselves, most probably we were run as `sh COMMAND'
9228 # in which case we are not to be found in the path.
9229 if test "x$as_myself" = x; then
9232 if test ! -f "$as_myself"; then
9233 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9234 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9235 { (exit 1); exit 1; }; }
9237 case $CONFIG_SHELL in
9239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9240 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9243 test -z "$as_dir" && as_dir=.
9244 for as_base in sh bash ksh sh5; do
9247 if ("$as_dir/$as_base" -c '
9250 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9251 test "x$as_lineno_1" != "x$as_lineno_2" &&
9252 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9253 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9254 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9255 CONFIG_SHELL=$as_dir/$as_base
9257 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9265 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9266 # uniformly replaced by the line number. The first 'sed' inserts a
9267 # line-number line before each line; the second 'sed' does the real
9268 # work. The second script uses 'N' to pair each line-number line
9269 # with the numbered line, and appends trailing '-' during
9270 # substitution so that $LINENO is not a special case at line end.
9271 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9272 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9273 sed '=' <$as_myself |
9278 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9281 s,^['$as_cr_digits']*\n,,
9283 chmod +x $as_me.lineno ||
9284 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9285 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9286 { (exit 1); exit 1; }; }
9288 # Don't try to exec as it changes $[0], causing all sort of problems
9289 # (the dirname of $[0] is not the place where we might find the
9290 # original and so on. Autoconf is especially sensible to this).
9292 # Exit status is that of the last command.
9297 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9298 *c*,-n*) ECHO_N= ECHO_C='
9300 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9301 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9304 if expr a : '\(a\)' >/dev/null 2>&1; then
9310 rm -f conf$$ conf$$.exe conf$$.file
9312 if ln -s conf$$.file conf$$ 2>/dev/null; then
9313 # We could just check for DJGPP; but this test a) works b) is more generic
9314 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9315 if test -f conf$$.exe; then
9316 # Don't use ln at all; we don't have any links
9321 elif ln conf$$.file conf$$ 2>/dev/null; then
9326 rm -f conf$$ conf$$.exe conf$$.file
9328 if mkdir -p . 2>/dev/null; then
9331 test -d ./-p && rmdir ./-p
9335 as_executable_p="test -f"
9337 # Sed expression to map a string onto a valid CPP name.
9338 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9340 # Sed expression to map a string onto a valid variable name.
9341 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9345 # We need space, tab and new line, in precisely that order.
9355 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9356 # report actual input values of CONFIG_FILES etc. instead of their
9357 # values after options handling. Logging --version etc. is OK.
9361 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9362 ## Running $as_me. ##
9367 This file was extended by $as_me, which was
9368 generated by GNU Autoconf 2.59. Invocation command line was
9370 CONFIG_FILES = $CONFIG_FILES
9371 CONFIG_HEADERS = $CONFIG_HEADERS
9372 CONFIG_LINKS = $CONFIG_LINKS
9373 CONFIG_COMMANDS = $CONFIG_COMMANDS
9377 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9381 # Files that config.status was made for.
9382 if test -n "$ac_config_files"; then
9383 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9386 if test -n "$ac_config_headers"; then
9387 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9390 if test -n "$ac_config_links"; then
9391 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9394 if test -n "$ac_config_commands"; then
9395 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9398 cat >>$CONFIG_STATUS <<\_ACEOF
9401 \`$as_me' instantiates files from templates according to the
9402 current configuration.
9404 Usage: $0 [OPTIONS] [FILE]...
9406 -h, --help print this help, then exit
9407 -V, --version print version number, then exit
9408 -q, --quiet do not print progress messages
9409 -d, --debug don't remove temporary files
9410 --recheck update $as_me by reconfiguring in the same conditions
9411 --file=FILE[:TEMPLATE]
9412 instantiate the configuration file FILE
9413 --header=FILE[:TEMPLATE]
9414 instantiate the configuration header FILE
9416 Configuration files:
9419 Configuration headers:
9422 Configuration commands:
9425 Report bugs to <bug-autoconf@gnu.org>."
9428 cat >>$CONFIG_STATUS <<_ACEOF
9431 configured by $0, generated by GNU Autoconf 2.59,
9432 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9434 Copyright (C) 2003 Free Software Foundation, Inc.
9435 This config.status script is free software; the Free Software Foundation
9436 gives unlimited permission to copy, distribute and modify it."
9441 cat >>$CONFIG_STATUS <<\_ACEOF
9442 # If no file are specified by the user, then we need to provide default
9443 # value. By we need to know if files were specified by the user.
9449 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9450 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9458 *) # This is not an option, so the user has probably given explicit
9461 ac_need_defaults=false;;
9465 # Handling of the options.
9467 cat >>$CONFIG_STATUS <<\_ACEOF
9468 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9470 --version | --vers* | -V )
9471 echo "$ac_cs_version"; exit 0 ;;
9473 # Conflict between --help and --header
9474 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9475 Try \`$0 --help' for more information." >&5
9476 echo "$as_me: error: ambiguous option: $1
9477 Try \`$0 --help' for more information." >&2;}
9478 { (exit 1); exit 1; }; };;
9479 --help | --hel | -h )
9480 echo "$ac_cs_usage"; exit 0 ;;
9481 --debug | --d* | -d )
9483 --file | --fil | --fi | --f )
9485 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9486 ac_need_defaults=false;;
9487 --header | --heade | --head | --hea )
9489 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9490 ac_need_defaults=false;;
9491 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9492 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9496 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9497 Try \`$0 --help' for more information." >&5
9498 echo "$as_me: error: unrecognized option: $1
9499 Try \`$0 --help' for more information." >&2;}
9500 { (exit 1); exit 1; }; } ;;
9502 *) ac_config_targets="$ac_config_targets $1" ;;
9508 ac_configure_extra_args=
9510 if $ac_cs_silent; then
9512 ac_configure_extra_args="$ac_configure_extra_args --silent"
9516 cat >>$CONFIG_STATUS <<_ACEOF
9517 if \$ac_cs_recheck; then
9518 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9519 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9528 cat >>$CONFIG_STATUS <<\_ACEOF
9529 for ac_config_target in $ac_config_targets
9531 case "$ac_config_target" in
9532 # Handling of arguments.
9533 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9534 "ircd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ircd/Makefile" ;;
9535 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
9536 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
9537 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9538 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9539 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9540 { (exit 1); exit 1; }; };;
9544 # If the user did not use the arguments to specify the items to instantiate,
9545 # then the envvar interface is used. Set only those that are not.
9546 # We use the long form for the default assignment because of an extremely
9547 # bizarre bug on SunOS 4.1.3.
9548 if $ac_need_defaults; then
9549 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9550 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9551 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9554 # Have a temporary directory for convenience. Make it in the build tree
9555 # simply because there is no reason to put it here, and in addition,
9556 # creating and moving files from /tmp can sometimes cause problems.
9557 # Create a temporary directory, and hook for its removal unless debugging.
9560 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9561 trap '{ (exit 1); exit 1; }' 1 2 13 15
9564 # Create a (secure) tmp directory for tmp files.
9567 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9568 test -n "$tmp" && test -d "$tmp"
9571 tmp=./confstat$$-$RANDOM
9572 (umask 077 && mkdir $tmp)
9575 echo "$me: cannot create a temporary directory in ." >&2
9576 { (exit 1); exit 1; }
9581 cat >>$CONFIG_STATUS <<_ACEOF
9584 # CONFIG_FILES section.
9587 # No need to generate the scripts if there are no CONFIG_FILES.
9588 # This happens for instance when ./config.status config.h
9589 if test -n "\$CONFIG_FILES"; then
9590 # Protect against being on the right side of a sed subst in config.status.
9591 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9592 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9593 s,@SHELL@,$SHELL,;t t
9594 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9595 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9596 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9597 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9598 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9599 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9600 s,@exec_prefix@,$exec_prefix,;t t
9601 s,@prefix@,$prefix,;t t
9602 s,@program_transform_name@,$program_transform_name,;t t
9603 s,@bindir@,$bindir,;t t
9604 s,@sbindir@,$sbindir,;t t
9605 s,@libexecdir@,$libexecdir,;t t
9606 s,@datadir@,$datadir,;t t
9607 s,@sysconfdir@,$sysconfdir,;t t
9608 s,@sharedstatedir@,$sharedstatedir,;t t
9609 s,@localstatedir@,$localstatedir,;t t
9610 s,@libdir@,$libdir,;t t
9611 s,@includedir@,$includedir,;t t
9612 s,@oldincludedir@,$oldincludedir,;t t
9613 s,@infodir@,$infodir,;t t
9614 s,@mandir@,$mandir,;t t
9615 s,@build_alias@,$build_alias,;t t
9616 s,@host_alias@,$host_alias,;t t
9617 s,@target_alias@,$target_alias,;t t
9619 s,@ECHO_C@,$ECHO_C,;t t
9620 s,@ECHO_N@,$ECHO_N,;t t
9621 s,@ECHO_T@,$ECHO_T,;t t
9623 s,@build@,$build,;t t
9624 s,@build_cpu@,$build_cpu,;t t
9625 s,@build_vendor@,$build_vendor,;t t
9626 s,@build_os@,$build_os,;t t
9628 s,@host_cpu@,$host_cpu,;t t
9629 s,@host_vendor@,$host_vendor,;t t
9630 s,@host_os@,$host_os,;t t
9632 s,@CFLAGS@,$CFLAGS,;t t
9633 s,@LDFLAGS@,$LDFLAGS,;t t
9634 s,@CPPFLAGS@,$CPPFLAGS,;t t
9635 s,@ac_ct_CC@,$ac_ct_CC,;t t
9636 s,@EXEEXT@,$EXEEXT,;t t
9637 s,@OBJEXT@,$OBJEXT,;t t
9639 s,@EGREP@,$EGREP,;t t
9641 s,@SET_MAKE@,$SET_MAKE,;t t
9642 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9643 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9644 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9647 s,@LEXLIB@,$LEXLIB,;t t
9648 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
9650 s,@RMPROG@,$RMPROG,;t t
9651 s,@SHPROG@,$SHPROG,;t t
9652 s,@ENGINE_C@,$ENGINE_C,;t t
9653 s,@INSTALL_RULE@,$INSTALL_RULE,;t t
9654 s,@SYMLINK@,$SYMLINK,;t t
9655 s,@IRCDMODE@,$IRCDMODE,;t t
9656 s,@IRCDOWN@,$IRCDOWN,;t t
9657 s,@IRCDGRP@,$IRCDGRP,;t t
9658 s,@DPATH@,$DPATH,;t t
9659 s,@LIBOBJS@,$LIBOBJS,;t t
9660 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9665 cat >>$CONFIG_STATUS <<\_ACEOF
9666 # Split the substitutions into bite-sized pieces for seds with
9667 # small command number limits, like on Digital OSF/1 and HP-UX.
9669 ac_sed_frag=1 # Number of current file.
9670 ac_beg=1 # First line for current file.
9671 ac_end=$ac_max_sed_lines # Line after last line for current file.
9674 while $ac_more_lines; do
9675 if test $ac_beg -gt 1; then
9676 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9678 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9680 if test ! -s $tmp/subs.frag; then
9683 # The purpose of the label and of the branching condition is to
9684 # speed up the sed processing (if there are no `@' at all, there
9685 # is no need to browse any of the substitutions).
9686 # These are the two extra sed commands mentioned above.
9688 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9689 if test -z "$ac_sed_cmds"; then
9690 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9692 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9694 ac_sed_frag=`expr $ac_sed_frag + 1`
9696 ac_end=`expr $ac_end + $ac_max_sed_lines`
9699 if test -z "$ac_sed_cmds"; then
9702 fi # test -n "$CONFIG_FILES"
9705 cat >>$CONFIG_STATUS <<\_ACEOF
9706 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9707 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9709 - | *:- | *:-:* ) # input from stdin
9711 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9712 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9713 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9714 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9715 * ) ac_file_in=$ac_file.in ;;
9718 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9719 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9720 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9721 X"$ac_file" : 'X\(//\)[^/]' \| \
9722 X"$ac_file" : 'X\(//\)$' \| \
9723 X"$ac_file" : 'X\(/\)' \| \
9724 . : '\(.\)' 2>/dev/null ||
9726 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9727 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9728 /^X\(\/\/\)$/{ s//\1/; q; }
9729 /^X\(\/\).*/{ s//\1/; q; }
9731 { if $as_mkdir_p; then
9736 while test ! -d "$as_dir"; do
9737 as_dirs="$as_dir $as_dirs"
9738 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9739 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9740 X"$as_dir" : 'X\(//\)[^/]' \| \
9741 X"$as_dir" : 'X\(//\)$' \| \
9742 X"$as_dir" : 'X\(/\)' \| \
9743 . : '\(.\)' 2>/dev/null ||
9745 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9746 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9747 /^X\(\/\/\)$/{ s//\1/; q; }
9748 /^X\(\/\).*/{ s//\1/; q; }
9751 test ! -n "$as_dirs" || mkdir $as_dirs
9752 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9753 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9754 { (exit 1); exit 1; }; }; }
9758 if test "$ac_dir" != .; then
9759 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9760 # A "../" for each directory in $ac_dir_suffix.
9761 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9763 ac_dir_suffix= ac_top_builddir=
9767 .) # No --srcdir option. We are building in place.
9769 if test -z "$ac_top_builddir"; then
9772 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9774 [\\/]* | ?:[\\/]* ) # Absolute path.
9775 ac_srcdir=$srcdir$ac_dir_suffix;
9776 ac_top_srcdir=$srcdir ;;
9778 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9779 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9782 # Do not use `cd foo && pwd` to compute absolute paths, because
9783 # the directories may not exist.
9785 .) ac_abs_builddir="$ac_dir";;
9788 .) ac_abs_builddir=`pwd`;;
9789 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9790 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9793 case $ac_abs_builddir in
9794 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9796 case ${ac_top_builddir}. in
9797 .) ac_abs_top_builddir=$ac_abs_builddir;;
9798 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9799 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9802 case $ac_abs_builddir in
9803 .) ac_abs_srcdir=$ac_srcdir;;
9806 .) ac_abs_srcdir=$ac_abs_builddir;;
9807 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9808 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9811 case $ac_abs_builddir in
9812 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9814 case $ac_top_srcdir in
9815 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9816 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9817 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9823 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9824 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9827 # Let's still pretend it is `configure' which instantiates (i.e., don't
9828 # use $as_me), people would be surprised to read:
9829 # /* config.h. Generated by config.status. */
9830 if test x"$ac_file" = x-; then
9833 configure_input="$ac_file. "
9835 configure_input=$configure_input"Generated from `echo $ac_file_in |
9836 sed 's,.*/,,'` by configure."
9838 # First look for the input files in the build tree, otherwise in the
9840 ac_file_inputs=`IFS=:
9841 for f in $ac_file_in; do
9843 -) echo $tmp/stdin ;;
9845 # Absolute (can't be DOS-style, as IFS=:)
9846 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9847 echo "$as_me: error: cannot find input file: $f" >&2;}
9848 { (exit 1); exit 1; }; }
9851 if test -f "$f"; then
9854 elif test -f "$srcdir/$f"; then
9859 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9860 echo "$as_me: error: cannot find input file: $f" >&2;}
9861 { (exit 1); exit 1; }; }
9864 done` || { (exit 1); exit 1; }
9866 if test x"$ac_file" != x-; then
9867 { echo "$as_me:$LINENO: creating $ac_file" >&5
9868 echo "$as_me: creating $ac_file" >&6;}
9872 cat >>$CONFIG_STATUS <<_ACEOF
9876 cat >>$CONFIG_STATUS <<\_ACEOF
9878 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9879 s,@configure_input@,$configure_input,;t t
9880 s,@srcdir@,$ac_srcdir,;t t
9881 s,@abs_srcdir@,$ac_abs_srcdir,;t t
9882 s,@top_srcdir@,$ac_top_srcdir,;t t
9883 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9884 s,@builddir@,$ac_builddir,;t t
9885 s,@abs_builddir@,$ac_abs_builddir,;t t
9886 s,@top_builddir@,$ac_top_builddir,;t t
9887 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9888 s,@INSTALL@,$ac_INSTALL,;t t
9889 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9891 if test x"$ac_file" != x-; then
9892 mv $tmp/out $ac_file
9900 cat >>$CONFIG_STATUS <<\_ACEOF
9903 # CONFIG_HEADER section.
9906 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9907 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9909 # ac_d sets the value in "#define NAME VALUE" lines.
9910 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9911 ac_dB='[ ].*$,\1#\2'
9914 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9915 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9916 ac_uB='$,\1#\2define\3'
9920 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9921 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9923 - | *:- | *:-:* ) # input from stdin
9925 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9926 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9927 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9928 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9929 * ) ac_file_in=$ac_file.in ;;
9932 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9933 echo "$as_me: creating $ac_file" >&6;}
9935 # First look for the input files in the build tree, otherwise in the
9937 ac_file_inputs=`IFS=:
9938 for f in $ac_file_in; do
9940 -) echo $tmp/stdin ;;
9942 # Absolute (can't be DOS-style, as IFS=:)
9943 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9944 echo "$as_me: error: cannot find input file: $f" >&2;}
9945 { (exit 1); exit 1; }; }
9946 # Do quote $f, to prevent DOS paths from being IFS'd.
9949 if test -f "$f"; then
9952 elif test -f "$srcdir/$f"; then
9957 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9958 echo "$as_me: error: cannot find input file: $f" >&2;}
9959 { (exit 1); exit 1; }; }
9962 done` || { (exit 1); exit 1; }
9963 # Remove the trailing spaces.
9964 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9968 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9969 # `conftest.undefs', that substitutes the proper values into
9970 # config.h.in to produce config.h. The first handles `#define'
9971 # templates, and the second `#undef' templates.
9972 # And first: Protect against being on the right side of a sed subst in
9973 # config.status. Protect against being in an unquoted here document
9975 rm -f conftest.defines conftest.undefs
9976 # Using a here document instead of a string reduces the quoting nightmare.
9977 # Putting comments in sed scripts is not portable.
9979 # `end' is used to avoid that the second main sed command (meant for
9980 # 0-ary CPP macros) applies to n-ary macro definitions.
9981 # See the Autoconf documentation for `clear'.
9982 cat >confdef2sed.sed <<\_ACEOF
9987 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9989 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9992 # If some macros were called several times there might be several times
9993 # the same #defines, which is useless. Nevertheless, we may not want to
9994 # sort them, since we want the *last* AC-DEFINE to be honored.
9995 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9996 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9997 rm -f confdef2sed.sed
9999 # This sed command replaces #undef with comments. This is necessary, for
10000 # example, in the case of _POSIX_SOURCE, which is predefined and required
10001 # on some systems where configure will not decide to define it.
10002 cat >>conftest.undefs <<\_ACEOF
10003 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10006 # Break up conftest.defines because some shells have a limit on the size
10007 # of here documents, and old seds have small limits too (100 cmds).
10008 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10009 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10010 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10011 echo ' :' >>$CONFIG_STATUS
10012 rm -f conftest.tail
10013 while grep . conftest.defines >/dev/null
10015 # Write a limited-size here document to $tmp/defines.sed.
10016 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10017 # Speed up: don't consider the non `#define' lines.
10018 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10019 # Work around the forget-to-reset-the-flag bug.
10020 echo 't clr' >>$CONFIG_STATUS
10021 echo ': clr' >>$CONFIG_STATUS
10022 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10024 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10026 mv $tmp/out $tmp/in
10028 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10029 rm -f conftest.defines
10030 mv conftest.tail conftest.defines
10032 rm -f conftest.defines
10033 echo ' fi # grep' >>$CONFIG_STATUS
10034 echo >>$CONFIG_STATUS
10036 # Break up conftest.undefs because some shells have a limit on the size
10037 # of here documents, and old seds have small limits too (100 cmds).
10038 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10039 rm -f conftest.tail
10040 while grep . conftest.undefs >/dev/null
10042 # Write a limited-size here document to $tmp/undefs.sed.
10043 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10044 # Speed up: don't consider the non `#undef'
10045 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10046 # Work around the forget-to-reset-the-flag bug.
10047 echo 't clr' >>$CONFIG_STATUS
10048 echo ': clr' >>$CONFIG_STATUS
10049 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10051 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10053 mv $tmp/out $tmp/in
10055 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10056 rm -f conftest.undefs
10057 mv conftest.tail conftest.undefs
10059 rm -f conftest.undefs
10061 cat >>$CONFIG_STATUS <<\_ACEOF
10062 # Let's still pretend it is `configure' which instantiates (i.e., don't
10063 # use $as_me), people would be surprised to read:
10064 # /* config.h. Generated by config.status. */
10065 if test x"$ac_file" = x-; then
10066 echo "/* Generated by configure. */" >$tmp/config.h
10068 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10070 cat $tmp/in >>$tmp/config.h
10072 if test x"$ac_file" != x-; then
10073 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10074 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10075 echo "$as_me: $ac_file is unchanged" >&6;}
10077 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10078 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10079 X"$ac_file" : 'X\(//\)[^/]' \| \
10080 X"$ac_file" : 'X\(//\)$' \| \
10081 X"$ac_file" : 'X\(/\)' \| \
10082 . : '\(.\)' 2>/dev/null ||
10084 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10085 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10086 /^X\(\/\/\)$/{ s//\1/; q; }
10087 /^X\(\/\).*/{ s//\1/; q; }
10089 { if $as_mkdir_p; then
10094 while test ! -d "$as_dir"; do
10095 as_dirs="$as_dir $as_dirs"
10096 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10097 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10098 X"$as_dir" : 'X\(//\)[^/]' \| \
10099 X"$as_dir" : 'X\(//\)$' \| \
10100 X"$as_dir" : 'X\(/\)' \| \
10101 . : '\(.\)' 2>/dev/null ||
10103 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10104 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10105 /^X\(\/\/\)$/{ s//\1/; q; }
10106 /^X\(\/\).*/{ s//\1/; q; }
10109 test ! -n "$as_dirs" || mkdir $as_dirs
10110 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10111 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10112 { (exit 1); exit 1; }; }; }
10115 mv $tmp/config.h $ac_file
10119 rm -f $tmp/config.h
10123 cat >>$CONFIG_STATUS <<\_ACEOF
10126 # CONFIG_COMMANDS section.
10128 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10129 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10130 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10131 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10132 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10133 X"$ac_dest" : 'X\(//\)[^/]' \| \
10134 X"$ac_dest" : 'X\(//\)$' \| \
10135 X"$ac_dest" : 'X\(/\)' \| \
10136 . : '\(.\)' 2>/dev/null ||
10138 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10139 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10140 /^X\(\/\/\)$/{ s//\1/; q; }
10141 /^X\(\/\).*/{ s//\1/; q; }
10143 { if $as_mkdir_p; then
10148 while test ! -d "$as_dir"; do
10149 as_dirs="$as_dir $as_dirs"
10150 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10151 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10152 X"$as_dir" : 'X\(//\)[^/]' \| \
10153 X"$as_dir" : 'X\(//\)$' \| \
10154 X"$as_dir" : 'X\(/\)' \| \
10155 . : '\(.\)' 2>/dev/null ||
10157 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10158 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10159 /^X\(\/\/\)$/{ s//\1/; q; }
10160 /^X\(\/\).*/{ s//\1/; q; }
10163 test ! -n "$as_dirs" || mkdir $as_dirs
10164 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10165 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10166 { (exit 1); exit 1; }; }; }
10170 if test "$ac_dir" != .; then
10171 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10172 # A "../" for each directory in $ac_dir_suffix.
10173 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10175 ac_dir_suffix= ac_top_builddir=
10179 .) # No --srcdir option. We are building in place.
10181 if test -z "$ac_top_builddir"; then
10184 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10186 [\\/]* | ?:[\\/]* ) # Absolute path.
10187 ac_srcdir=$srcdir$ac_dir_suffix;
10188 ac_top_srcdir=$srcdir ;;
10189 *) # Relative path.
10190 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10191 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10194 # Do not use `cd foo && pwd` to compute absolute paths, because
10195 # the directories may not exist.
10197 .) ac_abs_builddir="$ac_dir";;
10200 .) ac_abs_builddir=`pwd`;;
10201 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10202 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10205 case $ac_abs_builddir in
10206 .) ac_abs_top_builddir=${ac_top_builddir}.;;
10208 case ${ac_top_builddir}. in
10209 .) ac_abs_top_builddir=$ac_abs_builddir;;
10210 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10211 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10214 case $ac_abs_builddir in
10215 .) ac_abs_srcdir=$ac_srcdir;;
10218 .) ac_abs_srcdir=$ac_abs_builddir;;
10219 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10220 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10223 case $ac_abs_builddir in
10224 .) ac_abs_top_srcdir=$ac_top_srcdir;;
10226 case $ac_top_srcdir in
10227 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10228 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10229 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10234 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10235 echo "$as_me: executing $ac_dest commands" >&6;}
10237 default ) echo timestamp > stamp-h ;;
10242 cat >>$CONFIG_STATUS <<\_ACEOF
10244 { (exit 0); exit 0; }
10246 chmod +x $CONFIG_STATUS
10247 ac_clean_files=$ac_clean_files_save
10250 # configure is writing to config.log, and then calls config.status.
10251 # config.status does its own redirection, appending to config.log.
10252 # Unfortunately, on DOS this fails, as config.log is still kept open
10253 # by configure, so config.status won't be able to write to it; its
10254 # output is simply discarded. So we exec the FD to /dev/null,
10255 # effectively closing config.log, so it can be properly (re)opened and
10256 # appended to by config.status. When coming back to configure, we
10257 # need to make the FD available again.
10258 if test "$no_create" != yes; then
10260 ac_config_status_args=
10261 test "$silent" = yes &&
10262 ac_config_status_args="$ac_config_status_args --quiet"
10264 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10266 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10267 # would make configure fail if this is the last instruction.
10268 $ac_cs_success || { (exit 1); exit 1; }
10272 ac_config_commands="$ac_config_commands default-1"