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 --disable-symbols Disable debugging symbols (remove -g from CFLAGS)
853 --enable-profile Enable profiling support (add -pg to CFLAGS)
854 --enable-pedantic Enable pedantic warnings (add -pedantic to CFLAGS)
855 --enable-warnings Enable warnings (add -Wall to CFLAGS)
856 --disable-inlines Disable inlining for a few critical functions
857 --disable-devpoll Disable the /dev/poll-based engine
858 --disable-kqueue Disable the kqueue-based engine
859 --disable-epoll Disable the epoll-based engine
862 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
863 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
864 --with-optimization=-O2 Explicitly set the compiler optimization flags
866 --with-leak-detect Turn on the leak detector(requires patched boehm)
867 --without-ipv6 disable IPv6 support (default is autodetect)
868 --with-symlink=name Name to give the symlink; if name is "no," no
869 symlink will be created.
870 --with-mode=mode Permissions (in octal) to give the binary
871 --with-owner=owner Specify owner of the installed binary
872 --with-group=group Specify group owner of the installed binary
873 --with-domain=domain Domain name to use in local statistics gathering
874 --with-chroot=dir Specify that the server will be operated under
875 a different root directory given by dir. See
876 doc/readme.chroot for more information.
877 --with-dpath=dir Directory for all server data files
878 --with-cpath=file Set server configuration file
879 --with-lpath=file Set the debugging log file
880 --with-maxcon=maxcon Maximum number of connections server will accept
882 Some influential environment variables:
883 CC C compiler command
884 CFLAGS C compiler flags
885 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
886 nonstandard directory <lib dir>
887 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
888 headers in a nonstandard directory <include dir>
891 Use these variables to override the choices made by `configure' or to help
892 it to find libraries and programs with nonstandard names/locations.
897 if test "$ac_init_help" = "recursive"; then
898 # If there are subdirs, report their specific --help.
900 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
901 test -d $ac_dir || continue
904 if test "$ac_dir" != .; then
905 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
906 # A "../" for each directory in $ac_dir_suffix.
907 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
909 ac_dir_suffix= ac_top_builddir=
913 .) # No --srcdir option. We are building in place.
915 if test -z "$ac_top_builddir"; then
918 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
920 [\\/]* | ?:[\\/]* ) # Absolute path.
921 ac_srcdir=$srcdir$ac_dir_suffix;
922 ac_top_srcdir=$srcdir ;;
924 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
925 ac_top_srcdir=$ac_top_builddir$srcdir ;;
928 # Do not use `cd foo && pwd` to compute absolute paths, because
929 # the directories may not exist.
931 .) ac_abs_builddir="$ac_dir";;
934 .) ac_abs_builddir=`pwd`;;
935 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
936 *) ac_abs_builddir=`pwd`/"$ac_dir";;
939 case $ac_abs_builddir in
940 .) ac_abs_top_builddir=${ac_top_builddir}.;;
942 case ${ac_top_builddir}. in
943 .) ac_abs_top_builddir=$ac_abs_builddir;;
944 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
945 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
948 case $ac_abs_builddir in
949 .) ac_abs_srcdir=$ac_srcdir;;
952 .) ac_abs_srcdir=$ac_abs_builddir;;
953 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
954 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
957 case $ac_abs_builddir in
958 .) ac_abs_top_srcdir=$ac_top_srcdir;;
960 case $ac_top_srcdir in
961 .) ac_abs_top_srcdir=$ac_abs_builddir;;
962 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
963 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
968 # Check for guested configure; otherwise get Cygnus style configure.
969 if test -f $ac_srcdir/configure.gnu; then
971 $SHELL $ac_srcdir/configure.gnu --help=recursive
972 elif test -f $ac_srcdir/configure; then
974 $SHELL $ac_srcdir/configure --help=recursive
975 elif test -f $ac_srcdir/configure.ac ||
976 test -f $ac_srcdir/configure.in; then
980 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
986 test -n "$ac_init_help" && exit 0
987 if $ac_init_version; then
990 Copyright (C) 2003 Free Software Foundation, Inc.
991 This configure script is free software; the Free Software Foundation
992 gives unlimited permission to copy, distribute and modify it.
998 This file contains any messages produced by compilers while
999 running configure, to aid debugging if configure makes a mistake.
1001 It was created by $as_me, which was
1002 generated by GNU Autoconf 2.59. Invocation command line was
1013 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1014 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1015 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1016 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1017 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1019 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1020 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1022 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1023 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1024 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1025 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1026 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1027 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1028 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1036 test -z "$as_dir" && as_dir=.
1037 echo "PATH: $as_dir"
1052 # Keep a trace of the command line.
1053 # Strip out --no-create and --no-recursion so they do not pile up.
1054 # Strip out --silent because we don't want to record it for future runs.
1055 # Also quote any args containing shell meta-characters.
1056 # Make two passes to allow for proper duplicate-argument suppression.
1061 ac_must_keep_next=false
1067 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1068 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1069 | -silent | --silent | --silen | --sile | --sil)
1071 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1072 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1075 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1077 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1078 if test $ac_must_keep_next = true; then
1079 ac_must_keep_next=false # Got value, back to normal.
1082 *=* | --config-cache | -C | -disable-* | --disable-* \
1083 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1084 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1085 | -with-* | --with-* | -without-* | --without-* | --x)
1086 case "$ac_configure_args0 " in
1087 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1090 -* ) ac_must_keep_next=true ;;
1093 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1094 # Get rid of the leading space.
1100 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1101 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1103 # When interrupted or exit'd, cleanup temporary files, and complete
1104 # config.log. We remove comments because anyway the quotes in there
1105 # would cause problems or look ugly.
1106 # WARNING: Be sure not to use single quotes in there, as some shells,
1107 # such as our DU 5.0 friend, will then `close' the trap.
1108 trap 'exit_status=$?
1109 # Save into config.log some information that might help in debugging.
1114 ## ---------------- ##
1115 ## Cache variables. ##
1116 ## ---------------- ##
1119 # The following way of writing the cache mishandles newlines in values,
1122 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1125 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1126 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1130 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1137 ## ----------------- ##
1138 ## Output variables. ##
1139 ## ----------------- ##
1142 for ac_var in $ac_subst_vars
1144 eval ac_val=$`echo $ac_var`
1145 echo "$ac_var='"'"'$ac_val'"'"'"
1149 if test -n "$ac_subst_files"; then
1156 for ac_var in $ac_subst_files
1158 eval ac_val=$`echo $ac_var`
1159 echo "$ac_var='"'"'$ac_val'"'"'"
1164 if test -s confdefs.h; then
1171 sed "/^$/d" confdefs.h | sort
1174 test "$ac_signal" != 0 &&
1175 echo "$as_me: caught signal $ac_signal"
1176 echo "$as_me: exit $exit_status"
1178 rm -f core *.core &&
1179 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1182 for ac_signal in 1 2 13 15; do
1183 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1187 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1188 rm -rf conftest* confdefs.h
1189 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1192 # Predefined preprocessor variables.
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_NAME "$PACKAGE_NAME"
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_STRING "$PACKAGE_STRING"
1214 cat >>confdefs.h <<_ACEOF
1215 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1219 # Let the site file select an alternate cache file if it wants to.
1220 # Prefer explicitly selected file to automatically selected ones.
1221 if test -z "$CONFIG_SITE"; then
1222 if test "x$prefix" != xNONE; then
1223 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1225 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1228 for ac_site_file in $CONFIG_SITE; do
1229 if test -r "$ac_site_file"; then
1230 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1231 echo "$as_me: loading site script $ac_site_file" >&6;}
1232 sed 's/^/| /' "$ac_site_file" >&5
1237 if test -r "$cache_file"; then
1238 # Some versions of bash will fail to source /dev/null (special
1239 # files actually), so we avoid doing that.
1240 if test -f "$cache_file"; then
1241 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1242 echo "$as_me: loading cache $cache_file" >&6;}
1244 [\\/]* | ?:[\\/]* ) . $cache_file;;
1245 *) . ./$cache_file;;
1249 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1250 echo "$as_me: creating cache $cache_file" >&6;}
1254 # Check that the precious variables saved in the cache have kept the same
1256 ac_cache_corrupted=false
1257 for ac_var in `(set) 2>&1 |
1258 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1259 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1260 eval ac_new_set=\$ac_env_${ac_var}_set
1261 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1262 eval ac_new_val="\$ac_env_${ac_var}_value"
1263 case $ac_old_set,$ac_new_set in
1265 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1266 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1267 ac_cache_corrupted=: ;;
1269 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1270 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1271 ac_cache_corrupted=: ;;
1274 if test "x$ac_old_val" != "x$ac_new_val"; then
1275 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1276 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1277 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1278 echo "$as_me: former value: $ac_old_val" >&2;}
1279 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1280 echo "$as_me: current value: $ac_new_val" >&2;}
1281 ac_cache_corrupted=:
1284 # Pass precious variables to config.status.
1285 if test "$ac_new_set" = set; then
1287 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1288 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1289 *) ac_arg=$ac_var=$ac_new_val ;;
1291 case " $ac_configure_args " in
1292 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1293 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1297 if $ac_cache_corrupted; then
1298 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1299 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1300 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1301 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1302 { (exit 1); exit 1; }; }
1306 ac_cpp='$CPP $CPPFLAGS'
1307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1331 echo "$as_me:$LINENO: checking for installation prefix" >&5
1332 echo $ECHO_N "checking for installation prefix... $ECHO_C" >&6
1333 if test "${unet_cv_prefix+set}" = set; then
1334 echo $ECHO_N "(cached) $ECHO_C" >&6
1336 unet_cv_prefix=$HOME
1339 if test x"$prefix" != xNONE; then
1340 unet_cv_prefix=$prefix
1342 echo "$as_me:$LINENO: result: $unet_cv_prefix" >&5
1343 echo "${ECHO_T}$unet_cv_prefix" >&6
1344 ac_default_prefix=$unet_cv_prefix
1346 ac_config_headers="$ac_config_headers config.h"
1352 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1353 if test -f $ac_dir/install-sh; then
1355 ac_install_sh="$ac_aux_dir/install-sh -c"
1357 elif test -f $ac_dir/install.sh; then
1359 ac_install_sh="$ac_aux_dir/install.sh -c"
1361 elif test -f $ac_dir/shtool; then
1363 ac_install_sh="$ac_aux_dir/shtool install -c"
1367 if test -z "$ac_aux_dir"; then
1368 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1369 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1370 { (exit 1); exit 1; }; }
1372 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1373 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1374 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1376 # Make sure we can run config.sub.
1377 $ac_config_sub sun4 >/dev/null 2>&1 ||
1378 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1379 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1380 { (exit 1); exit 1; }; }
1382 echo "$as_me:$LINENO: checking build system type" >&5
1383 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1384 if test "${ac_cv_build+set}" = set; then
1385 echo $ECHO_N "(cached) $ECHO_C" >&6
1387 ac_cv_build_alias=$build_alias
1388 test -z "$ac_cv_build_alias" &&
1389 ac_cv_build_alias=`$ac_config_guess`
1390 test -z "$ac_cv_build_alias" &&
1391 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1392 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1393 { (exit 1); exit 1; }; }
1394 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1395 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1396 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1397 { (exit 1); exit 1; }; }
1400 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1401 echo "${ECHO_T}$ac_cv_build" >&6
1403 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1404 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1405 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1408 echo "$as_me:$LINENO: checking host system type" >&5
1409 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1410 if test "${ac_cv_host+set}" = set; then
1411 echo $ECHO_N "(cached) $ECHO_C" >&6
1413 ac_cv_host_alias=$host_alias
1414 test -z "$ac_cv_host_alias" &&
1415 ac_cv_host_alias=$ac_cv_build_alias
1416 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1417 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1418 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1419 { (exit 1); exit 1; }; }
1422 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1423 echo "${ECHO_T}$ac_cv_host" >&6
1425 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1426 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1427 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1432 ac_cpp='$CPP $CPPFLAGS'
1433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1436 if test -n "$ac_tool_prefix"; then
1437 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1438 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1439 echo "$as_me:$LINENO: checking for $ac_word" >&5
1440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1441 if test "${ac_cv_prog_CC+set}" = set; then
1442 echo $ECHO_N "(cached) $ECHO_C" >&6
1444 if test -n "$CC"; then
1445 ac_cv_prog_CC="$CC" # Let the user override the test.
1447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1451 test -z "$as_dir" && as_dir=.
1452 for ac_exec_ext in '' $ac_executable_extensions; do
1453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1454 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1464 if test -n "$CC"; then
1465 echo "$as_me:$LINENO: result: $CC" >&5
1466 echo "${ECHO_T}$CC" >&6
1468 echo "$as_me:$LINENO: result: no" >&5
1469 echo "${ECHO_T}no" >&6
1473 if test -z "$ac_cv_prog_CC"; then
1475 # Extract the first word of "gcc", so it can be a program name with args.
1476 set dummy gcc; ac_word=$2
1477 echo "$as_me:$LINENO: checking for $ac_word" >&5
1478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1479 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1480 echo $ECHO_N "(cached) $ECHO_C" >&6
1482 if test -n "$ac_ct_CC"; then
1483 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1489 test -z "$as_dir" && as_dir=.
1490 for ac_exec_ext in '' $ac_executable_extensions; do
1491 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1492 ac_cv_prog_ac_ct_CC="gcc"
1493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1501 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1502 if test -n "$ac_ct_CC"; then
1503 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1504 echo "${ECHO_T}$ac_ct_CC" >&6
1506 echo "$as_me:$LINENO: result: no" >&5
1507 echo "${ECHO_T}no" >&6
1515 if test -z "$CC"; then
1516 if test -n "$ac_tool_prefix"; then
1517 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1518 set dummy ${ac_tool_prefix}cc; ac_word=$2
1519 echo "$as_me:$LINENO: checking for $ac_word" >&5
1520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1521 if test "${ac_cv_prog_CC+set}" = set; then
1522 echo $ECHO_N "(cached) $ECHO_C" >&6
1524 if test -n "$CC"; then
1525 ac_cv_prog_CC="$CC" # Let the user override the test.
1527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1531 test -z "$as_dir" && as_dir=.
1532 for ac_exec_ext in '' $ac_executable_extensions; do
1533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1534 ac_cv_prog_CC="${ac_tool_prefix}cc"
1535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1544 if test -n "$CC"; then
1545 echo "$as_me:$LINENO: result: $CC" >&5
1546 echo "${ECHO_T}$CC" >&6
1548 echo "$as_me:$LINENO: result: no" >&5
1549 echo "${ECHO_T}no" >&6
1553 if test -z "$ac_cv_prog_CC"; then
1555 # Extract the first word of "cc", so it can be a program name with args.
1556 set dummy cc; ac_word=$2
1557 echo "$as_me:$LINENO: checking for $ac_word" >&5
1558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1559 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1560 echo $ECHO_N "(cached) $ECHO_C" >&6
1562 if test -n "$ac_ct_CC"; then
1563 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1569 test -z "$as_dir" && as_dir=.
1570 for ac_exec_ext in '' $ac_executable_extensions; do
1571 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1572 ac_cv_prog_ac_ct_CC="cc"
1573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1581 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1582 if test -n "$ac_ct_CC"; then
1583 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1584 echo "${ECHO_T}$ac_ct_CC" >&6
1586 echo "$as_me:$LINENO: result: no" >&5
1587 echo "${ECHO_T}no" >&6
1596 if test -z "$CC"; then
1597 # Extract the first word of "cc", so it can be a program name with args.
1598 set dummy cc; ac_word=$2
1599 echo "$as_me:$LINENO: checking for $ac_word" >&5
1600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1601 if test "${ac_cv_prog_CC+set}" = set; then
1602 echo $ECHO_N "(cached) $ECHO_C" >&6
1604 if test -n "$CC"; then
1605 ac_cv_prog_CC="$CC" # Let the user override the test.
1608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1612 test -z "$as_dir" && as_dir=.
1613 for ac_exec_ext in '' $ac_executable_extensions; do
1614 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1615 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1616 ac_prog_rejected=yes
1620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1626 if test $ac_prog_rejected = yes; then
1627 # We found a bogon in the path, so make sure we never use it.
1628 set dummy $ac_cv_prog_CC
1630 if test $# != 0; then
1631 # We chose a different compiler from the bogus one.
1632 # However, it has the same basename, so the bogon will be chosen
1633 # first if we set CC to just the basename; use the full file name.
1635 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1641 if test -n "$CC"; then
1642 echo "$as_me:$LINENO: result: $CC" >&5
1643 echo "${ECHO_T}$CC" >&6
1645 echo "$as_me:$LINENO: result: no" >&5
1646 echo "${ECHO_T}no" >&6
1650 if test -z "$CC"; then
1651 if test -n "$ac_tool_prefix"; then
1654 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1655 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1656 echo "$as_me:$LINENO: checking for $ac_word" >&5
1657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1658 if test "${ac_cv_prog_CC+set}" = set; then
1659 echo $ECHO_N "(cached) $ECHO_C" >&6
1661 if test -n "$CC"; then
1662 ac_cv_prog_CC="$CC" # Let the user override the test.
1664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1668 test -z "$as_dir" && as_dir=.
1669 for ac_exec_ext in '' $ac_executable_extensions; do
1670 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1671 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1681 if test -n "$CC"; then
1682 echo "$as_me:$LINENO: result: $CC" >&5
1683 echo "${ECHO_T}$CC" >&6
1685 echo "$as_me:$LINENO: result: no" >&5
1686 echo "${ECHO_T}no" >&6
1689 test -n "$CC" && break
1692 if test -z "$CC"; then
1696 # Extract the first word of "$ac_prog", so it can be a program name with args.
1697 set dummy $ac_prog; ac_word=$2
1698 echo "$as_me:$LINENO: checking for $ac_word" >&5
1699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1700 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1701 echo $ECHO_N "(cached) $ECHO_C" >&6
1703 if test -n "$ac_ct_CC"; then
1704 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1710 test -z "$as_dir" && as_dir=.
1711 for ac_exec_ext in '' $ac_executable_extensions; do
1712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1713 ac_cv_prog_ac_ct_CC="$ac_prog"
1714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1722 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1723 if test -n "$ac_ct_CC"; then
1724 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1725 echo "${ECHO_T}$ac_ct_CC" >&6
1727 echo "$as_me:$LINENO: result: no" >&5
1728 echo "${ECHO_T}no" >&6
1731 test -n "$ac_ct_CC" && break
1740 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1741 See \`config.log' for more details." >&5
1742 echo "$as_me: error: no acceptable C compiler found in \$PATH
1743 See \`config.log' for more details." >&2;}
1744 { (exit 1); exit 1; }; }
1746 # Provide some information about the compiler.
1747 echo "$as_me:$LINENO:" \
1748 "checking for C compiler version" >&5
1749 ac_compiler=`set X $ac_compile; echo $2`
1750 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1751 (eval $ac_compiler --version </dev/null >&5) 2>&5
1753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1754 (exit $ac_status); }
1755 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1756 (eval $ac_compiler -v </dev/null >&5) 2>&5
1758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1759 (exit $ac_status); }
1760 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1761 (eval $ac_compiler -V </dev/null >&5) 2>&5
1763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1764 (exit $ac_status); }
1766 cat >conftest.$ac_ext <<_ACEOF
1769 cat confdefs.h >>conftest.$ac_ext
1770 cat >>conftest.$ac_ext <<_ACEOF
1771 /* end confdefs.h. */
1781 ac_clean_files_save=$ac_clean_files
1782 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1783 # Try to create an executable without -o first, disregard a.out.
1784 # It will help us diagnose broken compilers, and finding out an intuition
1786 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1787 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1788 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1789 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1790 (eval $ac_link_default) 2>&5
1792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1793 (exit $ac_status); }; then
1794 # Find the output, starting from the most likely. This scheme is
1795 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1798 # Be careful to initialize this variable, since it used to be cached.
1799 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1801 # b.out is created by i960 compilers.
1802 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1804 test -f "$ac_file" || continue
1806 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1809 # This is the source file.
1812 # We found the default executable, but exeext='' is most
1816 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1817 # FIXME: I believe we export ac_cv_exeext for Libtool,
1818 # but it would be cool to find out if it's true. Does anybody
1819 # maintain Libtool? --akim.
1827 echo "$as_me: failed program was:" >&5
1828 sed 's/^/| /' conftest.$ac_ext >&5
1830 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1831 See \`config.log' for more details." >&5
1832 echo "$as_me: error: C compiler cannot create executables
1833 See \`config.log' for more details." >&2;}
1834 { (exit 77); exit 77; }; }
1837 ac_exeext=$ac_cv_exeext
1838 echo "$as_me:$LINENO: result: $ac_file" >&5
1839 echo "${ECHO_T}$ac_file" >&6
1841 # Check the compiler produces executables we can run. If not, either
1842 # the compiler is broken, or we cross compile.
1843 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1844 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1845 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1846 # If not cross compiling, check that we can run a simple program.
1847 if test "$cross_compiling" != yes; then
1848 if { ac_try='./$ac_file'
1849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1853 (exit $ac_status); }; }; then
1856 if test "$cross_compiling" = maybe; then
1859 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1860 If you meant to cross compile, use \`--host'.
1861 See \`config.log' for more details." >&5
1862 echo "$as_me: error: cannot run C compiled programs.
1863 If you meant to cross compile, use \`--host'.
1864 See \`config.log' for more details." >&2;}
1865 { (exit 1); exit 1; }; }
1869 echo "$as_me:$LINENO: result: yes" >&5
1870 echo "${ECHO_T}yes" >&6
1872 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1873 ac_clean_files=$ac_clean_files_save
1874 # Check the compiler produces executables we can run. If not, either
1875 # the compiler is broken, or we cross compile.
1876 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1877 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1878 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1879 echo "${ECHO_T}$cross_compiling" >&6
1881 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1882 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1884 (eval $ac_link) 2>&5
1886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1887 (exit $ac_status); }; then
1888 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1889 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1890 # work properly (i.e., refer to `conftest.exe'), while it won't with
1892 for ac_file in conftest.exe conftest conftest.*; do
1893 test -f "$ac_file" || continue
1895 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1896 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1903 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1904 See \`config.log' for more details." >&5
1905 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1906 See \`config.log' for more details." >&2;}
1907 { (exit 1); exit 1; }; }
1910 rm -f conftest$ac_cv_exeext
1911 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1912 echo "${ECHO_T}$ac_cv_exeext" >&6
1914 rm -f conftest.$ac_ext
1915 EXEEXT=$ac_cv_exeext
1917 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1918 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1919 if test "${ac_cv_objext+set}" = set; then
1920 echo $ECHO_N "(cached) $ECHO_C" >&6
1922 cat >conftest.$ac_ext <<_ACEOF
1925 cat confdefs.h >>conftest.$ac_ext
1926 cat >>conftest.$ac_ext <<_ACEOF
1927 /* end confdefs.h. */
1937 rm -f conftest.o conftest.obj
1938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1939 (eval $ac_compile) 2>&5
1941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1942 (exit $ac_status); }; then
1943 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1945 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1946 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1951 echo "$as_me: failed program was:" >&5
1952 sed 's/^/| /' conftest.$ac_ext >&5
1954 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1955 See \`config.log' for more details." >&5
1956 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1957 See \`config.log' for more details." >&2;}
1958 { (exit 1); exit 1; }; }
1961 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1963 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1964 echo "${ECHO_T}$ac_cv_objext" >&6
1965 OBJEXT=$ac_cv_objext
1967 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1968 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1969 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1970 echo $ECHO_N "(cached) $ECHO_C" >&6
1972 cat >conftest.$ac_ext <<_ACEOF
1975 cat confdefs.h >>conftest.$ac_ext
1976 cat >>conftest.$ac_ext <<_ACEOF
1977 /* end confdefs.h. */
1990 rm -f conftest.$ac_objext
1991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1992 (eval $ac_compile) 2>conftest.er1
1994 grep -v '^ *+' conftest.er1 >conftest.err
1996 cat conftest.err >&5
1997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998 (exit $ac_status); } &&
1999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004 (exit $ac_status); }; } &&
2005 { ac_try='test -s conftest.$ac_objext'
2006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2010 (exit $ac_status); }; }; then
2013 echo "$as_me: failed program was:" >&5
2014 sed 's/^/| /' conftest.$ac_ext >&5
2018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2019 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2022 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2023 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2024 GCC=`test $ac_compiler_gnu = yes && echo yes`
2025 ac_test_CFLAGS=${CFLAGS+set}
2026 ac_save_CFLAGS=$CFLAGS
2028 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2029 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2030 if test "${ac_cv_prog_cc_g+set}" = set; then
2031 echo $ECHO_N "(cached) $ECHO_C" >&6
2033 cat >conftest.$ac_ext <<_ACEOF
2036 cat confdefs.h >>conftest.$ac_ext
2037 cat >>conftest.$ac_ext <<_ACEOF
2038 /* end confdefs.h. */
2048 rm -f conftest.$ac_objext
2049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2050 (eval $ac_compile) 2>conftest.er1
2052 grep -v '^ *+' conftest.er1 >conftest.err
2054 cat conftest.err >&5
2055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2056 (exit $ac_status); } &&
2057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062 (exit $ac_status); }; } &&
2063 { ac_try='test -s conftest.$ac_objext'
2064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2068 (exit $ac_status); }; }; then
2071 echo "$as_me: failed program was:" >&5
2072 sed 's/^/| /' conftest.$ac_ext >&5
2076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2078 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2079 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2080 if test "$ac_test_CFLAGS" = set; then
2081 CFLAGS=$ac_save_CFLAGS
2082 elif test $ac_cv_prog_cc_g = yes; then
2083 if test "$GCC" = yes; then
2089 if test "$GCC" = yes; then
2095 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2096 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2097 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2098 echo $ECHO_N "(cached) $ECHO_C" >&6
2100 ac_cv_prog_cc_stdc=no
2102 cat >conftest.$ac_ext <<_ACEOF
2105 cat confdefs.h >>conftest.$ac_ext
2106 cat >>conftest.$ac_ext <<_ACEOF
2107 /* end confdefs.h. */
2110 #include <sys/types.h>
2111 #include <sys/stat.h>
2112 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2113 struct buf { int x; };
2114 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2115 static char *e (p, i)
2121 static char *f (char * (*g) (char **, int), char **p, ...)
2126 s = g (p, va_arg (v,int));
2131 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2132 function prototypes and stuff, but not '\xHH' hex character constants.
2133 These don't provoke an error unfortunately, instead are silently treated
2134 as 'x'. The following induces an error, until -std1 is added to get
2135 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2136 array size at least. It's necessary to write '\x00'==0 to get something
2137 that's true only with -std1. */
2138 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2140 int test (int i, double x);
2141 struct s1 {int (*f) (int a);};
2142 struct s2 {int (*f) (double a);};
2143 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2149 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2154 # Don't try gcc -ansi; that turns off useful extensions and
2155 # breaks some systems' header files.
2156 # AIX -qlanglvl=ansi
2157 # Ultrix and OSF/1 -std1
2158 # HP-UX 10.20 and later -Ae
2159 # HP-UX older versions -Aa -D_HPUX_SOURCE
2160 # SVR4 -Xc -D__EXTENSIONS__
2161 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2163 CC="$ac_save_CC $ac_arg"
2164 rm -f conftest.$ac_objext
2165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2166 (eval $ac_compile) 2>conftest.er1
2168 grep -v '^ *+' conftest.er1 >conftest.err
2170 cat conftest.err >&5
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); } &&
2173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); }; } &&
2179 { ac_try='test -s conftest.$ac_objext'
2180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); }; }; then
2185 ac_cv_prog_cc_stdc=$ac_arg
2188 echo "$as_me: failed program was:" >&5
2189 sed 's/^/| /' conftest.$ac_ext >&5
2192 rm -f conftest.err conftest.$ac_objext
2194 rm -f conftest.$ac_ext conftest.$ac_objext
2199 case "x$ac_cv_prog_cc_stdc" in
2201 echo "$as_me:$LINENO: result: none needed" >&5
2202 echo "${ECHO_T}none needed" >&6 ;;
2204 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2205 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2206 CC="$CC $ac_cv_prog_cc_stdc" ;;
2209 # Some people use a C++ compiler to compile C. Since we use `exit',
2210 # in C++ we need to declare it. In case someone uses the same compiler
2211 # for both compiling C and C++ we need to have the C++ compiler decide
2212 # the declaration of exit, since it's the most demanding environment.
2213 cat >conftest.$ac_ext <<_ACEOF
2218 rm -f conftest.$ac_objext
2219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2220 (eval $ac_compile) 2>conftest.er1
2222 grep -v '^ *+' conftest.er1 >conftest.err
2224 cat conftest.err >&5
2225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226 (exit $ac_status); } &&
2227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232 (exit $ac_status); }; } &&
2233 { ac_try='test -s conftest.$ac_objext'
2234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238 (exit $ac_status); }; }; then
2239 for ac_declaration in \
2241 'extern "C" void std::exit (int) throw (); using std::exit;' \
2242 'extern "C" void std::exit (int); using std::exit;' \
2243 'extern "C" void exit (int) throw ();' \
2244 'extern "C" void exit (int);' \
2247 cat >conftest.$ac_ext <<_ACEOF
2250 cat confdefs.h >>conftest.$ac_ext
2251 cat >>conftest.$ac_ext <<_ACEOF
2252 /* end confdefs.h. */
2263 rm -f conftest.$ac_objext
2264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2265 (eval $ac_compile) 2>conftest.er1
2267 grep -v '^ *+' conftest.er1 >conftest.err
2269 cat conftest.err >&5
2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271 (exit $ac_status); } &&
2272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); }; } &&
2278 { ac_try='test -s conftest.$ac_objext'
2279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283 (exit $ac_status); }; }; then
2286 echo "$as_me: failed program was:" >&5
2287 sed 's/^/| /' conftest.$ac_ext >&5
2291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2292 cat >conftest.$ac_ext <<_ACEOF
2295 cat confdefs.h >>conftest.$ac_ext
2296 cat >>conftest.$ac_ext <<_ACEOF
2297 /* end confdefs.h. */
2307 rm -f conftest.$ac_objext
2308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2309 (eval $ac_compile) 2>conftest.er1
2311 grep -v '^ *+' conftest.er1 >conftest.err
2313 cat conftest.err >&5
2314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315 (exit $ac_status); } &&
2316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321 (exit $ac_status); }; } &&
2322 { ac_try='test -s conftest.$ac_objext'
2323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327 (exit $ac_status); }; }; then
2330 echo "$as_me: failed program was:" >&5
2331 sed 's/^/| /' conftest.$ac_ext >&5
2334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2337 if test -n "$ac_declaration"; then
2338 echo '#ifdef __cplusplus' >>confdefs.h
2339 echo $ac_declaration >>confdefs.h
2340 echo '#endif' >>confdefs.h
2344 echo "$as_me: failed program was:" >&5
2345 sed 's/^/| /' conftest.$ac_ext >&5
2348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2350 ac_cpp='$CPP $CPPFLAGS'
2351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2357 ac_cpp='$CPP $CPPFLAGS'
2358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2361 if test -n "$ac_tool_prefix"; then
2362 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2363 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2364 echo "$as_me:$LINENO: checking for $ac_word" >&5
2365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2366 if test "${ac_cv_prog_CC+set}" = set; then
2367 echo $ECHO_N "(cached) $ECHO_C" >&6
2369 if test -n "$CC"; then
2370 ac_cv_prog_CC="$CC" # Let the user override the test.
2372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2376 test -z "$as_dir" && as_dir=.
2377 for ac_exec_ext in '' $ac_executable_extensions; do
2378 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2379 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2389 if test -n "$CC"; then
2390 echo "$as_me:$LINENO: result: $CC" >&5
2391 echo "${ECHO_T}$CC" >&6
2393 echo "$as_me:$LINENO: result: no" >&5
2394 echo "${ECHO_T}no" >&6
2398 if test -z "$ac_cv_prog_CC"; then
2400 # Extract the first word of "gcc", so it can be a program name with args.
2401 set dummy gcc; ac_word=$2
2402 echo "$as_me:$LINENO: checking for $ac_word" >&5
2403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2404 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2405 echo $ECHO_N "(cached) $ECHO_C" >&6
2407 if test -n "$ac_ct_CC"; then
2408 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2414 test -z "$as_dir" && as_dir=.
2415 for ac_exec_ext in '' $ac_executable_extensions; do
2416 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2417 ac_cv_prog_ac_ct_CC="gcc"
2418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2426 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2427 if test -n "$ac_ct_CC"; then
2428 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2429 echo "${ECHO_T}$ac_ct_CC" >&6
2431 echo "$as_me:$LINENO: result: no" >&5
2432 echo "${ECHO_T}no" >&6
2440 if test -z "$CC"; then
2441 if test -n "$ac_tool_prefix"; then
2442 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2443 set dummy ${ac_tool_prefix}cc; ac_word=$2
2444 echo "$as_me:$LINENO: checking for $ac_word" >&5
2445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2446 if test "${ac_cv_prog_CC+set}" = set; then
2447 echo $ECHO_N "(cached) $ECHO_C" >&6
2449 if test -n "$CC"; then
2450 ac_cv_prog_CC="$CC" # Let the user override the test.
2452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456 test -z "$as_dir" && as_dir=.
2457 for ac_exec_ext in '' $ac_executable_extensions; do
2458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2459 ac_cv_prog_CC="${ac_tool_prefix}cc"
2460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2469 if test -n "$CC"; then
2470 echo "$as_me:$LINENO: result: $CC" >&5
2471 echo "${ECHO_T}$CC" >&6
2473 echo "$as_me:$LINENO: result: no" >&5
2474 echo "${ECHO_T}no" >&6
2478 if test -z "$ac_cv_prog_CC"; then
2480 # Extract the first word of "cc", so it can be a program name with args.
2481 set dummy cc; ac_word=$2
2482 echo "$as_me:$LINENO: checking for $ac_word" >&5
2483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2484 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2485 echo $ECHO_N "(cached) $ECHO_C" >&6
2487 if test -n "$ac_ct_CC"; then
2488 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494 test -z "$as_dir" && as_dir=.
2495 for ac_exec_ext in '' $ac_executable_extensions; do
2496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2497 ac_cv_prog_ac_ct_CC="cc"
2498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2506 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2507 if test -n "$ac_ct_CC"; then
2508 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2509 echo "${ECHO_T}$ac_ct_CC" >&6
2511 echo "$as_me:$LINENO: result: no" >&5
2512 echo "${ECHO_T}no" >&6
2521 if test -z "$CC"; then
2522 # Extract the first word of "cc", so it can be a program name with args.
2523 set dummy cc; ac_word=$2
2524 echo "$as_me:$LINENO: checking for $ac_word" >&5
2525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2526 if test "${ac_cv_prog_CC+set}" = set; then
2527 echo $ECHO_N "(cached) $ECHO_C" >&6
2529 if test -n "$CC"; then
2530 ac_cv_prog_CC="$CC" # Let the user override the test.
2533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2537 test -z "$as_dir" && as_dir=.
2538 for ac_exec_ext in '' $ac_executable_extensions; do
2539 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2540 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2541 ac_prog_rejected=yes
2545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2551 if test $ac_prog_rejected = yes; then
2552 # We found a bogon in the path, so make sure we never use it.
2553 set dummy $ac_cv_prog_CC
2555 if test $# != 0; then
2556 # We chose a different compiler from the bogus one.
2557 # However, it has the same basename, so the bogon will be chosen
2558 # first if we set CC to just the basename; use the full file name.
2560 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2566 if test -n "$CC"; then
2567 echo "$as_me:$LINENO: result: $CC" >&5
2568 echo "${ECHO_T}$CC" >&6
2570 echo "$as_me:$LINENO: result: no" >&5
2571 echo "${ECHO_T}no" >&6
2575 if test -z "$CC"; then
2576 if test -n "$ac_tool_prefix"; then
2579 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2580 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2581 echo "$as_me:$LINENO: checking for $ac_word" >&5
2582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2583 if test "${ac_cv_prog_CC+set}" = set; then
2584 echo $ECHO_N "(cached) $ECHO_C" >&6
2586 if test -n "$CC"; then
2587 ac_cv_prog_CC="$CC" # Let the user override the test.
2589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593 test -z "$as_dir" && as_dir=.
2594 for ac_exec_ext in '' $ac_executable_extensions; do
2595 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2596 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2606 if test -n "$CC"; then
2607 echo "$as_me:$LINENO: result: $CC" >&5
2608 echo "${ECHO_T}$CC" >&6
2610 echo "$as_me:$LINENO: result: no" >&5
2611 echo "${ECHO_T}no" >&6
2614 test -n "$CC" && break
2617 if test -z "$CC"; then
2621 # Extract the first word of "$ac_prog", so it can be a program name with args.
2622 set dummy $ac_prog; ac_word=$2
2623 echo "$as_me:$LINENO: checking for $ac_word" >&5
2624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2625 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2626 echo $ECHO_N "(cached) $ECHO_C" >&6
2628 if test -n "$ac_ct_CC"; then
2629 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635 test -z "$as_dir" && as_dir=.
2636 for ac_exec_ext in '' $ac_executable_extensions; do
2637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2638 ac_cv_prog_ac_ct_CC="$ac_prog"
2639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2647 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2648 if test -n "$ac_ct_CC"; then
2649 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2650 echo "${ECHO_T}$ac_ct_CC" >&6
2652 echo "$as_me:$LINENO: result: no" >&5
2653 echo "${ECHO_T}no" >&6
2656 test -n "$ac_ct_CC" && break
2665 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2666 See \`config.log' for more details." >&5
2667 echo "$as_me: error: no acceptable C compiler found in \$PATH
2668 See \`config.log' for more details." >&2;}
2669 { (exit 1); exit 1; }; }
2671 # Provide some information about the compiler.
2672 echo "$as_me:$LINENO:" \
2673 "checking for C compiler version" >&5
2674 ac_compiler=`set X $ac_compile; echo $2`
2675 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2676 (eval $ac_compiler --version </dev/null >&5) 2>&5
2678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679 (exit $ac_status); }
2680 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2681 (eval $ac_compiler -v </dev/null >&5) 2>&5
2683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684 (exit $ac_status); }
2685 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2686 (eval $ac_compiler -V </dev/null >&5) 2>&5
2688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689 (exit $ac_status); }
2691 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2692 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2693 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2694 echo $ECHO_N "(cached) $ECHO_C" >&6
2696 cat >conftest.$ac_ext <<_ACEOF
2699 cat confdefs.h >>conftest.$ac_ext
2700 cat >>conftest.$ac_ext <<_ACEOF
2701 /* end confdefs.h. */
2714 rm -f conftest.$ac_objext
2715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2716 (eval $ac_compile) 2>conftest.er1
2718 grep -v '^ *+' conftest.er1 >conftest.err
2720 cat conftest.err >&5
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); } &&
2723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); }; } &&
2729 { ac_try='test -s conftest.$ac_objext'
2730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734 (exit $ac_status); }; }; then
2737 echo "$as_me: failed program was:" >&5
2738 sed 's/^/| /' conftest.$ac_ext >&5
2742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2743 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2746 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2747 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2748 GCC=`test $ac_compiler_gnu = yes && echo yes`
2749 ac_test_CFLAGS=${CFLAGS+set}
2750 ac_save_CFLAGS=$CFLAGS
2752 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2753 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2754 if test "${ac_cv_prog_cc_g+set}" = set; then
2755 echo $ECHO_N "(cached) $ECHO_C" >&6
2757 cat >conftest.$ac_ext <<_ACEOF
2760 cat confdefs.h >>conftest.$ac_ext
2761 cat >>conftest.$ac_ext <<_ACEOF
2762 /* end confdefs.h. */
2772 rm -f conftest.$ac_objext
2773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2774 (eval $ac_compile) 2>conftest.er1
2776 grep -v '^ *+' conftest.er1 >conftest.err
2778 cat conftest.err >&5
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); } &&
2781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); }; } &&
2787 { ac_try='test -s conftest.$ac_objext'
2788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); }; }; then
2795 echo "$as_me: failed program was:" >&5
2796 sed 's/^/| /' conftest.$ac_ext >&5
2800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2802 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2803 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2804 if test "$ac_test_CFLAGS" = set; then
2805 CFLAGS=$ac_save_CFLAGS
2806 elif test $ac_cv_prog_cc_g = yes; then
2807 if test "$GCC" = yes; then
2813 if test "$GCC" = yes; then
2819 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2820 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2821 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2822 echo $ECHO_N "(cached) $ECHO_C" >&6
2824 ac_cv_prog_cc_stdc=no
2826 cat >conftest.$ac_ext <<_ACEOF
2829 cat confdefs.h >>conftest.$ac_ext
2830 cat >>conftest.$ac_ext <<_ACEOF
2831 /* end confdefs.h. */
2834 #include <sys/types.h>
2835 #include <sys/stat.h>
2836 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2837 struct buf { int x; };
2838 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2839 static char *e (p, i)
2845 static char *f (char * (*g) (char **, int), char **p, ...)
2850 s = g (p, va_arg (v,int));
2855 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2856 function prototypes and stuff, but not '\xHH' hex character constants.
2857 These don't provoke an error unfortunately, instead are silently treated
2858 as 'x'. The following induces an error, until -std1 is added to get
2859 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2860 array size at least. It's necessary to write '\x00'==0 to get something
2861 that's true only with -std1. */
2862 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2864 int test (int i, double x);
2865 struct s1 {int (*f) (int a);};
2866 struct s2 {int (*f) (double a);};
2867 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2873 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2878 # Don't try gcc -ansi; that turns off useful extensions and
2879 # breaks some systems' header files.
2880 # AIX -qlanglvl=ansi
2881 # Ultrix and OSF/1 -std1
2882 # HP-UX 10.20 and later -Ae
2883 # HP-UX older versions -Aa -D_HPUX_SOURCE
2884 # SVR4 -Xc -D__EXTENSIONS__
2885 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2887 CC="$ac_save_CC $ac_arg"
2888 rm -f conftest.$ac_objext
2889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2890 (eval $ac_compile) 2>conftest.er1
2892 grep -v '^ *+' conftest.er1 >conftest.err
2894 cat conftest.err >&5
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); } &&
2897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); }; } &&
2903 { ac_try='test -s conftest.$ac_objext'
2904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908 (exit $ac_status); }; }; then
2909 ac_cv_prog_cc_stdc=$ac_arg
2912 echo "$as_me: failed program was:" >&5
2913 sed 's/^/| /' conftest.$ac_ext >&5
2916 rm -f conftest.err conftest.$ac_objext
2918 rm -f conftest.$ac_ext conftest.$ac_objext
2923 case "x$ac_cv_prog_cc_stdc" in
2925 echo "$as_me:$LINENO: result: none needed" >&5
2926 echo "${ECHO_T}none needed" >&6 ;;
2928 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2929 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2930 CC="$CC $ac_cv_prog_cc_stdc" ;;
2933 # Some people use a C++ compiler to compile C. Since we use `exit',
2934 # in C++ we need to declare it. In case someone uses the same compiler
2935 # for both compiling C and C++ we need to have the C++ compiler decide
2936 # the declaration of exit, since it's the most demanding environment.
2937 cat >conftest.$ac_ext <<_ACEOF
2942 rm -f conftest.$ac_objext
2943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2944 (eval $ac_compile) 2>conftest.er1
2946 grep -v '^ *+' conftest.er1 >conftest.err
2948 cat conftest.err >&5
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); } &&
2951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); }; } &&
2957 { ac_try='test -s conftest.$ac_objext'
2958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962 (exit $ac_status); }; }; then
2963 for ac_declaration in \
2965 'extern "C" void std::exit (int) throw (); using std::exit;' \
2966 'extern "C" void std::exit (int); using std::exit;' \
2967 'extern "C" void exit (int) throw ();' \
2968 'extern "C" void exit (int);' \
2971 cat >conftest.$ac_ext <<_ACEOF
2974 cat confdefs.h >>conftest.$ac_ext
2975 cat >>conftest.$ac_ext <<_ACEOF
2976 /* end confdefs.h. */
2987 rm -f conftest.$ac_objext
2988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2989 (eval $ac_compile) 2>conftest.er1
2991 grep -v '^ *+' conftest.er1 >conftest.err
2993 cat conftest.err >&5
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); } &&
2996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001 (exit $ac_status); }; } &&
3002 { ac_try='test -s conftest.$ac_objext'
3003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007 (exit $ac_status); }; }; then
3010 echo "$as_me: failed program was:" >&5
3011 sed 's/^/| /' conftest.$ac_ext >&5
3015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3016 cat >conftest.$ac_ext <<_ACEOF
3019 cat confdefs.h >>conftest.$ac_ext
3020 cat >>conftest.$ac_ext <<_ACEOF
3021 /* end confdefs.h. */
3031 rm -f conftest.$ac_objext
3032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3033 (eval $ac_compile) 2>conftest.er1
3035 grep -v '^ *+' conftest.er1 >conftest.err
3037 cat conftest.err >&5
3038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039 (exit $ac_status); } &&
3040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); }; } &&
3046 { ac_try='test -s conftest.$ac_objext'
3047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); }; }; then
3054 echo "$as_me: failed program was:" >&5
3055 sed 's/^/| /' conftest.$ac_ext >&5
3058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3061 if test -n "$ac_declaration"; then
3062 echo '#ifdef __cplusplus' >>confdefs.h
3063 echo $ac_declaration >>confdefs.h
3064 echo '#endif' >>confdefs.h
3068 echo "$as_me: failed program was:" >&5
3069 sed 's/^/| /' conftest.$ac_ext >&5
3072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3074 ac_cpp='$CPP $CPPFLAGS'
3075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3080 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
3083 # Check whether --with-optimization or --without-optimization was given.
3084 if test "${with_optimization+set}" = set; then
3085 withval="$with_optimization"
3086 unet_cv_optimization=$withval
3088 unet_cv_optimization='-O3'
3090 echo "$as_me:$LINENO: checking optimization level" >&5
3091 echo $ECHO_N "checking optimization level... $ECHO_C" >&6
3092 if test "${unet_cv_optimization+set}" = set; then
3093 echo $ECHO_N "(cached) $ECHO_C" >&6
3095 unet_cv_optimization='-O3'
3097 echo "$as_me:$LINENO: result: $unet_cv_optimization" >&5
3098 echo "${ECHO_T}$unet_cv_optimization" >&6
3099 if test "x$unet_cv_optimization" = "xno" ; then
3100 unet_cv_optimization=""
3102 if test x"$CFLAGS" != x; then
3103 CFLAGS=`echo "$CFLAGS" | sed -e s/-O2/$unet_cv_optimization/`
3105 if test x"$CFLAGS" != x; then
3106 unet_old_cflags=$CFLAGS
3107 CFLAGS=`echo "$CFLAGS" | sed -e 's/-g//g'`
3109 if test x"$CFLAGS" != x"$unet_old_cflags"; then
3110 # If -g was already there, force symbols to be enabled
3111 unet_cv_enable_symbols=yes
3113 if test x"$CFLAGS" != x; then
3114 unet_old_cflags=$CFLAGS
3115 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pg//g'`
3117 if test x"$CFLAGS" != x"$unet_old_cflags"; then
3118 # If -pg was already there, force profiling to be enabled
3119 unet_cv_enable_profile=yes
3121 if test x"$CFLAGS" != x; then
3122 unet_old_cflags=$CFLAGS
3123 CFLAGS=`echo "$CFLAGS" | sed -e 's/-Wall//g'`
3125 if test x"$CFLAGS" != x"$unet_old_cflags"; then
3126 # If -Wall was already there, force warnings to be enabled
3127 unet_cv_enable_warnings=yes
3129 if test x"$CFLAGS" != x; then
3130 unet_old_cflags=$CFLAGS
3131 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pedantic//g'`
3133 if test x"$CFLAGS" != x"$unet_old_cflags"; then
3134 # If -pedantic was already there, force pedatic to be enabled
3135 unet_cv_enable_pedantic=yes
3140 echo "$as_me:$LINENO: checking for library containing crypt" >&5
3141 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
3142 if test "${ac_cv_search_crypt+set}" = set; then
3143 echo $ECHO_N "(cached) $ECHO_C" >&6
3145 ac_func_search_save_LIBS=$LIBS
3146 ac_cv_search_crypt=no
3147 cat >conftest.$ac_ext <<_ACEOF
3150 cat confdefs.h >>conftest.$ac_ext
3151 cat >>conftest.$ac_ext <<_ACEOF
3152 /* end confdefs.h. */
3154 /* Override any gcc2 internal prototype to avoid an error. */
3158 /* We use char because int might match the return type of a gcc2
3159 builtin and then its argument prototype would still apply. */
3169 rm -f conftest.$ac_objext conftest$ac_exeext
3170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3171 (eval $ac_link) 2>conftest.er1
3173 grep -v '^ *+' conftest.er1 >conftest.err
3175 cat conftest.err >&5
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); } &&
3178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); }; } &&
3184 { ac_try='test -s conftest$ac_exeext'
3185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); }; }; then
3190 ac_cv_search_crypt="none required"
3192 echo "$as_me: failed program was:" >&5
3193 sed 's/^/| /' conftest.$ac_ext >&5
3196 rm -f conftest.err conftest.$ac_objext \
3197 conftest$ac_exeext conftest.$ac_ext
3198 if test "$ac_cv_search_crypt" = no; then
3199 for ac_lib in descrypt crypt; do
3200 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3201 cat >conftest.$ac_ext <<_ACEOF
3204 cat confdefs.h >>conftest.$ac_ext
3205 cat >>conftest.$ac_ext <<_ACEOF
3206 /* end confdefs.h. */
3208 /* Override any gcc2 internal prototype to avoid an error. */
3212 /* We use char because int might match the return type of a gcc2
3213 builtin and then its argument prototype would still apply. */
3223 rm -f conftest.$ac_objext conftest$ac_exeext
3224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3225 (eval $ac_link) 2>conftest.er1
3227 grep -v '^ *+' conftest.er1 >conftest.err
3229 cat conftest.err >&5
3230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231 (exit $ac_status); } &&
3232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); }; } &&
3238 { ac_try='test -s conftest$ac_exeext'
3239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); }; }; then
3244 ac_cv_search_crypt="-l$ac_lib"
3247 echo "$as_me: failed program was:" >&5
3248 sed 's/^/| /' conftest.$ac_ext >&5
3251 rm -f conftest.err conftest.$ac_objext \
3252 conftest$ac_exeext conftest.$ac_ext
3255 LIBS=$ac_func_search_save_LIBS
3257 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
3258 echo "${ECHO_T}$ac_cv_search_crypt" >&6
3259 if test "$ac_cv_search_crypt" != no; then
3260 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
3263 { { echo "$as_me:$LINENO: error: Unable to find library containing crypt()" >&5
3264 echo "$as_me: error: Unable to find library containing crypt()" >&2;}
3265 { (exit 1); exit 1; }; }
3270 # Most operating systems have gethostbyname() in the default searched
3271 # libraries (i.e. libc):
3272 echo "$as_me:$LINENO: checking for gethostbyname" >&5
3273 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3274 if test "${ac_cv_func_gethostbyname+set}" = set; then
3275 echo $ECHO_N "(cached) $ECHO_C" >&6
3277 cat >conftest.$ac_ext <<_ACEOF
3280 cat confdefs.h >>conftest.$ac_ext
3281 cat >>conftest.$ac_ext <<_ACEOF
3282 /* end confdefs.h. */
3283 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3284 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3285 #define gethostbyname innocuous_gethostbyname
3287 /* System header to define __stub macros and hopefully few prototypes,
3288 which can conflict with char gethostbyname (); below.
3289 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3290 <limits.h> exists even on freestanding compilers. */
3293 # include <limits.h>
3295 # include <assert.h>
3298 #undef gethostbyname
3300 /* Override any gcc2 internal prototype to avoid an error. */
3305 /* We use char because int might match the return type of a gcc2
3306 builtin and then its argument prototype would still apply. */
3307 char gethostbyname ();
3308 /* The GNU C library defines this for functions which it implements
3309 to always fail with ENOSYS. Some functions are actually named
3310 something starting with __ and the normal name is an alias. */
3311 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3314 char (*f) () = gethostbyname;
3323 return f != gethostbyname;
3328 rm -f conftest.$ac_objext conftest$ac_exeext
3329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3330 (eval $ac_link) 2>conftest.er1
3332 grep -v '^ *+' conftest.er1 >conftest.err
3334 cat conftest.err >&5
3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336 (exit $ac_status); } &&
3337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342 (exit $ac_status); }; } &&
3343 { ac_try='test -s conftest$ac_exeext'
3344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); }; }; then
3349 ac_cv_func_gethostbyname=yes
3351 echo "$as_me: failed program was:" >&5
3352 sed 's/^/| /' conftest.$ac_ext >&5
3354 ac_cv_func_gethostbyname=no
3356 rm -f conftest.err conftest.$ac_objext \
3357 conftest$ac_exeext conftest.$ac_ext
3359 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3360 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3361 if test $ac_cv_func_gethostbyname = yes; then
3364 # Some OSes (eg. Solaris) place it in libnsl:
3366 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3367 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3368 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3369 echo $ECHO_N "(cached) $ECHO_C" >&6
3371 ac_check_lib_save_LIBS=$LIBS
3373 cat >conftest.$ac_ext <<_ACEOF
3376 cat confdefs.h >>conftest.$ac_ext
3377 cat >>conftest.$ac_ext <<_ACEOF
3378 /* end confdefs.h. */
3380 /* Override any gcc2 internal prototype to avoid an error. */
3384 /* We use char because int might match the return type of a gcc2
3385 builtin and then its argument prototype would still apply. */
3386 char gethostbyname ();
3395 rm -f conftest.$ac_objext conftest$ac_exeext
3396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3397 (eval $ac_link) 2>conftest.er1
3399 grep -v '^ *+' conftest.er1 >conftest.err
3401 cat conftest.err >&5
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); } &&
3404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); }; } &&
3410 { ac_try='test -s conftest$ac_exeext'
3411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415 (exit $ac_status); }; }; then
3416 ac_cv_lib_nsl_gethostbyname=yes
3418 echo "$as_me: failed program was:" >&5
3419 sed 's/^/| /' conftest.$ac_ext >&5
3421 ac_cv_lib_nsl_gethostbyname=no
3423 rm -f conftest.err conftest.$ac_objext \
3424 conftest$ac_exeext conftest.$ac_ext
3425 LIBS=$ac_check_lib_save_LIBS
3427 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3428 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3429 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3430 cat >>confdefs.h <<_ACEOF
3431 #define HAVE_LIBNSL 1
3437 # Some strange OSes (SINIX) have it in libsocket:
3439 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
3440 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
3441 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
3442 echo $ECHO_N "(cached) $ECHO_C" >&6
3444 ac_check_lib_save_LIBS=$LIBS
3445 LIBS="-lsocket $LIBS"
3446 cat >conftest.$ac_ext <<_ACEOF
3449 cat confdefs.h >>conftest.$ac_ext
3450 cat >>conftest.$ac_ext <<_ACEOF
3451 /* end confdefs.h. */
3453 /* Override any gcc2 internal prototype to avoid an error. */
3457 /* We use char because int might match the return type of a gcc2
3458 builtin and then its argument prototype would still apply. */
3459 char gethostbyname ();
3468 rm -f conftest.$ac_objext conftest$ac_exeext
3469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3470 (eval $ac_link) 2>conftest.er1
3472 grep -v '^ *+' conftest.er1 >conftest.err
3474 cat conftest.err >&5
3475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476 (exit $ac_status); } &&
3477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); }; } &&
3483 { ac_try='test -s conftest$ac_exeext'
3484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); }; }; then
3489 ac_cv_lib_socket_gethostbyname=yes
3491 echo "$as_me: failed program was:" >&5
3492 sed 's/^/| /' conftest.$ac_ext >&5
3494 ac_cv_lib_socket_gethostbyname=no
3496 rm -f conftest.err conftest.$ac_objext \
3497 conftest$ac_exeext conftest.$ac_ext
3498 LIBS=$ac_check_lib_save_LIBS
3500 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
3501 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
3502 if test $ac_cv_lib_socket_gethostbyname = yes; then
3503 cat >>confdefs.h <<_ACEOF
3504 #define HAVE_LIBSOCKET 1
3507 LIBS="-lsocket $LIBS"
3510 # Unfortunately libsocket sometimes depends on libnsl.
3511 # AC_CHECK_LIB's API is essentially broken so the following
3512 # ugliness is necessary:
3513 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
3514 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
3515 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
3516 echo $ECHO_N "(cached) $ECHO_C" >&6
3518 ac_check_lib_save_LIBS=$LIBS
3519 LIBS="-lsocket -lnsl $LIBS"
3520 cat >conftest.$ac_ext <<_ACEOF
3523 cat confdefs.h >>conftest.$ac_ext
3524 cat >>conftest.$ac_ext <<_ACEOF
3525 /* end confdefs.h. */
3527 /* Override any gcc2 internal prototype to avoid an error. */
3531 /* We use char because int might match the return type of a gcc2
3532 builtin and then its argument prototype would still apply. */
3533 char gethostbyname ();
3542 rm -f conftest.$ac_objext conftest$ac_exeext
3543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3544 (eval $ac_link) 2>conftest.er1
3546 grep -v '^ *+' conftest.er1 >conftest.err
3548 cat conftest.err >&5
3549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550 (exit $ac_status); } &&
3551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); }; } &&
3557 { ac_try='test -s conftest$ac_exeext'
3558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); }; }; then
3563 ac_cv_lib_socket_gethostbyname=yes
3565 echo "$as_me: failed program was:" >&5
3566 sed 's/^/| /' conftest.$ac_ext >&5
3568 ac_cv_lib_socket_gethostbyname=no
3570 rm -f conftest.err conftest.$ac_objext \
3571 conftest$ac_exeext conftest.$ac_ext
3572 LIBS=$ac_check_lib_save_LIBS
3574 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
3575 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
3576 if test $ac_cv_lib_socket_gethostbyname = yes; then
3577 LIBS="-lsocket -lnsl $LIBS"
3580 echo "$as_me:$LINENO: checking for gethostbyname in -lresolv" >&5
3581 echo $ECHO_N "checking for gethostbyname in -lresolv... $ECHO_C" >&6
3582 if test "${ac_cv_lib_resolv_gethostbyname+set}" = set; then
3583 echo $ECHO_N "(cached) $ECHO_C" >&6
3585 ac_check_lib_save_LIBS=$LIBS
3586 LIBS="-lresolv $LIBS"
3587 cat >conftest.$ac_ext <<_ACEOF
3590 cat confdefs.h >>conftest.$ac_ext
3591 cat >>conftest.$ac_ext <<_ACEOF
3592 /* end confdefs.h. */
3594 /* Override any gcc2 internal prototype to avoid an error. */
3598 /* We use char because int might match the return type of a gcc2
3599 builtin and then its argument prototype would still apply. */
3600 char gethostbyname ();
3609 rm -f conftest.$ac_objext conftest$ac_exeext
3610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3611 (eval $ac_link) 2>conftest.er1
3613 grep -v '^ *+' conftest.er1 >conftest.err
3615 cat conftest.err >&5
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); } &&
3618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); }; } &&
3624 { ac_try='test -s conftest$ac_exeext'
3625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); }; }; then
3630 ac_cv_lib_resolv_gethostbyname=yes
3632 echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3635 ac_cv_lib_resolv_gethostbyname=no
3637 rm -f conftest.err conftest.$ac_objext \
3638 conftest$ac_exeext conftest.$ac_ext
3639 LIBS=$ac_check_lib_save_LIBS
3641 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname" >&5
3642 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname" >&6
3643 if test $ac_cv_lib_resolv_gethostbyname = yes; then
3644 cat >>confdefs.h <<_ACEOF
3645 #define HAVE_LIBRESOLV 1
3648 LIBS="-lresolv $LIBS"
3663 echo "$as_me:$LINENO: checking for socket" >&5
3664 echo $ECHO_N "checking for socket... $ECHO_C" >&6
3665 if test "${ac_cv_func_socket+set}" = set; then
3666 echo $ECHO_N "(cached) $ECHO_C" >&6
3668 cat >conftest.$ac_ext <<_ACEOF
3671 cat confdefs.h >>conftest.$ac_ext
3672 cat >>conftest.$ac_ext <<_ACEOF
3673 /* end confdefs.h. */
3674 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
3675 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3676 #define socket innocuous_socket
3678 /* System header to define __stub macros and hopefully few prototypes,
3679 which can conflict with char socket (); below.
3680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3681 <limits.h> exists even on freestanding compilers. */
3684 # include <limits.h>
3686 # include <assert.h>
3691 /* Override any gcc2 internal prototype to avoid an error. */
3696 /* We use char because int might match the return type of a gcc2
3697 builtin and then its argument prototype would still apply. */
3699 /* The GNU C library defines this for functions which it implements
3700 to always fail with ENOSYS. Some functions are actually named
3701 something starting with __ and the normal name is an alias. */
3702 #if defined (__stub_socket) || defined (__stub___socket)
3705 char (*f) () = socket;
3719 rm -f conftest.$ac_objext conftest$ac_exeext
3720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3721 (eval $ac_link) 2>conftest.er1
3723 grep -v '^ *+' conftest.er1 >conftest.err
3725 cat conftest.err >&5
3726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); } &&
3728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733 (exit $ac_status); }; } &&
3734 { ac_try='test -s conftest$ac_exeext'
3735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739 (exit $ac_status); }; }; then
3740 ac_cv_func_socket=yes
3742 echo "$as_me: failed program was:" >&5
3743 sed 's/^/| /' conftest.$ac_ext >&5
3745 ac_cv_func_socket=no
3747 rm -f conftest.err conftest.$ac_objext \
3748 conftest$ac_exeext conftest.$ac_ext
3750 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
3751 echo "${ECHO_T}$ac_cv_func_socket" >&6
3752 if test $ac_cv_func_socket = yes; then
3756 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3757 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3758 if test "${ac_cv_lib_socket_socket+set}" = set; then
3759 echo $ECHO_N "(cached) $ECHO_C" >&6
3761 ac_check_lib_save_LIBS=$LIBS
3762 LIBS="-lsocket $LIBS"
3763 cat >conftest.$ac_ext <<_ACEOF
3766 cat confdefs.h >>conftest.$ac_ext
3767 cat >>conftest.$ac_ext <<_ACEOF
3768 /* end confdefs.h. */
3770 /* Override any gcc2 internal prototype to avoid an error. */
3774 /* We use char because int might match the return type of a gcc2
3775 builtin and then its argument prototype would still apply. */
3785 rm -f conftest.$ac_objext conftest$ac_exeext
3786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3787 (eval $ac_link) 2>conftest.er1
3789 grep -v '^ *+' conftest.er1 >conftest.err
3791 cat conftest.err >&5
3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); } &&
3794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); }; } &&
3800 { ac_try='test -s conftest$ac_exeext'
3801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805 (exit $ac_status); }; }; then
3806 ac_cv_lib_socket_socket=yes
3808 echo "$as_me: failed program was:" >&5
3809 sed 's/^/| /' conftest.$ac_ext >&5
3811 ac_cv_lib_socket_socket=no
3813 rm -f conftest.err conftest.$ac_objext \
3814 conftest$ac_exeext conftest.$ac_ext
3815 LIBS=$ac_check_lib_save_LIBS
3817 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3818 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3819 if test $ac_cv_lib_socket_socket = yes; then
3820 cat >>confdefs.h <<_ACEOF
3821 #define HAVE_LIBSOCKET 1
3824 LIBS="-lsocket $LIBS"
3827 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3828 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3829 if test "${ac_cv_lib_socket_socket+set}" = set; then
3830 echo $ECHO_N "(cached) $ECHO_C" >&6
3832 ac_check_lib_save_LIBS=$LIBS
3833 LIBS="-lsocket -lnsl $LIBS"
3834 cat >conftest.$ac_ext <<_ACEOF
3837 cat confdefs.h >>conftest.$ac_ext
3838 cat >>conftest.$ac_ext <<_ACEOF
3839 /* end confdefs.h. */
3841 /* Override any gcc2 internal prototype to avoid an error. */
3845 /* We use char because int might match the return type of a gcc2
3846 builtin and then its argument prototype would still apply. */
3856 rm -f conftest.$ac_objext conftest$ac_exeext
3857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3858 (eval $ac_link) 2>conftest.er1
3860 grep -v '^ *+' conftest.er1 >conftest.err
3862 cat conftest.err >&5
3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); } &&
3865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); }; } &&
3871 { ac_try='test -s conftest$ac_exeext'
3872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); }; }; then
3877 ac_cv_lib_socket_socket=yes
3879 echo "$as_me: failed program was:" >&5
3880 sed 's/^/| /' conftest.$ac_ext >&5
3882 ac_cv_lib_socket_socket=no
3884 rm -f conftest.err conftest.$ac_objext \
3885 conftest$ac_exeext conftest.$ac_ext
3886 LIBS=$ac_check_lib_save_LIBS
3888 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3889 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3890 if test $ac_cv_lib_socket_socket = yes; then
3891 LIBS="-lsocket -lnsl $LIBS"
3901 ac_cpp='$CPP $CPPFLAGS'
3902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3905 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3906 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3907 # On Suns, sometimes $CPP names a directory.
3908 if test -n "$CPP" && test -d "$CPP"; then
3911 if test -z "$CPP"; then
3912 if test "${ac_cv_prog_CPP+set}" = set; then
3913 echo $ECHO_N "(cached) $ECHO_C" >&6
3915 # Double quotes because CPP needs to be expanded
3916 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3919 for ac_c_preproc_warn_flag in '' yes
3921 # Use a header file that comes with gcc, so configuring glibc
3922 # with a fresh cross-compiler works.
3923 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3924 # <limits.h> exists even on freestanding compilers.
3925 # On the NeXT, cc -E runs the code through the compiler's parser,
3926 # not just through cpp. "Syntax error" is here to catch this case.
3927 cat >conftest.$ac_ext <<_ACEOF
3930 cat confdefs.h >>conftest.$ac_ext
3931 cat >>conftest.$ac_ext <<_ACEOF
3932 /* end confdefs.h. */
3934 # include <limits.h>
3936 # include <assert.h>
3940 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3941 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3943 grep -v '^ *+' conftest.er1 >conftest.err
3945 cat conftest.err >&5
3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947 (exit $ac_status); } >/dev/null; then
3948 if test -s conftest.err; then
3949 ac_cpp_err=$ac_c_preproc_warn_flag
3950 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3957 if test -z "$ac_cpp_err"; then
3960 echo "$as_me: failed program was:" >&5
3961 sed 's/^/| /' conftest.$ac_ext >&5
3963 # Broken: fails on valid input.
3966 rm -f conftest.err conftest.$ac_ext
3968 # OK, works on sane cases. Now check whether non-existent headers
3969 # can be detected and how.
3970 cat >conftest.$ac_ext <<_ACEOF
3973 cat confdefs.h >>conftest.$ac_ext
3974 cat >>conftest.$ac_ext <<_ACEOF
3975 /* end confdefs.h. */
3976 #include <ac_nonexistent.h>
3978 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3979 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3981 grep -v '^ *+' conftest.er1 >conftest.err
3983 cat conftest.err >&5
3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985 (exit $ac_status); } >/dev/null; then
3986 if test -s conftest.err; then
3987 ac_cpp_err=$ac_c_preproc_warn_flag
3988 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3995 if test -z "$ac_cpp_err"; then
3996 # Broken: success on invalid input.
3999 echo "$as_me: failed program was:" >&5
4000 sed 's/^/| /' conftest.$ac_ext >&5
4002 # Passes both tests.
4006 rm -f conftest.err conftest.$ac_ext
4009 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4010 rm -f conftest.err conftest.$ac_ext
4011 if $ac_preproc_ok; then
4023 echo "$as_me:$LINENO: result: $CPP" >&5
4024 echo "${ECHO_T}$CPP" >&6
4026 for ac_c_preproc_warn_flag in '' yes
4028 # Use a header file that comes with gcc, so configuring glibc
4029 # with a fresh cross-compiler works.
4030 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4031 # <limits.h> exists even on freestanding compilers.
4032 # On the NeXT, cc -E runs the code through the compiler's parser,
4033 # not just through cpp. "Syntax error" is here to catch this case.
4034 cat >conftest.$ac_ext <<_ACEOF
4037 cat confdefs.h >>conftest.$ac_ext
4038 cat >>conftest.$ac_ext <<_ACEOF
4039 /* end confdefs.h. */
4041 # include <limits.h>
4043 # include <assert.h>
4047 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4048 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4050 grep -v '^ *+' conftest.er1 >conftest.err
4052 cat conftest.err >&5
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); } >/dev/null; then
4055 if test -s conftest.err; then
4056 ac_cpp_err=$ac_c_preproc_warn_flag
4057 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4064 if test -z "$ac_cpp_err"; then
4067 echo "$as_me: failed program was:" >&5
4068 sed 's/^/| /' conftest.$ac_ext >&5
4070 # Broken: fails on valid input.
4073 rm -f conftest.err conftest.$ac_ext
4075 # OK, works on sane cases. Now check whether non-existent headers
4076 # can be detected and how.
4077 cat >conftest.$ac_ext <<_ACEOF
4080 cat confdefs.h >>conftest.$ac_ext
4081 cat >>conftest.$ac_ext <<_ACEOF
4082 /* end confdefs.h. */
4083 #include <ac_nonexistent.h>
4085 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4086 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4088 grep -v '^ *+' conftest.er1 >conftest.err
4090 cat conftest.err >&5
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); } >/dev/null; then
4093 if test -s conftest.err; then
4094 ac_cpp_err=$ac_c_preproc_warn_flag
4095 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4102 if test -z "$ac_cpp_err"; then
4103 # Broken: success on invalid input.
4106 echo "$as_me: failed program was:" >&5
4107 sed 's/^/| /' conftest.$ac_ext >&5
4109 # Passes both tests.
4113 rm -f conftest.err conftest.$ac_ext
4116 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4117 rm -f conftest.err conftest.$ac_ext
4118 if $ac_preproc_ok; then
4121 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4122 See \`config.log' for more details." >&5
4123 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4124 See \`config.log' for more details." >&2;}
4125 { (exit 1); exit 1; }; }
4129 ac_cpp='$CPP $CPPFLAGS'
4130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4135 echo "$as_me:$LINENO: checking for egrep" >&5
4136 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4137 if test "${ac_cv_prog_egrep+set}" = set; then
4138 echo $ECHO_N "(cached) $ECHO_C" >&6
4140 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4141 then ac_cv_prog_egrep='grep -E'
4142 else ac_cv_prog_egrep='egrep'
4145 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4146 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4147 EGREP=$ac_cv_prog_egrep
4150 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4151 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4152 if test "${ac_cv_header_stdc+set}" = set; then
4153 echo $ECHO_N "(cached) $ECHO_C" >&6
4155 cat >conftest.$ac_ext <<_ACEOF
4158 cat confdefs.h >>conftest.$ac_ext
4159 cat >>conftest.$ac_ext <<_ACEOF
4160 /* end confdefs.h. */
4174 rm -f conftest.$ac_objext
4175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4176 (eval $ac_compile) 2>conftest.er1
4178 grep -v '^ *+' conftest.er1 >conftest.err
4180 cat conftest.err >&5
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); } &&
4183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); }; } &&
4189 { ac_try='test -s conftest.$ac_objext'
4190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); }; }; then
4195 ac_cv_header_stdc=yes
4197 echo "$as_me: failed program was:" >&5
4198 sed 's/^/| /' conftest.$ac_ext >&5
4200 ac_cv_header_stdc=no
4202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4204 if test $ac_cv_header_stdc = yes; then
4205 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4206 cat >conftest.$ac_ext <<_ACEOF
4209 cat confdefs.h >>conftest.$ac_ext
4210 cat >>conftest.$ac_ext <<_ACEOF
4211 /* end confdefs.h. */
4215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4216 $EGREP "memchr" >/dev/null 2>&1; then
4219 ac_cv_header_stdc=no
4225 if test $ac_cv_header_stdc = yes; then
4226 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4227 cat >conftest.$ac_ext <<_ACEOF
4230 cat confdefs.h >>conftest.$ac_ext
4231 cat >>conftest.$ac_ext <<_ACEOF
4232 /* end confdefs.h. */
4236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4237 $EGREP "free" >/dev/null 2>&1; then
4240 ac_cv_header_stdc=no
4246 if test $ac_cv_header_stdc = yes; then
4247 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4248 if test "$cross_compiling" = yes; then
4251 cat >conftest.$ac_ext <<_ACEOF
4254 cat confdefs.h >>conftest.$ac_ext
4255 cat >>conftest.$ac_ext <<_ACEOF
4256 /* end confdefs.h. */
4258 #if ((' ' & 0x0FF) == 0x020)
4259 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4260 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4262 # define ISLOWER(c) \
4263 (('a' <= (c) && (c) <= 'i') \
4264 || ('j' <= (c) && (c) <= 'r') \
4265 || ('s' <= (c) && (c) <= 'z'))
4266 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4269 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4274 for (i = 0; i < 256; i++)
4275 if (XOR (islower (i), ISLOWER (i))
4276 || toupper (i) != TOUPPER (i))
4281 rm -f conftest$ac_exeext
4282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4283 (eval $ac_link) 2>&5
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); }; }; then
4294 echo "$as_me: program exited with status $ac_status" >&5
4295 echo "$as_me: failed program was:" >&5
4296 sed 's/^/| /' conftest.$ac_ext >&5
4299 ac_cv_header_stdc=no
4301 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4305 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4306 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4307 if test $ac_cv_header_stdc = yes; then
4309 cat >>confdefs.h <<\_ACEOF
4310 #define STDC_HEADERS 1
4315 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4325 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4326 inttypes.h stdint.h unistd.h
4328 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4329 echo "$as_me:$LINENO: checking for $ac_header" >&5
4330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4331 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4332 echo $ECHO_N "(cached) $ECHO_C" >&6
4334 cat >conftest.$ac_ext <<_ACEOF
4337 cat confdefs.h >>conftest.$ac_ext
4338 cat >>conftest.$ac_ext <<_ACEOF
4339 /* end confdefs.h. */
4340 $ac_includes_default
4342 #include <$ac_header>
4344 rm -f conftest.$ac_objext
4345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4346 (eval $ac_compile) 2>conftest.er1
4348 grep -v '^ *+' conftest.er1 >conftest.err
4350 cat conftest.err >&5
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); } &&
4353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); }; } &&
4359 { ac_try='test -s conftest.$ac_objext'
4360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); }; }; then
4365 eval "$as_ac_Header=yes"
4367 echo "$as_me: failed program was:" >&5
4368 sed 's/^/| /' conftest.$ac_ext >&5
4370 eval "$as_ac_Header=no"
4372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4374 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4375 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4377 cat >>confdefs.h <<_ACEOF
4378 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4395 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/socket.h
4397 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4399 echo "$as_me:$LINENO: checking for $ac_header" >&5
4400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4401 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4402 echo $ECHO_N "(cached) $ECHO_C" >&6
4404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4405 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4407 # Is the header compilable?
4408 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4409 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4410 cat >conftest.$ac_ext <<_ACEOF
4413 cat confdefs.h >>conftest.$ac_ext
4414 cat >>conftest.$ac_ext <<_ACEOF
4415 /* end confdefs.h. */
4416 $ac_includes_default
4417 #include <$ac_header>
4419 rm -f conftest.$ac_objext
4420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4421 (eval $ac_compile) 2>conftest.er1
4423 grep -v '^ *+' conftest.er1 >conftest.err
4425 cat conftest.err >&5
4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); } &&
4428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433 (exit $ac_status); }; } &&
4434 { ac_try='test -s conftest.$ac_objext'
4435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); }; }; then
4440 ac_header_compiler=yes
4442 echo "$as_me: failed program was:" >&5
4443 sed 's/^/| /' conftest.$ac_ext >&5
4445 ac_header_compiler=no
4447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4448 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4449 echo "${ECHO_T}$ac_header_compiler" >&6
4451 # Is the header present?
4452 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4453 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4454 cat >conftest.$ac_ext <<_ACEOF
4457 cat confdefs.h >>conftest.$ac_ext
4458 cat >>conftest.$ac_ext <<_ACEOF
4459 /* end confdefs.h. */
4460 #include <$ac_header>
4462 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4463 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4465 grep -v '^ *+' conftest.er1 >conftest.err
4467 cat conftest.err >&5
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); } >/dev/null; then
4470 if test -s conftest.err; then
4471 ac_cpp_err=$ac_c_preproc_warn_flag
4472 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4479 if test -z "$ac_cpp_err"; then
4480 ac_header_preproc=yes
4482 echo "$as_me: failed program was:" >&5
4483 sed 's/^/| /' conftest.$ac_ext >&5
4485 ac_header_preproc=no
4487 rm -f conftest.err conftest.$ac_ext
4488 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4489 echo "${ECHO_T}$ac_header_preproc" >&6
4491 # So? What about this header?
4492 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4494 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4495 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4496 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4497 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4498 ac_header_preproc=yes
4501 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4502 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4503 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4504 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4505 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4506 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4507 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4508 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4510 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4511 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4512 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4515 ## ------------------------------------------ ##
4516 ## Report this to the AC_PACKAGE_NAME lists. ##
4517 ## ------------------------------------------ ##
4520 sed "s/^/$as_me: WARNING: /" >&2
4523 echo "$as_me:$LINENO: checking for $ac_header" >&5
4524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4525 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4526 echo $ECHO_N "(cached) $ECHO_C" >&6
4528 eval "$as_ac_Header=\$ac_header_preproc"
4530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4531 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4534 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4535 cat >>confdefs.h <<_ACEOF
4536 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4544 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4545 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4546 if test "${ac_cv_c_bigendian+set}" = set; then
4547 echo $ECHO_N "(cached) $ECHO_C" >&6
4549 # See if sys/param.h defines the BYTE_ORDER macro.
4550 cat >conftest.$ac_ext <<_ACEOF
4553 cat confdefs.h >>conftest.$ac_ext
4554 cat >>conftest.$ac_ext <<_ACEOF
4555 /* end confdefs.h. */
4556 #include <sys/types.h>
4557 #include <sys/param.h>
4562 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4570 rm -f conftest.$ac_objext
4571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4572 (eval $ac_compile) 2>conftest.er1
4574 grep -v '^ *+' conftest.er1 >conftest.err
4576 cat conftest.err >&5
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); } &&
4579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584 (exit $ac_status); }; } &&
4585 { ac_try='test -s conftest.$ac_objext'
4586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590 (exit $ac_status); }; }; then
4591 # It does; now see whether it defined to BIG_ENDIAN or not.
4592 cat >conftest.$ac_ext <<_ACEOF
4595 cat confdefs.h >>conftest.$ac_ext
4596 cat >>conftest.$ac_ext <<_ACEOF
4597 /* end confdefs.h. */
4598 #include <sys/types.h>
4599 #include <sys/param.h>
4604 #if BYTE_ORDER != BIG_ENDIAN
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 ac_cv_c_bigendian=yes
4635 echo "$as_me: failed program was:" >&5
4636 sed 's/^/| /' conftest.$ac_ext >&5
4638 ac_cv_c_bigendian=no
4640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4642 echo "$as_me: failed program was:" >&5
4643 sed 's/^/| /' conftest.$ac_ext >&5
4645 # It does not; compile a test program.
4646 if test "$cross_compiling" = yes; then
4647 # try to guess the endianness by grepping values into an object file
4648 ac_cv_c_bigendian=unknown
4649 cat >conftest.$ac_ext <<_ACEOF
4652 cat confdefs.h >>conftest.$ac_ext
4653 cat >>conftest.$ac_ext <<_ACEOF
4654 /* end confdefs.h. */
4655 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4656 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4657 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4658 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4659 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4660 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4664 _ascii (); _ebcdic ();
4669 rm -f conftest.$ac_objext
4670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4671 (eval $ac_compile) 2>conftest.er1
4673 grep -v '^ *+' conftest.er1 >conftest.err
4675 cat conftest.err >&5
4676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677 (exit $ac_status); } &&
4678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683 (exit $ac_status); }; } &&
4684 { ac_try='test -s conftest.$ac_objext'
4685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); }; }; then
4690 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4691 ac_cv_c_bigendian=yes
4693 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4694 if test "$ac_cv_c_bigendian" = unknown; then
4695 ac_cv_c_bigendian=no
4697 # finding both strings is unlikely to happen, but who knows?
4698 ac_cv_c_bigendian=unknown
4702 echo "$as_me: failed program was:" >&5
4703 sed 's/^/| /' conftest.$ac_ext >&5
4706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4708 cat >conftest.$ac_ext <<_ACEOF
4711 cat confdefs.h >>conftest.$ac_ext
4712 cat >>conftest.$ac_ext <<_ACEOF
4713 /* end confdefs.h. */
4717 /* Are we little or big endian? From Harbison&Steele. */
4721 char c[sizeof (long)];
4724 exit (u.c[sizeof (long) - 1] == 1);
4727 rm -f conftest$ac_exeext
4728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4729 (eval $ac_link) 2>&5
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); }; }; then
4738 ac_cv_c_bigendian=no
4740 echo "$as_me: program exited with status $ac_status" >&5
4741 echo "$as_me: failed program was:" >&5
4742 sed 's/^/| /' conftest.$ac_ext >&5
4745 ac_cv_c_bigendian=yes
4747 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4752 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4753 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4754 case $ac_cv_c_bigendian in
4757 cat >>confdefs.h <<\_ACEOF
4758 #define WORDS_BIGENDIAN 1
4764 { { echo "$as_me:$LINENO: error: unknown endianness
4765 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4766 echo "$as_me: error: unknown endianness
4767 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4768 { (exit 1); exit 1; }; } ;;
4771 echo "$as_me:$LINENO: checking for size_t" >&5
4772 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4773 if test "${ac_cv_type_size_t+set}" = set; then
4774 echo $ECHO_N "(cached) $ECHO_C" >&6
4776 cat >conftest.$ac_ext <<_ACEOF
4779 cat confdefs.h >>conftest.$ac_ext
4780 cat >>conftest.$ac_ext <<_ACEOF
4781 /* end confdefs.h. */
4782 $ac_includes_default
4788 if (sizeof (size_t))
4794 rm -f conftest.$ac_objext
4795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4796 (eval $ac_compile) 2>conftest.er1
4798 grep -v '^ *+' conftest.er1 >conftest.err
4800 cat conftest.err >&5
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); } &&
4803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); }; } &&
4809 { ac_try='test -s conftest.$ac_objext'
4810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); }; }; then
4815 ac_cv_type_size_t=yes
4817 echo "$as_me: failed program was:" >&5
4818 sed 's/^/| /' conftest.$ac_ext >&5
4820 ac_cv_type_size_t=no
4822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4824 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4825 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4826 if test $ac_cv_type_size_t = yes; then
4830 cat >>confdefs.h <<_ACEOF
4831 #define size_t unsigned
4836 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4837 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4838 if test "${ac_cv_header_time+set}" = set; then
4839 echo $ECHO_N "(cached) $ECHO_C" >&6
4841 cat >conftest.$ac_ext <<_ACEOF
4844 cat confdefs.h >>conftest.$ac_ext
4845 cat >>conftest.$ac_ext <<_ACEOF
4846 /* end confdefs.h. */
4847 #include <sys/types.h>
4848 #include <sys/time.h>
4854 if ((struct tm *) 0)
4860 rm -f conftest.$ac_objext
4861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4862 (eval $ac_compile) 2>conftest.er1
4864 grep -v '^ *+' conftest.er1 >conftest.err
4866 cat conftest.err >&5
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); } &&
4869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); }; } &&
4875 { ac_try='test -s conftest.$ac_objext'
4876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); }; }; then
4881 ac_cv_header_time=yes
4883 echo "$as_me: failed program was:" >&5
4884 sed 's/^/| /' conftest.$ac_ext >&5
4886 ac_cv_header_time=no
4888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4890 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4891 echo "${ECHO_T}$ac_cv_header_time" >&6
4892 if test $ac_cv_header_time = yes; then
4894 cat >>confdefs.h <<\_ACEOF
4895 #define TIME_WITH_SYS_TIME 1
4900 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4901 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4902 if test "${ac_cv_struct_tm+set}" = set; then
4903 echo $ECHO_N "(cached) $ECHO_C" >&6
4905 cat >conftest.$ac_ext <<_ACEOF
4908 cat confdefs.h >>conftest.$ac_ext
4909 cat >>conftest.$ac_ext <<_ACEOF
4910 /* end confdefs.h. */
4911 #include <sys/types.h>
4917 struct tm *tp; tp->tm_sec;
4922 rm -f conftest.$ac_objext
4923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4924 (eval $ac_compile) 2>conftest.er1
4926 grep -v '^ *+' conftest.er1 >conftest.err
4928 cat conftest.err >&5
4929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930 (exit $ac_status); } &&
4931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); }; } &&
4937 { ac_try='test -s conftest.$ac_objext'
4938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942 (exit $ac_status); }; }; then
4943 ac_cv_struct_tm=time.h
4945 echo "$as_me: failed program was:" >&5
4946 sed 's/^/| /' conftest.$ac_ext >&5
4948 ac_cv_struct_tm=sys/time.h
4950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4952 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4953 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4954 if test $ac_cv_struct_tm = sys/time.h; then
4956 cat >>confdefs.h <<\_ACEOF
4957 #define TM_IN_SYS_TIME 1
4962 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
4963 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
4964 if test "${ac_cv_type_uid_t+set}" = set; then
4965 echo $ECHO_N "(cached) $ECHO_C" >&6
4967 cat >conftest.$ac_ext <<_ACEOF
4970 cat confdefs.h >>conftest.$ac_ext
4971 cat >>conftest.$ac_ext <<_ACEOF
4972 /* end confdefs.h. */
4973 #include <sys/types.h>
4976 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4977 $EGREP "uid_t" >/dev/null 2>&1; then
4978 ac_cv_type_uid_t=yes
4985 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
4986 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
4987 if test $ac_cv_type_uid_t = no; then
4989 cat >>confdefs.h <<\_ACEOF
4994 cat >>confdefs.h <<\_ACEOF
5000 echo "$as_me:$LINENO: checking for short" >&5
5001 echo $ECHO_N "checking for short... $ECHO_C" >&6
5002 if test "${ac_cv_type_short+set}" = set; then
5003 echo $ECHO_N "(cached) $ECHO_C" >&6
5005 cat >conftest.$ac_ext <<_ACEOF
5008 cat confdefs.h >>conftest.$ac_ext
5009 cat >>conftest.$ac_ext <<_ACEOF
5010 /* end confdefs.h. */
5011 $ac_includes_default
5023 rm -f conftest.$ac_objext
5024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5025 (eval $ac_compile) 2>conftest.er1
5027 grep -v '^ *+' conftest.er1 >conftest.err
5029 cat conftest.err >&5
5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); } &&
5032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037 (exit $ac_status); }; } &&
5038 { ac_try='test -s conftest.$ac_objext'
5039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); }; }; then
5044 ac_cv_type_short=yes
5046 echo "$as_me: failed program was:" >&5
5047 sed 's/^/| /' conftest.$ac_ext >&5
5051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5053 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5054 echo "${ECHO_T}$ac_cv_type_short" >&6
5056 echo "$as_me:$LINENO: checking size of short" >&5
5057 echo $ECHO_N "checking size of short... $ECHO_C" >&6
5058 if test "${ac_cv_sizeof_short+set}" = set; then
5059 echo $ECHO_N "(cached) $ECHO_C" >&6
5061 if test "$ac_cv_type_short" = yes; then
5062 # The cast to unsigned long works around a bug in the HP C Compiler
5063 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5064 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5065 # This bug is HP SR number 8606223364.
5066 if test "$cross_compiling" = yes; then
5067 # Depending upon the size, compute the lo and hi bounds.
5068 cat >conftest.$ac_ext <<_ACEOF
5071 cat confdefs.h >>conftest.$ac_ext
5072 cat >>conftest.$ac_ext <<_ACEOF
5073 /* end confdefs.h. */
5074 $ac_includes_default
5078 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
5085 rm -f conftest.$ac_objext
5086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5087 (eval $ac_compile) 2>conftest.er1
5089 grep -v '^ *+' conftest.er1 >conftest.err
5091 cat conftest.err >&5
5092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); } &&
5094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099 (exit $ac_status); }; } &&
5100 { ac_try='test -s conftest.$ac_objext'
5101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); }; }; then
5108 cat >conftest.$ac_ext <<_ACEOF
5111 cat confdefs.h >>conftest.$ac_ext
5112 cat >>conftest.$ac_ext <<_ACEOF
5113 /* end confdefs.h. */
5114 $ac_includes_default
5118 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5125 rm -f conftest.$ac_objext
5126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5127 (eval $ac_compile) 2>conftest.er1
5129 grep -v '^ *+' conftest.er1 >conftest.err
5131 cat conftest.err >&5
5132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133 (exit $ac_status); } &&
5134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139 (exit $ac_status); }; } &&
5140 { ac_try='test -s conftest.$ac_objext'
5141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145 (exit $ac_status); }; }; then
5146 ac_hi=$ac_mid; break
5148 echo "$as_me: failed program was:" >&5
5149 sed 's/^/| /' conftest.$ac_ext >&5
5151 ac_lo=`expr $ac_mid + 1`
5152 if test $ac_lo -le $ac_mid; then
5156 ac_mid=`expr 2 '*' $ac_mid + 1`
5158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5161 echo "$as_me: failed program was:" >&5
5162 sed 's/^/| /' conftest.$ac_ext >&5
5164 cat >conftest.$ac_ext <<_ACEOF
5167 cat confdefs.h >>conftest.$ac_ext
5168 cat >>conftest.$ac_ext <<_ACEOF
5169 /* end confdefs.h. */
5170 $ac_includes_default
5174 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
5181 rm -f conftest.$ac_objext
5182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5183 (eval $ac_compile) 2>conftest.er1
5185 grep -v '^ *+' conftest.er1 >conftest.err
5187 cat conftest.err >&5
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); } &&
5190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); }; } &&
5196 { ac_try='test -s conftest.$ac_objext'
5197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); }; }; then
5204 cat >conftest.$ac_ext <<_ACEOF
5207 cat confdefs.h >>conftest.$ac_ext
5208 cat >>conftest.$ac_ext <<_ACEOF
5209 /* end confdefs.h. */
5210 $ac_includes_default
5214 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5221 rm -f conftest.$ac_objext
5222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5223 (eval $ac_compile) 2>conftest.er1
5225 grep -v '^ *+' conftest.er1 >conftest.err
5227 cat conftest.err >&5
5228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229 (exit $ac_status); } &&
5230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); }; } &&
5236 { ac_try='test -s conftest.$ac_objext'
5237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); }; }; then
5242 ac_lo=$ac_mid; break
5244 echo "$as_me: failed program was:" >&5
5245 sed 's/^/| /' conftest.$ac_ext >&5
5247 ac_hi=`expr '(' $ac_mid ')' - 1`
5248 if test $ac_mid -le $ac_hi; then
5252 ac_mid=`expr 2 '*' $ac_mid`
5254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5257 echo "$as_me: failed program was:" >&5
5258 sed 's/^/| /' conftest.$ac_ext >&5
5262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5265 # Binary search between lo and hi bounds.
5266 while test "x$ac_lo" != "x$ac_hi"; do
5267 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5268 cat >conftest.$ac_ext <<_ACEOF
5271 cat confdefs.h >>conftest.$ac_ext
5272 cat >>conftest.$ac_ext <<_ACEOF
5273 /* end confdefs.h. */
5274 $ac_includes_default
5278 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5285 rm -f conftest.$ac_objext
5286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5287 (eval $ac_compile) 2>conftest.er1
5289 grep -v '^ *+' conftest.er1 >conftest.err
5291 cat conftest.err >&5
5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293 (exit $ac_status); } &&
5294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299 (exit $ac_status); }; } &&
5300 { ac_try='test -s conftest.$ac_objext'
5301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305 (exit $ac_status); }; }; then
5308 echo "$as_me: failed program was:" >&5
5309 sed 's/^/| /' conftest.$ac_ext >&5
5311 ac_lo=`expr '(' $ac_mid ')' + 1`
5313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5316 ?*) ac_cv_sizeof_short=$ac_lo;;
5317 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5318 See \`config.log' for more details." >&5
5319 echo "$as_me: error: cannot compute sizeof (short), 77
5320 See \`config.log' for more details." >&2;}
5321 { (exit 1); exit 1; }; } ;;
5324 if test "$cross_compiling" = yes; then
5325 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5326 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5327 { (exit 1); exit 1; }; }
5329 cat >conftest.$ac_ext <<_ACEOF
5332 cat confdefs.h >>conftest.$ac_ext
5333 cat >>conftest.$ac_ext <<_ACEOF
5334 /* end confdefs.h. */
5335 $ac_includes_default
5336 long longval () { return (long) (sizeof (short)); }
5337 unsigned long ulongval () { return (long) (sizeof (short)); }
5344 FILE *f = fopen ("conftest.val", "w");
5347 if (((long) (sizeof (short))) < 0)
5349 long i = longval ();
5350 if (i != ((long) (sizeof (short))))
5352 fprintf (f, "%ld\n", i);
5356 unsigned long i = ulongval ();
5357 if (i != ((long) (sizeof (short))))
5359 fprintf (f, "%lu\n", i);
5361 exit (ferror (f) || fclose (f) != 0);
5367 rm -f conftest$ac_exeext
5368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5369 (eval $ac_link) 2>&5
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); }; }; then
5378 ac_cv_sizeof_short=`cat conftest.val`
5380 echo "$as_me: program exited with status $ac_status" >&5
5381 echo "$as_me: failed program was:" >&5
5382 sed 's/^/| /' conftest.$ac_ext >&5
5385 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5386 See \`config.log' for more details." >&5
5387 echo "$as_me: error: cannot compute sizeof (short), 77
5388 See \`config.log' for more details." >&2;}
5389 { (exit 1); exit 1; }; }
5391 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5396 ac_cv_sizeof_short=0
5399 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5400 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5401 cat >>confdefs.h <<_ACEOF
5402 #define SIZEOF_SHORT $ac_cv_sizeof_short
5406 echo "$as_me:$LINENO: checking for int" >&5
5407 echo $ECHO_N "checking for int... $ECHO_C" >&6
5408 if test "${ac_cv_type_int+set}" = set; then
5409 echo $ECHO_N "(cached) $ECHO_C" >&6
5411 cat >conftest.$ac_ext <<_ACEOF
5414 cat confdefs.h >>conftest.$ac_ext
5415 cat >>conftest.$ac_ext <<_ACEOF
5416 /* end confdefs.h. */
5417 $ac_includes_default
5429 rm -f conftest.$ac_objext
5430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5431 (eval $ac_compile) 2>conftest.er1
5433 grep -v '^ *+' conftest.er1 >conftest.err
5435 cat conftest.err >&5
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); } &&
5438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); }; } &&
5444 { ac_try='test -s conftest.$ac_objext'
5445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 (exit $ac_status); }; }; then
5452 echo "$as_me: failed program was:" >&5
5453 sed 's/^/| /' conftest.$ac_ext >&5
5457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5459 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5460 echo "${ECHO_T}$ac_cv_type_int" >&6
5462 echo "$as_me:$LINENO: checking size of int" >&5
5463 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5464 if test "${ac_cv_sizeof_int+set}" = set; then
5465 echo $ECHO_N "(cached) $ECHO_C" >&6
5467 if test "$ac_cv_type_int" = yes; then
5468 # The cast to unsigned long works around a bug in the HP C Compiler
5469 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5470 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5471 # This bug is HP SR number 8606223364.
5472 if test "$cross_compiling" = yes; then
5473 # Depending upon the size, compute the lo and hi bounds.
5474 cat >conftest.$ac_ext <<_ACEOF
5477 cat confdefs.h >>conftest.$ac_ext
5478 cat >>conftest.$ac_ext <<_ACEOF
5479 /* end confdefs.h. */
5480 $ac_includes_default
5484 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5491 rm -f conftest.$ac_objext
5492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5493 (eval $ac_compile) 2>conftest.er1
5495 grep -v '^ *+' conftest.er1 >conftest.err
5497 cat conftest.err >&5
5498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499 (exit $ac_status); } &&
5500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505 (exit $ac_status); }; } &&
5506 { ac_try='test -s conftest.$ac_objext'
5507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); }; }; then
5514 cat >conftest.$ac_ext <<_ACEOF
5517 cat confdefs.h >>conftest.$ac_ext
5518 cat >>conftest.$ac_ext <<_ACEOF
5519 /* end confdefs.h. */
5520 $ac_includes_default
5524 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5531 rm -f conftest.$ac_objext
5532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5533 (eval $ac_compile) 2>conftest.er1
5535 grep -v '^ *+' conftest.er1 >conftest.err
5537 cat conftest.err >&5
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); } &&
5540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545 (exit $ac_status); }; } &&
5546 { ac_try='test -s conftest.$ac_objext'
5547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551 (exit $ac_status); }; }; then
5552 ac_hi=$ac_mid; break
5554 echo "$as_me: failed program was:" >&5
5555 sed 's/^/| /' conftest.$ac_ext >&5
5557 ac_lo=`expr $ac_mid + 1`
5558 if test $ac_lo -le $ac_mid; then
5562 ac_mid=`expr 2 '*' $ac_mid + 1`
5564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5567 echo "$as_me: failed program was:" >&5
5568 sed 's/^/| /' conftest.$ac_ext >&5
5570 cat >conftest.$ac_ext <<_ACEOF
5573 cat confdefs.h >>conftest.$ac_ext
5574 cat >>conftest.$ac_ext <<_ACEOF
5575 /* end confdefs.h. */
5576 $ac_includes_default
5580 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5587 rm -f conftest.$ac_objext
5588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5589 (eval $ac_compile) 2>conftest.er1
5591 grep -v '^ *+' conftest.er1 >conftest.err
5593 cat conftest.err >&5
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); } &&
5596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); }; } &&
5602 { ac_try='test -s conftest.$ac_objext'
5603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607 (exit $ac_status); }; }; then
5610 cat >conftest.$ac_ext <<_ACEOF
5613 cat confdefs.h >>conftest.$ac_ext
5614 cat >>conftest.$ac_ext <<_ACEOF
5615 /* end confdefs.h. */
5616 $ac_includes_default
5620 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5627 rm -f conftest.$ac_objext
5628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5629 (eval $ac_compile) 2>conftest.er1
5631 grep -v '^ *+' conftest.er1 >conftest.err
5633 cat conftest.err >&5
5634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635 (exit $ac_status); } &&
5636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641 (exit $ac_status); }; } &&
5642 { ac_try='test -s conftest.$ac_objext'
5643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647 (exit $ac_status); }; }; then
5648 ac_lo=$ac_mid; break
5650 echo "$as_me: failed program was:" >&5
5651 sed 's/^/| /' conftest.$ac_ext >&5
5653 ac_hi=`expr '(' $ac_mid ')' - 1`
5654 if test $ac_mid -le $ac_hi; then
5658 ac_mid=`expr 2 '*' $ac_mid`
5660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5663 echo "$as_me: failed program was:" >&5
5664 sed 's/^/| /' conftest.$ac_ext >&5
5668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5671 # Binary search between lo and hi bounds.
5672 while test "x$ac_lo" != "x$ac_hi"; do
5673 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5674 cat >conftest.$ac_ext <<_ACEOF
5677 cat confdefs.h >>conftest.$ac_ext
5678 cat >>conftest.$ac_ext <<_ACEOF
5679 /* end confdefs.h. */
5680 $ac_includes_default
5684 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5691 rm -f conftest.$ac_objext
5692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5693 (eval $ac_compile) 2>conftest.er1
5695 grep -v '^ *+' conftest.er1 >conftest.err
5697 cat conftest.err >&5
5698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699 (exit $ac_status); } &&
5700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 (exit $ac_status); }; } &&
5706 { ac_try='test -s conftest.$ac_objext'
5707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711 (exit $ac_status); }; }; then
5714 echo "$as_me: failed program was:" >&5
5715 sed 's/^/| /' conftest.$ac_ext >&5
5717 ac_lo=`expr '(' $ac_mid ')' + 1`
5719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5722 ?*) ac_cv_sizeof_int=$ac_lo;;
5723 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5724 See \`config.log' for more details." >&5
5725 echo "$as_me: error: cannot compute sizeof (int), 77
5726 See \`config.log' for more details." >&2;}
5727 { (exit 1); exit 1; }; } ;;
5730 if test "$cross_compiling" = yes; then
5731 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5732 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5733 { (exit 1); exit 1; }; }
5735 cat >conftest.$ac_ext <<_ACEOF
5738 cat confdefs.h >>conftest.$ac_ext
5739 cat >>conftest.$ac_ext <<_ACEOF
5740 /* end confdefs.h. */
5741 $ac_includes_default
5742 long longval () { return (long) (sizeof (int)); }
5743 unsigned long ulongval () { return (long) (sizeof (int)); }
5750 FILE *f = fopen ("conftest.val", "w");
5753 if (((long) (sizeof (int))) < 0)
5755 long i = longval ();
5756 if (i != ((long) (sizeof (int))))
5758 fprintf (f, "%ld\n", i);
5762 unsigned long i = ulongval ();
5763 if (i != ((long) (sizeof (int))))
5765 fprintf (f, "%lu\n", i);
5767 exit (ferror (f) || fclose (f) != 0);
5773 rm -f conftest$ac_exeext
5774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5775 (eval $ac_link) 2>&5
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 (exit $ac_status); }; }; then
5784 ac_cv_sizeof_int=`cat conftest.val`
5786 echo "$as_me: program exited with status $ac_status" >&5
5787 echo "$as_me: failed program was:" >&5
5788 sed 's/^/| /' conftest.$ac_ext >&5
5791 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5792 See \`config.log' for more details." >&5
5793 echo "$as_me: error: cannot compute sizeof (int), 77
5794 See \`config.log' for more details." >&2;}
5795 { (exit 1); exit 1; }; }
5797 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5805 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5806 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5807 cat >>confdefs.h <<_ACEOF
5808 #define SIZEOF_INT $ac_cv_sizeof_int
5812 echo "$as_me:$LINENO: checking for long" >&5
5813 echo $ECHO_N "checking for long... $ECHO_C" >&6
5814 if test "${ac_cv_type_long+set}" = set; then
5815 echo $ECHO_N "(cached) $ECHO_C" >&6
5817 cat >conftest.$ac_ext <<_ACEOF
5820 cat confdefs.h >>conftest.$ac_ext
5821 cat >>conftest.$ac_ext <<_ACEOF
5822 /* end confdefs.h. */
5823 $ac_includes_default
5835 rm -f conftest.$ac_objext
5836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5837 (eval $ac_compile) 2>conftest.er1
5839 grep -v '^ *+' conftest.er1 >conftest.err
5841 cat conftest.err >&5
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); } &&
5844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); }; } &&
5850 { ac_try='test -s conftest.$ac_objext'
5851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); }; }; then
5858 echo "$as_me: failed program was:" >&5
5859 sed 's/^/| /' conftest.$ac_ext >&5
5863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5865 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5866 echo "${ECHO_T}$ac_cv_type_long" >&6
5868 echo "$as_me:$LINENO: checking size of long" >&5
5869 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5870 if test "${ac_cv_sizeof_long+set}" = set; then
5871 echo $ECHO_N "(cached) $ECHO_C" >&6
5873 if test "$ac_cv_type_long" = yes; then
5874 # The cast to unsigned long works around a bug in the HP C Compiler
5875 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5876 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5877 # This bug is HP SR number 8606223364.
5878 if test "$cross_compiling" = yes; then
5879 # Depending upon the size, compute the lo and hi bounds.
5880 cat >conftest.$ac_ext <<_ACEOF
5883 cat confdefs.h >>conftest.$ac_ext
5884 cat >>conftest.$ac_ext <<_ACEOF
5885 /* end confdefs.h. */
5886 $ac_includes_default
5890 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5897 rm -f conftest.$ac_objext
5898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5899 (eval $ac_compile) 2>conftest.er1
5901 grep -v '^ *+' conftest.er1 >conftest.err
5903 cat conftest.err >&5
5904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905 (exit $ac_status); } &&
5906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911 (exit $ac_status); }; } &&
5912 { ac_try='test -s conftest.$ac_objext'
5913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917 (exit $ac_status); }; }; then
5920 cat >conftest.$ac_ext <<_ACEOF
5923 cat confdefs.h >>conftest.$ac_ext
5924 cat >>conftest.$ac_ext <<_ACEOF
5925 /* end confdefs.h. */
5926 $ac_includes_default
5930 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5937 rm -f conftest.$ac_objext
5938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5939 (eval $ac_compile) 2>conftest.er1
5941 grep -v '^ *+' conftest.er1 >conftest.err
5943 cat conftest.err >&5
5944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945 (exit $ac_status); } &&
5946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); }; } &&
5952 { ac_try='test -s conftest.$ac_objext'
5953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); }; }; then
5958 ac_hi=$ac_mid; break
5960 echo "$as_me: failed program was:" >&5
5961 sed 's/^/| /' conftest.$ac_ext >&5
5963 ac_lo=`expr $ac_mid + 1`
5964 if test $ac_lo -le $ac_mid; then
5968 ac_mid=`expr 2 '*' $ac_mid + 1`
5970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5973 echo "$as_me: failed program was:" >&5
5974 sed 's/^/| /' conftest.$ac_ext >&5
5976 cat >conftest.$ac_ext <<_ACEOF
5979 cat confdefs.h >>conftest.$ac_ext
5980 cat >>conftest.$ac_ext <<_ACEOF
5981 /* end confdefs.h. */
5982 $ac_includes_default
5986 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5993 rm -f conftest.$ac_objext
5994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5995 (eval $ac_compile) 2>conftest.er1
5997 grep -v '^ *+' conftest.er1 >conftest.err
5999 cat conftest.err >&5
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); } &&
6002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); }; } &&
6008 { ac_try='test -s conftest.$ac_objext'
6009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013 (exit $ac_status); }; }; then
6016 cat >conftest.$ac_ext <<_ACEOF
6019 cat confdefs.h >>conftest.$ac_ext
6020 cat >>conftest.$ac_ext <<_ACEOF
6021 /* end confdefs.h. */
6022 $ac_includes_default
6026 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6033 rm -f conftest.$ac_objext
6034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6035 (eval $ac_compile) 2>conftest.er1
6037 grep -v '^ *+' conftest.er1 >conftest.err
6039 cat conftest.err >&5
6040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041 (exit $ac_status); } &&
6042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047 (exit $ac_status); }; } &&
6048 { ac_try='test -s conftest.$ac_objext'
6049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); }; }; then
6054 ac_lo=$ac_mid; break
6056 echo "$as_me: failed program was:" >&5
6057 sed 's/^/| /' conftest.$ac_ext >&5
6059 ac_hi=`expr '(' $ac_mid ')' - 1`
6060 if test $ac_mid -le $ac_hi; then
6064 ac_mid=`expr 2 '*' $ac_mid`
6066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6069 echo "$as_me: failed program was:" >&5
6070 sed 's/^/| /' conftest.$ac_ext >&5
6074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6077 # Binary search between lo and hi bounds.
6078 while test "x$ac_lo" != "x$ac_hi"; do
6079 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6080 cat >conftest.$ac_ext <<_ACEOF
6083 cat confdefs.h >>conftest.$ac_ext
6084 cat >>conftest.$ac_ext <<_ACEOF
6085 /* end confdefs.h. */
6086 $ac_includes_default
6090 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6097 rm -f conftest.$ac_objext
6098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6099 (eval $ac_compile) 2>conftest.er1
6101 grep -v '^ *+' conftest.er1 >conftest.err
6103 cat conftest.err >&5
6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); } &&
6106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); }; } &&
6112 { ac_try='test -s conftest.$ac_objext'
6113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117 (exit $ac_status); }; }; then
6120 echo "$as_me: failed program was:" >&5
6121 sed 's/^/| /' conftest.$ac_ext >&5
6123 ac_lo=`expr '(' $ac_mid ')' + 1`
6125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6128 ?*) ac_cv_sizeof_long=$ac_lo;;
6129 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6130 See \`config.log' for more details." >&5
6131 echo "$as_me: error: cannot compute sizeof (long), 77
6132 See \`config.log' for more details." >&2;}
6133 { (exit 1); exit 1; }; } ;;
6136 if test "$cross_compiling" = yes; then
6137 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6138 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6139 { (exit 1); exit 1; }; }
6141 cat >conftest.$ac_ext <<_ACEOF
6144 cat confdefs.h >>conftest.$ac_ext
6145 cat >>conftest.$ac_ext <<_ACEOF
6146 /* end confdefs.h. */
6147 $ac_includes_default
6148 long longval () { return (long) (sizeof (long)); }
6149 unsigned long ulongval () { return (long) (sizeof (long)); }
6156 FILE *f = fopen ("conftest.val", "w");
6159 if (((long) (sizeof (long))) < 0)
6161 long i = longval ();
6162 if (i != ((long) (sizeof (long))))
6164 fprintf (f, "%ld\n", i);
6168 unsigned long i = ulongval ();
6169 if (i != ((long) (sizeof (long))))
6171 fprintf (f, "%lu\n", i);
6173 exit (ferror (f) || fclose (f) != 0);
6179 rm -f conftest$ac_exeext
6180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6181 (eval $ac_link) 2>&5
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189 (exit $ac_status); }; }; then
6190 ac_cv_sizeof_long=`cat conftest.val`
6192 echo "$as_me: program exited with status $ac_status" >&5
6193 echo "$as_me: failed program was:" >&5
6194 sed 's/^/| /' conftest.$ac_ext >&5
6197 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6198 See \`config.log' for more details." >&5
6199 echo "$as_me: error: cannot compute sizeof (long), 77
6200 See \`config.log' for more details." >&2;}
6201 { (exit 1); exit 1; }; }
6203 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6211 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6212 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
6213 cat >>confdefs.h <<_ACEOF
6214 #define SIZEOF_LONG $ac_cv_sizeof_long
6218 echo "$as_me:$LINENO: checking for void *" >&5
6219 echo $ECHO_N "checking for void *... $ECHO_C" >&6
6220 if test "${ac_cv_type_void_p+set}" = set; then
6221 echo $ECHO_N "(cached) $ECHO_C" >&6
6223 cat >conftest.$ac_ext <<_ACEOF
6226 cat confdefs.h >>conftest.$ac_ext
6227 cat >>conftest.$ac_ext <<_ACEOF
6228 /* end confdefs.h. */
6229 $ac_includes_default
6235 if (sizeof (void *))
6241 rm -f conftest.$ac_objext
6242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6243 (eval $ac_compile) 2>conftest.er1
6245 grep -v '^ *+' conftest.er1 >conftest.err
6247 cat conftest.err >&5
6248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249 (exit $ac_status); } &&
6250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255 (exit $ac_status); }; } &&
6256 { ac_try='test -s conftest.$ac_objext'
6257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261 (exit $ac_status); }; }; then
6262 ac_cv_type_void_p=yes
6264 echo "$as_me: failed program was:" >&5
6265 sed 's/^/| /' conftest.$ac_ext >&5
6267 ac_cv_type_void_p=no
6269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6271 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
6272 echo "${ECHO_T}$ac_cv_type_void_p" >&6
6274 echo "$as_me:$LINENO: checking size of void *" >&5
6275 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
6276 if test "${ac_cv_sizeof_void_p+set}" = set; then
6277 echo $ECHO_N "(cached) $ECHO_C" >&6
6279 if test "$ac_cv_type_void_p" = yes; then
6280 # The cast to unsigned long works around a bug in the HP C Compiler
6281 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6282 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6283 # This bug is HP SR number 8606223364.
6284 if test "$cross_compiling" = yes; then
6285 # Depending upon the size, compute the lo and hi bounds.
6286 cat >conftest.$ac_ext <<_ACEOF
6289 cat confdefs.h >>conftest.$ac_ext
6290 cat >>conftest.$ac_ext <<_ACEOF
6291 /* end confdefs.h. */
6292 $ac_includes_default
6296 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
6303 rm -f conftest.$ac_objext
6304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6305 (eval $ac_compile) 2>conftest.er1
6307 grep -v '^ *+' conftest.er1 >conftest.err
6309 cat conftest.err >&5
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); } &&
6312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317 (exit $ac_status); }; } &&
6318 { ac_try='test -s conftest.$ac_objext'
6319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323 (exit $ac_status); }; }; then
6326 cat >conftest.$ac_ext <<_ACEOF
6329 cat confdefs.h >>conftest.$ac_ext
6330 cat >>conftest.$ac_ext <<_ACEOF
6331 /* end confdefs.h. */
6332 $ac_includes_default
6336 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
6343 rm -f conftest.$ac_objext
6344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6345 (eval $ac_compile) 2>conftest.er1
6347 grep -v '^ *+' conftest.er1 >conftest.err
6349 cat conftest.err >&5
6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351 (exit $ac_status); } &&
6352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); }; } &&
6358 { ac_try='test -s conftest.$ac_objext'
6359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); }; }; then
6364 ac_hi=$ac_mid; break
6366 echo "$as_me: failed program was:" >&5
6367 sed 's/^/| /' conftest.$ac_ext >&5
6369 ac_lo=`expr $ac_mid + 1`
6370 if test $ac_lo -le $ac_mid; then
6374 ac_mid=`expr 2 '*' $ac_mid + 1`
6376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6379 echo "$as_me: failed program was:" >&5
6380 sed 's/^/| /' conftest.$ac_ext >&5
6382 cat >conftest.$ac_ext <<_ACEOF
6385 cat confdefs.h >>conftest.$ac_ext
6386 cat >>conftest.$ac_ext <<_ACEOF
6387 /* end confdefs.h. */
6388 $ac_includes_default
6392 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
6399 rm -f conftest.$ac_objext
6400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6401 (eval $ac_compile) 2>conftest.er1
6403 grep -v '^ *+' conftest.er1 >conftest.err
6405 cat conftest.err >&5
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); } &&
6408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); }; } &&
6414 { ac_try='test -s conftest.$ac_objext'
6415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); }; }; then
6422 cat >conftest.$ac_ext <<_ACEOF
6425 cat confdefs.h >>conftest.$ac_ext
6426 cat >>conftest.$ac_ext <<_ACEOF
6427 /* end confdefs.h. */
6428 $ac_includes_default
6432 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
6439 rm -f conftest.$ac_objext
6440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6441 (eval $ac_compile) 2>conftest.er1
6443 grep -v '^ *+' conftest.er1 >conftest.err
6445 cat conftest.err >&5
6446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447 (exit $ac_status); } &&
6448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); }; } &&
6454 { ac_try='test -s conftest.$ac_objext'
6455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); }; }; then
6460 ac_lo=$ac_mid; break
6462 echo "$as_me: failed program was:" >&5
6463 sed 's/^/| /' conftest.$ac_ext >&5
6465 ac_hi=`expr '(' $ac_mid ')' - 1`
6466 if test $ac_mid -le $ac_hi; then
6470 ac_mid=`expr 2 '*' $ac_mid`
6472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6475 echo "$as_me: failed program was:" >&5
6476 sed 's/^/| /' conftest.$ac_ext >&5
6480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6483 # Binary search between lo and hi bounds.
6484 while test "x$ac_lo" != "x$ac_hi"; do
6485 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6486 cat >conftest.$ac_ext <<_ACEOF
6489 cat confdefs.h >>conftest.$ac_ext
6490 cat >>conftest.$ac_ext <<_ACEOF
6491 /* end confdefs.h. */
6492 $ac_includes_default
6496 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
6503 rm -f conftest.$ac_objext
6504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6505 (eval $ac_compile) 2>conftest.er1
6507 grep -v '^ *+' conftest.er1 >conftest.err
6509 cat conftest.err >&5
6510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); } &&
6512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); }; } &&
6518 { ac_try='test -s conftest.$ac_objext'
6519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); }; }; then
6526 echo "$as_me: failed program was:" >&5
6527 sed 's/^/| /' conftest.$ac_ext >&5
6529 ac_lo=`expr '(' $ac_mid ')' + 1`
6531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6534 ?*) ac_cv_sizeof_void_p=$ac_lo;;
6535 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
6536 See \`config.log' for more details." >&5
6537 echo "$as_me: error: cannot compute sizeof (void *), 77
6538 See \`config.log' for more details." >&2;}
6539 { (exit 1); exit 1; }; } ;;
6542 if test "$cross_compiling" = yes; then
6543 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6544 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6545 { (exit 1); exit 1; }; }
6547 cat >conftest.$ac_ext <<_ACEOF
6550 cat confdefs.h >>conftest.$ac_ext
6551 cat >>conftest.$ac_ext <<_ACEOF
6552 /* end confdefs.h. */
6553 $ac_includes_default
6554 long longval () { return (long) (sizeof (void *)); }
6555 unsigned long ulongval () { return (long) (sizeof (void *)); }
6562 FILE *f = fopen ("conftest.val", "w");
6565 if (((long) (sizeof (void *))) < 0)
6567 long i = longval ();
6568 if (i != ((long) (sizeof (void *))))
6570 fprintf (f, "%ld\n", i);
6574 unsigned long i = ulongval ();
6575 if (i != ((long) (sizeof (void *))))
6577 fprintf (f, "%lu\n", i);
6579 exit (ferror (f) || fclose (f) != 0);
6585 rm -f conftest$ac_exeext
6586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6587 (eval $ac_link) 2>&5
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); }; }; then
6596 ac_cv_sizeof_void_p=`cat conftest.val`
6598 echo "$as_me: program exited with status $ac_status" >&5
6599 echo "$as_me: failed program was:" >&5
6600 sed 's/^/| /' conftest.$ac_ext >&5
6603 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
6604 See \`config.log' for more details." >&5
6605 echo "$as_me: error: cannot compute sizeof (void *), 77
6606 See \`config.log' for more details." >&2;}
6607 { (exit 1); exit 1; }; }
6609 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6614 ac_cv_sizeof_void_p=0
6617 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
6618 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
6619 cat >>confdefs.h <<_ACEOF
6620 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6624 echo "$as_me:$LINENO: checking for int64_t" >&5
6625 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
6626 if test "${ac_cv_type_int64_t+set}" = set; then
6627 echo $ECHO_N "(cached) $ECHO_C" >&6
6629 cat >conftest.$ac_ext <<_ACEOF
6632 cat confdefs.h >>conftest.$ac_ext
6633 cat >>conftest.$ac_ext <<_ACEOF
6634 /* end confdefs.h. */
6635 $ac_includes_default
6641 if (sizeof (int64_t))
6647 rm -f conftest.$ac_objext
6648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6649 (eval $ac_compile) 2>conftest.er1
6651 grep -v '^ *+' conftest.er1 >conftest.err
6653 cat conftest.err >&5
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); } &&
6656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); }; } &&
6662 { ac_try='test -s conftest.$ac_objext'
6663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 (exit $ac_status); }; }; then
6668 ac_cv_type_int64_t=yes
6670 echo "$as_me: failed program was:" >&5
6671 sed 's/^/| /' conftest.$ac_ext >&5
6673 ac_cv_type_int64_t=no
6675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6677 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
6678 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
6680 echo "$as_me:$LINENO: checking size of int64_t" >&5
6681 echo $ECHO_N "checking size of int64_t... $ECHO_C" >&6
6682 if test "${ac_cv_sizeof_int64_t+set}" = set; then
6683 echo $ECHO_N "(cached) $ECHO_C" >&6
6685 if test "$ac_cv_type_int64_t" = yes; then
6686 # The cast to unsigned long works around a bug in the HP C Compiler
6687 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6688 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6689 # This bug is HP SR number 8606223364.
6690 if test "$cross_compiling" = yes; then
6691 # Depending upon the size, compute the lo and hi bounds.
6692 cat >conftest.$ac_ext <<_ACEOF
6695 cat confdefs.h >>conftest.$ac_ext
6696 cat >>conftest.$ac_ext <<_ACEOF
6697 /* end confdefs.h. */
6698 $ac_includes_default
6702 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) >= 0)];
6709 rm -f conftest.$ac_objext
6710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6711 (eval $ac_compile) 2>conftest.er1
6713 grep -v '^ *+' conftest.er1 >conftest.err
6715 cat conftest.err >&5
6716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717 (exit $ac_status); } &&
6718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723 (exit $ac_status); }; } &&
6724 { ac_try='test -s conftest.$ac_objext'
6725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729 (exit $ac_status); }; }; then
6732 cat >conftest.$ac_ext <<_ACEOF
6735 cat confdefs.h >>conftest.$ac_ext
6736 cat >>conftest.$ac_ext <<_ACEOF
6737 /* end confdefs.h. */
6738 $ac_includes_default
6742 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) <= $ac_mid)];
6749 rm -f conftest.$ac_objext
6750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6751 (eval $ac_compile) 2>conftest.er1
6753 grep -v '^ *+' conftest.er1 >conftest.err
6755 cat conftest.err >&5
6756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757 (exit $ac_status); } &&
6758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); }; } &&
6764 { ac_try='test -s conftest.$ac_objext'
6765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769 (exit $ac_status); }; }; then
6770 ac_hi=$ac_mid; break
6772 echo "$as_me: failed program was:" >&5
6773 sed 's/^/| /' conftest.$ac_ext >&5
6775 ac_lo=`expr $ac_mid + 1`
6776 if test $ac_lo -le $ac_mid; then
6780 ac_mid=`expr 2 '*' $ac_mid + 1`
6782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6785 echo "$as_me: failed program was:" >&5
6786 sed 's/^/| /' conftest.$ac_ext >&5
6788 cat >conftest.$ac_ext <<_ACEOF
6791 cat confdefs.h >>conftest.$ac_ext
6792 cat >>conftest.$ac_ext <<_ACEOF
6793 /* end confdefs.h. */
6794 $ac_includes_default
6798 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) < 0)];
6805 rm -f conftest.$ac_objext
6806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6807 (eval $ac_compile) 2>conftest.er1
6809 grep -v '^ *+' conftest.er1 >conftest.err
6811 cat conftest.err >&5
6812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813 (exit $ac_status); } &&
6814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819 (exit $ac_status); }; } &&
6820 { ac_try='test -s conftest.$ac_objext'
6821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825 (exit $ac_status); }; }; then
6828 cat >conftest.$ac_ext <<_ACEOF
6831 cat confdefs.h >>conftest.$ac_ext
6832 cat >>conftest.$ac_ext <<_ACEOF
6833 /* end confdefs.h. */
6834 $ac_includes_default
6838 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) >= $ac_mid)];
6845 rm -f conftest.$ac_objext
6846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6847 (eval $ac_compile) 2>conftest.er1
6849 grep -v '^ *+' conftest.er1 >conftest.err
6851 cat conftest.err >&5
6852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853 (exit $ac_status); } &&
6854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859 (exit $ac_status); }; } &&
6860 { ac_try='test -s conftest.$ac_objext'
6861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865 (exit $ac_status); }; }; then
6866 ac_lo=$ac_mid; break
6868 echo "$as_me: failed program was:" >&5
6869 sed 's/^/| /' conftest.$ac_ext >&5
6871 ac_hi=`expr '(' $ac_mid ')' - 1`
6872 if test $ac_mid -le $ac_hi; then
6876 ac_mid=`expr 2 '*' $ac_mid`
6878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6881 echo "$as_me: failed program was:" >&5
6882 sed 's/^/| /' conftest.$ac_ext >&5
6886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6889 # Binary search between lo and hi bounds.
6890 while test "x$ac_lo" != "x$ac_hi"; do
6891 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6892 cat >conftest.$ac_ext <<_ACEOF
6895 cat confdefs.h >>conftest.$ac_ext
6896 cat >>conftest.$ac_ext <<_ACEOF
6897 /* end confdefs.h. */
6898 $ac_includes_default
6902 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) <= $ac_mid)];
6909 rm -f conftest.$ac_objext
6910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6911 (eval $ac_compile) 2>conftest.er1
6913 grep -v '^ *+' conftest.er1 >conftest.err
6915 cat conftest.err >&5
6916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917 (exit $ac_status); } &&
6918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923 (exit $ac_status); }; } &&
6924 { ac_try='test -s conftest.$ac_objext'
6925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929 (exit $ac_status); }; }; then
6932 echo "$as_me: failed program was:" >&5
6933 sed 's/^/| /' conftest.$ac_ext >&5
6935 ac_lo=`expr '(' $ac_mid ')' + 1`
6937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6940 ?*) ac_cv_sizeof_int64_t=$ac_lo;;
6941 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int64_t), 77
6942 See \`config.log' for more details." >&5
6943 echo "$as_me: error: cannot compute sizeof (int64_t), 77
6944 See \`config.log' for more details." >&2;}
6945 { (exit 1); exit 1; }; } ;;
6948 if test "$cross_compiling" = yes; then
6949 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6950 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6951 { (exit 1); exit 1; }; }
6953 cat >conftest.$ac_ext <<_ACEOF
6956 cat confdefs.h >>conftest.$ac_ext
6957 cat >>conftest.$ac_ext <<_ACEOF
6958 /* end confdefs.h. */
6959 $ac_includes_default
6960 long longval () { return (long) (sizeof (int64_t)); }
6961 unsigned long ulongval () { return (long) (sizeof (int64_t)); }
6968 FILE *f = fopen ("conftest.val", "w");
6971 if (((long) (sizeof (int64_t))) < 0)
6973 long i = longval ();
6974 if (i != ((long) (sizeof (int64_t))))
6976 fprintf (f, "%ld\n", i);
6980 unsigned long i = ulongval ();
6981 if (i != ((long) (sizeof (int64_t))))
6983 fprintf (f, "%lu\n", i);
6985 exit (ferror (f) || fclose (f) != 0);
6991 rm -f conftest$ac_exeext
6992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6993 (eval $ac_link) 2>&5
6995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001 (exit $ac_status); }; }; then
7002 ac_cv_sizeof_int64_t=`cat conftest.val`
7004 echo "$as_me: program exited with status $ac_status" >&5
7005 echo "$as_me: failed program was:" >&5
7006 sed 's/^/| /' conftest.$ac_ext >&5
7009 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int64_t), 77
7010 See \`config.log' for more details." >&5
7011 echo "$as_me: error: cannot compute sizeof (int64_t), 77
7012 See \`config.log' for more details." >&2;}
7013 { (exit 1); exit 1; }; }
7015 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7020 ac_cv_sizeof_int64_t=0
7023 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int64_t" >&5
7024 echo "${ECHO_T}$ac_cv_sizeof_int64_t" >&6
7025 cat >>confdefs.h <<_ACEOF
7026 #define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
7030 echo "$as_me:$LINENO: checking for long long" >&5
7031 echo $ECHO_N "checking for long long... $ECHO_C" >&6
7032 if test "${ac_cv_type_long_long+set}" = set; then
7033 echo $ECHO_N "(cached) $ECHO_C" >&6
7035 cat >conftest.$ac_ext <<_ACEOF
7038 cat confdefs.h >>conftest.$ac_ext
7039 cat >>conftest.$ac_ext <<_ACEOF
7040 /* end confdefs.h. */
7041 $ac_includes_default
7045 if ((long long *) 0)
7047 if (sizeof (long long))
7053 rm -f conftest.$ac_objext
7054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7055 (eval $ac_compile) 2>conftest.er1
7057 grep -v '^ *+' conftest.er1 >conftest.err
7059 cat conftest.err >&5
7060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061 (exit $ac_status); } &&
7062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067 (exit $ac_status); }; } &&
7068 { ac_try='test -s conftest.$ac_objext'
7069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); }; }; then
7074 ac_cv_type_long_long=yes
7076 echo "$as_me: failed program was:" >&5
7077 sed 's/^/| /' conftest.$ac_ext >&5
7079 ac_cv_type_long_long=no
7081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7083 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
7084 echo "${ECHO_T}$ac_cv_type_long_long" >&6
7086 echo "$as_me:$LINENO: checking size of long long" >&5
7087 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
7088 if test "${ac_cv_sizeof_long_long+set}" = set; then
7089 echo $ECHO_N "(cached) $ECHO_C" >&6
7091 if test "$ac_cv_type_long_long" = yes; then
7092 # The cast to unsigned long works around a bug in the HP C Compiler
7093 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7094 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7095 # This bug is HP SR number 8606223364.
7096 if test "$cross_compiling" = yes; then
7097 # Depending upon the size, compute the lo and hi bounds.
7098 cat >conftest.$ac_ext <<_ACEOF
7101 cat confdefs.h >>conftest.$ac_ext
7102 cat >>conftest.$ac_ext <<_ACEOF
7103 /* end confdefs.h. */
7104 $ac_includes_default
7108 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
7115 rm -f conftest.$ac_objext
7116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7117 (eval $ac_compile) 2>conftest.er1
7119 grep -v '^ *+' conftest.er1 >conftest.err
7121 cat conftest.err >&5
7122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123 (exit $ac_status); } &&
7124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129 (exit $ac_status); }; } &&
7130 { ac_try='test -s conftest.$ac_objext'
7131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135 (exit $ac_status); }; }; then
7138 cat >conftest.$ac_ext <<_ACEOF
7141 cat confdefs.h >>conftest.$ac_ext
7142 cat >>conftest.$ac_ext <<_ACEOF
7143 /* end confdefs.h. */
7144 $ac_includes_default
7148 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
7155 rm -f conftest.$ac_objext
7156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7157 (eval $ac_compile) 2>conftest.er1
7159 grep -v '^ *+' conftest.er1 >conftest.err
7161 cat conftest.err >&5
7162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163 (exit $ac_status); } &&
7164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7169 (exit $ac_status); }; } &&
7170 { ac_try='test -s conftest.$ac_objext'
7171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7175 (exit $ac_status); }; }; then
7176 ac_hi=$ac_mid; break
7178 echo "$as_me: failed program was:" >&5
7179 sed 's/^/| /' conftest.$ac_ext >&5
7181 ac_lo=`expr $ac_mid + 1`
7182 if test $ac_lo -le $ac_mid; then
7186 ac_mid=`expr 2 '*' $ac_mid + 1`
7188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7191 echo "$as_me: failed program was:" >&5
7192 sed 's/^/| /' conftest.$ac_ext >&5
7194 cat >conftest.$ac_ext <<_ACEOF
7197 cat confdefs.h >>conftest.$ac_ext
7198 cat >>conftest.$ac_ext <<_ACEOF
7199 /* end confdefs.h. */
7200 $ac_includes_default
7204 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
7211 rm -f conftest.$ac_objext
7212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7213 (eval $ac_compile) 2>conftest.er1
7215 grep -v '^ *+' conftest.er1 >conftest.err
7217 cat conftest.err >&5
7218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219 (exit $ac_status); } &&
7220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225 (exit $ac_status); }; } &&
7226 { ac_try='test -s conftest.$ac_objext'
7227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231 (exit $ac_status); }; }; then
7234 cat >conftest.$ac_ext <<_ACEOF
7237 cat confdefs.h >>conftest.$ac_ext
7238 cat >>conftest.$ac_ext <<_ACEOF
7239 /* end confdefs.h. */
7240 $ac_includes_default
7244 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
7251 rm -f conftest.$ac_objext
7252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7253 (eval $ac_compile) 2>conftest.er1
7255 grep -v '^ *+' conftest.er1 >conftest.err
7257 cat conftest.err >&5
7258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259 (exit $ac_status); } &&
7260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265 (exit $ac_status); }; } &&
7266 { ac_try='test -s conftest.$ac_objext'
7267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271 (exit $ac_status); }; }; then
7272 ac_lo=$ac_mid; break
7274 echo "$as_me: failed program was:" >&5
7275 sed 's/^/| /' conftest.$ac_ext >&5
7277 ac_hi=`expr '(' $ac_mid ')' - 1`
7278 if test $ac_mid -le $ac_hi; then
7282 ac_mid=`expr 2 '*' $ac_mid`
7284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7287 echo "$as_me: failed program was:" >&5
7288 sed 's/^/| /' conftest.$ac_ext >&5
7292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7295 # Binary search between lo and hi bounds.
7296 while test "x$ac_lo" != "x$ac_hi"; do
7297 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7298 cat >conftest.$ac_ext <<_ACEOF
7301 cat confdefs.h >>conftest.$ac_ext
7302 cat >>conftest.$ac_ext <<_ACEOF
7303 /* end confdefs.h. */
7304 $ac_includes_default
7308 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
7315 rm -f conftest.$ac_objext
7316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7317 (eval $ac_compile) 2>conftest.er1
7319 grep -v '^ *+' conftest.er1 >conftest.err
7321 cat conftest.err >&5
7322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323 (exit $ac_status); } &&
7324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329 (exit $ac_status); }; } &&
7330 { ac_try='test -s conftest.$ac_objext'
7331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7335 (exit $ac_status); }; }; then
7338 echo "$as_me: failed program was:" >&5
7339 sed 's/^/| /' conftest.$ac_ext >&5
7341 ac_lo=`expr '(' $ac_mid ')' + 1`
7343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7346 ?*) ac_cv_sizeof_long_long=$ac_lo;;
7347 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
7348 See \`config.log' for more details." >&5
7349 echo "$as_me: error: cannot compute sizeof (long long), 77
7350 See \`config.log' for more details." >&2;}
7351 { (exit 1); exit 1; }; } ;;
7354 if test "$cross_compiling" = yes; then
7355 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
7356 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
7357 { (exit 1); exit 1; }; }
7359 cat >conftest.$ac_ext <<_ACEOF
7362 cat confdefs.h >>conftest.$ac_ext
7363 cat >>conftest.$ac_ext <<_ACEOF
7364 /* end confdefs.h. */
7365 $ac_includes_default
7366 long longval () { return (long) (sizeof (long long)); }
7367 unsigned long ulongval () { return (long) (sizeof (long long)); }
7374 FILE *f = fopen ("conftest.val", "w");
7377 if (((long) (sizeof (long long))) < 0)
7379 long i = longval ();
7380 if (i != ((long) (sizeof (long long))))
7382 fprintf (f, "%ld\n", i);
7386 unsigned long i = ulongval ();
7387 if (i != ((long) (sizeof (long long))))
7389 fprintf (f, "%lu\n", i);
7391 exit (ferror (f) || fclose (f) != 0);
7397 rm -f conftest$ac_exeext
7398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7399 (eval $ac_link) 2>&5
7401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407 (exit $ac_status); }; }; then
7408 ac_cv_sizeof_long_long=`cat conftest.val`
7410 echo "$as_me: program exited with status $ac_status" >&5
7411 echo "$as_me: failed program was:" >&5
7412 sed 's/^/| /' conftest.$ac_ext >&5
7415 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
7416 See \`config.log' for more details." >&5
7417 echo "$as_me: error: cannot compute sizeof (long long), 77
7418 See \`config.log' for more details." >&2;}
7419 { (exit 1); exit 1; }; }
7421 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7426 ac_cv_sizeof_long_long=0
7429 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
7430 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
7431 cat >>confdefs.h <<_ACEOF
7432 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7436 if test "$ac_cv_sizeof_int" = 2 ; then
7437 echo "$as_me:$LINENO: checking for int16_t" >&5
7438 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
7439 if test "${ac_cv_type_int16_t+set}" = set; then
7440 echo $ECHO_N "(cached) $ECHO_C" >&6
7442 cat >conftest.$ac_ext <<_ACEOF
7445 cat confdefs.h >>conftest.$ac_ext
7446 cat >>conftest.$ac_ext <<_ACEOF
7447 /* end confdefs.h. */
7448 $ac_includes_default
7454 if (sizeof (int16_t))
7460 rm -f conftest.$ac_objext
7461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7462 (eval $ac_compile) 2>conftest.er1
7464 grep -v '^ *+' conftest.er1 >conftest.err
7466 cat conftest.err >&5
7467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468 (exit $ac_status); } &&
7469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7474 (exit $ac_status); }; } &&
7475 { ac_try='test -s conftest.$ac_objext'
7476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480 (exit $ac_status); }; }; then
7481 ac_cv_type_int16_t=yes
7483 echo "$as_me: failed program was:" >&5
7484 sed 's/^/| /' conftest.$ac_ext >&5
7486 ac_cv_type_int16_t=no
7488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7490 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
7491 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
7492 if test $ac_cv_type_int16_t = yes; then
7496 cat >>confdefs.h <<_ACEOF
7502 echo "$as_me:$LINENO: checking for uint16_t" >&5
7503 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
7504 if test "${ac_cv_type_uint16_t+set}" = set; then
7505 echo $ECHO_N "(cached) $ECHO_C" >&6
7507 cat >conftest.$ac_ext <<_ACEOF
7510 cat confdefs.h >>conftest.$ac_ext
7511 cat >>conftest.$ac_ext <<_ACEOF
7512 /* end confdefs.h. */
7513 $ac_includes_default
7519 if (sizeof (uint16_t))
7525 rm -f conftest.$ac_objext
7526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7527 (eval $ac_compile) 2>conftest.er1
7529 grep -v '^ *+' conftest.er1 >conftest.err
7531 cat conftest.err >&5
7532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533 (exit $ac_status); } &&
7534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539 (exit $ac_status); }; } &&
7540 { ac_try='test -s conftest.$ac_objext'
7541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); }; }; then
7546 ac_cv_type_uint16_t=yes
7548 echo "$as_me: failed program was:" >&5
7549 sed 's/^/| /' conftest.$ac_ext >&5
7551 ac_cv_type_uint16_t=no
7553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7555 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
7556 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
7557 if test $ac_cv_type_uint16_t = yes; then
7561 cat >>confdefs.h <<_ACEOF
7562 #define uint16_t unsigned int
7567 elif test "$ac_cv_sizeof_short" = 2 ; then
7568 echo "$as_me:$LINENO: checking for int16_t" >&5
7569 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
7570 if test "${ac_cv_type_int16_t+set}" = set; then
7571 echo $ECHO_N "(cached) $ECHO_C" >&6
7573 cat >conftest.$ac_ext <<_ACEOF
7576 cat confdefs.h >>conftest.$ac_ext
7577 cat >>conftest.$ac_ext <<_ACEOF
7578 /* end confdefs.h. */
7579 $ac_includes_default
7585 if (sizeof (int16_t))
7591 rm -f conftest.$ac_objext
7592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7593 (eval $ac_compile) 2>conftest.er1
7595 grep -v '^ *+' conftest.er1 >conftest.err
7597 cat conftest.err >&5
7598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599 (exit $ac_status); } &&
7600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); }; } &&
7606 { ac_try='test -s conftest.$ac_objext'
7607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611 (exit $ac_status); }; }; then
7612 ac_cv_type_int16_t=yes
7614 echo "$as_me: failed program was:" >&5
7615 sed 's/^/| /' conftest.$ac_ext >&5
7617 ac_cv_type_int16_t=no
7619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7621 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
7622 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
7623 if test $ac_cv_type_int16_t = yes; then
7627 cat >>confdefs.h <<_ACEOF
7628 #define int16_t short
7633 echo "$as_me:$LINENO: checking for uint16_t" >&5
7634 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
7635 if test "${ac_cv_type_uint16_t+set}" = set; then
7636 echo $ECHO_N "(cached) $ECHO_C" >&6
7638 cat >conftest.$ac_ext <<_ACEOF
7641 cat confdefs.h >>conftest.$ac_ext
7642 cat >>conftest.$ac_ext <<_ACEOF
7643 /* end confdefs.h. */
7644 $ac_includes_default
7650 if (sizeof (uint16_t))
7656 rm -f conftest.$ac_objext
7657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7658 (eval $ac_compile) 2>conftest.er1
7660 grep -v '^ *+' conftest.er1 >conftest.err
7662 cat conftest.err >&5
7663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664 (exit $ac_status); } &&
7665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); }; } &&
7671 { ac_try='test -s conftest.$ac_objext'
7672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676 (exit $ac_status); }; }; then
7677 ac_cv_type_uint16_t=yes
7679 echo "$as_me: failed program was:" >&5
7680 sed 's/^/| /' conftest.$ac_ext >&5
7682 ac_cv_type_uint16_t=no
7684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7686 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
7687 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
7688 if test $ac_cv_type_uint16_t = yes; then
7692 cat >>confdefs.h <<_ACEOF
7693 #define uint16_t unsigned short
7699 { { echo "$as_me:$LINENO: error: Cannot find a type with size of 16 bits" >&5
7700 echo "$as_me: error: Cannot find a type with size of 16 bits" >&2;}
7701 { (exit 1); exit 1; }; }
7703 if test "$ac_cv_sizeof_int" = 4 ; then
7704 echo "$as_me:$LINENO: checking for int32_t" >&5
7705 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
7706 if test "${ac_cv_type_int32_t+set}" = set; then
7707 echo $ECHO_N "(cached) $ECHO_C" >&6
7709 cat >conftest.$ac_ext <<_ACEOF
7712 cat confdefs.h >>conftest.$ac_ext
7713 cat >>conftest.$ac_ext <<_ACEOF
7714 /* end confdefs.h. */
7715 $ac_includes_default
7721 if (sizeof (int32_t))
7727 rm -f conftest.$ac_objext
7728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7729 (eval $ac_compile) 2>conftest.er1
7731 grep -v '^ *+' conftest.er1 >conftest.err
7733 cat conftest.err >&5
7734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735 (exit $ac_status); } &&
7736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741 (exit $ac_status); }; } &&
7742 { ac_try='test -s conftest.$ac_objext'
7743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747 (exit $ac_status); }; }; then
7748 ac_cv_type_int32_t=yes
7750 echo "$as_me: failed program was:" >&5
7751 sed 's/^/| /' conftest.$ac_ext >&5
7753 ac_cv_type_int32_t=no
7755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7757 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
7758 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
7759 if test $ac_cv_type_int32_t = yes; then
7763 cat >>confdefs.h <<_ACEOF
7769 echo "$as_me:$LINENO: checking for uint32_t" >&5
7770 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
7771 if test "${ac_cv_type_uint32_t+set}" = set; then
7772 echo $ECHO_N "(cached) $ECHO_C" >&6
7774 cat >conftest.$ac_ext <<_ACEOF
7777 cat confdefs.h >>conftest.$ac_ext
7778 cat >>conftest.$ac_ext <<_ACEOF
7779 /* end confdefs.h. */
7780 $ac_includes_default
7786 if (sizeof (uint32_t))
7792 rm -f conftest.$ac_objext
7793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7794 (eval $ac_compile) 2>conftest.er1
7796 grep -v '^ *+' conftest.er1 >conftest.err
7798 cat conftest.err >&5
7799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7800 (exit $ac_status); } &&
7801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7806 (exit $ac_status); }; } &&
7807 { ac_try='test -s conftest.$ac_objext'
7808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812 (exit $ac_status); }; }; then
7813 ac_cv_type_uint32_t=yes
7815 echo "$as_me: failed program was:" >&5
7816 sed 's/^/| /' conftest.$ac_ext >&5
7818 ac_cv_type_uint32_t=no
7820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7822 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
7823 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
7824 if test $ac_cv_type_uint32_t = yes; then
7828 cat >>confdefs.h <<_ACEOF
7829 #define uint32_t unsigned int
7834 elif test "$ac_cv_sizeof_short" = 4 ; then
7835 echo "$as_me:$LINENO: checking for int32_t" >&5
7836 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
7837 if test "${ac_cv_type_int32_t+set}" = set; then
7838 echo $ECHO_N "(cached) $ECHO_C" >&6
7840 cat >conftest.$ac_ext <<_ACEOF
7843 cat confdefs.h >>conftest.$ac_ext
7844 cat >>conftest.$ac_ext <<_ACEOF
7845 /* end confdefs.h. */
7846 $ac_includes_default
7852 if (sizeof (int32_t))
7858 rm -f conftest.$ac_objext
7859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7860 (eval $ac_compile) 2>conftest.er1
7862 grep -v '^ *+' conftest.er1 >conftest.err
7864 cat conftest.err >&5
7865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866 (exit $ac_status); } &&
7867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872 (exit $ac_status); }; } &&
7873 { ac_try='test -s conftest.$ac_objext'
7874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878 (exit $ac_status); }; }; then
7879 ac_cv_type_int32_t=yes
7881 echo "$as_me: failed program was:" >&5
7882 sed 's/^/| /' conftest.$ac_ext >&5
7884 ac_cv_type_int32_t=no
7886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7888 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
7889 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
7890 if test $ac_cv_type_int32_t = yes; then
7894 cat >>confdefs.h <<_ACEOF
7895 #define int32_t short
7900 echo "$as_me:$LINENO: checking for uint32_t" >&5
7901 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
7902 if test "${ac_cv_type_uint32_t+set}" = set; then
7903 echo $ECHO_N "(cached) $ECHO_C" >&6
7905 cat >conftest.$ac_ext <<_ACEOF
7908 cat confdefs.h >>conftest.$ac_ext
7909 cat >>conftest.$ac_ext <<_ACEOF
7910 /* end confdefs.h. */
7911 $ac_includes_default
7917 if (sizeof (uint32_t))
7923 rm -f conftest.$ac_objext
7924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7925 (eval $ac_compile) 2>conftest.er1
7927 grep -v '^ *+' conftest.er1 >conftest.err
7929 cat conftest.err >&5
7930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7931 (exit $ac_status); } &&
7932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937 (exit $ac_status); }; } &&
7938 { ac_try='test -s conftest.$ac_objext'
7939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943 (exit $ac_status); }; }; then
7944 ac_cv_type_uint32_t=yes
7946 echo "$as_me: failed program was:" >&5
7947 sed 's/^/| /' conftest.$ac_ext >&5
7949 ac_cv_type_uint32_t=no
7951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7953 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
7954 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
7955 if test $ac_cv_type_uint32_t = yes; then
7959 cat >>confdefs.h <<_ACEOF
7960 #define uint32_t unsigned short
7965 elif test "$ac_cv_sizeof_long" = 4 ; then
7966 echo "$as_me:$LINENO: checking for int32_t" >&5
7967 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
7968 if test "${ac_cv_type_int32_t+set}" = set; then
7969 echo $ECHO_N "(cached) $ECHO_C" >&6
7971 cat >conftest.$ac_ext <<_ACEOF
7974 cat confdefs.h >>conftest.$ac_ext
7975 cat >>conftest.$ac_ext <<_ACEOF
7976 /* end confdefs.h. */
7977 $ac_includes_default
7983 if (sizeof (int32_t))
7989 rm -f conftest.$ac_objext
7990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7991 (eval $ac_compile) 2>conftest.er1
7993 grep -v '^ *+' conftest.er1 >conftest.err
7995 cat conftest.err >&5
7996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997 (exit $ac_status); } &&
7998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003 (exit $ac_status); }; } &&
8004 { ac_try='test -s conftest.$ac_objext'
8005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009 (exit $ac_status); }; }; then
8010 ac_cv_type_int32_t=yes
8012 echo "$as_me: failed program was:" >&5
8013 sed 's/^/| /' conftest.$ac_ext >&5
8015 ac_cv_type_int32_t=no
8017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8019 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
8020 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
8021 if test $ac_cv_type_int32_t = yes; then
8025 cat >>confdefs.h <<_ACEOF
8026 #define int32_t long
8031 echo "$as_me:$LINENO: checking for uint32_t" >&5
8032 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
8033 if test "${ac_cv_type_uint32_t+set}" = set; then
8034 echo $ECHO_N "(cached) $ECHO_C" >&6
8036 cat >conftest.$ac_ext <<_ACEOF
8039 cat confdefs.h >>conftest.$ac_ext
8040 cat >>conftest.$ac_ext <<_ACEOF
8041 /* end confdefs.h. */
8042 $ac_includes_default
8048 if (sizeof (uint32_t))
8054 rm -f conftest.$ac_objext
8055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8056 (eval $ac_compile) 2>conftest.er1
8058 grep -v '^ *+' conftest.er1 >conftest.err
8060 cat conftest.err >&5
8061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062 (exit $ac_status); } &&
8063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068 (exit $ac_status); }; } &&
8069 { ac_try='test -s conftest.$ac_objext'
8070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074 (exit $ac_status); }; }; then
8075 ac_cv_type_uint32_t=yes
8077 echo "$as_me: failed program was:" >&5
8078 sed 's/^/| /' conftest.$ac_ext >&5
8080 ac_cv_type_uint32_t=no
8082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8084 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
8085 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
8086 if test $ac_cv_type_uint32_t = yes; then
8090 cat >>confdefs.h <<_ACEOF
8091 #define uint32_t unsigned long
8097 { { echo "$as_me:$LINENO: error: Cannot find a type with size of 32 bits" >&5
8098 echo "$as_me: error: Cannot find a type with size of 32 bits" >&2;}
8099 { (exit 1); exit 1; }; }
8101 if test "$ac_cv_sizeof_int64_t" = 8 ; then
8102 echo "$as_me:$LINENO: checking for int64_t" >&5
8103 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
8104 if test "${ac_cv_type_int64_t+set}" = set; then
8105 echo $ECHO_N "(cached) $ECHO_C" >&6
8107 cat >conftest.$ac_ext <<_ACEOF
8110 cat confdefs.h >>conftest.$ac_ext
8111 cat >>conftest.$ac_ext <<_ACEOF
8112 /* end confdefs.h. */
8113 $ac_includes_default
8119 if (sizeof (int64_t))
8125 rm -f conftest.$ac_objext
8126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8127 (eval $ac_compile) 2>conftest.er1
8129 grep -v '^ *+' conftest.er1 >conftest.err
8131 cat conftest.err >&5
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); } &&
8134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 (exit $ac_status); }; } &&
8140 { ac_try='test -s conftest.$ac_objext'
8141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145 (exit $ac_status); }; }; then
8146 ac_cv_type_int64_t=yes
8148 echo "$as_me: failed program was:" >&5
8149 sed 's/^/| /' conftest.$ac_ext >&5
8151 ac_cv_type_int64_t=no
8153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8155 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
8156 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
8158 echo "$as_me:$LINENO: checking for uint64_t" >&5
8159 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
8160 if test "${ac_cv_type_uint64_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 (uint64_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_uint64_t=yes
8204 echo "$as_me: failed program was:" >&5
8205 sed 's/^/| /' conftest.$ac_ext >&5
8207 ac_cv_type_uint64_t=no
8209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8211 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
8212 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
8214 elif test "$ac_cv_sizeof_long_long" = 8 ; then
8215 echo "$as_me:$LINENO: checking for int64_t" >&5
8216 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
8217 if test "${ac_cv_type_int64_t+set}" = set; then
8218 echo $ECHO_N "(cached) $ECHO_C" >&6
8220 cat >conftest.$ac_ext <<_ACEOF
8223 cat confdefs.h >>conftest.$ac_ext
8224 cat >>conftest.$ac_ext <<_ACEOF
8225 /* end confdefs.h. */
8226 $ac_includes_default
8232 if (sizeof (int64_t))
8238 rm -f conftest.$ac_objext
8239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8240 (eval $ac_compile) 2>conftest.er1
8242 grep -v '^ *+' conftest.er1 >conftest.err
8244 cat conftest.err >&5
8245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246 (exit $ac_status); } &&
8247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252 (exit $ac_status); }; } &&
8253 { ac_try='test -s conftest.$ac_objext'
8254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258 (exit $ac_status); }; }; then
8259 ac_cv_type_int64_t=yes
8261 echo "$as_me: failed program was:" >&5
8262 sed 's/^/| /' conftest.$ac_ext >&5
8264 ac_cv_type_int64_t=no
8266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8268 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
8269 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
8270 if test $ac_cv_type_int64_t = yes; then
8274 cat >>confdefs.h <<_ACEOF
8275 #define int64_t long long
8280 echo "$as_me:$LINENO: checking for uint64_t" >&5
8281 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
8282 if test "${ac_cv_type_uint64_t+set}" = set; then
8283 echo $ECHO_N "(cached) $ECHO_C" >&6
8285 cat >conftest.$ac_ext <<_ACEOF
8288 cat confdefs.h >>conftest.$ac_ext
8289 cat >>conftest.$ac_ext <<_ACEOF
8290 /* end confdefs.h. */
8291 $ac_includes_default
8297 if (sizeof (uint64_t))
8303 rm -f conftest.$ac_objext
8304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8305 (eval $ac_compile) 2>conftest.er1
8307 grep -v '^ *+' conftest.er1 >conftest.err
8309 cat conftest.err >&5
8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 (exit $ac_status); } &&
8312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317 (exit $ac_status); }; } &&
8318 { ac_try='test -s conftest.$ac_objext'
8319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); }; }; then
8324 ac_cv_type_uint64_t=yes
8326 echo "$as_me: failed program was:" >&5
8327 sed 's/^/| /' conftest.$ac_ext >&5
8329 ac_cv_type_uint64_t=no
8331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8333 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
8334 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
8335 if test $ac_cv_type_uint64_t = yes; then
8339 cat >>confdefs.h <<_ACEOF
8340 #define uint64_t unsigned long long
8346 { { echo "$as_me:$LINENO: error: Cannot find a type with size of 64 bits" >&5
8347 echo "$as_me: error: Cannot find a type with size of 64 bits" >&2;}
8348 { (exit 1); exit 1; }; }
8350 echo "$as_me:$LINENO: checking for socklen_t" >&5
8351 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
8352 if test "${ac_cv_type_socklen_t+set}" = set; then
8353 echo $ECHO_N "(cached) $ECHO_C" >&6
8355 cat >conftest.$ac_ext <<_ACEOF
8358 cat confdefs.h >>conftest.$ac_ext
8359 cat >>conftest.$ac_ext <<_ACEOF
8360 /* end confdefs.h. */
8361 $ac_includes_default
8365 if ((socklen_t *) 0)
8367 if (sizeof (socklen_t))
8373 rm -f conftest.$ac_objext
8374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8375 (eval $ac_compile) 2>conftest.er1
8377 grep -v '^ *+' conftest.er1 >conftest.err
8379 cat conftest.err >&5
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); } &&
8382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); }; } &&
8388 { ac_try='test -s conftest.$ac_objext'
8389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393 (exit $ac_status); }; }; then
8394 ac_cv_type_socklen_t=yes
8396 echo "$as_me: failed program was:" >&5
8397 sed 's/^/| /' conftest.$ac_ext >&5
8399 ac_cv_type_socklen_t=no
8401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8403 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
8404 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
8405 if test $ac_cv_type_socklen_t = yes; then
8409 cat >>confdefs.h <<_ACEOF
8410 #define socklen_t unsigned int
8415 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
8416 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
8417 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
8418 echo $ECHO_N "(cached) $ECHO_C" >&6
8420 cat >conftest.$ac_ext <<_ACEOF
8423 cat confdefs.h >>conftest.$ac_ext
8424 cat >>conftest.$ac_ext <<_ACEOF
8425 /* end confdefs.h. */
8426 #include <sys/types.h>
8427 #include <netinet/in.h>
8432 if ((struct sockaddr_in6 *) 0)
8434 if (sizeof (struct sockaddr_in6))
8440 rm -f conftest.$ac_objext
8441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8442 (eval $ac_compile) 2>conftest.er1
8444 grep -v '^ *+' conftest.er1 >conftest.err
8446 cat conftest.err >&5
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); } &&
8449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); }; } &&
8455 { ac_try='test -s conftest.$ac_objext'
8456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); }; }; then
8461 ac_cv_type_struct_sockaddr_in6=yes
8463 echo "$as_me: failed program was:" >&5
8464 sed 's/^/| /' conftest.$ac_ext >&5
8466 ac_cv_type_struct_sockaddr_in6=no
8468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8470 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
8471 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
8472 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
8473 unet_have_sockaddr_in6="yes"
8475 unet_have_sockaddr_in6="no"
8483 for ac_func in kqueue setrlimit getrusage times
8485 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8486 echo "$as_me:$LINENO: checking for $ac_func" >&5
8487 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8488 if eval "test \"\${$as_ac_var+set}\" = set"; then
8489 echo $ECHO_N "(cached) $ECHO_C" >&6
8491 cat >conftest.$ac_ext <<_ACEOF
8494 cat confdefs.h >>conftest.$ac_ext
8495 cat >>conftest.$ac_ext <<_ACEOF
8496 /* end confdefs.h. */
8497 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8498 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8499 #define $ac_func innocuous_$ac_func
8501 /* System header to define __stub macros and hopefully few prototypes,
8502 which can conflict with char $ac_func (); below.
8503 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8504 <limits.h> exists even on freestanding compilers. */
8507 # include <limits.h>
8509 # include <assert.h>
8514 /* Override any gcc2 internal prototype to avoid an error. */
8519 /* We use char because int might match the return type of a gcc2
8520 builtin and then its argument prototype would still apply. */
8522 /* The GNU C library defines this for functions which it implements
8523 to always fail with ENOSYS. Some functions are actually named
8524 something starting with __ and the normal name is an alias. */
8525 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8528 char (*f) () = $ac_func;
8537 return f != $ac_func;
8542 rm -f conftest.$ac_objext conftest$ac_exeext
8543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8544 (eval $ac_link) 2>conftest.er1
8546 grep -v '^ *+' conftest.er1 >conftest.err
8548 cat conftest.err >&5
8549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550 (exit $ac_status); } &&
8551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 (exit $ac_status); }; } &&
8557 { ac_try='test -s conftest$ac_exeext'
8558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562 (exit $ac_status); }; }; then
8563 eval "$as_ac_var=yes"
8565 echo "$as_me: failed program was:" >&5
8566 sed 's/^/| /' conftest.$ac_ext >&5
8568 eval "$as_ac_var=no"
8570 rm -f conftest.err conftest.$ac_objext \
8571 conftest$ac_exeext conftest.$ac_ext
8573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8574 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8575 if test `eval echo '${'$as_ac_var'}'` = yes; then
8576 cat >>confdefs.h <<_ACEOF
8577 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8584 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8585 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8586 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8587 echo $ECHO_N "(cached) $ECHO_C" >&6
8589 cat >conftest.$ac_ext <<_ACEOF
8592 cat confdefs.h >>conftest.$ac_ext
8593 cat >>conftest.$ac_ext <<_ACEOF
8594 /* end confdefs.h. */
8595 #include <sys/types.h>
8596 #include <sys/wait.h>
8598 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8601 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8609 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8614 rm -f conftest.$ac_objext
8615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8616 (eval $ac_compile) 2>conftest.er1
8618 grep -v '^ *+' conftest.er1 >conftest.err
8620 cat conftest.err >&5
8621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622 (exit $ac_status); } &&
8623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628 (exit $ac_status); }; } &&
8629 { ac_try='test -s conftest.$ac_objext'
8630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634 (exit $ac_status); }; }; then
8635 ac_cv_header_sys_wait_h=yes
8637 echo "$as_me: failed program was:" >&5
8638 sed 's/^/| /' conftest.$ac_ext >&5
8640 ac_cv_header_sys_wait_h=no
8642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8644 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8645 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8646 if test $ac_cv_header_sys_wait_h = yes; then
8648 cat >>confdefs.h <<\_ACEOF
8649 #define HAVE_SYS_WAIT_H 1
8655 for ac_header in unistd.h
8657 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8658 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8659 echo "$as_me:$LINENO: checking for $ac_header" >&5
8660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8662 echo $ECHO_N "(cached) $ECHO_C" >&6
8664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8665 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8667 # Is the header compilable?
8668 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8669 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8670 cat >conftest.$ac_ext <<_ACEOF
8673 cat confdefs.h >>conftest.$ac_ext
8674 cat >>conftest.$ac_ext <<_ACEOF
8675 /* end confdefs.h. */
8676 $ac_includes_default
8677 #include <$ac_header>
8679 rm -f conftest.$ac_objext
8680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8681 (eval $ac_compile) 2>conftest.er1
8683 grep -v '^ *+' conftest.er1 >conftest.err
8685 cat conftest.err >&5
8686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687 (exit $ac_status); } &&
8688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693 (exit $ac_status); }; } &&
8694 { ac_try='test -s conftest.$ac_objext'
8695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699 (exit $ac_status); }; }; then
8700 ac_header_compiler=yes
8702 echo "$as_me: failed program was:" >&5
8703 sed 's/^/| /' conftest.$ac_ext >&5
8705 ac_header_compiler=no
8707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8708 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8709 echo "${ECHO_T}$ac_header_compiler" >&6
8711 # Is the header present?
8712 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8713 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8714 cat >conftest.$ac_ext <<_ACEOF
8717 cat confdefs.h >>conftest.$ac_ext
8718 cat >>conftest.$ac_ext <<_ACEOF
8719 /* end confdefs.h. */
8720 #include <$ac_header>
8722 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8723 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8725 grep -v '^ *+' conftest.er1 >conftest.err
8727 cat conftest.err >&5
8728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729 (exit $ac_status); } >/dev/null; then
8730 if test -s conftest.err; then
8731 ac_cpp_err=$ac_c_preproc_warn_flag
8732 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8739 if test -z "$ac_cpp_err"; then
8740 ac_header_preproc=yes
8742 echo "$as_me: failed program was:" >&5
8743 sed 's/^/| /' conftest.$ac_ext >&5
8745 ac_header_preproc=no
8747 rm -f conftest.err conftest.$ac_ext
8748 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8749 echo "${ECHO_T}$ac_header_preproc" >&6
8751 # So? What about this header?
8752 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8754 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8755 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8757 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8758 ac_header_preproc=yes
8761 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8762 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8763 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8764 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8765 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8766 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8767 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8768 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8769 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8770 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8771 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8772 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8775 ## ------------------------------------------ ##
8776 ## Report this to the AC_PACKAGE_NAME lists. ##
8777 ## ------------------------------------------ ##
8780 sed "s/^/$as_me: WARNING: /" >&2
8783 echo "$as_me:$LINENO: checking for $ac_header" >&5
8784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8786 echo $ECHO_N "(cached) $ECHO_C" >&6
8788 eval "$as_ac_Header=\$ac_header_preproc"
8790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8791 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8794 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8795 cat >>confdefs.h <<_ACEOF
8796 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8803 echo "$as_me:$LINENO: checking for restartable system calls" >&5
8804 echo $ECHO_N "checking for restartable system calls... $ECHO_C" >&6
8805 if test "${ac_cv_sys_restartable_syscalls+set}" = set; then
8806 echo $ECHO_N "(cached) $ECHO_C" >&6
8808 if test "$cross_compiling" = yes; then
8809 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8810 See \`config.log' for more details." >&5
8811 echo "$as_me: error: cannot run test program while cross compiling
8812 See \`config.log' for more details." >&2;}
8813 { (exit 1); exit 1; }; }
8815 cat >conftest.$ac_ext <<_ACEOF
8818 cat confdefs.h >>conftest.$ac_ext
8819 cat >>conftest.$ac_ext <<_ACEOF
8820 /* end confdefs.h. */
8821 /* Exit 0 (true) if wait returns something other than -1,
8822 i.e. the pid of the child, which means that wait was restarted
8823 after getting the signal. */
8825 #include <sys/types.h>
8828 # include <unistd.h>
8831 # include <sys/wait.h>
8834 /* Some platforms explicitly require an extern "C" signal handler
8837 extern "C" void ucatch (int dummy) { }
8839 void ucatch (dummy) int dummy; { }
8845 int i = fork (), status;
8850 kill (getppid (), SIGINT);
8855 signal (SIGINT, ucatch);
8861 exit (status == -1);
8864 rm -f conftest$ac_exeext
8865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8866 (eval $ac_link) 2>&5
8868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); }; }; then
8875 ac_cv_sys_restartable_syscalls=yes
8877 echo "$as_me: program exited with status $ac_status" >&5
8878 echo "$as_me: failed program was:" >&5
8879 sed 's/^/| /' conftest.$ac_ext >&5
8882 ac_cv_sys_restartable_syscalls=no
8884 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8887 echo "$as_me:$LINENO: result: $ac_cv_sys_restartable_syscalls" >&5
8888 echo "${ECHO_T}$ac_cv_sys_restartable_syscalls" >&6
8889 if test $ac_cv_sys_restartable_syscalls = yes; then
8891 cat >>confdefs.h <<\_ACEOF
8892 #define HAVE_RESTARTABLE_SYSCALLS 1
8898 echo "$as_me:$LINENO: checking for donuts" >&5
8899 echo $ECHO_N "checking for donuts... $ECHO_C" >&6
8900 echo "$as_me:$LINENO: result: yes" >&5
8901 echo "${ECHO_T}yes" >&6
8903 for ac_prog in gawk mawk nawk awk
8905 # Extract the first word of "$ac_prog", so it can be a program name with args.
8906 set dummy $ac_prog; ac_word=$2
8907 echo "$as_me:$LINENO: checking for $ac_word" >&5
8908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8909 if test "${ac_cv_prog_AWK+set}" = set; then
8910 echo $ECHO_N "(cached) $ECHO_C" >&6
8912 if test -n "$AWK"; then
8913 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8919 test -z "$as_dir" && as_dir=.
8920 for ac_exec_ext in '' $ac_executable_extensions; do
8921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8922 ac_cv_prog_AWK="$ac_prog"
8923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8932 if test -n "$AWK"; then
8933 echo "$as_me:$LINENO: result: $AWK" >&5
8934 echo "${ECHO_T}$AWK" >&6
8936 echo "$as_me:$LINENO: result: no" >&5
8937 echo "${ECHO_T}no" >&6
8940 test -n "$AWK" && break
8943 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8944 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8945 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
8946 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8947 echo $ECHO_N "(cached) $ECHO_C" >&6
8949 cat >conftest.make <<\_ACEOF
8951 @echo 'ac_maketemp="$(MAKE)"'
8953 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8954 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8955 if test -n "$ac_maketemp"; then
8956 eval ac_cv_prog_make_${ac_make}_set=yes
8958 eval ac_cv_prog_make_${ac_make}_set=no
8962 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8963 echo "$as_me:$LINENO: result: yes" >&5
8964 echo "${ECHO_T}yes" >&6
8967 echo "$as_me:$LINENO: result: no" >&5
8968 echo "${ECHO_T}no" >&6
8969 SET_MAKE="MAKE=${MAKE-make}"
8972 # Find a good install program. We prefer a C program (faster),
8973 # so one script is as good as another. But avoid the broken or
8974 # incompatible versions:
8975 # SysV /etc/install, /usr/sbin/install
8976 # SunOS /usr/etc/install
8977 # IRIX /sbin/install
8979 # AmigaOS /C/install, which installs bootblocks on floppy discs
8980 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8981 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8982 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8983 # OS/2's system install, which has a completely different semantic
8984 # ./install, which can be erroneously created by make from ./install.sh.
8985 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8986 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8987 if test -z "$INSTALL"; then
8988 if test "${ac_cv_path_install+set}" = set; then
8989 echo $ECHO_N "(cached) $ECHO_C" >&6
8991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8995 test -z "$as_dir" && as_dir=.
8996 # Account for people who put trailing slashes in PATH elements.
8998 ./ | .// | /cC/* | \
8999 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9000 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
9003 # OSF1 and SCO ODT 3.0 have their own names for install.
9004 # Don't use installbsd from OSF since it installs stuff as root
9006 for ac_prog in ginstall scoinst install; do
9007 for ac_exec_ext in '' $ac_executable_extensions; do
9008 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9009 if test $ac_prog = install &&
9010 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9011 # AIX install. It has an incompatible calling convention.
9013 elif test $ac_prog = install &&
9014 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9015 # program-specific install script used by HP pwplus--don't use.
9018 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9030 if test "${ac_cv_path_install+set}" = set; then
9031 INSTALL=$ac_cv_path_install
9033 # As a last resort, use the slow shell script. We don't cache a
9034 # path for INSTALL within a source directory, because that will
9035 # break other packages using the cache if that directory is
9036 # removed, or if the path is relative.
9037 INSTALL=$ac_install_sh
9040 echo "$as_me:$LINENO: result: $INSTALL" >&5
9041 echo "${ECHO_T}$INSTALL" >&6
9043 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9044 # It thinks the first close brace ends the variable substitution.
9045 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9047 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9049 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9051 echo "$as_me:$LINENO: checking whether ln -s works" >&5
9052 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
9054 if test "$LN_S" = "ln -s"; then
9055 echo "$as_me:$LINENO: result: yes" >&5
9056 echo "${ECHO_T}yes" >&6
9058 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
9059 echo "${ECHO_T}no, using $LN_S" >&6
9064 # Extract the first word of "$ac_prog", so it can be a program name with args.
9065 set dummy $ac_prog; ac_word=$2
9066 echo "$as_me:$LINENO: checking for $ac_word" >&5
9067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9068 if test "${ac_cv_path_RMPROG+set}" = set; then
9069 echo $ECHO_N "(cached) $ECHO_C" >&6
9073 ac_cv_path_RMPROG="$RMPROG" # Let the user override the test with a path.
9076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9080 test -z "$as_dir" && as_dir=.
9081 for ac_exec_ext in '' $ac_executable_extensions; do
9082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9083 ac_cv_path_RMPROG="$as_dir/$ac_word$ac_exec_ext"
9084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9093 RMPROG=$ac_cv_path_RMPROG
9095 if test -n "$RMPROG"; then
9096 echo "$as_me:$LINENO: result: $RMPROG" >&5
9097 echo "${ECHO_T}$RMPROG" >&6
9099 echo "$as_me:$LINENO: result: no" >&5
9100 echo "${ECHO_T}no" >&6
9103 test -n "$RMPROG" && break
9105 test -n "$RMPROG" || RMPROG="/bin/rm"
9109 # Extract the first word of "$ac_prog", so it can be a program name with args.
9110 set dummy $ac_prog; ac_word=$2
9111 echo "$as_me:$LINENO: checking for $ac_word" >&5
9112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9113 if test "${ac_cv_path_SHPROG+set}" = set; then
9114 echo $ECHO_N "(cached) $ECHO_C" >&6
9118 ac_cv_path_SHPROG="$SHPROG" # Let the user override the test with a path.
9121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9125 test -z "$as_dir" && as_dir=.
9126 for ac_exec_ext in '' $ac_executable_extensions; do
9127 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9128 ac_cv_path_SHPROG="$as_dir/$ac_word$ac_exec_ext"
9129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9138 SHPROG=$ac_cv_path_SHPROG
9140 if test -n "$SHPROG"; then
9141 echo "$as_me:$LINENO: result: $SHPROG" >&5
9142 echo "${ECHO_T}$SHPROG" >&6
9144 echo "$as_me:$LINENO: result: no" >&5
9145 echo "${ECHO_T}no" >&6
9148 test -n "$SHPROG" && break
9150 test -n "$SHPROG" || SHPROG="/bin/sh"
9153 for ac_prog in flex lex
9155 # Extract the first word of "$ac_prog", so it can be a program name with args.
9156 set dummy $ac_prog; ac_word=$2
9157 echo "$as_me:$LINENO: checking for $ac_word" >&5
9158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9159 if test "${ac_cv_prog_LEX+set}" = set; then
9160 echo $ECHO_N "(cached) $ECHO_C" >&6
9162 if test -n "$LEX"; then
9163 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9169 test -z "$as_dir" && as_dir=.
9170 for ac_exec_ext in '' $ac_executable_extensions; do
9171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9172 ac_cv_prog_LEX="$ac_prog"
9173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9182 if test -n "$LEX"; then
9183 echo "$as_me:$LINENO: result: $LEX" >&5
9184 echo "${ECHO_T}$LEX" >&6
9186 echo "$as_me:$LINENO: result: no" >&5
9187 echo "${ECHO_T}no" >&6
9190 test -n "$LEX" && break
9192 test -n "$LEX" || LEX=":"
9194 if test -z "$LEXLIB"
9196 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
9197 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
9198 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
9199 echo $ECHO_N "(cached) $ECHO_C" >&6
9201 ac_check_lib_save_LIBS=$LIBS
9203 cat >conftest.$ac_ext <<_ACEOF
9206 cat confdefs.h >>conftest.$ac_ext
9207 cat >>conftest.$ac_ext <<_ACEOF
9208 /* end confdefs.h. */
9210 /* Override any gcc2 internal prototype to avoid an error. */
9214 /* We use char because int might match the return type of a gcc2
9215 builtin and then its argument prototype would still apply. */
9225 rm -f conftest.$ac_objext conftest$ac_exeext
9226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9227 (eval $ac_link) 2>conftest.er1
9229 grep -v '^ *+' conftest.er1 >conftest.err
9231 cat conftest.err >&5
9232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9233 (exit $ac_status); } &&
9234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 (exit $ac_status); }; } &&
9240 { ac_try='test -s conftest$ac_exeext'
9241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9245 (exit $ac_status); }; }; then
9246 ac_cv_lib_fl_yywrap=yes
9248 echo "$as_me: failed program was:" >&5
9249 sed 's/^/| /' conftest.$ac_ext >&5
9251 ac_cv_lib_fl_yywrap=no
9253 rm -f conftest.err conftest.$ac_objext \
9254 conftest$ac_exeext conftest.$ac_ext
9255 LIBS=$ac_check_lib_save_LIBS
9257 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
9258 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
9259 if test $ac_cv_lib_fl_yywrap = yes; then
9262 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
9263 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
9264 if test "${ac_cv_lib_l_yywrap+set}" = set; then
9265 echo $ECHO_N "(cached) $ECHO_C" >&6
9267 ac_check_lib_save_LIBS=$LIBS
9269 cat >conftest.$ac_ext <<_ACEOF
9272 cat confdefs.h >>conftest.$ac_ext
9273 cat >>conftest.$ac_ext <<_ACEOF
9274 /* end confdefs.h. */
9276 /* Override any gcc2 internal prototype to avoid an error. */
9280 /* We use char because int might match the return type of a gcc2
9281 builtin and then its argument prototype would still apply. */
9291 rm -f conftest.$ac_objext conftest$ac_exeext
9292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9293 (eval $ac_link) 2>conftest.er1
9295 grep -v '^ *+' conftest.er1 >conftest.err
9297 cat conftest.err >&5
9298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299 (exit $ac_status); } &&
9300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305 (exit $ac_status); }; } &&
9306 { ac_try='test -s conftest$ac_exeext'
9307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9311 (exit $ac_status); }; }; then
9312 ac_cv_lib_l_yywrap=yes
9314 echo "$as_me: failed program was:" >&5
9315 sed 's/^/| /' conftest.$ac_ext >&5
9317 ac_cv_lib_l_yywrap=no
9319 rm -f conftest.err conftest.$ac_objext \
9320 conftest$ac_exeext conftest.$ac_ext
9321 LIBS=$ac_check_lib_save_LIBS
9323 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
9324 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
9325 if test $ac_cv_lib_l_yywrap = yes; then
9333 if test "x$LEX" != "x:"; then
9334 echo "$as_me:$LINENO: checking lex output file root" >&5
9335 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
9336 if test "${ac_cv_prog_lex_root+set}" = set; then
9337 echo $ECHO_N "(cached) $ECHO_C" >&6
9339 # The minimal lex program is just a single line: %%. But some broken lexes
9340 # (Solaris, I think it was) want two %% lines, so accommodate them.
9341 cat >conftest.l <<_ACEOF
9345 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
9346 (eval $LEX conftest.l) 2>&5
9348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349 (exit $ac_status); }
9350 if test -f lex.yy.c; then
9351 ac_cv_prog_lex_root=lex.yy
9352 elif test -f lexyy.c; then
9353 ac_cv_prog_lex_root=lexyy
9355 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
9356 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
9357 { (exit 1); exit 1; }; }
9360 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
9361 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
9363 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
9365 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
9366 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
9367 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
9368 echo $ECHO_N "(cached) $ECHO_C" >&6
9370 # POSIX says lex can declare yytext either as a pointer or an array; the
9371 # default is implementation-dependent. Figure out which it is, since
9372 # not all implementations provide the %pointer and %array declarations.
9373 ac_cv_prog_lex_yytext_pointer=no
9374 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
9376 LIBS="$LIBS $LEXLIB"
9377 cat >conftest.$ac_ext <<_ACEOF
9378 `cat $LEX_OUTPUT_ROOT.c`
9380 rm -f conftest.$ac_objext conftest$ac_exeext
9381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9382 (eval $ac_link) 2>conftest.er1
9384 grep -v '^ *+' conftest.er1 >conftest.err
9386 cat conftest.err >&5
9387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388 (exit $ac_status); } &&
9389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394 (exit $ac_status); }; } &&
9395 { ac_try='test -s conftest$ac_exeext'
9396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400 (exit $ac_status); }; }; then
9401 ac_cv_prog_lex_yytext_pointer=yes
9403 echo "$as_me: failed program was:" >&5
9404 sed 's/^/| /' conftest.$ac_ext >&5
9407 rm -f conftest.err conftest.$ac_objext \
9408 conftest$ac_exeext conftest.$ac_ext
9410 rm -f "${LEX_OUTPUT_ROOT}.c"
9413 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
9414 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
9415 if test $ac_cv_prog_lex_yytext_pointer = yes; then
9417 cat >>confdefs.h <<\_ACEOF
9418 #define YYTEXT_POINTER 1
9424 if test "$LEX" = ":" ; then
9425 { { echo "$as_me:$LINENO: error: Cannot find flex." >&5
9426 echo "$as_me: error: Cannot find flex." >&2;}
9427 { (exit 1); exit 1; }; }
9428 elif echo "" | $LEX -V -v --version > /dev/null 2>&1 ; then
9431 { { echo "$as_me:$LINENO: error: Cannot use $LEX as flex." >&5
9432 echo "$as_me: error: Cannot use $LEX as flex." >&2;}
9433 { (exit 1); exit 1; }; }
9436 if test -z "$LEXLIB" ; then
9437 { { echo "$as_me:$LINENO: error: Cannot find a library with yywrap() in, but flex was found.
9438 It's possible the compiler you're using ($CC) is incompatible with the
9440 See \`config.log' for more details." >&5
9441 echo "$as_me: error: Cannot find a library with yywrap() in, but flex was found.
9442 It's possible the compiler you're using ($CC) is incompatible with the
9444 See \`config.log' for more details." >&2;}
9445 { (exit 1); exit 1; }; }
9448 LIBS="$LEXLIB $LIBS"
9450 for ac_prog in 'bison -y' byacc
9452 # Extract the first word of "$ac_prog", so it can be a program name with args.
9453 set dummy $ac_prog; ac_word=$2
9454 echo "$as_me:$LINENO: checking for $ac_word" >&5
9455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9456 if test "${ac_cv_prog_YACC+set}" = set; then
9457 echo $ECHO_N "(cached) $ECHO_C" >&6
9459 if test -n "$YACC"; then
9460 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9466 test -z "$as_dir" && as_dir=.
9467 for ac_exec_ext in '' $ac_executable_extensions; do
9468 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9469 ac_cv_prog_YACC="$ac_prog"
9470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9478 YACC=$ac_cv_prog_YACC
9479 if test -n "$YACC"; then
9480 echo "$as_me:$LINENO: result: $YACC" >&5
9481 echo "${ECHO_T}$YACC" >&6
9483 echo "$as_me:$LINENO: result: no" >&5
9484 echo "${ECHO_T}no" >&6
9487 test -n "$YACC" && break
9489 test -n "$YACC" || YACC="yacc"
9491 if test "$YACC" = ":" ; then
9492 { { echo "$as_me:$LINENO: error: Cannot find yacc." >&5
9493 echo "$as_me: error: Cannot find yacc." >&2;}
9494 { (exit 1); exit 1; }; }
9495 elif echo "" | $YACC -V -v --version > /dev/null 2>&1 ; then
9498 { echo "$as_me:$LINENO: WARNING: $YACC may not work as yacc." >&5
9499 echo "$as_me: WARNING: $YACC may not work as yacc." >&2;}
9502 echo "$as_me:$LINENO: checking for posix non-blocking" >&5
9503 echo $ECHO_N "checking for posix non-blocking... $ECHO_C" >&6
9504 if test "${unet_cv_sys_nonblocking_posix+set}" = set; then
9505 echo $ECHO_N "(cached) $ECHO_C" >&6
9507 if test "$cross_compiling" = yes; then
9508 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9509 See \`config.log' for more details." >&5
9510 echo "$as_me: error: cannot run test program while cross compiling
9511 See \`config.log' for more details." >&2;}
9512 { (exit 1); exit 1; }; }
9514 cat >conftest.$ac_ext <<_ACEOF
9517 cat confdefs.h >>conftest.$ac_ext
9518 cat >>conftest.$ac_ext <<_ACEOF
9519 /* end confdefs.h. */
9520 #include <sys/types.h>
9521 #include <sys/socket.h>
9523 #include <sys/ioctl.h>
9524 #include <sys/file.h>
9526 $ac_cv_type_signal alarmed() { exit(1); }
9531 size_t l = sizeof(x);
9532 int f = socket(AF_INET, SOCK_DGRAM, 0);
9533 if (f >= 0 && !(fcntl(f, F_SETFL, O_NONBLOCK)))
9535 signal(SIGALRM, alarmed);
9537 recvfrom(f, b, 12, 0, &x, &l);
9544 rm -f conftest$ac_exeext
9545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9546 (eval $ac_link) 2>&5
9548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554 (exit $ac_status); }; }; then
9555 unet_cv_sys_nonblocking_posix=yes
9557 echo "$as_me: program exited with status $ac_status" >&5
9558 echo "$as_me: failed program was:" >&5
9559 sed 's/^/| /' conftest.$ac_ext >&5
9562 unet_cv_sys_nonblocking_posix=no
9564 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9567 echo "$as_me:$LINENO: result: $unet_cv_sys_nonblocking_posix" >&5
9568 echo "${ECHO_T}$unet_cv_sys_nonblocking_posix" >&6
9569 if test $unet_cv_sys_nonblocking_posix = yes; then
9571 cat >>confdefs.h <<\_ACEOF
9572 #define NBLOCK_POSIX
9576 echo "$as_me:$LINENO: checking for bsd non-blocking" >&5
9577 echo $ECHO_N "checking for bsd non-blocking... $ECHO_C" >&6
9578 if test "${unet_cv_sys_nonblocking_bsd+set}" = set; then
9579 echo $ECHO_N "(cached) $ECHO_C" >&6
9581 if test "$cross_compiling" = yes; then
9582 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9583 See \`config.log' for more details." >&5
9584 echo "$as_me: error: cannot run test program while cross compiling
9585 See \`config.log' for more details." >&2;}
9586 { (exit 1); exit 1; }; }
9588 cat >conftest.$ac_ext <<_ACEOF
9591 cat confdefs.h >>conftest.$ac_ext
9592 cat >>conftest.$ac_ext <<_ACEOF
9593 /* end confdefs.h. */
9594 #include <sys/types.h>
9595 #include <sys/socket.h>
9597 #include <sys/ioctl.h>
9598 #include <sys/file.h>
9600 $ac_cv_type_signal alarmed() { exit(1); }
9605 size_t l = sizeof(x);
9606 int f = socket(AF_INET, SOCK_DGRAM, 0);
9607 if (f >= 0 && !(fcntl(f, F_SETFL, O_NDELAY)))
9609 signal(SIGALRM, alarmed);
9611 recvfrom(f, b, 12, 0, &x, &l);
9618 rm -f conftest$ac_exeext
9619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9620 (eval $ac_link) 2>&5
9622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9628 (exit $ac_status); }; }; then
9629 unet_cv_sys_nonblocking_bsd=yes
9631 echo "$as_me: program exited with status $ac_status" >&5
9632 echo "$as_me: failed program was:" >&5
9633 sed 's/^/| /' conftest.$ac_ext >&5
9636 unet_cv_sys_nonblocking_bsd=no
9638 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9641 echo "$as_me:$LINENO: result: $unet_cv_sys_nonblocking_bsd" >&5
9642 echo "${ECHO_T}$unet_cv_sys_nonblocking_bsd" >&6
9643 if test $unet_cv_sys_nonblocking_bsd = yes; then
9645 cat >>confdefs.h <<\_ACEOF
9651 cat >>confdefs.h <<\_ACEOF
9657 echo "$as_me:$LINENO: checking for posix signals" >&5
9658 echo $ECHO_N "checking for posix signals... $ECHO_C" >&6
9659 if test "${unet_cv_sys_signal_posix+set}" = set; then
9660 echo $ECHO_N "(cached) $ECHO_C" >&6
9662 cat >conftest.$ac_ext <<_ACEOF
9665 cat confdefs.h >>conftest.$ac_ext
9666 cat >>conftest.$ac_ext <<_ACEOF
9667 /* end confdefs.h. */
9672 sigaction(SIGTERM, (struct sigaction *)0L, (struct sigaction *)0L)
9677 rm -f conftest.$ac_objext
9678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9679 (eval $ac_compile) 2>conftest.er1
9681 grep -v '^ *+' conftest.er1 >conftest.err
9683 cat conftest.err >&5
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); } &&
9686 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691 (exit $ac_status); }; } &&
9692 { ac_try='test -s conftest.$ac_objext'
9693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697 (exit $ac_status); }; }; then
9698 unet_cv_sys_signal_posix=yes
9700 echo "$as_me: failed program was:" >&5
9701 sed 's/^/| /' conftest.$ac_ext >&5
9703 unet_cv_sys_signal_posix=no
9705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9707 echo "$as_me:$LINENO: result: $unet_cv_sys_signal_posix" >&5
9708 echo "${ECHO_T}$unet_cv_sys_signal_posix" >&6
9709 if test $unet_cv_sys_signal_posix = yes; then
9711 cat >>confdefs.h <<\_ACEOF
9712 #define POSIX_SIGNALS
9716 echo "$as_me:$LINENO: checking for bsd reliable signals" >&5
9717 echo $ECHO_N "checking for bsd reliable signals... $ECHO_C" >&6
9718 if test "${unet_cv_sys_signal_bsd+set}" = set; then
9719 echo $ECHO_N "(cached) $ECHO_C" >&6
9721 if test "$cross_compiling" = yes; then
9722 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9723 See \`config.log' for more details." >&5
9724 echo "$as_me: error: cannot run test program while cross compiling
9725 See \`config.log' for more details." >&2;}
9726 { (exit 1); exit 1; }; }
9728 cat >conftest.$ac_ext <<_ACEOF
9731 cat confdefs.h >>conftest.$ac_ext
9732 cat >>conftest.$ac_ext <<_ACEOF
9733 /* end confdefs.h. */
9736 $ac_cv_type_signal handler()
9740 kill(getpid(), SIGTERM);
9745 signal(SIGTERM, handler);
9746 kill(getpid(), SIGTERM);
9750 rm -f conftest$ac_exeext
9751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9752 (eval $ac_link) 2>&5
9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); }; }; then
9761 unet_cv_sys_signal_bsd=yes
9763 echo "$as_me: program exited with status $ac_status" >&5
9764 echo "$as_me: failed program was:" >&5
9765 sed 's/^/| /' conftest.$ac_ext >&5
9768 unet_cv_sys_signal_bsd=no
9770 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9773 echo "$as_me:$LINENO: result: $unet_cv_sys_signal_bsd" >&5
9774 echo "${ECHO_T}$unet_cv_sys_signal_bsd" >&6
9775 if test $unet_cv_sys_signal_bsd = yes; then
9777 cat >>confdefs.h <<\_ACEOF
9778 #define BSD_RELIABLE_SIGNALS
9783 cat >>confdefs.h <<\_ACEOF
9784 #define SYSV_UNRELIABLE_SIGNALS
9790 echo "$as_me:$LINENO: checking for OS-dependent information" >&5
9791 echo $ECHO_N "checking for OS-dependent information... $ECHO_C" >&6
9794 echo "$as_me:$LINENO: result: Linux ($host) found." >&5
9795 echo "${ECHO_T}Linux ($host) found." >&6
9796 unet_poll_syscall=yes
9800 echo "$as_me:$LINENO: result: Solaris ($host) found." >&5
9801 echo "${ECHO_T}Solaris ($host) found." >&6
9802 if test x"$ac_cv_header_poll_h" = xyes; then
9803 unet_poll_syscall=yes
9805 unet_poll_syscall=no
9810 echo "$as_me:$LINENO: result: Solaris ($host) found." >&5
9811 echo "${ECHO_T}Solaris ($host) found." >&6
9812 unet_poll_syscall=no
9816 echo "$as_me:$LINENO: result: OpenBSD ($host) found." >&5
9817 echo "${ECHO_T}OpenBSD ($host) found." >&6
9818 if test x"$ac_cv_header_poll_h" = xyes; then
9819 unet_poll_syscall=yes
9821 unet_poll_syscall=no
9826 echo "$as_me:$LINENO: result: Generic BSD ($host) found." >&5
9827 echo "${ECHO_T}Generic BSD ($host) found." >&6
9828 if test x"$ac_cv_header_poll_h" = xyes; then
9829 unet_poll_syscall=yes
9831 unet_poll_syscall=no
9836 echo "$as_me:$LINENO: result: Darwin (Mac OS X) ($host) found." >&5
9837 echo "${ECHO_T}Darwin (Mac OS X) ($host) found." >&6
9838 unet_poll_syscall=no
9842 echo "$as_me:$LINENO: result: Unknown system type $host found." >&5
9843 echo "${ECHO_T}Unknown system type $host found." >&6
9844 { echo "$as_me:$LINENO: WARNING: Unknown OS type; using generic routines." >&5
9845 echo "$as_me: WARNING: Unknown OS type; using generic routines." >&2;}
9846 unet_poll_syscall=no
9850 echo "$as_me:$LINENO: checking whether to enable use of poll()" >&5
9851 echo $ECHO_N "checking whether to enable use of poll()... $ECHO_C" >&6
9852 # Check whether --enable-poll or --disable-poll was given.
9853 if test "${enable_poll+set}" = set; then
9854 enableval="$enable_poll"
9855 unet_cv_enable_poll=$enable_poll
9857 if test "${unet_cv_enable_poll+set}" = set; then
9858 echo $ECHO_N "(cached) $ECHO_C" >&6
9860 unet_cv_enable_poll=$unet_poll_syscall
9865 # Force poll to be disabled if there is no poll.h
9866 if test x"$ac_cv_header_poll_h" != xyes; then
9867 unet_cv_enable_poll=no
9870 echo "$as_me:$LINENO: result: $unet_cv_enable_poll" >&5
9871 echo "${ECHO_T}$unet_cv_enable_poll" >&6
9873 if test x"$unet_cv_enable_poll" = xyes; then
9875 cat >>confdefs.h <<\_ACEOF
9879 ENGINE_C=engine_poll.c
9881 ENGINE_C=engine_select.c
9885 echo "$as_me:$LINENO: checking whether to enable debug mode" >&5
9886 echo $ECHO_N "checking whether to enable debug mode... $ECHO_C" >&6
9887 # Check whether --enable-debug or --disable-debug was given.
9888 if test "${enable_debug+set}" = set; then
9889 enableval="$enable_debug"
9890 unet_cv_enable_debug=$enable_debug
9892 if test "${unet_cv_enable_debug+set}" = set; then
9893 echo $ECHO_N "(cached) $ECHO_C" >&6
9895 unet_cv_enable_debug=no
9899 echo "$as_me:$LINENO: result: $unet_cv_enable_debug" >&5
9900 echo "${ECHO_T}$unet_cv_enable_debug" >&6
9902 if test x"$unet_cv_enable_debug" = xyes; then
9904 cat >>confdefs.h <<\_ACEOF
9910 echo "$as_me:$LINENO: checking whether to enable leak detection" >&5
9911 echo $ECHO_N "checking whether to enable leak detection... $ECHO_C" >&6
9913 # Check whether --with-leak-detect or --without-leak-detect was given.
9914 if test "${with_leak_detect+set}" = set; then
9915 withval="$with_leak_detect"
9916 unet_cv_with_leak_detect=$with_leak_detect
9918 if test "${unet_cv_with_leak_detect+set}" = set; then
9919 echo $ECHO_N "(cached) $ECHO_C" >&6
9921 unet_cv_with_leak_detect=no
9925 echo "$as_me:$LINENO: result: $unet_cv_enable_leak_detect" >&5
9926 echo "${ECHO_T}$unet_cv_enable_leak_detect" >&6
9928 if test x"$unet_cv_with_leak_detect" != xno; then
9930 CFLAGS="-DMDEBUG $CFLAGS"
9931 if test x"$unet_cv_with_leak_detect" != xyes; then
9932 LIBS="-L$unet_cv_with_leak_detect $LIBS"
9937 # Check whether --with-ipv6 or --without-ipv6 was given.
9938 if test "${with_ipv6+set}" = set; then
9939 withval="$with_ipv6"
9940 ac_cv_use_ipv6=$withval
9942 ac_cv_use_ipv6=$unet_have_sockaddr_in6
9944 echo "$as_me:$LINENO: checking whether to use IPv6" >&5
9945 echo $ECHO_N "checking whether to use IPv6... $ECHO_C" >&6
9946 if test "${ac_cv_use_ipv6+set}" = set; then
9947 echo $ECHO_N "(cached) $ECHO_C" >&6
9951 echo "$as_me:$LINENO: result: $ac_cv_use_ipv6" >&5
9952 echo "${ECHO_T}$ac_cv_use_ipv6" >&6
9953 if test x"$ac_cv_use_ipv6" != "xno" ; then
9955 cat >>confdefs.h <<\_ACEOF
9961 echo "$as_me:$LINENO: checking whether to enable asserts" >&5
9962 echo $ECHO_N "checking whether to enable asserts... $ECHO_C" >&6
9963 # Check whether --enable-asserts or --disable-asserts was given.
9964 if test "${enable_asserts+set}" = set; then
9965 enableval="$enable_asserts"
9966 unet_cv_enable_asserts=$enable_asserts
9968 if test "${unet_cv_enable_asserts+set}" = set; then
9969 echo $ECHO_N "(cached) $ECHO_C" >&6
9971 unet_cv_enable_asserts=yes
9975 echo "$as_me:$LINENO: result: $unet_cv_enable_asserts" >&5
9976 echo "${ECHO_T}$unet_cv_enable_asserts" >&6
9978 if test x"$unet_cv_enable_asserts" = xno; then
9980 cat >>confdefs.h <<\_ACEOF
9986 echo "$as_me:$LINENO: checking whether to enable debugging symbols" >&5
9987 echo $ECHO_N "checking whether to enable debugging symbols... $ECHO_C" >&6
9988 # Check whether --enable-symbols or --disable-symbols was given.
9989 if test "${enable_symbols+set}" = set; then
9990 enableval="$enable_symbols"
9991 unet_cv_enable_symbols=$enable_symbols
9993 if test "${unet_cv_enable_symbols+set}" = set; then
9994 echo $ECHO_N "(cached) $ECHO_C" >&6
9996 unet_cv_enable_symbols=yes
10000 echo "$as_me:$LINENO: result: $unet_cv_enable_symbols" >&5
10001 echo "${ECHO_T}$unet_cv_enable_symbols" >&6
10003 if test x"$unet_cv_enable_symbols" = xyes; then
10004 CFLAGS="-g $CFLAGS"
10007 echo "$as_me:$LINENO: checking whether to enable profiling support (gprof)" >&5
10008 echo $ECHO_N "checking whether to enable profiling support (gprof)... $ECHO_C" >&6
10009 # Check whether --enable-profile or --disable-profile was given.
10010 if test "${enable_profile+set}" = set; then
10011 enableval="$enable_profile"
10012 unet_cv_enable_profile=$enable_profile
10014 if test "${unet_cv_enable_profile+set}" = set; then
10015 echo $ECHO_N "(cached) $ECHO_C" >&6
10017 unet_cv_enable_profile=no
10021 echo "$as_me:$LINENO: result: $unet_cv_enable_profile" >&5
10022 echo "${ECHO_T}$unet_cv_enable_profile" >&6
10024 if test x"$unet_cv_enable_profile" = xyes; then
10025 CFLAGS="-pg $CFLAGS"
10028 echo "$as_me:$LINENO: checking whether to enable pedantic compiler warnings" >&5
10029 echo $ECHO_N "checking whether to enable pedantic compiler warnings... $ECHO_C" >&6
10030 # Check whether --enable-pedantic or --disable-pedantic was given.
10031 if test "${enable_pedantic+set}" = set; then
10032 enableval="$enable_pedantic"
10033 unet_cv_enable_pedantic=$enable_pedantic
10035 if test "${unet_cv_enable_pedantic+set}" = set; then
10036 echo $ECHO_N "(cached) $ECHO_C" >&6
10038 unet_cv_enable_pedantic=no
10042 echo "$as_me:$LINENO: result: $unet_cv_enable_pedantic" >&5
10043 echo "${ECHO_T}$unet_cv_enable_pedantic" >&6
10045 if test x"$unet_cv_enable_pedantic" = xyes; then
10046 CFLAGS="-pedantic $CFLAGS"
10049 echo "$as_me:$LINENO: checking whether to enable compiler warnings" >&5
10050 echo $ECHO_N "checking whether to enable compiler warnings... $ECHO_C" >&6
10051 # Check whether --enable-warnings or --disable-warnings was given.
10052 if test "${enable_warnings+set}" = set; then
10053 enableval="$enable_warnings"
10054 unet_cv_enable_warnings=$enable_warnings
10056 if test "${unet_cv_enable_warnings+set}" = set; then
10057 echo $ECHO_N "(cached) $ECHO_C" >&6
10059 unet_cv_enable_warnings=no
10063 echo "$as_me:$LINENO: result: $unet_cv_enable_warnings" >&5
10064 echo "${ECHO_T}$unet_cv_enable_warnings" >&6
10066 if test x"$unet_cv_enable_warnings" = xyes; then
10067 CFLAGS="-Wall $CFLAGS"
10070 echo "$as_me:$LINENO: checking whether to enable inlining for a few critical functions" >&5
10071 echo $ECHO_N "checking whether to enable inlining for a few critical functions... $ECHO_C" >&6
10072 # Check whether --enable-inlines or --disable-inlines was given.
10073 if test "${enable_inlines+set}" = set; then
10074 enableval="$enable_inlines"
10075 unet_cv_enable_inlines=$enable_inlines
10077 if test "${unet_cv_enable_inlines+set}" = set; then
10078 echo $ECHO_N "(cached) $ECHO_C" >&6
10080 unet_cv_enable_inlines=yes
10084 echo "$as_me:$LINENO: result: $unet_cv_enable_inlines" >&5
10085 echo "${ECHO_T}$unet_cv_enable_inlines" >&6
10087 if test x"$unet_cv_enable_inlines" = xyes; then
10089 cat >>confdefs.h <<\_ACEOF
10090 #define FORCEINLINE 1
10095 echo "$as_me:$LINENO: checking whether to enable the /dev/poll event engine" >&5
10096 echo $ECHO_N "checking whether to enable the /dev/poll event engine... $ECHO_C" >&6
10097 # Check whether --enable-devpoll or --disable-devpoll was given.
10098 if test "${enable_devpoll+set}" = set; then
10099 enableval="$enable_devpoll"
10100 unet_cv_enable_devpoll=$enable_devpoll
10102 if test "${unet_cv_enable_devpoll+set}" = set; then
10103 echo $ECHO_N "(cached) $ECHO_C" >&6
10105 unet_cv_enable_devpoll=yes
10110 if test x"$ac_cv_header_sys_devpoll_h" = xno; then
10111 unet_cv_enable_devpoll=no
10114 echo "$as_me:$LINENO: result: $unet_cv_enable_devpoll" >&5
10115 echo "${ECHO_T}$unet_cv_enable_devpoll" >&6
10117 if test x"$unet_cv_enable_devpoll" != xno; then
10119 cat >>confdefs.h <<\_ACEOF
10120 #define USE_DEVPOLL 1
10123 ENGINE_C="engine_devpoll.c $ENGINE_C"
10126 echo "$as_me:$LINENO: checking whether to enable the kqueue event engine" >&5
10127 echo $ECHO_N "checking whether to enable the kqueue event engine... $ECHO_C" >&6
10128 # Check whether --enable-kqueue or --disable-kqueue was given.
10129 if test "${enable_kqueue+set}" = set; then
10130 enableval="$enable_kqueue"
10131 unet_cv_enable_kqueue=$enable_kqueue
10133 if test "${unet_cv_enable_kqueue+set}" = set; then
10134 echo $ECHO_N "(cached) $ECHO_C" >&6
10136 unet_cv_enable_kqueue=yes
10141 if test x"$ac_cv_header_sys_event_h" = xno -o x"$ac_cv_func_kqueue" = xno; then
10142 unet_cv_enable_kqueue=no
10145 echo "$as_me:$LINENO: result: $unet_cv_enable_kqueue" >&5
10146 echo "${ECHO_T}$unet_cv_enable_kqueue" >&6
10148 if test x"$unet_cv_enable_kqueue" != xno; then
10150 cat >>confdefs.h <<\_ACEOF
10151 #define USE_KQUEUE 1
10154 ENGINE_C="engine_kqueue.c $ENGINE_C"
10157 echo "$as_me:$LINENO: checking whether to enable the epoll event engine" >&5
10158 echo $ECHO_N "checking whether to enable the epoll event engine... $ECHO_C" >&6
10159 # Check whether --enable-epoll or --disable-epoll was given.
10160 if test "${enable_epoll+set}" = set; then
10161 enableval="$enable_epoll"
10162 unet_cv_enable_epoll=$enable_epoll
10164 if test "${unet_cv_enable_epoll+set}" = set; then
10165 echo $ECHO_N "(cached) $ECHO_C" >&6
10167 unet_cv_enable_epoll=yes
10172 if test x"$ac_cv_header_sys_epoll_h" = xno -o x"$ac_cv_func_epoll" = xno; then
10173 unet_cv_enable_epoll=no
10176 echo "$as_me:$LINENO: result: $unet_cv_enable_epoll" >&5
10177 echo "${ECHO_T}$unet_cv_enable_epoll" >&6
10179 if test x"$unet_cv_enable_epoll" != xno; then
10180 echo "$as_me:$LINENO: checking whether epoll functions are properly defined" >&5
10181 echo $ECHO_N "checking whether epoll functions are properly defined... $ECHO_C" >&6
10182 cat >conftest.$ac_ext <<_ACEOF
10185 cat confdefs.h >>conftest.$ac_ext
10186 cat >>conftest.$ac_ext <<_ACEOF
10187 /* end confdefs.h. */
10188 #include <sys/epoll.h>
10197 rm -f conftest.$ac_objext conftest$ac_exeext
10198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10199 (eval $ac_link) 2>conftest.er1
10201 grep -v '^ *+' conftest.er1 >conftest.err
10203 cat conftest.err >&5
10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205 (exit $ac_status); } &&
10206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10208 (eval $ac_try) 2>&5
10210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211 (exit $ac_status); }; } &&
10212 { ac_try='test -s conftest$ac_exeext'
10213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10214 (eval $ac_try) 2>&5
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); }; }; then
10218 echo "$as_me:$LINENO: result: yes" >&5
10219 echo "${ECHO_T}yes" >&6
10221 echo "$as_me: failed program was:" >&5
10222 sed 's/^/| /' conftest.$ac_ext >&5
10224 echo "$as_me:$LINENO: result: no" >&5
10225 echo "${ECHO_T}no" >&6
10227 cat >>confdefs.h <<\_ACEOF
10228 #define EPOLL_NEED_BODY 1
10232 rm -f conftest.err conftest.$ac_objext \
10233 conftest$ac_exeext conftest.$ac_ext
10235 cat >>confdefs.h <<\_ACEOF
10236 #define USE_EPOLL 1
10239 ENGINE_C="engine_epoll.c $ENGINE_C"
10242 echo "$as_me:$LINENO: checking for va_copy" >&5
10243 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
10244 if test "${unet_cv_c_va_copy+set}" = set; then
10245 echo $ECHO_N "(cached) $ECHO_C" >&6
10247 cat >conftest.$ac_ext <<_ACEOF
10250 cat confdefs.h >>conftest.$ac_ext
10251 cat >>conftest.$ac_ext <<_ACEOF
10252 /* end confdefs.h. */
10253 #include <stdarg.h>
10257 va_list ap1, ap2; va_copy(ap1, ap2);
10262 rm -f conftest.$ac_objext conftest$ac_exeext
10263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10264 (eval $ac_link) 2>conftest.er1
10266 grep -v '^ *+' conftest.er1 >conftest.err
10268 cat conftest.err >&5
10269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270 (exit $ac_status); } &&
10271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10273 (eval $ac_try) 2>&5
10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); }; } &&
10277 { ac_try='test -s conftest$ac_exeext'
10278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10279 (eval $ac_try) 2>&5
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); }; }; then
10283 unet_cv_c_va_copy="yes"
10285 echo "$as_me: failed program was:" >&5
10286 sed 's/^/| /' conftest.$ac_ext >&5
10288 unet_cv_c_va_copy="no"
10291 rm -f conftest.err conftest.$ac_objext \
10292 conftest$ac_exeext conftest.$ac_ext
10294 echo "$as_me:$LINENO: result: $unet_cv_c_va_copy" >&5
10295 echo "${ECHO_T}$unet_cv_c_va_copy" >&6
10296 if test "$unet_cv_c_va_copy" = "yes" ; then
10298 cat >>confdefs.h <<\_ACEOF
10299 #define HAVE_VA_COPY 1
10304 echo "$as_me:$LINENO: checking for __va_copy" >&5
10305 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
10306 if test "${unet_cv_c___va_copy+set}" = set; then
10307 echo $ECHO_N "(cached) $ECHO_C" >&6
10309 cat >conftest.$ac_ext <<_ACEOF
10312 cat confdefs.h >>conftest.$ac_ext
10313 cat >>conftest.$ac_ext <<_ACEOF
10314 /* end confdefs.h. */
10315 #include <stdarg.h>
10319 va_list ap1, ap2; __va_copy(ap1, ap2);
10324 rm -f conftest.$ac_objext conftest$ac_exeext
10325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10326 (eval $ac_link) 2>conftest.er1
10328 grep -v '^ *+' conftest.er1 >conftest.err
10330 cat conftest.err >&5
10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); } &&
10333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10335 (eval $ac_try) 2>&5
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); }; } &&
10339 { ac_try='test -s conftest$ac_exeext'
10340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10341 (eval $ac_try) 2>&5
10343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344 (exit $ac_status); }; }; then
10345 unet_cv_c___va_copy="yes"
10347 echo "$as_me: failed program was:" >&5
10348 sed 's/^/| /' conftest.$ac_ext >&5
10350 unet_cv_c___va_copy="no"
10353 rm -f conftest.err conftest.$ac_objext \
10354 conftest$ac_exeext conftest.$ac_ext
10356 echo "$as_me:$LINENO: result: $unet_cv_c___va_copy" >&5
10357 echo "${ECHO_T}$unet_cv_c___va_copy" >&6
10358 if test "$unet_cv_c___va_copy" = "yes" ; then
10360 cat >>confdefs.h <<\_ACEOF
10361 #define HAVE___VA_COPY 1
10366 echo "$as_me:$LINENO: checking what name to give the symlink" >&5
10367 echo $ECHO_N "checking what name to give the symlink... $ECHO_C" >&6
10369 # Check whether --with-symlink or --without-symlink was given.
10370 if test "${with_symlink+set}" = set; then
10371 withval="$with_symlink"
10372 unet_cv_with_symlink=$with_symlink
10374 if test "${unet_cv_with_symlink+set}" = set; then
10375 echo $ECHO_N "(cached) $ECHO_C" >&6
10377 unet_cv_with_symlink="ircd"
10382 if test x"$unet_cv_with_symlink" = xyes; then
10383 unet_cv_with_symlink="ircd"
10386 echo "$as_me:$LINENO: result: $unet_cv_with_symlink" >&5
10387 echo "${ECHO_T}$unet_cv_with_symlink" >&6
10389 if test x"$unet_cv_with_symlink" = xno; then
10390 INSTALL_RULE=install-no-symlink
10393 INSTALL_RULE=install-with-symlink
10394 SYMLINK=$unet_cv_with_symlink
10399 echo "$as_me:$LINENO: checking what permissions to set on the installed binary" >&5
10400 echo $ECHO_N "checking what permissions to set on the installed binary... $ECHO_C" >&6
10402 # Check whether --with-mode or --without-mode was given.
10403 if test "${with_mode+set}" = set; then
10404 withval="$with_mode"
10405 unet_cv_with_mode=$with_mode
10407 if test "${unet_cv_with_mode+set}" = set; then
10408 echo $ECHO_N "(cached) $ECHO_C" >&6
10410 unet_cv_with_mode=711
10415 if test x"$unet_cv_with_mode" = xyes -o x"$unet_cv_with_mode" = xno; then
10416 unet_cv_with_mode=711
10419 echo "$as_me:$LINENO: result: $unet_cv_with_mode" >&5
10420 echo "${ECHO_T}$unet_cv_with_mode" >&6
10422 IRCDMODE=$unet_cv_with_mode
10425 unet_uid=`id | sed -e 's/.*uid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
10426 echo "$as_me:$LINENO: checking which user should own the installed binary" >&5
10427 echo $ECHO_N "checking which user should own the installed binary... $ECHO_C" >&6
10429 # Check whether --with-owner or --without-owner was given.
10430 if test "${with_owner+set}" = set; then
10431 withval="$with_owner"
10432 unet_cv_with_owner=$with_owner
10434 if test "${unet_cv_with_owner+set}" = set; then
10435 echo $ECHO_N "(cached) $ECHO_C" >&6
10437 unet_cv_with_owner=$unet_uid
10442 if test x"$unet_cv_with_owner" = xyes -o x"$unet_cv_with_owner" = xno; then
10443 unet_cv_with_owner=$unet_uid
10446 echo "$as_me:$LINENO: result: $unet_cv_with_owner" >&5
10447 echo "${ECHO_T}$unet_cv_with_owner" >&6
10449 IRCDOWN=$unet_cv_with_owner
10452 unet_gid=`id | sed -e 's/.*gid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
10453 echo "$as_me:$LINENO: checking which group should own the installed binary" >&5
10454 echo $ECHO_N "checking which group should own the installed binary... $ECHO_C" >&6
10456 # Check whether --with-group or --without-group was given.
10457 if test "${with_group+set}" = set; then
10458 withval="$with_group"
10459 unet_cv_with_group=$with_group
10461 if test "${unet_cv_with_group+set}" = set; then
10462 echo $ECHO_N "(cached) $ECHO_C" >&6
10464 unet_cv_with_group=$unet_gid
10469 if test x"$unet_cv_with_group" = xyes -o x"$unet_cv_with_group" = xno; then
10470 unet_cv_with_group=$unet_gid
10473 echo "$as_me:$LINENO: result: $unet_cv_with_group" >&5
10474 echo "${ECHO_T}$unet_cv_with_group" >&6
10476 IRCDGRP=$unet_cv_with_group
10480 if test -f /etc/resolv.conf; then
10481 unet_domain=`awk '/^domain/ { print $2; exit }' /etc/resolv.conf`
10482 if test x"$unet_domain" = x; then
10483 unet_domain=`awk '/^search/ { print $2; exit }' /etc/resolv.conf`
10486 echo "$as_me:$LINENO: checking for site domain name" >&5
10487 echo $ECHO_N "checking for site domain name... $ECHO_C" >&6
10489 # Check whether --with-domain or --without-domain was given.
10490 if test "${with_domain+set}" = set; then
10491 withval="$with_domain"
10492 unet_cv_with_domain=$with_domain
10494 if test "${unet_cv_with_domain+set}" = set; then
10495 echo $ECHO_N "(cached) $ECHO_C" >&6
10497 unet_cv_with_domain=$unet_domain
10502 if test x"$unet_cv_with_domain" = xyes -o x"$unet_cv_with_domain" = xno; then
10503 unet_cv_with_domain=$unet_domain
10505 if test x"$unet_cv_with_domain" = xno; then
10506 { { echo "$as_me:$LINENO: error: Unable to determine server DNS domain; use --with-domain to set it" >&5
10507 echo "$as_me: error: Unable to determine server DNS domain; use --with-domain to set it" >&2;}
10508 { (exit 1); exit 1; }; }
10511 echo "$as_me:$LINENO: result: $unet_cv_with_domain" >&5
10512 echo "${ECHO_T}$unet_cv_with_domain" >&6
10515 cat >>confdefs.h <<_ACEOF
10516 #define DOMAINNAME "*$unet_cv_with_domain"
10520 echo "$as_me:$LINENO: checking if chroot operation is desired" >&5
10521 echo $ECHO_N "checking if chroot operation is desired... $ECHO_C" >&6
10523 # Check whether --with-chroot or --without-chroot was given.
10524 if test "${with_chroot+set}" = set; then
10525 withval="$with_chroot"
10526 unet_cv_with_chroot=$with_chroot
10528 if test "${unet_cv_with_chroot+set}" = set; then
10529 echo $ECHO_N "(cached) $ECHO_C" >&6
10531 unet_cv_with_chroot=no
10536 if test x"$unet_cv_with_chroot" = xyes; then
10537 { { echo "$as_me:$LINENO: error: --with-chroot given with no directory. See doc/readme.chroot." >&5
10538 echo "$as_me: error: --with-chroot given with no directory. See doc/readme.chroot." >&2;}
10539 { (exit 1); exit 1; }; }
10542 # Ensure there are no trailing /'s to mess us up
10543 unet_cv_with_chroot=`echo "$unet_cv_with_chroot" | sed 's%/*$%%'`
10545 echo "$as_me:$LINENO: result: $unet_cv_with_chroot" >&5
10546 echo "${ECHO_T}$unet_cv_with_chroot" >&6
10548 # Deal with the annoying value "NONE" here
10549 unet_save_prefix=$prefix
10550 if test x"$prefix" = xNONE; then
10551 prefix=$ac_default_prefix
10556 unet_save_exec_prefix=$exec_prefix
10557 if test x"$exec_prefix" = xNONE; then
10558 exec_prefix=$prefix
10560 exec_prefix=$exec_prefix
10563 # Obtain the actual interesting directories
10564 unet_bindir=`eval echo "$bindir"`
10565 unet_libdir=`eval echo "$libdir"`
10567 # Restore the original settings of $prefix and $exec_prefix
10568 prefix=$unet_save_prefix
10569 exec_prefix=$unet_save_exec_prefix
10571 echo "$as_me:$LINENO: checking where the binary will be for /restart" >&5
10572 echo $ECHO_N "checking where the binary will be for /restart... $ECHO_C" >&6
10573 if test x"$unet_cv_with_symlink" = xno; then
10574 unet_spath="$unet_bindir/ircd"
10576 unet_spath="$unet_bindir/$unet_cv_with_symlink"
10578 echo "$as_me:$LINENO: result: $unet_spath" >&5
10579 echo "${ECHO_T}$unet_spath" >&6
10581 if test x"$unet_cv_with_chroot" != xno; then
10582 if echo "$unet_spath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10583 unet_spath=`echo "$unet_spath" | sed "s%^$unet_cv_with_chroot%%"`
10585 { echo "$as_me:$LINENO: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&5
10586 echo "$as_me: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&2;}
10591 cat >>confdefs.h <<_ACEOF
10592 #define SPATH "$unet_spath"
10596 echo "$as_me:$LINENO: checking what the data directory should be" >&5
10597 echo $ECHO_N "checking what the data directory should be... $ECHO_C" >&6
10599 # Check whether --with-dpath or --without-dpath was given.
10600 if test "${with_dpath+set}" = set; then
10601 withval="$with_dpath"
10602 unet_cv_with_dpath=$with_dpath
10604 if test "${unet_cv_with_dpath+set}" = set; then
10605 echo $ECHO_N "(cached) $ECHO_C" >&6
10607 unet_cv_with_dpath=$unet_libdir
10612 if test x"$unet_cv_with_dpath" = xyes -o x"$unet_cv_with_dpath" = xno; then
10613 unet_cv_with_dpath=$unet_libdir
10616 # Ensure there are no trailing /'s to mess us up
10617 unet_cv_with_dpath=`echo "$unet_cv_with_dpath" | sed 's%/*$%%'`
10619 echo "$as_me:$LINENO: result: $unet_cv_with_dpath" >&5
10620 echo "${ECHO_T}$unet_cv_with_dpath" >&6
10622 if test x"$unet_cv_with_chroot" != xno; then
10623 if echo "$unet_cv_with_dpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10624 unet_dpath=`echo "$unet_cv_with_dpath" | sed "s%^$unet_cv_with_chroot%%"`
10626 { { echo "$as_me:$LINENO: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&5
10627 echo "$as_me: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&2;}
10628 { (exit 1); exit 1; }; }
10631 unet_dpath=$unet_cv_with_dpath
10635 cat >>confdefs.h <<_ACEOF
10636 #define DPATH "$unet_dpath"
10640 DPATH=$unet_cv_with_dpath
10643 echo "$as_me:$LINENO: checking where the default configuration file resides" >&5
10644 echo $ECHO_N "checking where the default configuration file resides... $ECHO_C" >&6
10646 # Check whether --with-cpath or --without-cpath was given.
10647 if test "${with_cpath+set}" = set; then
10648 withval="$with_cpath"
10649 unet_cv_with_cpath=$with_cpath
10651 if test "${unet_cv_with_cpath+set}" = set; then
10652 echo $ECHO_N "(cached) $ECHO_C" >&6
10654 unet_cv_with_cpath="ircd.conf"
10659 if test x"$unet_cv_with_cpath" = xyes -o x"$unet_cv_with_cpath" = xno; then
10660 unet_cv_with_cpath="ircd.conf"
10663 echo "$as_me:$LINENO: result: $unet_cv_with_cpath" >&5
10664 echo "${ECHO_T}$unet_cv_with_cpath" >&6
10666 if echo "$unet_cv_with_cpath" | grep '^/' > /dev/null 2>&1; then
10667 # Absolute path; check against chroot stuff
10668 if test x"$unet_cv_with_chroot" != xno; then
10669 if echo "$unet_cv_with_cpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10670 unet_cpath=`echo "$unet_cv_with_cpath" | sed "s%^$unet_cv_with_chroot%%"`
10672 { { echo "$as_me:$LINENO: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&5
10673 echo "$as_me: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&2;}
10674 { (exit 1); exit 1; }; }
10677 unet_cpath=$unet_cv_with_cpath
10680 unet_cpath=$unet_cv_with_cpath
10684 cat >>confdefs.h <<_ACEOF
10685 #define CPATH "$unet_cpath"
10689 echo "$as_me:$LINENO: checking where to put the debugging log if debugging enabled" >&5
10690 echo $ECHO_N "checking where to put the debugging log if debugging enabled... $ECHO_C" >&6
10692 # Check whether --with-lpath or --without-lpath was given.
10693 if test "${with_lpath+set}" = set; then
10694 withval="$with_lpath"
10695 unet_cv_with_lpath=$with_lpath
10697 if test "${unet_cv_with_lpath+set}" = set; then
10698 echo $ECHO_N "(cached) $ECHO_C" >&6
10700 unet_cv_with_lpath="ircd.log"
10705 if test x"$unet_cv_with_lpath" = xyes -o x"$unet_cv_with_lpath" = xno; then
10706 unet_cv_with_lpath="ircd.log"
10709 echo "$as_me:$LINENO: result: $unet_cv_with_lpath" >&5
10710 echo "${ECHO_T}$unet_cv_with_lpath" >&6
10712 if echo "$unet_cv_with_lpath" | grep '^/' > /dev/null 2>&1; then
10713 # Absolute path; check against chroot stuff
10714 if test x"$unet_cv_with_chroot" != xno; then
10715 if echo "$unet_cv_with_lpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10716 unet_lpath=`echo "$unet_cv_with_lpath" | sed "s%^$unet_cv_with_chroot%%"`
10718 { 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
10719 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;}
10720 unet_cv_with_lpath="ircd.log"
10721 unet_lpath="ircd.log"
10724 unet_lpath=$unet_cv_with_lpath
10727 unet_lpath=$unet_cv_with_lpath
10731 cat >>confdefs.h <<_ACEOF
10732 #define LPATH "$unet_lpath"
10736 unet_maxcon=`ulimit -Hn`
10737 if test x"$unet_maxcon" = xunlimited; then
10738 unet_maxcon=`ulimit -Sn`
10740 unet_maxcon=`expr $unet_maxcon - 4`
10741 echo "$as_me:$LINENO: checking max connections" >&5
10742 echo $ECHO_N "checking max connections... $ECHO_C" >&6
10744 # Check whether --with-maxcon or --without-maxcon was given.
10745 if test "${with_maxcon+set}" = set; then
10746 withval="$with_maxcon"
10747 unet_cv_with_maxcon=$with_maxcon
10749 if test "${unet_cv_with_maxcon+set}" = set; then
10750 echo $ECHO_N "(cached) $ECHO_C" >&6
10752 unet_cv_with_maxcon=$unet_maxcon
10757 if test x"$unet_cv_with_maxcon" = xyes -o x"$unet_cv_with_maxcon" = xno; then
10758 unet_cv_with_maxcon=$unet_maxcon
10761 echo "$as_me:$LINENO: result: $unet_cv_with_maxcon" >&5
10762 echo "${ECHO_T}$unet_cv_with_maxcon" >&6
10765 cat >>confdefs.h <<_ACEOF
10766 #define MAXCONNECTIONS $unet_cv_with_maxcon
10770 ac_config_files="$ac_config_files Makefile ircd/Makefile ircd/test/Makefile doc/Makefile"
10771 ac_config_commands="$ac_config_commands default"
10772 cat >confcache <<\_ACEOF
10773 # This file is a shell script that caches the results of configure
10774 # tests run on this system so they can be shared between configure
10775 # scripts and configure runs, see configure's option --config-cache.
10776 # It is not useful on other systems. If it contains results you don't
10777 # want to keep, you may remove or edit it.
10779 # config.status only pays attention to the cache file if you give it
10780 # the --recheck option to rerun configure.
10782 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10783 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10784 # following values.
10788 # The following way of writing the cache mishandles newlines in values,
10789 # but we know of no workaround that is simple, portable, and efficient.
10790 # So, don't put newlines in cache variables' values.
10791 # Ultrix sh set writes to stderr and can't be redirected directly,
10792 # and sets the high bit in the cache file unless we assign to the vars.
10795 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10797 # `set' does not quote correctly, so add quotes (double-quote
10798 # substitution turns \\\\ into \\, and sed turns \\ into \).
10801 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10804 # `set' quotes correctly as required by POSIX, so do not add quotes.
10806 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10813 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10815 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10817 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10818 if test -w $cache_file; then
10819 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10820 cat confcache >$cache_file
10822 echo "not updating unwritable cache $cache_file"
10827 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10828 # Let make expand exec_prefix.
10829 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10831 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10832 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10833 # trailing colons and then remove the whole line if VPATH becomes empty
10834 # (actually we leave an empty line to preserve line numbers).
10835 if test "x$srcdir" = x.; then
10836 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10837 s/:*\$(srcdir):*/:/;
10838 s/:*\${srcdir}:*/:/;
10840 s/^\([^=]*=[ ]*\):*/\1/;
10846 DEFS=-DHAVE_CONFIG_H
10850 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10851 # 1. Remove the extension, and $U if already installed.
10852 ac_i=`echo "$ac_i" |
10853 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10855 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10856 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10858 LIBOBJS=$ac_libobjs
10860 LTLIBOBJS=$ac_ltlibobjs
10864 : ${CONFIG_STATUS=./config.status}
10865 ac_clean_files_save=$ac_clean_files
10866 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10867 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10868 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10869 cat >$CONFIG_STATUS <<_ACEOF
10871 # Generated by $as_me.
10872 # Run this file to recreate the current configuration.
10873 # Compiler output produced by configure, useful for debugging
10874 # configure, is in config.log if it exists.
10877 ac_cs_recheck=false
10879 SHELL=\${CONFIG_SHELL-$SHELL}
10882 cat >>$CONFIG_STATUS <<\_ACEOF
10883 ## --------------------- ##
10884 ## M4sh Initialization. ##
10885 ## --------------------- ##
10887 # Be Bourne compatible
10888 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10891 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10892 # is contrary to our usage. Disable this feature.
10893 alias -g '${1+"$@"}'='"$@"'
10894 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10897 DUALCASE=1; export DUALCASE # for MKS sh
10899 # Support unset when possible.
10900 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10907 # Work around bugs in pre-3.0 UWIN ksh.
10908 $as_unset ENV MAIL MAILPATH
10915 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10916 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10917 LC_TELEPHONE LC_TIME
10919 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10920 eval $as_var=C; export $as_var
10926 # Required to use basename.
10927 if expr a : '\(a\)' >/dev/null 2>&1; then
10933 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10934 as_basename=basename
10940 # Name of the executable.
10941 as_me=`$as_basename "$0" ||
10942 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10943 X"$0" : 'X\(//\)$' \| \
10944 X"$0" : 'X\(/\)$' \| \
10945 . : '\(.\)' 2>/dev/null ||
10947 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10948 /^X\/\(\/\/\)$/{ s//\1/; q; }
10949 /^X\/\(\/\).*/{ s//\1/; q; }
10953 # PATH needs CR, and LINENO needs CR and PATH.
10954 # Avoid depending upon Character Ranges.
10955 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10956 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10957 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10958 as_cr_digits='0123456789'
10959 as_cr_alnum=$as_cr_Letters$as_cr_digits
10961 # The user is always right.
10962 if test "${PATH_SEPARATOR+set}" != set; then
10963 echo "#! /bin/sh" >conf$$.sh
10964 echo "exit 0" >>conf$$.sh
10966 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10975 as_lineno_1=$LINENO
10976 as_lineno_2=$LINENO
10977 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10978 test "x$as_lineno_1" != "x$as_lineno_2" &&
10979 test "x$as_lineno_3" = "x$as_lineno_2" || {
10980 # Find who we are. Look in the path if we contain no path at all
10983 *[\\/]* ) as_myself=$0 ;;
10984 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10985 for as_dir in $PATH
10988 test -z "$as_dir" && as_dir=.
10989 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10994 # We did not find ourselves, most probably we were run as `sh COMMAND'
10995 # in which case we are not to be found in the path.
10996 if test "x$as_myself" = x; then
10999 if test ! -f "$as_myself"; then
11000 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11001 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11002 { (exit 1); exit 1; }; }
11004 case $CONFIG_SHELL in
11006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11007 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11010 test -z "$as_dir" && as_dir=.
11011 for as_base in sh bash ksh sh5; do
11014 if ("$as_dir/$as_base" -c '
11015 as_lineno_1=$LINENO
11016 as_lineno_2=$LINENO
11017 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11018 test "x$as_lineno_1" != "x$as_lineno_2" &&
11019 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11020 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11021 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11022 CONFIG_SHELL=$as_dir/$as_base
11023 export CONFIG_SHELL
11024 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11032 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11033 # uniformly replaced by the line number. The first 'sed' inserts a
11034 # line-number line before each line; the second 'sed' does the real
11035 # work. The second script uses 'N' to pair each line-number line
11036 # with the numbered line, and appends trailing '-' during
11037 # substitution so that $LINENO is not a special case at line end.
11038 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11039 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11040 sed '=' <$as_myself |
11045 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11048 s,^['$as_cr_digits']*\n,,
11049 ' >$as_me.lineno &&
11050 chmod +x $as_me.lineno ||
11051 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11052 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11053 { (exit 1); exit 1; }; }
11055 # Don't try to exec as it changes $[0], causing all sort of problems
11056 # (the dirname of $[0] is not the place where we might find the
11057 # original and so on. Autoconf is especially sensible to this).
11059 # Exit status is that of the last command.
11064 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11065 *c*,-n*) ECHO_N= ECHO_C='
11067 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11068 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11071 if expr a : '\(a\)' >/dev/null 2>&1; then
11077 rm -f conf$$ conf$$.exe conf$$.file
11079 if ln -s conf$$.file conf$$ 2>/dev/null; then
11080 # We could just check for DJGPP; but this test a) works b) is more generic
11081 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11082 if test -f conf$$.exe; then
11083 # Don't use ln at all; we don't have any links
11088 elif ln conf$$.file conf$$ 2>/dev/null; then
11093 rm -f conf$$ conf$$.exe conf$$.file
11095 if mkdir -p . 2>/dev/null; then
11098 test -d ./-p && rmdir ./-p
11102 as_executable_p="test -f"
11104 # Sed expression to map a string onto a valid CPP name.
11105 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11107 # Sed expression to map a string onto a valid variable name.
11108 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11112 # We need space, tab and new line, in precisely that order.
11122 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11123 # report actual input values of CONFIG_FILES etc. instead of their
11124 # values after options handling. Logging --version etc. is OK.
11128 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11129 ## Running $as_me. ##
11134 This file was extended by $as_me, which was
11135 generated by GNU Autoconf 2.59. Invocation command line was
11137 CONFIG_FILES = $CONFIG_FILES
11138 CONFIG_HEADERS = $CONFIG_HEADERS
11139 CONFIG_LINKS = $CONFIG_LINKS
11140 CONFIG_COMMANDS = $CONFIG_COMMANDS
11144 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11148 # Files that config.status was made for.
11149 if test -n "$ac_config_files"; then
11150 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11153 if test -n "$ac_config_headers"; then
11154 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11157 if test -n "$ac_config_links"; then
11158 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11161 if test -n "$ac_config_commands"; then
11162 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11165 cat >>$CONFIG_STATUS <<\_ACEOF
11168 \`$as_me' instantiates files from templates according to the
11169 current configuration.
11171 Usage: $0 [OPTIONS] [FILE]...
11173 -h, --help print this help, then exit
11174 -V, --version print version number, then exit
11175 -q, --quiet do not print progress messages
11176 -d, --debug don't remove temporary files
11177 --recheck update $as_me by reconfiguring in the same conditions
11178 --file=FILE[:TEMPLATE]
11179 instantiate the configuration file FILE
11180 --header=FILE[:TEMPLATE]
11181 instantiate the configuration header FILE
11183 Configuration files:
11186 Configuration headers:
11189 Configuration commands:
11192 Report bugs to <bug-autoconf@gnu.org>."
11195 cat >>$CONFIG_STATUS <<_ACEOF
11198 configured by $0, generated by GNU Autoconf 2.59,
11199 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11201 Copyright (C) 2003 Free Software Foundation, Inc.
11202 This config.status script is free software; the Free Software Foundation
11203 gives unlimited permission to copy, distribute and modify it."
11208 cat >>$CONFIG_STATUS <<\_ACEOF
11209 # If no file are specified by the user, then we need to provide default
11210 # value. By we need to know if files were specified by the user.
11216 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11217 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11225 *) # This is not an option, so the user has probably given explicit
11228 ac_need_defaults=false;;
11232 # Handling of the options.
11234 cat >>$CONFIG_STATUS <<\_ACEOF
11235 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11237 --version | --vers* | -V )
11238 echo "$ac_cs_version"; exit 0 ;;
11240 # Conflict between --help and --header
11241 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11242 Try \`$0 --help' for more information." >&5
11243 echo "$as_me: error: ambiguous option: $1
11244 Try \`$0 --help' for more information." >&2;}
11245 { (exit 1); exit 1; }; };;
11246 --help | --hel | -h )
11247 echo "$ac_cs_usage"; exit 0 ;;
11248 --debug | --d* | -d )
11250 --file | --fil | --fi | --f )
11252 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11253 ac_need_defaults=false;;
11254 --header | --heade | --head | --hea )
11256 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11257 ac_need_defaults=false;;
11258 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11259 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11262 # This is an error.
11263 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11264 Try \`$0 --help' for more information." >&5
11265 echo "$as_me: error: unrecognized option: $1
11266 Try \`$0 --help' for more information." >&2;}
11267 { (exit 1); exit 1; }; } ;;
11269 *) ac_config_targets="$ac_config_targets $1" ;;
11275 ac_configure_extra_args=
11277 if $ac_cs_silent; then
11279 ac_configure_extra_args="$ac_configure_extra_args --silent"
11283 cat >>$CONFIG_STATUS <<_ACEOF
11284 if \$ac_cs_recheck; then
11285 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11286 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11295 cat >>$CONFIG_STATUS <<\_ACEOF
11296 for ac_config_target in $ac_config_targets
11298 case "$ac_config_target" in
11299 # Handling of arguments.
11300 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11301 "ircd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ircd/Makefile" ;;
11302 "ircd/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES ircd/test/Makefile" ;;
11303 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11304 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
11305 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11306 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11307 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11308 { (exit 1); exit 1; }; };;
11312 # If the user did not use the arguments to specify the items to instantiate,
11313 # then the envvar interface is used. Set only those that are not.
11314 # We use the long form for the default assignment because of an extremely
11315 # bizarre bug on SunOS 4.1.3.
11316 if $ac_need_defaults; then
11317 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11318 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11319 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11322 # Have a temporary directory for convenience. Make it in the build tree
11323 # simply because there is no reason to put it here, and in addition,
11324 # creating and moving files from /tmp can sometimes cause problems.
11325 # Create a temporary directory, and hook for its removal unless debugging.
11328 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11329 trap '{ (exit 1); exit 1; }' 1 2 13 15
11332 # Create a (secure) tmp directory for tmp files.
11335 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11336 test -n "$tmp" && test -d "$tmp"
11339 tmp=./confstat$$-$RANDOM
11340 (umask 077 && mkdir $tmp)
11343 echo "$me: cannot create a temporary directory in ." >&2
11344 { (exit 1); exit 1; }
11349 cat >>$CONFIG_STATUS <<_ACEOF
11352 # CONFIG_FILES section.
11355 # No need to generate the scripts if there are no CONFIG_FILES.
11356 # This happens for instance when ./config.status config.h
11357 if test -n "\$CONFIG_FILES"; then
11358 # Protect against being on the right side of a sed subst in config.status.
11359 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11360 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11361 s,@SHELL@,$SHELL,;t t
11362 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11363 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11364 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11365 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11366 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11367 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11368 s,@exec_prefix@,$exec_prefix,;t t
11369 s,@prefix@,$prefix,;t t
11370 s,@program_transform_name@,$program_transform_name,;t t
11371 s,@bindir@,$bindir,;t t
11372 s,@sbindir@,$sbindir,;t t
11373 s,@libexecdir@,$libexecdir,;t t
11374 s,@datadir@,$datadir,;t t
11375 s,@sysconfdir@,$sysconfdir,;t t
11376 s,@sharedstatedir@,$sharedstatedir,;t t
11377 s,@localstatedir@,$localstatedir,;t t
11378 s,@libdir@,$libdir,;t t
11379 s,@includedir@,$includedir,;t t
11380 s,@oldincludedir@,$oldincludedir,;t t
11381 s,@infodir@,$infodir,;t t
11382 s,@mandir@,$mandir,;t t
11383 s,@build_alias@,$build_alias,;t t
11384 s,@host_alias@,$host_alias,;t t
11385 s,@target_alias@,$target_alias,;t t
11386 s,@DEFS@,$DEFS,;t t
11387 s,@ECHO_C@,$ECHO_C,;t t
11388 s,@ECHO_N@,$ECHO_N,;t t
11389 s,@ECHO_T@,$ECHO_T,;t t
11390 s,@LIBS@,$LIBS,;t t
11391 s,@build@,$build,;t t
11392 s,@build_cpu@,$build_cpu,;t t
11393 s,@build_vendor@,$build_vendor,;t t
11394 s,@build_os@,$build_os,;t t
11395 s,@host@,$host,;t t
11396 s,@host_cpu@,$host_cpu,;t t
11397 s,@host_vendor@,$host_vendor,;t t
11398 s,@host_os@,$host_os,;t t
11400 s,@CFLAGS@,$CFLAGS,;t t
11401 s,@LDFLAGS@,$LDFLAGS,;t t
11402 s,@CPPFLAGS@,$CPPFLAGS,;t t
11403 s,@ac_ct_CC@,$ac_ct_CC,;t t
11404 s,@EXEEXT@,$EXEEXT,;t t
11405 s,@OBJEXT@,$OBJEXT,;t t
11407 s,@EGREP@,$EGREP,;t t
11409 s,@SET_MAKE@,$SET_MAKE,;t t
11410 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11411 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11412 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11413 s,@LN_S@,$LN_S,;t t
11414 s,@RMPROG@,$RMPROG,;t t
11415 s,@SHPROG@,$SHPROG,;t t
11417 s,@LEXLIB@,$LEXLIB,;t t
11418 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
11419 s,@YACC@,$YACC,;t t
11420 s,@ENGINE_C@,$ENGINE_C,;t t
11421 s,@INSTALL_RULE@,$INSTALL_RULE,;t t
11422 s,@SYMLINK@,$SYMLINK,;t t
11423 s,@IRCDMODE@,$IRCDMODE,;t t
11424 s,@IRCDOWN@,$IRCDOWN,;t t
11425 s,@IRCDGRP@,$IRCDGRP,;t t
11426 s,@DPATH@,$DPATH,;t t
11427 s,@LIBOBJS@,$LIBOBJS,;t t
11428 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11433 cat >>$CONFIG_STATUS <<\_ACEOF
11434 # Split the substitutions into bite-sized pieces for seds with
11435 # small command number limits, like on Digital OSF/1 and HP-UX.
11436 ac_max_sed_lines=48
11437 ac_sed_frag=1 # Number of current file.
11438 ac_beg=1 # First line for current file.
11439 ac_end=$ac_max_sed_lines # Line after last line for current file.
11442 while $ac_more_lines; do
11443 if test $ac_beg -gt 1; then
11444 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11446 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11448 if test ! -s $tmp/subs.frag; then
11449 ac_more_lines=false
11451 # The purpose of the label and of the branching condition is to
11452 # speed up the sed processing (if there are no `@' at all, there
11453 # is no need to browse any of the substitutions).
11454 # These are the two extra sed commands mentioned above.
11456 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11457 if test -z "$ac_sed_cmds"; then
11458 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11460 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11462 ac_sed_frag=`expr $ac_sed_frag + 1`
11464 ac_end=`expr $ac_end + $ac_max_sed_lines`
11467 if test -z "$ac_sed_cmds"; then
11470 fi # test -n "$CONFIG_FILES"
11473 cat >>$CONFIG_STATUS <<\_ACEOF
11474 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11475 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11477 - | *:- | *:-:* ) # input from stdin
11479 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11480 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11481 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11482 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11483 * ) ac_file_in=$ac_file.in ;;
11486 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11487 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11488 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11489 X"$ac_file" : 'X\(//\)[^/]' \| \
11490 X"$ac_file" : 'X\(//\)$' \| \
11491 X"$ac_file" : 'X\(/\)' \| \
11492 . : '\(.\)' 2>/dev/null ||
11494 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11495 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11496 /^X\(\/\/\)$/{ s//\1/; q; }
11497 /^X\(\/\).*/{ s//\1/; q; }
11499 { if $as_mkdir_p; then
11504 while test ! -d "$as_dir"; do
11505 as_dirs="$as_dir $as_dirs"
11506 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11507 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11508 X"$as_dir" : 'X\(//\)[^/]' \| \
11509 X"$as_dir" : 'X\(//\)$' \| \
11510 X"$as_dir" : 'X\(/\)' \| \
11511 . : '\(.\)' 2>/dev/null ||
11513 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11514 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11515 /^X\(\/\/\)$/{ s//\1/; q; }
11516 /^X\(\/\).*/{ s//\1/; q; }
11519 test ! -n "$as_dirs" || mkdir $as_dirs
11520 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11521 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11522 { (exit 1); exit 1; }; }; }
11526 if test "$ac_dir" != .; then
11527 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11528 # A "../" for each directory in $ac_dir_suffix.
11529 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11531 ac_dir_suffix= ac_top_builddir=
11535 .) # No --srcdir option. We are building in place.
11537 if test -z "$ac_top_builddir"; then
11540 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11542 [\\/]* | ?:[\\/]* ) # Absolute path.
11543 ac_srcdir=$srcdir$ac_dir_suffix;
11544 ac_top_srcdir=$srcdir ;;
11545 *) # Relative path.
11546 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11547 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11550 # Do not use `cd foo && pwd` to compute absolute paths, because
11551 # the directories may not exist.
11553 .) ac_abs_builddir="$ac_dir";;
11556 .) ac_abs_builddir=`pwd`;;
11557 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11558 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11561 case $ac_abs_builddir in
11562 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11564 case ${ac_top_builddir}. in
11565 .) ac_abs_top_builddir=$ac_abs_builddir;;
11566 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11567 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11570 case $ac_abs_builddir in
11571 .) ac_abs_srcdir=$ac_srcdir;;
11574 .) ac_abs_srcdir=$ac_abs_builddir;;
11575 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11576 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11579 case $ac_abs_builddir in
11580 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11582 case $ac_top_srcdir in
11583 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11584 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11585 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11591 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11592 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11595 # Let's still pretend it is `configure' which instantiates (i.e., don't
11596 # use $as_me), people would be surprised to read:
11597 # /* config.h. Generated by config.status. */
11598 if test x"$ac_file" = x-; then
11601 configure_input="$ac_file. "
11603 configure_input=$configure_input"Generated from `echo $ac_file_in |
11604 sed 's,.*/,,'` by configure."
11606 # First look for the input files in the build tree, otherwise in the
11608 ac_file_inputs=`IFS=:
11609 for f in $ac_file_in; do
11611 -) echo $tmp/stdin ;;
11613 # Absolute (can't be DOS-style, as IFS=:)
11614 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11615 echo "$as_me: error: cannot find input file: $f" >&2;}
11616 { (exit 1); exit 1; }; }
11619 if test -f "$f"; then
11622 elif test -f "$srcdir/$f"; then
11627 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11628 echo "$as_me: error: cannot find input file: $f" >&2;}
11629 { (exit 1); exit 1; }; }
11632 done` || { (exit 1); exit 1; }
11634 if test x"$ac_file" != x-; then
11635 { echo "$as_me:$LINENO: creating $ac_file" >&5
11636 echo "$as_me: creating $ac_file" >&6;}
11640 cat >>$CONFIG_STATUS <<_ACEOF
11644 cat >>$CONFIG_STATUS <<\_ACEOF
11646 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11647 s,@configure_input@,$configure_input,;t t
11648 s,@srcdir@,$ac_srcdir,;t t
11649 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11650 s,@top_srcdir@,$ac_top_srcdir,;t t
11651 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11652 s,@builddir@,$ac_builddir,;t t
11653 s,@abs_builddir@,$ac_abs_builddir,;t t
11654 s,@top_builddir@,$ac_top_builddir,;t t
11655 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11656 s,@INSTALL@,$ac_INSTALL,;t t
11657 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11659 if test x"$ac_file" != x-; then
11660 mv $tmp/out $ac_file
11668 cat >>$CONFIG_STATUS <<\_ACEOF
11671 # CONFIG_HEADER section.
11674 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11675 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11677 # ac_d sets the value in "#define NAME VALUE" lines.
11678 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11679 ac_dB='[ ].*$,\1#\2'
11682 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11683 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11684 ac_uB='$,\1#\2define\3'
11688 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11689 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11691 - | *:- | *:-:* ) # input from stdin
11693 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11694 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11695 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11696 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11697 * ) ac_file_in=$ac_file.in ;;
11700 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11701 echo "$as_me: creating $ac_file" >&6;}
11703 # First look for the input files in the build tree, otherwise in the
11705 ac_file_inputs=`IFS=:
11706 for f in $ac_file_in; do
11708 -) echo $tmp/stdin ;;
11710 # Absolute (can't be DOS-style, as IFS=:)
11711 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11712 echo "$as_me: error: cannot find input file: $f" >&2;}
11713 { (exit 1); exit 1; }; }
11714 # Do quote $f, to prevent DOS paths from being IFS'd.
11717 if test -f "$f"; then
11720 elif test -f "$srcdir/$f"; then
11725 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11726 echo "$as_me: error: cannot find input file: $f" >&2;}
11727 { (exit 1); exit 1; }; }
11730 done` || { (exit 1); exit 1; }
11731 # Remove the trailing spaces.
11732 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11736 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11737 # `conftest.undefs', that substitutes the proper values into
11738 # config.h.in to produce config.h. The first handles `#define'
11739 # templates, and the second `#undef' templates.
11740 # And first: Protect against being on the right side of a sed subst in
11741 # config.status. Protect against being in an unquoted here document
11742 # in config.status.
11743 rm -f conftest.defines conftest.undefs
11744 # Using a here document instead of a string reduces the quoting nightmare.
11745 # Putting comments in sed scripts is not portable.
11747 # `end' is used to avoid that the second main sed command (meant for
11748 # 0-ary CPP macros) applies to n-ary macro definitions.
11749 # See the Autoconf documentation for `clear'.
11750 cat >confdef2sed.sed <<\_ACEOF
11755 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11757 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11760 # If some macros were called several times there might be several times
11761 # the same #defines, which is useless. Nevertheless, we may not want to
11762 # sort them, since we want the *last* AC-DEFINE to be honored.
11763 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11764 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11765 rm -f confdef2sed.sed
11767 # This sed command replaces #undef with comments. This is necessary, for
11768 # example, in the case of _POSIX_SOURCE, which is predefined and required
11769 # on some systems where configure will not decide to define it.
11770 cat >>conftest.undefs <<\_ACEOF
11771 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11774 # Break up conftest.defines because some shells have a limit on the size
11775 # of here documents, and old seds have small limits too (100 cmds).
11776 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11777 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11778 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11779 echo ' :' >>$CONFIG_STATUS
11780 rm -f conftest.tail
11781 while grep . conftest.defines >/dev/null
11783 # Write a limited-size here document to $tmp/defines.sed.
11784 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11785 # Speed up: don't consider the non `#define' lines.
11786 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11787 # Work around the forget-to-reset-the-flag bug.
11788 echo 't clr' >>$CONFIG_STATUS
11789 echo ': clr' >>$CONFIG_STATUS
11790 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11792 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11794 mv $tmp/out $tmp/in
11796 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11797 rm -f conftest.defines
11798 mv conftest.tail conftest.defines
11800 rm -f conftest.defines
11801 echo ' fi # grep' >>$CONFIG_STATUS
11802 echo >>$CONFIG_STATUS
11804 # Break up conftest.undefs because some shells have a limit on the size
11805 # of here documents, and old seds have small limits too (100 cmds).
11806 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11807 rm -f conftest.tail
11808 while grep . conftest.undefs >/dev/null
11810 # Write a limited-size here document to $tmp/undefs.sed.
11811 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11812 # Speed up: don't consider the non `#undef'
11813 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11814 # Work around the forget-to-reset-the-flag bug.
11815 echo 't clr' >>$CONFIG_STATUS
11816 echo ': clr' >>$CONFIG_STATUS
11817 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11819 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11821 mv $tmp/out $tmp/in
11823 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11824 rm -f conftest.undefs
11825 mv conftest.tail conftest.undefs
11827 rm -f conftest.undefs
11829 cat >>$CONFIG_STATUS <<\_ACEOF
11830 # Let's still pretend it is `configure' which instantiates (i.e., don't
11831 # use $as_me), people would be surprised to read:
11832 # /* config.h. Generated by config.status. */
11833 if test x"$ac_file" = x-; then
11834 echo "/* Generated by configure. */" >$tmp/config.h
11836 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11838 cat $tmp/in >>$tmp/config.h
11840 if test x"$ac_file" != x-; then
11841 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11842 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11843 echo "$as_me: $ac_file is unchanged" >&6;}
11845 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11846 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11847 X"$ac_file" : 'X\(//\)[^/]' \| \
11848 X"$ac_file" : 'X\(//\)$' \| \
11849 X"$ac_file" : 'X\(/\)' \| \
11850 . : '\(.\)' 2>/dev/null ||
11852 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11853 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11854 /^X\(\/\/\)$/{ s//\1/; q; }
11855 /^X\(\/\).*/{ s//\1/; q; }
11857 { if $as_mkdir_p; then
11862 while test ! -d "$as_dir"; do
11863 as_dirs="$as_dir $as_dirs"
11864 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11865 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11866 X"$as_dir" : 'X\(//\)[^/]' \| \
11867 X"$as_dir" : 'X\(//\)$' \| \
11868 X"$as_dir" : 'X\(/\)' \| \
11869 . : '\(.\)' 2>/dev/null ||
11871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11872 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11873 /^X\(\/\/\)$/{ s//\1/; q; }
11874 /^X\(\/\).*/{ s//\1/; q; }
11877 test ! -n "$as_dirs" || mkdir $as_dirs
11878 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11879 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11880 { (exit 1); exit 1; }; }; }
11883 mv $tmp/config.h $ac_file
11887 rm -f $tmp/config.h
11891 cat >>$CONFIG_STATUS <<\_ACEOF
11894 # CONFIG_COMMANDS section.
11896 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11897 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11898 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11899 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11900 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11901 X"$ac_dest" : 'X\(//\)[^/]' \| \
11902 X"$ac_dest" : 'X\(//\)$' \| \
11903 X"$ac_dest" : 'X\(/\)' \| \
11904 . : '\(.\)' 2>/dev/null ||
11906 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11907 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11908 /^X\(\/\/\)$/{ s//\1/; q; }
11909 /^X\(\/\).*/{ s//\1/; q; }
11911 { if $as_mkdir_p; then
11916 while test ! -d "$as_dir"; do
11917 as_dirs="$as_dir $as_dirs"
11918 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11919 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11920 X"$as_dir" : 'X\(//\)[^/]' \| \
11921 X"$as_dir" : 'X\(//\)$' \| \
11922 X"$as_dir" : 'X\(/\)' \| \
11923 . : '\(.\)' 2>/dev/null ||
11925 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11926 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11927 /^X\(\/\/\)$/{ s//\1/; q; }
11928 /^X\(\/\).*/{ s//\1/; q; }
11931 test ! -n "$as_dirs" || mkdir $as_dirs
11932 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11933 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11934 { (exit 1); exit 1; }; }; }
11938 if test "$ac_dir" != .; then
11939 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11940 # A "../" for each directory in $ac_dir_suffix.
11941 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11943 ac_dir_suffix= ac_top_builddir=
11947 .) # No --srcdir option. We are building in place.
11949 if test -z "$ac_top_builddir"; then
11952 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11954 [\\/]* | ?:[\\/]* ) # Absolute path.
11955 ac_srcdir=$srcdir$ac_dir_suffix;
11956 ac_top_srcdir=$srcdir ;;
11957 *) # Relative path.
11958 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11959 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11962 # Do not use `cd foo && pwd` to compute absolute paths, because
11963 # the directories may not exist.
11965 .) ac_abs_builddir="$ac_dir";;
11968 .) ac_abs_builddir=`pwd`;;
11969 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11970 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11973 case $ac_abs_builddir in
11974 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11976 case ${ac_top_builddir}. in
11977 .) ac_abs_top_builddir=$ac_abs_builddir;;
11978 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11979 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11982 case $ac_abs_builddir in
11983 .) ac_abs_srcdir=$ac_srcdir;;
11986 .) ac_abs_srcdir=$ac_abs_builddir;;
11987 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11988 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11991 case $ac_abs_builddir in
11992 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11994 case $ac_top_srcdir in
11995 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11996 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11997 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12002 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12003 echo "$as_me: executing $ac_dest commands" >&6;}
12005 default ) echo timestamp > stamp-h ;;
12010 cat >>$CONFIG_STATUS <<\_ACEOF
12012 { (exit 0); exit 0; }
12014 chmod +x $CONFIG_STATUS
12015 ac_clean_files=$ac_clean_files_save
12018 # configure is writing to config.log, and then calls config.status.
12019 # config.status does its own redirection, appending to config.log.
12020 # Unfortunately, on DOS this fails, as config.log is still kept open
12021 # by configure, so config.status won't be able to write to it; its
12022 # output is simply discarded. So we exec the FD to /dev/null,
12023 # effectively closing config.log, so it can be properly (re)opened and
12024 # appended to by config.status. When coming back to configure, we
12025 # need to make the FD available again.
12026 if test "$no_create" != yes; then
12028 ac_config_status_args=
12029 test "$silent" = yes &&
12030 ac_config_status_args="$ac_config_status_args --quiet"
12032 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12034 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12035 # would make configure fail if this is the last instruction.
12036 $ac_cs_success || { (exit 1); exit 1; }
12040 ac_config_commands="$ac_config_commands default-1"