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 RMPROG SHPROG LEX LEXLIB LEX_OUTPUT_ROOT YACC 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 --enable-profile Enable profiling support (add -pg to CFLAGS and LDFLAGS)
853 --enable-pedantic Enable pedantic warnings (add -pedantic to CFLAGS)
854 --enable-warnings Enable warnings (add -Wall to CFLAGS)
855 --disable-inlines Disable inlining for a few critical functions
856 --disable-devpoll Disable the /dev/poll-based engine
857 --disable-kqueue Disable the kqueue-based engine
858 --disable-epoll Disable the epoll-based engine
861 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
862 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
863 --with-leak-detect Turn on the leak detector(requires patched boehm)
864 --without-ipv6 disable IPv6 support (default is autodetect)
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
2354 ac_cpp='$CPP $CPPFLAGS'
2355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2358 if test -n "$ac_tool_prefix"; then
2359 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2360 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2361 echo "$as_me:$LINENO: checking for $ac_word" >&5
2362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2363 if test "${ac_cv_prog_CC+set}" = set; then
2364 echo $ECHO_N "(cached) $ECHO_C" >&6
2366 if test -n "$CC"; then
2367 ac_cv_prog_CC="$CC" # Let the user override the test.
2369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2373 test -z "$as_dir" && as_dir=.
2374 for ac_exec_ext in '' $ac_executable_extensions; do
2375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2376 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2386 if test -n "$CC"; then
2387 echo "$as_me:$LINENO: result: $CC" >&5
2388 echo "${ECHO_T}$CC" >&6
2390 echo "$as_me:$LINENO: result: no" >&5
2391 echo "${ECHO_T}no" >&6
2395 if test -z "$ac_cv_prog_CC"; then
2397 # Extract the first word of "gcc", so it can be a program name with args.
2398 set dummy gcc; ac_word=$2
2399 echo "$as_me:$LINENO: checking for $ac_word" >&5
2400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2401 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2402 echo $ECHO_N "(cached) $ECHO_C" >&6
2404 if test -n "$ac_ct_CC"; then
2405 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2411 test -z "$as_dir" && as_dir=.
2412 for ac_exec_ext in '' $ac_executable_extensions; do
2413 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2414 ac_cv_prog_ac_ct_CC="gcc"
2415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2423 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2424 if test -n "$ac_ct_CC"; then
2425 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2426 echo "${ECHO_T}$ac_ct_CC" >&6
2428 echo "$as_me:$LINENO: result: no" >&5
2429 echo "${ECHO_T}no" >&6
2437 if test -z "$CC"; then
2438 if test -n "$ac_tool_prefix"; then
2439 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2440 set dummy ${ac_tool_prefix}cc; ac_word=$2
2441 echo "$as_me:$LINENO: checking for $ac_word" >&5
2442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2443 if test "${ac_cv_prog_CC+set}" = set; then
2444 echo $ECHO_N "(cached) $ECHO_C" >&6
2446 if test -n "$CC"; then
2447 ac_cv_prog_CC="$CC" # Let the user override the test.
2449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453 test -z "$as_dir" && as_dir=.
2454 for ac_exec_ext in '' $ac_executable_extensions; do
2455 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2456 ac_cv_prog_CC="${ac_tool_prefix}cc"
2457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2466 if test -n "$CC"; then
2467 echo "$as_me:$LINENO: result: $CC" >&5
2468 echo "${ECHO_T}$CC" >&6
2470 echo "$as_me:$LINENO: result: no" >&5
2471 echo "${ECHO_T}no" >&6
2475 if test -z "$ac_cv_prog_CC"; then
2477 # Extract the first word of "cc", so it can be a program name with args.
2478 set dummy cc; ac_word=$2
2479 echo "$as_me:$LINENO: checking for $ac_word" >&5
2480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2481 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2482 echo $ECHO_N "(cached) $ECHO_C" >&6
2484 if test -n "$ac_ct_CC"; then
2485 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491 test -z "$as_dir" && as_dir=.
2492 for ac_exec_ext in '' $ac_executable_extensions; do
2493 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2494 ac_cv_prog_ac_ct_CC="cc"
2495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2503 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2504 if test -n "$ac_ct_CC"; then
2505 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2506 echo "${ECHO_T}$ac_ct_CC" >&6
2508 echo "$as_me:$LINENO: result: no" >&5
2509 echo "${ECHO_T}no" >&6
2518 if test -z "$CC"; then
2519 # Extract the first word of "cc", so it can be a program name with args.
2520 set dummy cc; ac_word=$2
2521 echo "$as_me:$LINENO: checking for $ac_word" >&5
2522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2523 if test "${ac_cv_prog_CC+set}" = set; then
2524 echo $ECHO_N "(cached) $ECHO_C" >&6
2526 if test -n "$CC"; then
2527 ac_cv_prog_CC="$CC" # Let the user override the test.
2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534 test -z "$as_dir" && as_dir=.
2535 for ac_exec_ext in '' $ac_executable_extensions; do
2536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2537 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2538 ac_prog_rejected=yes
2542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2548 if test $ac_prog_rejected = yes; then
2549 # We found a bogon in the path, so make sure we never use it.
2550 set dummy $ac_cv_prog_CC
2552 if test $# != 0; then
2553 # We chose a different compiler from the bogus one.
2554 # However, it has the same basename, so the bogon will be chosen
2555 # first if we set CC to just the basename; use the full file name.
2557 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2563 if test -n "$CC"; then
2564 echo "$as_me:$LINENO: result: $CC" >&5
2565 echo "${ECHO_T}$CC" >&6
2567 echo "$as_me:$LINENO: result: no" >&5
2568 echo "${ECHO_T}no" >&6
2572 if test -z "$CC"; then
2573 if test -n "$ac_tool_prefix"; then
2576 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2577 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2578 echo "$as_me:$LINENO: checking for $ac_word" >&5
2579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2580 if test "${ac_cv_prog_CC+set}" = set; then
2581 echo $ECHO_N "(cached) $ECHO_C" >&6
2583 if test -n "$CC"; then
2584 ac_cv_prog_CC="$CC" # Let the user override the test.
2586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2590 test -z "$as_dir" && as_dir=.
2591 for ac_exec_ext in '' $ac_executable_extensions; do
2592 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2593 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2603 if test -n "$CC"; then
2604 echo "$as_me:$LINENO: result: $CC" >&5
2605 echo "${ECHO_T}$CC" >&6
2607 echo "$as_me:$LINENO: result: no" >&5
2608 echo "${ECHO_T}no" >&6
2611 test -n "$CC" && break
2614 if test -z "$CC"; then
2618 # Extract the first word of "$ac_prog", so it can be a program name with args.
2619 set dummy $ac_prog; ac_word=$2
2620 echo "$as_me:$LINENO: checking for $ac_word" >&5
2621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2622 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2623 echo $ECHO_N "(cached) $ECHO_C" >&6
2625 if test -n "$ac_ct_CC"; then
2626 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632 test -z "$as_dir" && as_dir=.
2633 for ac_exec_ext in '' $ac_executable_extensions; do
2634 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2635 ac_cv_prog_ac_ct_CC="$ac_prog"
2636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2644 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2645 if test -n "$ac_ct_CC"; then
2646 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2647 echo "${ECHO_T}$ac_ct_CC" >&6
2649 echo "$as_me:$LINENO: result: no" >&5
2650 echo "${ECHO_T}no" >&6
2653 test -n "$ac_ct_CC" && break
2662 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2663 See \`config.log' for more details." >&5
2664 echo "$as_me: error: no acceptable C compiler found in \$PATH
2665 See \`config.log' for more details." >&2;}
2666 { (exit 1); exit 1; }; }
2668 # Provide some information about the compiler.
2669 echo "$as_me:$LINENO:" \
2670 "checking for C compiler version" >&5
2671 ac_compiler=`set X $ac_compile; echo $2`
2672 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2673 (eval $ac_compiler --version </dev/null >&5) 2>&5
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); }
2677 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2678 (eval $ac_compiler -v </dev/null >&5) 2>&5
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); }
2682 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2683 (eval $ac_compiler -V </dev/null >&5) 2>&5
2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686 (exit $ac_status); }
2688 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2689 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2690 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2691 echo $ECHO_N "(cached) $ECHO_C" >&6
2693 cat >conftest.$ac_ext <<_ACEOF
2696 cat confdefs.h >>conftest.$ac_ext
2697 cat >>conftest.$ac_ext <<_ACEOF
2698 /* end confdefs.h. */
2711 rm -f conftest.$ac_objext
2712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2713 (eval $ac_compile) 2>conftest.er1
2715 grep -v '^ *+' conftest.er1 >conftest.err
2717 cat conftest.err >&5
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); } &&
2720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); }; } &&
2726 { ac_try='test -s conftest.$ac_objext'
2727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }; }; then
2734 echo "$as_me: failed program was:" >&5
2735 sed 's/^/| /' conftest.$ac_ext >&5
2739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2740 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2743 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2744 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2745 GCC=`test $ac_compiler_gnu = yes && echo yes`
2746 ac_test_CFLAGS=${CFLAGS+set}
2747 ac_save_CFLAGS=$CFLAGS
2749 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2750 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2751 if test "${ac_cv_prog_cc_g+set}" = set; then
2752 echo $ECHO_N "(cached) $ECHO_C" >&6
2754 cat >conftest.$ac_ext <<_ACEOF
2757 cat confdefs.h >>conftest.$ac_ext
2758 cat >>conftest.$ac_ext <<_ACEOF
2759 /* end confdefs.h. */
2769 rm -f conftest.$ac_objext
2770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2771 (eval $ac_compile) 2>conftest.er1
2773 grep -v '^ *+' conftest.er1 >conftest.err
2775 cat conftest.err >&5
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); } &&
2778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); }; } &&
2784 { ac_try='test -s conftest.$ac_objext'
2785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); }; }; then
2792 echo "$as_me: failed program was:" >&5
2793 sed 's/^/| /' conftest.$ac_ext >&5
2797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2799 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2800 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2801 if test "$ac_test_CFLAGS" = set; then
2802 CFLAGS=$ac_save_CFLAGS
2803 elif test $ac_cv_prog_cc_g = yes; then
2804 if test "$GCC" = yes; then
2810 if test "$GCC" = yes; then
2816 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2817 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2818 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2819 echo $ECHO_N "(cached) $ECHO_C" >&6
2821 ac_cv_prog_cc_stdc=no
2823 cat >conftest.$ac_ext <<_ACEOF
2826 cat confdefs.h >>conftest.$ac_ext
2827 cat >>conftest.$ac_ext <<_ACEOF
2828 /* end confdefs.h. */
2831 #include <sys/types.h>
2832 #include <sys/stat.h>
2833 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2834 struct buf { int x; };
2835 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2836 static char *e (p, i)
2842 static char *f (char * (*g) (char **, int), char **p, ...)
2847 s = g (p, va_arg (v,int));
2852 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2853 function prototypes and stuff, but not '\xHH' hex character constants.
2854 These don't provoke an error unfortunately, instead are silently treated
2855 as 'x'. The following induces an error, until -std1 is added to get
2856 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2857 array size at least. It's necessary to write '\x00'==0 to get something
2858 that's true only with -std1. */
2859 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2861 int test (int i, double x);
2862 struct s1 {int (*f) (int a);};
2863 struct s2 {int (*f) (double a);};
2864 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2870 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2875 # Don't try gcc -ansi; that turns off useful extensions and
2876 # breaks some systems' header files.
2877 # AIX -qlanglvl=ansi
2878 # Ultrix and OSF/1 -std1
2879 # HP-UX 10.20 and later -Ae
2880 # HP-UX older versions -Aa -D_HPUX_SOURCE
2881 # SVR4 -Xc -D__EXTENSIONS__
2882 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2884 CC="$ac_save_CC $ac_arg"
2885 rm -f conftest.$ac_objext
2886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2887 (eval $ac_compile) 2>conftest.er1
2889 grep -v '^ *+' conftest.er1 >conftest.err
2891 cat conftest.err >&5
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); } &&
2894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); }; } &&
2900 { ac_try='test -s conftest.$ac_objext'
2901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }; }; then
2906 ac_cv_prog_cc_stdc=$ac_arg
2909 echo "$as_me: failed program was:" >&5
2910 sed 's/^/| /' conftest.$ac_ext >&5
2913 rm -f conftest.err conftest.$ac_objext
2915 rm -f conftest.$ac_ext conftest.$ac_objext
2920 case "x$ac_cv_prog_cc_stdc" in
2922 echo "$as_me:$LINENO: result: none needed" >&5
2923 echo "${ECHO_T}none needed" >&6 ;;
2925 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2926 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2927 CC="$CC $ac_cv_prog_cc_stdc" ;;
2930 # Some people use a C++ compiler to compile C. Since we use `exit',
2931 # in C++ we need to declare it. In case someone uses the same compiler
2932 # for both compiling C and C++ we need to have the C++ compiler decide
2933 # the declaration of exit, since it's the most demanding environment.
2934 cat >conftest.$ac_ext <<_ACEOF
2939 rm -f conftest.$ac_objext
2940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2941 (eval $ac_compile) 2>conftest.er1
2943 grep -v '^ *+' conftest.er1 >conftest.err
2945 cat conftest.err >&5
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); } &&
2948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); }; } &&
2954 { ac_try='test -s conftest.$ac_objext'
2955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); }; }; then
2960 for ac_declaration in \
2962 'extern "C" void std::exit (int) throw (); using std::exit;' \
2963 'extern "C" void std::exit (int); using std::exit;' \
2964 'extern "C" void exit (int) throw ();' \
2965 'extern "C" void exit (int);' \
2968 cat >conftest.$ac_ext <<_ACEOF
2971 cat confdefs.h >>conftest.$ac_ext
2972 cat >>conftest.$ac_ext <<_ACEOF
2973 /* end confdefs.h. */
2984 rm -f conftest.$ac_objext
2985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2986 (eval $ac_compile) 2>conftest.er1
2988 grep -v '^ *+' conftest.er1 >conftest.err
2990 cat conftest.err >&5
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); } &&
2993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); }; } &&
2999 { ac_try='test -s conftest.$ac_objext'
3000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); }; }; then
3007 echo "$as_me: failed program was:" >&5
3008 sed 's/^/| /' conftest.$ac_ext >&5
3012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3013 cat >conftest.$ac_ext <<_ACEOF
3016 cat confdefs.h >>conftest.$ac_ext
3017 cat >>conftest.$ac_ext <<_ACEOF
3018 /* end confdefs.h. */
3028 rm -f conftest.$ac_objext
3029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3030 (eval $ac_compile) 2>conftest.er1
3032 grep -v '^ *+' conftest.er1 >conftest.err
3034 cat conftest.err >&5
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); } &&
3037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); }; } &&
3043 { ac_try='test -s conftest.$ac_objext'
3044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); }; }; then
3051 echo "$as_me: failed program was:" >&5
3052 sed 's/^/| /' conftest.$ac_ext >&5
3055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3058 if test -n "$ac_declaration"; then
3059 echo '#ifdef __cplusplus' >>confdefs.h
3060 echo $ac_declaration >>confdefs.h
3061 echo '#endif' >>confdefs.h
3065 echo "$as_me: failed program was:" >&5
3066 sed 's/^/| /' conftest.$ac_ext >&5
3069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3071 ac_cpp='$CPP $CPPFLAGS'
3072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3077 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
3082 echo "$as_me:$LINENO: checking for library containing crypt" >&5
3083 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
3084 if test "${ac_cv_search_crypt+set}" = set; then
3085 echo $ECHO_N "(cached) $ECHO_C" >&6
3087 ac_func_search_save_LIBS=$LIBS
3088 ac_cv_search_crypt=no
3089 cat >conftest.$ac_ext <<_ACEOF
3092 cat confdefs.h >>conftest.$ac_ext
3093 cat >>conftest.$ac_ext <<_ACEOF
3094 /* end confdefs.h. */
3096 /* Override any gcc2 internal prototype to avoid an error. */
3100 /* We use char because int might match the return type of a gcc2
3101 builtin and then its argument prototype would still apply. */
3111 rm -f conftest.$ac_objext conftest$ac_exeext
3112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3113 (eval $ac_link) 2>conftest.er1
3115 grep -v '^ *+' conftest.er1 >conftest.err
3117 cat conftest.err >&5
3118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119 (exit $ac_status); } &&
3120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125 (exit $ac_status); }; } &&
3126 { ac_try='test -s conftest$ac_exeext'
3127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); }; }; then
3132 ac_cv_search_crypt="none required"
3134 echo "$as_me: failed program was:" >&5
3135 sed 's/^/| /' conftest.$ac_ext >&5
3138 rm -f conftest.err conftest.$ac_objext \
3139 conftest$ac_exeext conftest.$ac_ext
3140 if test "$ac_cv_search_crypt" = no; then
3141 for ac_lib in descrypt crypt; do
3142 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3143 cat >conftest.$ac_ext <<_ACEOF
3146 cat confdefs.h >>conftest.$ac_ext
3147 cat >>conftest.$ac_ext <<_ACEOF
3148 /* end confdefs.h. */
3150 /* Override any gcc2 internal prototype to avoid an error. */
3154 /* We use char because int might match the return type of a gcc2
3155 builtin and then its argument prototype would still apply. */
3165 rm -f conftest.$ac_objext conftest$ac_exeext
3166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3167 (eval $ac_link) 2>conftest.er1
3169 grep -v '^ *+' conftest.er1 >conftest.err
3171 cat conftest.err >&5
3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173 (exit $ac_status); } &&
3174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); }; } &&
3180 { ac_try='test -s conftest$ac_exeext'
3181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); }; }; then
3186 ac_cv_search_crypt="-l$ac_lib"
3189 echo "$as_me: failed program was:" >&5
3190 sed 's/^/| /' conftest.$ac_ext >&5
3193 rm -f conftest.err conftest.$ac_objext \
3194 conftest$ac_exeext conftest.$ac_ext
3197 LIBS=$ac_func_search_save_LIBS
3199 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
3200 echo "${ECHO_T}$ac_cv_search_crypt" >&6
3201 if test "$ac_cv_search_crypt" != no; then
3202 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
3205 { { echo "$as_me:$LINENO: error: Unable to find library containing crypt()" >&5
3206 echo "$as_me: error: Unable to find library containing crypt()" >&2;}
3207 { (exit 1); exit 1; }; }
3212 # Most operating systems have gethostbyname() in the default searched
3213 # libraries (i.e. libc):
3214 echo "$as_me:$LINENO: checking for gethostbyname" >&5
3215 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3216 if test "${ac_cv_func_gethostbyname+set}" = set; then
3217 echo $ECHO_N "(cached) $ECHO_C" >&6
3219 cat >conftest.$ac_ext <<_ACEOF
3222 cat confdefs.h >>conftest.$ac_ext
3223 cat >>conftest.$ac_ext <<_ACEOF
3224 /* end confdefs.h. */
3225 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3226 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3227 #define gethostbyname innocuous_gethostbyname
3229 /* System header to define __stub macros and hopefully few prototypes,
3230 which can conflict with char gethostbyname (); below.
3231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3232 <limits.h> exists even on freestanding compilers. */
3235 # include <limits.h>
3237 # include <assert.h>
3240 #undef gethostbyname
3242 /* Override any gcc2 internal prototype to avoid an error. */
3247 /* We use char because int might match the return type of a gcc2
3248 builtin and then its argument prototype would still apply. */
3249 char gethostbyname ();
3250 /* The GNU C library defines this for functions which it implements
3251 to always fail with ENOSYS. Some functions are actually named
3252 something starting with __ and the normal name is an alias. */
3253 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3256 char (*f) () = gethostbyname;
3265 return f != gethostbyname;
3270 rm -f conftest.$ac_objext conftest$ac_exeext
3271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3272 (eval $ac_link) 2>conftest.er1
3274 grep -v '^ *+' conftest.er1 >conftest.err
3276 cat conftest.err >&5
3277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); } &&
3279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); }; } &&
3285 { ac_try='test -s conftest$ac_exeext'
3286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290 (exit $ac_status); }; }; then
3291 ac_cv_func_gethostbyname=yes
3293 echo "$as_me: failed program was:" >&5
3294 sed 's/^/| /' conftest.$ac_ext >&5
3296 ac_cv_func_gethostbyname=no
3298 rm -f conftest.err conftest.$ac_objext \
3299 conftest$ac_exeext conftest.$ac_ext
3301 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3302 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3303 if test $ac_cv_func_gethostbyname = yes; then
3306 # Some OSes (eg. Solaris) place it in libnsl:
3308 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3309 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3310 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3311 echo $ECHO_N "(cached) $ECHO_C" >&6
3313 ac_check_lib_save_LIBS=$LIBS
3315 cat >conftest.$ac_ext <<_ACEOF
3318 cat confdefs.h >>conftest.$ac_ext
3319 cat >>conftest.$ac_ext <<_ACEOF
3320 /* end confdefs.h. */
3322 /* Override any gcc2 internal prototype to avoid an error. */
3326 /* We use char because int might match the return type of a gcc2
3327 builtin and then its argument prototype would still apply. */
3328 char gethostbyname ();
3337 rm -f conftest.$ac_objext conftest$ac_exeext
3338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3339 (eval $ac_link) 2>conftest.er1
3341 grep -v '^ *+' conftest.er1 >conftest.err
3343 cat conftest.err >&5
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); } &&
3346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }; } &&
3352 { ac_try='test -s conftest$ac_exeext'
3353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }; }; then
3358 ac_cv_lib_nsl_gethostbyname=yes
3360 echo "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.$ac_ext >&5
3363 ac_cv_lib_nsl_gethostbyname=no
3365 rm -f conftest.err conftest.$ac_objext \
3366 conftest$ac_exeext conftest.$ac_ext
3367 LIBS=$ac_check_lib_save_LIBS
3369 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3370 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3371 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3372 cat >>confdefs.h <<_ACEOF
3373 #define HAVE_LIBNSL 1
3379 # Some strange OSes (SINIX) have it in libsocket:
3381 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
3382 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
3383 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
3384 echo $ECHO_N "(cached) $ECHO_C" >&6
3386 ac_check_lib_save_LIBS=$LIBS
3387 LIBS="-lsocket $LIBS"
3388 cat >conftest.$ac_ext <<_ACEOF
3391 cat confdefs.h >>conftest.$ac_ext
3392 cat >>conftest.$ac_ext <<_ACEOF
3393 /* end confdefs.h. */
3395 /* Override any gcc2 internal prototype to avoid an error. */
3399 /* We use char because int might match the return type of a gcc2
3400 builtin and then its argument prototype would still apply. */
3401 char gethostbyname ();
3410 rm -f conftest.$ac_objext conftest$ac_exeext
3411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3412 (eval $ac_link) 2>conftest.er1
3414 grep -v '^ *+' conftest.er1 >conftest.err
3416 cat conftest.err >&5
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); } &&
3419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); }; } &&
3425 { ac_try='test -s conftest$ac_exeext'
3426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430 (exit $ac_status); }; }; then
3431 ac_cv_lib_socket_gethostbyname=yes
3433 echo "$as_me: failed program was:" >&5
3434 sed 's/^/| /' conftest.$ac_ext >&5
3436 ac_cv_lib_socket_gethostbyname=no
3438 rm -f conftest.err conftest.$ac_objext \
3439 conftest$ac_exeext conftest.$ac_ext
3440 LIBS=$ac_check_lib_save_LIBS
3442 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
3443 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
3444 if test $ac_cv_lib_socket_gethostbyname = yes; then
3445 cat >>confdefs.h <<_ACEOF
3446 #define HAVE_LIBSOCKET 1
3449 LIBS="-lsocket $LIBS"
3452 # Unfortunately libsocket sometimes depends on libnsl.
3453 # AC_CHECK_LIB's API is essentially broken so the following
3454 # ugliness is necessary:
3455 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
3456 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
3457 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
3458 echo $ECHO_N "(cached) $ECHO_C" >&6
3460 ac_check_lib_save_LIBS=$LIBS
3461 LIBS="-lsocket -lnsl $LIBS"
3462 cat >conftest.$ac_ext <<_ACEOF
3465 cat confdefs.h >>conftest.$ac_ext
3466 cat >>conftest.$ac_ext <<_ACEOF
3467 /* end confdefs.h. */
3469 /* Override any gcc2 internal prototype to avoid an error. */
3473 /* We use char because int might match the return type of a gcc2
3474 builtin and then its argument prototype would still apply. */
3475 char gethostbyname ();
3484 rm -f conftest.$ac_objext conftest$ac_exeext
3485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3486 (eval $ac_link) 2>conftest.er1
3488 grep -v '^ *+' conftest.er1 >conftest.err
3490 cat conftest.err >&5
3491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492 (exit $ac_status); } &&
3493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498 (exit $ac_status); }; } &&
3499 { ac_try='test -s conftest$ac_exeext'
3500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504 (exit $ac_status); }; }; then
3505 ac_cv_lib_socket_gethostbyname=yes
3507 echo "$as_me: failed program was:" >&5
3508 sed 's/^/| /' conftest.$ac_ext >&5
3510 ac_cv_lib_socket_gethostbyname=no
3512 rm -f conftest.err conftest.$ac_objext \
3513 conftest$ac_exeext conftest.$ac_ext
3514 LIBS=$ac_check_lib_save_LIBS
3516 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
3517 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
3518 if test $ac_cv_lib_socket_gethostbyname = yes; then
3519 LIBS="-lsocket -lnsl $LIBS"
3522 echo "$as_me:$LINENO: checking for gethostbyname in -lresolv" >&5
3523 echo $ECHO_N "checking for gethostbyname in -lresolv... $ECHO_C" >&6
3524 if test "${ac_cv_lib_resolv_gethostbyname+set}" = set; then
3525 echo $ECHO_N "(cached) $ECHO_C" >&6
3527 ac_check_lib_save_LIBS=$LIBS
3528 LIBS="-lresolv $LIBS"
3529 cat >conftest.$ac_ext <<_ACEOF
3532 cat confdefs.h >>conftest.$ac_ext
3533 cat >>conftest.$ac_ext <<_ACEOF
3534 /* end confdefs.h. */
3536 /* Override any gcc2 internal prototype to avoid an error. */
3540 /* We use char because int might match the return type of a gcc2
3541 builtin and then its argument prototype would still apply. */
3542 char gethostbyname ();
3551 rm -f conftest.$ac_objext conftest$ac_exeext
3552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3553 (eval $ac_link) 2>conftest.er1
3555 grep -v '^ *+' conftest.er1 >conftest.err
3557 cat conftest.err >&5
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); } &&
3560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); }; } &&
3566 { ac_try='test -s conftest$ac_exeext'
3567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); }; }; then
3572 ac_cv_lib_resolv_gethostbyname=yes
3574 echo "$as_me: failed program was:" >&5
3575 sed 's/^/| /' conftest.$ac_ext >&5
3577 ac_cv_lib_resolv_gethostbyname=no
3579 rm -f conftest.err conftest.$ac_objext \
3580 conftest$ac_exeext conftest.$ac_ext
3581 LIBS=$ac_check_lib_save_LIBS
3583 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname" >&5
3584 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname" >&6
3585 if test $ac_cv_lib_resolv_gethostbyname = yes; then
3586 cat >>confdefs.h <<_ACEOF
3587 #define HAVE_LIBRESOLV 1
3590 LIBS="-lresolv $LIBS"
3605 echo "$as_me:$LINENO: checking for socket" >&5
3606 echo $ECHO_N "checking for socket... $ECHO_C" >&6
3607 if test "${ac_cv_func_socket+set}" = set; then
3608 echo $ECHO_N "(cached) $ECHO_C" >&6
3610 cat >conftest.$ac_ext <<_ACEOF
3613 cat confdefs.h >>conftest.$ac_ext
3614 cat >>conftest.$ac_ext <<_ACEOF
3615 /* end confdefs.h. */
3616 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
3617 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3618 #define socket innocuous_socket
3620 /* System header to define __stub macros and hopefully few prototypes,
3621 which can conflict with char socket (); below.
3622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3623 <limits.h> exists even on freestanding compilers. */
3626 # include <limits.h>
3628 # include <assert.h>
3633 /* Override any gcc2 internal prototype to avoid an error. */
3638 /* We use char because int might match the return type of a gcc2
3639 builtin and then its argument prototype would still apply. */
3641 /* The GNU C library defines this for functions which it implements
3642 to always fail with ENOSYS. Some functions are actually named
3643 something starting with __ and the normal name is an alias. */
3644 #if defined (__stub_socket) || defined (__stub___socket)
3647 char (*f) () = socket;
3661 rm -f conftest.$ac_objext conftest$ac_exeext
3662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3663 (eval $ac_link) 2>conftest.er1
3665 grep -v '^ *+' conftest.er1 >conftest.err
3667 cat conftest.err >&5
3668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669 (exit $ac_status); } &&
3670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); }; } &&
3676 { ac_try='test -s conftest$ac_exeext'
3677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); }; }; then
3682 ac_cv_func_socket=yes
3684 echo "$as_me: failed program was:" >&5
3685 sed 's/^/| /' conftest.$ac_ext >&5
3687 ac_cv_func_socket=no
3689 rm -f conftest.err conftest.$ac_objext \
3690 conftest$ac_exeext conftest.$ac_ext
3692 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
3693 echo "${ECHO_T}$ac_cv_func_socket" >&6
3694 if test $ac_cv_func_socket = yes; then
3698 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3699 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3700 if test "${ac_cv_lib_socket_socket+set}" = set; then
3701 echo $ECHO_N "(cached) $ECHO_C" >&6
3703 ac_check_lib_save_LIBS=$LIBS
3704 LIBS="-lsocket $LIBS"
3705 cat >conftest.$ac_ext <<_ACEOF
3708 cat confdefs.h >>conftest.$ac_ext
3709 cat >>conftest.$ac_ext <<_ACEOF
3710 /* end confdefs.h. */
3712 /* Override any gcc2 internal prototype to avoid an error. */
3716 /* We use char because int might match the return type of a gcc2
3717 builtin and then its argument prototype would still apply. */
3727 rm -f conftest.$ac_objext conftest$ac_exeext
3728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3729 (eval $ac_link) 2>conftest.er1
3731 grep -v '^ *+' conftest.er1 >conftest.err
3733 cat conftest.err >&5
3734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735 (exit $ac_status); } &&
3736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); }; } &&
3742 { ac_try='test -s conftest$ac_exeext'
3743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747 (exit $ac_status); }; }; then
3748 ac_cv_lib_socket_socket=yes
3750 echo "$as_me: failed program was:" >&5
3751 sed 's/^/| /' conftest.$ac_ext >&5
3753 ac_cv_lib_socket_socket=no
3755 rm -f conftest.err conftest.$ac_objext \
3756 conftest$ac_exeext conftest.$ac_ext
3757 LIBS=$ac_check_lib_save_LIBS
3759 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3760 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3761 if test $ac_cv_lib_socket_socket = yes; then
3762 cat >>confdefs.h <<_ACEOF
3763 #define HAVE_LIBSOCKET 1
3766 LIBS="-lsocket $LIBS"
3769 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3770 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3771 if test "${ac_cv_lib_socket_socket+set}" = set; then
3772 echo $ECHO_N "(cached) $ECHO_C" >&6
3774 ac_check_lib_save_LIBS=$LIBS
3775 LIBS="-lsocket -lnsl $LIBS"
3776 cat >conftest.$ac_ext <<_ACEOF
3779 cat confdefs.h >>conftest.$ac_ext
3780 cat >>conftest.$ac_ext <<_ACEOF
3781 /* end confdefs.h. */
3783 /* Override any gcc2 internal prototype to avoid an error. */
3787 /* We use char because int might match the return type of a gcc2
3788 builtin and then its argument prototype would still apply. */
3798 rm -f conftest.$ac_objext conftest$ac_exeext
3799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3800 (eval $ac_link) 2>conftest.er1
3802 grep -v '^ *+' conftest.er1 >conftest.err
3804 cat conftest.err >&5
3805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806 (exit $ac_status); } &&
3807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812 (exit $ac_status); }; } &&
3813 { ac_try='test -s conftest$ac_exeext'
3814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); }; }; then
3819 ac_cv_lib_socket_socket=yes
3821 echo "$as_me: failed program was:" >&5
3822 sed 's/^/| /' conftest.$ac_ext >&5
3824 ac_cv_lib_socket_socket=no
3826 rm -f conftest.err conftest.$ac_objext \
3827 conftest$ac_exeext conftest.$ac_ext
3828 LIBS=$ac_check_lib_save_LIBS
3830 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3831 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3832 if test $ac_cv_lib_socket_socket = yes; then
3833 LIBS="-lsocket -lnsl $LIBS"
3843 ac_cpp='$CPP $CPPFLAGS'
3844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3847 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3848 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3849 # On Suns, sometimes $CPP names a directory.
3850 if test -n "$CPP" && test -d "$CPP"; then
3853 if test -z "$CPP"; then
3854 if test "${ac_cv_prog_CPP+set}" = set; then
3855 echo $ECHO_N "(cached) $ECHO_C" >&6
3857 # Double quotes because CPP needs to be expanded
3858 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3861 for ac_c_preproc_warn_flag in '' yes
3863 # Use a header file that comes with gcc, so configuring glibc
3864 # with a fresh cross-compiler works.
3865 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3866 # <limits.h> exists even on freestanding compilers.
3867 # On the NeXT, cc -E runs the code through the compiler's parser,
3868 # not just through cpp. "Syntax error" is here to catch this case.
3869 cat >conftest.$ac_ext <<_ACEOF
3872 cat confdefs.h >>conftest.$ac_ext
3873 cat >>conftest.$ac_ext <<_ACEOF
3874 /* end confdefs.h. */
3876 # include <limits.h>
3878 # include <assert.h>
3882 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3883 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3885 grep -v '^ *+' conftest.er1 >conftest.err
3887 cat conftest.err >&5
3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889 (exit $ac_status); } >/dev/null; then
3890 if test -s conftest.err; then
3891 ac_cpp_err=$ac_c_preproc_warn_flag
3892 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3899 if test -z "$ac_cpp_err"; then
3902 echo "$as_me: failed program was:" >&5
3903 sed 's/^/| /' conftest.$ac_ext >&5
3905 # Broken: fails on valid input.
3908 rm -f conftest.err conftest.$ac_ext
3910 # OK, works on sane cases. Now check whether non-existent headers
3911 # can be detected and how.
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 <ac_nonexistent.h>
3920 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3921 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3923 grep -v '^ *+' conftest.er1 >conftest.err
3925 cat conftest.err >&5
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); } >/dev/null; then
3928 if test -s conftest.err; then
3929 ac_cpp_err=$ac_c_preproc_warn_flag
3930 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3937 if test -z "$ac_cpp_err"; then
3938 # Broken: success on invalid input.
3941 echo "$as_me: failed program was:" >&5
3942 sed 's/^/| /' conftest.$ac_ext >&5
3944 # Passes both tests.
3948 rm -f conftest.err conftest.$ac_ext
3951 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3952 rm -f conftest.err conftest.$ac_ext
3953 if $ac_preproc_ok; then
3965 echo "$as_me:$LINENO: result: $CPP" >&5
3966 echo "${ECHO_T}$CPP" >&6
3968 for ac_c_preproc_warn_flag in '' yes
3970 # Use a header file that comes with gcc, so configuring glibc
3971 # with a fresh cross-compiler works.
3972 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3973 # <limits.h> exists even on freestanding compilers.
3974 # On the NeXT, cc -E runs the code through the compiler's parser,
3975 # not just through cpp. "Syntax error" is here to catch this case.
3976 cat >conftest.$ac_ext <<_ACEOF
3979 cat confdefs.h >>conftest.$ac_ext
3980 cat >>conftest.$ac_ext <<_ACEOF
3981 /* end confdefs.h. */
3983 # include <limits.h>
3985 # include <assert.h>
3989 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3990 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3992 grep -v '^ *+' conftest.er1 >conftest.err
3994 cat conftest.err >&5
3995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996 (exit $ac_status); } >/dev/null; then
3997 if test -s conftest.err; then
3998 ac_cpp_err=$ac_c_preproc_warn_flag
3999 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4006 if test -z "$ac_cpp_err"; then
4009 echo "$as_me: failed program was:" >&5
4010 sed 's/^/| /' conftest.$ac_ext >&5
4012 # Broken: fails on valid input.
4015 rm -f conftest.err conftest.$ac_ext
4017 # OK, works on sane cases. Now check whether non-existent headers
4018 # can be detected and how.
4019 cat >conftest.$ac_ext <<_ACEOF
4022 cat confdefs.h >>conftest.$ac_ext
4023 cat >>conftest.$ac_ext <<_ACEOF
4024 /* end confdefs.h. */
4025 #include <ac_nonexistent.h>
4027 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4028 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4030 grep -v '^ *+' conftest.er1 >conftest.err
4032 cat conftest.err >&5
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); } >/dev/null; then
4035 if test -s conftest.err; then
4036 ac_cpp_err=$ac_c_preproc_warn_flag
4037 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4044 if test -z "$ac_cpp_err"; then
4045 # Broken: success on invalid input.
4048 echo "$as_me: failed program was:" >&5
4049 sed 's/^/| /' conftest.$ac_ext >&5
4051 # Passes both tests.
4055 rm -f conftest.err conftest.$ac_ext
4058 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4059 rm -f conftest.err conftest.$ac_ext
4060 if $ac_preproc_ok; then
4063 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4064 See \`config.log' for more details." >&5
4065 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4066 See \`config.log' for more details." >&2;}
4067 { (exit 1); exit 1; }; }
4071 ac_cpp='$CPP $CPPFLAGS'
4072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4077 echo "$as_me:$LINENO: checking for egrep" >&5
4078 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4079 if test "${ac_cv_prog_egrep+set}" = set; then
4080 echo $ECHO_N "(cached) $ECHO_C" >&6
4082 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4083 then ac_cv_prog_egrep='grep -E'
4084 else ac_cv_prog_egrep='egrep'
4087 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4088 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4089 EGREP=$ac_cv_prog_egrep
4092 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4093 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4094 if test "${ac_cv_header_stdc+set}" = set; then
4095 echo $ECHO_N "(cached) $ECHO_C" >&6
4097 cat >conftest.$ac_ext <<_ACEOF
4100 cat confdefs.h >>conftest.$ac_ext
4101 cat >>conftest.$ac_ext <<_ACEOF
4102 /* end confdefs.h. */
4116 rm -f conftest.$ac_objext
4117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4118 (eval $ac_compile) 2>conftest.er1
4120 grep -v '^ *+' conftest.er1 >conftest.err
4122 cat conftest.err >&5
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); } &&
4125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); }; } &&
4131 { ac_try='test -s conftest.$ac_objext'
4132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136 (exit $ac_status); }; }; then
4137 ac_cv_header_stdc=yes
4139 echo "$as_me: failed program was:" >&5
4140 sed 's/^/| /' conftest.$ac_ext >&5
4142 ac_cv_header_stdc=no
4144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4146 if test $ac_cv_header_stdc = yes; then
4147 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4148 cat >conftest.$ac_ext <<_ACEOF
4151 cat confdefs.h >>conftest.$ac_ext
4152 cat >>conftest.$ac_ext <<_ACEOF
4153 /* end confdefs.h. */
4157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4158 $EGREP "memchr" >/dev/null 2>&1; then
4161 ac_cv_header_stdc=no
4167 if test $ac_cv_header_stdc = yes; then
4168 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4169 cat >conftest.$ac_ext <<_ACEOF
4172 cat confdefs.h >>conftest.$ac_ext
4173 cat >>conftest.$ac_ext <<_ACEOF
4174 /* end confdefs.h. */
4178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4179 $EGREP "free" >/dev/null 2>&1; then
4182 ac_cv_header_stdc=no
4188 if test $ac_cv_header_stdc = yes; then
4189 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4190 if test "$cross_compiling" = yes; then
4193 cat >conftest.$ac_ext <<_ACEOF
4196 cat confdefs.h >>conftest.$ac_ext
4197 cat >>conftest.$ac_ext <<_ACEOF
4198 /* end confdefs.h. */
4200 #if ((' ' & 0x0FF) == 0x020)
4201 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4202 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4204 # define ISLOWER(c) \
4205 (('a' <= (c) && (c) <= 'i') \
4206 || ('j' <= (c) && (c) <= 'r') \
4207 || ('s' <= (c) && (c) <= 'z'))
4208 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4211 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4216 for (i = 0; i < 256; i++)
4217 if (XOR (islower (i), ISLOWER (i))
4218 || toupper (i) != TOUPPER (i))
4223 rm -f conftest$ac_exeext
4224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4225 (eval $ac_link) 2>&5
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); }; }; then
4236 echo "$as_me: program exited with status $ac_status" >&5
4237 echo "$as_me: failed program was:" >&5
4238 sed 's/^/| /' conftest.$ac_ext >&5
4241 ac_cv_header_stdc=no
4243 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4247 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4248 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4249 if test $ac_cv_header_stdc = yes; then
4251 cat >>confdefs.h <<\_ACEOF
4252 #define STDC_HEADERS 1
4257 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4267 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4268 inttypes.h stdint.h unistd.h
4270 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4271 echo "$as_me:$LINENO: checking for $ac_header" >&5
4272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4273 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4274 echo $ECHO_N "(cached) $ECHO_C" >&6
4276 cat >conftest.$ac_ext <<_ACEOF
4279 cat confdefs.h >>conftest.$ac_ext
4280 cat >>conftest.$ac_ext <<_ACEOF
4281 /* end confdefs.h. */
4282 $ac_includes_default
4284 #include <$ac_header>
4286 rm -f conftest.$ac_objext
4287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4288 (eval $ac_compile) 2>conftest.er1
4290 grep -v '^ *+' conftest.er1 >conftest.err
4292 cat conftest.err >&5
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); } &&
4295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); }; } &&
4301 { ac_try='test -s conftest.$ac_objext'
4302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306 (exit $ac_status); }; }; then
4307 eval "$as_ac_Header=yes"
4309 echo "$as_me: failed program was:" >&5
4310 sed 's/^/| /' conftest.$ac_ext >&5
4312 eval "$as_ac_Header=no"
4314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4317 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4318 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4319 cat >>confdefs.h <<_ACEOF
4320 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4338 for ac_header in crypt.h poll.h inttypes.h stdint.h sys/devpoll.h sys/epoll.h sys/event.h sys/param.h sys/resource.h sys/socket.h
4340 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4342 echo "$as_me:$LINENO: checking for $ac_header" >&5
4343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4345 echo $ECHO_N "(cached) $ECHO_C" >&6
4347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4348 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4350 # Is the header compilable?
4351 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4352 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4353 cat >conftest.$ac_ext <<_ACEOF
4356 cat confdefs.h >>conftest.$ac_ext
4357 cat >>conftest.$ac_ext <<_ACEOF
4358 /* end confdefs.h. */
4359 $ac_includes_default
4360 #include <$ac_header>
4362 rm -f conftest.$ac_objext
4363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4364 (eval $ac_compile) 2>conftest.er1
4366 grep -v '^ *+' conftest.er1 >conftest.err
4368 cat conftest.err >&5
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); } &&
4371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376 (exit $ac_status); }; } &&
4377 { ac_try='test -s conftest.$ac_objext'
4378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); }; }; then
4383 ac_header_compiler=yes
4385 echo "$as_me: failed program was:" >&5
4386 sed 's/^/| /' conftest.$ac_ext >&5
4388 ac_header_compiler=no
4390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4391 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4392 echo "${ECHO_T}$ac_header_compiler" >&6
4394 # Is the header present?
4395 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4396 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4397 cat >conftest.$ac_ext <<_ACEOF
4400 cat confdefs.h >>conftest.$ac_ext
4401 cat >>conftest.$ac_ext <<_ACEOF
4402 /* end confdefs.h. */
4403 #include <$ac_header>
4405 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4406 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4408 grep -v '^ *+' conftest.er1 >conftest.err
4410 cat conftest.err >&5
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); } >/dev/null; then
4413 if test -s conftest.err; then
4414 ac_cpp_err=$ac_c_preproc_warn_flag
4415 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4422 if test -z "$ac_cpp_err"; then
4423 ac_header_preproc=yes
4425 echo "$as_me: failed program was:" >&5
4426 sed 's/^/| /' conftest.$ac_ext >&5
4428 ac_header_preproc=no
4430 rm -f conftest.err conftest.$ac_ext
4431 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4432 echo "${ECHO_T}$ac_header_preproc" >&6
4434 # So? What about this header?
4435 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4437 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4438 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4440 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4441 ac_header_preproc=yes
4444 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4445 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4446 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4447 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4448 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4449 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4450 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4451 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4453 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4454 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4455 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4458 ## ------------------------------------------ ##
4459 ## Report this to the AC_PACKAGE_NAME lists. ##
4460 ## ------------------------------------------ ##
4463 sed "s/^/$as_me: WARNING: /" >&2
4466 echo "$as_me:$LINENO: checking for $ac_header" >&5
4467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4469 echo $ECHO_N "(cached) $ECHO_C" >&6
4471 eval "$as_ac_Header=\$ac_header_preproc"
4473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4474 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4477 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4478 cat >>confdefs.h <<_ACEOF
4479 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4487 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4488 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4489 if test "${ac_cv_c_bigendian+set}" = set; then
4490 echo $ECHO_N "(cached) $ECHO_C" >&6
4492 # See if sys/param.h defines the BYTE_ORDER macro.
4493 cat >conftest.$ac_ext <<_ACEOF
4496 cat confdefs.h >>conftest.$ac_ext
4497 cat >>conftest.$ac_ext <<_ACEOF
4498 /* end confdefs.h. */
4499 #include <sys/types.h>
4500 #include <sys/param.h>
4505 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4513 rm -f conftest.$ac_objext
4514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4515 (eval $ac_compile) 2>conftest.er1
4517 grep -v '^ *+' conftest.er1 >conftest.err
4519 cat conftest.err >&5
4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); } &&
4522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); }; } &&
4528 { ac_try='test -s conftest.$ac_objext'
4529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); }; }; then
4534 # It does; now see whether it defined to BIG_ENDIAN or not.
4535 cat >conftest.$ac_ext <<_ACEOF
4538 cat confdefs.h >>conftest.$ac_ext
4539 cat >>conftest.$ac_ext <<_ACEOF
4540 /* end confdefs.h. */
4541 #include <sys/types.h>
4542 #include <sys/param.h>
4547 #if BYTE_ORDER != BIG_ENDIAN
4555 rm -f conftest.$ac_objext
4556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4557 (eval $ac_compile) 2>conftest.er1
4559 grep -v '^ *+' conftest.er1 >conftest.err
4561 cat conftest.err >&5
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); } &&
4564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); }; } &&
4570 { ac_try='test -s conftest.$ac_objext'
4571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); }; }; then
4576 ac_cv_c_bigendian=yes
4578 echo "$as_me: failed program was:" >&5
4579 sed 's/^/| /' conftest.$ac_ext >&5
4581 ac_cv_c_bigendian=no
4583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4585 echo "$as_me: failed program was:" >&5
4586 sed 's/^/| /' conftest.$ac_ext >&5
4588 # It does not; compile a test program.
4589 if test "$cross_compiling" = yes; then
4590 # try to guess the endianness by grepping values into an object file
4591 ac_cv_c_bigendian=unknown
4592 cat >conftest.$ac_ext <<_ACEOF
4595 cat confdefs.h >>conftest.$ac_ext
4596 cat >>conftest.$ac_ext <<_ACEOF
4597 /* end confdefs.h. */
4598 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4599 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4600 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4601 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4602 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4603 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4607 _ascii (); _ebcdic ();
4612 rm -f conftest.$ac_objext
4613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4614 (eval $ac_compile) 2>conftest.er1
4616 grep -v '^ *+' conftest.er1 >conftest.err
4618 cat conftest.err >&5
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); } &&
4621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626 (exit $ac_status); }; } &&
4627 { ac_try='test -s conftest.$ac_objext'
4628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); }; }; then
4633 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4634 ac_cv_c_bigendian=yes
4636 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4637 if test "$ac_cv_c_bigendian" = unknown; then
4638 ac_cv_c_bigendian=no
4640 # finding both strings is unlikely to happen, but who knows?
4641 ac_cv_c_bigendian=unknown
4645 echo "$as_me: failed program was:" >&5
4646 sed 's/^/| /' conftest.$ac_ext >&5
4649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4651 cat >conftest.$ac_ext <<_ACEOF
4654 cat confdefs.h >>conftest.$ac_ext
4655 cat >>conftest.$ac_ext <<_ACEOF
4656 /* end confdefs.h. */
4660 /* Are we little or big endian? From Harbison&Steele. */
4664 char c[sizeof (long)];
4667 exit (u.c[sizeof (long) - 1] == 1);
4670 rm -f conftest$ac_exeext
4671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4672 (eval $ac_link) 2>&5
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680 (exit $ac_status); }; }; then
4681 ac_cv_c_bigendian=no
4683 echo "$as_me: program exited with status $ac_status" >&5
4684 echo "$as_me: failed program was:" >&5
4685 sed 's/^/| /' conftest.$ac_ext >&5
4688 ac_cv_c_bigendian=yes
4690 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4695 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4696 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4697 case $ac_cv_c_bigendian in
4700 cat >>confdefs.h <<\_ACEOF
4701 #define WORDS_BIGENDIAN 1
4707 { { echo "$as_me:$LINENO: error: unknown endianness
4708 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4709 echo "$as_me: error: unknown endianness
4710 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4711 { (exit 1); exit 1; }; } ;;
4714 echo "$as_me:$LINENO: checking for size_t" >&5
4715 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4716 if test "${ac_cv_type_size_t+set}" = set; then
4717 echo $ECHO_N "(cached) $ECHO_C" >&6
4719 cat >conftest.$ac_ext <<_ACEOF
4722 cat confdefs.h >>conftest.$ac_ext
4723 cat >>conftest.$ac_ext <<_ACEOF
4724 /* end confdefs.h. */
4725 $ac_includes_default
4731 if (sizeof (size_t))
4737 rm -f conftest.$ac_objext
4738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4739 (eval $ac_compile) 2>conftest.er1
4741 grep -v '^ *+' conftest.er1 >conftest.err
4743 cat conftest.err >&5
4744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745 (exit $ac_status); } &&
4746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751 (exit $ac_status); }; } &&
4752 { ac_try='test -s conftest.$ac_objext'
4753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757 (exit $ac_status); }; }; then
4758 ac_cv_type_size_t=yes
4760 echo "$as_me: failed program was:" >&5
4761 sed 's/^/| /' conftest.$ac_ext >&5
4763 ac_cv_type_size_t=no
4765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4767 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4768 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4769 if test $ac_cv_type_size_t = yes; then
4773 cat >>confdefs.h <<_ACEOF
4774 #define size_t unsigned
4779 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4780 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4781 if test "${ac_cv_header_time+set}" = set; then
4782 echo $ECHO_N "(cached) $ECHO_C" >&6
4784 cat >conftest.$ac_ext <<_ACEOF
4787 cat confdefs.h >>conftest.$ac_ext
4788 cat >>conftest.$ac_ext <<_ACEOF
4789 /* end confdefs.h. */
4790 #include <sys/types.h>
4791 #include <sys/time.h>
4797 if ((struct tm *) 0)
4803 rm -f conftest.$ac_objext
4804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4805 (eval $ac_compile) 2>conftest.er1
4807 grep -v '^ *+' conftest.er1 >conftest.err
4809 cat conftest.err >&5
4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); } &&
4812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); }; } &&
4818 { ac_try='test -s conftest.$ac_objext'
4819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 (exit $ac_status); }; }; then
4824 ac_cv_header_time=yes
4826 echo "$as_me: failed program was:" >&5
4827 sed 's/^/| /' conftest.$ac_ext >&5
4829 ac_cv_header_time=no
4831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4833 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4834 echo "${ECHO_T}$ac_cv_header_time" >&6
4835 if test $ac_cv_header_time = yes; then
4837 cat >>confdefs.h <<\_ACEOF
4838 #define TIME_WITH_SYS_TIME 1
4843 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4844 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4845 if test "${ac_cv_struct_tm+set}" = set; then
4846 echo $ECHO_N "(cached) $ECHO_C" >&6
4848 cat >conftest.$ac_ext <<_ACEOF
4851 cat confdefs.h >>conftest.$ac_ext
4852 cat >>conftest.$ac_ext <<_ACEOF
4853 /* end confdefs.h. */
4854 #include <sys/types.h>
4860 struct tm *tp; tp->tm_sec;
4865 rm -f conftest.$ac_objext
4866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4867 (eval $ac_compile) 2>conftest.er1
4869 grep -v '^ *+' conftest.er1 >conftest.err
4871 cat conftest.err >&5
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); } &&
4874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); }; } &&
4880 { ac_try='test -s conftest.$ac_objext'
4881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); }; }; then
4886 ac_cv_struct_tm=time.h
4888 echo "$as_me: failed program was:" >&5
4889 sed 's/^/| /' conftest.$ac_ext >&5
4891 ac_cv_struct_tm=sys/time.h
4893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4895 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4896 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4897 if test $ac_cv_struct_tm = sys/time.h; then
4899 cat >>confdefs.h <<\_ACEOF
4900 #define TM_IN_SYS_TIME 1
4905 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
4906 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
4907 if test "${ac_cv_type_uid_t+set}" = set; then
4908 echo $ECHO_N "(cached) $ECHO_C" >&6
4910 cat >conftest.$ac_ext <<_ACEOF
4913 cat confdefs.h >>conftest.$ac_ext
4914 cat >>conftest.$ac_ext <<_ACEOF
4915 /* end confdefs.h. */
4916 #include <sys/types.h>
4919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4920 $EGREP "uid_t" >/dev/null 2>&1; then
4921 ac_cv_type_uid_t=yes
4928 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
4929 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
4930 if test $ac_cv_type_uid_t = no; then
4932 cat >>confdefs.h <<\_ACEOF
4937 cat >>confdefs.h <<\_ACEOF
4943 echo "$as_me:$LINENO: checking for short" >&5
4944 echo $ECHO_N "checking for short... $ECHO_C" >&6
4945 if test "${ac_cv_type_short+set}" = set; then
4946 echo $ECHO_N "(cached) $ECHO_C" >&6
4948 cat >conftest.$ac_ext <<_ACEOF
4951 cat confdefs.h >>conftest.$ac_ext
4952 cat >>conftest.$ac_ext <<_ACEOF
4953 /* end confdefs.h. */
4954 $ac_includes_default
4966 rm -f conftest.$ac_objext
4967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4968 (eval $ac_compile) 2>conftest.er1
4970 grep -v '^ *+' conftest.er1 >conftest.err
4972 cat conftest.err >&5
4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); } &&
4975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); }; } &&
4981 { ac_try='test -s conftest.$ac_objext'
4982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986 (exit $ac_status); }; }; then
4987 ac_cv_type_short=yes
4989 echo "$as_me: failed program was:" >&5
4990 sed 's/^/| /' conftest.$ac_ext >&5
4994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4996 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4997 echo "${ECHO_T}$ac_cv_type_short" >&6
4999 echo "$as_me:$LINENO: checking size of short" >&5
5000 echo $ECHO_N "checking size of short... $ECHO_C" >&6
5001 if test "${ac_cv_sizeof_short+set}" = set; then
5002 echo $ECHO_N "(cached) $ECHO_C" >&6
5004 if test "$ac_cv_type_short" = yes; then
5005 # The cast to unsigned long works around a bug in the HP C Compiler
5006 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5007 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5008 # This bug is HP SR number 8606223364.
5009 if test "$cross_compiling" = yes; then
5010 # Depending upon the size, compute the lo and hi bounds.
5011 cat >conftest.$ac_ext <<_ACEOF
5014 cat confdefs.h >>conftest.$ac_ext
5015 cat >>conftest.$ac_ext <<_ACEOF
5016 /* end confdefs.h. */
5017 $ac_includes_default
5021 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
5028 rm -f conftest.$ac_objext
5029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5030 (eval $ac_compile) 2>conftest.er1
5032 grep -v '^ *+' conftest.er1 >conftest.err
5034 cat conftest.err >&5
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); } &&
5037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); }; } &&
5043 { ac_try='test -s conftest.$ac_objext'
5044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); }; }; then
5051 cat >conftest.$ac_ext <<_ACEOF
5054 cat confdefs.h >>conftest.$ac_ext
5055 cat >>conftest.$ac_ext <<_ACEOF
5056 /* end confdefs.h. */
5057 $ac_includes_default
5061 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5068 rm -f conftest.$ac_objext
5069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5070 (eval $ac_compile) 2>conftest.er1
5072 grep -v '^ *+' conftest.er1 >conftest.err
5074 cat conftest.err >&5
5075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076 (exit $ac_status); } &&
5077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); }; } &&
5083 { ac_try='test -s conftest.$ac_objext'
5084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088 (exit $ac_status); }; }; then
5089 ac_hi=$ac_mid; break
5091 echo "$as_me: failed program was:" >&5
5092 sed 's/^/| /' conftest.$ac_ext >&5
5094 ac_lo=`expr $ac_mid + 1`
5095 if test $ac_lo -le $ac_mid; then
5099 ac_mid=`expr 2 '*' $ac_mid + 1`
5101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5104 echo "$as_me: failed program was:" >&5
5105 sed 's/^/| /' conftest.$ac_ext >&5
5107 cat >conftest.$ac_ext <<_ACEOF
5110 cat confdefs.h >>conftest.$ac_ext
5111 cat >>conftest.$ac_ext <<_ACEOF
5112 /* end confdefs.h. */
5113 $ac_includes_default
5117 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
5124 rm -f conftest.$ac_objext
5125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5126 (eval $ac_compile) 2>conftest.er1
5128 grep -v '^ *+' conftest.er1 >conftest.err
5130 cat conftest.err >&5
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); } &&
5133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138 (exit $ac_status); }; } &&
5139 { ac_try='test -s conftest.$ac_objext'
5140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144 (exit $ac_status); }; }; then
5147 cat >conftest.$ac_ext <<_ACEOF
5150 cat confdefs.h >>conftest.$ac_ext
5151 cat >>conftest.$ac_ext <<_ACEOF
5152 /* end confdefs.h. */
5153 $ac_includes_default
5157 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5164 rm -f conftest.$ac_objext
5165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5166 (eval $ac_compile) 2>conftest.er1
5168 grep -v '^ *+' conftest.er1 >conftest.err
5170 cat conftest.err >&5
5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172 (exit $ac_status); } &&
5173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178 (exit $ac_status); }; } &&
5179 { ac_try='test -s conftest.$ac_objext'
5180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5184 (exit $ac_status); }; }; then
5185 ac_lo=$ac_mid; break
5187 echo "$as_me: failed program was:" >&5
5188 sed 's/^/| /' conftest.$ac_ext >&5
5190 ac_hi=`expr '(' $ac_mid ')' - 1`
5191 if test $ac_mid -le $ac_hi; then
5195 ac_mid=`expr 2 '*' $ac_mid`
5197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5200 echo "$as_me: failed program was:" >&5
5201 sed 's/^/| /' conftest.$ac_ext >&5
5205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5208 # Binary search between lo and hi bounds.
5209 while test "x$ac_lo" != "x$ac_hi"; do
5210 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5211 cat >conftest.$ac_ext <<_ACEOF
5214 cat confdefs.h >>conftest.$ac_ext
5215 cat >>conftest.$ac_ext <<_ACEOF
5216 /* end confdefs.h. */
5217 $ac_includes_default
5221 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5228 rm -f conftest.$ac_objext
5229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5230 (eval $ac_compile) 2>conftest.er1
5232 grep -v '^ *+' conftest.er1 >conftest.err
5234 cat conftest.err >&5
5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); } &&
5237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242 (exit $ac_status); }; } &&
5243 { ac_try='test -s conftest.$ac_objext'
5244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); }; }; then
5251 echo "$as_me: failed program was:" >&5
5252 sed 's/^/| /' conftest.$ac_ext >&5
5254 ac_lo=`expr '(' $ac_mid ')' + 1`
5256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5259 ?*) ac_cv_sizeof_short=$ac_lo;;
5260 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5261 See \`config.log' for more details." >&5
5262 echo "$as_me: error: cannot compute sizeof (short), 77
5263 See \`config.log' for more details." >&2;}
5264 { (exit 1); exit 1; }; } ;;
5267 if test "$cross_compiling" = yes; then
5268 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5269 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5270 { (exit 1); exit 1; }; }
5272 cat >conftest.$ac_ext <<_ACEOF
5275 cat confdefs.h >>conftest.$ac_ext
5276 cat >>conftest.$ac_ext <<_ACEOF
5277 /* end confdefs.h. */
5278 $ac_includes_default
5279 long longval () { return (long) (sizeof (short)); }
5280 unsigned long ulongval () { return (long) (sizeof (short)); }
5287 FILE *f = fopen ("conftest.val", "w");
5290 if (((long) (sizeof (short))) < 0)
5292 long i = longval ();
5293 if (i != ((long) (sizeof (short))))
5295 fprintf (f, "%ld\n", i);
5299 unsigned long i = ulongval ();
5300 if (i != ((long) (sizeof (short))))
5302 fprintf (f, "%lu\n", i);
5304 exit (ferror (f) || fclose (f) != 0);
5310 rm -f conftest$ac_exeext
5311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5312 (eval $ac_link) 2>&5
5314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320 (exit $ac_status); }; }; then
5321 ac_cv_sizeof_short=`cat conftest.val`
5323 echo "$as_me: program exited with status $ac_status" >&5
5324 echo "$as_me: failed program was:" >&5
5325 sed 's/^/| /' conftest.$ac_ext >&5
5328 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5329 See \`config.log' for more details." >&5
5330 echo "$as_me: error: cannot compute sizeof (short), 77
5331 See \`config.log' for more details." >&2;}
5332 { (exit 1); exit 1; }; }
5334 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5339 ac_cv_sizeof_short=0
5342 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5343 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5344 cat >>confdefs.h <<_ACEOF
5345 #define SIZEOF_SHORT $ac_cv_sizeof_short
5349 echo "$as_me:$LINENO: checking for int" >&5
5350 echo $ECHO_N "checking for int... $ECHO_C" >&6
5351 if test "${ac_cv_type_int+set}" = set; then
5352 echo $ECHO_N "(cached) $ECHO_C" >&6
5354 cat >conftest.$ac_ext <<_ACEOF
5357 cat confdefs.h >>conftest.$ac_ext
5358 cat >>conftest.$ac_ext <<_ACEOF
5359 /* end confdefs.h. */
5360 $ac_includes_default
5372 rm -f conftest.$ac_objext
5373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5374 (eval $ac_compile) 2>conftest.er1
5376 grep -v '^ *+' conftest.er1 >conftest.err
5378 cat conftest.err >&5
5379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380 (exit $ac_status); } &&
5381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); }; } &&
5387 { ac_try='test -s conftest.$ac_objext'
5388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); }; }; then
5395 echo "$as_me: failed program was:" >&5
5396 sed 's/^/| /' conftest.$ac_ext >&5
5400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5402 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5403 echo "${ECHO_T}$ac_cv_type_int" >&6
5405 echo "$as_me:$LINENO: checking size of int" >&5
5406 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5407 if test "${ac_cv_sizeof_int+set}" = set; then
5408 echo $ECHO_N "(cached) $ECHO_C" >&6
5410 if test "$ac_cv_type_int" = yes; then
5411 # The cast to unsigned long works around a bug in the HP C Compiler
5412 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5413 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5414 # This bug is HP SR number 8606223364.
5415 if test "$cross_compiling" = yes; then
5416 # Depending upon the size, compute the lo and hi bounds.
5417 cat >conftest.$ac_ext <<_ACEOF
5420 cat confdefs.h >>conftest.$ac_ext
5421 cat >>conftest.$ac_ext <<_ACEOF
5422 /* end confdefs.h. */
5423 $ac_includes_default
5427 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5434 rm -f conftest.$ac_objext
5435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5436 (eval $ac_compile) 2>conftest.er1
5438 grep -v '^ *+' conftest.er1 >conftest.err
5440 cat conftest.err >&5
5441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442 (exit $ac_status); } &&
5443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448 (exit $ac_status); }; } &&
5449 { ac_try='test -s conftest.$ac_objext'
5450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454 (exit $ac_status); }; }; then
5457 cat >conftest.$ac_ext <<_ACEOF
5460 cat confdefs.h >>conftest.$ac_ext
5461 cat >>conftest.$ac_ext <<_ACEOF
5462 /* end confdefs.h. */
5463 $ac_includes_default
5467 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5474 rm -f conftest.$ac_objext
5475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5476 (eval $ac_compile) 2>conftest.er1
5478 grep -v '^ *+' conftest.er1 >conftest.err
5480 cat conftest.err >&5
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); } &&
5483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); }; } &&
5489 { ac_try='test -s conftest.$ac_objext'
5490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 (exit $ac_status); }; }; then
5495 ac_hi=$ac_mid; break
5497 echo "$as_me: failed program was:" >&5
5498 sed 's/^/| /' conftest.$ac_ext >&5
5500 ac_lo=`expr $ac_mid + 1`
5501 if test $ac_lo -le $ac_mid; then
5505 ac_mid=`expr 2 '*' $ac_mid + 1`
5507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5510 echo "$as_me: failed program was:" >&5
5511 sed 's/^/| /' conftest.$ac_ext >&5
5513 cat >conftest.$ac_ext <<_ACEOF
5516 cat confdefs.h >>conftest.$ac_ext
5517 cat >>conftest.$ac_ext <<_ACEOF
5518 /* end confdefs.h. */
5519 $ac_includes_default
5523 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5530 rm -f conftest.$ac_objext
5531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5532 (eval $ac_compile) 2>conftest.er1
5534 grep -v '^ *+' conftest.er1 >conftest.err
5536 cat conftest.err >&5
5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); } &&
5539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); }; } &&
5545 { ac_try='test -s conftest.$ac_objext'
5546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550 (exit $ac_status); }; }; then
5553 cat >conftest.$ac_ext <<_ACEOF
5556 cat confdefs.h >>conftest.$ac_ext
5557 cat >>conftest.$ac_ext <<_ACEOF
5558 /* end confdefs.h. */
5559 $ac_includes_default
5563 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5570 rm -f conftest.$ac_objext
5571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5572 (eval $ac_compile) 2>conftest.er1
5574 grep -v '^ *+' conftest.er1 >conftest.err
5576 cat conftest.err >&5
5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578 (exit $ac_status); } &&
5579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584 (exit $ac_status); }; } &&
5585 { ac_try='test -s conftest.$ac_objext'
5586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590 (exit $ac_status); }; }; then
5591 ac_lo=$ac_mid; break
5593 echo "$as_me: failed program was:" >&5
5594 sed 's/^/| /' conftest.$ac_ext >&5
5596 ac_hi=`expr '(' $ac_mid ')' - 1`
5597 if test $ac_mid -le $ac_hi; then
5601 ac_mid=`expr 2 '*' $ac_mid`
5603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5606 echo "$as_me: failed program was:" >&5
5607 sed 's/^/| /' conftest.$ac_ext >&5
5611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5614 # Binary search between lo and hi bounds.
5615 while test "x$ac_lo" != "x$ac_hi"; do
5616 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5617 cat >conftest.$ac_ext <<_ACEOF
5620 cat confdefs.h >>conftest.$ac_ext
5621 cat >>conftest.$ac_ext <<_ACEOF
5622 /* end confdefs.h. */
5623 $ac_includes_default
5627 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5634 rm -f conftest.$ac_objext
5635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5636 (eval $ac_compile) 2>conftest.er1
5638 grep -v '^ *+' conftest.er1 >conftest.err
5640 cat conftest.err >&5
5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 (exit $ac_status); } &&
5643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648 (exit $ac_status); }; } &&
5649 { ac_try='test -s conftest.$ac_objext'
5650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654 (exit $ac_status); }; }; then
5657 echo "$as_me: failed program was:" >&5
5658 sed 's/^/| /' conftest.$ac_ext >&5
5660 ac_lo=`expr '(' $ac_mid ')' + 1`
5662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5665 ?*) ac_cv_sizeof_int=$ac_lo;;
5666 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5667 See \`config.log' for more details." >&5
5668 echo "$as_me: error: cannot compute sizeof (int), 77
5669 See \`config.log' for more details." >&2;}
5670 { (exit 1); exit 1; }; } ;;
5673 if test "$cross_compiling" = yes; then
5674 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5675 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5676 { (exit 1); exit 1; }; }
5678 cat >conftest.$ac_ext <<_ACEOF
5681 cat confdefs.h >>conftest.$ac_ext
5682 cat >>conftest.$ac_ext <<_ACEOF
5683 /* end confdefs.h. */
5684 $ac_includes_default
5685 long longval () { return (long) (sizeof (int)); }
5686 unsigned long ulongval () { return (long) (sizeof (int)); }
5693 FILE *f = fopen ("conftest.val", "w");
5696 if (((long) (sizeof (int))) < 0)
5698 long i = longval ();
5699 if (i != ((long) (sizeof (int))))
5701 fprintf (f, "%ld\n", i);
5705 unsigned long i = ulongval ();
5706 if (i != ((long) (sizeof (int))))
5708 fprintf (f, "%lu\n", i);
5710 exit (ferror (f) || fclose (f) != 0);
5716 rm -f conftest$ac_exeext
5717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5718 (eval $ac_link) 2>&5
5720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); }; }; then
5727 ac_cv_sizeof_int=`cat conftest.val`
5729 echo "$as_me: program exited with status $ac_status" >&5
5730 echo "$as_me: failed program was:" >&5
5731 sed 's/^/| /' conftest.$ac_ext >&5
5734 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5735 See \`config.log' for more details." >&5
5736 echo "$as_me: error: cannot compute sizeof (int), 77
5737 See \`config.log' for more details." >&2;}
5738 { (exit 1); exit 1; }; }
5740 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5748 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5749 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5750 cat >>confdefs.h <<_ACEOF
5751 #define SIZEOF_INT $ac_cv_sizeof_int
5755 echo "$as_me:$LINENO: checking for long" >&5
5756 echo $ECHO_N "checking for long... $ECHO_C" >&6
5757 if test "${ac_cv_type_long+set}" = set; then
5758 echo $ECHO_N "(cached) $ECHO_C" >&6
5760 cat >conftest.$ac_ext <<_ACEOF
5763 cat confdefs.h >>conftest.$ac_ext
5764 cat >>conftest.$ac_ext <<_ACEOF
5765 /* end confdefs.h. */
5766 $ac_includes_default
5778 rm -f conftest.$ac_objext
5779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5780 (eval $ac_compile) 2>conftest.er1
5782 grep -v '^ *+' conftest.er1 >conftest.err
5784 cat conftest.err >&5
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); } &&
5787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); }; } &&
5793 { ac_try='test -s conftest.$ac_objext'
5794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); }; }; then
5801 echo "$as_me: failed program was:" >&5
5802 sed 's/^/| /' conftest.$ac_ext >&5
5806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5808 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5809 echo "${ECHO_T}$ac_cv_type_long" >&6
5811 echo "$as_me:$LINENO: checking size of long" >&5
5812 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5813 if test "${ac_cv_sizeof_long+set}" = set; then
5814 echo $ECHO_N "(cached) $ECHO_C" >&6
5816 if test "$ac_cv_type_long" = yes; then
5817 # The cast to unsigned long works around a bug in the HP C Compiler
5818 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5819 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5820 # This bug is HP SR number 8606223364.
5821 if test "$cross_compiling" = yes; then
5822 # Depending upon the size, compute the lo and hi bounds.
5823 cat >conftest.$ac_ext <<_ACEOF
5826 cat confdefs.h >>conftest.$ac_ext
5827 cat >>conftest.$ac_ext <<_ACEOF
5828 /* end confdefs.h. */
5829 $ac_includes_default
5833 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5840 rm -f conftest.$ac_objext
5841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5842 (eval $ac_compile) 2>conftest.er1
5844 grep -v '^ *+' conftest.er1 >conftest.err
5846 cat conftest.err >&5
5847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); } &&
5849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854 (exit $ac_status); }; } &&
5855 { ac_try='test -s conftest.$ac_objext'
5856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); }; }; then
5863 cat >conftest.$ac_ext <<_ACEOF
5866 cat confdefs.h >>conftest.$ac_ext
5867 cat >>conftest.$ac_ext <<_ACEOF
5868 /* end confdefs.h. */
5869 $ac_includes_default
5873 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5880 rm -f conftest.$ac_objext
5881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5882 (eval $ac_compile) 2>conftest.er1
5884 grep -v '^ *+' conftest.er1 >conftest.err
5886 cat conftest.err >&5
5887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888 (exit $ac_status); } &&
5889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894 (exit $ac_status); }; } &&
5895 { ac_try='test -s conftest.$ac_objext'
5896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900 (exit $ac_status); }; }; then
5901 ac_hi=$ac_mid; break
5903 echo "$as_me: failed program was:" >&5
5904 sed 's/^/| /' conftest.$ac_ext >&5
5906 ac_lo=`expr $ac_mid + 1`
5907 if test $ac_lo -le $ac_mid; then
5911 ac_mid=`expr 2 '*' $ac_mid + 1`
5913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5916 echo "$as_me: failed program was:" >&5
5917 sed 's/^/| /' conftest.$ac_ext >&5
5919 cat >conftest.$ac_ext <<_ACEOF
5922 cat confdefs.h >>conftest.$ac_ext
5923 cat >>conftest.$ac_ext <<_ACEOF
5924 /* end confdefs.h. */
5925 $ac_includes_default
5929 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5936 rm -f conftest.$ac_objext
5937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5938 (eval $ac_compile) 2>conftest.er1
5940 grep -v '^ *+' conftest.er1 >conftest.err
5942 cat conftest.err >&5
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); } &&
5945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); }; } &&
5951 { ac_try='test -s conftest.$ac_objext'
5952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956 (exit $ac_status); }; }; then
5959 cat >conftest.$ac_ext <<_ACEOF
5962 cat confdefs.h >>conftest.$ac_ext
5963 cat >>conftest.$ac_ext <<_ACEOF
5964 /* end confdefs.h. */
5965 $ac_includes_default
5969 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5976 rm -f conftest.$ac_objext
5977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5978 (eval $ac_compile) 2>conftest.er1
5980 grep -v '^ *+' conftest.er1 >conftest.err
5982 cat conftest.err >&5
5983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984 (exit $ac_status); } &&
5985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); }; } &&
5991 { ac_try='test -s conftest.$ac_objext'
5992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996 (exit $ac_status); }; }; then
5997 ac_lo=$ac_mid; break
5999 echo "$as_me: failed program was:" >&5
6000 sed 's/^/| /' conftest.$ac_ext >&5
6002 ac_hi=`expr '(' $ac_mid ')' - 1`
6003 if test $ac_mid -le $ac_hi; then
6007 ac_mid=`expr 2 '*' $ac_mid`
6009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6012 echo "$as_me: failed program was:" >&5
6013 sed 's/^/| /' conftest.$ac_ext >&5
6017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6020 # Binary search between lo and hi bounds.
6021 while test "x$ac_lo" != "x$ac_hi"; do
6022 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6023 cat >conftest.$ac_ext <<_ACEOF
6026 cat confdefs.h >>conftest.$ac_ext
6027 cat >>conftest.$ac_ext <<_ACEOF
6028 /* end confdefs.h. */
6029 $ac_includes_default
6033 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6040 rm -f conftest.$ac_objext
6041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6042 (eval $ac_compile) 2>conftest.er1
6044 grep -v '^ *+' conftest.er1 >conftest.err
6046 cat conftest.err >&5
6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); } &&
6049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054 (exit $ac_status); }; } &&
6055 { ac_try='test -s conftest.$ac_objext'
6056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060 (exit $ac_status); }; }; then
6063 echo "$as_me: failed program was:" >&5
6064 sed 's/^/| /' conftest.$ac_ext >&5
6066 ac_lo=`expr '(' $ac_mid ')' + 1`
6068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6071 ?*) ac_cv_sizeof_long=$ac_lo;;
6072 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6073 See \`config.log' for more details." >&5
6074 echo "$as_me: error: cannot compute sizeof (long), 77
6075 See \`config.log' for more details." >&2;}
6076 { (exit 1); exit 1; }; } ;;
6079 if test "$cross_compiling" = yes; then
6080 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6081 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6082 { (exit 1); exit 1; }; }
6084 cat >conftest.$ac_ext <<_ACEOF
6087 cat confdefs.h >>conftest.$ac_ext
6088 cat >>conftest.$ac_ext <<_ACEOF
6089 /* end confdefs.h. */
6090 $ac_includes_default
6091 long longval () { return (long) (sizeof (long)); }
6092 unsigned long ulongval () { return (long) (sizeof (long)); }
6099 FILE *f = fopen ("conftest.val", "w");
6102 if (((long) (sizeof (long))) < 0)
6104 long i = longval ();
6105 if (i != ((long) (sizeof (long))))
6107 fprintf (f, "%ld\n", i);
6111 unsigned long i = ulongval ();
6112 if (i != ((long) (sizeof (long))))
6114 fprintf (f, "%lu\n", i);
6116 exit (ferror (f) || fclose (f) != 0);
6122 rm -f conftest$ac_exeext
6123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6124 (eval $ac_link) 2>&5
6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); }; }; then
6133 ac_cv_sizeof_long=`cat conftest.val`
6135 echo "$as_me: program exited with status $ac_status" >&5
6136 echo "$as_me: failed program was:" >&5
6137 sed 's/^/| /' conftest.$ac_ext >&5
6140 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6141 See \`config.log' for more details." >&5
6142 echo "$as_me: error: cannot compute sizeof (long), 77
6143 See \`config.log' for more details." >&2;}
6144 { (exit 1); exit 1; }; }
6146 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6154 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6155 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
6156 cat >>confdefs.h <<_ACEOF
6157 #define SIZEOF_LONG $ac_cv_sizeof_long
6161 echo "$as_me:$LINENO: checking for void *" >&5
6162 echo $ECHO_N "checking for void *... $ECHO_C" >&6
6163 if test "${ac_cv_type_void_p+set}" = set; then
6164 echo $ECHO_N "(cached) $ECHO_C" >&6
6166 cat >conftest.$ac_ext <<_ACEOF
6169 cat confdefs.h >>conftest.$ac_ext
6170 cat >>conftest.$ac_ext <<_ACEOF
6171 /* end confdefs.h. */
6172 $ac_includes_default
6178 if (sizeof (void *))
6184 rm -f conftest.$ac_objext
6185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6186 (eval $ac_compile) 2>conftest.er1
6188 grep -v '^ *+' conftest.er1 >conftest.err
6190 cat conftest.err >&5
6191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192 (exit $ac_status); } &&
6193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); }; } &&
6199 { ac_try='test -s conftest.$ac_objext'
6200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); }; }; then
6205 ac_cv_type_void_p=yes
6207 echo "$as_me: failed program was:" >&5
6208 sed 's/^/| /' conftest.$ac_ext >&5
6210 ac_cv_type_void_p=no
6212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6214 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
6215 echo "${ECHO_T}$ac_cv_type_void_p" >&6
6217 echo "$as_me:$LINENO: checking size of void *" >&5
6218 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
6219 if test "${ac_cv_sizeof_void_p+set}" = set; then
6220 echo $ECHO_N "(cached) $ECHO_C" >&6
6222 if test "$ac_cv_type_void_p" = yes; then
6223 # The cast to unsigned long works around a bug in the HP C Compiler
6224 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6225 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6226 # This bug is HP SR number 8606223364.
6227 if test "$cross_compiling" = yes; then
6228 # Depending upon the size, compute the lo and hi bounds.
6229 cat >conftest.$ac_ext <<_ACEOF
6232 cat confdefs.h >>conftest.$ac_ext
6233 cat >>conftest.$ac_ext <<_ACEOF
6234 /* end confdefs.h. */
6235 $ac_includes_default
6239 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
6246 rm -f conftest.$ac_objext
6247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6248 (eval $ac_compile) 2>conftest.er1
6250 grep -v '^ *+' conftest.er1 >conftest.err
6252 cat conftest.err >&5
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); } &&
6255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); }; } &&
6261 { ac_try='test -s conftest.$ac_objext'
6262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); }; }; then
6269 cat >conftest.$ac_ext <<_ACEOF
6272 cat confdefs.h >>conftest.$ac_ext
6273 cat >>conftest.$ac_ext <<_ACEOF
6274 /* end confdefs.h. */
6275 $ac_includes_default
6279 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
6286 rm -f conftest.$ac_objext
6287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6288 (eval $ac_compile) 2>conftest.er1
6290 grep -v '^ *+' conftest.er1 >conftest.err
6292 cat conftest.err >&5
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); } &&
6295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); }; } &&
6301 { ac_try='test -s conftest.$ac_objext'
6302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); }; }; then
6307 ac_hi=$ac_mid; break
6309 echo "$as_me: failed program was:" >&5
6310 sed 's/^/| /' conftest.$ac_ext >&5
6312 ac_lo=`expr $ac_mid + 1`
6313 if test $ac_lo -le $ac_mid; then
6317 ac_mid=`expr 2 '*' $ac_mid + 1`
6319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6322 echo "$as_me: failed program was:" >&5
6323 sed 's/^/| /' conftest.$ac_ext >&5
6325 cat >conftest.$ac_ext <<_ACEOF
6328 cat confdefs.h >>conftest.$ac_ext
6329 cat >>conftest.$ac_ext <<_ACEOF
6330 /* end confdefs.h. */
6331 $ac_includes_default
6335 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
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
6365 cat >conftest.$ac_ext <<_ACEOF
6368 cat confdefs.h >>conftest.$ac_ext
6369 cat >>conftest.$ac_ext <<_ACEOF
6370 /* end confdefs.h. */
6371 $ac_includes_default
6375 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
6382 rm -f conftest.$ac_objext
6383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6384 (eval $ac_compile) 2>conftest.er1
6386 grep -v '^ *+' conftest.er1 >conftest.err
6388 cat conftest.err >&5
6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); } &&
6391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396 (exit $ac_status); }; } &&
6397 { ac_try='test -s conftest.$ac_objext'
6398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); }; }; then
6403 ac_lo=$ac_mid; break
6405 echo "$as_me: failed program was:" >&5
6406 sed 's/^/| /' conftest.$ac_ext >&5
6408 ac_hi=`expr '(' $ac_mid ')' - 1`
6409 if test $ac_mid -le $ac_hi; then
6413 ac_mid=`expr 2 '*' $ac_mid`
6415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6418 echo "$as_me: failed program was:" >&5
6419 sed 's/^/| /' conftest.$ac_ext >&5
6423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6426 # Binary search between lo and hi bounds.
6427 while test "x$ac_lo" != "x$ac_hi"; do
6428 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6429 cat >conftest.$ac_ext <<_ACEOF
6432 cat confdefs.h >>conftest.$ac_ext
6433 cat >>conftest.$ac_ext <<_ACEOF
6434 /* end confdefs.h. */
6435 $ac_includes_default
6439 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
6446 rm -f conftest.$ac_objext
6447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6448 (eval $ac_compile) 2>conftest.er1
6450 grep -v '^ *+' conftest.er1 >conftest.err
6452 cat conftest.err >&5
6453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454 (exit $ac_status); } &&
6455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460 (exit $ac_status); }; } &&
6461 { ac_try='test -s conftest.$ac_objext'
6462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466 (exit $ac_status); }; }; then
6469 echo "$as_me: failed program was:" >&5
6470 sed 's/^/| /' conftest.$ac_ext >&5
6472 ac_lo=`expr '(' $ac_mid ')' + 1`
6474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6477 ?*) ac_cv_sizeof_void_p=$ac_lo;;
6478 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
6479 See \`config.log' for more details." >&5
6480 echo "$as_me: error: cannot compute sizeof (void *), 77
6481 See \`config.log' for more details." >&2;}
6482 { (exit 1); exit 1; }; } ;;
6485 if test "$cross_compiling" = yes; then
6486 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6487 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6488 { (exit 1); exit 1; }; }
6490 cat >conftest.$ac_ext <<_ACEOF
6493 cat confdefs.h >>conftest.$ac_ext
6494 cat >>conftest.$ac_ext <<_ACEOF
6495 /* end confdefs.h. */
6496 $ac_includes_default
6497 long longval () { return (long) (sizeof (void *)); }
6498 unsigned long ulongval () { return (long) (sizeof (void *)); }
6505 FILE *f = fopen ("conftest.val", "w");
6508 if (((long) (sizeof (void *))) < 0)
6510 long i = longval ();
6511 if (i != ((long) (sizeof (void *))))
6513 fprintf (f, "%ld\n", i);
6517 unsigned long i = ulongval ();
6518 if (i != ((long) (sizeof (void *))))
6520 fprintf (f, "%lu\n", i);
6522 exit (ferror (f) || fclose (f) != 0);
6528 rm -f conftest$ac_exeext
6529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6530 (eval $ac_link) 2>&5
6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538 (exit $ac_status); }; }; then
6539 ac_cv_sizeof_void_p=`cat conftest.val`
6541 echo "$as_me: program exited with status $ac_status" >&5
6542 echo "$as_me: failed program was:" >&5
6543 sed 's/^/| /' conftest.$ac_ext >&5
6546 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
6547 See \`config.log' for more details." >&5
6548 echo "$as_me: error: cannot compute sizeof (void *), 77
6549 See \`config.log' for more details." >&2;}
6550 { (exit 1); exit 1; }; }
6552 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6557 ac_cv_sizeof_void_p=0
6560 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
6561 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
6562 cat >>confdefs.h <<_ACEOF
6563 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6567 echo "$as_me:$LINENO: checking for int64_t" >&5
6568 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
6569 if test "${ac_cv_type_int64_t+set}" = set; then
6570 echo $ECHO_N "(cached) $ECHO_C" >&6
6572 cat >conftest.$ac_ext <<_ACEOF
6575 cat confdefs.h >>conftest.$ac_ext
6576 cat >>conftest.$ac_ext <<_ACEOF
6577 /* end confdefs.h. */
6578 $ac_includes_default
6584 if (sizeof (int64_t))
6590 rm -f conftest.$ac_objext
6591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6592 (eval $ac_compile) 2>conftest.er1
6594 grep -v '^ *+' conftest.er1 >conftest.err
6596 cat conftest.err >&5
6597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598 (exit $ac_status); } &&
6599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604 (exit $ac_status); }; } &&
6605 { ac_try='test -s conftest.$ac_objext'
6606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); }; }; then
6611 ac_cv_type_int64_t=yes
6613 echo "$as_me: failed program was:" >&5
6614 sed 's/^/| /' conftest.$ac_ext >&5
6616 ac_cv_type_int64_t=no
6618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6620 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
6621 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
6623 echo "$as_me:$LINENO: checking size of int64_t" >&5
6624 echo $ECHO_N "checking size of int64_t... $ECHO_C" >&6
6625 if test "${ac_cv_sizeof_int64_t+set}" = set; then
6626 echo $ECHO_N "(cached) $ECHO_C" >&6
6628 if test "$ac_cv_type_int64_t" = yes; then
6629 # The cast to unsigned long works around a bug in the HP C Compiler
6630 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6631 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6632 # This bug is HP SR number 8606223364.
6633 if test "$cross_compiling" = yes; then
6634 # Depending upon the size, compute the lo and hi bounds.
6635 cat >conftest.$ac_ext <<_ACEOF
6638 cat confdefs.h >>conftest.$ac_ext
6639 cat >>conftest.$ac_ext <<_ACEOF
6640 /* end confdefs.h. */
6641 $ac_includes_default
6645 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) >= 0)];
6652 rm -f conftest.$ac_objext
6653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6654 (eval $ac_compile) 2>conftest.er1
6656 grep -v '^ *+' conftest.er1 >conftest.err
6658 cat conftest.err >&5
6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660 (exit $ac_status); } &&
6661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); }; } &&
6667 { ac_try='test -s conftest.$ac_objext'
6668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672 (exit $ac_status); }; }; then
6675 cat >conftest.$ac_ext <<_ACEOF
6678 cat confdefs.h >>conftest.$ac_ext
6679 cat >>conftest.$ac_ext <<_ACEOF
6680 /* end confdefs.h. */
6681 $ac_includes_default
6685 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) <= $ac_mid)];
6692 rm -f conftest.$ac_objext
6693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6694 (eval $ac_compile) 2>conftest.er1
6696 grep -v '^ *+' conftest.er1 >conftest.err
6698 cat conftest.err >&5
6699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700 (exit $ac_status); } &&
6701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); }; } &&
6707 { ac_try='test -s conftest.$ac_objext'
6708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); }; }; then
6713 ac_hi=$ac_mid; break
6715 echo "$as_me: failed program was:" >&5
6716 sed 's/^/| /' conftest.$ac_ext >&5
6718 ac_lo=`expr $ac_mid + 1`
6719 if test $ac_lo -le $ac_mid; then
6723 ac_mid=`expr 2 '*' $ac_mid + 1`
6725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6728 echo "$as_me: failed program was:" >&5
6729 sed 's/^/| /' conftest.$ac_ext >&5
6731 cat >conftest.$ac_ext <<_ACEOF
6734 cat confdefs.h >>conftest.$ac_ext
6735 cat >>conftest.$ac_ext <<_ACEOF
6736 /* end confdefs.h. */
6737 $ac_includes_default
6741 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) < 0)];
6748 rm -f conftest.$ac_objext
6749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6750 (eval $ac_compile) 2>conftest.er1
6752 grep -v '^ *+' conftest.er1 >conftest.err
6754 cat conftest.err >&5
6755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756 (exit $ac_status); } &&
6757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762 (exit $ac_status); }; } &&
6763 { ac_try='test -s conftest.$ac_objext'
6764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); }; }; then
6771 cat >conftest.$ac_ext <<_ACEOF
6774 cat confdefs.h >>conftest.$ac_ext
6775 cat >>conftest.$ac_ext <<_ACEOF
6776 /* end confdefs.h. */
6777 $ac_includes_default
6781 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) >= $ac_mid)];
6788 rm -f conftest.$ac_objext
6789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6790 (eval $ac_compile) 2>conftest.er1
6792 grep -v '^ *+' conftest.er1 >conftest.err
6794 cat conftest.err >&5
6795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796 (exit $ac_status); } &&
6797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802 (exit $ac_status); }; } &&
6803 { ac_try='test -s conftest.$ac_objext'
6804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); }; }; then
6809 ac_lo=$ac_mid; break
6811 echo "$as_me: failed program was:" >&5
6812 sed 's/^/| /' conftest.$ac_ext >&5
6814 ac_hi=`expr '(' $ac_mid ')' - 1`
6815 if test $ac_mid -le $ac_hi; then
6819 ac_mid=`expr 2 '*' $ac_mid`
6821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6824 echo "$as_me: failed program was:" >&5
6825 sed 's/^/| /' conftest.$ac_ext >&5
6829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6832 # Binary search between lo and hi bounds.
6833 while test "x$ac_lo" != "x$ac_hi"; do
6834 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6835 cat >conftest.$ac_ext <<_ACEOF
6838 cat confdefs.h >>conftest.$ac_ext
6839 cat >>conftest.$ac_ext <<_ACEOF
6840 /* end confdefs.h. */
6841 $ac_includes_default
6845 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) <= $ac_mid)];
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
6875 echo "$as_me: failed program was:" >&5
6876 sed 's/^/| /' conftest.$ac_ext >&5
6878 ac_lo=`expr '(' $ac_mid ')' + 1`
6880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6883 ?*) ac_cv_sizeof_int64_t=$ac_lo;;
6884 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int64_t), 77
6885 See \`config.log' for more details." >&5
6886 echo "$as_me: error: cannot compute sizeof (int64_t), 77
6887 See \`config.log' for more details." >&2;}
6888 { (exit 1); exit 1; }; } ;;
6891 if test "$cross_compiling" = yes; then
6892 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6893 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6894 { (exit 1); exit 1; }; }
6896 cat >conftest.$ac_ext <<_ACEOF
6899 cat confdefs.h >>conftest.$ac_ext
6900 cat >>conftest.$ac_ext <<_ACEOF
6901 /* end confdefs.h. */
6902 $ac_includes_default
6903 long longval () { return (long) (sizeof (int64_t)); }
6904 unsigned long ulongval () { return (long) (sizeof (int64_t)); }
6911 FILE *f = fopen ("conftest.val", "w");
6914 if (((long) (sizeof (int64_t))) < 0)
6916 long i = longval ();
6917 if (i != ((long) (sizeof (int64_t))))
6919 fprintf (f, "%ld\n", i);
6923 unsigned long i = ulongval ();
6924 if (i != ((long) (sizeof (int64_t))))
6926 fprintf (f, "%lu\n", i);
6928 exit (ferror (f) || fclose (f) != 0);
6934 rm -f conftest$ac_exeext
6935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6936 (eval $ac_link) 2>&5
6938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944 (exit $ac_status); }; }; then
6945 ac_cv_sizeof_int64_t=`cat conftest.val`
6947 echo "$as_me: program exited with status $ac_status" >&5
6948 echo "$as_me: failed program was:" >&5
6949 sed 's/^/| /' conftest.$ac_ext >&5
6952 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int64_t), 77
6953 See \`config.log' for more details." >&5
6954 echo "$as_me: error: cannot compute sizeof (int64_t), 77
6955 See \`config.log' for more details." >&2;}
6956 { (exit 1); exit 1; }; }
6958 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6963 ac_cv_sizeof_int64_t=0
6966 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int64_t" >&5
6967 echo "${ECHO_T}$ac_cv_sizeof_int64_t" >&6
6968 cat >>confdefs.h <<_ACEOF
6969 #define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
6973 echo "$as_me:$LINENO: checking for long long" >&5
6974 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6975 if test "${ac_cv_type_long_long+set}" = set; then
6976 echo $ECHO_N "(cached) $ECHO_C" >&6
6978 cat >conftest.$ac_ext <<_ACEOF
6981 cat confdefs.h >>conftest.$ac_ext
6982 cat >>conftest.$ac_ext <<_ACEOF
6983 /* end confdefs.h. */
6984 $ac_includes_default
6988 if ((long long *) 0)
6990 if (sizeof (long long))
6996 rm -f conftest.$ac_objext
6997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6998 (eval $ac_compile) 2>conftest.er1
7000 grep -v '^ *+' conftest.er1 >conftest.err
7002 cat conftest.err >&5
7003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004 (exit $ac_status); } &&
7005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010 (exit $ac_status); }; } &&
7011 { ac_try='test -s conftest.$ac_objext'
7012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016 (exit $ac_status); }; }; then
7017 ac_cv_type_long_long=yes
7019 echo "$as_me: failed program was:" >&5
7020 sed 's/^/| /' conftest.$ac_ext >&5
7022 ac_cv_type_long_long=no
7024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7026 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
7027 echo "${ECHO_T}$ac_cv_type_long_long" >&6
7029 echo "$as_me:$LINENO: checking size of long long" >&5
7030 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
7031 if test "${ac_cv_sizeof_long_long+set}" = set; then
7032 echo $ECHO_N "(cached) $ECHO_C" >&6
7034 if test "$ac_cv_type_long_long" = yes; then
7035 # The cast to unsigned long works around a bug in the HP C Compiler
7036 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7037 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7038 # This bug is HP SR number 8606223364.
7039 if test "$cross_compiling" = yes; then
7040 # Depending upon the size, compute the lo and hi bounds.
7041 cat >conftest.$ac_ext <<_ACEOF
7044 cat confdefs.h >>conftest.$ac_ext
7045 cat >>conftest.$ac_ext <<_ACEOF
7046 /* end confdefs.h. */
7047 $ac_includes_default
7051 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
7058 rm -f conftest.$ac_objext
7059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7060 (eval $ac_compile) 2>conftest.er1
7062 grep -v '^ *+' conftest.er1 >conftest.err
7064 cat conftest.err >&5
7065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066 (exit $ac_status); } &&
7067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); }; } &&
7073 { ac_try='test -s conftest.$ac_objext'
7074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078 (exit $ac_status); }; }; then
7081 cat >conftest.$ac_ext <<_ACEOF
7084 cat confdefs.h >>conftest.$ac_ext
7085 cat >>conftest.$ac_ext <<_ACEOF
7086 /* end confdefs.h. */
7087 $ac_includes_default
7091 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
7098 rm -f conftest.$ac_objext
7099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7100 (eval $ac_compile) 2>conftest.er1
7102 grep -v '^ *+' conftest.er1 >conftest.err
7104 cat conftest.err >&5
7105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106 (exit $ac_status); } &&
7107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112 (exit $ac_status); }; } &&
7113 { ac_try='test -s conftest.$ac_objext'
7114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118 (exit $ac_status); }; }; then
7119 ac_hi=$ac_mid; break
7121 echo "$as_me: failed program was:" >&5
7122 sed 's/^/| /' conftest.$ac_ext >&5
7124 ac_lo=`expr $ac_mid + 1`
7125 if test $ac_lo -le $ac_mid; then
7129 ac_mid=`expr 2 '*' $ac_mid + 1`
7131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7134 echo "$as_me: failed program was:" >&5
7135 sed 's/^/| /' conftest.$ac_ext >&5
7137 cat >conftest.$ac_ext <<_ACEOF
7140 cat confdefs.h >>conftest.$ac_ext
7141 cat >>conftest.$ac_ext <<_ACEOF
7142 /* end confdefs.h. */
7143 $ac_includes_default
7147 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
7154 rm -f conftest.$ac_objext
7155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7156 (eval $ac_compile) 2>conftest.er1
7158 grep -v '^ *+' conftest.er1 >conftest.err
7160 cat conftest.err >&5
7161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162 (exit $ac_status); } &&
7163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168 (exit $ac_status); }; } &&
7169 { ac_try='test -s conftest.$ac_objext'
7170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7174 (exit $ac_status); }; }; then
7177 cat >conftest.$ac_ext <<_ACEOF
7180 cat confdefs.h >>conftest.$ac_ext
7181 cat >>conftest.$ac_ext <<_ACEOF
7182 /* end confdefs.h. */
7183 $ac_includes_default
7187 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
7194 rm -f conftest.$ac_objext
7195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7196 (eval $ac_compile) 2>conftest.er1
7198 grep -v '^ *+' conftest.er1 >conftest.err
7200 cat conftest.err >&5
7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); } &&
7203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208 (exit $ac_status); }; } &&
7209 { ac_try='test -s conftest.$ac_objext'
7210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7214 (exit $ac_status); }; }; then
7215 ac_lo=$ac_mid; break
7217 echo "$as_me: failed program was:" >&5
7218 sed 's/^/| /' conftest.$ac_ext >&5
7220 ac_hi=`expr '(' $ac_mid ')' - 1`
7221 if test $ac_mid -le $ac_hi; then
7225 ac_mid=`expr 2 '*' $ac_mid`
7227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7230 echo "$as_me: failed program was:" >&5
7231 sed 's/^/| /' conftest.$ac_ext >&5
7235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7238 # Binary search between lo and hi bounds.
7239 while test "x$ac_lo" != "x$ac_hi"; do
7240 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7241 cat >conftest.$ac_ext <<_ACEOF
7244 cat confdefs.h >>conftest.$ac_ext
7245 cat >>conftest.$ac_ext <<_ACEOF
7246 /* end confdefs.h. */
7247 $ac_includes_default
7251 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
7258 rm -f conftest.$ac_objext
7259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7260 (eval $ac_compile) 2>conftest.er1
7262 grep -v '^ *+' conftest.er1 >conftest.err
7264 cat conftest.err >&5
7265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266 (exit $ac_status); } &&
7267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272 (exit $ac_status); }; } &&
7273 { ac_try='test -s conftest.$ac_objext'
7274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278 (exit $ac_status); }; }; then
7281 echo "$as_me: failed program was:" >&5
7282 sed 's/^/| /' conftest.$ac_ext >&5
7284 ac_lo=`expr '(' $ac_mid ')' + 1`
7286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7289 ?*) ac_cv_sizeof_long_long=$ac_lo;;
7290 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
7291 See \`config.log' for more details." >&5
7292 echo "$as_me: error: cannot compute sizeof (long long), 77
7293 See \`config.log' for more details." >&2;}
7294 { (exit 1); exit 1; }; } ;;
7297 if test "$cross_compiling" = yes; then
7298 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
7299 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
7300 { (exit 1); exit 1; }; }
7302 cat >conftest.$ac_ext <<_ACEOF
7305 cat confdefs.h >>conftest.$ac_ext
7306 cat >>conftest.$ac_ext <<_ACEOF
7307 /* end confdefs.h. */
7308 $ac_includes_default
7309 long longval () { return (long) (sizeof (long long)); }
7310 unsigned long ulongval () { return (long) (sizeof (long long)); }
7317 FILE *f = fopen ("conftest.val", "w");
7320 if (((long) (sizeof (long long))) < 0)
7322 long i = longval ();
7323 if (i != ((long) (sizeof (long long))))
7325 fprintf (f, "%ld\n", i);
7329 unsigned long i = ulongval ();
7330 if (i != ((long) (sizeof (long long))))
7332 fprintf (f, "%lu\n", i);
7334 exit (ferror (f) || fclose (f) != 0);
7340 rm -f conftest$ac_exeext
7341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7342 (eval $ac_link) 2>&5
7344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7345 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7350 (exit $ac_status); }; }; then
7351 ac_cv_sizeof_long_long=`cat conftest.val`
7353 echo "$as_me: program exited with status $ac_status" >&5
7354 echo "$as_me: failed program was:" >&5
7355 sed 's/^/| /' conftest.$ac_ext >&5
7358 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
7359 See \`config.log' for more details." >&5
7360 echo "$as_me: error: cannot compute sizeof (long long), 77
7361 See \`config.log' for more details." >&2;}
7362 { (exit 1); exit 1; }; }
7364 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7369 ac_cv_sizeof_long_long=0
7372 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
7373 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
7374 cat >>confdefs.h <<_ACEOF
7375 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7379 if test "$ac_cv_sizeof_int" = 2 ; then
7380 echo "$as_me:$LINENO: checking for int16_t" >&5
7381 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
7382 if test "${ac_cv_type_int16_t+set}" = set; then
7383 echo $ECHO_N "(cached) $ECHO_C" >&6
7385 cat >conftest.$ac_ext <<_ACEOF
7388 cat confdefs.h >>conftest.$ac_ext
7389 cat >>conftest.$ac_ext <<_ACEOF
7390 /* end confdefs.h. */
7391 $ac_includes_default
7397 if (sizeof (int16_t))
7403 rm -f conftest.$ac_objext
7404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7405 (eval $ac_compile) 2>conftest.er1
7407 grep -v '^ *+' conftest.er1 >conftest.err
7409 cat conftest.err >&5
7410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411 (exit $ac_status); } &&
7412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7417 (exit $ac_status); }; } &&
7418 { ac_try='test -s conftest.$ac_objext'
7419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423 (exit $ac_status); }; }; then
7424 ac_cv_type_int16_t=yes
7426 echo "$as_me: failed program was:" >&5
7427 sed 's/^/| /' conftest.$ac_ext >&5
7429 ac_cv_type_int16_t=no
7431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7433 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
7434 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
7435 if test $ac_cv_type_int16_t = yes; then
7439 cat >>confdefs.h <<_ACEOF
7445 echo "$as_me:$LINENO: checking for uint16_t" >&5
7446 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
7447 if test "${ac_cv_type_uint16_t+set}" = set; then
7448 echo $ECHO_N "(cached) $ECHO_C" >&6
7450 cat >conftest.$ac_ext <<_ACEOF
7453 cat confdefs.h >>conftest.$ac_ext
7454 cat >>conftest.$ac_ext <<_ACEOF
7455 /* end confdefs.h. */
7456 $ac_includes_default
7462 if (sizeof (uint16_t))
7468 rm -f conftest.$ac_objext
7469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7470 (eval $ac_compile) 2>conftest.er1
7472 grep -v '^ *+' conftest.er1 >conftest.err
7474 cat conftest.err >&5
7475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476 (exit $ac_status); } &&
7477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482 (exit $ac_status); }; } &&
7483 { ac_try='test -s conftest.$ac_objext'
7484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488 (exit $ac_status); }; }; then
7489 ac_cv_type_uint16_t=yes
7491 echo "$as_me: failed program was:" >&5
7492 sed 's/^/| /' conftest.$ac_ext >&5
7494 ac_cv_type_uint16_t=no
7496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7498 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
7499 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
7500 if test $ac_cv_type_uint16_t = yes; then
7504 cat >>confdefs.h <<_ACEOF
7505 #define uint16_t unsigned int
7510 elif test "$ac_cv_sizeof_short" = 2 ; then
7511 echo "$as_me:$LINENO: checking for int16_t" >&5
7512 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
7513 if test "${ac_cv_type_int16_t+set}" = set; then
7514 echo $ECHO_N "(cached) $ECHO_C" >&6
7516 cat >conftest.$ac_ext <<_ACEOF
7519 cat confdefs.h >>conftest.$ac_ext
7520 cat >>conftest.$ac_ext <<_ACEOF
7521 /* end confdefs.h. */
7522 $ac_includes_default
7528 if (sizeof (int16_t))
7534 rm -f conftest.$ac_objext
7535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7536 (eval $ac_compile) 2>conftest.er1
7538 grep -v '^ *+' conftest.er1 >conftest.err
7540 cat conftest.err >&5
7541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); } &&
7543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548 (exit $ac_status); }; } &&
7549 { ac_try='test -s conftest.$ac_objext'
7550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554 (exit $ac_status); }; }; then
7555 ac_cv_type_int16_t=yes
7557 echo "$as_me: failed program was:" >&5
7558 sed 's/^/| /' conftest.$ac_ext >&5
7560 ac_cv_type_int16_t=no
7562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7564 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
7565 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
7566 if test $ac_cv_type_int16_t = yes; then
7570 cat >>confdefs.h <<_ACEOF
7571 #define int16_t short
7576 echo "$as_me:$LINENO: checking for uint16_t" >&5
7577 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
7578 if test "${ac_cv_type_uint16_t+set}" = set; then
7579 echo $ECHO_N "(cached) $ECHO_C" >&6
7581 cat >conftest.$ac_ext <<_ACEOF
7584 cat confdefs.h >>conftest.$ac_ext
7585 cat >>conftest.$ac_ext <<_ACEOF
7586 /* end confdefs.h. */
7587 $ac_includes_default
7593 if (sizeof (uint16_t))
7599 rm -f conftest.$ac_objext
7600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7601 (eval $ac_compile) 2>conftest.er1
7603 grep -v '^ *+' conftest.er1 >conftest.err
7605 cat conftest.err >&5
7606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607 (exit $ac_status); } &&
7608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613 (exit $ac_status); }; } &&
7614 { ac_try='test -s conftest.$ac_objext'
7615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619 (exit $ac_status); }; }; then
7620 ac_cv_type_uint16_t=yes
7622 echo "$as_me: failed program was:" >&5
7623 sed 's/^/| /' conftest.$ac_ext >&5
7625 ac_cv_type_uint16_t=no
7627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7629 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
7630 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
7631 if test $ac_cv_type_uint16_t = yes; then
7635 cat >>confdefs.h <<_ACEOF
7636 #define uint16_t unsigned short
7642 { { echo "$as_me:$LINENO: error: Cannot find a type with size of 16 bits" >&5
7643 echo "$as_me: error: Cannot find a type with size of 16 bits" >&2;}
7644 { (exit 1); exit 1; }; }
7646 if test "$ac_cv_sizeof_int" = 4 ; then
7647 echo "$as_me:$LINENO: checking for int32_t" >&5
7648 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
7649 if test "${ac_cv_type_int32_t+set}" = set; then
7650 echo $ECHO_N "(cached) $ECHO_C" >&6
7652 cat >conftest.$ac_ext <<_ACEOF
7655 cat confdefs.h >>conftest.$ac_ext
7656 cat >>conftest.$ac_ext <<_ACEOF
7657 /* end confdefs.h. */
7658 $ac_includes_default
7664 if (sizeof (int32_t))
7670 rm -f conftest.$ac_objext
7671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7672 (eval $ac_compile) 2>conftest.er1
7674 grep -v '^ *+' conftest.er1 >conftest.err
7676 cat conftest.err >&5
7677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678 (exit $ac_status); } &&
7679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7684 (exit $ac_status); }; } &&
7685 { ac_try='test -s conftest.$ac_objext'
7686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690 (exit $ac_status); }; }; then
7691 ac_cv_type_int32_t=yes
7693 echo "$as_me: failed program was:" >&5
7694 sed 's/^/| /' conftest.$ac_ext >&5
7696 ac_cv_type_int32_t=no
7698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7700 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
7701 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
7702 if test $ac_cv_type_int32_t = yes; then
7706 cat >>confdefs.h <<_ACEOF
7712 echo "$as_me:$LINENO: checking for uint32_t" >&5
7713 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
7714 if test "${ac_cv_type_uint32_t+set}" = set; then
7715 echo $ECHO_N "(cached) $ECHO_C" >&6
7717 cat >conftest.$ac_ext <<_ACEOF
7720 cat confdefs.h >>conftest.$ac_ext
7721 cat >>conftest.$ac_ext <<_ACEOF
7722 /* end confdefs.h. */
7723 $ac_includes_default
7729 if (sizeof (uint32_t))
7735 rm -f conftest.$ac_objext
7736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7737 (eval $ac_compile) 2>conftest.er1
7739 grep -v '^ *+' conftest.er1 >conftest.err
7741 cat conftest.err >&5
7742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743 (exit $ac_status); } &&
7744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749 (exit $ac_status); }; } &&
7750 { ac_try='test -s conftest.$ac_objext'
7751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); }; }; then
7756 ac_cv_type_uint32_t=yes
7758 echo "$as_me: failed program was:" >&5
7759 sed 's/^/| /' conftest.$ac_ext >&5
7761 ac_cv_type_uint32_t=no
7763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7765 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
7766 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
7767 if test $ac_cv_type_uint32_t = yes; then
7771 cat >>confdefs.h <<_ACEOF
7772 #define uint32_t unsigned int
7777 elif test "$ac_cv_sizeof_short" = 4 ; then
7778 echo "$as_me:$LINENO: checking for int32_t" >&5
7779 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
7780 if test "${ac_cv_type_int32_t+set}" = set; then
7781 echo $ECHO_N "(cached) $ECHO_C" >&6
7783 cat >conftest.$ac_ext <<_ACEOF
7786 cat confdefs.h >>conftest.$ac_ext
7787 cat >>conftest.$ac_ext <<_ACEOF
7788 /* end confdefs.h. */
7789 $ac_includes_default
7795 if (sizeof (int32_t))
7801 rm -f conftest.$ac_objext
7802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7803 (eval $ac_compile) 2>conftest.er1
7805 grep -v '^ *+' conftest.er1 >conftest.err
7807 cat conftest.err >&5
7808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7809 (exit $ac_status); } &&
7810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7815 (exit $ac_status); }; } &&
7816 { ac_try='test -s conftest.$ac_objext'
7817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7821 (exit $ac_status); }; }; then
7822 ac_cv_type_int32_t=yes
7824 echo "$as_me: failed program was:" >&5
7825 sed 's/^/| /' conftest.$ac_ext >&5
7827 ac_cv_type_int32_t=no
7829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7831 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
7832 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
7833 if test $ac_cv_type_int32_t = yes; then
7837 cat >>confdefs.h <<_ACEOF
7838 #define int32_t short
7843 echo "$as_me:$LINENO: checking for uint32_t" >&5
7844 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
7845 if test "${ac_cv_type_uint32_t+set}" = set; then
7846 echo $ECHO_N "(cached) $ECHO_C" >&6
7848 cat >conftest.$ac_ext <<_ACEOF
7851 cat confdefs.h >>conftest.$ac_ext
7852 cat >>conftest.$ac_ext <<_ACEOF
7853 /* end confdefs.h. */
7854 $ac_includes_default
7860 if (sizeof (uint32_t))
7866 rm -f conftest.$ac_objext
7867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7868 (eval $ac_compile) 2>conftest.er1
7870 grep -v '^ *+' conftest.er1 >conftest.err
7872 cat conftest.err >&5
7873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874 (exit $ac_status); } &&
7875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880 (exit $ac_status); }; } &&
7881 { ac_try='test -s conftest.$ac_objext'
7882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886 (exit $ac_status); }; }; then
7887 ac_cv_type_uint32_t=yes
7889 echo "$as_me: failed program was:" >&5
7890 sed 's/^/| /' conftest.$ac_ext >&5
7892 ac_cv_type_uint32_t=no
7894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7896 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
7897 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
7898 if test $ac_cv_type_uint32_t = yes; then
7902 cat >>confdefs.h <<_ACEOF
7903 #define uint32_t unsigned short
7908 elif test "$ac_cv_sizeof_long" = 4 ; then
7909 echo "$as_me:$LINENO: checking for int32_t" >&5
7910 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
7911 if test "${ac_cv_type_int32_t+set}" = set; then
7912 echo $ECHO_N "(cached) $ECHO_C" >&6
7914 cat >conftest.$ac_ext <<_ACEOF
7917 cat confdefs.h >>conftest.$ac_ext
7918 cat >>conftest.$ac_ext <<_ACEOF
7919 /* end confdefs.h. */
7920 $ac_includes_default
7926 if (sizeof (int32_t))
7932 rm -f conftest.$ac_objext
7933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7934 (eval $ac_compile) 2>conftest.er1
7936 grep -v '^ *+' conftest.er1 >conftest.err
7938 cat conftest.err >&5
7939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940 (exit $ac_status); } &&
7941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946 (exit $ac_status); }; } &&
7947 { ac_try='test -s conftest.$ac_objext'
7948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); }; }; then
7953 ac_cv_type_int32_t=yes
7955 echo "$as_me: failed program was:" >&5
7956 sed 's/^/| /' conftest.$ac_ext >&5
7958 ac_cv_type_int32_t=no
7960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7962 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
7963 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
7964 if test $ac_cv_type_int32_t = yes; then
7968 cat >>confdefs.h <<_ACEOF
7969 #define int32_t long
7974 echo "$as_me:$LINENO: checking for uint32_t" >&5
7975 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
7976 if test "${ac_cv_type_uint32_t+set}" = set; then
7977 echo $ECHO_N "(cached) $ECHO_C" >&6
7979 cat >conftest.$ac_ext <<_ACEOF
7982 cat confdefs.h >>conftest.$ac_ext
7983 cat >>conftest.$ac_ext <<_ACEOF
7984 /* end confdefs.h. */
7985 $ac_includes_default
7991 if (sizeof (uint32_t))
7997 rm -f conftest.$ac_objext
7998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7999 (eval $ac_compile) 2>conftest.er1
8001 grep -v '^ *+' conftest.er1 >conftest.err
8003 cat conftest.err >&5
8004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005 (exit $ac_status); } &&
8006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011 (exit $ac_status); }; } &&
8012 { ac_try='test -s conftest.$ac_objext'
8013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017 (exit $ac_status); }; }; then
8018 ac_cv_type_uint32_t=yes
8020 echo "$as_me: failed program was:" >&5
8021 sed 's/^/| /' conftest.$ac_ext >&5
8023 ac_cv_type_uint32_t=no
8025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8027 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
8028 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
8029 if test $ac_cv_type_uint32_t = yes; then
8033 cat >>confdefs.h <<_ACEOF
8034 #define uint32_t unsigned long
8040 { { echo "$as_me:$LINENO: error: Cannot find a type with size of 32 bits" >&5
8041 echo "$as_me: error: Cannot find a type with size of 32 bits" >&2;}
8042 { (exit 1); exit 1; }; }
8044 if test "$ac_cv_sizeof_int64_t" = 8 ; then
8045 echo "$as_me:$LINENO: checking for int64_t" >&5
8046 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
8047 if test "${ac_cv_type_int64_t+set}" = set; then
8048 echo $ECHO_N "(cached) $ECHO_C" >&6
8050 cat >conftest.$ac_ext <<_ACEOF
8053 cat confdefs.h >>conftest.$ac_ext
8054 cat >>conftest.$ac_ext <<_ACEOF
8055 /* end confdefs.h. */
8056 $ac_includes_default
8062 if (sizeof (int64_t))
8068 rm -f conftest.$ac_objext
8069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8070 (eval $ac_compile) 2>conftest.er1
8072 grep -v '^ *+' conftest.er1 >conftest.err
8074 cat conftest.err >&5
8075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); } &&
8077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); }; } &&
8083 { ac_try='test -s conftest.$ac_objext'
8084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088 (exit $ac_status); }; }; then
8089 ac_cv_type_int64_t=yes
8091 echo "$as_me: failed program was:" >&5
8092 sed 's/^/| /' conftest.$ac_ext >&5
8094 ac_cv_type_int64_t=no
8096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8098 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
8099 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
8101 echo "$as_me:$LINENO: checking for uint64_t" >&5
8102 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
8103 if test "${ac_cv_type_uint64_t+set}" = set; then
8104 echo $ECHO_N "(cached) $ECHO_C" >&6
8106 cat >conftest.$ac_ext <<_ACEOF
8109 cat confdefs.h >>conftest.$ac_ext
8110 cat >>conftest.$ac_ext <<_ACEOF
8111 /* end confdefs.h. */
8112 $ac_includes_default
8118 if (sizeof (uint64_t))
8124 rm -f conftest.$ac_objext
8125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8126 (eval $ac_compile) 2>conftest.er1
8128 grep -v '^ *+' conftest.er1 >conftest.err
8130 cat conftest.err >&5
8131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132 (exit $ac_status); } &&
8133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); }; } &&
8139 { ac_try='test -s conftest.$ac_objext'
8140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144 (exit $ac_status); }; }; then
8145 ac_cv_type_uint64_t=yes
8147 echo "$as_me: failed program was:" >&5
8148 sed 's/^/| /' conftest.$ac_ext >&5
8150 ac_cv_type_uint64_t=no
8152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8154 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
8155 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
8157 elif test "$ac_cv_sizeof_long_long" = 8 ; then
8158 echo "$as_me:$LINENO: checking for int64_t" >&5
8159 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
8160 if test "${ac_cv_type_int64_t+set}" = set; then
8161 echo $ECHO_N "(cached) $ECHO_C" >&6
8163 cat >conftest.$ac_ext <<_ACEOF
8166 cat confdefs.h >>conftest.$ac_ext
8167 cat >>conftest.$ac_ext <<_ACEOF
8168 /* end confdefs.h. */
8169 $ac_includes_default
8175 if (sizeof (int64_t))
8181 rm -f conftest.$ac_objext
8182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8183 (eval $ac_compile) 2>conftest.er1
8185 grep -v '^ *+' conftest.er1 >conftest.err
8187 cat conftest.err >&5
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); } &&
8190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195 (exit $ac_status); }; } &&
8196 { ac_try='test -s conftest.$ac_objext'
8197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201 (exit $ac_status); }; }; then
8202 ac_cv_type_int64_t=yes
8204 echo "$as_me: failed program was:" >&5
8205 sed 's/^/| /' conftest.$ac_ext >&5
8207 ac_cv_type_int64_t=no
8209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8211 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
8212 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
8213 if test $ac_cv_type_int64_t = yes; then
8217 cat >>confdefs.h <<_ACEOF
8218 #define int64_t long long
8223 echo "$as_me:$LINENO: checking for uint64_t" >&5
8224 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
8225 if test "${ac_cv_type_uint64_t+set}" = set; then
8226 echo $ECHO_N "(cached) $ECHO_C" >&6
8228 cat >conftest.$ac_ext <<_ACEOF
8231 cat confdefs.h >>conftest.$ac_ext
8232 cat >>conftest.$ac_ext <<_ACEOF
8233 /* end confdefs.h. */
8234 $ac_includes_default
8240 if (sizeof (uint64_t))
8246 rm -f conftest.$ac_objext
8247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8248 (eval $ac_compile) 2>conftest.er1
8250 grep -v '^ *+' conftest.er1 >conftest.err
8252 cat conftest.err >&5
8253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254 (exit $ac_status); } &&
8255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260 (exit $ac_status); }; } &&
8261 { ac_try='test -s conftest.$ac_objext'
8262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266 (exit $ac_status); }; }; then
8267 ac_cv_type_uint64_t=yes
8269 echo "$as_me: failed program was:" >&5
8270 sed 's/^/| /' conftest.$ac_ext >&5
8272 ac_cv_type_uint64_t=no
8274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8276 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
8277 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
8278 if test $ac_cv_type_uint64_t = yes; then
8282 cat >>confdefs.h <<_ACEOF
8283 #define uint64_t unsigned long long
8289 { { echo "$as_me:$LINENO: error: Cannot find a type with size of 64 bits" >&5
8290 echo "$as_me: error: Cannot find a type with size of 64 bits" >&2;}
8291 { (exit 1); exit 1; }; }
8293 echo "$as_me:$LINENO: checking for socklen_t" >&5
8294 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
8295 if test "${ac_cv_type_socklen_t+set}" = set; then
8296 echo $ECHO_N "(cached) $ECHO_C" >&6
8298 cat >conftest.$ac_ext <<_ACEOF
8301 cat confdefs.h >>conftest.$ac_ext
8302 cat >>conftest.$ac_ext <<_ACEOF
8303 /* end confdefs.h. */
8304 $ac_includes_default
8308 if ((socklen_t *) 0)
8310 if (sizeof (socklen_t))
8316 rm -f conftest.$ac_objext
8317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8318 (eval $ac_compile) 2>conftest.er1
8320 grep -v '^ *+' conftest.er1 >conftest.err
8322 cat conftest.err >&5
8323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324 (exit $ac_status); } &&
8325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330 (exit $ac_status); }; } &&
8331 { ac_try='test -s conftest.$ac_objext'
8332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336 (exit $ac_status); }; }; then
8337 ac_cv_type_socklen_t=yes
8339 echo "$as_me: failed program was:" >&5
8340 sed 's/^/| /' conftest.$ac_ext >&5
8342 ac_cv_type_socklen_t=no
8344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8346 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
8347 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
8348 if test $ac_cv_type_socklen_t = yes; then
8352 cat >>confdefs.h <<_ACEOF
8353 #define socklen_t unsigned int
8358 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
8359 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
8360 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
8361 echo $ECHO_N "(cached) $ECHO_C" >&6
8363 cat >conftest.$ac_ext <<_ACEOF
8366 cat confdefs.h >>conftest.$ac_ext
8367 cat >>conftest.$ac_ext <<_ACEOF
8368 /* end confdefs.h. */
8369 #include <sys/types.h>
8370 #include <netinet/in.h>
8375 if ((struct sockaddr_in6 *) 0)
8377 if (sizeof (struct sockaddr_in6))
8383 rm -f conftest.$ac_objext
8384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8385 (eval $ac_compile) 2>conftest.er1
8387 grep -v '^ *+' conftest.er1 >conftest.err
8389 cat conftest.err >&5
8390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391 (exit $ac_status); } &&
8392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397 (exit $ac_status); }; } &&
8398 { ac_try='test -s conftest.$ac_objext'
8399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); }; }; then
8404 ac_cv_type_struct_sockaddr_in6=yes
8406 echo "$as_me: failed program was:" >&5
8407 sed 's/^/| /' conftest.$ac_ext >&5
8409 ac_cv_type_struct_sockaddr_in6=no
8411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8413 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
8414 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
8415 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
8416 unet_have_sockaddr_in6="yes"
8418 unet_have_sockaddr_in6="no"
8426 for ac_func in kqueue setrlimit getrusage times
8428 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8429 echo "$as_me:$LINENO: checking for $ac_func" >&5
8430 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8431 if eval "test \"\${$as_ac_var+set}\" = set"; then
8432 echo $ECHO_N "(cached) $ECHO_C" >&6
8434 cat >conftest.$ac_ext <<_ACEOF
8437 cat confdefs.h >>conftest.$ac_ext
8438 cat >>conftest.$ac_ext <<_ACEOF
8439 /* end confdefs.h. */
8440 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8441 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8442 #define $ac_func innocuous_$ac_func
8444 /* System header to define __stub macros and hopefully few prototypes,
8445 which can conflict with char $ac_func (); below.
8446 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8447 <limits.h> exists even on freestanding compilers. */
8450 # include <limits.h>
8452 # include <assert.h>
8457 /* Override any gcc2 internal prototype to avoid an error. */
8462 /* We use char because int might match the return type of a gcc2
8463 builtin and then its argument prototype would still apply. */
8465 /* The GNU C library defines this for functions which it implements
8466 to always fail with ENOSYS. Some functions are actually named
8467 something starting with __ and the normal name is an alias. */
8468 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8471 char (*f) () = $ac_func;
8480 return f != $ac_func;
8485 rm -f conftest.$ac_objext conftest$ac_exeext
8486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8487 (eval $ac_link) 2>conftest.er1
8489 grep -v '^ *+' conftest.er1 >conftest.err
8491 cat conftest.err >&5
8492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); } &&
8494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); }; } &&
8500 { ac_try='test -s conftest$ac_exeext'
8501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); }; }; then
8506 eval "$as_ac_var=yes"
8508 echo "$as_me: failed program was:" >&5
8509 sed 's/^/| /' conftest.$ac_ext >&5
8511 eval "$as_ac_var=no"
8513 rm -f conftest.err conftest.$ac_objext \
8514 conftest$ac_exeext conftest.$ac_ext
8516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8517 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8518 if test `eval echo '${'$as_ac_var'}'` = yes; then
8519 cat >>confdefs.h <<_ACEOF
8520 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8527 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8528 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8529 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8530 echo $ECHO_N "(cached) $ECHO_C" >&6
8532 cat >conftest.$ac_ext <<_ACEOF
8535 cat confdefs.h >>conftest.$ac_ext
8536 cat >>conftest.$ac_ext <<_ACEOF
8537 /* end confdefs.h. */
8538 #include <sys/types.h>
8539 #include <sys/wait.h>
8541 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8544 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8552 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8557 rm -f conftest.$ac_objext
8558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8559 (eval $ac_compile) 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_objext'
8573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577 (exit $ac_status); }; }; then
8578 ac_cv_header_sys_wait_h=yes
8580 echo "$as_me: failed program was:" >&5
8581 sed 's/^/| /' conftest.$ac_ext >&5
8583 ac_cv_header_sys_wait_h=no
8585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8587 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8588 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8589 if test $ac_cv_header_sys_wait_h = yes; then
8591 cat >>confdefs.h <<\_ACEOF
8592 #define HAVE_SYS_WAIT_H 1
8598 for ac_header in unistd.h
8600 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8602 echo "$as_me:$LINENO: checking for $ac_header" >&5
8603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8605 echo $ECHO_N "(cached) $ECHO_C" >&6
8607 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8608 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8610 # Is the header compilable?
8611 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8612 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8613 cat >conftest.$ac_ext <<_ACEOF
8616 cat confdefs.h >>conftest.$ac_ext
8617 cat >>conftest.$ac_ext <<_ACEOF
8618 /* end confdefs.h. */
8619 $ac_includes_default
8620 #include <$ac_header>
8622 rm -f conftest.$ac_objext
8623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8624 (eval $ac_compile) 2>conftest.er1
8626 grep -v '^ *+' conftest.er1 >conftest.err
8628 cat conftest.err >&5
8629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630 (exit $ac_status); } &&
8631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); }; } &&
8637 { ac_try='test -s conftest.$ac_objext'
8638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642 (exit $ac_status); }; }; then
8643 ac_header_compiler=yes
8645 echo "$as_me: failed program was:" >&5
8646 sed 's/^/| /' conftest.$ac_ext >&5
8648 ac_header_compiler=no
8650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8651 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8652 echo "${ECHO_T}$ac_header_compiler" >&6
8654 # Is the header present?
8655 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8656 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8657 cat >conftest.$ac_ext <<_ACEOF
8660 cat confdefs.h >>conftest.$ac_ext
8661 cat >>conftest.$ac_ext <<_ACEOF
8662 /* end confdefs.h. */
8663 #include <$ac_header>
8665 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8666 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8668 grep -v '^ *+' conftest.er1 >conftest.err
8670 cat conftest.err >&5
8671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672 (exit $ac_status); } >/dev/null; then
8673 if test -s conftest.err; then
8674 ac_cpp_err=$ac_c_preproc_warn_flag
8675 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8682 if test -z "$ac_cpp_err"; then
8683 ac_header_preproc=yes
8685 echo "$as_me: failed program was:" >&5
8686 sed 's/^/| /' conftest.$ac_ext >&5
8688 ac_header_preproc=no
8690 rm -f conftest.err conftest.$ac_ext
8691 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8692 echo "${ECHO_T}$ac_header_preproc" >&6
8694 # So? What about this header?
8695 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8697 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8698 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8699 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8700 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8701 ac_header_preproc=yes
8704 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8705 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8706 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8707 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8708 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8709 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8710 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8711 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8713 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8714 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8715 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8718 ## ------------------------------------------ ##
8719 ## Report this to the AC_PACKAGE_NAME lists. ##
8720 ## ------------------------------------------ ##
8723 sed "s/^/$as_me: WARNING: /" >&2
8726 echo "$as_me:$LINENO: checking for $ac_header" >&5
8727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8728 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8729 echo $ECHO_N "(cached) $ECHO_C" >&6
8731 eval "$as_ac_Header=\$ac_header_preproc"
8733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8734 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8737 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8738 cat >>confdefs.h <<_ACEOF
8739 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8746 echo "$as_me:$LINENO: checking for restartable system calls" >&5
8747 echo $ECHO_N "checking for restartable system calls... $ECHO_C" >&6
8748 if test "${ac_cv_sys_restartable_syscalls+set}" = set; then
8749 echo $ECHO_N "(cached) $ECHO_C" >&6
8751 if test "$cross_compiling" = yes; then
8752 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8753 See \`config.log' for more details." >&5
8754 echo "$as_me: error: cannot run test program while cross compiling
8755 See \`config.log' for more details." >&2;}
8756 { (exit 1); exit 1; }; }
8758 cat >conftest.$ac_ext <<_ACEOF
8761 cat confdefs.h >>conftest.$ac_ext
8762 cat >>conftest.$ac_ext <<_ACEOF
8763 /* end confdefs.h. */
8764 /* Exit 0 (true) if wait returns something other than -1,
8765 i.e. the pid of the child, which means that wait was restarted
8766 after getting the signal. */
8768 #include <sys/types.h>
8771 # include <unistd.h>
8774 # include <sys/wait.h>
8777 /* Some platforms explicitly require an extern "C" signal handler
8780 extern "C" void ucatch (int dummy) { }
8782 void ucatch (dummy) int dummy; { }
8788 int i = fork (), status;
8793 kill (getppid (), SIGINT);
8798 signal (SIGINT, ucatch);
8804 exit (status == -1);
8807 rm -f conftest$ac_exeext
8808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8809 (eval $ac_link) 2>&5
8811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817 (exit $ac_status); }; }; then
8818 ac_cv_sys_restartable_syscalls=yes
8820 echo "$as_me: program exited with status $ac_status" >&5
8821 echo "$as_me: failed program was:" >&5
8822 sed 's/^/| /' conftest.$ac_ext >&5
8825 ac_cv_sys_restartable_syscalls=no
8827 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8830 echo "$as_me:$LINENO: result: $ac_cv_sys_restartable_syscalls" >&5
8831 echo "${ECHO_T}$ac_cv_sys_restartable_syscalls" >&6
8832 if test $ac_cv_sys_restartable_syscalls = yes; then
8834 cat >>confdefs.h <<\_ACEOF
8835 #define HAVE_RESTARTABLE_SYSCALLS 1
8841 echo "$as_me:$LINENO: checking for donuts" >&5
8842 echo $ECHO_N "checking for donuts... $ECHO_C" >&6
8843 echo "$as_me:$LINENO: result: yes" >&5
8844 echo "${ECHO_T}yes" >&6
8846 for ac_prog in gawk mawk nawk awk
8848 # Extract the first word of "$ac_prog", so it can be a program name with args.
8849 set dummy $ac_prog; ac_word=$2
8850 echo "$as_me:$LINENO: checking for $ac_word" >&5
8851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8852 if test "${ac_cv_prog_AWK+set}" = set; then
8853 echo $ECHO_N "(cached) $ECHO_C" >&6
8855 if test -n "$AWK"; then
8856 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8862 test -z "$as_dir" && as_dir=.
8863 for ac_exec_ext in '' $ac_executable_extensions; do
8864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8865 ac_cv_prog_AWK="$ac_prog"
8866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8875 if test -n "$AWK"; then
8876 echo "$as_me:$LINENO: result: $AWK" >&5
8877 echo "${ECHO_T}$AWK" >&6
8879 echo "$as_me:$LINENO: result: no" >&5
8880 echo "${ECHO_T}no" >&6
8883 test -n "$AWK" && break
8886 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8887 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8888 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
8889 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8890 echo $ECHO_N "(cached) $ECHO_C" >&6
8892 cat >conftest.make <<\_ACEOF
8894 @echo 'ac_maketemp="$(MAKE)"'
8896 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8897 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8898 if test -n "$ac_maketemp"; then
8899 eval ac_cv_prog_make_${ac_make}_set=yes
8901 eval ac_cv_prog_make_${ac_make}_set=no
8905 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8906 echo "$as_me:$LINENO: result: yes" >&5
8907 echo "${ECHO_T}yes" >&6
8910 echo "$as_me:$LINENO: result: no" >&5
8911 echo "${ECHO_T}no" >&6
8912 SET_MAKE="MAKE=${MAKE-make}"
8915 # Find a good install program. We prefer a C program (faster),
8916 # so one script is as good as another. But avoid the broken or
8917 # incompatible versions:
8918 # SysV /etc/install, /usr/sbin/install
8919 # SunOS /usr/etc/install
8920 # IRIX /sbin/install
8922 # AmigaOS /C/install, which installs bootblocks on floppy discs
8923 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8924 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8925 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8926 # OS/2's system install, which has a completely different semantic
8927 # ./install, which can be erroneously created by make from ./install.sh.
8928 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8929 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8930 if test -z "$INSTALL"; then
8931 if test "${ac_cv_path_install+set}" = set; then
8932 echo $ECHO_N "(cached) $ECHO_C" >&6
8934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8938 test -z "$as_dir" && as_dir=.
8939 # Account for people who put trailing slashes in PATH elements.
8941 ./ | .// | /cC/* | \
8942 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8943 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8946 # OSF1 and SCO ODT 3.0 have their own names for install.
8947 # Don't use installbsd from OSF since it installs stuff as root
8949 for ac_prog in ginstall scoinst install; do
8950 for ac_exec_ext in '' $ac_executable_extensions; do
8951 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8952 if test $ac_prog = install &&
8953 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8954 # AIX install. It has an incompatible calling convention.
8956 elif test $ac_prog = install &&
8957 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8958 # program-specific install script used by HP pwplus--don't use.
8961 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8973 if test "${ac_cv_path_install+set}" = set; then
8974 INSTALL=$ac_cv_path_install
8976 # As a last resort, use the slow shell script. We don't cache a
8977 # path for INSTALL within a source directory, because that will
8978 # break other packages using the cache if that directory is
8979 # removed, or if the path is relative.
8980 INSTALL=$ac_install_sh
8983 echo "$as_me:$LINENO: result: $INSTALL" >&5
8984 echo "${ECHO_T}$INSTALL" >&6
8986 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8987 # It thinks the first close brace ends the variable substitution.
8988 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8990 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8992 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8994 echo "$as_me:$LINENO: checking whether ln -s works" >&5
8995 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8997 if test "$LN_S" = "ln -s"; then
8998 echo "$as_me:$LINENO: result: yes" >&5
8999 echo "${ECHO_T}yes" >&6
9001 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
9002 echo "${ECHO_T}no, using $LN_S" >&6
9007 # Extract the first word of "$ac_prog", so it can be a program name with args.
9008 set dummy $ac_prog; ac_word=$2
9009 echo "$as_me:$LINENO: checking for $ac_word" >&5
9010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9011 if test "${ac_cv_path_RMPROG+set}" = set; then
9012 echo $ECHO_N "(cached) $ECHO_C" >&6
9016 ac_cv_path_RMPROG="$RMPROG" # Let the user override the test with a path.
9019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9023 test -z "$as_dir" && as_dir=.
9024 for ac_exec_ext in '' $ac_executable_extensions; do
9025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9026 ac_cv_path_RMPROG="$as_dir/$ac_word$ac_exec_ext"
9027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9036 RMPROG=$ac_cv_path_RMPROG
9038 if test -n "$RMPROG"; then
9039 echo "$as_me:$LINENO: result: $RMPROG" >&5
9040 echo "${ECHO_T}$RMPROG" >&6
9042 echo "$as_me:$LINENO: result: no" >&5
9043 echo "${ECHO_T}no" >&6
9046 test -n "$RMPROG" && break
9048 test -n "$RMPROG" || RMPROG="/bin/rm"
9052 # Extract the first word of "$ac_prog", so it can be a program name with args.
9053 set dummy $ac_prog; ac_word=$2
9054 echo "$as_me:$LINENO: checking for $ac_word" >&5
9055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9056 if test "${ac_cv_path_SHPROG+set}" = set; then
9057 echo $ECHO_N "(cached) $ECHO_C" >&6
9061 ac_cv_path_SHPROG="$SHPROG" # Let the user override the test with a path.
9064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9068 test -z "$as_dir" && as_dir=.
9069 for ac_exec_ext in '' $ac_executable_extensions; do
9070 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9071 ac_cv_path_SHPROG="$as_dir/$ac_word$ac_exec_ext"
9072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9081 SHPROG=$ac_cv_path_SHPROG
9083 if test -n "$SHPROG"; then
9084 echo "$as_me:$LINENO: result: $SHPROG" >&5
9085 echo "${ECHO_T}$SHPROG" >&6
9087 echo "$as_me:$LINENO: result: no" >&5
9088 echo "${ECHO_T}no" >&6
9091 test -n "$SHPROG" && break
9093 test -n "$SHPROG" || SHPROG="/bin/sh"
9096 for ac_prog in flex lex
9098 # Extract the first word of "$ac_prog", so it can be a program name with args.
9099 set dummy $ac_prog; ac_word=$2
9100 echo "$as_me:$LINENO: checking for $ac_word" >&5
9101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9102 if test "${ac_cv_prog_LEX+set}" = set; then
9103 echo $ECHO_N "(cached) $ECHO_C" >&6
9105 if test -n "$LEX"; then
9106 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9112 test -z "$as_dir" && as_dir=.
9113 for ac_exec_ext in '' $ac_executable_extensions; do
9114 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9115 ac_cv_prog_LEX="$ac_prog"
9116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9125 if test -n "$LEX"; then
9126 echo "$as_me:$LINENO: result: $LEX" >&5
9127 echo "${ECHO_T}$LEX" >&6
9129 echo "$as_me:$LINENO: result: no" >&5
9130 echo "${ECHO_T}no" >&6
9133 test -n "$LEX" && break
9135 test -n "$LEX" || LEX=":"
9137 if test -z "$LEXLIB"
9139 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
9140 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
9141 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
9142 echo $ECHO_N "(cached) $ECHO_C" >&6
9144 ac_check_lib_save_LIBS=$LIBS
9146 cat >conftest.$ac_ext <<_ACEOF
9149 cat confdefs.h >>conftest.$ac_ext
9150 cat >>conftest.$ac_ext <<_ACEOF
9151 /* end confdefs.h. */
9153 /* Override any gcc2 internal prototype to avoid an error. */
9157 /* We use char because int might match the return type of a gcc2
9158 builtin and then its argument prototype would still apply. */
9168 rm -f conftest.$ac_objext conftest$ac_exeext
9169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9170 (eval $ac_link) 2>conftest.er1
9172 grep -v '^ *+' conftest.er1 >conftest.err
9174 cat conftest.err >&5
9175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9176 (exit $ac_status); } &&
9177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182 (exit $ac_status); }; } &&
9183 { ac_try='test -s conftest$ac_exeext'
9184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188 (exit $ac_status); }; }; then
9189 ac_cv_lib_fl_yywrap=yes
9191 echo "$as_me: failed program was:" >&5
9192 sed 's/^/| /' conftest.$ac_ext >&5
9194 ac_cv_lib_fl_yywrap=no
9196 rm -f conftest.err conftest.$ac_objext \
9197 conftest$ac_exeext conftest.$ac_ext
9198 LIBS=$ac_check_lib_save_LIBS
9200 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
9201 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
9202 if test $ac_cv_lib_fl_yywrap = yes; then
9205 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
9206 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
9207 if test "${ac_cv_lib_l_yywrap+set}" = set; then
9208 echo $ECHO_N "(cached) $ECHO_C" >&6
9210 ac_check_lib_save_LIBS=$LIBS
9212 cat >conftest.$ac_ext <<_ACEOF
9215 cat confdefs.h >>conftest.$ac_ext
9216 cat >>conftest.$ac_ext <<_ACEOF
9217 /* end confdefs.h. */
9219 /* Override any gcc2 internal prototype to avoid an error. */
9223 /* We use char because int might match the return type of a gcc2
9224 builtin and then its argument prototype would still apply. */
9234 rm -f conftest.$ac_objext conftest$ac_exeext
9235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9236 (eval $ac_link) 2>conftest.er1
9238 grep -v '^ *+' conftest.er1 >conftest.err
9240 cat conftest.err >&5
9241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242 (exit $ac_status); } &&
9243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248 (exit $ac_status); }; } &&
9249 { ac_try='test -s conftest$ac_exeext'
9250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); }; }; then
9255 ac_cv_lib_l_yywrap=yes
9257 echo "$as_me: failed program was:" >&5
9258 sed 's/^/| /' conftest.$ac_ext >&5
9260 ac_cv_lib_l_yywrap=no
9262 rm -f conftest.err conftest.$ac_objext \
9263 conftest$ac_exeext conftest.$ac_ext
9264 LIBS=$ac_check_lib_save_LIBS
9266 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
9267 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
9268 if test $ac_cv_lib_l_yywrap = yes; then
9276 if test "x$LEX" != "x:"; then
9277 echo "$as_me:$LINENO: checking lex output file root" >&5
9278 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
9279 if test "${ac_cv_prog_lex_root+set}" = set; then
9280 echo $ECHO_N "(cached) $ECHO_C" >&6
9282 # The minimal lex program is just a single line: %%. But some broken lexes
9283 # (Solaris, I think it was) want two %% lines, so accommodate them.
9284 cat >conftest.l <<_ACEOF
9288 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
9289 (eval $LEX conftest.l) 2>&5
9291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292 (exit $ac_status); }
9293 if test -f lex.yy.c; then
9294 ac_cv_prog_lex_root=lex.yy
9295 elif test -f lexyy.c; then
9296 ac_cv_prog_lex_root=lexyy
9298 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
9299 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
9300 { (exit 1); exit 1; }; }
9303 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
9304 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
9306 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
9308 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
9309 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
9310 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
9311 echo $ECHO_N "(cached) $ECHO_C" >&6
9313 # POSIX says lex can declare yytext either as a pointer or an array; the
9314 # default is implementation-dependent. Figure out which it is, since
9315 # not all implementations provide the %pointer and %array declarations.
9316 ac_cv_prog_lex_yytext_pointer=no
9317 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
9319 LIBS="$LIBS $LEXLIB"
9320 cat >conftest.$ac_ext <<_ACEOF
9321 `cat $LEX_OUTPUT_ROOT.c`
9323 rm -f conftest.$ac_objext conftest$ac_exeext
9324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9325 (eval $ac_link) 2>conftest.er1
9327 grep -v '^ *+' conftest.er1 >conftest.err
9329 cat conftest.err >&5
9330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331 (exit $ac_status); } &&
9332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9337 (exit $ac_status); }; } &&
9338 { ac_try='test -s conftest$ac_exeext'
9339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343 (exit $ac_status); }; }; then
9344 ac_cv_prog_lex_yytext_pointer=yes
9346 echo "$as_me: failed program was:" >&5
9347 sed 's/^/| /' conftest.$ac_ext >&5
9350 rm -f conftest.err conftest.$ac_objext \
9351 conftest$ac_exeext conftest.$ac_ext
9353 rm -f "${LEX_OUTPUT_ROOT}.c"
9356 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
9357 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
9358 if test $ac_cv_prog_lex_yytext_pointer = yes; then
9360 cat >>confdefs.h <<\_ACEOF
9361 #define YYTEXT_POINTER 1
9367 if test "$LEX" = ":" ; then
9368 { { echo "$as_me:$LINENO: error: Cannot find flex." >&5
9369 echo "$as_me: error: Cannot find flex." >&2;}
9370 { (exit 1); exit 1; }; }
9371 elif echo "" | $LEX -V -v --version > /dev/null 2>&1 ; then
9374 { { echo "$as_me:$LINENO: error: Cannot use $LEX as flex." >&5
9375 echo "$as_me: error: Cannot use $LEX as flex." >&2;}
9376 { (exit 1); exit 1; }; }
9379 if test -z "$LEXLIB" ; then
9380 { { echo "$as_me:$LINENO: error: Cannot find a library with yywrap() in, but flex was found.
9381 It's possible the compiler you're using ($CC) is incompatible with the
9383 See \`config.log' for more details." >&5
9384 echo "$as_me: error: Cannot find a library with yywrap() in, but flex was found.
9385 It's possible the compiler you're using ($CC) is incompatible with the
9387 See \`config.log' for more details." >&2;}
9388 { (exit 1); exit 1; }; }
9391 LIBS="$LEXLIB $LIBS"
9393 for ac_prog in 'bison -y' byacc
9395 # Extract the first word of "$ac_prog", so it can be a program name with args.
9396 set dummy $ac_prog; ac_word=$2
9397 echo "$as_me:$LINENO: checking for $ac_word" >&5
9398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9399 if test "${ac_cv_prog_YACC+set}" = set; then
9400 echo $ECHO_N "(cached) $ECHO_C" >&6
9402 if test -n "$YACC"; then
9403 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9409 test -z "$as_dir" && as_dir=.
9410 for ac_exec_ext in '' $ac_executable_extensions; do
9411 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9412 ac_cv_prog_YACC="$ac_prog"
9413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9421 YACC=$ac_cv_prog_YACC
9422 if test -n "$YACC"; then
9423 echo "$as_me:$LINENO: result: $YACC" >&5
9424 echo "${ECHO_T}$YACC" >&6
9426 echo "$as_me:$LINENO: result: no" >&5
9427 echo "${ECHO_T}no" >&6
9430 test -n "$YACC" && break
9432 test -n "$YACC" || YACC="yacc"
9434 if test "$YACC" = ":" ; then
9435 { { echo "$as_me:$LINENO: error: Cannot find yacc." >&5
9436 echo "$as_me: error: Cannot find yacc." >&2;}
9437 { (exit 1); exit 1; }; }
9438 elif echo "" | $YACC -V -v --version > /dev/null 2>&1 ; then
9441 { echo "$as_me:$LINENO: WARNING: $YACC may not work as yacc." >&5
9442 echo "$as_me: WARNING: $YACC may not work as yacc." >&2;}
9445 echo "$as_me:$LINENO: checking for posix non-blocking" >&5
9446 echo $ECHO_N "checking for posix non-blocking... $ECHO_C" >&6
9447 if test "${unet_cv_sys_nonblocking_posix+set}" = set; then
9448 echo $ECHO_N "(cached) $ECHO_C" >&6
9450 if test "$cross_compiling" = yes; then
9451 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9452 See \`config.log' for more details." >&5
9453 echo "$as_me: error: cannot run test program while cross compiling
9454 See \`config.log' for more details." >&2;}
9455 { (exit 1); exit 1; }; }
9457 cat >conftest.$ac_ext <<_ACEOF
9460 cat confdefs.h >>conftest.$ac_ext
9461 cat >>conftest.$ac_ext <<_ACEOF
9462 /* end confdefs.h. */
9463 #include <sys/types.h>
9464 #include <sys/socket.h>
9466 #include <sys/ioctl.h>
9467 #include <sys/file.h>
9469 $ac_cv_type_signal alarmed() { exit(1); }
9474 size_t l = sizeof(x);
9475 int f = socket(AF_INET, SOCK_DGRAM, 0);
9476 if (f >= 0 && !(fcntl(f, F_SETFL, O_NONBLOCK)))
9478 signal(SIGALRM, alarmed);
9480 recvfrom(f, b, 12, 0, &x, &l);
9487 rm -f conftest$ac_exeext
9488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9489 (eval $ac_link) 2>&5
9491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497 (exit $ac_status); }; }; then
9498 unet_cv_sys_nonblocking_posix=yes
9500 echo "$as_me: program exited with status $ac_status" >&5
9501 echo "$as_me: failed program was:" >&5
9502 sed 's/^/| /' conftest.$ac_ext >&5
9505 unet_cv_sys_nonblocking_posix=no
9507 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9510 echo "$as_me:$LINENO: result: $unet_cv_sys_nonblocking_posix" >&5
9511 echo "${ECHO_T}$unet_cv_sys_nonblocking_posix" >&6
9512 if test $unet_cv_sys_nonblocking_posix = yes; then
9514 cat >>confdefs.h <<\_ACEOF
9515 #define NBLOCK_POSIX
9519 echo "$as_me:$LINENO: checking for bsd non-blocking" >&5
9520 echo $ECHO_N "checking for bsd non-blocking... $ECHO_C" >&6
9521 if test "${unet_cv_sys_nonblocking_bsd+set}" = set; then
9522 echo $ECHO_N "(cached) $ECHO_C" >&6
9524 if test "$cross_compiling" = yes; then
9525 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9526 See \`config.log' for more details." >&5
9527 echo "$as_me: error: cannot run test program while cross compiling
9528 See \`config.log' for more details." >&2;}
9529 { (exit 1); exit 1; }; }
9531 cat >conftest.$ac_ext <<_ACEOF
9534 cat confdefs.h >>conftest.$ac_ext
9535 cat >>conftest.$ac_ext <<_ACEOF
9536 /* end confdefs.h. */
9537 #include <sys/types.h>
9538 #include <sys/socket.h>
9540 #include <sys/ioctl.h>
9541 #include <sys/file.h>
9543 $ac_cv_type_signal alarmed() { exit(1); }
9548 size_t l = sizeof(x);
9549 int f = socket(AF_INET, SOCK_DGRAM, 0);
9550 if (f >= 0 && !(fcntl(f, F_SETFL, O_NDELAY)))
9552 signal(SIGALRM, alarmed);
9554 recvfrom(f, b, 12, 0, &x, &l);
9561 rm -f conftest$ac_exeext
9562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9563 (eval $ac_link) 2>&5
9565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571 (exit $ac_status); }; }; then
9572 unet_cv_sys_nonblocking_bsd=yes
9574 echo "$as_me: program exited with status $ac_status" >&5
9575 echo "$as_me: failed program was:" >&5
9576 sed 's/^/| /' conftest.$ac_ext >&5
9579 unet_cv_sys_nonblocking_bsd=no
9581 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9584 echo "$as_me:$LINENO: result: $unet_cv_sys_nonblocking_bsd" >&5
9585 echo "${ECHO_T}$unet_cv_sys_nonblocking_bsd" >&6
9586 if test $unet_cv_sys_nonblocking_bsd = yes; then
9588 cat >>confdefs.h <<\_ACEOF
9594 cat >>confdefs.h <<\_ACEOF
9600 echo "$as_me:$LINENO: checking for posix signals" >&5
9601 echo $ECHO_N "checking for posix signals... $ECHO_C" >&6
9602 if test "${unet_cv_sys_signal_posix+set}" = set; then
9603 echo $ECHO_N "(cached) $ECHO_C" >&6
9605 cat >conftest.$ac_ext <<_ACEOF
9608 cat confdefs.h >>conftest.$ac_ext
9609 cat >>conftest.$ac_ext <<_ACEOF
9610 /* end confdefs.h. */
9615 sigaction(SIGTERM, (struct sigaction *)0L, (struct sigaction *)0L)
9620 rm -f conftest.$ac_objext
9621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9622 (eval $ac_compile) 2>conftest.er1
9624 grep -v '^ *+' conftest.er1 >conftest.err
9626 cat conftest.err >&5
9627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9628 (exit $ac_status); } &&
9629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634 (exit $ac_status); }; } &&
9635 { ac_try='test -s conftest.$ac_objext'
9636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640 (exit $ac_status); }; }; then
9641 unet_cv_sys_signal_posix=yes
9643 echo "$as_me: failed program was:" >&5
9644 sed 's/^/| /' conftest.$ac_ext >&5
9646 unet_cv_sys_signal_posix=no
9648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9650 echo "$as_me:$LINENO: result: $unet_cv_sys_signal_posix" >&5
9651 echo "${ECHO_T}$unet_cv_sys_signal_posix" >&6
9652 if test $unet_cv_sys_signal_posix = yes; then
9654 cat >>confdefs.h <<\_ACEOF
9655 #define POSIX_SIGNALS
9659 echo "$as_me:$LINENO: checking for bsd reliable signals" >&5
9660 echo $ECHO_N "checking for bsd reliable signals... $ECHO_C" >&6
9661 if test "${unet_cv_sys_signal_bsd+set}" = set; then
9662 echo $ECHO_N "(cached) $ECHO_C" >&6
9664 if test "$cross_compiling" = yes; then
9665 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9666 See \`config.log' for more details." >&5
9667 echo "$as_me: error: cannot run test program while cross compiling
9668 See \`config.log' for more details." >&2;}
9669 { (exit 1); exit 1; }; }
9671 cat >conftest.$ac_ext <<_ACEOF
9674 cat confdefs.h >>conftest.$ac_ext
9675 cat >>conftest.$ac_ext <<_ACEOF
9676 /* end confdefs.h. */
9679 $ac_cv_type_signal handler()
9683 kill(getpid(), SIGTERM);
9688 signal(SIGTERM, handler);
9689 kill(getpid(), SIGTERM);
9693 rm -f conftest$ac_exeext
9694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9695 (eval $ac_link) 2>&5
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703 (exit $ac_status); }; }; then
9704 unet_cv_sys_signal_bsd=yes
9706 echo "$as_me: program exited with status $ac_status" >&5
9707 echo "$as_me: failed program was:" >&5
9708 sed 's/^/| /' conftest.$ac_ext >&5
9711 unet_cv_sys_signal_bsd=no
9713 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9716 echo "$as_me:$LINENO: result: $unet_cv_sys_signal_bsd" >&5
9717 echo "${ECHO_T}$unet_cv_sys_signal_bsd" >&6
9718 if test $unet_cv_sys_signal_bsd = yes; then
9720 cat >>confdefs.h <<\_ACEOF
9721 #define BSD_RELIABLE_SIGNALS
9726 cat >>confdefs.h <<\_ACEOF
9727 #define SYSV_UNRELIABLE_SIGNALS
9733 echo "$as_me:$LINENO: checking for OS-dependent information" >&5
9734 echo $ECHO_N "checking for OS-dependent information... $ECHO_C" >&6
9737 echo "$as_me:$LINENO: result: Linux ($host) found." >&5
9738 echo "${ECHO_T}Linux ($host) found." >&6
9739 unet_poll_syscall=yes
9743 echo "$as_me:$LINENO: result: Solaris ($host) found." >&5
9744 echo "${ECHO_T}Solaris ($host) found." >&6
9745 if test x"$ac_cv_header_poll_h" = xyes; then
9746 unet_poll_syscall=yes
9748 unet_poll_syscall=no
9753 echo "$as_me:$LINENO: result: Solaris ($host) found." >&5
9754 echo "${ECHO_T}Solaris ($host) found." >&6
9755 unet_poll_syscall=no
9759 echo "$as_me:$LINENO: result: OpenBSD ($host) found." >&5
9760 echo "${ECHO_T}OpenBSD ($host) found." >&6
9761 if test x"$ac_cv_header_poll_h" = xyes; then
9762 unet_poll_syscall=yes
9764 unet_poll_syscall=no
9769 echo "$as_me:$LINENO: result: Generic BSD ($host) found." >&5
9770 echo "${ECHO_T}Generic BSD ($host) found." >&6
9771 if test x"$ac_cv_header_poll_h" = xyes; then
9772 unet_poll_syscall=yes
9774 unet_poll_syscall=no
9779 echo "$as_me:$LINENO: result: Darwin (Mac OS X) ($host) found." >&5
9780 echo "${ECHO_T}Darwin (Mac OS X) ($host) found." >&6
9781 unet_poll_syscall=no
9785 echo "$as_me:$LINENO: result: Unknown system type $host found." >&5
9786 echo "${ECHO_T}Unknown system type $host found." >&6
9787 { echo "$as_me:$LINENO: WARNING: Unknown OS type; using generic routines." >&5
9788 echo "$as_me: WARNING: Unknown OS type; using generic routines." >&2;}
9789 unet_poll_syscall=no
9793 echo "$as_me:$LINENO: checking whether to enable use of poll()" >&5
9794 echo $ECHO_N "checking whether to enable use of poll()... $ECHO_C" >&6
9795 # Check whether --enable-poll or --disable-poll was given.
9796 if test "${enable_poll+set}" = set; then
9797 enableval="$enable_poll"
9798 unet_cv_enable_poll=$enable_poll
9800 if test "${unet_cv_enable_poll+set}" = set; then
9801 echo $ECHO_N "(cached) $ECHO_C" >&6
9803 unet_cv_enable_poll=$unet_poll_syscall
9808 # Force poll to be disabled if there is no poll.h
9809 if test x"$ac_cv_header_poll_h" != xyes; then
9810 unet_cv_enable_poll=no
9813 echo "$as_me:$LINENO: result: $unet_cv_enable_poll" >&5
9814 echo "${ECHO_T}$unet_cv_enable_poll" >&6
9816 if test x"$unet_cv_enable_poll" = xyes; then
9818 cat >>confdefs.h <<\_ACEOF
9822 ENGINE_C=engine_poll.c
9824 ENGINE_C=engine_select.c
9828 echo "$as_me:$LINENO: checking whether to enable debug mode" >&5
9829 echo $ECHO_N "checking whether to enable debug mode... $ECHO_C" >&6
9830 # Check whether --enable-debug or --disable-debug was given.
9831 if test "${enable_debug+set}" = set; then
9832 enableval="$enable_debug"
9833 unet_cv_enable_debug=$enable_debug
9835 if test "${unet_cv_enable_debug+set}" = set; then
9836 echo $ECHO_N "(cached) $ECHO_C" >&6
9838 unet_cv_enable_debug=no
9842 echo "$as_me:$LINENO: result: $unet_cv_enable_debug" >&5
9843 echo "${ECHO_T}$unet_cv_enable_debug" >&6
9845 if test x"$unet_cv_enable_debug" = xyes; then
9847 cat >>confdefs.h <<\_ACEOF
9853 echo "$as_me:$LINENO: checking whether to enable leak detection" >&5
9854 echo $ECHO_N "checking whether to enable leak detection... $ECHO_C" >&6
9856 # Check whether --with-leak-detect or --without-leak-detect was given.
9857 if test "${with_leak_detect+set}" = set; then
9858 withval="$with_leak_detect"
9859 unet_cv_with_leak_detect=$with_leak_detect
9861 if test "${unet_cv_with_leak_detect+set}" = set; then
9862 echo $ECHO_N "(cached) $ECHO_C" >&6
9864 unet_cv_with_leak_detect=no
9868 echo "$as_me:$LINENO: result: $unet_cv_enable_leak_detect" >&5
9869 echo "${ECHO_T}$unet_cv_enable_leak_detect" >&6
9871 if test x"$unet_cv_with_leak_detect" != xno; then
9873 CFLAGS="-DMDEBUG $CFLAGS"
9874 if test x"$unet_cv_with_leak_detect" != xyes; then
9875 LIBS="-L$unet_cv_with_leak_detect $LIBS"
9880 # Check whether --with-ipv6 or --without-ipv6 was given.
9881 if test "${with_ipv6+set}" = set; then
9882 withval="$with_ipv6"
9883 ac_cv_use_ipv6=$withval
9885 ac_cv_use_ipv6=$unet_have_sockaddr_in6
9887 echo "$as_me:$LINENO: checking whether to use IPv6" >&5
9888 echo $ECHO_N "checking whether to use IPv6... $ECHO_C" >&6
9889 if test "${ac_cv_use_ipv6+set}" = set; then
9890 echo $ECHO_N "(cached) $ECHO_C" >&6
9894 echo "$as_me:$LINENO: result: $ac_cv_use_ipv6" >&5
9895 echo "${ECHO_T}$ac_cv_use_ipv6" >&6
9896 if test x"$ac_cv_use_ipv6" != "xno" ; then
9898 cat >>confdefs.h <<\_ACEOF
9904 echo "$as_me:$LINENO: checking whether to enable asserts" >&5
9905 echo $ECHO_N "checking whether to enable asserts... $ECHO_C" >&6
9906 # Check whether --enable-asserts or --disable-asserts was given.
9907 if test "${enable_asserts+set}" = set; then
9908 enableval="$enable_asserts"
9909 unet_cv_enable_asserts=$enable_asserts
9911 if test "${unet_cv_enable_asserts+set}" = set; then
9912 echo $ECHO_N "(cached) $ECHO_C" >&6
9914 unet_cv_enable_asserts=yes
9918 echo "$as_me:$LINENO: result: $unet_cv_enable_asserts" >&5
9919 echo "${ECHO_T}$unet_cv_enable_asserts" >&6
9921 if test x"$unet_cv_enable_asserts" = xno; then
9923 cat >>confdefs.h <<\_ACEOF
9929 echo "$as_me:$LINENO: checking whether to enable profiling support (gprof)" >&5
9930 echo $ECHO_N "checking whether to enable profiling support (gprof)... $ECHO_C" >&6
9931 # Check whether --enable-profile or --disable-profile was given.
9932 if test "${enable_profile+set}" = set; then
9933 enableval="$enable_profile"
9934 unet_cv_enable_profile=$enable_profile
9936 if test "${unet_cv_enable_profile+set}" = set; then
9937 echo $ECHO_N "(cached) $ECHO_C" >&6
9939 unet_cv_enable_profile=no
9943 echo "$as_me:$LINENO: result: $unet_cv_enable_profile" >&5
9944 echo "${ECHO_T}$unet_cv_enable_profile" >&6
9946 if test x"$unet_cv_enable_profile" = xyes; then
9947 CFLAGS="-pg $CFLAGS"
9948 LDFLAGS="-pg $LDFLAGS"
9951 echo "$as_me:$LINENO: checking whether to enable pedantic compiler warnings" >&5
9952 echo $ECHO_N "checking whether to enable pedantic compiler warnings... $ECHO_C" >&6
9953 # Check whether --enable-pedantic or --disable-pedantic was given.
9954 if test "${enable_pedantic+set}" = set; then
9955 enableval="$enable_pedantic"
9956 unet_cv_enable_pedantic=$enable_pedantic
9958 if test "${unet_cv_enable_pedantic+set}" = set; then
9959 echo $ECHO_N "(cached) $ECHO_C" >&6
9961 unet_cv_enable_pedantic=no
9965 echo "$as_me:$LINENO: result: $unet_cv_enable_pedantic" >&5
9966 echo "${ECHO_T}$unet_cv_enable_pedantic" >&6
9968 if test x"$unet_cv_enable_pedantic" = xyes; then
9969 CFLAGS="-pedantic $CFLAGS"
9972 echo "$as_me:$LINENO: checking whether to enable compiler warnings" >&5
9973 echo $ECHO_N "checking whether to enable compiler warnings... $ECHO_C" >&6
9974 # Check whether --enable-warnings or --disable-warnings was given.
9975 if test "${enable_warnings+set}" = set; then
9976 enableval="$enable_warnings"
9977 unet_cv_enable_warnings=$enable_warnings
9979 if test "${unet_cv_enable_warnings+set}" = set; then
9980 echo $ECHO_N "(cached) $ECHO_C" >&6
9982 unet_cv_enable_warnings=no
9986 echo "$as_me:$LINENO: result: $unet_cv_enable_warnings" >&5
9987 echo "${ECHO_T}$unet_cv_enable_warnings" >&6
9989 if test x"$unet_cv_enable_warnings" = xyes; then
9990 CFLAGS="-Wall $CFLAGS"
9993 echo "$as_me:$LINENO: checking whether to enable inlining for a few critical functions" >&5
9994 echo $ECHO_N "checking whether to enable inlining for a few critical functions... $ECHO_C" >&6
9995 # Check whether --enable-inlines or --disable-inlines was given.
9996 if test "${enable_inlines+set}" = set; then
9997 enableval="$enable_inlines"
9998 unet_cv_enable_inlines=$enable_inlines
10000 if test "${unet_cv_enable_inlines+set}" = set; then
10001 echo $ECHO_N "(cached) $ECHO_C" >&6
10003 unet_cv_enable_inlines=yes
10007 echo "$as_me:$LINENO: result: $unet_cv_enable_inlines" >&5
10008 echo "${ECHO_T}$unet_cv_enable_inlines" >&6
10010 if test x"$unet_cv_enable_inlines" = xyes; then
10012 cat >>confdefs.h <<\_ACEOF
10013 #define FORCEINLINE 1
10018 echo "$as_me:$LINENO: checking whether to enable the /dev/poll event engine" >&5
10019 echo $ECHO_N "checking whether to enable the /dev/poll event engine... $ECHO_C" >&6
10020 # Check whether --enable-devpoll or --disable-devpoll was given.
10021 if test "${enable_devpoll+set}" = set; then
10022 enableval="$enable_devpoll"
10023 unet_cv_enable_devpoll=$enable_devpoll
10025 if test "${unet_cv_enable_devpoll+set}" = set; then
10026 echo $ECHO_N "(cached) $ECHO_C" >&6
10028 unet_cv_enable_devpoll=yes
10033 if test x"$ac_cv_header_sys_devpoll_h" = xno; then
10034 unet_cv_enable_devpoll=no
10037 echo "$as_me:$LINENO: result: $unet_cv_enable_devpoll" >&5
10038 echo "${ECHO_T}$unet_cv_enable_devpoll" >&6
10040 if test x"$unet_cv_enable_devpoll" != xno; then
10042 cat >>confdefs.h <<\_ACEOF
10043 #define USE_DEVPOLL 1
10046 ENGINE_C="engine_devpoll.c $ENGINE_C"
10049 echo "$as_me:$LINENO: checking whether to enable the kqueue event engine" >&5
10050 echo $ECHO_N "checking whether to enable the kqueue event engine... $ECHO_C" >&6
10051 # Check whether --enable-kqueue or --disable-kqueue was given.
10052 if test "${enable_kqueue+set}" = set; then
10053 enableval="$enable_kqueue"
10054 unet_cv_enable_kqueue=$enable_kqueue
10056 if test "${unet_cv_enable_kqueue+set}" = set; then
10057 echo $ECHO_N "(cached) $ECHO_C" >&6
10059 unet_cv_enable_kqueue=yes
10064 if test x"$ac_cv_header_sys_event_h" = xno -o x"$ac_cv_func_kqueue" = xno; then
10065 unet_cv_enable_kqueue=no
10068 echo "$as_me:$LINENO: result: $unet_cv_enable_kqueue" >&5
10069 echo "${ECHO_T}$unet_cv_enable_kqueue" >&6
10071 if test x"$unet_cv_enable_kqueue" != xno; then
10073 cat >>confdefs.h <<\_ACEOF
10074 #define USE_KQUEUE 1
10077 ENGINE_C="engine_kqueue.c $ENGINE_C"
10080 echo "$as_me:$LINENO: checking whether to enable the epoll event engine" >&5
10081 echo $ECHO_N "checking whether to enable the epoll event engine... $ECHO_C" >&6
10082 # Check whether --enable-epoll or --disable-epoll was given.
10083 if test "${enable_epoll+set}" = set; then
10084 enableval="$enable_epoll"
10085 unet_cv_enable_epoll=$enable_epoll
10087 if test "${unet_cv_enable_epoll+set}" = set; then
10088 echo $ECHO_N "(cached) $ECHO_C" >&6
10090 unet_cv_enable_epoll=yes
10095 if test x"$ac_cv_header_sys_epoll_h" = xno -o x"$ac_cv_func_epoll" = xno; then
10096 unet_cv_enable_epoll=no
10099 echo "$as_me:$LINENO: result: $unet_cv_enable_epoll" >&5
10100 echo "${ECHO_T}$unet_cv_enable_epoll" >&6
10102 if test x"$unet_cv_enable_epoll" != xno; then
10103 echo "$as_me:$LINENO: checking whether epoll functions are properly defined" >&5
10104 echo $ECHO_N "checking whether epoll functions are properly defined... $ECHO_C" >&6
10105 cat >conftest.$ac_ext <<_ACEOF
10108 cat confdefs.h >>conftest.$ac_ext
10109 cat >>conftest.$ac_ext <<_ACEOF
10110 /* end confdefs.h. */
10111 #include <sys/epoll.h>
10120 rm -f conftest.$ac_objext conftest$ac_exeext
10121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10122 (eval $ac_link) 2>conftest.er1
10124 grep -v '^ *+' conftest.er1 >conftest.err
10126 cat conftest.err >&5
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 (exit $ac_status); } &&
10129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10131 (eval $ac_try) 2>&5
10133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134 (exit $ac_status); }; } &&
10135 { ac_try='test -s conftest$ac_exeext'
10136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10137 (eval $ac_try) 2>&5
10139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140 (exit $ac_status); }; }; then
10141 echo "$as_me:$LINENO: result: yes" >&5
10142 echo "${ECHO_T}yes" >&6
10144 echo "$as_me: failed program was:" >&5
10145 sed 's/^/| /' conftest.$ac_ext >&5
10147 echo "$as_me:$LINENO: result: no" >&5
10148 echo "${ECHO_T}no" >&6
10150 cat >>confdefs.h <<\_ACEOF
10151 #define EPOLL_NEED_BODY 1
10155 rm -f conftest.err conftest.$ac_objext \
10156 conftest$ac_exeext conftest.$ac_ext
10158 cat >>confdefs.h <<\_ACEOF
10159 #define USE_EPOLL 1
10162 ENGINE_C="engine_epoll.c $ENGINE_C"
10165 echo "$as_me:$LINENO: checking for va_copy" >&5
10166 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
10167 if test "${unet_cv_c_va_copy+set}" = set; then
10168 echo $ECHO_N "(cached) $ECHO_C" >&6
10170 cat >conftest.$ac_ext <<_ACEOF
10173 cat confdefs.h >>conftest.$ac_ext
10174 cat >>conftest.$ac_ext <<_ACEOF
10175 /* end confdefs.h. */
10176 #include <stdarg.h>
10180 va_list ap1, ap2; va_copy(ap1, ap2);
10185 rm -f conftest.$ac_objext conftest$ac_exeext
10186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10187 (eval $ac_link) 2>conftest.er1
10189 grep -v '^ *+' conftest.er1 >conftest.err
10191 cat conftest.err >&5
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); } &&
10194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10196 (eval $ac_try) 2>&5
10198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199 (exit $ac_status); }; } &&
10200 { ac_try='test -s conftest$ac_exeext'
10201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10202 (eval $ac_try) 2>&5
10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205 (exit $ac_status); }; }; then
10206 unet_cv_c_va_copy="yes"
10208 echo "$as_me: failed program was:" >&5
10209 sed 's/^/| /' conftest.$ac_ext >&5
10211 unet_cv_c_va_copy="no"
10214 rm -f conftest.err conftest.$ac_objext \
10215 conftest$ac_exeext conftest.$ac_ext
10217 echo "$as_me:$LINENO: result: $unet_cv_c_va_copy" >&5
10218 echo "${ECHO_T}$unet_cv_c_va_copy" >&6
10219 if test "$unet_cv_c_va_copy" = "yes" ; then
10221 cat >>confdefs.h <<\_ACEOF
10222 #define HAVE_VA_COPY 1
10227 echo "$as_me:$LINENO: checking for __va_copy" >&5
10228 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
10229 if test "${unet_cv_c___va_copy+set}" = set; then
10230 echo $ECHO_N "(cached) $ECHO_C" >&6
10232 cat >conftest.$ac_ext <<_ACEOF
10235 cat confdefs.h >>conftest.$ac_ext
10236 cat >>conftest.$ac_ext <<_ACEOF
10237 /* end confdefs.h. */
10238 #include <stdarg.h>
10242 va_list ap1, ap2; __va_copy(ap1, ap2);
10247 rm -f conftest.$ac_objext conftest$ac_exeext
10248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10249 (eval $ac_link) 2>conftest.er1
10251 grep -v '^ *+' conftest.er1 >conftest.err
10253 cat conftest.err >&5
10254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255 (exit $ac_status); } &&
10256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10258 (eval $ac_try) 2>&5
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); }; } &&
10262 { ac_try='test -s conftest$ac_exeext'
10263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10264 (eval $ac_try) 2>&5
10266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267 (exit $ac_status); }; }; then
10268 unet_cv_c___va_copy="yes"
10270 echo "$as_me: failed program was:" >&5
10271 sed 's/^/| /' conftest.$ac_ext >&5
10273 unet_cv_c___va_copy="no"
10276 rm -f conftest.err conftest.$ac_objext \
10277 conftest$ac_exeext conftest.$ac_ext
10279 echo "$as_me:$LINENO: result: $unet_cv_c___va_copy" >&5
10280 echo "${ECHO_T}$unet_cv_c___va_copy" >&6
10281 if test "$unet_cv_c___va_copy" = "yes" ; then
10283 cat >>confdefs.h <<\_ACEOF
10284 #define HAVE___VA_COPY 1
10289 echo "$as_me:$LINENO: checking what name to give the symlink" >&5
10290 echo $ECHO_N "checking what name to give the symlink... $ECHO_C" >&6
10292 # Check whether --with-symlink or --without-symlink was given.
10293 if test "${with_symlink+set}" = set; then
10294 withval="$with_symlink"
10295 unet_cv_with_symlink=$with_symlink
10297 if test "${unet_cv_with_symlink+set}" = set; then
10298 echo $ECHO_N "(cached) $ECHO_C" >&6
10300 unet_cv_with_symlink="ircd"
10305 if test x"$unet_cv_with_symlink" = xyes; then
10306 unet_cv_with_symlink="ircd"
10309 echo "$as_me:$LINENO: result: $unet_cv_with_symlink" >&5
10310 echo "${ECHO_T}$unet_cv_with_symlink" >&6
10312 if test x"$unet_cv_with_symlink" = xno; then
10313 INSTALL_RULE=install-no-symlink
10316 INSTALL_RULE=install-with-symlink
10317 SYMLINK=$unet_cv_with_symlink
10322 echo "$as_me:$LINENO: checking what permissions to set on the installed binary" >&5
10323 echo $ECHO_N "checking what permissions to set on the installed binary... $ECHO_C" >&6
10325 # Check whether --with-mode or --without-mode was given.
10326 if test "${with_mode+set}" = set; then
10327 withval="$with_mode"
10328 unet_cv_with_mode=$with_mode
10330 if test "${unet_cv_with_mode+set}" = set; then
10331 echo $ECHO_N "(cached) $ECHO_C" >&6
10333 unet_cv_with_mode=711
10338 if test x"$unet_cv_with_mode" = xyes -o x"$unet_cv_with_mode" = xno; then
10339 unet_cv_with_mode=711
10342 echo "$as_me:$LINENO: result: $unet_cv_with_mode" >&5
10343 echo "${ECHO_T}$unet_cv_with_mode" >&6
10345 IRCDMODE=$unet_cv_with_mode
10348 unet_uid=`id | sed -e 's/.*uid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
10349 echo "$as_me:$LINENO: checking which user should own the installed binary" >&5
10350 echo $ECHO_N "checking which user should own the installed binary... $ECHO_C" >&6
10352 # Check whether --with-owner or --without-owner was given.
10353 if test "${with_owner+set}" = set; then
10354 withval="$with_owner"
10355 unet_cv_with_owner=$with_owner
10357 if test "${unet_cv_with_owner+set}" = set; then
10358 echo $ECHO_N "(cached) $ECHO_C" >&6
10360 unet_cv_with_owner=$unet_uid
10365 if test x"$unet_cv_with_owner" = xyes -o x"$unet_cv_with_owner" = xno; then
10366 unet_cv_with_owner=$unet_uid
10369 echo "$as_me:$LINENO: result: $unet_cv_with_owner" >&5
10370 echo "${ECHO_T}$unet_cv_with_owner" >&6
10372 IRCDOWN=$unet_cv_with_owner
10375 unet_gid=`id | sed -e 's/.*gid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
10376 echo "$as_me:$LINENO: checking which group should own the installed binary" >&5
10377 echo $ECHO_N "checking which group should own the installed binary... $ECHO_C" >&6
10379 # Check whether --with-group or --without-group was given.
10380 if test "${with_group+set}" = set; then
10381 withval="$with_group"
10382 unet_cv_with_group=$with_group
10384 if test "${unet_cv_with_group+set}" = set; then
10385 echo $ECHO_N "(cached) $ECHO_C" >&6
10387 unet_cv_with_group=$unet_gid
10392 if test x"$unet_cv_with_group" = xyes -o x"$unet_cv_with_group" = xno; then
10393 unet_cv_with_group=$unet_gid
10396 echo "$as_me:$LINENO: result: $unet_cv_with_group" >&5
10397 echo "${ECHO_T}$unet_cv_with_group" >&6
10399 IRCDGRP=$unet_cv_with_group
10403 if test -f /etc/resolv.conf; then
10404 unet_domain=`awk '/^domain/ { print $2; exit }' /etc/resolv.conf`
10405 if test x"$unet_domain" = x; then
10406 unet_domain=`awk '/^search/ { print $2; exit }' /etc/resolv.conf`
10409 echo "$as_me:$LINENO: checking for site domain name" >&5
10410 echo $ECHO_N "checking for site domain name... $ECHO_C" >&6
10412 # Check whether --with-domain or --without-domain was given.
10413 if test "${with_domain+set}" = set; then
10414 withval="$with_domain"
10415 unet_cv_with_domain=$with_domain
10417 if test "${unet_cv_with_domain+set}" = set; then
10418 echo $ECHO_N "(cached) $ECHO_C" >&6
10420 unet_cv_with_domain=$unet_domain
10425 if test x"$unet_cv_with_domain" = xyes -o x"$unet_cv_with_domain" = xno; then
10426 unet_cv_with_domain=$unet_domain
10428 if test x"$unet_cv_with_domain" = xno; then
10429 { { echo "$as_me:$LINENO: error: Unable to determine server DNS domain; use --with-domain to set it" >&5
10430 echo "$as_me: error: Unable to determine server DNS domain; use --with-domain to set it" >&2;}
10431 { (exit 1); exit 1; }; }
10434 echo "$as_me:$LINENO: result: $unet_cv_with_domain" >&5
10435 echo "${ECHO_T}$unet_cv_with_domain" >&6
10438 cat >>confdefs.h <<_ACEOF
10439 #define DOMAINNAME "*$unet_cv_with_domain"
10443 echo "$as_me:$LINENO: checking if chroot operation is desired" >&5
10444 echo $ECHO_N "checking if chroot operation is desired... $ECHO_C" >&6
10446 # Check whether --with-chroot or --without-chroot was given.
10447 if test "${with_chroot+set}" = set; then
10448 withval="$with_chroot"
10449 unet_cv_with_chroot=$with_chroot
10451 if test "${unet_cv_with_chroot+set}" = set; then
10452 echo $ECHO_N "(cached) $ECHO_C" >&6
10454 unet_cv_with_chroot=no
10459 if test x"$unet_cv_with_chroot" = xyes; then
10460 { { echo "$as_me:$LINENO: error: --with-chroot given with no directory. See doc/readme.chroot." >&5
10461 echo "$as_me: error: --with-chroot given with no directory. See doc/readme.chroot." >&2;}
10462 { (exit 1); exit 1; }; }
10465 # Ensure there are no trailing /'s to mess us up
10466 unet_cv_with_chroot=`echo "$unet_cv_with_chroot" | sed 's%/*$%%'`
10468 echo "$as_me:$LINENO: result: $unet_cv_with_chroot" >&5
10469 echo "${ECHO_T}$unet_cv_with_chroot" >&6
10471 # Deal with the annoying value "NONE" here
10472 unet_save_prefix=$prefix
10473 if test x"$prefix" = xNONE; then
10474 prefix=$ac_default_prefix
10479 unet_save_exec_prefix=$exec_prefix
10480 if test x"$exec_prefix" = xNONE; then
10481 exec_prefix=$prefix
10483 exec_prefix=$exec_prefix
10486 # Obtain the actual interesting directories
10487 unet_bindir=`eval echo "$bindir"`
10488 unet_libdir=`eval echo "$libdir"`
10490 # Restore the original settings of $prefix and $exec_prefix
10491 prefix=$unet_save_prefix
10492 exec_prefix=$unet_save_exec_prefix
10494 echo "$as_me:$LINENO: checking where the binary will be for /restart" >&5
10495 echo $ECHO_N "checking where the binary will be for /restart... $ECHO_C" >&6
10496 if test x"$unet_cv_with_symlink" = xno; then
10497 unet_spath="$unet_bindir/ircd"
10499 unet_spath="$unet_bindir/$unet_cv_with_symlink"
10501 echo "$as_me:$LINENO: result: $unet_spath" >&5
10502 echo "${ECHO_T}$unet_spath" >&6
10504 if test x"$unet_cv_with_chroot" != xno; then
10505 if echo "$unet_spath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10506 unet_spath=`echo "$unet_spath" | sed "s%^$unet_cv_with_chroot%%"`
10508 { echo "$as_me:$LINENO: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&5
10509 echo "$as_me: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&2;}
10514 cat >>confdefs.h <<_ACEOF
10515 #define SPATH "$unet_spath"
10519 echo "$as_me:$LINENO: checking what the data directory should be" >&5
10520 echo $ECHO_N "checking what the data directory should be... $ECHO_C" >&6
10522 # Check whether --with-dpath or --without-dpath was given.
10523 if test "${with_dpath+set}" = set; then
10524 withval="$with_dpath"
10525 unet_cv_with_dpath=$with_dpath
10527 if test "${unet_cv_with_dpath+set}" = set; then
10528 echo $ECHO_N "(cached) $ECHO_C" >&6
10530 unet_cv_with_dpath=$unet_libdir
10535 if test x"$unet_cv_with_dpath" = xyes -o x"$unet_cv_with_dpath" = xno; then
10536 unet_cv_with_dpath=$unet_libdir
10539 # Ensure there are no trailing /'s to mess us up
10540 unet_cv_with_dpath=`echo "$unet_cv_with_dpath" | sed 's%/*$%%'`
10542 echo "$as_me:$LINENO: result: $unet_cv_with_dpath" >&5
10543 echo "${ECHO_T}$unet_cv_with_dpath" >&6
10545 if test x"$unet_cv_with_chroot" != xno; then
10546 if echo "$unet_cv_with_dpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10547 unet_dpath=`echo "$unet_cv_with_dpath" | sed "s%^$unet_cv_with_chroot%%"`
10549 { { echo "$as_me:$LINENO: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&5
10550 echo "$as_me: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&2;}
10551 { (exit 1); exit 1; }; }
10554 unet_dpath=$unet_cv_with_dpath
10558 cat >>confdefs.h <<_ACEOF
10559 #define DPATH "$unet_dpath"
10563 DPATH=$unet_cv_with_dpath
10566 echo "$as_me:$LINENO: checking where the default configuration file resides" >&5
10567 echo $ECHO_N "checking where the default configuration file resides... $ECHO_C" >&6
10569 # Check whether --with-cpath or --without-cpath was given.
10570 if test "${with_cpath+set}" = set; then
10571 withval="$with_cpath"
10572 unet_cv_with_cpath=$with_cpath
10574 if test "${unet_cv_with_cpath+set}" = set; then
10575 echo $ECHO_N "(cached) $ECHO_C" >&6
10577 unet_cv_with_cpath="ircd.conf"
10582 if test x"$unet_cv_with_cpath" = xyes -o x"$unet_cv_with_cpath" = xno; then
10583 unet_cv_with_cpath="ircd.conf"
10586 echo "$as_me:$LINENO: result: $unet_cv_with_cpath" >&5
10587 echo "${ECHO_T}$unet_cv_with_cpath" >&6
10589 if echo "$unet_cv_with_cpath" | grep '^/' > /dev/null 2>&1; then
10590 # Absolute path; check against chroot stuff
10591 if test x"$unet_cv_with_chroot" != xno; then
10592 if echo "$unet_cv_with_cpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10593 unet_cpath=`echo "$unet_cv_with_cpath" | sed "s%^$unet_cv_with_chroot%%"`
10595 { { echo "$as_me:$LINENO: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&5
10596 echo "$as_me: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&2;}
10597 { (exit 1); exit 1; }; }
10600 unet_cpath=$unet_cv_with_cpath
10603 unet_cpath=$unet_cv_with_cpath
10607 cat >>confdefs.h <<_ACEOF
10608 #define CPATH "$unet_cpath"
10612 echo "$as_me:$LINENO: checking where to put the debugging log if debugging enabled" >&5
10613 echo $ECHO_N "checking where to put the debugging log if debugging enabled... $ECHO_C" >&6
10615 # Check whether --with-lpath or --without-lpath was given.
10616 if test "${with_lpath+set}" = set; then
10617 withval="$with_lpath"
10618 unet_cv_with_lpath=$with_lpath
10620 if test "${unet_cv_with_lpath+set}" = set; then
10621 echo $ECHO_N "(cached) $ECHO_C" >&6
10623 unet_cv_with_lpath="ircd.log"
10628 if test x"$unet_cv_with_lpath" = xyes -o x"$unet_cv_with_lpath" = xno; then
10629 unet_cv_with_lpath="ircd.log"
10632 echo "$as_me:$LINENO: result: $unet_cv_with_lpath" >&5
10633 echo "${ECHO_T}$unet_cv_with_lpath" >&6
10635 if echo "$unet_cv_with_lpath" | grep '^/' > /dev/null 2>&1; then
10636 # Absolute path; check against chroot stuff
10637 if test x"$unet_cv_with_chroot" != xno; then
10638 if echo "$unet_cv_with_lpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10639 unet_lpath=`echo "$unet_cv_with_lpath" | sed "s%^$unet_cv_with_chroot%%"`
10641 { 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
10642 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;}
10643 unet_cv_with_lpath="ircd.log"
10644 unet_lpath="ircd.log"
10647 unet_lpath=$unet_cv_with_lpath
10650 unet_lpath=$unet_cv_with_lpath
10654 cat >>confdefs.h <<_ACEOF
10655 #define LPATH "$unet_lpath"
10659 unet_maxcon=`ulimit -Hn`
10660 if test x"$unet_maxcon" = xunlimited; then
10661 unet_maxcon=`ulimit -Sn`
10663 unet_maxcon=`expr $unet_maxcon - 4`
10664 echo "$as_me:$LINENO: checking max connections" >&5
10665 echo $ECHO_N "checking max connections... $ECHO_C" >&6
10667 # Check whether --with-maxcon or --without-maxcon was given.
10668 if test "${with_maxcon+set}" = set; then
10669 withval="$with_maxcon"
10670 unet_cv_with_maxcon=$with_maxcon
10672 if test "${unet_cv_with_maxcon+set}" = set; then
10673 echo $ECHO_N "(cached) $ECHO_C" >&6
10675 unet_cv_with_maxcon=$unet_maxcon
10680 if test x"$unet_cv_with_maxcon" = xyes -o x"$unet_cv_with_maxcon" = xno; then
10681 unet_cv_with_maxcon=$unet_maxcon
10684 echo "$as_me:$LINENO: result: $unet_cv_with_maxcon" >&5
10685 echo "${ECHO_T}$unet_cv_with_maxcon" >&6
10688 cat >>confdefs.h <<_ACEOF
10689 #define MAXCONNECTIONS $unet_cv_with_maxcon
10693 ac_config_files="$ac_config_files Makefile ircd/Makefile ircd/test/Makefile doc/Makefile"
10694 ac_config_commands="$ac_config_commands default"
10695 cat >confcache <<\_ACEOF
10696 # This file is a shell script that caches the results of configure
10697 # tests run on this system so they can be shared between configure
10698 # scripts and configure runs, see configure's option --config-cache.
10699 # It is not useful on other systems. If it contains results you don't
10700 # want to keep, you may remove or edit it.
10702 # config.status only pays attention to the cache file if you give it
10703 # the --recheck option to rerun configure.
10705 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10706 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10707 # following values.
10711 # The following way of writing the cache mishandles newlines in values,
10712 # but we know of no workaround that is simple, portable, and efficient.
10713 # So, don't put newlines in cache variables' values.
10714 # Ultrix sh set writes to stderr and can't be redirected directly,
10715 # and sets the high bit in the cache file unless we assign to the vars.
10718 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10720 # `set' does not quote correctly, so add quotes (double-quote
10721 # substitution turns \\\\ into \\, and sed turns \\ into \).
10724 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10727 # `set' quotes correctly as required by POSIX, so do not add quotes.
10729 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10736 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10738 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10740 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10741 if test -w $cache_file; then
10742 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10743 cat confcache >$cache_file
10745 echo "not updating unwritable cache $cache_file"
10750 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10751 # Let make expand exec_prefix.
10752 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10754 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10755 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10756 # trailing colons and then remove the whole line if VPATH becomes empty
10757 # (actually we leave an empty line to preserve line numbers).
10758 if test "x$srcdir" = x.; then
10759 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10760 s/:*\$(srcdir):*/:/;
10761 s/:*\${srcdir}:*/:/;
10763 s/^\([^=]*=[ ]*\):*/\1/;
10769 DEFS=-DHAVE_CONFIG_H
10773 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10774 # 1. Remove the extension, and $U if already installed.
10775 ac_i=`echo "$ac_i" |
10776 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10778 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10779 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10781 LIBOBJS=$ac_libobjs
10783 LTLIBOBJS=$ac_ltlibobjs
10787 : ${CONFIG_STATUS=./config.status}
10788 ac_clean_files_save=$ac_clean_files
10789 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10790 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10791 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10792 cat >$CONFIG_STATUS <<_ACEOF
10794 # Generated by $as_me.
10795 # Run this file to recreate the current configuration.
10796 # Compiler output produced by configure, useful for debugging
10797 # configure, is in config.log if it exists.
10800 ac_cs_recheck=false
10802 SHELL=\${CONFIG_SHELL-$SHELL}
10805 cat >>$CONFIG_STATUS <<\_ACEOF
10806 ## --------------------- ##
10807 ## M4sh Initialization. ##
10808 ## --------------------- ##
10810 # Be Bourne compatible
10811 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10814 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10815 # is contrary to our usage. Disable this feature.
10816 alias -g '${1+"$@"}'='"$@"'
10817 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10820 DUALCASE=1; export DUALCASE # for MKS sh
10822 # Support unset when possible.
10823 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10830 # Work around bugs in pre-3.0 UWIN ksh.
10831 $as_unset ENV MAIL MAILPATH
10838 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10839 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10840 LC_TELEPHONE LC_TIME
10842 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10843 eval $as_var=C; export $as_var
10849 # Required to use basename.
10850 if expr a : '\(a\)' >/dev/null 2>&1; then
10856 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10857 as_basename=basename
10863 # Name of the executable.
10864 as_me=`$as_basename "$0" ||
10865 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10866 X"$0" : 'X\(//\)$' \| \
10867 X"$0" : 'X\(/\)$' \| \
10868 . : '\(.\)' 2>/dev/null ||
10870 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10871 /^X\/\(\/\/\)$/{ s//\1/; q; }
10872 /^X\/\(\/\).*/{ s//\1/; q; }
10876 # PATH needs CR, and LINENO needs CR and PATH.
10877 # Avoid depending upon Character Ranges.
10878 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10879 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10880 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10881 as_cr_digits='0123456789'
10882 as_cr_alnum=$as_cr_Letters$as_cr_digits
10884 # The user is always right.
10885 if test "${PATH_SEPARATOR+set}" != set; then
10886 echo "#! /bin/sh" >conf$$.sh
10887 echo "exit 0" >>conf$$.sh
10889 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10898 as_lineno_1=$LINENO
10899 as_lineno_2=$LINENO
10900 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10901 test "x$as_lineno_1" != "x$as_lineno_2" &&
10902 test "x$as_lineno_3" = "x$as_lineno_2" || {
10903 # Find who we are. Look in the path if we contain no path at all
10906 *[\\/]* ) as_myself=$0 ;;
10907 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10908 for as_dir in $PATH
10911 test -z "$as_dir" && as_dir=.
10912 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10917 # We did not find ourselves, most probably we were run as `sh COMMAND'
10918 # in which case we are not to be found in the path.
10919 if test "x$as_myself" = x; then
10922 if test ! -f "$as_myself"; then
10923 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10924 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10925 { (exit 1); exit 1; }; }
10927 case $CONFIG_SHELL in
10929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10930 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10933 test -z "$as_dir" && as_dir=.
10934 for as_base in sh bash ksh sh5; do
10937 if ("$as_dir/$as_base" -c '
10938 as_lineno_1=$LINENO
10939 as_lineno_2=$LINENO
10940 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10941 test "x$as_lineno_1" != "x$as_lineno_2" &&
10942 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
10943 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10944 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10945 CONFIG_SHELL=$as_dir/$as_base
10946 export CONFIG_SHELL
10947 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10955 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10956 # uniformly replaced by the line number. The first 'sed' inserts a
10957 # line-number line before each line; the second 'sed' does the real
10958 # work. The second script uses 'N' to pair each line-number line
10959 # with the numbered line, and appends trailing '-' during
10960 # substitution so that $LINENO is not a special case at line end.
10961 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10962 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
10963 sed '=' <$as_myself |
10968 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10971 s,^['$as_cr_digits']*\n,,
10972 ' >$as_me.lineno &&
10973 chmod +x $as_me.lineno ||
10974 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10975 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10976 { (exit 1); exit 1; }; }
10978 # Don't try to exec as it changes $[0], causing all sort of problems
10979 # (the dirname of $[0] is not the place where we might find the
10980 # original and so on. Autoconf is especially sensible to this).
10982 # Exit status is that of the last command.
10987 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10988 *c*,-n*) ECHO_N= ECHO_C='
10990 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10991 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10994 if expr a : '\(a\)' >/dev/null 2>&1; then
11000 rm -f conf$$ conf$$.exe conf$$.file
11002 if ln -s conf$$.file conf$$ 2>/dev/null; then
11003 # We could just check for DJGPP; but this test a) works b) is more generic
11004 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11005 if test -f conf$$.exe; then
11006 # Don't use ln at all; we don't have any links
11011 elif ln conf$$.file conf$$ 2>/dev/null; then
11016 rm -f conf$$ conf$$.exe conf$$.file
11018 if mkdir -p . 2>/dev/null; then
11021 test -d ./-p && rmdir ./-p
11025 as_executable_p="test -f"
11027 # Sed expression to map a string onto a valid CPP name.
11028 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11030 # Sed expression to map a string onto a valid variable name.
11031 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11035 # We need space, tab and new line, in precisely that order.
11045 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11046 # report actual input values of CONFIG_FILES etc. instead of their
11047 # values after options handling. Logging --version etc. is OK.
11051 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11052 ## Running $as_me. ##
11057 This file was extended by $as_me, which was
11058 generated by GNU Autoconf 2.59. Invocation command line was
11060 CONFIG_FILES = $CONFIG_FILES
11061 CONFIG_HEADERS = $CONFIG_HEADERS
11062 CONFIG_LINKS = $CONFIG_LINKS
11063 CONFIG_COMMANDS = $CONFIG_COMMANDS
11067 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11071 # Files that config.status was made for.
11072 if test -n "$ac_config_files"; then
11073 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11076 if test -n "$ac_config_headers"; then
11077 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11080 if test -n "$ac_config_links"; then
11081 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11084 if test -n "$ac_config_commands"; then
11085 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11088 cat >>$CONFIG_STATUS <<\_ACEOF
11091 \`$as_me' instantiates files from templates according to the
11092 current configuration.
11094 Usage: $0 [OPTIONS] [FILE]...
11096 -h, --help print this help, then exit
11097 -V, --version print version number, then exit
11098 -q, --quiet do not print progress messages
11099 -d, --debug don't remove temporary files
11100 --recheck update $as_me by reconfiguring in the same conditions
11101 --file=FILE[:TEMPLATE]
11102 instantiate the configuration file FILE
11103 --header=FILE[:TEMPLATE]
11104 instantiate the configuration header FILE
11106 Configuration files:
11109 Configuration headers:
11112 Configuration commands:
11115 Report bugs to <bug-autoconf@gnu.org>."
11118 cat >>$CONFIG_STATUS <<_ACEOF
11121 configured by $0, generated by GNU Autoconf 2.59,
11122 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11124 Copyright (C) 2003 Free Software Foundation, Inc.
11125 This config.status script is free software; the Free Software Foundation
11126 gives unlimited permission to copy, distribute and modify it."
11131 cat >>$CONFIG_STATUS <<\_ACEOF
11132 # If no file are specified by the user, then we need to provide default
11133 # value. By we need to know if files were specified by the user.
11139 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11140 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11148 *) # This is not an option, so the user has probably given explicit
11151 ac_need_defaults=false;;
11155 # Handling of the options.
11157 cat >>$CONFIG_STATUS <<\_ACEOF
11158 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11160 --version | --vers* | -V )
11161 echo "$ac_cs_version"; exit 0 ;;
11163 # Conflict between --help and --header
11164 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11165 Try \`$0 --help' for more information." >&5
11166 echo "$as_me: error: ambiguous option: $1
11167 Try \`$0 --help' for more information." >&2;}
11168 { (exit 1); exit 1; }; };;
11169 --help | --hel | -h )
11170 echo "$ac_cs_usage"; exit 0 ;;
11171 --debug | --d* | -d )
11173 --file | --fil | --fi | --f )
11175 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11176 ac_need_defaults=false;;
11177 --header | --heade | --head | --hea )
11179 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11180 ac_need_defaults=false;;
11181 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11182 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11185 # This is an error.
11186 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11187 Try \`$0 --help' for more information." >&5
11188 echo "$as_me: error: unrecognized option: $1
11189 Try \`$0 --help' for more information." >&2;}
11190 { (exit 1); exit 1; }; } ;;
11192 *) ac_config_targets="$ac_config_targets $1" ;;
11198 ac_configure_extra_args=
11200 if $ac_cs_silent; then
11202 ac_configure_extra_args="$ac_configure_extra_args --silent"
11206 cat >>$CONFIG_STATUS <<_ACEOF
11207 if \$ac_cs_recheck; then
11208 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11209 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11218 cat >>$CONFIG_STATUS <<\_ACEOF
11219 for ac_config_target in $ac_config_targets
11221 case "$ac_config_target" in
11222 # Handling of arguments.
11223 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11224 "ircd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ircd/Makefile" ;;
11225 "ircd/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES ircd/test/Makefile" ;;
11226 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11227 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
11228 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11229 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11230 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11231 { (exit 1); exit 1; }; };;
11235 # If the user did not use the arguments to specify the items to instantiate,
11236 # then the envvar interface is used. Set only those that are not.
11237 # We use the long form for the default assignment because of an extremely
11238 # bizarre bug on SunOS 4.1.3.
11239 if $ac_need_defaults; then
11240 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11241 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11242 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11245 # Have a temporary directory for convenience. Make it in the build tree
11246 # simply because there is no reason to put it here, and in addition,
11247 # creating and moving files from /tmp can sometimes cause problems.
11248 # Create a temporary directory, and hook for its removal unless debugging.
11251 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11252 trap '{ (exit 1); exit 1; }' 1 2 13 15
11255 # Create a (secure) tmp directory for tmp files.
11258 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11259 test -n "$tmp" && test -d "$tmp"
11262 tmp=./confstat$$-$RANDOM
11263 (umask 077 && mkdir $tmp)
11266 echo "$me: cannot create a temporary directory in ." >&2
11267 { (exit 1); exit 1; }
11272 cat >>$CONFIG_STATUS <<_ACEOF
11275 # CONFIG_FILES section.
11278 # No need to generate the scripts if there are no CONFIG_FILES.
11279 # This happens for instance when ./config.status config.h
11280 if test -n "\$CONFIG_FILES"; then
11281 # Protect against being on the right side of a sed subst in config.status.
11282 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11283 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11284 s,@SHELL@,$SHELL,;t t
11285 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11286 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11287 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11288 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11289 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11290 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11291 s,@exec_prefix@,$exec_prefix,;t t
11292 s,@prefix@,$prefix,;t t
11293 s,@program_transform_name@,$program_transform_name,;t t
11294 s,@bindir@,$bindir,;t t
11295 s,@sbindir@,$sbindir,;t t
11296 s,@libexecdir@,$libexecdir,;t t
11297 s,@datadir@,$datadir,;t t
11298 s,@sysconfdir@,$sysconfdir,;t t
11299 s,@sharedstatedir@,$sharedstatedir,;t t
11300 s,@localstatedir@,$localstatedir,;t t
11301 s,@libdir@,$libdir,;t t
11302 s,@includedir@,$includedir,;t t
11303 s,@oldincludedir@,$oldincludedir,;t t
11304 s,@infodir@,$infodir,;t t
11305 s,@mandir@,$mandir,;t t
11306 s,@build_alias@,$build_alias,;t t
11307 s,@host_alias@,$host_alias,;t t
11308 s,@target_alias@,$target_alias,;t t
11309 s,@DEFS@,$DEFS,;t t
11310 s,@ECHO_C@,$ECHO_C,;t t
11311 s,@ECHO_N@,$ECHO_N,;t t
11312 s,@ECHO_T@,$ECHO_T,;t t
11313 s,@LIBS@,$LIBS,;t t
11314 s,@build@,$build,;t t
11315 s,@build_cpu@,$build_cpu,;t t
11316 s,@build_vendor@,$build_vendor,;t t
11317 s,@build_os@,$build_os,;t t
11318 s,@host@,$host,;t t
11319 s,@host_cpu@,$host_cpu,;t t
11320 s,@host_vendor@,$host_vendor,;t t
11321 s,@host_os@,$host_os,;t t
11323 s,@CFLAGS@,$CFLAGS,;t t
11324 s,@LDFLAGS@,$LDFLAGS,;t t
11325 s,@CPPFLAGS@,$CPPFLAGS,;t t
11326 s,@ac_ct_CC@,$ac_ct_CC,;t t
11327 s,@EXEEXT@,$EXEEXT,;t t
11328 s,@OBJEXT@,$OBJEXT,;t t
11330 s,@EGREP@,$EGREP,;t t
11332 s,@SET_MAKE@,$SET_MAKE,;t t
11333 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11334 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11335 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11336 s,@LN_S@,$LN_S,;t t
11337 s,@RMPROG@,$RMPROG,;t t
11338 s,@SHPROG@,$SHPROG,;t t
11340 s,@LEXLIB@,$LEXLIB,;t t
11341 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
11342 s,@YACC@,$YACC,;t t
11343 s,@ENGINE_C@,$ENGINE_C,;t t
11344 s,@INSTALL_RULE@,$INSTALL_RULE,;t t
11345 s,@SYMLINK@,$SYMLINK,;t t
11346 s,@IRCDMODE@,$IRCDMODE,;t t
11347 s,@IRCDOWN@,$IRCDOWN,;t t
11348 s,@IRCDGRP@,$IRCDGRP,;t t
11349 s,@DPATH@,$DPATH,;t t
11350 s,@LIBOBJS@,$LIBOBJS,;t t
11351 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11356 cat >>$CONFIG_STATUS <<\_ACEOF
11357 # Split the substitutions into bite-sized pieces for seds with
11358 # small command number limits, like on Digital OSF/1 and HP-UX.
11359 ac_max_sed_lines=48
11360 ac_sed_frag=1 # Number of current file.
11361 ac_beg=1 # First line for current file.
11362 ac_end=$ac_max_sed_lines # Line after last line for current file.
11365 while $ac_more_lines; do
11366 if test $ac_beg -gt 1; then
11367 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11369 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11371 if test ! -s $tmp/subs.frag; then
11372 ac_more_lines=false
11374 # The purpose of the label and of the branching condition is to
11375 # speed up the sed processing (if there are no `@' at all, there
11376 # is no need to browse any of the substitutions).
11377 # These are the two extra sed commands mentioned above.
11379 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11380 if test -z "$ac_sed_cmds"; then
11381 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11383 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11385 ac_sed_frag=`expr $ac_sed_frag + 1`
11387 ac_end=`expr $ac_end + $ac_max_sed_lines`
11390 if test -z "$ac_sed_cmds"; then
11393 fi # test -n "$CONFIG_FILES"
11396 cat >>$CONFIG_STATUS <<\_ACEOF
11397 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11398 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11400 - | *:- | *:-:* ) # input from stdin
11402 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11403 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11404 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11405 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11406 * ) ac_file_in=$ac_file.in ;;
11409 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11410 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11411 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11412 X"$ac_file" : 'X\(//\)[^/]' \| \
11413 X"$ac_file" : 'X\(//\)$' \| \
11414 X"$ac_file" : 'X\(/\)' \| \
11415 . : '\(.\)' 2>/dev/null ||
11417 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11418 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11419 /^X\(\/\/\)$/{ s//\1/; q; }
11420 /^X\(\/\).*/{ s//\1/; q; }
11422 { if $as_mkdir_p; then
11427 while test ! -d "$as_dir"; do
11428 as_dirs="$as_dir $as_dirs"
11429 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11430 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11431 X"$as_dir" : 'X\(//\)[^/]' \| \
11432 X"$as_dir" : 'X\(//\)$' \| \
11433 X"$as_dir" : 'X\(/\)' \| \
11434 . : '\(.\)' 2>/dev/null ||
11436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11437 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11438 /^X\(\/\/\)$/{ s//\1/; q; }
11439 /^X\(\/\).*/{ s//\1/; q; }
11442 test ! -n "$as_dirs" || mkdir $as_dirs
11443 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11444 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11445 { (exit 1); exit 1; }; }; }
11449 if test "$ac_dir" != .; then
11450 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11451 # A "../" for each directory in $ac_dir_suffix.
11452 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11454 ac_dir_suffix= ac_top_builddir=
11458 .) # No --srcdir option. We are building in place.
11460 if test -z "$ac_top_builddir"; then
11463 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11465 [\\/]* | ?:[\\/]* ) # Absolute path.
11466 ac_srcdir=$srcdir$ac_dir_suffix;
11467 ac_top_srcdir=$srcdir ;;
11468 *) # Relative path.
11469 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11470 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11473 # Do not use `cd foo && pwd` to compute absolute paths, because
11474 # the directories may not exist.
11476 .) ac_abs_builddir="$ac_dir";;
11479 .) ac_abs_builddir=`pwd`;;
11480 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11481 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11484 case $ac_abs_builddir in
11485 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11487 case ${ac_top_builddir}. in
11488 .) ac_abs_top_builddir=$ac_abs_builddir;;
11489 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11490 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11493 case $ac_abs_builddir in
11494 .) ac_abs_srcdir=$ac_srcdir;;
11497 .) ac_abs_srcdir=$ac_abs_builddir;;
11498 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11499 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11502 case $ac_abs_builddir in
11503 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11505 case $ac_top_srcdir in
11506 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11507 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11508 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11514 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11515 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11518 # Let's still pretend it is `configure' which instantiates (i.e., don't
11519 # use $as_me), people would be surprised to read:
11520 # /* config.h. Generated by config.status. */
11521 if test x"$ac_file" = x-; then
11524 configure_input="$ac_file. "
11526 configure_input=$configure_input"Generated from `echo $ac_file_in |
11527 sed 's,.*/,,'` by configure."
11529 # First look for the input files in the build tree, otherwise in the
11531 ac_file_inputs=`IFS=:
11532 for f in $ac_file_in; do
11534 -) echo $tmp/stdin ;;
11536 # Absolute (can't be DOS-style, as IFS=:)
11537 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11538 echo "$as_me: error: cannot find input file: $f" >&2;}
11539 { (exit 1); exit 1; }; }
11542 if test -f "$f"; then
11545 elif test -f "$srcdir/$f"; then
11550 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11551 echo "$as_me: error: cannot find input file: $f" >&2;}
11552 { (exit 1); exit 1; }; }
11555 done` || { (exit 1); exit 1; }
11557 if test x"$ac_file" != x-; then
11558 { echo "$as_me:$LINENO: creating $ac_file" >&5
11559 echo "$as_me: creating $ac_file" >&6;}
11563 cat >>$CONFIG_STATUS <<_ACEOF
11567 cat >>$CONFIG_STATUS <<\_ACEOF
11569 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11570 s,@configure_input@,$configure_input,;t t
11571 s,@srcdir@,$ac_srcdir,;t t
11572 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11573 s,@top_srcdir@,$ac_top_srcdir,;t t
11574 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11575 s,@builddir@,$ac_builddir,;t t
11576 s,@abs_builddir@,$ac_abs_builddir,;t t
11577 s,@top_builddir@,$ac_top_builddir,;t t
11578 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11579 s,@INSTALL@,$ac_INSTALL,;t t
11580 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11582 if test x"$ac_file" != x-; then
11583 mv $tmp/out $ac_file
11591 cat >>$CONFIG_STATUS <<\_ACEOF
11594 # CONFIG_HEADER section.
11597 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11598 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11600 # ac_d sets the value in "#define NAME VALUE" lines.
11601 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11602 ac_dB='[ ].*$,\1#\2'
11605 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11606 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11607 ac_uB='$,\1#\2define\3'
11611 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11612 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11614 - | *:- | *:-:* ) # input from stdin
11616 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11617 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11618 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11619 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11620 * ) ac_file_in=$ac_file.in ;;
11623 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11624 echo "$as_me: creating $ac_file" >&6;}
11626 # First look for the input files in the build tree, otherwise in the
11628 ac_file_inputs=`IFS=:
11629 for f in $ac_file_in; do
11631 -) echo $tmp/stdin ;;
11633 # Absolute (can't be DOS-style, as IFS=:)
11634 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11635 echo "$as_me: error: cannot find input file: $f" >&2;}
11636 { (exit 1); exit 1; }; }
11637 # Do quote $f, to prevent DOS paths from being IFS'd.
11640 if test -f "$f"; then
11643 elif test -f "$srcdir/$f"; then
11648 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11649 echo "$as_me: error: cannot find input file: $f" >&2;}
11650 { (exit 1); exit 1; }; }
11653 done` || { (exit 1); exit 1; }
11654 # Remove the trailing spaces.
11655 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11659 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11660 # `conftest.undefs', that substitutes the proper values into
11661 # config.h.in to produce config.h. The first handles `#define'
11662 # templates, and the second `#undef' templates.
11663 # And first: Protect against being on the right side of a sed subst in
11664 # config.status. Protect against being in an unquoted here document
11665 # in config.status.
11666 rm -f conftest.defines conftest.undefs
11667 # Using a here document instead of a string reduces the quoting nightmare.
11668 # Putting comments in sed scripts is not portable.
11670 # `end' is used to avoid that the second main sed command (meant for
11671 # 0-ary CPP macros) applies to n-ary macro definitions.
11672 # See the Autoconf documentation for `clear'.
11673 cat >confdef2sed.sed <<\_ACEOF
11678 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11680 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11683 # If some macros were called several times there might be several times
11684 # the same #defines, which is useless. Nevertheless, we may not want to
11685 # sort them, since we want the *last* AC-DEFINE to be honored.
11686 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11687 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11688 rm -f confdef2sed.sed
11690 # This sed command replaces #undef with comments. This is necessary, for
11691 # example, in the case of _POSIX_SOURCE, which is predefined and required
11692 # on some systems where configure will not decide to define it.
11693 cat >>conftest.undefs <<\_ACEOF
11694 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11697 # Break up conftest.defines because some shells have a limit on the size
11698 # of here documents, and old seds have small limits too (100 cmds).
11699 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11700 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11701 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11702 echo ' :' >>$CONFIG_STATUS
11703 rm -f conftest.tail
11704 while grep . conftest.defines >/dev/null
11706 # Write a limited-size here document to $tmp/defines.sed.
11707 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11708 # Speed up: don't consider the non `#define' lines.
11709 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11710 # Work around the forget-to-reset-the-flag bug.
11711 echo 't clr' >>$CONFIG_STATUS
11712 echo ': clr' >>$CONFIG_STATUS
11713 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11715 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11717 mv $tmp/out $tmp/in
11719 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11720 rm -f conftest.defines
11721 mv conftest.tail conftest.defines
11723 rm -f conftest.defines
11724 echo ' fi # grep' >>$CONFIG_STATUS
11725 echo >>$CONFIG_STATUS
11727 # Break up conftest.undefs because some shells have a limit on the size
11728 # of here documents, and old seds have small limits too (100 cmds).
11729 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11730 rm -f conftest.tail
11731 while grep . conftest.undefs >/dev/null
11733 # Write a limited-size here document to $tmp/undefs.sed.
11734 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11735 # Speed up: don't consider the non `#undef'
11736 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11737 # Work around the forget-to-reset-the-flag bug.
11738 echo 't clr' >>$CONFIG_STATUS
11739 echo ': clr' >>$CONFIG_STATUS
11740 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11742 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11744 mv $tmp/out $tmp/in
11746 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11747 rm -f conftest.undefs
11748 mv conftest.tail conftest.undefs
11750 rm -f conftest.undefs
11752 cat >>$CONFIG_STATUS <<\_ACEOF
11753 # Let's still pretend it is `configure' which instantiates (i.e., don't
11754 # use $as_me), people would be surprised to read:
11755 # /* config.h. Generated by config.status. */
11756 if test x"$ac_file" = x-; then
11757 echo "/* Generated by configure. */" >$tmp/config.h
11759 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11761 cat $tmp/in >>$tmp/config.h
11763 if test x"$ac_file" != x-; then
11764 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11765 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11766 echo "$as_me: $ac_file is unchanged" >&6;}
11768 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11769 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11770 X"$ac_file" : 'X\(//\)[^/]' \| \
11771 X"$ac_file" : 'X\(//\)$' \| \
11772 X"$ac_file" : 'X\(/\)' \| \
11773 . : '\(.\)' 2>/dev/null ||
11775 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11776 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11777 /^X\(\/\/\)$/{ s//\1/; q; }
11778 /^X\(\/\).*/{ s//\1/; q; }
11780 { if $as_mkdir_p; then
11785 while test ! -d "$as_dir"; do
11786 as_dirs="$as_dir $as_dirs"
11787 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11788 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11789 X"$as_dir" : 'X\(//\)[^/]' \| \
11790 X"$as_dir" : 'X\(//\)$' \| \
11791 X"$as_dir" : 'X\(/\)' \| \
11792 . : '\(.\)' 2>/dev/null ||
11794 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11795 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11796 /^X\(\/\/\)$/{ s//\1/; q; }
11797 /^X\(\/\).*/{ s//\1/; q; }
11800 test ! -n "$as_dirs" || mkdir $as_dirs
11801 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11802 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11803 { (exit 1); exit 1; }; }; }
11806 mv $tmp/config.h $ac_file
11810 rm -f $tmp/config.h
11814 cat >>$CONFIG_STATUS <<\_ACEOF
11817 # CONFIG_COMMANDS section.
11819 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11820 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11821 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11822 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11823 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11824 X"$ac_dest" : 'X\(//\)[^/]' \| \
11825 X"$ac_dest" : 'X\(//\)$' \| \
11826 X"$ac_dest" : 'X\(/\)' \| \
11827 . : '\(.\)' 2>/dev/null ||
11829 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11830 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11831 /^X\(\/\/\)$/{ s//\1/; q; }
11832 /^X\(\/\).*/{ s//\1/; q; }
11834 { if $as_mkdir_p; then
11839 while test ! -d "$as_dir"; do
11840 as_dirs="$as_dir $as_dirs"
11841 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11842 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11843 X"$as_dir" : 'X\(//\)[^/]' \| \
11844 X"$as_dir" : 'X\(//\)$' \| \
11845 X"$as_dir" : 'X\(/\)' \| \
11846 . : '\(.\)' 2>/dev/null ||
11848 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11849 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11850 /^X\(\/\/\)$/{ s//\1/; q; }
11851 /^X\(\/\).*/{ s//\1/; q; }
11854 test ! -n "$as_dirs" || mkdir $as_dirs
11855 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11856 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11857 { (exit 1); exit 1; }; }; }
11861 if test "$ac_dir" != .; then
11862 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11863 # A "../" for each directory in $ac_dir_suffix.
11864 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11866 ac_dir_suffix= ac_top_builddir=
11870 .) # No --srcdir option. We are building in place.
11872 if test -z "$ac_top_builddir"; then
11875 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11877 [\\/]* | ?:[\\/]* ) # Absolute path.
11878 ac_srcdir=$srcdir$ac_dir_suffix;
11879 ac_top_srcdir=$srcdir ;;
11880 *) # Relative path.
11881 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11882 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11885 # Do not use `cd foo && pwd` to compute absolute paths, because
11886 # the directories may not exist.
11888 .) ac_abs_builddir="$ac_dir";;
11891 .) ac_abs_builddir=`pwd`;;
11892 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11893 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11896 case $ac_abs_builddir in
11897 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11899 case ${ac_top_builddir}. in
11900 .) ac_abs_top_builddir=$ac_abs_builddir;;
11901 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11902 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11905 case $ac_abs_builddir in
11906 .) ac_abs_srcdir=$ac_srcdir;;
11909 .) ac_abs_srcdir=$ac_abs_builddir;;
11910 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11911 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11914 case $ac_abs_builddir in
11915 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11917 case $ac_top_srcdir in
11918 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11919 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11920 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11925 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11926 echo "$as_me: executing $ac_dest commands" >&6;}
11928 default ) echo timestamp > stamp-h ;;
11933 cat >>$CONFIG_STATUS <<\_ACEOF
11935 { (exit 0); exit 0; }
11937 chmod +x $CONFIG_STATUS
11938 ac_clean_files=$ac_clean_files_save
11941 # configure is writing to config.log, and then calls config.status.
11942 # config.status does its own redirection, appending to config.log.
11943 # Unfortunately, on DOS this fails, as config.log is still kept open
11944 # by configure, so config.status won't be able to write to it; its
11945 # output is simply discarded. So we exec the FD to /dev/null,
11946 # effectively closing config.log, so it can be properly (re)opened and
11947 # appended to by config.status. When coming back to configure, we
11948 # need to make the FD available again.
11949 if test "$no_create" != yes; then
11951 ac_config_status_args=
11952 test "$silent" = yes &&
11953 ac_config_status_args="$ac_config_status_args --quiet"
11955 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11957 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11958 # would make configure fail if this is the last instruction.
11959 $ac_cs_success || { (exit 1); exit 1; }
11963 ac_config_commands="$ac_config_commands default-1"