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
2360 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2361 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2362 if test "${am_cv_prog_cc_stdc+set}" = set; then
2363 echo $ECHO_N "(cached) $ECHO_C" >&6
2365 am_cv_prog_cc_stdc=no
2367 # Don't try gcc -ansi; that turns off useful extensions and
2368 # breaks some systems' header files.
2369 # AIX -qlanglvl=ansi
2370 # Ultrix and OSF/1 -std1
2371 # HP-UX 10.20 and later -Ae
2372 # HP-UX older versions -Aa -D_HPUX_SOURCE
2373 # SVR4 -Xc -D__EXTENSIONS__
2374 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2376 CC="$ac_save_CC $ac_arg"
2377 cat >conftest.$ac_ext <<_ACEOF
2380 cat confdefs.h >>conftest.$ac_ext
2381 cat >>conftest.$ac_ext <<_ACEOF
2382 /* end confdefs.h. */
2385 #include <sys/types.h>
2386 #include <sys/stat.h>
2387 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2388 struct buf { int x; };
2389 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2390 static char *e (p, i)
2396 static char *f (char * (*g) (char **, int), char **p, ...)
2401 s = g (p, va_arg (v,int));
2405 int test (int i, double x);
2406 struct s1 {int (*f) (int a);};
2407 struct s2 {int (*f) (double a);};
2408 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2416 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2422 rm -f conftest.$ac_objext
2423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2424 (eval $ac_compile) 2>conftest.er1
2426 grep -v '^ *+' conftest.er1 >conftest.err
2428 cat conftest.err >&5
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); } &&
2431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); }; } &&
2437 { ac_try='test -s conftest.$ac_objext'
2438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); }; }; then
2443 am_cv_prog_cc_stdc="$ac_arg"; break
2445 echo "$as_me: failed program was:" >&5
2446 sed 's/^/| /' conftest.$ac_ext >&5
2449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2455 if test -z "$am_cv_prog_cc_stdc"; then
2456 echo "$as_me:$LINENO: result: none needed" >&5
2457 echo "${ECHO_T}none needed" >&6
2459 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2460 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2462 case "x$am_cv_prog_cc_stdc" in
2464 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2468 # Check whether --with-optimization or --without-optimization was given.
2469 if test "${with_optimization+set}" = set; then
2470 withval="$with_optimization"
2471 unet_cv_optimization=$withval
2473 unet_cv_optimization='-O3'
2475 echo "$as_me:$LINENO: checking optimization level" >&5
2476 echo $ECHO_N "checking optimization level... $ECHO_C" >&6
2477 if test "${unet_cv_optimization+set}" = set; then
2478 echo $ECHO_N "(cached) $ECHO_C" >&6
2480 unet_cv_optimization='-O3'
2482 echo "$as_me:$LINENO: result: $unet_cv_optimization" >&5
2483 echo "${ECHO_T}$unet_cv_optimization" >&6
2484 if test "x$unet_cv_optimization" = "xno" ; then
2485 unet_cv_optimization=""
2487 if test x"$CFLAGS" != x; then
2488 CFLAGS=`echo "$CFLAGS" | sed -e s/-O2/$unet_cv_optimization/`
2490 if test x"$CFLAGS" != x; then
2491 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pipe//g'`
2493 if test x"$CFLAGS" != x; then
2494 unet_old_cflags=$CFLAGS
2495 CFLAGS=`echo "$CFLAGS" | sed -e 's/-g//g'`
2497 if test x"$CFLAGS" != x"$unet_old_cflags"; then
2498 # If -g was already there, force symbols to be enabled
2499 unet_cv_enable_symbols=yes
2501 if test x"$CFLAGS" != x; then
2502 unet_old_cflags=$CFLAGS
2503 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pg//g'`
2505 if test x"$CFLAGS" != x"$unet_old_cflags"; then
2506 # If -pg was already there, force profiling to be enabled
2507 unet_cv_enable_profile=yes
2509 if test x"$CFLAGS" != x; then
2510 unet_old_cflags=$CFLAGS
2511 CFLAGS=`echo "$CFLAGS" | sed -e 's/-Wall//g'`
2513 if test x"$CFLAGS" != x"$unet_old_cflags"; then
2514 # If -Wall was already there, force warnings to be enabled
2515 unet_cv_enable_warnings=yes
2517 if test x"$CFLAGS" != x; then
2518 unet_old_cflags=$CFLAGS
2519 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pedantic//g'`
2521 if test x"$CFLAGS" != x"$unet_old_cflags"; then
2522 # If -pedantic was already there, force pedatic to be enabled
2523 unet_cv_enable_pedantic=yes
2527 echo "$as_me:$LINENO: checking for library containing crypt" >&5
2528 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
2529 if test "${ac_cv_search_crypt+set}" = set; then
2530 echo $ECHO_N "(cached) $ECHO_C" >&6
2532 ac_func_search_save_LIBS=$LIBS
2533 ac_cv_search_crypt=no
2534 cat >conftest.$ac_ext <<_ACEOF
2537 cat confdefs.h >>conftest.$ac_ext
2538 cat >>conftest.$ac_ext <<_ACEOF
2539 /* end confdefs.h. */
2541 /* Override any gcc2 internal prototype to avoid an error. */
2545 /* We use char because int might match the return type of a gcc2
2546 builtin and then its argument prototype would still apply. */
2556 rm -f conftest.$ac_objext conftest$ac_exeext
2557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2558 (eval $ac_link) 2>conftest.er1
2560 grep -v '^ *+' conftest.er1 >conftest.err
2562 cat conftest.err >&5
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); } &&
2565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); }; } &&
2571 { ac_try='test -s conftest$ac_exeext'
2572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); }; }; then
2577 ac_cv_search_crypt="none required"
2579 echo "$as_me: failed program was:" >&5
2580 sed 's/^/| /' conftest.$ac_ext >&5
2583 rm -f conftest.err conftest.$ac_objext \
2584 conftest$ac_exeext conftest.$ac_ext
2585 if test "$ac_cv_search_crypt" = no; then
2586 for ac_lib in descrypt crypt; do
2587 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2588 cat >conftest.$ac_ext <<_ACEOF
2591 cat confdefs.h >>conftest.$ac_ext
2592 cat >>conftest.$ac_ext <<_ACEOF
2593 /* end confdefs.h. */
2595 /* Override any gcc2 internal prototype to avoid an error. */
2599 /* We use char because int might match the return type of a gcc2
2600 builtin and then its argument prototype would still apply. */
2610 rm -f conftest.$ac_objext conftest$ac_exeext
2611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2612 (eval $ac_link) 2>conftest.er1
2614 grep -v '^ *+' conftest.er1 >conftest.err
2616 cat conftest.err >&5
2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); } &&
2619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); }; } &&
2625 { ac_try='test -s conftest$ac_exeext'
2626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); }; }; then
2631 ac_cv_search_crypt="-l$ac_lib"
2634 echo "$as_me: failed program was:" >&5
2635 sed 's/^/| /' conftest.$ac_ext >&5
2638 rm -f conftest.err conftest.$ac_objext \
2639 conftest$ac_exeext conftest.$ac_ext
2642 LIBS=$ac_func_search_save_LIBS
2644 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
2645 echo "${ECHO_T}$ac_cv_search_crypt" >&6
2646 if test "$ac_cv_search_crypt" != no; then
2647 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
2650 { { echo "$as_me:$LINENO: error: Unable to find library containing crypt()" >&5
2651 echo "$as_me: error: Unable to find library containing crypt()" >&2;}
2652 { (exit 1); exit 1; }; }
2657 # Most operating systems have gethostbyname() in the default searched
2658 # libraries (i.e. libc):
2659 echo "$as_me:$LINENO: checking for gethostbyname" >&5
2660 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
2661 if test "${ac_cv_func_gethostbyname+set}" = set; then
2662 echo $ECHO_N "(cached) $ECHO_C" >&6
2664 cat >conftest.$ac_ext <<_ACEOF
2667 cat confdefs.h >>conftest.$ac_ext
2668 cat >>conftest.$ac_ext <<_ACEOF
2669 /* end confdefs.h. */
2670 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
2671 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2672 #define gethostbyname innocuous_gethostbyname
2674 /* System header to define __stub macros and hopefully few prototypes,
2675 which can conflict with char gethostbyname (); below.
2676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2677 <limits.h> exists even on freestanding compilers. */
2680 # include <limits.h>
2682 # include <assert.h>
2685 #undef gethostbyname
2687 /* Override any gcc2 internal prototype to avoid an error. */
2692 /* We use char because int might match the return type of a gcc2
2693 builtin and then its argument prototype would still apply. */
2694 char gethostbyname ();
2695 /* The GNU C library defines this for functions which it implements
2696 to always fail with ENOSYS. Some functions are actually named
2697 something starting with __ and the normal name is an alias. */
2698 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2701 char (*f) () = gethostbyname;
2710 return f != gethostbyname;
2715 rm -f conftest.$ac_objext conftest$ac_exeext
2716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2717 (eval $ac_link) 2>conftest.er1
2719 grep -v '^ *+' conftest.er1 >conftest.err
2721 cat conftest.err >&5
2722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723 (exit $ac_status); } &&
2724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); }; } &&
2730 { ac_try='test -s conftest$ac_exeext'
2731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); }; }; then
2736 ac_cv_func_gethostbyname=yes
2738 echo "$as_me: failed program was:" >&5
2739 sed 's/^/| /' conftest.$ac_ext >&5
2741 ac_cv_func_gethostbyname=no
2743 rm -f conftest.err conftest.$ac_objext \
2744 conftest$ac_exeext conftest.$ac_ext
2746 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
2747 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
2748 if test $ac_cv_func_gethostbyname = yes; then
2751 # Some OSes (eg. Solaris) place it in libnsl:
2753 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
2754 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
2755 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
2756 echo $ECHO_N "(cached) $ECHO_C" >&6
2758 ac_check_lib_save_LIBS=$LIBS
2760 cat >conftest.$ac_ext <<_ACEOF
2763 cat confdefs.h >>conftest.$ac_ext
2764 cat >>conftest.$ac_ext <<_ACEOF
2765 /* end confdefs.h. */
2767 /* Override any gcc2 internal prototype to avoid an error. */
2771 /* We use char because int might match the return type of a gcc2
2772 builtin and then its argument prototype would still apply. */
2773 char gethostbyname ();
2782 rm -f conftest.$ac_objext conftest$ac_exeext
2783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2784 (eval $ac_link) 2>conftest.er1
2786 grep -v '^ *+' conftest.er1 >conftest.err
2788 cat conftest.err >&5
2789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790 (exit $ac_status); } &&
2791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); }; } &&
2797 { ac_try='test -s conftest$ac_exeext'
2798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); }; }; then
2803 ac_cv_lib_nsl_gethostbyname=yes
2805 echo "$as_me: failed program was:" >&5
2806 sed 's/^/| /' conftest.$ac_ext >&5
2808 ac_cv_lib_nsl_gethostbyname=no
2810 rm -f conftest.err conftest.$ac_objext \
2811 conftest$ac_exeext conftest.$ac_ext
2812 LIBS=$ac_check_lib_save_LIBS
2814 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
2815 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
2816 if test $ac_cv_lib_nsl_gethostbyname = yes; then
2817 cat >>confdefs.h <<_ACEOF
2818 #define HAVE_LIBNSL 1
2824 # Some strange OSes (SINIX) have it in libsocket:
2826 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
2827 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
2828 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
2829 echo $ECHO_N "(cached) $ECHO_C" >&6
2831 ac_check_lib_save_LIBS=$LIBS
2832 LIBS="-lsocket $LIBS"
2833 cat >conftest.$ac_ext <<_ACEOF
2836 cat confdefs.h >>conftest.$ac_ext
2837 cat >>conftest.$ac_ext <<_ACEOF
2838 /* end confdefs.h. */
2840 /* Override any gcc2 internal prototype to avoid an error. */
2844 /* We use char because int might match the return type of a gcc2
2845 builtin and then its argument prototype would still apply. */
2846 char gethostbyname ();
2855 rm -f conftest.$ac_objext conftest$ac_exeext
2856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2857 (eval $ac_link) 2>conftest.er1
2859 grep -v '^ *+' conftest.er1 >conftest.err
2861 cat conftest.err >&5
2862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863 (exit $ac_status); } &&
2864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); }; } &&
2870 { ac_try='test -s conftest$ac_exeext'
2871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); }; }; then
2876 ac_cv_lib_socket_gethostbyname=yes
2878 echo "$as_me: failed program was:" >&5
2879 sed 's/^/| /' conftest.$ac_ext >&5
2881 ac_cv_lib_socket_gethostbyname=no
2883 rm -f conftest.err conftest.$ac_objext \
2884 conftest$ac_exeext conftest.$ac_ext
2885 LIBS=$ac_check_lib_save_LIBS
2887 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
2888 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
2889 if test $ac_cv_lib_socket_gethostbyname = yes; then
2890 cat >>confdefs.h <<_ACEOF
2891 #define HAVE_LIBSOCKET 1
2894 LIBS="-lsocket $LIBS"
2897 # Unfortunately libsocket sometimes depends on libnsl.
2898 # AC_CHECK_LIB's API is essentially broken so the following
2899 # ugliness is necessary:
2900 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
2901 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
2902 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
2903 echo $ECHO_N "(cached) $ECHO_C" >&6
2905 ac_check_lib_save_LIBS=$LIBS
2906 LIBS="-lsocket -lnsl $LIBS"
2907 cat >conftest.$ac_ext <<_ACEOF
2910 cat confdefs.h >>conftest.$ac_ext
2911 cat >>conftest.$ac_ext <<_ACEOF
2912 /* end confdefs.h. */
2914 /* Override any gcc2 internal prototype to avoid an error. */
2918 /* We use char because int might match the return type of a gcc2
2919 builtin and then its argument prototype would still apply. */
2920 char gethostbyname ();
2929 rm -f conftest.$ac_objext conftest$ac_exeext
2930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2931 (eval $ac_link) 2>conftest.er1
2933 grep -v '^ *+' conftest.er1 >conftest.err
2935 cat conftest.err >&5
2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937 (exit $ac_status); } &&
2938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); }; } &&
2944 { ac_try='test -s conftest$ac_exeext'
2945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); }; }; then
2950 ac_cv_lib_socket_gethostbyname=yes
2952 echo "$as_me: failed program was:" >&5
2953 sed 's/^/| /' conftest.$ac_ext >&5
2955 ac_cv_lib_socket_gethostbyname=no
2957 rm -f conftest.err conftest.$ac_objext \
2958 conftest$ac_exeext conftest.$ac_ext
2959 LIBS=$ac_check_lib_save_LIBS
2961 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
2962 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
2963 if test $ac_cv_lib_socket_gethostbyname = yes; then
2964 LIBS="-lsocket -lnsl $LIBS"
2967 echo "$as_me:$LINENO: checking for gethostbyname in -lresolv" >&5
2968 echo $ECHO_N "checking for gethostbyname in -lresolv... $ECHO_C" >&6
2969 if test "${ac_cv_lib_resolv_gethostbyname+set}" = set; then
2970 echo $ECHO_N "(cached) $ECHO_C" >&6
2972 ac_check_lib_save_LIBS=$LIBS
2973 LIBS="-lresolv $LIBS"
2974 cat >conftest.$ac_ext <<_ACEOF
2977 cat confdefs.h >>conftest.$ac_ext
2978 cat >>conftest.$ac_ext <<_ACEOF
2979 /* end confdefs.h. */
2981 /* Override any gcc2 internal prototype to avoid an error. */
2985 /* We use char because int might match the return type of a gcc2
2986 builtin and then its argument prototype would still apply. */
2987 char gethostbyname ();
2996 rm -f conftest.$ac_objext conftest$ac_exeext
2997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2998 (eval $ac_link) 2>conftest.er1
3000 grep -v '^ *+' conftest.er1 >conftest.err
3002 cat conftest.err >&5
3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); } &&
3005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); }; } &&
3011 { ac_try='test -s conftest$ac_exeext'
3012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); }; }; then
3017 ac_cv_lib_resolv_gethostbyname=yes
3019 echo "$as_me: failed program was:" >&5
3020 sed 's/^/| /' conftest.$ac_ext >&5
3022 ac_cv_lib_resolv_gethostbyname=no
3024 rm -f conftest.err conftest.$ac_objext \
3025 conftest$ac_exeext conftest.$ac_ext
3026 LIBS=$ac_check_lib_save_LIBS
3028 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname" >&5
3029 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname" >&6
3030 if test $ac_cv_lib_resolv_gethostbyname = yes; then
3031 cat >>confdefs.h <<_ACEOF
3032 #define HAVE_LIBRESOLV 1
3035 LIBS="-lresolv $LIBS"
3050 echo "$as_me:$LINENO: checking for socket" >&5
3051 echo $ECHO_N "checking for socket... $ECHO_C" >&6
3052 if test "${ac_cv_func_socket+set}" = set; then
3053 echo $ECHO_N "(cached) $ECHO_C" >&6
3055 cat >conftest.$ac_ext <<_ACEOF
3058 cat confdefs.h >>conftest.$ac_ext
3059 cat >>conftest.$ac_ext <<_ACEOF
3060 /* end confdefs.h. */
3061 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
3062 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3063 #define socket innocuous_socket
3065 /* System header to define __stub macros and hopefully few prototypes,
3066 which can conflict with char socket (); below.
3067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3068 <limits.h> exists even on freestanding compilers. */
3071 # include <limits.h>
3073 # include <assert.h>
3078 /* Override any gcc2 internal prototype to avoid an error. */
3083 /* We use char because int might match the return type of a gcc2
3084 builtin and then its argument prototype would still apply. */
3086 /* The GNU C library defines this for functions which it implements
3087 to always fail with ENOSYS. Some functions are actually named
3088 something starting with __ and the normal name is an alias. */
3089 #if defined (__stub_socket) || defined (__stub___socket)
3092 char (*f) () = socket;
3106 rm -f conftest.$ac_objext conftest$ac_exeext
3107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3108 (eval $ac_link) 2>conftest.er1
3110 grep -v '^ *+' conftest.er1 >conftest.err
3112 cat conftest.err >&5
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); } &&
3115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120 (exit $ac_status); }; } &&
3121 { ac_try='test -s conftest$ac_exeext'
3122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 (exit $ac_status); }; }; then
3127 ac_cv_func_socket=yes
3129 echo "$as_me: failed program was:" >&5
3130 sed 's/^/| /' conftest.$ac_ext >&5
3132 ac_cv_func_socket=no
3134 rm -f conftest.err conftest.$ac_objext \
3135 conftest$ac_exeext conftest.$ac_ext
3137 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
3138 echo "${ECHO_T}$ac_cv_func_socket" >&6
3139 if test $ac_cv_func_socket = yes; then
3143 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3144 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3145 if test "${ac_cv_lib_socket_socket+set}" = set; then
3146 echo $ECHO_N "(cached) $ECHO_C" >&6
3148 ac_check_lib_save_LIBS=$LIBS
3149 LIBS="-lsocket $LIBS"
3150 cat >conftest.$ac_ext <<_ACEOF
3153 cat confdefs.h >>conftest.$ac_ext
3154 cat >>conftest.$ac_ext <<_ACEOF
3155 /* end confdefs.h. */
3157 /* Override any gcc2 internal prototype to avoid an error. */
3161 /* We use char because int might match the return type of a gcc2
3162 builtin and then its argument prototype would still apply. */
3172 rm -f conftest.$ac_objext conftest$ac_exeext
3173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3174 (eval $ac_link) 2>conftest.er1
3176 grep -v '^ *+' conftest.er1 >conftest.err
3178 cat conftest.err >&5
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); } &&
3181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); }; } &&
3187 { ac_try='test -s conftest$ac_exeext'
3188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192 (exit $ac_status); }; }; then
3193 ac_cv_lib_socket_socket=yes
3195 echo "$as_me: failed program was:" >&5
3196 sed 's/^/| /' conftest.$ac_ext >&5
3198 ac_cv_lib_socket_socket=no
3200 rm -f conftest.err conftest.$ac_objext \
3201 conftest$ac_exeext conftest.$ac_ext
3202 LIBS=$ac_check_lib_save_LIBS
3204 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3205 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3206 if test $ac_cv_lib_socket_socket = yes; then
3207 cat >>confdefs.h <<_ACEOF
3208 #define HAVE_LIBSOCKET 1
3211 LIBS="-lsocket $LIBS"
3214 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3215 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3216 if test "${ac_cv_lib_socket_socket+set}" = set; then
3217 echo $ECHO_N "(cached) $ECHO_C" >&6
3219 ac_check_lib_save_LIBS=$LIBS
3220 LIBS="-lsocket -lnsl $LIBS"
3221 cat >conftest.$ac_ext <<_ACEOF
3224 cat confdefs.h >>conftest.$ac_ext
3225 cat >>conftest.$ac_ext <<_ACEOF
3226 /* end confdefs.h. */
3228 /* Override any gcc2 internal prototype to avoid an error. */
3232 /* We use char because int might match the return type of a gcc2
3233 builtin and then its argument prototype would still apply. */
3243 rm -f conftest.$ac_objext conftest$ac_exeext
3244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3245 (eval $ac_link) 2>conftest.er1
3247 grep -v '^ *+' conftest.er1 >conftest.err
3249 cat conftest.err >&5
3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251 (exit $ac_status); } &&
3252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); }; } &&
3258 { ac_try='test -s conftest$ac_exeext'
3259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263 (exit $ac_status); }; }; then
3264 ac_cv_lib_socket_socket=yes
3266 echo "$as_me: failed program was:" >&5
3267 sed 's/^/| /' conftest.$ac_ext >&5
3269 ac_cv_lib_socket_socket=no
3271 rm -f conftest.err conftest.$ac_objext \
3272 conftest$ac_exeext conftest.$ac_ext
3273 LIBS=$ac_check_lib_save_LIBS
3275 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3276 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3277 if test $ac_cv_lib_socket_socket = yes; then
3278 LIBS="-lsocket -lnsl $LIBS"
3288 ac_cpp='$CPP $CPPFLAGS'
3289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3292 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3293 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3294 # On Suns, sometimes $CPP names a directory.
3295 if test -n "$CPP" && test -d "$CPP"; then
3298 if test -z "$CPP"; then
3299 if test "${ac_cv_prog_CPP+set}" = set; then
3300 echo $ECHO_N "(cached) $ECHO_C" >&6
3302 # Double quotes because CPP needs to be expanded
3303 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3306 for ac_c_preproc_warn_flag in '' yes
3308 # Use a header file that comes with gcc, so configuring glibc
3309 # with a fresh cross-compiler works.
3310 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3311 # <limits.h> exists even on freestanding compilers.
3312 # On the NeXT, cc -E runs the code through the compiler's parser,
3313 # not just through cpp. "Syntax error" is here to catch this case.
3314 cat >conftest.$ac_ext <<_ACEOF
3317 cat confdefs.h >>conftest.$ac_ext
3318 cat >>conftest.$ac_ext <<_ACEOF
3319 /* end confdefs.h. */
3321 # include <limits.h>
3323 # include <assert.h>
3327 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3328 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3330 grep -v '^ *+' conftest.er1 >conftest.err
3332 cat conftest.err >&5
3333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334 (exit $ac_status); } >/dev/null; then
3335 if test -s conftest.err; then
3336 ac_cpp_err=$ac_c_preproc_warn_flag
3337 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3344 if test -z "$ac_cpp_err"; then
3347 echo "$as_me: failed program was:" >&5
3348 sed 's/^/| /' conftest.$ac_ext >&5
3350 # Broken: fails on valid input.
3353 rm -f conftest.err conftest.$ac_ext
3355 # OK, works on sane cases. Now check whether non-existent headers
3356 # can be detected and how.
3357 cat >conftest.$ac_ext <<_ACEOF
3360 cat confdefs.h >>conftest.$ac_ext
3361 cat >>conftest.$ac_ext <<_ACEOF
3362 /* end confdefs.h. */
3363 #include <ac_nonexistent.h>
3365 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3366 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3368 grep -v '^ *+' conftest.er1 >conftest.err
3370 cat conftest.err >&5
3371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); } >/dev/null; then
3373 if test -s conftest.err; then
3374 ac_cpp_err=$ac_c_preproc_warn_flag
3375 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3382 if test -z "$ac_cpp_err"; then
3383 # Broken: success on invalid input.
3386 echo "$as_me: failed program was:" >&5
3387 sed 's/^/| /' conftest.$ac_ext >&5
3389 # Passes both tests.
3393 rm -f conftest.err conftest.$ac_ext
3396 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3397 rm -f conftest.err conftest.$ac_ext
3398 if $ac_preproc_ok; then
3410 echo "$as_me:$LINENO: result: $CPP" >&5
3411 echo "${ECHO_T}$CPP" >&6
3413 for ac_c_preproc_warn_flag in '' yes
3415 # Use a header file that comes with gcc, so configuring glibc
3416 # with a fresh cross-compiler works.
3417 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3418 # <limits.h> exists even on freestanding compilers.
3419 # On the NeXT, cc -E runs the code through the compiler's parser,
3420 # not just through cpp. "Syntax error" is here to catch this case.
3421 cat >conftest.$ac_ext <<_ACEOF
3424 cat confdefs.h >>conftest.$ac_ext
3425 cat >>conftest.$ac_ext <<_ACEOF
3426 /* end confdefs.h. */
3428 # include <limits.h>
3430 # include <assert.h>
3434 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3435 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3437 grep -v '^ *+' conftest.er1 >conftest.err
3439 cat conftest.err >&5
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); } >/dev/null; then
3442 if test -s conftest.err; then
3443 ac_cpp_err=$ac_c_preproc_warn_flag
3444 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3451 if test -z "$ac_cpp_err"; then
3454 echo "$as_me: failed program was:" >&5
3455 sed 's/^/| /' conftest.$ac_ext >&5
3457 # Broken: fails on valid input.
3460 rm -f conftest.err conftest.$ac_ext
3462 # OK, works on sane cases. Now check whether non-existent headers
3463 # can be detected and how.
3464 cat >conftest.$ac_ext <<_ACEOF
3467 cat confdefs.h >>conftest.$ac_ext
3468 cat >>conftest.$ac_ext <<_ACEOF
3469 /* end confdefs.h. */
3470 #include <ac_nonexistent.h>
3472 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3473 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3475 grep -v '^ *+' conftest.er1 >conftest.err
3477 cat conftest.err >&5
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); } >/dev/null; then
3480 if test -s conftest.err; then
3481 ac_cpp_err=$ac_c_preproc_warn_flag
3482 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3489 if test -z "$ac_cpp_err"; then
3490 # Broken: success on invalid input.
3493 echo "$as_me: failed program was:" >&5
3494 sed 's/^/| /' conftest.$ac_ext >&5
3496 # Passes both tests.
3500 rm -f conftest.err conftest.$ac_ext
3503 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3504 rm -f conftest.err conftest.$ac_ext
3505 if $ac_preproc_ok; then
3508 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3509 See \`config.log' for more details." >&5
3510 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3511 See \`config.log' for more details." >&2;}
3512 { (exit 1); exit 1; }; }
3516 ac_cpp='$CPP $CPPFLAGS'
3517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3522 echo "$as_me:$LINENO: checking for egrep" >&5
3523 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3524 if test "${ac_cv_prog_egrep+set}" = set; then
3525 echo $ECHO_N "(cached) $ECHO_C" >&6
3527 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3528 then ac_cv_prog_egrep='grep -E'
3529 else ac_cv_prog_egrep='egrep'
3532 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3533 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3534 EGREP=$ac_cv_prog_egrep
3537 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3538 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3539 if test "${ac_cv_header_stdc+set}" = set; then
3540 echo $ECHO_N "(cached) $ECHO_C" >&6
3542 cat >conftest.$ac_ext <<_ACEOF
3545 cat confdefs.h >>conftest.$ac_ext
3546 cat >>conftest.$ac_ext <<_ACEOF
3547 /* end confdefs.h. */
3561 rm -f conftest.$ac_objext
3562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3563 (eval $ac_compile) 2>conftest.er1
3565 grep -v '^ *+' conftest.er1 >conftest.err
3567 cat conftest.err >&5
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); } &&
3570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); }; } &&
3576 { ac_try='test -s conftest.$ac_objext'
3577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); }; }; then
3582 ac_cv_header_stdc=yes
3584 echo "$as_me: failed program was:" >&5
3585 sed 's/^/| /' conftest.$ac_ext >&5
3587 ac_cv_header_stdc=no
3589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3591 if test $ac_cv_header_stdc = yes; then
3592 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3593 cat >conftest.$ac_ext <<_ACEOF
3596 cat confdefs.h >>conftest.$ac_ext
3597 cat >>conftest.$ac_ext <<_ACEOF
3598 /* end confdefs.h. */
3602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3603 $EGREP "memchr" >/dev/null 2>&1; then
3606 ac_cv_header_stdc=no
3612 if test $ac_cv_header_stdc = yes; then
3613 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3614 cat >conftest.$ac_ext <<_ACEOF
3617 cat confdefs.h >>conftest.$ac_ext
3618 cat >>conftest.$ac_ext <<_ACEOF
3619 /* end confdefs.h. */
3623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3624 $EGREP "free" >/dev/null 2>&1; then
3627 ac_cv_header_stdc=no
3633 if test $ac_cv_header_stdc = yes; then
3634 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3635 if test "$cross_compiling" = yes; then
3638 cat >conftest.$ac_ext <<_ACEOF
3641 cat confdefs.h >>conftest.$ac_ext
3642 cat >>conftest.$ac_ext <<_ACEOF
3643 /* end confdefs.h. */
3645 #if ((' ' & 0x0FF) == 0x020)
3646 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3647 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3649 # define ISLOWER(c) \
3650 (('a' <= (c) && (c) <= 'i') \
3651 || ('j' <= (c) && (c) <= 'r') \
3652 || ('s' <= (c) && (c) <= 'z'))
3653 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3656 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3661 for (i = 0; i < 256; i++)
3662 if (XOR (islower (i), ISLOWER (i))
3663 || toupper (i) != TOUPPER (i))
3668 rm -f conftest$ac_exeext
3669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3670 (eval $ac_link) 2>&5
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); }; }; then
3681 echo "$as_me: program exited with status $ac_status" >&5
3682 echo "$as_me: failed program was:" >&5
3683 sed 's/^/| /' conftest.$ac_ext >&5
3686 ac_cv_header_stdc=no
3688 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3692 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3693 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3694 if test $ac_cv_header_stdc = yes; then
3696 cat >>confdefs.h <<\_ACEOF
3697 #define STDC_HEADERS 1
3702 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3712 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3713 inttypes.h stdint.h unistd.h
3715 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3716 echo "$as_me:$LINENO: checking for $ac_header" >&5
3717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3718 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3719 echo $ECHO_N "(cached) $ECHO_C" >&6
3721 cat >conftest.$ac_ext <<_ACEOF
3724 cat confdefs.h >>conftest.$ac_ext
3725 cat >>conftest.$ac_ext <<_ACEOF
3726 /* end confdefs.h. */
3727 $ac_includes_default
3729 #include <$ac_header>
3731 rm -f conftest.$ac_objext
3732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3733 (eval $ac_compile) 2>conftest.er1
3735 grep -v '^ *+' conftest.er1 >conftest.err
3737 cat conftest.err >&5
3738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739 (exit $ac_status); } &&
3740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745 (exit $ac_status); }; } &&
3746 { ac_try='test -s conftest.$ac_objext'
3747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751 (exit $ac_status); }; }; then
3752 eval "$as_ac_Header=yes"
3754 echo "$as_me: failed program was:" >&5
3755 sed 's/^/| /' conftest.$ac_ext >&5
3757 eval "$as_ac_Header=no"
3759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3761 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3762 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3763 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3764 cat >>confdefs.h <<_ACEOF
3765 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3782 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
3784 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3786 echo "$as_me:$LINENO: checking for $ac_header" >&5
3787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3789 echo $ECHO_N "(cached) $ECHO_C" >&6
3791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3792 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3794 # Is the header compilable?
3795 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3796 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3797 cat >conftest.$ac_ext <<_ACEOF
3800 cat confdefs.h >>conftest.$ac_ext
3801 cat >>conftest.$ac_ext <<_ACEOF
3802 /* end confdefs.h. */
3803 $ac_includes_default
3804 #include <$ac_header>
3806 rm -f conftest.$ac_objext
3807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3808 (eval $ac_compile) 2>conftest.er1
3810 grep -v '^ *+' conftest.er1 >conftest.err
3812 cat conftest.err >&5
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); } &&
3815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); }; } &&
3821 { ac_try='test -s conftest.$ac_objext'
3822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826 (exit $ac_status); }; }; then
3827 ac_header_compiler=yes
3829 echo "$as_me: failed program was:" >&5
3830 sed 's/^/| /' conftest.$ac_ext >&5
3832 ac_header_compiler=no
3834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3835 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3836 echo "${ECHO_T}$ac_header_compiler" >&6
3838 # Is the header present?
3839 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3840 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3841 cat >conftest.$ac_ext <<_ACEOF
3844 cat confdefs.h >>conftest.$ac_ext
3845 cat >>conftest.$ac_ext <<_ACEOF
3846 /* end confdefs.h. */
3847 #include <$ac_header>
3849 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3850 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3852 grep -v '^ *+' conftest.er1 >conftest.err
3854 cat conftest.err >&5
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); } >/dev/null; then
3857 if test -s conftest.err; then
3858 ac_cpp_err=$ac_c_preproc_warn_flag
3859 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3866 if test -z "$ac_cpp_err"; then
3867 ac_header_preproc=yes
3869 echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3872 ac_header_preproc=no
3874 rm -f conftest.err conftest.$ac_ext
3875 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3876 echo "${ECHO_T}$ac_header_preproc" >&6
3878 # So? What about this header?
3879 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3881 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3882 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3884 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3885 ac_header_preproc=yes
3888 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3889 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3890 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3891 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3892 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3893 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3894 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3895 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3897 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3898 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3899 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3902 ## ------------------------------------------ ##
3903 ## Report this to the AC_PACKAGE_NAME lists. ##
3904 ## ------------------------------------------ ##
3907 sed "s/^/$as_me: WARNING: /" >&2
3910 echo "$as_me:$LINENO: checking for $ac_header" >&5
3911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3912 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3913 echo $ECHO_N "(cached) $ECHO_C" >&6
3915 eval "$as_ac_Header=\$ac_header_preproc"
3917 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3918 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3921 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3922 cat >>confdefs.h <<_ACEOF
3923 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3931 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3932 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3933 if test "${ac_cv_c_bigendian+set}" = set; then
3934 echo $ECHO_N "(cached) $ECHO_C" >&6
3936 # See if sys/param.h defines the BYTE_ORDER macro.
3937 cat >conftest.$ac_ext <<_ACEOF
3940 cat confdefs.h >>conftest.$ac_ext
3941 cat >>conftest.$ac_ext <<_ACEOF
3942 /* end confdefs.h. */
3943 #include <sys/types.h>
3944 #include <sys/param.h>
3949 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3957 rm -f conftest.$ac_objext
3958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3959 (eval $ac_compile) 2>conftest.er1
3961 grep -v '^ *+' conftest.er1 >conftest.err
3963 cat conftest.err >&5
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); } &&
3966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971 (exit $ac_status); }; } &&
3972 { ac_try='test -s conftest.$ac_objext'
3973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 (exit $ac_status); }; }; then
3978 # It does; now see whether it defined to BIG_ENDIAN or not.
3979 cat >conftest.$ac_ext <<_ACEOF
3982 cat confdefs.h >>conftest.$ac_ext
3983 cat >>conftest.$ac_ext <<_ACEOF
3984 /* end confdefs.h. */
3985 #include <sys/types.h>
3986 #include <sys/param.h>
3991 #if BYTE_ORDER != BIG_ENDIAN
3999 rm -f conftest.$ac_objext
4000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4001 (eval $ac_compile) 2>conftest.er1
4003 grep -v '^ *+' conftest.er1 >conftest.err
4005 cat conftest.err >&5
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); } &&
4008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); }; } &&
4014 { ac_try='test -s conftest.$ac_objext'
4015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); }; }; then
4020 ac_cv_c_bigendian=yes
4022 echo "$as_me: failed program was:" >&5
4023 sed 's/^/| /' conftest.$ac_ext >&5
4025 ac_cv_c_bigendian=no
4027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4029 echo "$as_me: failed program was:" >&5
4030 sed 's/^/| /' conftest.$ac_ext >&5
4032 # It does not; compile a test program.
4033 if test "$cross_compiling" = yes; then
4034 # try to guess the endianness by grepping values into an object file
4035 ac_cv_c_bigendian=unknown
4036 cat >conftest.$ac_ext <<_ACEOF
4039 cat confdefs.h >>conftest.$ac_ext
4040 cat >>conftest.$ac_ext <<_ACEOF
4041 /* end confdefs.h. */
4042 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4043 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4044 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4045 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4046 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4047 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4051 _ascii (); _ebcdic ();
4056 rm -f conftest.$ac_objext
4057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4058 (eval $ac_compile) 2>conftest.er1
4060 grep -v '^ *+' conftest.er1 >conftest.err
4062 cat conftest.err >&5
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); } &&
4065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); }; } &&
4071 { ac_try='test -s conftest.$ac_objext'
4072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); }; }; then
4077 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4078 ac_cv_c_bigendian=yes
4080 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4081 if test "$ac_cv_c_bigendian" = unknown; then
4082 ac_cv_c_bigendian=no
4084 # finding both strings is unlikely to happen, but who knows?
4085 ac_cv_c_bigendian=unknown
4089 echo "$as_me: failed program was:" >&5
4090 sed 's/^/| /' conftest.$ac_ext >&5
4093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4095 cat >conftest.$ac_ext <<_ACEOF
4098 cat confdefs.h >>conftest.$ac_ext
4099 cat >>conftest.$ac_ext <<_ACEOF
4100 /* end confdefs.h. */
4104 /* Are we little or big endian? From Harbison&Steele. */
4108 char c[sizeof (long)];
4111 exit (u.c[sizeof (long) - 1] == 1);
4114 rm -f conftest$ac_exeext
4115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4116 (eval $ac_link) 2>&5
4118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); }; }; then
4125 ac_cv_c_bigendian=no
4127 echo "$as_me: program exited with status $ac_status" >&5
4128 echo "$as_me: failed program was:" >&5
4129 sed 's/^/| /' conftest.$ac_ext >&5
4132 ac_cv_c_bigendian=yes
4134 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4139 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4140 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4141 case $ac_cv_c_bigendian in
4144 cat >>confdefs.h <<\_ACEOF
4145 #define WORDS_BIGENDIAN 1
4151 { { echo "$as_me:$LINENO: error: unknown endianness
4152 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4153 echo "$as_me: error: unknown endianness
4154 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4155 { (exit 1); exit 1; }; } ;;
4158 echo "$as_me:$LINENO: checking for size_t" >&5
4159 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4160 if test "${ac_cv_type_size_t+set}" = set; then
4161 echo $ECHO_N "(cached) $ECHO_C" >&6
4163 cat >conftest.$ac_ext <<_ACEOF
4166 cat confdefs.h >>conftest.$ac_ext
4167 cat >>conftest.$ac_ext <<_ACEOF
4168 /* end confdefs.h. */
4169 $ac_includes_default
4175 if (sizeof (size_t))
4181 rm -f conftest.$ac_objext
4182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4183 (eval $ac_compile) 2>conftest.er1
4185 grep -v '^ *+' conftest.er1 >conftest.err
4187 cat conftest.err >&5
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); } &&
4190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); }; } &&
4196 { ac_try='test -s conftest.$ac_objext'
4197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); }; }; then
4202 ac_cv_type_size_t=yes
4204 echo "$as_me: failed program was:" >&5
4205 sed 's/^/| /' conftest.$ac_ext >&5
4207 ac_cv_type_size_t=no
4209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4211 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4212 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4213 if test $ac_cv_type_size_t = yes; then
4217 cat >>confdefs.h <<_ACEOF
4218 #define size_t unsigned
4223 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4224 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4225 if test "${ac_cv_header_time+set}" = set; then
4226 echo $ECHO_N "(cached) $ECHO_C" >&6
4228 cat >conftest.$ac_ext <<_ACEOF
4231 cat confdefs.h >>conftest.$ac_ext
4232 cat >>conftest.$ac_ext <<_ACEOF
4233 /* end confdefs.h. */
4234 #include <sys/types.h>
4235 #include <sys/time.h>
4241 if ((struct tm *) 0)
4247 rm -f conftest.$ac_objext
4248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4249 (eval $ac_compile) 2>conftest.er1
4251 grep -v '^ *+' conftest.er1 >conftest.err
4253 cat conftest.err >&5
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); } &&
4256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); }; } &&
4262 { ac_try='test -s conftest.$ac_objext'
4263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); }; }; then
4268 ac_cv_header_time=yes
4270 echo "$as_me: failed program was:" >&5
4271 sed 's/^/| /' conftest.$ac_ext >&5
4273 ac_cv_header_time=no
4275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4277 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4278 echo "${ECHO_T}$ac_cv_header_time" >&6
4279 if test $ac_cv_header_time = yes; then
4281 cat >>confdefs.h <<\_ACEOF
4282 #define TIME_WITH_SYS_TIME 1
4287 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4288 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4289 if test "${ac_cv_struct_tm+set}" = set; then
4290 echo $ECHO_N "(cached) $ECHO_C" >&6
4292 cat >conftest.$ac_ext <<_ACEOF
4295 cat confdefs.h >>conftest.$ac_ext
4296 cat >>conftest.$ac_ext <<_ACEOF
4297 /* end confdefs.h. */
4298 #include <sys/types.h>
4304 struct tm *tp; tp->tm_sec;
4309 rm -f conftest.$ac_objext
4310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4311 (eval $ac_compile) 2>conftest.er1
4313 grep -v '^ *+' conftest.er1 >conftest.err
4315 cat conftest.err >&5
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); } &&
4318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); }; } &&
4324 { ac_try='test -s conftest.$ac_objext'
4325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329 (exit $ac_status); }; }; then
4330 ac_cv_struct_tm=time.h
4332 echo "$as_me: failed program was:" >&5
4333 sed 's/^/| /' conftest.$ac_ext >&5
4335 ac_cv_struct_tm=sys/time.h
4337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4339 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4340 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4341 if test $ac_cv_struct_tm = sys/time.h; then
4343 cat >>confdefs.h <<\_ACEOF
4344 #define TM_IN_SYS_TIME 1
4349 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
4350 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
4351 if test "${ac_cv_type_uid_t+set}" = set; then
4352 echo $ECHO_N "(cached) $ECHO_C" >&6
4354 cat >conftest.$ac_ext <<_ACEOF
4357 cat confdefs.h >>conftest.$ac_ext
4358 cat >>conftest.$ac_ext <<_ACEOF
4359 /* end confdefs.h. */
4360 #include <sys/types.h>
4363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4364 $EGREP "uid_t" >/dev/null 2>&1; then
4365 ac_cv_type_uid_t=yes
4372 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
4373 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
4374 if test $ac_cv_type_uid_t = no; then
4376 cat >>confdefs.h <<\_ACEOF
4381 cat >>confdefs.h <<\_ACEOF
4387 echo "$as_me:$LINENO: checking for short" >&5
4388 echo $ECHO_N "checking for short... $ECHO_C" >&6
4389 if test "${ac_cv_type_short+set}" = set; then
4390 echo $ECHO_N "(cached) $ECHO_C" >&6
4392 cat >conftest.$ac_ext <<_ACEOF
4395 cat confdefs.h >>conftest.$ac_ext
4396 cat >>conftest.$ac_ext <<_ACEOF
4397 /* end confdefs.h. */
4398 $ac_includes_default
4410 rm -f conftest.$ac_objext
4411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4412 (eval $ac_compile) 2>conftest.er1
4414 grep -v '^ *+' conftest.er1 >conftest.err
4416 cat conftest.err >&5
4417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418 (exit $ac_status); } &&
4419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424 (exit $ac_status); }; } &&
4425 { ac_try='test -s conftest.$ac_objext'
4426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); }; }; then
4431 ac_cv_type_short=yes
4433 echo "$as_me: failed program was:" >&5
4434 sed 's/^/| /' conftest.$ac_ext >&5
4438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4440 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4441 echo "${ECHO_T}$ac_cv_type_short" >&6
4443 echo "$as_me:$LINENO: checking size of short" >&5
4444 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4445 if test "${ac_cv_sizeof_short+set}" = set; then
4446 echo $ECHO_N "(cached) $ECHO_C" >&6
4448 if test "$ac_cv_type_short" = yes; then
4449 # The cast to unsigned long works around a bug in the HP C Compiler
4450 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4451 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4452 # This bug is HP SR number 8606223364.
4453 if test "$cross_compiling" = yes; then
4454 # Depending upon the size, compute the lo and hi bounds.
4455 cat >conftest.$ac_ext <<_ACEOF
4458 cat confdefs.h >>conftest.$ac_ext
4459 cat >>conftest.$ac_ext <<_ACEOF
4460 /* end confdefs.h. */
4461 $ac_includes_default
4465 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4472 rm -f conftest.$ac_objext
4473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4474 (eval $ac_compile) 2>conftest.er1
4476 grep -v '^ *+' conftest.er1 >conftest.err
4478 cat conftest.err >&5
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); } &&
4481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486 (exit $ac_status); }; } &&
4487 { ac_try='test -s conftest.$ac_objext'
4488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); }; }; then
4495 cat >conftest.$ac_ext <<_ACEOF
4498 cat confdefs.h >>conftest.$ac_ext
4499 cat >>conftest.$ac_ext <<_ACEOF
4500 /* end confdefs.h. */
4501 $ac_includes_default
4505 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4512 rm -f conftest.$ac_objext
4513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4514 (eval $ac_compile) 2>conftest.er1
4516 grep -v '^ *+' conftest.er1 >conftest.err
4518 cat conftest.err >&5
4519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520 (exit $ac_status); } &&
4521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526 (exit $ac_status); }; } &&
4527 { ac_try='test -s conftest.$ac_objext'
4528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); }; }; then
4533 ac_hi=$ac_mid; break
4535 echo "$as_me: failed program was:" >&5
4536 sed 's/^/| /' conftest.$ac_ext >&5
4538 ac_lo=`expr $ac_mid + 1`
4539 if test $ac_lo -le $ac_mid; then
4543 ac_mid=`expr 2 '*' $ac_mid + 1`
4545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4548 echo "$as_me: failed program was:" >&5
4549 sed 's/^/| /' conftest.$ac_ext >&5
4551 cat >conftest.$ac_ext <<_ACEOF
4554 cat confdefs.h >>conftest.$ac_ext
4555 cat >>conftest.$ac_ext <<_ACEOF
4556 /* end confdefs.h. */
4557 $ac_includes_default
4561 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4568 rm -f conftest.$ac_objext
4569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4570 (eval $ac_compile) 2>conftest.er1
4572 grep -v '^ *+' conftest.er1 >conftest.err
4574 cat conftest.err >&5
4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576 (exit $ac_status); } &&
4577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582 (exit $ac_status); }; } &&
4583 { ac_try='test -s conftest.$ac_objext'
4584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588 (exit $ac_status); }; }; then
4591 cat >conftest.$ac_ext <<_ACEOF
4594 cat confdefs.h >>conftest.$ac_ext
4595 cat >>conftest.$ac_ext <<_ACEOF
4596 /* end confdefs.h. */
4597 $ac_includes_default
4601 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4608 rm -f conftest.$ac_objext
4609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4610 (eval $ac_compile) 2>conftest.er1
4612 grep -v '^ *+' conftest.er1 >conftest.err
4614 cat conftest.err >&5
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); } &&
4617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 (exit $ac_status); }; } &&
4623 { ac_try='test -s conftest.$ac_objext'
4624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628 (exit $ac_status); }; }; then
4629 ac_lo=$ac_mid; break
4631 echo "$as_me: failed program was:" >&5
4632 sed 's/^/| /' conftest.$ac_ext >&5
4634 ac_hi=`expr '(' $ac_mid ')' - 1`
4635 if test $ac_mid -le $ac_hi; then
4639 ac_mid=`expr 2 '*' $ac_mid`
4641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4644 echo "$as_me: failed program was:" >&5
4645 sed 's/^/| /' conftest.$ac_ext >&5
4649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4652 # Binary search between lo and hi bounds.
4653 while test "x$ac_lo" != "x$ac_hi"; do
4654 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4655 cat >conftest.$ac_ext <<_ACEOF
4658 cat confdefs.h >>conftest.$ac_ext
4659 cat >>conftest.$ac_ext <<_ACEOF
4660 /* end confdefs.h. */
4661 $ac_includes_default
4665 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4672 rm -f conftest.$ac_objext
4673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4674 (eval $ac_compile) 2>conftest.er1
4676 grep -v '^ *+' conftest.er1 >conftest.err
4678 cat conftest.err >&5
4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680 (exit $ac_status); } &&
4681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686 (exit $ac_status); }; } &&
4687 { ac_try='test -s conftest.$ac_objext'
4688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692 (exit $ac_status); }; }; then
4695 echo "$as_me: failed program was:" >&5
4696 sed 's/^/| /' conftest.$ac_ext >&5
4698 ac_lo=`expr '(' $ac_mid ')' + 1`
4700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4703 ?*) ac_cv_sizeof_short=$ac_lo;;
4704 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4705 See \`config.log' for more details." >&5
4706 echo "$as_me: error: cannot compute sizeof (short), 77
4707 See \`config.log' for more details." >&2;}
4708 { (exit 1); exit 1; }; } ;;
4711 if test "$cross_compiling" = yes; then
4712 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4713 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4714 { (exit 1); exit 1; }; }
4716 cat >conftest.$ac_ext <<_ACEOF
4719 cat confdefs.h >>conftest.$ac_ext
4720 cat >>conftest.$ac_ext <<_ACEOF
4721 /* end confdefs.h. */
4722 $ac_includes_default
4723 long longval () { return (long) (sizeof (short)); }
4724 unsigned long ulongval () { return (long) (sizeof (short)); }
4731 FILE *f = fopen ("conftest.val", "w");
4734 if (((long) (sizeof (short))) < 0)
4736 long i = longval ();
4737 if (i != ((long) (sizeof (short))))
4739 fprintf (f, "%ld\n", i);
4743 unsigned long i = ulongval ();
4744 if (i != ((long) (sizeof (short))))
4746 fprintf (f, "%lu\n", i);
4748 exit (ferror (f) || fclose (f) != 0);
4754 rm -f conftest$ac_exeext
4755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4756 (eval $ac_link) 2>&5
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764 (exit $ac_status); }; }; then
4765 ac_cv_sizeof_short=`cat conftest.val`
4767 echo "$as_me: program exited with status $ac_status" >&5
4768 echo "$as_me: failed program was:" >&5
4769 sed 's/^/| /' conftest.$ac_ext >&5
4772 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4773 See \`config.log' for more details." >&5
4774 echo "$as_me: error: cannot compute sizeof (short), 77
4775 See \`config.log' for more details." >&2;}
4776 { (exit 1); exit 1; }; }
4778 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4783 ac_cv_sizeof_short=0
4786 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4787 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4788 cat >>confdefs.h <<_ACEOF
4789 #define SIZEOF_SHORT $ac_cv_sizeof_short
4793 echo "$as_me:$LINENO: checking for int" >&5
4794 echo $ECHO_N "checking for int... $ECHO_C" >&6
4795 if test "${ac_cv_type_int+set}" = set; then
4796 echo $ECHO_N "(cached) $ECHO_C" >&6
4798 cat >conftest.$ac_ext <<_ACEOF
4801 cat confdefs.h >>conftest.$ac_ext
4802 cat >>conftest.$ac_ext <<_ACEOF
4803 /* end confdefs.h. */
4804 $ac_includes_default
4816 rm -f conftest.$ac_objext
4817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4818 (eval $ac_compile) 2>conftest.er1
4820 grep -v '^ *+' conftest.er1 >conftest.err
4822 cat conftest.err >&5
4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); } &&
4825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); }; } &&
4831 { ac_try='test -s conftest.$ac_objext'
4832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); }; }; then
4839 echo "$as_me: failed program was:" >&5
4840 sed 's/^/| /' conftest.$ac_ext >&5
4844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4846 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4847 echo "${ECHO_T}$ac_cv_type_int" >&6
4849 echo "$as_me:$LINENO: checking size of int" >&5
4850 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4851 if test "${ac_cv_sizeof_int+set}" = set; then
4852 echo $ECHO_N "(cached) $ECHO_C" >&6
4854 if test "$ac_cv_type_int" = yes; then
4855 # The cast to unsigned long works around a bug in the HP C Compiler
4856 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4857 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4858 # This bug is HP SR number 8606223364.
4859 if test "$cross_compiling" = yes; then
4860 # Depending upon the size, compute the lo and hi bounds.
4861 cat >conftest.$ac_ext <<_ACEOF
4864 cat confdefs.h >>conftest.$ac_ext
4865 cat >>conftest.$ac_ext <<_ACEOF
4866 /* end confdefs.h. */
4867 $ac_includes_default
4871 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4878 rm -f conftest.$ac_objext
4879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4880 (eval $ac_compile) 2>conftest.er1
4882 grep -v '^ *+' conftest.er1 >conftest.err
4884 cat conftest.err >&5
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); } &&
4887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); }; } &&
4893 { ac_try='test -s conftest.$ac_objext'
4894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); }; }; then
4901 cat >conftest.$ac_ext <<_ACEOF
4904 cat confdefs.h >>conftest.$ac_ext
4905 cat >>conftest.$ac_ext <<_ACEOF
4906 /* end confdefs.h. */
4907 $ac_includes_default
4911 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4918 rm -f conftest.$ac_objext
4919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4920 (eval $ac_compile) 2>conftest.er1
4922 grep -v '^ *+' conftest.er1 >conftest.err
4924 cat conftest.err >&5
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); } &&
4927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932 (exit $ac_status); }; } &&
4933 { ac_try='test -s conftest.$ac_objext'
4934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 (exit $ac_status); }; }; then
4939 ac_hi=$ac_mid; break
4941 echo "$as_me: failed program was:" >&5
4942 sed 's/^/| /' conftest.$ac_ext >&5
4944 ac_lo=`expr $ac_mid + 1`
4945 if test $ac_lo -le $ac_mid; then
4949 ac_mid=`expr 2 '*' $ac_mid + 1`
4951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4954 echo "$as_me: failed program was:" >&5
4955 sed 's/^/| /' conftest.$ac_ext >&5
4957 cat >conftest.$ac_ext <<_ACEOF
4960 cat confdefs.h >>conftest.$ac_ext
4961 cat >>conftest.$ac_ext <<_ACEOF
4962 /* end confdefs.h. */
4963 $ac_includes_default
4967 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4974 rm -f conftest.$ac_objext
4975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4976 (eval $ac_compile) 2>conftest.er1
4978 grep -v '^ *+' conftest.er1 >conftest.err
4980 cat conftest.err >&5
4981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982 (exit $ac_status); } &&
4983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988 (exit $ac_status); }; } &&
4989 { ac_try='test -s conftest.$ac_objext'
4990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); }; }; then
4997 cat >conftest.$ac_ext <<_ACEOF
5000 cat confdefs.h >>conftest.$ac_ext
5001 cat >>conftest.$ac_ext <<_ACEOF
5002 /* end confdefs.h. */
5003 $ac_includes_default
5007 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5014 rm -f conftest.$ac_objext
5015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5016 (eval $ac_compile) 2>conftest.er1
5018 grep -v '^ *+' conftest.er1 >conftest.err
5020 cat conftest.err >&5
5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022 (exit $ac_status); } &&
5023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); }; } &&
5029 { ac_try='test -s conftest.$ac_objext'
5030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034 (exit $ac_status); }; }; then
5035 ac_lo=$ac_mid; break
5037 echo "$as_me: failed program was:" >&5
5038 sed 's/^/| /' conftest.$ac_ext >&5
5040 ac_hi=`expr '(' $ac_mid ')' - 1`
5041 if test $ac_mid -le $ac_hi; then
5045 ac_mid=`expr 2 '*' $ac_mid`
5047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5050 echo "$as_me: failed program was:" >&5
5051 sed 's/^/| /' conftest.$ac_ext >&5
5055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5058 # Binary search between lo and hi bounds.
5059 while test "x$ac_lo" != "x$ac_hi"; do
5060 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5061 cat >conftest.$ac_ext <<_ACEOF
5064 cat confdefs.h >>conftest.$ac_ext
5065 cat >>conftest.$ac_ext <<_ACEOF
5066 /* end confdefs.h. */
5067 $ac_includes_default
5071 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5078 rm -f conftest.$ac_objext
5079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5080 (eval $ac_compile) 2>conftest.er1
5082 grep -v '^ *+' conftest.er1 >conftest.err
5084 cat conftest.err >&5
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); } &&
5087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092 (exit $ac_status); }; } &&
5093 { ac_try='test -s conftest.$ac_objext'
5094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); }; }; then
5101 echo "$as_me: failed program was:" >&5
5102 sed 's/^/| /' conftest.$ac_ext >&5
5104 ac_lo=`expr '(' $ac_mid ')' + 1`
5106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5109 ?*) ac_cv_sizeof_int=$ac_lo;;
5110 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5111 See \`config.log' for more details." >&5
5112 echo "$as_me: error: cannot compute sizeof (int), 77
5113 See \`config.log' for more details." >&2;}
5114 { (exit 1); exit 1; }; } ;;
5117 if test "$cross_compiling" = yes; then
5118 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5119 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5120 { (exit 1); exit 1; }; }
5122 cat >conftest.$ac_ext <<_ACEOF
5125 cat confdefs.h >>conftest.$ac_ext
5126 cat >>conftest.$ac_ext <<_ACEOF
5127 /* end confdefs.h. */
5128 $ac_includes_default
5129 long longval () { return (long) (sizeof (int)); }
5130 unsigned long ulongval () { return (long) (sizeof (int)); }
5137 FILE *f = fopen ("conftest.val", "w");
5140 if (((long) (sizeof (int))) < 0)
5142 long i = longval ();
5143 if (i != ((long) (sizeof (int))))
5145 fprintf (f, "%ld\n", i);
5149 unsigned long i = ulongval ();
5150 if (i != ((long) (sizeof (int))))
5152 fprintf (f, "%lu\n", i);
5154 exit (ferror (f) || fclose (f) != 0);
5160 rm -f conftest$ac_exeext
5161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5162 (eval $ac_link) 2>&5
5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170 (exit $ac_status); }; }; then
5171 ac_cv_sizeof_int=`cat conftest.val`
5173 echo "$as_me: program exited with status $ac_status" >&5
5174 echo "$as_me: failed program was:" >&5
5175 sed 's/^/| /' conftest.$ac_ext >&5
5178 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5179 See \`config.log' for more details." >&5
5180 echo "$as_me: error: cannot compute sizeof (int), 77
5181 See \`config.log' for more details." >&2;}
5182 { (exit 1); exit 1; }; }
5184 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5192 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5193 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5194 cat >>confdefs.h <<_ACEOF
5195 #define SIZEOF_INT $ac_cv_sizeof_int
5199 echo "$as_me:$LINENO: checking for long" >&5
5200 echo $ECHO_N "checking for long... $ECHO_C" >&6
5201 if test "${ac_cv_type_long+set}" = set; then
5202 echo $ECHO_N "(cached) $ECHO_C" >&6
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
5222 rm -f conftest.$ac_objext
5223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5224 (eval $ac_compile) 2>conftest.er1
5226 grep -v '^ *+' conftest.er1 >conftest.err
5228 cat conftest.err >&5
5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); } &&
5231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); }; } &&
5237 { ac_try='test -s conftest.$ac_objext'
5238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242 (exit $ac_status); }; }; then
5245 echo "$as_me: failed program was:" >&5
5246 sed 's/^/| /' conftest.$ac_ext >&5
5250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5252 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5253 echo "${ECHO_T}$ac_cv_type_long" >&6
5255 echo "$as_me:$LINENO: checking size of long" >&5
5256 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5257 if test "${ac_cv_sizeof_long+set}" = set; then
5258 echo $ECHO_N "(cached) $ECHO_C" >&6
5260 if test "$ac_cv_type_long" = yes; then
5261 # The cast to unsigned long works around a bug in the HP C Compiler
5262 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5263 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5264 # This bug is HP SR number 8606223364.
5265 if test "$cross_compiling" = yes; then
5266 # Depending upon the size, compute the lo and hi bounds.
5267 cat >conftest.$ac_ext <<_ACEOF
5270 cat confdefs.h >>conftest.$ac_ext
5271 cat >>conftest.$ac_ext <<_ACEOF
5272 /* end confdefs.h. */
5273 $ac_includes_default
5277 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5284 rm -f conftest.$ac_objext
5285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5286 (eval $ac_compile) 2>conftest.er1
5288 grep -v '^ *+' conftest.er1 >conftest.err
5290 cat conftest.err >&5
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); } &&
5293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); }; } &&
5299 { ac_try='test -s conftest.$ac_objext'
5300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); }; }; then
5307 cat >conftest.$ac_ext <<_ACEOF
5310 cat confdefs.h >>conftest.$ac_ext
5311 cat >>conftest.$ac_ext <<_ACEOF
5312 /* end confdefs.h. */
5313 $ac_includes_default
5317 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5324 rm -f conftest.$ac_objext
5325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5326 (eval $ac_compile) 2>conftest.er1
5328 grep -v '^ *+' conftest.er1 >conftest.err
5330 cat conftest.err >&5
5331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332 (exit $ac_status); } &&
5333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338 (exit $ac_status); }; } &&
5339 { ac_try='test -s conftest.$ac_objext'
5340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344 (exit $ac_status); }; }; then
5345 ac_hi=$ac_mid; break
5347 echo "$as_me: failed program was:" >&5
5348 sed 's/^/| /' conftest.$ac_ext >&5
5350 ac_lo=`expr $ac_mid + 1`
5351 if test $ac_lo -le $ac_mid; then
5355 ac_mid=`expr 2 '*' $ac_mid + 1`
5357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5360 echo "$as_me: failed program was:" >&5
5361 sed 's/^/| /' conftest.$ac_ext >&5
5363 cat >conftest.$ac_ext <<_ACEOF
5366 cat confdefs.h >>conftest.$ac_ext
5367 cat >>conftest.$ac_ext <<_ACEOF
5368 /* end confdefs.h. */
5369 $ac_includes_default
5373 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5380 rm -f conftest.$ac_objext
5381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5382 (eval $ac_compile) 2>conftest.er1
5384 grep -v '^ *+' conftest.er1 >conftest.err
5386 cat conftest.err >&5
5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388 (exit $ac_status); } &&
5389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394 (exit $ac_status); }; } &&
5395 { ac_try='test -s conftest.$ac_objext'
5396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400 (exit $ac_status); }; }; then
5403 cat >conftest.$ac_ext <<_ACEOF
5406 cat confdefs.h >>conftest.$ac_ext
5407 cat >>conftest.$ac_ext <<_ACEOF
5408 /* end confdefs.h. */
5409 $ac_includes_default
5413 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5420 rm -f conftest.$ac_objext
5421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5422 (eval $ac_compile) 2>conftest.er1
5424 grep -v '^ *+' conftest.er1 >conftest.err
5426 cat conftest.err >&5
5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428 (exit $ac_status); } &&
5429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434 (exit $ac_status); }; } &&
5435 { ac_try='test -s conftest.$ac_objext'
5436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440 (exit $ac_status); }; }; then
5441 ac_lo=$ac_mid; break
5443 echo "$as_me: failed program was:" >&5
5444 sed 's/^/| /' conftest.$ac_ext >&5
5446 ac_hi=`expr '(' $ac_mid ')' - 1`
5447 if test $ac_mid -le $ac_hi; then
5451 ac_mid=`expr 2 '*' $ac_mid`
5453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5456 echo "$as_me: failed program was:" >&5
5457 sed 's/^/| /' conftest.$ac_ext >&5
5461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5464 # Binary search between lo and hi bounds.
5465 while test "x$ac_lo" != "x$ac_hi"; do
5466 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5467 cat >conftest.$ac_ext <<_ACEOF
5470 cat confdefs.h >>conftest.$ac_ext
5471 cat >>conftest.$ac_ext <<_ACEOF
5472 /* end confdefs.h. */
5473 $ac_includes_default
5477 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5484 rm -f conftest.$ac_objext
5485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5486 (eval $ac_compile) 2>conftest.er1
5488 grep -v '^ *+' conftest.er1 >conftest.err
5490 cat conftest.err >&5
5491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492 (exit $ac_status); } &&
5493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498 (exit $ac_status); }; } &&
5499 { ac_try='test -s conftest.$ac_objext'
5500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); }; }; then
5507 echo "$as_me: failed program was:" >&5
5508 sed 's/^/| /' conftest.$ac_ext >&5
5510 ac_lo=`expr '(' $ac_mid ')' + 1`
5512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5515 ?*) ac_cv_sizeof_long=$ac_lo;;
5516 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5517 See \`config.log' for more details." >&5
5518 echo "$as_me: error: cannot compute sizeof (long), 77
5519 See \`config.log' for more details." >&2;}
5520 { (exit 1); exit 1; }; } ;;
5523 if test "$cross_compiling" = yes; then
5524 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5525 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5526 { (exit 1); exit 1; }; }
5528 cat >conftest.$ac_ext <<_ACEOF
5531 cat confdefs.h >>conftest.$ac_ext
5532 cat >>conftest.$ac_ext <<_ACEOF
5533 /* end confdefs.h. */
5534 $ac_includes_default
5535 long longval () { return (long) (sizeof (long)); }
5536 unsigned long ulongval () { return (long) (sizeof (long)); }
5543 FILE *f = fopen ("conftest.val", "w");
5546 if (((long) (sizeof (long))) < 0)
5548 long i = longval ();
5549 if (i != ((long) (sizeof (long))))
5551 fprintf (f, "%ld\n", i);
5555 unsigned long i = ulongval ();
5556 if (i != ((long) (sizeof (long))))
5558 fprintf (f, "%lu\n", i);
5560 exit (ferror (f) || fclose (f) != 0);
5566 rm -f conftest$ac_exeext
5567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5568 (eval $ac_link) 2>&5
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576 (exit $ac_status); }; }; then
5577 ac_cv_sizeof_long=`cat conftest.val`
5579 echo "$as_me: program exited with status $ac_status" >&5
5580 echo "$as_me: failed program was:" >&5
5581 sed 's/^/| /' conftest.$ac_ext >&5
5584 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5585 See \`config.log' for more details." >&5
5586 echo "$as_me: error: cannot compute sizeof (long), 77
5587 See \`config.log' for more details." >&2;}
5588 { (exit 1); exit 1; }; }
5590 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5598 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5599 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5600 cat >>confdefs.h <<_ACEOF
5601 #define SIZEOF_LONG $ac_cv_sizeof_long
5605 echo "$as_me:$LINENO: checking for void *" >&5
5606 echo $ECHO_N "checking for void *... $ECHO_C" >&6
5607 if test "${ac_cv_type_void_p+set}" = set; then
5608 echo $ECHO_N "(cached) $ECHO_C" >&6
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
5622 if (sizeof (void *))
5628 rm -f conftest.$ac_objext
5629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5630 (eval $ac_compile) 2>conftest.er1
5632 grep -v '^ *+' conftest.er1 >conftest.err
5634 cat conftest.err >&5
5635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636 (exit $ac_status); } &&
5637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 (exit $ac_status); }; } &&
5643 { ac_try='test -s conftest.$ac_objext'
5644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648 (exit $ac_status); }; }; then
5649 ac_cv_type_void_p=yes
5651 echo "$as_me: failed program was:" >&5
5652 sed 's/^/| /' conftest.$ac_ext >&5
5654 ac_cv_type_void_p=no
5656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5658 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
5659 echo "${ECHO_T}$ac_cv_type_void_p" >&6
5661 echo "$as_me:$LINENO: checking size of void *" >&5
5662 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
5663 if test "${ac_cv_sizeof_void_p+set}" = set; then
5664 echo $ECHO_N "(cached) $ECHO_C" >&6
5666 if test "$ac_cv_type_void_p" = yes; then
5667 # The cast to unsigned long works around a bug in the HP C Compiler
5668 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5669 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5670 # This bug is HP SR number 8606223364.
5671 if test "$cross_compiling" = yes; then
5672 # Depending upon the size, compute the lo and hi bounds.
5673 cat >conftest.$ac_ext <<_ACEOF
5676 cat confdefs.h >>conftest.$ac_ext
5677 cat >>conftest.$ac_ext <<_ACEOF
5678 /* end confdefs.h. */
5679 $ac_includes_default
5683 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
5690 rm -f conftest.$ac_objext
5691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5692 (eval $ac_compile) 2>conftest.er1
5694 grep -v '^ *+' conftest.er1 >conftest.err
5696 cat conftest.err >&5
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); } &&
5699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704 (exit $ac_status); }; } &&
5705 { ac_try='test -s conftest.$ac_objext'
5706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 (exit $ac_status); }; }; then
5713 cat >conftest.$ac_ext <<_ACEOF
5716 cat confdefs.h >>conftest.$ac_ext
5717 cat >>conftest.$ac_ext <<_ACEOF
5718 /* end confdefs.h. */
5719 $ac_includes_default
5723 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
5730 rm -f conftest.$ac_objext
5731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5732 (eval $ac_compile) 2>conftest.er1
5734 grep -v '^ *+' conftest.er1 >conftest.err
5736 cat conftest.err >&5
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); } &&
5739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); }; } &&
5745 { ac_try='test -s conftest.$ac_objext'
5746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); }; }; then
5751 ac_hi=$ac_mid; break
5753 echo "$as_me: failed program was:" >&5
5754 sed 's/^/| /' conftest.$ac_ext >&5
5756 ac_lo=`expr $ac_mid + 1`
5757 if test $ac_lo -le $ac_mid; then
5761 ac_mid=`expr 2 '*' $ac_mid + 1`
5763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5766 echo "$as_me: failed program was:" >&5
5767 sed 's/^/| /' conftest.$ac_ext >&5
5769 cat >conftest.$ac_ext <<_ACEOF
5772 cat confdefs.h >>conftest.$ac_ext
5773 cat >>conftest.$ac_ext <<_ACEOF
5774 /* end confdefs.h. */
5775 $ac_includes_default
5779 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
5786 rm -f conftest.$ac_objext
5787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5788 (eval $ac_compile) 2>conftest.er1
5790 grep -v '^ *+' conftest.er1 >conftest.err
5792 cat conftest.err >&5
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); } &&
5795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); }; } &&
5801 { ac_try='test -s conftest.$ac_objext'
5802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806 (exit $ac_status); }; }; then
5809 cat >conftest.$ac_ext <<_ACEOF
5812 cat confdefs.h >>conftest.$ac_ext
5813 cat >>conftest.$ac_ext <<_ACEOF
5814 /* end confdefs.h. */
5815 $ac_includes_default
5819 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
5826 rm -f conftest.$ac_objext
5827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5828 (eval $ac_compile) 2>conftest.er1
5830 grep -v '^ *+' conftest.er1 >conftest.err
5832 cat conftest.err >&5
5833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834 (exit $ac_status); } &&
5835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); }; } &&
5841 { ac_try='test -s conftest.$ac_objext'
5842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); }; }; then
5847 ac_lo=$ac_mid; break
5849 echo "$as_me: failed program was:" >&5
5850 sed 's/^/| /' conftest.$ac_ext >&5
5852 ac_hi=`expr '(' $ac_mid ')' - 1`
5853 if test $ac_mid -le $ac_hi; then
5857 ac_mid=`expr 2 '*' $ac_mid`
5859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5862 echo "$as_me: failed program was:" >&5
5863 sed 's/^/| /' conftest.$ac_ext >&5
5867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5870 # Binary search between lo and hi bounds.
5871 while test "x$ac_lo" != "x$ac_hi"; do
5872 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5873 cat >conftest.$ac_ext <<_ACEOF
5876 cat confdefs.h >>conftest.$ac_ext
5877 cat >>conftest.$ac_ext <<_ACEOF
5878 /* end confdefs.h. */
5879 $ac_includes_default
5883 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
5890 rm -f conftest.$ac_objext
5891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5892 (eval $ac_compile) 2>conftest.er1
5894 grep -v '^ *+' conftest.er1 >conftest.err
5896 cat conftest.err >&5
5897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898 (exit $ac_status); } &&
5899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); }; } &&
5905 { ac_try='test -s conftest.$ac_objext'
5906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910 (exit $ac_status); }; }; then
5913 echo "$as_me: failed program was:" >&5
5914 sed 's/^/| /' conftest.$ac_ext >&5
5916 ac_lo=`expr '(' $ac_mid ')' + 1`
5918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5921 ?*) ac_cv_sizeof_void_p=$ac_lo;;
5922 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
5923 See \`config.log' for more details." >&5
5924 echo "$as_me: error: cannot compute sizeof (void *), 77
5925 See \`config.log' for more details." >&2;}
5926 { (exit 1); exit 1; }; } ;;
5929 if test "$cross_compiling" = yes; then
5930 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5931 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5932 { (exit 1); exit 1; }; }
5934 cat >conftest.$ac_ext <<_ACEOF
5937 cat confdefs.h >>conftest.$ac_ext
5938 cat >>conftest.$ac_ext <<_ACEOF
5939 /* end confdefs.h. */
5940 $ac_includes_default
5941 long longval () { return (long) (sizeof (void *)); }
5942 unsigned long ulongval () { return (long) (sizeof (void *)); }
5949 FILE *f = fopen ("conftest.val", "w");
5952 if (((long) (sizeof (void *))) < 0)
5954 long i = longval ();
5955 if (i != ((long) (sizeof (void *))))
5957 fprintf (f, "%ld\n", i);
5961 unsigned long i = ulongval ();
5962 if (i != ((long) (sizeof (void *))))
5964 fprintf (f, "%lu\n", i);
5966 exit (ferror (f) || fclose (f) != 0);
5972 rm -f conftest$ac_exeext
5973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5974 (eval $ac_link) 2>&5
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); }; }; then
5983 ac_cv_sizeof_void_p=`cat conftest.val`
5985 echo "$as_me: program exited with status $ac_status" >&5
5986 echo "$as_me: failed program was:" >&5
5987 sed 's/^/| /' conftest.$ac_ext >&5
5990 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
5991 See \`config.log' for more details." >&5
5992 echo "$as_me: error: cannot compute sizeof (void *), 77
5993 See \`config.log' for more details." >&2;}
5994 { (exit 1); exit 1; }; }
5996 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6001 ac_cv_sizeof_void_p=0
6004 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
6005 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
6006 cat >>confdefs.h <<_ACEOF
6007 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6011 echo "$as_me:$LINENO: checking for int64_t" >&5
6012 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
6013 if test "${ac_cv_type_int64_t+set}" = set; then
6014 echo $ECHO_N "(cached) $ECHO_C" >&6
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
6028 if (sizeof (int64_t))
6034 rm -f conftest.$ac_objext
6035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6036 (eval $ac_compile) 2>conftest.er1
6038 grep -v '^ *+' conftest.er1 >conftest.err
6040 cat conftest.err >&5
6041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042 (exit $ac_status); } &&
6043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); }; } &&
6049 { ac_try='test -s conftest.$ac_objext'
6050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054 (exit $ac_status); }; }; then
6055 ac_cv_type_int64_t=yes
6057 echo "$as_me: failed program was:" >&5
6058 sed 's/^/| /' conftest.$ac_ext >&5
6060 ac_cv_type_int64_t=no
6062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6064 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
6065 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
6067 echo "$as_me:$LINENO: checking size of int64_t" >&5
6068 echo $ECHO_N "checking size of int64_t... $ECHO_C" >&6
6069 if test "${ac_cv_sizeof_int64_t+set}" = set; then
6070 echo $ECHO_N "(cached) $ECHO_C" >&6
6072 if test "$ac_cv_type_int64_t" = yes; then
6073 # The cast to unsigned long works around a bug in the HP C Compiler
6074 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6075 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6076 # This bug is HP SR number 8606223364.
6077 if test "$cross_compiling" = yes; then
6078 # Depending upon the size, compute the lo and hi bounds.
6079 cat >conftest.$ac_ext <<_ACEOF
6082 cat confdefs.h >>conftest.$ac_ext
6083 cat >>conftest.$ac_ext <<_ACEOF
6084 /* end confdefs.h. */
6085 $ac_includes_default
6089 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) >= 0)];
6096 rm -f conftest.$ac_objext
6097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6098 (eval $ac_compile) 2>conftest.er1
6100 grep -v '^ *+' conftest.er1 >conftest.err
6102 cat conftest.err >&5
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); } &&
6105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110 (exit $ac_status); }; } &&
6111 { ac_try='test -s conftest.$ac_objext'
6112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 (exit $ac_status); }; }; then
6119 cat >conftest.$ac_ext <<_ACEOF
6122 cat confdefs.h >>conftest.$ac_ext
6123 cat >>conftest.$ac_ext <<_ACEOF
6124 /* end confdefs.h. */
6125 $ac_includes_default
6129 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) <= $ac_mid)];
6136 rm -f conftest.$ac_objext
6137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6138 (eval $ac_compile) 2>conftest.er1
6140 grep -v '^ *+' conftest.er1 >conftest.err
6142 cat conftest.err >&5
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); } &&
6145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); }; } &&
6151 { ac_try='test -s conftest.$ac_objext'
6152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); }; }; then
6157 ac_hi=$ac_mid; break
6159 echo "$as_me: failed program was:" >&5
6160 sed 's/^/| /' conftest.$ac_ext >&5
6162 ac_lo=`expr $ac_mid + 1`
6163 if test $ac_lo -le $ac_mid; then
6167 ac_mid=`expr 2 '*' $ac_mid + 1`
6169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6172 echo "$as_me: failed program was:" >&5
6173 sed 's/^/| /' conftest.$ac_ext >&5
6175 cat >conftest.$ac_ext <<_ACEOF
6178 cat confdefs.h >>conftest.$ac_ext
6179 cat >>conftest.$ac_ext <<_ACEOF
6180 /* end confdefs.h. */
6181 $ac_includes_default
6185 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) < 0)];
6192 rm -f conftest.$ac_objext
6193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6194 (eval $ac_compile) 2>conftest.er1
6196 grep -v '^ *+' conftest.er1 >conftest.err
6198 cat conftest.err >&5
6199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200 (exit $ac_status); } &&
6201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206 (exit $ac_status); }; } &&
6207 { ac_try='test -s conftest.$ac_objext'
6208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 (exit $ac_status); }; }; then
6215 cat >conftest.$ac_ext <<_ACEOF
6218 cat confdefs.h >>conftest.$ac_ext
6219 cat >>conftest.$ac_ext <<_ACEOF
6220 /* end confdefs.h. */
6221 $ac_includes_default
6225 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) >= $ac_mid)];
6232 rm -f conftest.$ac_objext
6233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6234 (eval $ac_compile) 2>conftest.er1
6236 grep -v '^ *+' conftest.er1 >conftest.err
6238 cat conftest.err >&5
6239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240 (exit $ac_status); } &&
6241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 (exit $ac_status); }; } &&
6247 { ac_try='test -s conftest.$ac_objext'
6248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); }; }; then
6253 ac_lo=$ac_mid; break
6255 echo "$as_me: failed program was:" >&5
6256 sed 's/^/| /' conftest.$ac_ext >&5
6258 ac_hi=`expr '(' $ac_mid ')' - 1`
6259 if test $ac_mid -le $ac_hi; then
6263 ac_mid=`expr 2 '*' $ac_mid`
6265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6268 echo "$as_me: failed program was:" >&5
6269 sed 's/^/| /' conftest.$ac_ext >&5
6273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6276 # Binary search between lo and hi bounds.
6277 while test "x$ac_lo" != "x$ac_hi"; do
6278 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6279 cat >conftest.$ac_ext <<_ACEOF
6282 cat confdefs.h >>conftest.$ac_ext
6283 cat >>conftest.$ac_ext <<_ACEOF
6284 /* end confdefs.h. */
6285 $ac_includes_default
6289 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) <= $ac_mid)];
6296 rm -f conftest.$ac_objext
6297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6298 (eval $ac_compile) 2>conftest.er1
6300 grep -v '^ *+' conftest.er1 >conftest.err
6302 cat conftest.err >&5
6303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304 (exit $ac_status); } &&
6305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); }; } &&
6311 { ac_try='test -s conftest.$ac_objext'
6312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); }; }; then
6319 echo "$as_me: failed program was:" >&5
6320 sed 's/^/| /' conftest.$ac_ext >&5
6322 ac_lo=`expr '(' $ac_mid ')' + 1`
6324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6327 ?*) ac_cv_sizeof_int64_t=$ac_lo;;
6328 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int64_t), 77
6329 See \`config.log' for more details." >&5
6330 echo "$as_me: error: cannot compute sizeof (int64_t), 77
6331 See \`config.log' for more details." >&2;}
6332 { (exit 1); exit 1; }; } ;;
6335 if test "$cross_compiling" = yes; then
6336 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6337 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6338 { (exit 1); exit 1; }; }
6340 cat >conftest.$ac_ext <<_ACEOF
6343 cat confdefs.h >>conftest.$ac_ext
6344 cat >>conftest.$ac_ext <<_ACEOF
6345 /* end confdefs.h. */
6346 $ac_includes_default
6347 long longval () { return (long) (sizeof (int64_t)); }
6348 unsigned long ulongval () { return (long) (sizeof (int64_t)); }
6355 FILE *f = fopen ("conftest.val", "w");
6358 if (((long) (sizeof (int64_t))) < 0)
6360 long i = longval ();
6361 if (i != ((long) (sizeof (int64_t))))
6363 fprintf (f, "%ld\n", i);
6367 unsigned long i = ulongval ();
6368 if (i != ((long) (sizeof (int64_t))))
6370 fprintf (f, "%lu\n", i);
6372 exit (ferror (f) || fclose (f) != 0);
6378 rm -f conftest$ac_exeext
6379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6380 (eval $ac_link) 2>&5
6382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388 (exit $ac_status); }; }; then
6389 ac_cv_sizeof_int64_t=`cat conftest.val`
6391 echo "$as_me: program exited with status $ac_status" >&5
6392 echo "$as_me: failed program was:" >&5
6393 sed 's/^/| /' conftest.$ac_ext >&5
6396 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int64_t), 77
6397 See \`config.log' for more details." >&5
6398 echo "$as_me: error: cannot compute sizeof (int64_t), 77
6399 See \`config.log' for more details." >&2;}
6400 { (exit 1); exit 1; }; }
6402 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6407 ac_cv_sizeof_int64_t=0
6410 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int64_t" >&5
6411 echo "${ECHO_T}$ac_cv_sizeof_int64_t" >&6
6412 cat >>confdefs.h <<_ACEOF
6413 #define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
6417 echo "$as_me:$LINENO: checking for long long" >&5
6418 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6419 if test "${ac_cv_type_long_long+set}" = set; then
6420 echo $ECHO_N "(cached) $ECHO_C" >&6
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 if ((long long *) 0)
6434 if (sizeof (long long))
6440 rm -f conftest.$ac_objext
6441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6442 (eval $ac_compile) 2>conftest.er1
6444 grep -v '^ *+' conftest.er1 >conftest.err
6446 cat conftest.err >&5
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); } &&
6449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454 (exit $ac_status); }; } &&
6455 { ac_try='test -s conftest.$ac_objext'
6456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460 (exit $ac_status); }; }; then
6461 ac_cv_type_long_long=yes
6463 echo "$as_me: failed program was:" >&5
6464 sed 's/^/| /' conftest.$ac_ext >&5
6466 ac_cv_type_long_long=no
6468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6470 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6471 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6473 echo "$as_me:$LINENO: checking size of long long" >&5
6474 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
6475 if test "${ac_cv_sizeof_long_long+set}" = set; then
6476 echo $ECHO_N "(cached) $ECHO_C" >&6
6478 if test "$ac_cv_type_long_long" = yes; then
6479 # The cast to unsigned long works around a bug in the HP C Compiler
6480 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6481 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6482 # This bug is HP SR number 8606223364.
6483 if test "$cross_compiling" = yes; then
6484 # Depending upon the size, compute the lo and hi bounds.
6485 cat >conftest.$ac_ext <<_ACEOF
6488 cat confdefs.h >>conftest.$ac_ext
6489 cat >>conftest.$ac_ext <<_ACEOF
6490 /* end confdefs.h. */
6491 $ac_includes_default
6495 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6502 rm -f conftest.$ac_objext
6503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6504 (eval $ac_compile) 2>conftest.er1
6506 grep -v '^ *+' conftest.er1 >conftest.err
6508 cat conftest.err >&5
6509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510 (exit $ac_status); } &&
6511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516 (exit $ac_status); }; } &&
6517 { ac_try='test -s conftest.$ac_objext'
6518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522 (exit $ac_status); }; }; then
6525 cat >conftest.$ac_ext <<_ACEOF
6528 cat confdefs.h >>conftest.$ac_ext
6529 cat >>conftest.$ac_ext <<_ACEOF
6530 /* end confdefs.h. */
6531 $ac_includes_default
6535 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6542 rm -f conftest.$ac_objext
6543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6544 (eval $ac_compile) 2>conftest.er1
6546 grep -v '^ *+' conftest.er1 >conftest.err
6548 cat conftest.err >&5
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); } &&
6551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556 (exit $ac_status); }; } &&
6557 { ac_try='test -s conftest.$ac_objext'
6558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); }; }; then
6563 ac_hi=$ac_mid; break
6565 echo "$as_me: failed program was:" >&5
6566 sed 's/^/| /' conftest.$ac_ext >&5
6568 ac_lo=`expr $ac_mid + 1`
6569 if test $ac_lo -le $ac_mid; then
6573 ac_mid=`expr 2 '*' $ac_mid + 1`
6575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6578 echo "$as_me: failed program was:" >&5
6579 sed 's/^/| /' conftest.$ac_ext >&5
6581 cat >conftest.$ac_ext <<_ACEOF
6584 cat confdefs.h >>conftest.$ac_ext
6585 cat >>conftest.$ac_ext <<_ACEOF
6586 /* end confdefs.h. */
6587 $ac_includes_default
6591 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6598 rm -f conftest.$ac_objext
6599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6600 (eval $ac_compile) 2>conftest.er1
6602 grep -v '^ *+' conftest.er1 >conftest.err
6604 cat conftest.err >&5
6605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); } &&
6607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); }; } &&
6613 { ac_try='test -s conftest.$ac_objext'
6614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618 (exit $ac_status); }; }; then
6621 cat >conftest.$ac_ext <<_ACEOF
6624 cat confdefs.h >>conftest.$ac_ext
6625 cat >>conftest.$ac_ext <<_ACEOF
6626 /* end confdefs.h. */
6627 $ac_includes_default
6631 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6638 rm -f conftest.$ac_objext
6639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6640 (eval $ac_compile) 2>conftest.er1
6642 grep -v '^ *+' conftest.er1 >conftest.err
6644 cat conftest.err >&5
6645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646 (exit $ac_status); } &&
6647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652 (exit $ac_status); }; } &&
6653 { ac_try='test -s conftest.$ac_objext'
6654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658 (exit $ac_status); }; }; then
6659 ac_lo=$ac_mid; break
6661 echo "$as_me: failed program was:" >&5
6662 sed 's/^/| /' conftest.$ac_ext >&5
6664 ac_hi=`expr '(' $ac_mid ')' - 1`
6665 if test $ac_mid -le $ac_hi; then
6669 ac_mid=`expr 2 '*' $ac_mid`
6671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6674 echo "$as_me: failed program was:" >&5
6675 sed 's/^/| /' conftest.$ac_ext >&5
6679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6682 # Binary search between lo and hi bounds.
6683 while test "x$ac_lo" != "x$ac_hi"; do
6684 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6685 cat >conftest.$ac_ext <<_ACEOF
6688 cat confdefs.h >>conftest.$ac_ext
6689 cat >>conftest.$ac_ext <<_ACEOF
6690 /* end confdefs.h. */
6691 $ac_includes_default
6695 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6702 rm -f conftest.$ac_objext
6703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6704 (eval $ac_compile) 2>conftest.er1
6706 grep -v '^ *+' conftest.er1 >conftest.err
6708 cat conftest.err >&5
6709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710 (exit $ac_status); } &&
6711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716 (exit $ac_status); }; } &&
6717 { ac_try='test -s conftest.$ac_objext'
6718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722 (exit $ac_status); }; }; then
6725 echo "$as_me: failed program was:" >&5
6726 sed 's/^/| /' conftest.$ac_ext >&5
6728 ac_lo=`expr '(' $ac_mid ')' + 1`
6730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6733 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6734 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6735 See \`config.log' for more details." >&5
6736 echo "$as_me: error: cannot compute sizeof (long long), 77
6737 See \`config.log' for more details." >&2;}
6738 { (exit 1); exit 1; }; } ;;
6741 if test "$cross_compiling" = yes; then
6742 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6743 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6744 { (exit 1); exit 1; }; }
6746 cat >conftest.$ac_ext <<_ACEOF
6749 cat confdefs.h >>conftest.$ac_ext
6750 cat >>conftest.$ac_ext <<_ACEOF
6751 /* end confdefs.h. */
6752 $ac_includes_default
6753 long longval () { return (long) (sizeof (long long)); }
6754 unsigned long ulongval () { return (long) (sizeof (long long)); }
6761 FILE *f = fopen ("conftest.val", "w");
6764 if (((long) (sizeof (long long))) < 0)
6766 long i = longval ();
6767 if (i != ((long) (sizeof (long long))))
6769 fprintf (f, "%ld\n", i);
6773 unsigned long i = ulongval ();
6774 if (i != ((long) (sizeof (long long))))
6776 fprintf (f, "%lu\n", i);
6778 exit (ferror (f) || fclose (f) != 0);
6784 rm -f conftest$ac_exeext
6785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6786 (eval $ac_link) 2>&5
6788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6789 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794 (exit $ac_status); }; }; then
6795 ac_cv_sizeof_long_long=`cat conftest.val`
6797 echo "$as_me: program exited with status $ac_status" >&5
6798 echo "$as_me: failed program was:" >&5
6799 sed 's/^/| /' conftest.$ac_ext >&5
6802 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6803 See \`config.log' for more details." >&5
6804 echo "$as_me: error: cannot compute sizeof (long long), 77
6805 See \`config.log' for more details." >&2;}
6806 { (exit 1); exit 1; }; }
6808 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6813 ac_cv_sizeof_long_long=0
6816 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6817 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6818 cat >>confdefs.h <<_ACEOF
6819 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6823 if test "$ac_cv_sizeof_int" = 2 ; then
6824 echo "$as_me:$LINENO: checking for int16_t" >&5
6825 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
6826 if test "${ac_cv_type_int16_t+set}" = set; then
6827 echo $ECHO_N "(cached) $ECHO_C" >&6
6829 cat >conftest.$ac_ext <<_ACEOF
6832 cat confdefs.h >>conftest.$ac_ext
6833 cat >>conftest.$ac_ext <<_ACEOF
6834 /* end confdefs.h. */
6835 $ac_includes_default
6841 if (sizeof (int16_t))
6847 rm -f conftest.$ac_objext
6848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6849 (eval $ac_compile) 2>conftest.er1
6851 grep -v '^ *+' conftest.er1 >conftest.err
6853 cat conftest.err >&5
6854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6855 (exit $ac_status); } &&
6856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861 (exit $ac_status); }; } &&
6862 { ac_try='test -s conftest.$ac_objext'
6863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867 (exit $ac_status); }; }; then
6868 ac_cv_type_int16_t=yes
6870 echo "$as_me: failed program was:" >&5
6871 sed 's/^/| /' conftest.$ac_ext >&5
6873 ac_cv_type_int16_t=no
6875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6877 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
6878 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
6879 if test $ac_cv_type_int16_t = yes; then
6883 cat >>confdefs.h <<_ACEOF
6889 echo "$as_me:$LINENO: checking for uint16_t" >&5
6890 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
6891 if test "${ac_cv_type_uint16_t+set}" = set; then
6892 echo $ECHO_N "(cached) $ECHO_C" >&6
6894 cat >conftest.$ac_ext <<_ACEOF
6897 cat confdefs.h >>conftest.$ac_ext
6898 cat >>conftest.$ac_ext <<_ACEOF
6899 /* end confdefs.h. */
6900 $ac_includes_default
6906 if (sizeof (uint16_t))
6912 rm -f conftest.$ac_objext
6913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6914 (eval $ac_compile) 2>conftest.er1
6916 grep -v '^ *+' conftest.er1 >conftest.err
6918 cat conftest.err >&5
6919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920 (exit $ac_status); } &&
6921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926 (exit $ac_status); }; } &&
6927 { ac_try='test -s conftest.$ac_objext'
6928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932 (exit $ac_status); }; }; then
6933 ac_cv_type_uint16_t=yes
6935 echo "$as_me: failed program was:" >&5
6936 sed 's/^/| /' conftest.$ac_ext >&5
6938 ac_cv_type_uint16_t=no
6940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6942 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
6943 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
6944 if test $ac_cv_type_uint16_t = yes; then
6948 cat >>confdefs.h <<_ACEOF
6949 #define uint16_t unsigned int
6954 elif test "$ac_cv_sizeof_short" = 2 ; then
6955 echo "$as_me:$LINENO: checking for int16_t" >&5
6956 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
6957 if test "${ac_cv_type_int16_t+set}" = set; then
6958 echo $ECHO_N "(cached) $ECHO_C" >&6
6960 cat >conftest.$ac_ext <<_ACEOF
6963 cat confdefs.h >>conftest.$ac_ext
6964 cat >>conftest.$ac_ext <<_ACEOF
6965 /* end confdefs.h. */
6966 $ac_includes_default
6972 if (sizeof (int16_t))
6978 rm -f conftest.$ac_objext
6979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6980 (eval $ac_compile) 2>conftest.er1
6982 grep -v '^ *+' conftest.er1 >conftest.err
6984 cat conftest.err >&5
6985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986 (exit $ac_status); } &&
6987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); }; } &&
6993 { ac_try='test -s conftest.$ac_objext'
6994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998 (exit $ac_status); }; }; then
6999 ac_cv_type_int16_t=yes
7001 echo "$as_me: failed program was:" >&5
7002 sed 's/^/| /' conftest.$ac_ext >&5
7004 ac_cv_type_int16_t=no
7006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7008 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
7009 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
7010 if test $ac_cv_type_int16_t = yes; then
7014 cat >>confdefs.h <<_ACEOF
7015 #define int16_t short
7020 echo "$as_me:$LINENO: checking for uint16_t" >&5
7021 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
7022 if test "${ac_cv_type_uint16_t+set}" = set; then
7023 echo $ECHO_N "(cached) $ECHO_C" >&6
7025 cat >conftest.$ac_ext <<_ACEOF
7028 cat confdefs.h >>conftest.$ac_ext
7029 cat >>conftest.$ac_ext <<_ACEOF
7030 /* end confdefs.h. */
7031 $ac_includes_default
7037 if (sizeof (uint16_t))
7043 rm -f conftest.$ac_objext
7044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7045 (eval $ac_compile) 2>conftest.er1
7047 grep -v '^ *+' conftest.er1 >conftest.err
7049 cat conftest.err >&5
7050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051 (exit $ac_status); } &&
7052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057 (exit $ac_status); }; } &&
7058 { ac_try='test -s conftest.$ac_objext'
7059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063 (exit $ac_status); }; }; then
7064 ac_cv_type_uint16_t=yes
7066 echo "$as_me: failed program was:" >&5
7067 sed 's/^/| /' conftest.$ac_ext >&5
7069 ac_cv_type_uint16_t=no
7071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7073 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
7074 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
7075 if test $ac_cv_type_uint16_t = yes; then
7079 cat >>confdefs.h <<_ACEOF
7080 #define uint16_t unsigned short
7086 { { echo "$as_me:$LINENO: error: Cannot find a type with size of 16 bits" >&5
7087 echo "$as_me: error: Cannot find a type with size of 16 bits" >&2;}
7088 { (exit 1); exit 1; }; }
7090 if test "$ac_cv_sizeof_int" = 4 ; then
7091 echo "$as_me:$LINENO: checking for int32_t" >&5
7092 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
7093 if test "${ac_cv_type_int32_t+set}" = set; then
7094 echo $ECHO_N "(cached) $ECHO_C" >&6
7096 cat >conftest.$ac_ext <<_ACEOF
7099 cat confdefs.h >>conftest.$ac_ext
7100 cat >>conftest.$ac_ext <<_ACEOF
7101 /* end confdefs.h. */
7102 $ac_includes_default
7108 if (sizeof (int32_t))
7114 rm -f conftest.$ac_objext
7115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7116 (eval $ac_compile) 2>conftest.er1
7118 grep -v '^ *+' conftest.er1 >conftest.err
7120 cat conftest.err >&5
7121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122 (exit $ac_status); } &&
7123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128 (exit $ac_status); }; } &&
7129 { ac_try='test -s conftest.$ac_objext'
7130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7134 (exit $ac_status); }; }; then
7135 ac_cv_type_int32_t=yes
7137 echo "$as_me: failed program was:" >&5
7138 sed 's/^/| /' conftest.$ac_ext >&5
7140 ac_cv_type_int32_t=no
7142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7144 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
7145 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
7146 if test $ac_cv_type_int32_t = yes; then
7150 cat >>confdefs.h <<_ACEOF
7156 echo "$as_me:$LINENO: checking for uint32_t" >&5
7157 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
7158 if test "${ac_cv_type_uint32_t+set}" = set; then
7159 echo $ECHO_N "(cached) $ECHO_C" >&6
7161 cat >conftest.$ac_ext <<_ACEOF
7164 cat confdefs.h >>conftest.$ac_ext
7165 cat >>conftest.$ac_ext <<_ACEOF
7166 /* end confdefs.h. */
7167 $ac_includes_default
7173 if (sizeof (uint32_t))
7179 rm -f conftest.$ac_objext
7180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7181 (eval $ac_compile) 2>conftest.er1
7183 grep -v '^ *+' conftest.er1 >conftest.err
7185 cat conftest.err >&5
7186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187 (exit $ac_status); } &&
7188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193 (exit $ac_status); }; } &&
7194 { ac_try='test -s conftest.$ac_objext'
7195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199 (exit $ac_status); }; }; then
7200 ac_cv_type_uint32_t=yes
7202 echo "$as_me: failed program was:" >&5
7203 sed 's/^/| /' conftest.$ac_ext >&5
7205 ac_cv_type_uint32_t=no
7207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7209 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
7210 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
7211 if test $ac_cv_type_uint32_t = yes; then
7215 cat >>confdefs.h <<_ACEOF
7216 #define uint32_t unsigned int
7221 elif test "$ac_cv_sizeof_short" = 4 ; then
7222 echo "$as_me:$LINENO: checking for int32_t" >&5
7223 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
7224 if test "${ac_cv_type_int32_t+set}" = set; then
7225 echo $ECHO_N "(cached) $ECHO_C" >&6
7227 cat >conftest.$ac_ext <<_ACEOF
7230 cat confdefs.h >>conftest.$ac_ext
7231 cat >>conftest.$ac_ext <<_ACEOF
7232 /* end confdefs.h. */
7233 $ac_includes_default
7239 if (sizeof (int32_t))
7245 rm -f conftest.$ac_objext
7246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7247 (eval $ac_compile) 2>conftest.er1
7249 grep -v '^ *+' conftest.er1 >conftest.err
7251 cat conftest.err >&5
7252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253 (exit $ac_status); } &&
7254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259 (exit $ac_status); }; } &&
7260 { ac_try='test -s conftest.$ac_objext'
7261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265 (exit $ac_status); }; }; then
7266 ac_cv_type_int32_t=yes
7268 echo "$as_me: failed program was:" >&5
7269 sed 's/^/| /' conftest.$ac_ext >&5
7271 ac_cv_type_int32_t=no
7273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7275 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
7276 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
7277 if test $ac_cv_type_int32_t = yes; then
7281 cat >>confdefs.h <<_ACEOF
7282 #define int32_t short
7287 echo "$as_me:$LINENO: checking for uint32_t" >&5
7288 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
7289 if test "${ac_cv_type_uint32_t+set}" = set; then
7290 echo $ECHO_N "(cached) $ECHO_C" >&6
7292 cat >conftest.$ac_ext <<_ACEOF
7295 cat confdefs.h >>conftest.$ac_ext
7296 cat >>conftest.$ac_ext <<_ACEOF
7297 /* end confdefs.h. */
7298 $ac_includes_default
7304 if (sizeof (uint32_t))
7310 rm -f conftest.$ac_objext
7311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7312 (eval $ac_compile) 2>conftest.er1
7314 grep -v '^ *+' conftest.er1 >conftest.err
7316 cat conftest.err >&5
7317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7318 (exit $ac_status); } &&
7319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324 (exit $ac_status); }; } &&
7325 { ac_try='test -s conftest.$ac_objext'
7326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330 (exit $ac_status); }; }; then
7331 ac_cv_type_uint32_t=yes
7333 echo "$as_me: failed program was:" >&5
7334 sed 's/^/| /' conftest.$ac_ext >&5
7336 ac_cv_type_uint32_t=no
7338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7340 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
7341 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
7342 if test $ac_cv_type_uint32_t = yes; then
7346 cat >>confdefs.h <<_ACEOF
7347 #define uint32_t unsigned short
7352 elif test "$ac_cv_sizeof_long" = 4 ; then
7353 echo "$as_me:$LINENO: checking for int32_t" >&5
7354 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
7355 if test "${ac_cv_type_int32_t+set}" = set; then
7356 echo $ECHO_N "(cached) $ECHO_C" >&6
7358 cat >conftest.$ac_ext <<_ACEOF
7361 cat confdefs.h >>conftest.$ac_ext
7362 cat >>conftest.$ac_ext <<_ACEOF
7363 /* end confdefs.h. */
7364 $ac_includes_default
7370 if (sizeof (int32_t))
7376 rm -f conftest.$ac_objext
7377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7378 (eval $ac_compile) 2>conftest.er1
7380 grep -v '^ *+' conftest.er1 >conftest.err
7382 cat conftest.err >&5
7383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384 (exit $ac_status); } &&
7385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390 (exit $ac_status); }; } &&
7391 { ac_try='test -s conftest.$ac_objext'
7392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); }; }; then
7397 ac_cv_type_int32_t=yes
7399 echo "$as_me: failed program was:" >&5
7400 sed 's/^/| /' conftest.$ac_ext >&5
7402 ac_cv_type_int32_t=no
7404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7406 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
7407 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
7408 if test $ac_cv_type_int32_t = yes; then
7412 cat >>confdefs.h <<_ACEOF
7413 #define int32_t long
7418 echo "$as_me:$LINENO: checking for uint32_t" >&5
7419 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
7420 if test "${ac_cv_type_uint32_t+set}" = set; then
7421 echo $ECHO_N "(cached) $ECHO_C" >&6
7423 cat >conftest.$ac_ext <<_ACEOF
7426 cat confdefs.h >>conftest.$ac_ext
7427 cat >>conftest.$ac_ext <<_ACEOF
7428 /* end confdefs.h. */
7429 $ac_includes_default
7435 if (sizeof (uint32_t))
7441 rm -f conftest.$ac_objext
7442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7443 (eval $ac_compile) 2>conftest.er1
7445 grep -v '^ *+' conftest.er1 >conftest.err
7447 cat conftest.err >&5
7448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449 (exit $ac_status); } &&
7450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455 (exit $ac_status); }; } &&
7456 { ac_try='test -s conftest.$ac_objext'
7457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461 (exit $ac_status); }; }; then
7462 ac_cv_type_uint32_t=yes
7464 echo "$as_me: failed program was:" >&5
7465 sed 's/^/| /' conftest.$ac_ext >&5
7467 ac_cv_type_uint32_t=no
7469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7471 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
7472 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
7473 if test $ac_cv_type_uint32_t = yes; then
7477 cat >>confdefs.h <<_ACEOF
7478 #define uint32_t unsigned long
7484 { { echo "$as_me:$LINENO: error: Cannot find a type with size of 32 bits" >&5
7485 echo "$as_me: error: Cannot find a type with size of 32 bits" >&2;}
7486 { (exit 1); exit 1; }; }
7488 if test "$ac_cv_sizeof_int64_t" = 8 ; then
7489 echo "$as_me:$LINENO: checking for int64_t" >&5
7490 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
7491 if test "${ac_cv_type_int64_t+set}" = set; then
7492 echo $ECHO_N "(cached) $ECHO_C" >&6
7494 cat >conftest.$ac_ext <<_ACEOF
7497 cat confdefs.h >>conftest.$ac_ext
7498 cat >>conftest.$ac_ext <<_ACEOF
7499 /* end confdefs.h. */
7500 $ac_includes_default
7506 if (sizeof (int64_t))
7512 rm -f conftest.$ac_objext
7513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7514 (eval $ac_compile) 2>conftest.er1
7516 grep -v '^ *+' conftest.er1 >conftest.err
7518 cat conftest.err >&5
7519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520 (exit $ac_status); } &&
7521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7526 (exit $ac_status); }; } &&
7527 { ac_try='test -s conftest.$ac_objext'
7528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532 (exit $ac_status); }; }; then
7533 ac_cv_type_int64_t=yes
7535 echo "$as_me: failed program was:" >&5
7536 sed 's/^/| /' conftest.$ac_ext >&5
7538 ac_cv_type_int64_t=no
7540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7542 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
7543 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
7545 echo "$as_me:$LINENO: checking for uint64_t" >&5
7546 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
7547 if test "${ac_cv_type_uint64_t+set}" = set; then
7548 echo $ECHO_N "(cached) $ECHO_C" >&6
7550 cat >conftest.$ac_ext <<_ACEOF
7553 cat confdefs.h >>conftest.$ac_ext
7554 cat >>conftest.$ac_ext <<_ACEOF
7555 /* end confdefs.h. */
7556 $ac_includes_default
7562 if (sizeof (uint64_t))
7568 rm -f conftest.$ac_objext
7569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7570 (eval $ac_compile) 2>conftest.er1
7572 grep -v '^ *+' conftest.er1 >conftest.err
7574 cat conftest.err >&5
7575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576 (exit $ac_status); } &&
7577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582 (exit $ac_status); }; } &&
7583 { ac_try='test -s conftest.$ac_objext'
7584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588 (exit $ac_status); }; }; then
7589 ac_cv_type_uint64_t=yes
7591 echo "$as_me: failed program was:" >&5
7592 sed 's/^/| /' conftest.$ac_ext >&5
7594 ac_cv_type_uint64_t=no
7596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7598 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
7599 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
7601 elif test "$ac_cv_sizeof_long_long" = 8 ; then
7602 echo "$as_me:$LINENO: checking for int64_t" >&5
7603 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
7604 if test "${ac_cv_type_int64_t+set}" = set; then
7605 echo $ECHO_N "(cached) $ECHO_C" >&6
7607 cat >conftest.$ac_ext <<_ACEOF
7610 cat confdefs.h >>conftest.$ac_ext
7611 cat >>conftest.$ac_ext <<_ACEOF
7612 /* end confdefs.h. */
7613 $ac_includes_default
7619 if (sizeof (int64_t))
7625 rm -f conftest.$ac_objext
7626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7627 (eval $ac_compile) 2>conftest.er1
7629 grep -v '^ *+' conftest.er1 >conftest.err
7631 cat conftest.err >&5
7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633 (exit $ac_status); } &&
7634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639 (exit $ac_status); }; } &&
7640 { ac_try='test -s conftest.$ac_objext'
7641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645 (exit $ac_status); }; }; then
7646 ac_cv_type_int64_t=yes
7648 echo "$as_me: failed program was:" >&5
7649 sed 's/^/| /' conftest.$ac_ext >&5
7651 ac_cv_type_int64_t=no
7653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7655 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
7656 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
7657 if test $ac_cv_type_int64_t = yes; then
7661 cat >>confdefs.h <<_ACEOF
7662 #define int64_t long long
7667 echo "$as_me:$LINENO: checking for uint64_t" >&5
7668 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
7669 if test "${ac_cv_type_uint64_t+set}" = set; then
7670 echo $ECHO_N "(cached) $ECHO_C" >&6
7672 cat >conftest.$ac_ext <<_ACEOF
7675 cat confdefs.h >>conftest.$ac_ext
7676 cat >>conftest.$ac_ext <<_ACEOF
7677 /* end confdefs.h. */
7678 $ac_includes_default
7684 if (sizeof (uint64_t))
7690 rm -f conftest.$ac_objext
7691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7692 (eval $ac_compile) 2>conftest.er1
7694 grep -v '^ *+' conftest.er1 >conftest.err
7696 cat conftest.err >&5
7697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698 (exit $ac_status); } &&
7699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704 (exit $ac_status); }; } &&
7705 { ac_try='test -s conftest.$ac_objext'
7706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710 (exit $ac_status); }; }; then
7711 ac_cv_type_uint64_t=yes
7713 echo "$as_me: failed program was:" >&5
7714 sed 's/^/| /' conftest.$ac_ext >&5
7716 ac_cv_type_uint64_t=no
7718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7720 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
7721 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
7722 if test $ac_cv_type_uint64_t = yes; then
7726 cat >>confdefs.h <<_ACEOF
7727 #define uint64_t unsigned long long
7733 { { echo "$as_me:$LINENO: error: Cannot find a type with size of 64 bits" >&5
7734 echo "$as_me: error: Cannot find a type with size of 64 bits" >&2;}
7735 { (exit 1); exit 1; }; }
7737 echo "$as_me:$LINENO: checking for socklen_t" >&5
7738 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
7739 if test "${ac_cv_type_socklen_t+set}" = set; then
7740 echo $ECHO_N "(cached) $ECHO_C" >&6
7742 cat >conftest.$ac_ext <<_ACEOF
7745 cat confdefs.h >>conftest.$ac_ext
7746 cat >>conftest.$ac_ext <<_ACEOF
7747 /* end confdefs.h. */
7748 $ac_includes_default
7752 if ((socklen_t *) 0)
7754 if (sizeof (socklen_t))
7760 rm -f conftest.$ac_objext
7761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7762 (eval $ac_compile) 2>conftest.er1
7764 grep -v '^ *+' conftest.er1 >conftest.err
7766 cat conftest.err >&5
7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 (exit $ac_status); } &&
7769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774 (exit $ac_status); }; } &&
7775 { ac_try='test -s conftest.$ac_objext'
7776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780 (exit $ac_status); }; }; then
7781 ac_cv_type_socklen_t=yes
7783 echo "$as_me: failed program was:" >&5
7784 sed 's/^/| /' conftest.$ac_ext >&5
7786 ac_cv_type_socklen_t=no
7788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7790 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
7791 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
7792 if test $ac_cv_type_socklen_t = yes; then
7796 cat >>confdefs.h <<_ACEOF
7797 #define socklen_t unsigned int
7802 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
7803 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
7804 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
7805 echo $ECHO_N "(cached) $ECHO_C" >&6
7807 cat >conftest.$ac_ext <<_ACEOF
7810 cat confdefs.h >>conftest.$ac_ext
7811 cat >>conftest.$ac_ext <<_ACEOF
7812 /* end confdefs.h. */
7813 #include <sys/types.h>
7814 #include <netinet/in.h>
7819 if ((struct sockaddr_in6 *) 0)
7821 if (sizeof (struct sockaddr_in6))
7827 rm -f conftest.$ac_objext
7828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7829 (eval $ac_compile) 2>conftest.er1
7831 grep -v '^ *+' conftest.er1 >conftest.err
7833 cat conftest.err >&5
7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); } &&
7836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841 (exit $ac_status); }; } &&
7842 { ac_try='test -s conftest.$ac_objext'
7843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847 (exit $ac_status); }; }; then
7848 ac_cv_type_struct_sockaddr_in6=yes
7850 echo "$as_me: failed program was:" >&5
7851 sed 's/^/| /' conftest.$ac_ext >&5
7853 ac_cv_type_struct_sockaddr_in6=no
7855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7857 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
7858 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
7859 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
7860 unet_have_sockaddr_in6="yes"
7862 unet_have_sockaddr_in6="no"
7870 for ac_func in kqueue setrlimit getrusage times
7872 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7873 echo "$as_me:$LINENO: checking for $ac_func" >&5
7874 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7875 if eval "test \"\${$as_ac_var+set}\" = set"; then
7876 echo $ECHO_N "(cached) $ECHO_C" >&6
7878 cat >conftest.$ac_ext <<_ACEOF
7881 cat confdefs.h >>conftest.$ac_ext
7882 cat >>conftest.$ac_ext <<_ACEOF
7883 /* end confdefs.h. */
7884 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7885 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7886 #define $ac_func innocuous_$ac_func
7888 /* System header to define __stub macros and hopefully few prototypes,
7889 which can conflict with char $ac_func (); below.
7890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7891 <limits.h> exists even on freestanding compilers. */
7894 # include <limits.h>
7896 # include <assert.h>
7901 /* Override any gcc2 internal prototype to avoid an error. */
7906 /* We use char because int might match the return type of a gcc2
7907 builtin and then its argument prototype would still apply. */
7909 /* The GNU C library defines this for functions which it implements
7910 to always fail with ENOSYS. Some functions are actually named
7911 something starting with __ and the normal name is an alias. */
7912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7915 char (*f) () = $ac_func;
7924 return f != $ac_func;
7929 rm -f conftest.$ac_objext conftest$ac_exeext
7930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7931 (eval $ac_link) 2>conftest.er1
7933 grep -v '^ *+' conftest.er1 >conftest.err
7935 cat conftest.err >&5
7936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937 (exit $ac_status); } &&
7938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943 (exit $ac_status); }; } &&
7944 { ac_try='test -s conftest$ac_exeext'
7945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949 (exit $ac_status); }; }; then
7950 eval "$as_ac_var=yes"
7952 echo "$as_me: failed program was:" >&5
7953 sed 's/^/| /' conftest.$ac_ext >&5
7955 eval "$as_ac_var=no"
7957 rm -f conftest.err conftest.$ac_objext \
7958 conftest$ac_exeext conftest.$ac_ext
7960 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7961 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7962 if test `eval echo '${'$as_ac_var'}'` = yes; then
7963 cat >>confdefs.h <<_ACEOF
7964 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7971 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7972 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7973 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7974 echo $ECHO_N "(cached) $ECHO_C" >&6
7976 cat >conftest.$ac_ext <<_ACEOF
7979 cat confdefs.h >>conftest.$ac_ext
7980 cat >>conftest.$ac_ext <<_ACEOF
7981 /* end confdefs.h. */
7982 #include <sys/types.h>
7983 #include <sys/wait.h>
7985 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7988 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7996 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8001 rm -f conftest.$ac_objext
8002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8003 (eval $ac_compile) 2>conftest.er1
8005 grep -v '^ *+' conftest.er1 >conftest.err
8007 cat conftest.err >&5
8008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009 (exit $ac_status); } &&
8010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015 (exit $ac_status); }; } &&
8016 { ac_try='test -s conftest.$ac_objext'
8017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021 (exit $ac_status); }; }; then
8022 ac_cv_header_sys_wait_h=yes
8024 echo "$as_me: failed program was:" >&5
8025 sed 's/^/| /' conftest.$ac_ext >&5
8027 ac_cv_header_sys_wait_h=no
8029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8031 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8032 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8033 if test $ac_cv_header_sys_wait_h = yes; then
8035 cat >>confdefs.h <<\_ACEOF
8036 #define HAVE_SYS_WAIT_H 1
8042 for ac_header in unistd.h
8044 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8046 echo "$as_me:$LINENO: checking for $ac_header" >&5
8047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8048 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8049 echo $ECHO_N "(cached) $ECHO_C" >&6
8051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8052 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8054 # Is the header compilable?
8055 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8056 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8057 cat >conftest.$ac_ext <<_ACEOF
8060 cat confdefs.h >>conftest.$ac_ext
8061 cat >>conftest.$ac_ext <<_ACEOF
8062 /* end confdefs.h. */
8063 $ac_includes_default
8064 #include <$ac_header>
8066 rm -f conftest.$ac_objext
8067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8068 (eval $ac_compile) 2>conftest.er1
8070 grep -v '^ *+' conftest.er1 >conftest.err
8072 cat conftest.err >&5
8073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074 (exit $ac_status); } &&
8075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080 (exit $ac_status); }; } &&
8081 { ac_try='test -s conftest.$ac_objext'
8082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086 (exit $ac_status); }; }; then
8087 ac_header_compiler=yes
8089 echo "$as_me: failed program was:" >&5
8090 sed 's/^/| /' conftest.$ac_ext >&5
8092 ac_header_compiler=no
8094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8095 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8096 echo "${ECHO_T}$ac_header_compiler" >&6
8098 # Is the header present?
8099 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8100 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8101 cat >conftest.$ac_ext <<_ACEOF
8104 cat confdefs.h >>conftest.$ac_ext
8105 cat >>conftest.$ac_ext <<_ACEOF
8106 /* end confdefs.h. */
8107 #include <$ac_header>
8109 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8110 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8112 grep -v '^ *+' conftest.er1 >conftest.err
8114 cat conftest.err >&5
8115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116 (exit $ac_status); } >/dev/null; then
8117 if test -s conftest.err; then
8118 ac_cpp_err=$ac_c_preproc_warn_flag
8119 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8126 if test -z "$ac_cpp_err"; then
8127 ac_header_preproc=yes
8129 echo "$as_me: failed program was:" >&5
8130 sed 's/^/| /' conftest.$ac_ext >&5
8132 ac_header_preproc=no
8134 rm -f conftest.err conftest.$ac_ext
8135 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8136 echo "${ECHO_T}$ac_header_preproc" >&6
8138 # So? What about this header?
8139 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8141 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8142 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8144 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8145 ac_header_preproc=yes
8148 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8149 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8150 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8151 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8152 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8153 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8154 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8155 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8156 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8157 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8158 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8159 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8162 ## ------------------------------------------ ##
8163 ## Report this to the AC_PACKAGE_NAME lists. ##
8164 ## ------------------------------------------ ##
8167 sed "s/^/$as_me: WARNING: /" >&2
8170 echo "$as_me:$LINENO: checking for $ac_header" >&5
8171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8172 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8173 echo $ECHO_N "(cached) $ECHO_C" >&6
8175 eval "$as_ac_Header=\$ac_header_preproc"
8177 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8178 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8181 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8182 cat >>confdefs.h <<_ACEOF
8183 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8190 echo "$as_me:$LINENO: checking for restartable system calls" >&5
8191 echo $ECHO_N "checking for restartable system calls... $ECHO_C" >&6
8192 if test "${ac_cv_sys_restartable_syscalls+set}" = set; then
8193 echo $ECHO_N "(cached) $ECHO_C" >&6
8195 if test "$cross_compiling" = yes; then
8196 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8197 See \`config.log' for more details." >&5
8198 echo "$as_me: error: cannot run test program while cross compiling
8199 See \`config.log' for more details." >&2;}
8200 { (exit 1); exit 1; }; }
8202 cat >conftest.$ac_ext <<_ACEOF
8205 cat confdefs.h >>conftest.$ac_ext
8206 cat >>conftest.$ac_ext <<_ACEOF
8207 /* end confdefs.h. */
8208 /* Exit 0 (true) if wait returns something other than -1,
8209 i.e. the pid of the child, which means that wait was restarted
8210 after getting the signal. */
8212 #include <sys/types.h>
8215 # include <unistd.h>
8218 # include <sys/wait.h>
8221 /* Some platforms explicitly require an extern "C" signal handler
8224 extern "C" void ucatch (int dummy) { }
8226 void ucatch (dummy) int dummy; { }
8232 int i = fork (), status;
8237 kill (getppid (), SIGINT);
8242 signal (SIGINT, ucatch);
8248 exit (status == -1);
8251 rm -f conftest$ac_exeext
8252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8253 (eval $ac_link) 2>&5
8255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 (exit $ac_status); }; }; then
8262 ac_cv_sys_restartable_syscalls=yes
8264 echo "$as_me: program exited with status $ac_status" >&5
8265 echo "$as_me: failed program was:" >&5
8266 sed 's/^/| /' conftest.$ac_ext >&5
8269 ac_cv_sys_restartable_syscalls=no
8271 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8274 echo "$as_me:$LINENO: result: $ac_cv_sys_restartable_syscalls" >&5
8275 echo "${ECHO_T}$ac_cv_sys_restartable_syscalls" >&6
8276 if test $ac_cv_sys_restartable_syscalls = yes; then
8278 cat >>confdefs.h <<\_ACEOF
8279 #define HAVE_RESTARTABLE_SYSCALLS 1
8285 echo "$as_me:$LINENO: checking for donuts" >&5
8286 echo $ECHO_N "checking for donuts... $ECHO_C" >&6
8287 echo "$as_me:$LINENO: result: yes" >&5
8288 echo "${ECHO_T}yes" >&6
8290 for ac_prog in gawk mawk nawk awk
8292 # Extract the first word of "$ac_prog", so it can be a program name with args.
8293 set dummy $ac_prog; ac_word=$2
8294 echo "$as_me:$LINENO: checking for $ac_word" >&5
8295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8296 if test "${ac_cv_prog_AWK+set}" = set; then
8297 echo $ECHO_N "(cached) $ECHO_C" >&6
8299 if test -n "$AWK"; then
8300 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8306 test -z "$as_dir" && as_dir=.
8307 for ac_exec_ext in '' $ac_executable_extensions; do
8308 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8309 ac_cv_prog_AWK="$ac_prog"
8310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8319 if test -n "$AWK"; then
8320 echo "$as_me:$LINENO: result: $AWK" >&5
8321 echo "${ECHO_T}$AWK" >&6
8323 echo "$as_me:$LINENO: result: no" >&5
8324 echo "${ECHO_T}no" >&6
8327 test -n "$AWK" && break
8330 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8331 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8332 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
8333 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8334 echo $ECHO_N "(cached) $ECHO_C" >&6
8336 cat >conftest.make <<\_ACEOF
8338 @echo 'ac_maketemp="$(MAKE)"'
8340 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8341 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8342 if test -n "$ac_maketemp"; then
8343 eval ac_cv_prog_make_${ac_make}_set=yes
8345 eval ac_cv_prog_make_${ac_make}_set=no
8349 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8350 echo "$as_me:$LINENO: result: yes" >&5
8351 echo "${ECHO_T}yes" >&6
8354 echo "$as_me:$LINENO: result: no" >&5
8355 echo "${ECHO_T}no" >&6
8356 SET_MAKE="MAKE=${MAKE-make}"
8359 # Find a good install program. We prefer a C program (faster),
8360 # so one script is as good as another. But avoid the broken or
8361 # incompatible versions:
8362 # SysV /etc/install, /usr/sbin/install
8363 # SunOS /usr/etc/install
8364 # IRIX /sbin/install
8366 # AmigaOS /C/install, which installs bootblocks on floppy discs
8367 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8368 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8369 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8370 # OS/2's system install, which has a completely different semantic
8371 # ./install, which can be erroneously created by make from ./install.sh.
8372 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8373 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8374 if test -z "$INSTALL"; then
8375 if test "${ac_cv_path_install+set}" = set; then
8376 echo $ECHO_N "(cached) $ECHO_C" >&6
8378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8382 test -z "$as_dir" && as_dir=.
8383 # Account for people who put trailing slashes in PATH elements.
8385 ./ | .// | /cC/* | \
8386 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8387 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8390 # OSF1 and SCO ODT 3.0 have their own names for install.
8391 # Don't use installbsd from OSF since it installs stuff as root
8393 for ac_prog in ginstall scoinst install; do
8394 for ac_exec_ext in '' $ac_executable_extensions; do
8395 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8396 if test $ac_prog = install &&
8397 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8398 # AIX install. It has an incompatible calling convention.
8400 elif test $ac_prog = install &&
8401 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8402 # program-specific install script used by HP pwplus--don't use.
8405 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8417 if test "${ac_cv_path_install+set}" = set; then
8418 INSTALL=$ac_cv_path_install
8420 # As a last resort, use the slow shell script. We don't cache a
8421 # path for INSTALL within a source directory, because that will
8422 # break other packages using the cache if that directory is
8423 # removed, or if the path is relative.
8424 INSTALL=$ac_install_sh
8427 echo "$as_me:$LINENO: result: $INSTALL" >&5
8428 echo "${ECHO_T}$INSTALL" >&6
8430 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8431 # It thinks the first close brace ends the variable substitution.
8432 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8434 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8436 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8438 echo "$as_me:$LINENO: checking whether ln -s works" >&5
8439 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8441 if test "$LN_S" = "ln -s"; then
8442 echo "$as_me:$LINENO: result: yes" >&5
8443 echo "${ECHO_T}yes" >&6
8445 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
8446 echo "${ECHO_T}no, using $LN_S" >&6
8451 # Extract the first word of "$ac_prog", so it can be a program name with args.
8452 set dummy $ac_prog; ac_word=$2
8453 echo "$as_me:$LINENO: checking for $ac_word" >&5
8454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8455 if test "${ac_cv_path_RMPROG+set}" = set; then
8456 echo $ECHO_N "(cached) $ECHO_C" >&6
8460 ac_cv_path_RMPROG="$RMPROG" # Let the user override the test with a path.
8463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8467 test -z "$as_dir" && as_dir=.
8468 for ac_exec_ext in '' $ac_executable_extensions; do
8469 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8470 ac_cv_path_RMPROG="$as_dir/$ac_word$ac_exec_ext"
8471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8480 RMPROG=$ac_cv_path_RMPROG
8482 if test -n "$RMPROG"; then
8483 echo "$as_me:$LINENO: result: $RMPROG" >&5
8484 echo "${ECHO_T}$RMPROG" >&6
8486 echo "$as_me:$LINENO: result: no" >&5
8487 echo "${ECHO_T}no" >&6
8490 test -n "$RMPROG" && break
8492 test -n "$RMPROG" || RMPROG="/bin/rm"
8496 # Extract the first word of "$ac_prog", so it can be a program name with args.
8497 set dummy $ac_prog; ac_word=$2
8498 echo "$as_me:$LINENO: checking for $ac_word" >&5
8499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8500 if test "${ac_cv_path_SHPROG+set}" = set; then
8501 echo $ECHO_N "(cached) $ECHO_C" >&6
8505 ac_cv_path_SHPROG="$SHPROG" # Let the user override the test with a path.
8508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8512 test -z "$as_dir" && as_dir=.
8513 for ac_exec_ext in '' $ac_executable_extensions; do
8514 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8515 ac_cv_path_SHPROG="$as_dir/$ac_word$ac_exec_ext"
8516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8525 SHPROG=$ac_cv_path_SHPROG
8527 if test -n "$SHPROG"; then
8528 echo "$as_me:$LINENO: result: $SHPROG" >&5
8529 echo "${ECHO_T}$SHPROG" >&6
8531 echo "$as_me:$LINENO: result: no" >&5
8532 echo "${ECHO_T}no" >&6
8535 test -n "$SHPROG" && break
8537 test -n "$SHPROG" || SHPROG="/bin/sh"
8540 for ac_prog in flex lex
8542 # Extract the first word of "$ac_prog", so it can be a program name with args.
8543 set dummy $ac_prog; ac_word=$2
8544 echo "$as_me:$LINENO: checking for $ac_word" >&5
8545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8546 if test "${ac_cv_prog_LEX+set}" = set; then
8547 echo $ECHO_N "(cached) $ECHO_C" >&6
8549 if test -n "$LEX"; then
8550 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8556 test -z "$as_dir" && as_dir=.
8557 for ac_exec_ext in '' $ac_executable_extensions; do
8558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8559 ac_cv_prog_LEX="$ac_prog"
8560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8569 if test -n "$LEX"; then
8570 echo "$as_me:$LINENO: result: $LEX" >&5
8571 echo "${ECHO_T}$LEX" >&6
8573 echo "$as_me:$LINENO: result: no" >&5
8574 echo "${ECHO_T}no" >&6
8577 test -n "$LEX" && break
8579 test -n "$LEX" || LEX=":"
8581 if test -z "$LEXLIB"
8583 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
8584 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
8585 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
8586 echo $ECHO_N "(cached) $ECHO_C" >&6
8588 ac_check_lib_save_LIBS=$LIBS
8590 cat >conftest.$ac_ext <<_ACEOF
8593 cat confdefs.h >>conftest.$ac_ext
8594 cat >>conftest.$ac_ext <<_ACEOF
8595 /* end confdefs.h. */
8597 /* Override any gcc2 internal prototype to avoid an error. */
8601 /* We use char because int might match the return type of a gcc2
8602 builtin and then its argument prototype would still apply. */
8612 rm -f conftest.$ac_objext conftest$ac_exeext
8613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8614 (eval $ac_link) 2>conftest.er1
8616 grep -v '^ *+' conftest.er1 >conftest.err
8618 cat conftest.err >&5
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); } &&
8621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 (exit $ac_status); }; } &&
8627 { ac_try='test -s conftest$ac_exeext'
8628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632 (exit $ac_status); }; }; then
8633 ac_cv_lib_fl_yywrap=yes
8635 echo "$as_me: failed program was:" >&5
8636 sed 's/^/| /' conftest.$ac_ext >&5
8638 ac_cv_lib_fl_yywrap=no
8640 rm -f conftest.err conftest.$ac_objext \
8641 conftest$ac_exeext conftest.$ac_ext
8642 LIBS=$ac_check_lib_save_LIBS
8644 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
8645 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
8646 if test $ac_cv_lib_fl_yywrap = yes; then
8649 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
8650 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
8651 if test "${ac_cv_lib_l_yywrap+set}" = set; then
8652 echo $ECHO_N "(cached) $ECHO_C" >&6
8654 ac_check_lib_save_LIBS=$LIBS
8656 cat >conftest.$ac_ext <<_ACEOF
8659 cat confdefs.h >>conftest.$ac_ext
8660 cat >>conftest.$ac_ext <<_ACEOF
8661 /* end confdefs.h. */
8663 /* Override any gcc2 internal prototype to avoid an error. */
8667 /* We use char because int might match the return type of a gcc2
8668 builtin and then its argument prototype would still apply. */
8678 rm -f conftest.$ac_objext conftest$ac_exeext
8679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8680 (eval $ac_link) 2>conftest.er1
8682 grep -v '^ *+' conftest.er1 >conftest.err
8684 cat conftest.err >&5
8685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686 (exit $ac_status); } &&
8687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); }; } &&
8693 { ac_try='test -s conftest$ac_exeext'
8694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698 (exit $ac_status); }; }; then
8699 ac_cv_lib_l_yywrap=yes
8701 echo "$as_me: failed program was:" >&5
8702 sed 's/^/| /' conftest.$ac_ext >&5
8704 ac_cv_lib_l_yywrap=no
8706 rm -f conftest.err conftest.$ac_objext \
8707 conftest$ac_exeext conftest.$ac_ext
8708 LIBS=$ac_check_lib_save_LIBS
8710 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
8711 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
8712 if test $ac_cv_lib_l_yywrap = yes; then
8720 if test "x$LEX" != "x:"; then
8721 echo "$as_me:$LINENO: checking lex output file root" >&5
8722 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
8723 if test "${ac_cv_prog_lex_root+set}" = set; then
8724 echo $ECHO_N "(cached) $ECHO_C" >&6
8726 # The minimal lex program is just a single line: %%. But some broken lexes
8727 # (Solaris, I think it was) want two %% lines, so accommodate them.
8728 cat >conftest.l <<_ACEOF
8732 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
8733 (eval $LEX conftest.l) 2>&5
8735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736 (exit $ac_status); }
8737 if test -f lex.yy.c; then
8738 ac_cv_prog_lex_root=lex.yy
8739 elif test -f lexyy.c; then
8740 ac_cv_prog_lex_root=lexyy
8742 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
8743 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
8744 { (exit 1); exit 1; }; }
8747 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
8748 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
8750 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
8752 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
8753 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
8754 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
8755 echo $ECHO_N "(cached) $ECHO_C" >&6
8757 # POSIX says lex can declare yytext either as a pointer or an array; the
8758 # default is implementation-dependent. Figure out which it is, since
8759 # not all implementations provide the %pointer and %array declarations.
8760 ac_cv_prog_lex_yytext_pointer=no
8761 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
8763 LIBS="$LIBS $LEXLIB"
8764 cat >conftest.$ac_ext <<_ACEOF
8765 `cat $LEX_OUTPUT_ROOT.c`
8767 rm -f conftest.$ac_objext conftest$ac_exeext
8768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8769 (eval $ac_link) 2>conftest.er1
8771 grep -v '^ *+' conftest.er1 >conftest.err
8773 cat conftest.err >&5
8774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775 (exit $ac_status); } &&
8776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781 (exit $ac_status); }; } &&
8782 { ac_try='test -s conftest$ac_exeext'
8783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787 (exit $ac_status); }; }; then
8788 ac_cv_prog_lex_yytext_pointer=yes
8790 echo "$as_me: failed program was:" >&5
8791 sed 's/^/| /' conftest.$ac_ext >&5
8794 rm -f conftest.err conftest.$ac_objext \
8795 conftest$ac_exeext conftest.$ac_ext
8797 rm -f "${LEX_OUTPUT_ROOT}.c"
8800 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
8801 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
8802 if test $ac_cv_prog_lex_yytext_pointer = yes; then
8804 cat >>confdefs.h <<\_ACEOF
8805 #define YYTEXT_POINTER 1
8811 if test "$LEX" = ":" ; then
8812 { { echo "$as_me:$LINENO: error: Cannot find flex." >&5
8813 echo "$as_me: error: Cannot find flex." >&2;}
8814 { (exit 1); exit 1; }; }
8815 elif echo "" | $LEX -V -v --version > /dev/null 2>&1 ; then
8818 { { echo "$as_me:$LINENO: error: Cannot use $LEX as flex." >&5
8819 echo "$as_me: error: Cannot use $LEX as flex." >&2;}
8820 { (exit 1); exit 1; }; }
8823 if test -z "$LEXLIB" ; then
8824 { { echo "$as_me:$LINENO: error: Cannot find a library with yywrap() in, but flex was found.
8825 It's possible the compiler you're using ($CC) is incompatible with the
8827 See \`config.log' for more details." >&5
8828 echo "$as_me: error: Cannot find a library with yywrap() in, but flex was found.
8829 It's possible the compiler you're using ($CC) is incompatible with the
8831 See \`config.log' for more details." >&2;}
8832 { (exit 1); exit 1; }; }
8835 LIBS="$LEXLIB $LIBS"
8837 for ac_prog in 'bison -y' byacc
8839 # Extract the first word of "$ac_prog", so it can be a program name with args.
8840 set dummy $ac_prog; ac_word=$2
8841 echo "$as_me:$LINENO: checking for $ac_word" >&5
8842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8843 if test "${ac_cv_prog_YACC+set}" = set; then
8844 echo $ECHO_N "(cached) $ECHO_C" >&6
8846 if test -n "$YACC"; then
8847 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8853 test -z "$as_dir" && as_dir=.
8854 for ac_exec_ext in '' $ac_executable_extensions; do
8855 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8856 ac_cv_prog_YACC="$ac_prog"
8857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8865 YACC=$ac_cv_prog_YACC
8866 if test -n "$YACC"; then
8867 echo "$as_me:$LINENO: result: $YACC" >&5
8868 echo "${ECHO_T}$YACC" >&6
8870 echo "$as_me:$LINENO: result: no" >&5
8871 echo "${ECHO_T}no" >&6
8874 test -n "$YACC" && break
8876 test -n "$YACC" || YACC="yacc"
8878 if test "$YACC" = ":" ; then
8879 { { echo "$as_me:$LINENO: error: Cannot find yacc." >&5
8880 echo "$as_me: error: Cannot find yacc." >&2;}
8881 { (exit 1); exit 1; }; }
8882 elif echo "" | $YACC -V -v --version > /dev/null 2>&1 ; then
8885 { echo "$as_me:$LINENO: WARNING: $YACC may not work as yacc." >&5
8886 echo "$as_me: WARNING: $YACC may not work as yacc." >&2;}
8890 echo "$as_me:$LINENO: checking for posix non-blocking" >&5
8891 echo $ECHO_N "checking for posix non-blocking... $ECHO_C" >&6
8892 if test "${unet_cv_sys_nonblocking_posix+set}" = set; then
8893 echo $ECHO_N "(cached) $ECHO_C" >&6
8895 if test "$cross_compiling" = yes; then
8896 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8897 See \`config.log' for more details." >&5
8898 echo "$as_me: error: cannot run test program while cross compiling
8899 See \`config.log' for more details." >&2;}
8900 { (exit 1); exit 1; }; }
8902 cat >conftest.$ac_ext <<_ACEOF
8905 cat confdefs.h >>conftest.$ac_ext
8906 cat >>conftest.$ac_ext <<_ACEOF
8907 /* end confdefs.h. */
8908 #include <sys/types.h>
8909 #include <sys/socket.h>
8911 #include <sys/ioctl.h>
8912 #include <sys/file.h>
8914 $ac_cv_type_signal alarmed() { exit(1); }
8919 size_t l = sizeof(x);
8920 int f = socket(AF_INET, SOCK_DGRAM, 0);
8921 if (f >= 0 && !(fcntl(f, F_SETFL, O_NONBLOCK)))
8923 signal(SIGALRM, alarmed);
8925 recvfrom(f, b, 12, 0, &x, &l);
8932 rm -f conftest$ac_exeext
8933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8934 (eval $ac_link) 2>&5
8936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942 (exit $ac_status); }; }; then
8943 unet_cv_sys_nonblocking_posix=yes
8945 echo "$as_me: program exited with status $ac_status" >&5
8946 echo "$as_me: failed program was:" >&5
8947 sed 's/^/| /' conftest.$ac_ext >&5
8950 unet_cv_sys_nonblocking_posix=no
8952 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8955 echo "$as_me:$LINENO: result: $unet_cv_sys_nonblocking_posix" >&5
8956 echo "${ECHO_T}$unet_cv_sys_nonblocking_posix" >&6
8957 if test $unet_cv_sys_nonblocking_posix = yes; then
8959 cat >>confdefs.h <<\_ACEOF
8960 #define NBLOCK_POSIX
8964 echo "$as_me:$LINENO: checking for bsd non-blocking" >&5
8965 echo $ECHO_N "checking for bsd non-blocking... $ECHO_C" >&6
8966 if test "${unet_cv_sys_nonblocking_bsd+set}" = set; then
8967 echo $ECHO_N "(cached) $ECHO_C" >&6
8969 if test "$cross_compiling" = yes; then
8970 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8971 See \`config.log' for more details." >&5
8972 echo "$as_me: error: cannot run test program while cross compiling
8973 See \`config.log' for more details." >&2;}
8974 { (exit 1); exit 1; }; }
8976 cat >conftest.$ac_ext <<_ACEOF
8979 cat confdefs.h >>conftest.$ac_ext
8980 cat >>conftest.$ac_ext <<_ACEOF
8981 /* end confdefs.h. */
8982 #include <sys/types.h>
8983 #include <sys/socket.h>
8985 #include <sys/ioctl.h>
8986 #include <sys/file.h>
8988 $ac_cv_type_signal alarmed() { exit(1); }
8993 size_t l = sizeof(x);
8994 int f = socket(AF_INET, SOCK_DGRAM, 0);
8995 if (f >= 0 && !(fcntl(f, F_SETFL, O_NDELAY)))
8997 signal(SIGALRM, alarmed);
8999 recvfrom(f, b, 12, 0, &x, &l);
9006 rm -f conftest$ac_exeext
9007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9008 (eval $ac_link) 2>&5
9010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016 (exit $ac_status); }; }; then
9017 unet_cv_sys_nonblocking_bsd=yes
9019 echo "$as_me: program exited with status $ac_status" >&5
9020 echo "$as_me: failed program was:" >&5
9021 sed 's/^/| /' conftest.$ac_ext >&5
9024 unet_cv_sys_nonblocking_bsd=no
9026 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9029 echo "$as_me:$LINENO: result: $unet_cv_sys_nonblocking_bsd" >&5
9030 echo "${ECHO_T}$unet_cv_sys_nonblocking_bsd" >&6
9031 if test $unet_cv_sys_nonblocking_bsd = yes; then
9033 cat >>confdefs.h <<\_ACEOF
9039 cat >>confdefs.h <<\_ACEOF
9045 echo "$as_me:$LINENO: checking for posix signals" >&5
9046 echo $ECHO_N "checking for posix signals... $ECHO_C" >&6
9047 if test "${unet_cv_sys_signal_posix+set}" = set; then
9048 echo $ECHO_N "(cached) $ECHO_C" >&6
9050 cat >conftest.$ac_ext <<_ACEOF
9053 cat confdefs.h >>conftest.$ac_ext
9054 cat >>conftest.$ac_ext <<_ACEOF
9055 /* end confdefs.h. */
9060 sigaction(SIGTERM, (struct sigaction *)0L, (struct sigaction *)0L)
9065 rm -f conftest.$ac_objext
9066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9067 (eval $ac_compile) 2>conftest.er1
9069 grep -v '^ *+' conftest.er1 >conftest.err
9071 cat conftest.err >&5
9072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073 (exit $ac_status); } &&
9074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079 (exit $ac_status); }; } &&
9080 { ac_try='test -s conftest.$ac_objext'
9081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); }; }; then
9086 unet_cv_sys_signal_posix=yes
9088 echo "$as_me: failed program was:" >&5
9089 sed 's/^/| /' conftest.$ac_ext >&5
9091 unet_cv_sys_signal_posix=no
9093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9095 echo "$as_me:$LINENO: result: $unet_cv_sys_signal_posix" >&5
9096 echo "${ECHO_T}$unet_cv_sys_signal_posix" >&6
9097 if test $unet_cv_sys_signal_posix = yes; then
9099 cat >>confdefs.h <<\_ACEOF
9100 #define POSIX_SIGNALS
9104 echo "$as_me:$LINENO: checking for bsd reliable signals" >&5
9105 echo $ECHO_N "checking for bsd reliable signals... $ECHO_C" >&6
9106 if test "${unet_cv_sys_signal_bsd+set}" = set; then
9107 echo $ECHO_N "(cached) $ECHO_C" >&6
9109 if test "$cross_compiling" = yes; then
9110 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9111 See \`config.log' for more details." >&5
9112 echo "$as_me: error: cannot run test program while cross compiling
9113 See \`config.log' for more details." >&2;}
9114 { (exit 1); exit 1; }; }
9116 cat >conftest.$ac_ext <<_ACEOF
9119 cat confdefs.h >>conftest.$ac_ext
9120 cat >>conftest.$ac_ext <<_ACEOF
9121 /* end confdefs.h. */
9124 $ac_cv_type_signal handler()
9128 kill(getpid(), SIGTERM);
9133 signal(SIGTERM, handler);
9134 kill(getpid(), SIGTERM);
9138 rm -f conftest$ac_exeext
9139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9140 (eval $ac_link) 2>&5
9142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148 (exit $ac_status); }; }; then
9149 unet_cv_sys_signal_bsd=yes
9151 echo "$as_me: program exited with status $ac_status" >&5
9152 echo "$as_me: failed program was:" >&5
9153 sed 's/^/| /' conftest.$ac_ext >&5
9156 unet_cv_sys_signal_bsd=no
9158 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9161 echo "$as_me:$LINENO: result: $unet_cv_sys_signal_bsd" >&5
9162 echo "${ECHO_T}$unet_cv_sys_signal_bsd" >&6
9163 if test $unet_cv_sys_signal_bsd = yes; then
9165 cat >>confdefs.h <<\_ACEOF
9166 #define BSD_RELIABLE_SIGNALS
9171 cat >>confdefs.h <<\_ACEOF
9172 #define SYSV_UNRELIABLE_SIGNALS
9178 echo "$as_me:$LINENO: checking if the compiler understands -pipe" >&5
9179 echo $ECHO_N "checking if the compiler understands -pipe... $ECHO_C" >&6
9180 unet_cv_pipe_flags="$ac_cv_c_compiler_gnu"
9181 if test "$ac_cv_c_compiler_gnu" = no; then
9183 CFLAGS="$CFLAGS -pipe"
9184 cat >conftest.$ac_ext <<_ACEOF
9187 cat confdefs.h >>conftest.$ac_ext
9188 cat >>conftest.$ac_ext <<_ACEOF
9189 /* end confdefs.h. */
9199 rm -f conftest.$ac_objext
9200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9201 (eval $ac_compile) 2>conftest.er1
9203 grep -v '^ *+' conftest.er1 >conftest.err
9205 cat conftest.err >&5
9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); } &&
9208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); }; } &&
9214 { ac_try='test -s conftest.$ac_objext'
9215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219 (exit $ac_status); }; }; then
9220 unet_cv_pipe_flags=yes
9222 echo "$as_me: failed program was:" >&5
9223 sed 's/^/| /' conftest.$ac_ext >&5
9226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9229 echo "$as_me:$LINENO: result: $unet_cv_pipe_flags" >&5
9230 echo "${ECHO_T}$unet_cv_pipe_flags" >&6
9231 if test "$unet_cv_pipe_flags" = yes ; then
9232 x=`echo $CFLAGS | grep 'pipe' 2>/dev/null`
9233 if test "$x" = "" ; then
9234 CFLAGS="$CFLAGS -pipe"
9239 echo "$as_me:$LINENO: checking for OS-dependent information" >&5
9240 echo $ECHO_N "checking for OS-dependent information... $ECHO_C" >&6
9243 echo "$as_me:$LINENO: result: Linux ($host) found." >&5
9244 echo "${ECHO_T}Linux ($host) found." >&6
9245 unet_poll_syscall=yes
9249 echo "$as_me:$LINENO: result: Solaris ($host) found." >&5
9250 echo "${ECHO_T}Solaris ($host) found." >&6
9251 if test x"$ac_cv_header_poll_h" = xyes; then
9252 unet_poll_syscall=yes
9254 unet_poll_syscall=no
9259 echo "$as_me:$LINENO: result: Solaris ($host) found." >&5
9260 echo "${ECHO_T}Solaris ($host) found." >&6
9261 unet_poll_syscall=no
9265 echo "$as_me:$LINENO: result: OpenBSD ($host) found." >&5
9266 echo "${ECHO_T}OpenBSD ($host) found." >&6
9267 if test x"$ac_cv_header_poll_h" = xyes; then
9268 unet_poll_syscall=yes
9270 unet_poll_syscall=no
9275 echo "$as_me:$LINENO: result: Generic BSD ($host) found." >&5
9276 echo "${ECHO_T}Generic BSD ($host) found." >&6
9277 if test x"$ac_cv_header_poll_h" = xyes; then
9278 unet_poll_syscall=yes
9280 unet_poll_syscall=no
9285 echo "$as_me:$LINENO: result: Darwin (Mac OS X) ($host) found." >&5
9286 echo "${ECHO_T}Darwin (Mac OS X) ($host) found." >&6
9287 unet_poll_syscall=no
9291 echo "$as_me:$LINENO: result: Unknown system type $host found." >&5
9292 echo "${ECHO_T}Unknown system type $host found." >&6
9293 { echo "$as_me:$LINENO: WARNING: Unknown OS type; using generic routines." >&5
9294 echo "$as_me: WARNING: Unknown OS type; using generic routines." >&2;}
9295 unet_poll_syscall=no
9299 echo "$as_me:$LINENO: checking whether to enable use of poll()" >&5
9300 echo $ECHO_N "checking whether to enable use of poll()... $ECHO_C" >&6
9301 # Check whether --enable-poll or --disable-poll was given.
9302 if test "${enable_poll+set}" = set; then
9303 enableval="$enable_poll"
9304 unet_cv_enable_poll=$enable_poll
9306 if test "${unet_cv_enable_poll+set}" = set; then
9307 echo $ECHO_N "(cached) $ECHO_C" >&6
9309 unet_cv_enable_poll=$unet_poll_syscall
9314 # Force poll to be disabled if there is no poll.h
9315 if test x"$ac_cv_header_poll_h" != xyes; then
9316 unet_cv_enable_poll=no
9319 echo "$as_me:$LINENO: result: $unet_cv_enable_poll" >&5
9320 echo "${ECHO_T}$unet_cv_enable_poll" >&6
9322 if test x"$unet_cv_enable_poll" = xyes; then
9324 cat >>confdefs.h <<\_ACEOF
9328 ENGINE_C=engine_poll.c
9330 ENGINE_C=engine_select.c
9334 echo "$as_me:$LINENO: checking whether to enable debug mode" >&5
9335 echo $ECHO_N "checking whether to enable debug mode... $ECHO_C" >&6
9336 # Check whether --enable-debug or --disable-debug was given.
9337 if test "${enable_debug+set}" = set; then
9338 enableval="$enable_debug"
9339 unet_cv_enable_debug=$enable_debug
9341 if test "${unet_cv_enable_debug+set}" = set; then
9342 echo $ECHO_N "(cached) $ECHO_C" >&6
9344 unet_cv_enable_debug=no
9348 echo "$as_me:$LINENO: result: $unet_cv_enable_debug" >&5
9349 echo "${ECHO_T}$unet_cv_enable_debug" >&6
9351 if test x"$unet_cv_enable_debug" = xyes; then
9353 cat >>confdefs.h <<\_ACEOF
9359 echo "$as_me:$LINENO: checking whether to enable leak detection" >&5
9360 echo $ECHO_N "checking whether to enable leak detection... $ECHO_C" >&6
9362 # Check whether --with-leak-detect or --without-leak-detect was given.
9363 if test "${with_leak_detect+set}" = set; then
9364 withval="$with_leak_detect"
9365 unet_cv_with_leak_detect=$with_leak_detect
9367 if test "${unet_cv_with_leak_detect+set}" = set; then
9368 echo $ECHO_N "(cached) $ECHO_C" >&6
9370 unet_cv_with_leak_detect=no
9374 echo "$as_me:$LINENO: result: $unet_cv_enable_leak_detect" >&5
9375 echo "${ECHO_T}$unet_cv_enable_leak_detect" >&6
9377 if test x"$unet_cv_with_leak_detect" != xno; then
9379 CFLAGS="-DMDEBUG $CFLAGS"
9380 if test x"$unet_cv_with_leak_detect" != xyes; then
9381 LIBS="-L$unet_cv_with_leak_detect $LIBS"
9386 # Check whether --with-ipv6 or --without-ipv6 was given.
9387 if test "${with_ipv6+set}" = set; then
9388 withval="$with_ipv6"
9389 ac_cv_use_ipv6=$withval
9391 ac_cv_use_ipv6=$unet_have_sockaddr_in6
9393 echo "$as_me:$LINENO: checking whether to use IPv6" >&5
9394 echo $ECHO_N "checking whether to use IPv6... $ECHO_C" >&6
9395 if test "${ac_cv_use_ipv6+set}" = set; then
9396 echo $ECHO_N "(cached) $ECHO_C" >&6
9400 echo "$as_me:$LINENO: result: $ac_cv_use_ipv6" >&5
9401 echo "${ECHO_T}$ac_cv_use_ipv6" >&6
9402 if test x"$ac_cv_use_ipv6" != "xno" ; then
9404 cat >>confdefs.h <<\_ACEOF
9410 echo "$as_me:$LINENO: checking whether to enable asserts" >&5
9411 echo $ECHO_N "checking whether to enable asserts... $ECHO_C" >&6
9412 # Check whether --enable-asserts or --disable-asserts was given.
9413 if test "${enable_asserts+set}" = set; then
9414 enableval="$enable_asserts"
9415 unet_cv_enable_asserts=$enable_asserts
9417 if test "${unet_cv_enable_asserts+set}" = set; then
9418 echo $ECHO_N "(cached) $ECHO_C" >&6
9420 unet_cv_enable_asserts=yes
9424 echo "$as_me:$LINENO: result: $unet_cv_enable_asserts" >&5
9425 echo "${ECHO_T}$unet_cv_enable_asserts" >&6
9427 if test x"$unet_cv_enable_asserts" = xno; then
9429 cat >>confdefs.h <<\_ACEOF
9435 echo "$as_me:$LINENO: checking whether to enable debugging symbols" >&5
9436 echo $ECHO_N "checking whether to enable debugging symbols... $ECHO_C" >&6
9437 # Check whether --enable-symbols or --disable-symbols was given.
9438 if test "${enable_symbols+set}" = set; then
9439 enableval="$enable_symbols"
9440 unet_cv_enable_symbols=$enable_symbols
9442 if test "${unet_cv_enable_symbols+set}" = set; then
9443 echo $ECHO_N "(cached) $ECHO_C" >&6
9445 unet_cv_enable_symbols=yes
9449 echo "$as_me:$LINENO: result: $unet_cv_enable_symbols" >&5
9450 echo "${ECHO_T}$unet_cv_enable_symbols" >&6
9452 if test x"$unet_cv_enable_symbols" = xyes; then
9456 echo "$as_me:$LINENO: checking whether to enable profiling support (gprof)" >&5
9457 echo $ECHO_N "checking whether to enable profiling support (gprof)... $ECHO_C" >&6
9458 # Check whether --enable-profile or --disable-profile was given.
9459 if test "${enable_profile+set}" = set; then
9460 enableval="$enable_profile"
9461 unet_cv_enable_profile=$enable_profile
9463 if test "${unet_cv_enable_profile+set}" = set; then
9464 echo $ECHO_N "(cached) $ECHO_C" >&6
9466 unet_cv_enable_profile=no
9470 echo "$as_me:$LINENO: result: $unet_cv_enable_profile" >&5
9471 echo "${ECHO_T}$unet_cv_enable_profile" >&6
9473 if test x"$unet_cv_enable_profile" = xyes; then
9474 CFLAGS="-pg $CFLAGS"
9477 echo "$as_me:$LINENO: checking whether to enable pedantic compiler warnings" >&5
9478 echo $ECHO_N "checking whether to enable pedantic compiler warnings... $ECHO_C" >&6
9479 # Check whether --enable-pedantic or --disable-pedantic was given.
9480 if test "${enable_pedantic+set}" = set; then
9481 enableval="$enable_pedantic"
9482 unet_cv_enable_pedantic=$enable_pedantic
9484 if test "${unet_cv_enable_pedantic+set}" = set; then
9485 echo $ECHO_N "(cached) $ECHO_C" >&6
9487 unet_cv_enable_pedantic=no
9491 echo "$as_me:$LINENO: result: $unet_cv_enable_pedantic" >&5
9492 echo "${ECHO_T}$unet_cv_enable_pedantic" >&6
9494 if test x"$unet_cv_enable_pedantic" = xyes; then
9495 CFLAGS="-pedantic $CFLAGS"
9498 echo "$as_me:$LINENO: checking whether to enable compiler warnings" >&5
9499 echo $ECHO_N "checking whether to enable compiler warnings... $ECHO_C" >&6
9500 # Check whether --enable-warnings or --disable-warnings was given.
9501 if test "${enable_warnings+set}" = set; then
9502 enableval="$enable_warnings"
9503 unet_cv_enable_warnings=$enable_warnings
9505 if test "${unet_cv_enable_warnings+set}" = set; then
9506 echo $ECHO_N "(cached) $ECHO_C" >&6
9508 unet_cv_enable_warnings=no
9512 echo "$as_me:$LINENO: result: $unet_cv_enable_warnings" >&5
9513 echo "${ECHO_T}$unet_cv_enable_warnings" >&6
9515 if test x"$unet_cv_enable_warnings" = xyes; then
9516 CFLAGS="-Wall $CFLAGS"
9519 echo "$as_me:$LINENO: checking whether to enable inlining for a few critical functions" >&5
9520 echo $ECHO_N "checking whether to enable inlining for a few critical functions... $ECHO_C" >&6
9521 # Check whether --enable-inlines or --disable-inlines was given.
9522 if test "${enable_inlines+set}" = set; then
9523 enableval="$enable_inlines"
9524 unet_cv_enable_inlines=$enable_inlines
9526 if test "${unet_cv_enable_inlines+set}" = set; then
9527 echo $ECHO_N "(cached) $ECHO_C" >&6
9529 unet_cv_enable_inlines=yes
9533 echo "$as_me:$LINENO: result: $unet_cv_enable_inlines" >&5
9534 echo "${ECHO_T}$unet_cv_enable_inlines" >&6
9536 if test x"$unet_cv_enable_inlines" = xyes; then
9538 cat >>confdefs.h <<\_ACEOF
9539 #define FORCEINLINE 1
9544 echo "$as_me:$LINENO: checking whether to enable the /dev/poll event engine" >&5
9545 echo $ECHO_N "checking whether to enable the /dev/poll event engine... $ECHO_C" >&6
9546 # Check whether --enable-devpoll or --disable-devpoll was given.
9547 if test "${enable_devpoll+set}" = set; then
9548 enableval="$enable_devpoll"
9549 unet_cv_enable_devpoll=$enable_devpoll
9551 if test "${unet_cv_enable_devpoll+set}" = set; then
9552 echo $ECHO_N "(cached) $ECHO_C" >&6
9554 unet_cv_enable_devpoll=yes
9559 if test x"$ac_cv_header_sys_devpoll_h" = xno; then
9560 unet_cv_enable_devpoll=no
9563 echo "$as_me:$LINENO: result: $unet_cv_enable_devpoll" >&5
9564 echo "${ECHO_T}$unet_cv_enable_devpoll" >&6
9566 if test x"$unet_cv_enable_devpoll" != xno; then
9568 cat >>confdefs.h <<\_ACEOF
9569 #define USE_DEVPOLL 1
9572 ENGINE_C="engine_devpoll.c $ENGINE_C"
9575 echo "$as_me:$LINENO: checking whether to enable the kqueue event engine" >&5
9576 echo $ECHO_N "checking whether to enable the kqueue event engine... $ECHO_C" >&6
9577 # Check whether --enable-kqueue or --disable-kqueue was given.
9578 if test "${enable_kqueue+set}" = set; then
9579 enableval="$enable_kqueue"
9580 unet_cv_enable_kqueue=$enable_kqueue
9582 if test "${unet_cv_enable_kqueue+set}" = set; then
9583 echo $ECHO_N "(cached) $ECHO_C" >&6
9585 unet_cv_enable_kqueue=yes
9590 if test x"$ac_cv_header_sys_event_h" = xno -o x"$ac_cv_func_kqueue" = xno; then
9591 unet_cv_enable_kqueue=no
9594 echo "$as_me:$LINENO: result: $unet_cv_enable_kqueue" >&5
9595 echo "${ECHO_T}$unet_cv_enable_kqueue" >&6
9597 if test x"$unet_cv_enable_kqueue" != xno; then
9599 cat >>confdefs.h <<\_ACEOF
9600 #define USE_KQUEUE 1
9603 ENGINE_C="engine_kqueue.c $ENGINE_C"
9606 echo "$as_me:$LINENO: checking whether to enable the epoll event engine" >&5
9607 echo $ECHO_N "checking whether to enable the epoll event engine... $ECHO_C" >&6
9608 # Check whether --enable-epoll or --disable-epoll was given.
9609 if test "${enable_epoll+set}" = set; then
9610 enableval="$enable_epoll"
9611 unet_cv_enable_epoll=$enable_epoll
9613 if test "${unet_cv_enable_epoll+set}" = set; then
9614 echo $ECHO_N "(cached) $ECHO_C" >&6
9616 unet_cv_enable_epoll=yes
9621 if test x"$ac_cv_header_sys_epoll_h" = xno -o x"$ac_cv_func_epoll" = xno; then
9622 unet_cv_enable_epoll=no
9625 echo "$as_me:$LINENO: result: $unet_cv_enable_epoll" >&5
9626 echo "${ECHO_T}$unet_cv_enable_epoll" >&6
9628 if test x"$unet_cv_enable_epoll" != xno; then
9629 echo "$as_me:$LINENO: checking whether epoll functions are properly defined" >&5
9630 echo $ECHO_N "checking whether epoll functions are properly defined... $ECHO_C" >&6
9631 cat >conftest.$ac_ext <<_ACEOF
9634 cat confdefs.h >>conftest.$ac_ext
9635 cat >>conftest.$ac_ext <<_ACEOF
9636 /* end confdefs.h. */
9637 #include <sys/epoll.h>
9646 rm -f conftest.$ac_objext conftest$ac_exeext
9647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9648 (eval $ac_link) 2>conftest.er1
9650 grep -v '^ *+' conftest.er1 >conftest.err
9652 cat conftest.err >&5
9653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654 (exit $ac_status); } &&
9655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); }; } &&
9661 { ac_try='test -s conftest$ac_exeext'
9662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666 (exit $ac_status); }; }; then
9667 echo "$as_me:$LINENO: result: yes" >&5
9668 echo "${ECHO_T}yes" >&6
9670 echo "$as_me: failed program was:" >&5
9671 sed 's/^/| /' conftest.$ac_ext >&5
9673 echo "$as_me:$LINENO: result: no" >&5
9674 echo "${ECHO_T}no" >&6
9676 cat >>confdefs.h <<\_ACEOF
9677 #define EPOLL_NEED_BODY 1
9681 rm -f conftest.err conftest.$ac_objext \
9682 conftest$ac_exeext conftest.$ac_ext
9684 cat >>confdefs.h <<\_ACEOF
9688 ENGINE_C="engine_epoll.c $ENGINE_C"
9691 echo "$as_me:$LINENO: checking for va_copy" >&5
9692 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
9693 if test "${unet_cv_c_va_copy+set}" = set; then
9694 echo $ECHO_N "(cached) $ECHO_C" >&6
9696 cat >conftest.$ac_ext <<_ACEOF
9699 cat confdefs.h >>conftest.$ac_ext
9700 cat >>conftest.$ac_ext <<_ACEOF
9701 /* end confdefs.h. */
9706 va_list ap1, ap2; va_copy(ap1, ap2);
9711 rm -f conftest.$ac_objext conftest$ac_exeext
9712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9713 (eval $ac_link) 2>conftest.er1
9715 grep -v '^ *+' conftest.er1 >conftest.err
9717 cat conftest.err >&5
9718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719 (exit $ac_status); } &&
9720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725 (exit $ac_status); }; } &&
9726 { ac_try='test -s conftest$ac_exeext'
9727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 (exit $ac_status); }; }; then
9732 unet_cv_c_va_copy="yes"
9734 echo "$as_me: failed program was:" >&5
9735 sed 's/^/| /' conftest.$ac_ext >&5
9737 unet_cv_c_va_copy="no"
9740 rm -f conftest.err conftest.$ac_objext \
9741 conftest$ac_exeext conftest.$ac_ext
9743 echo "$as_me:$LINENO: result: $unet_cv_c_va_copy" >&5
9744 echo "${ECHO_T}$unet_cv_c_va_copy" >&6
9745 if test "$unet_cv_c_va_copy" = "yes" ; then
9747 cat >>confdefs.h <<\_ACEOF
9748 #define HAVE_VA_COPY 1
9753 echo "$as_me:$LINENO: checking for __va_copy" >&5
9754 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
9755 if test "${unet_cv_c___va_copy+set}" = set; then
9756 echo $ECHO_N "(cached) $ECHO_C" >&6
9758 cat >conftest.$ac_ext <<_ACEOF
9761 cat confdefs.h >>conftest.$ac_ext
9762 cat >>conftest.$ac_ext <<_ACEOF
9763 /* end confdefs.h. */
9768 va_list ap1, ap2; __va_copy(ap1, ap2);
9773 rm -f conftest.$ac_objext conftest$ac_exeext
9774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9775 (eval $ac_link) 2>conftest.er1
9777 grep -v '^ *+' conftest.er1 >conftest.err
9779 cat conftest.err >&5
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); } &&
9782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); }; } &&
9788 { ac_try='test -s conftest$ac_exeext'
9789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793 (exit $ac_status); }; }; then
9794 unet_cv_c___va_copy="yes"
9796 echo "$as_me: failed program was:" >&5
9797 sed 's/^/| /' conftest.$ac_ext >&5
9799 unet_cv_c___va_copy="no"
9802 rm -f conftest.err conftest.$ac_objext \
9803 conftest$ac_exeext conftest.$ac_ext
9805 echo "$as_me:$LINENO: result: $unet_cv_c___va_copy" >&5
9806 echo "${ECHO_T}$unet_cv_c___va_copy" >&6
9807 if test "$unet_cv_c___va_copy" = "yes" ; then
9809 cat >>confdefs.h <<\_ACEOF
9810 #define HAVE___VA_COPY 1
9815 echo "$as_me:$LINENO: checking what name to give the symlink" >&5
9816 echo $ECHO_N "checking what name to give the symlink... $ECHO_C" >&6
9818 # Check whether --with-symlink or --without-symlink was given.
9819 if test "${with_symlink+set}" = set; then
9820 withval="$with_symlink"
9821 unet_cv_with_symlink=$with_symlink
9823 if test "${unet_cv_with_symlink+set}" = set; then
9824 echo $ECHO_N "(cached) $ECHO_C" >&6
9826 unet_cv_with_symlink="ircd"
9831 if test x"$unet_cv_with_symlink" = xyes; then
9832 unet_cv_with_symlink="ircd"
9835 echo "$as_me:$LINENO: result: $unet_cv_with_symlink" >&5
9836 echo "${ECHO_T}$unet_cv_with_symlink" >&6
9838 if test x"$unet_cv_with_symlink" = xno; then
9839 INSTALL_RULE=install-no-symlink
9842 INSTALL_RULE=install-with-symlink
9843 SYMLINK=$unet_cv_with_symlink
9848 echo "$as_me:$LINENO: checking what permissions to set on the installed binary" >&5
9849 echo $ECHO_N "checking what permissions to set on the installed binary... $ECHO_C" >&6
9851 # Check whether --with-mode or --without-mode was given.
9852 if test "${with_mode+set}" = set; then
9853 withval="$with_mode"
9854 unet_cv_with_mode=$with_mode
9856 if test "${unet_cv_with_mode+set}" = set; then
9857 echo $ECHO_N "(cached) $ECHO_C" >&6
9859 unet_cv_with_mode=711
9864 if test x"$unet_cv_with_mode" = xyes -o x"$unet_cv_with_mode" = xno; then
9865 unet_cv_with_mode=711
9868 echo "$as_me:$LINENO: result: $unet_cv_with_mode" >&5
9869 echo "${ECHO_T}$unet_cv_with_mode" >&6
9871 IRCDMODE=$unet_cv_with_mode
9874 unet_uid=`id | sed -e 's/.*uid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
9875 echo "$as_me:$LINENO: checking which user should own the installed binary" >&5
9876 echo $ECHO_N "checking which user should own the installed binary... $ECHO_C" >&6
9878 # Check whether --with-owner or --without-owner was given.
9879 if test "${with_owner+set}" = set; then
9880 withval="$with_owner"
9881 unet_cv_with_owner=$with_owner
9883 if test "${unet_cv_with_owner+set}" = set; then
9884 echo $ECHO_N "(cached) $ECHO_C" >&6
9886 unet_cv_with_owner=$unet_uid
9891 if test x"$unet_cv_with_owner" = xyes -o x"$unet_cv_with_owner" = xno; then
9892 unet_cv_with_owner=$unet_uid
9895 echo "$as_me:$LINENO: result: $unet_cv_with_owner" >&5
9896 echo "${ECHO_T}$unet_cv_with_owner" >&6
9898 IRCDOWN=$unet_cv_with_owner
9901 unet_gid=`id | sed -e 's/.*gid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
9902 echo "$as_me:$LINENO: checking which group should own the installed binary" >&5
9903 echo $ECHO_N "checking which group should own the installed binary... $ECHO_C" >&6
9905 # Check whether --with-group or --without-group was given.
9906 if test "${with_group+set}" = set; then
9907 withval="$with_group"
9908 unet_cv_with_group=$with_group
9910 if test "${unet_cv_with_group+set}" = set; then
9911 echo $ECHO_N "(cached) $ECHO_C" >&6
9913 unet_cv_with_group=$unet_gid
9918 if test x"$unet_cv_with_group" = xyes -o x"$unet_cv_with_group" = xno; then
9919 unet_cv_with_group=$unet_gid
9922 echo "$as_me:$LINENO: result: $unet_cv_with_group" >&5
9923 echo "${ECHO_T}$unet_cv_with_group" >&6
9925 IRCDGRP=$unet_cv_with_group
9929 if test -f /etc/resolv.conf; then
9930 unet_domain=`awk '/^domain/ { print $2; exit }' /etc/resolv.conf`
9931 if test x"$unet_domain" = x; then
9932 unet_domain=`awk '/^search/ { print $2; exit }' /etc/resolv.conf`
9935 echo "$as_me:$LINENO: checking for site domain name" >&5
9936 echo $ECHO_N "checking for site domain name... $ECHO_C" >&6
9938 # Check whether --with-domain or --without-domain was given.
9939 if test "${with_domain+set}" = set; then
9940 withval="$with_domain"
9941 unet_cv_with_domain=$with_domain
9943 if test "${unet_cv_with_domain+set}" = set; then
9944 echo $ECHO_N "(cached) $ECHO_C" >&6
9946 unet_cv_with_domain=$unet_domain
9951 if test x"$unet_cv_with_domain" = xyes -o x"$unet_cv_with_domain" = xno; then
9952 unet_cv_with_domain=$unet_domain
9954 if test x"$unet_cv_with_domain" = xno; then
9955 { { echo "$as_me:$LINENO: error: Unable to determine server DNS domain; use --with-domain to set it" >&5
9956 echo "$as_me: error: Unable to determine server DNS domain; use --with-domain to set it" >&2;}
9957 { (exit 1); exit 1; }; }
9960 echo "$as_me:$LINENO: result: $unet_cv_with_domain" >&5
9961 echo "${ECHO_T}$unet_cv_with_domain" >&6
9964 cat >>confdefs.h <<_ACEOF
9965 #define DOMAINNAME "*$unet_cv_with_domain"
9969 echo "$as_me:$LINENO: checking if chroot operation is desired" >&5
9970 echo $ECHO_N "checking if chroot operation is desired... $ECHO_C" >&6
9972 # Check whether --with-chroot or --without-chroot was given.
9973 if test "${with_chroot+set}" = set; then
9974 withval="$with_chroot"
9975 unet_cv_with_chroot=$with_chroot
9977 if test "${unet_cv_with_chroot+set}" = set; then
9978 echo $ECHO_N "(cached) $ECHO_C" >&6
9980 unet_cv_with_chroot=no
9985 if test x"$unet_cv_with_chroot" = xyes; then
9986 { { echo "$as_me:$LINENO: error: --with-chroot given with no directory. See doc/readme.chroot." >&5
9987 echo "$as_me: error: --with-chroot given with no directory. See doc/readme.chroot." >&2;}
9988 { (exit 1); exit 1; }; }
9991 # Ensure there are no trailing /'s to mess us up
9992 unet_cv_with_chroot=`echo "$unet_cv_with_chroot" | sed 's%/*$%%'`
9994 echo "$as_me:$LINENO: result: $unet_cv_with_chroot" >&5
9995 echo "${ECHO_T}$unet_cv_with_chroot" >&6
9997 # Deal with the annoying value "NONE" here
9998 unet_save_prefix=$prefix
9999 if test x"$prefix" = xNONE; then
10000 prefix=$ac_default_prefix
10005 unet_save_exec_prefix=$exec_prefix
10006 if test x"$exec_prefix" = xNONE; then
10007 exec_prefix=$prefix
10009 exec_prefix=$exec_prefix
10012 # Obtain the actual interesting directories
10013 unet_bindir=`eval echo "$bindir"`
10014 unet_libdir=`eval echo "$libdir"`
10016 # Restore the original settings of $prefix and $exec_prefix
10017 prefix=$unet_save_prefix
10018 exec_prefix=$unet_save_exec_prefix
10020 echo "$as_me:$LINENO: checking where the binary will be for /restart" >&5
10021 echo $ECHO_N "checking where the binary will be for /restart... $ECHO_C" >&6
10022 if test x"$unet_cv_with_symlink" = xno; then
10023 unet_spath="$unet_bindir/ircd"
10025 unet_spath="$unet_bindir/$unet_cv_with_symlink"
10027 echo "$as_me:$LINENO: result: $unet_spath" >&5
10028 echo "${ECHO_T}$unet_spath" >&6
10030 if test x"$unet_cv_with_chroot" != xno; then
10031 if echo "$unet_spath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10032 unet_spath=`echo "$unet_spath" | sed "s%^$unet_cv_with_chroot%%"`
10034 { echo "$as_me:$LINENO: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&5
10035 echo "$as_me: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&2;}
10040 cat >>confdefs.h <<_ACEOF
10041 #define SPATH "$unet_spath"
10045 echo "$as_me:$LINENO: checking what the data directory should be" >&5
10046 echo $ECHO_N "checking what the data directory should be... $ECHO_C" >&6
10048 # Check whether --with-dpath or --without-dpath was given.
10049 if test "${with_dpath+set}" = set; then
10050 withval="$with_dpath"
10051 unet_cv_with_dpath=$with_dpath
10053 if test "${unet_cv_with_dpath+set}" = set; then
10054 echo $ECHO_N "(cached) $ECHO_C" >&6
10056 unet_cv_with_dpath=$unet_libdir
10061 if test x"$unet_cv_with_dpath" = xyes -o x"$unet_cv_with_dpath" = xno; then
10062 unet_cv_with_dpath=$unet_libdir
10065 # Ensure there are no trailing /'s to mess us up
10066 unet_cv_with_dpath=`echo "$unet_cv_with_dpath" | sed 's%/*$%%'`
10068 echo "$as_me:$LINENO: result: $unet_cv_with_dpath" >&5
10069 echo "${ECHO_T}$unet_cv_with_dpath" >&6
10071 if test x"$unet_cv_with_chroot" != xno; then
10072 if echo "$unet_cv_with_dpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10073 unet_dpath=`echo "$unet_cv_with_dpath" | sed "s%^$unet_cv_with_chroot%%"`
10075 { { echo "$as_me:$LINENO: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&5
10076 echo "$as_me: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&2;}
10077 { (exit 1); exit 1; }; }
10080 unet_dpath=$unet_cv_with_dpath
10084 cat >>confdefs.h <<_ACEOF
10085 #define DPATH "$unet_dpath"
10089 DPATH=$unet_cv_with_dpath
10092 echo "$as_me:$LINENO: checking where the default configuration file resides" >&5
10093 echo $ECHO_N "checking where the default configuration file resides... $ECHO_C" >&6
10095 # Check whether --with-cpath or --without-cpath was given.
10096 if test "${with_cpath+set}" = set; then
10097 withval="$with_cpath"
10098 unet_cv_with_cpath=$with_cpath
10100 if test "${unet_cv_with_cpath+set}" = set; then
10101 echo $ECHO_N "(cached) $ECHO_C" >&6
10103 unet_cv_with_cpath="ircd.conf"
10108 if test x"$unet_cv_with_cpath" = xyes -o x"$unet_cv_with_cpath" = xno; then
10109 unet_cv_with_cpath="ircd.conf"
10112 echo "$as_me:$LINENO: result: $unet_cv_with_cpath" >&5
10113 echo "${ECHO_T}$unet_cv_with_cpath" >&6
10115 if echo "$unet_cv_with_cpath" | grep '^/' > /dev/null 2>&1; then
10116 # Absolute path; check against chroot stuff
10117 if test x"$unet_cv_with_chroot" != xno; then
10118 if echo "$unet_cv_with_cpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10119 unet_cpath=`echo "$unet_cv_with_cpath" | sed "s%^$unet_cv_with_chroot%%"`
10121 { { echo "$as_me:$LINENO: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&5
10122 echo "$as_me: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&2;}
10123 { (exit 1); exit 1; }; }
10126 unet_cpath=$unet_cv_with_cpath
10129 unet_cpath=$unet_cv_with_cpath
10133 cat >>confdefs.h <<_ACEOF
10134 #define CPATH "$unet_cpath"
10138 echo "$as_me:$LINENO: checking where to put the debugging log if debugging enabled" >&5
10139 echo $ECHO_N "checking where to put the debugging log if debugging enabled... $ECHO_C" >&6
10141 # Check whether --with-lpath or --without-lpath was given.
10142 if test "${with_lpath+set}" = set; then
10143 withval="$with_lpath"
10144 unet_cv_with_lpath=$with_lpath
10146 if test "${unet_cv_with_lpath+set}" = set; then
10147 echo $ECHO_N "(cached) $ECHO_C" >&6
10149 unet_cv_with_lpath="ircd.log"
10154 if test x"$unet_cv_with_lpath" = xyes -o x"$unet_cv_with_lpath" = xno; then
10155 unet_cv_with_lpath="ircd.log"
10158 echo "$as_me:$LINENO: result: $unet_cv_with_lpath" >&5
10159 echo "${ECHO_T}$unet_cv_with_lpath" >&6
10161 if echo "$unet_cv_with_lpath" | grep '^/' > /dev/null 2>&1; then
10162 # Absolute path; check against chroot stuff
10163 if test x"$unet_cv_with_chroot" != xno; then
10164 if echo "$unet_cv_with_lpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10165 unet_lpath=`echo "$unet_cv_with_lpath" | sed "s%^$unet_cv_with_chroot%%"`
10167 { 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
10168 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;}
10169 unet_cv_with_lpath="ircd.log"
10170 unet_lpath="ircd.log"
10173 unet_lpath=$unet_cv_with_lpath
10176 unet_lpath=$unet_cv_with_lpath
10180 cat >>confdefs.h <<_ACEOF
10181 #define LPATH "$unet_lpath"
10185 unet_maxcon=`ulimit -Hn`
10186 if test x"$unet_maxcon" = xunlimited; then
10187 unet_maxcon=`ulimit -Sn`
10189 unet_maxcon=`expr $unet_maxcon - 4`
10190 echo "$as_me:$LINENO: checking max connections" >&5
10191 echo $ECHO_N "checking max connections... $ECHO_C" >&6
10193 # Check whether --with-maxcon or --without-maxcon was given.
10194 if test "${with_maxcon+set}" = set; then
10195 withval="$with_maxcon"
10196 unet_cv_with_maxcon=$with_maxcon
10198 if test "${unet_cv_with_maxcon+set}" = set; then
10199 echo $ECHO_N "(cached) $ECHO_C" >&6
10201 unet_cv_with_maxcon=$unet_maxcon
10206 if test x"$unet_cv_with_maxcon" = xyes -o x"$unet_cv_with_maxcon" = xno; then
10207 unet_cv_with_maxcon=$unet_maxcon
10210 echo "$as_me:$LINENO: result: $unet_cv_with_maxcon" >&5
10211 echo "${ECHO_T}$unet_cv_with_maxcon" >&6
10214 cat >>confdefs.h <<_ACEOF
10215 #define MAXCONNECTIONS $unet_cv_with_maxcon
10219 ac_config_files="$ac_config_files Makefile ircd/Makefile ircd/test/Makefile doc/Makefile"
10220 ac_config_commands="$ac_config_commands default"
10221 cat >confcache <<\_ACEOF
10222 # This file is a shell script that caches the results of configure
10223 # tests run on this system so they can be shared between configure
10224 # scripts and configure runs, see configure's option --config-cache.
10225 # It is not useful on other systems. If it contains results you don't
10226 # want to keep, you may remove or edit it.
10228 # config.status only pays attention to the cache file if you give it
10229 # the --recheck option to rerun configure.
10231 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10232 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10233 # following values.
10237 # The following way of writing the cache mishandles newlines in values,
10238 # but we know of no workaround that is simple, portable, and efficient.
10239 # So, don't put newlines in cache variables' values.
10240 # Ultrix sh set writes to stderr and can't be redirected directly,
10241 # and sets the high bit in the cache file unless we assign to the vars.
10244 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10246 # `set' does not quote correctly, so add quotes (double-quote
10247 # substitution turns \\\\ into \\, and sed turns \\ into \).
10250 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10253 # `set' quotes correctly as required by POSIX, so do not add quotes.
10255 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10262 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10264 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10266 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10267 if test -w $cache_file; then
10268 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10269 cat confcache >$cache_file
10271 echo "not updating unwritable cache $cache_file"
10276 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10277 # Let make expand exec_prefix.
10278 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10280 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10281 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10282 # trailing colons and then remove the whole line if VPATH becomes empty
10283 # (actually we leave an empty line to preserve line numbers).
10284 if test "x$srcdir" = x.; then
10285 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10286 s/:*\$(srcdir):*/:/;
10287 s/:*\${srcdir}:*/:/;
10289 s/^\([^=]*=[ ]*\):*/\1/;
10295 DEFS=-DHAVE_CONFIG_H
10299 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10300 # 1. Remove the extension, and $U if already installed.
10301 ac_i=`echo "$ac_i" |
10302 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10304 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10305 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10307 LIBOBJS=$ac_libobjs
10309 LTLIBOBJS=$ac_ltlibobjs
10313 : ${CONFIG_STATUS=./config.status}
10314 ac_clean_files_save=$ac_clean_files
10315 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10316 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10317 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10318 cat >$CONFIG_STATUS <<_ACEOF
10320 # Generated by $as_me.
10321 # Run this file to recreate the current configuration.
10322 # Compiler output produced by configure, useful for debugging
10323 # configure, is in config.log if it exists.
10326 ac_cs_recheck=false
10328 SHELL=\${CONFIG_SHELL-$SHELL}
10331 cat >>$CONFIG_STATUS <<\_ACEOF
10332 ## --------------------- ##
10333 ## M4sh Initialization. ##
10334 ## --------------------- ##
10336 # Be Bourne compatible
10337 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10340 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10341 # is contrary to our usage. Disable this feature.
10342 alias -g '${1+"$@"}'='"$@"'
10343 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10346 DUALCASE=1; export DUALCASE # for MKS sh
10348 # Support unset when possible.
10349 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10356 # Work around bugs in pre-3.0 UWIN ksh.
10357 $as_unset ENV MAIL MAILPATH
10364 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10365 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10366 LC_TELEPHONE LC_TIME
10368 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10369 eval $as_var=C; export $as_var
10375 # Required to use basename.
10376 if expr a : '\(a\)' >/dev/null 2>&1; then
10382 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10383 as_basename=basename
10389 # Name of the executable.
10390 as_me=`$as_basename "$0" ||
10391 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10392 X"$0" : 'X\(//\)$' \| \
10393 X"$0" : 'X\(/\)$' \| \
10394 . : '\(.\)' 2>/dev/null ||
10396 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10397 /^X\/\(\/\/\)$/{ s//\1/; q; }
10398 /^X\/\(\/\).*/{ s//\1/; q; }
10402 # PATH needs CR, and LINENO needs CR and PATH.
10403 # Avoid depending upon Character Ranges.
10404 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10405 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10406 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10407 as_cr_digits='0123456789'
10408 as_cr_alnum=$as_cr_Letters$as_cr_digits
10410 # The user is always right.
10411 if test "${PATH_SEPARATOR+set}" != set; then
10412 echo "#! /bin/sh" >conf$$.sh
10413 echo "exit 0" >>conf$$.sh
10415 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10424 as_lineno_1=$LINENO
10425 as_lineno_2=$LINENO
10426 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10427 test "x$as_lineno_1" != "x$as_lineno_2" &&
10428 test "x$as_lineno_3" = "x$as_lineno_2" || {
10429 # Find who we are. Look in the path if we contain no path at all
10432 *[\\/]* ) as_myself=$0 ;;
10433 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10434 for as_dir in $PATH
10437 test -z "$as_dir" && as_dir=.
10438 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10443 # We did not find ourselves, most probably we were run as `sh COMMAND'
10444 # in which case we are not to be found in the path.
10445 if test "x$as_myself" = x; then
10448 if test ! -f "$as_myself"; then
10449 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10450 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10451 { (exit 1); exit 1; }; }
10453 case $CONFIG_SHELL in
10455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10456 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10459 test -z "$as_dir" && as_dir=.
10460 for as_base in sh bash ksh sh5; do
10463 if ("$as_dir/$as_base" -c '
10464 as_lineno_1=$LINENO
10465 as_lineno_2=$LINENO
10466 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10467 test "x$as_lineno_1" != "x$as_lineno_2" &&
10468 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
10469 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10470 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10471 CONFIG_SHELL=$as_dir/$as_base
10472 export CONFIG_SHELL
10473 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10481 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10482 # uniformly replaced by the line number. The first 'sed' inserts a
10483 # line-number line before each line; the second 'sed' does the real
10484 # work. The second script uses 'N' to pair each line-number line
10485 # with the numbered line, and appends trailing '-' during
10486 # substitution so that $LINENO is not a special case at line end.
10487 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10488 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
10489 sed '=' <$as_myself |
10494 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10497 s,^['$as_cr_digits']*\n,,
10498 ' >$as_me.lineno &&
10499 chmod +x $as_me.lineno ||
10500 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10501 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10502 { (exit 1); exit 1; }; }
10504 # Don't try to exec as it changes $[0], causing all sort of problems
10505 # (the dirname of $[0] is not the place where we might find the
10506 # original and so on. Autoconf is especially sensible to this).
10508 # Exit status is that of the last command.
10513 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10514 *c*,-n*) ECHO_N= ECHO_C='
10516 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10517 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10520 if expr a : '\(a\)' >/dev/null 2>&1; then
10526 rm -f conf$$ conf$$.exe conf$$.file
10528 if ln -s conf$$.file conf$$ 2>/dev/null; then
10529 # We could just check for DJGPP; but this test a) works b) is more generic
10530 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10531 if test -f conf$$.exe; then
10532 # Don't use ln at all; we don't have any links
10537 elif ln conf$$.file conf$$ 2>/dev/null; then
10542 rm -f conf$$ conf$$.exe conf$$.file
10544 if mkdir -p . 2>/dev/null; then
10547 test -d ./-p && rmdir ./-p
10551 as_executable_p="test -f"
10553 # Sed expression to map a string onto a valid CPP name.
10554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10556 # Sed expression to map a string onto a valid variable name.
10557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10561 # We need space, tab and new line, in precisely that order.
10571 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10572 # report actual input values of CONFIG_FILES etc. instead of their
10573 # values after options handling. Logging --version etc. is OK.
10577 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10578 ## Running $as_me. ##
10583 This file was extended by $as_me, which was
10584 generated by GNU Autoconf 2.59. Invocation command line was
10586 CONFIG_FILES = $CONFIG_FILES
10587 CONFIG_HEADERS = $CONFIG_HEADERS
10588 CONFIG_LINKS = $CONFIG_LINKS
10589 CONFIG_COMMANDS = $CONFIG_COMMANDS
10593 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10597 # Files that config.status was made for.
10598 if test -n "$ac_config_files"; then
10599 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10602 if test -n "$ac_config_headers"; then
10603 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10606 if test -n "$ac_config_links"; then
10607 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10610 if test -n "$ac_config_commands"; then
10611 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10614 cat >>$CONFIG_STATUS <<\_ACEOF
10617 \`$as_me' instantiates files from templates according to the
10618 current configuration.
10620 Usage: $0 [OPTIONS] [FILE]...
10622 -h, --help print this help, then exit
10623 -V, --version print version number, then exit
10624 -q, --quiet do not print progress messages
10625 -d, --debug don't remove temporary files
10626 --recheck update $as_me by reconfiguring in the same conditions
10627 --file=FILE[:TEMPLATE]
10628 instantiate the configuration file FILE
10629 --header=FILE[:TEMPLATE]
10630 instantiate the configuration header FILE
10632 Configuration files:
10635 Configuration headers:
10638 Configuration commands:
10641 Report bugs to <bug-autoconf@gnu.org>."
10644 cat >>$CONFIG_STATUS <<_ACEOF
10647 configured by $0, generated by GNU Autoconf 2.59,
10648 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10650 Copyright (C) 2003 Free Software Foundation, Inc.
10651 This config.status script is free software; the Free Software Foundation
10652 gives unlimited permission to copy, distribute and modify it."
10657 cat >>$CONFIG_STATUS <<\_ACEOF
10658 # If no file are specified by the user, then we need to provide default
10659 # value. By we need to know if files were specified by the user.
10665 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10666 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10674 *) # This is not an option, so the user has probably given explicit
10677 ac_need_defaults=false;;
10681 # Handling of the options.
10683 cat >>$CONFIG_STATUS <<\_ACEOF
10684 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10686 --version | --vers* | -V )
10687 echo "$ac_cs_version"; exit 0 ;;
10689 # Conflict between --help and --header
10690 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10691 Try \`$0 --help' for more information." >&5
10692 echo "$as_me: error: ambiguous option: $1
10693 Try \`$0 --help' for more information." >&2;}
10694 { (exit 1); exit 1; }; };;
10695 --help | --hel | -h )
10696 echo "$ac_cs_usage"; exit 0 ;;
10697 --debug | --d* | -d )
10699 --file | --fil | --fi | --f )
10701 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10702 ac_need_defaults=false;;
10703 --header | --heade | --head | --hea )
10705 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10706 ac_need_defaults=false;;
10707 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10708 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10711 # This is an error.
10712 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10713 Try \`$0 --help' for more information." >&5
10714 echo "$as_me: error: unrecognized option: $1
10715 Try \`$0 --help' for more information." >&2;}
10716 { (exit 1); exit 1; }; } ;;
10718 *) ac_config_targets="$ac_config_targets $1" ;;
10724 ac_configure_extra_args=
10726 if $ac_cs_silent; then
10728 ac_configure_extra_args="$ac_configure_extra_args --silent"
10732 cat >>$CONFIG_STATUS <<_ACEOF
10733 if \$ac_cs_recheck; then
10734 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10735 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10744 cat >>$CONFIG_STATUS <<\_ACEOF
10745 for ac_config_target in $ac_config_targets
10747 case "$ac_config_target" in
10748 # Handling of arguments.
10749 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10750 "ircd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ircd/Makefile" ;;
10751 "ircd/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES ircd/test/Makefile" ;;
10752 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10753 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
10754 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10755 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10756 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10757 { (exit 1); exit 1; }; };;
10761 # If the user did not use the arguments to specify the items to instantiate,
10762 # then the envvar interface is used. Set only those that are not.
10763 # We use the long form for the default assignment because of an extremely
10764 # bizarre bug on SunOS 4.1.3.
10765 if $ac_need_defaults; then
10766 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10767 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10768 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10771 # Have a temporary directory for convenience. Make it in the build tree
10772 # simply because there is no reason to put it here, and in addition,
10773 # creating and moving files from /tmp can sometimes cause problems.
10774 # Create a temporary directory, and hook for its removal unless debugging.
10777 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10778 trap '{ (exit 1); exit 1; }' 1 2 13 15
10781 # Create a (secure) tmp directory for tmp files.
10784 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10785 test -n "$tmp" && test -d "$tmp"
10788 tmp=./confstat$$-$RANDOM
10789 (umask 077 && mkdir $tmp)
10792 echo "$me: cannot create a temporary directory in ." >&2
10793 { (exit 1); exit 1; }
10798 cat >>$CONFIG_STATUS <<_ACEOF
10801 # CONFIG_FILES section.
10804 # No need to generate the scripts if there are no CONFIG_FILES.
10805 # This happens for instance when ./config.status config.h
10806 if test -n "\$CONFIG_FILES"; then
10807 # Protect against being on the right side of a sed subst in config.status.
10808 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10809 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10810 s,@SHELL@,$SHELL,;t t
10811 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10812 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10813 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10814 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10815 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10816 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10817 s,@exec_prefix@,$exec_prefix,;t t
10818 s,@prefix@,$prefix,;t t
10819 s,@program_transform_name@,$program_transform_name,;t t
10820 s,@bindir@,$bindir,;t t
10821 s,@sbindir@,$sbindir,;t t
10822 s,@libexecdir@,$libexecdir,;t t
10823 s,@datadir@,$datadir,;t t
10824 s,@sysconfdir@,$sysconfdir,;t t
10825 s,@sharedstatedir@,$sharedstatedir,;t t
10826 s,@localstatedir@,$localstatedir,;t t
10827 s,@libdir@,$libdir,;t t
10828 s,@includedir@,$includedir,;t t
10829 s,@oldincludedir@,$oldincludedir,;t t
10830 s,@infodir@,$infodir,;t t
10831 s,@mandir@,$mandir,;t t
10832 s,@build_alias@,$build_alias,;t t
10833 s,@host_alias@,$host_alias,;t t
10834 s,@target_alias@,$target_alias,;t t
10835 s,@DEFS@,$DEFS,;t t
10836 s,@ECHO_C@,$ECHO_C,;t t
10837 s,@ECHO_N@,$ECHO_N,;t t
10838 s,@ECHO_T@,$ECHO_T,;t t
10839 s,@LIBS@,$LIBS,;t t
10840 s,@build@,$build,;t t
10841 s,@build_cpu@,$build_cpu,;t t
10842 s,@build_vendor@,$build_vendor,;t t
10843 s,@build_os@,$build_os,;t t
10844 s,@host@,$host,;t t
10845 s,@host_cpu@,$host_cpu,;t t
10846 s,@host_vendor@,$host_vendor,;t t
10847 s,@host_os@,$host_os,;t t
10849 s,@CFLAGS@,$CFLAGS,;t t
10850 s,@LDFLAGS@,$LDFLAGS,;t t
10851 s,@CPPFLAGS@,$CPPFLAGS,;t t
10852 s,@ac_ct_CC@,$ac_ct_CC,;t t
10853 s,@EXEEXT@,$EXEEXT,;t t
10854 s,@OBJEXT@,$OBJEXT,;t t
10856 s,@EGREP@,$EGREP,;t t
10858 s,@SET_MAKE@,$SET_MAKE,;t t
10859 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10860 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10861 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10862 s,@LN_S@,$LN_S,;t t
10863 s,@RMPROG@,$RMPROG,;t t
10864 s,@SHPROG@,$SHPROG,;t t
10866 s,@LEXLIB@,$LEXLIB,;t t
10867 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
10868 s,@YACC@,$YACC,;t t
10869 s,@ENGINE_C@,$ENGINE_C,;t t
10870 s,@INSTALL_RULE@,$INSTALL_RULE,;t t
10871 s,@SYMLINK@,$SYMLINK,;t t
10872 s,@IRCDMODE@,$IRCDMODE,;t t
10873 s,@IRCDOWN@,$IRCDOWN,;t t
10874 s,@IRCDGRP@,$IRCDGRP,;t t
10875 s,@DPATH@,$DPATH,;t t
10876 s,@LIBOBJS@,$LIBOBJS,;t t
10877 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10882 cat >>$CONFIG_STATUS <<\_ACEOF
10883 # Split the substitutions into bite-sized pieces for seds with
10884 # small command number limits, like on Digital OSF/1 and HP-UX.
10885 ac_max_sed_lines=48
10886 ac_sed_frag=1 # Number of current file.
10887 ac_beg=1 # First line for current file.
10888 ac_end=$ac_max_sed_lines # Line after last line for current file.
10891 while $ac_more_lines; do
10892 if test $ac_beg -gt 1; then
10893 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10895 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10897 if test ! -s $tmp/subs.frag; then
10898 ac_more_lines=false
10900 # The purpose of the label and of the branching condition is to
10901 # speed up the sed processing (if there are no `@' at all, there
10902 # is no need to browse any of the substitutions).
10903 # These are the two extra sed commands mentioned above.
10905 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10906 if test -z "$ac_sed_cmds"; then
10907 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10909 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10911 ac_sed_frag=`expr $ac_sed_frag + 1`
10913 ac_end=`expr $ac_end + $ac_max_sed_lines`
10916 if test -z "$ac_sed_cmds"; then
10919 fi # test -n "$CONFIG_FILES"
10922 cat >>$CONFIG_STATUS <<\_ACEOF
10923 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10924 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10926 - | *:- | *:-:* ) # input from stdin
10928 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10929 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10930 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10931 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10932 * ) ac_file_in=$ac_file.in ;;
10935 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10936 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10937 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10938 X"$ac_file" : 'X\(//\)[^/]' \| \
10939 X"$ac_file" : 'X\(//\)$' \| \
10940 X"$ac_file" : 'X\(/\)' \| \
10941 . : '\(.\)' 2>/dev/null ||
10943 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10944 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10945 /^X\(\/\/\)$/{ s//\1/; q; }
10946 /^X\(\/\).*/{ s//\1/; q; }
10948 { if $as_mkdir_p; then
10953 while test ! -d "$as_dir"; do
10954 as_dirs="$as_dir $as_dirs"
10955 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10956 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10957 X"$as_dir" : 'X\(//\)[^/]' \| \
10958 X"$as_dir" : 'X\(//\)$' \| \
10959 X"$as_dir" : 'X\(/\)' \| \
10960 . : '\(.\)' 2>/dev/null ||
10962 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10963 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10964 /^X\(\/\/\)$/{ s//\1/; q; }
10965 /^X\(\/\).*/{ s//\1/; q; }
10968 test ! -n "$as_dirs" || mkdir $as_dirs
10969 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10970 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10971 { (exit 1); exit 1; }; }; }
10975 if test "$ac_dir" != .; then
10976 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10977 # A "../" for each directory in $ac_dir_suffix.
10978 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10980 ac_dir_suffix= ac_top_builddir=
10984 .) # No --srcdir option. We are building in place.
10986 if test -z "$ac_top_builddir"; then
10989 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10991 [\\/]* | ?:[\\/]* ) # Absolute path.
10992 ac_srcdir=$srcdir$ac_dir_suffix;
10993 ac_top_srcdir=$srcdir ;;
10994 *) # Relative path.
10995 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10996 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10999 # Do not use `cd foo && pwd` to compute absolute paths, because
11000 # the directories may not exist.
11002 .) ac_abs_builddir="$ac_dir";;
11005 .) ac_abs_builddir=`pwd`;;
11006 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11007 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11010 case $ac_abs_builddir in
11011 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11013 case ${ac_top_builddir}. in
11014 .) ac_abs_top_builddir=$ac_abs_builddir;;
11015 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11016 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11019 case $ac_abs_builddir in
11020 .) ac_abs_srcdir=$ac_srcdir;;
11023 .) ac_abs_srcdir=$ac_abs_builddir;;
11024 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11025 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11028 case $ac_abs_builddir in
11029 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11031 case $ac_top_srcdir in
11032 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11033 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11034 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11040 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11041 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11044 # Let's still pretend it is `configure' which instantiates (i.e., don't
11045 # use $as_me), people would be surprised to read:
11046 # /* config.h. Generated by config.status. */
11047 if test x"$ac_file" = x-; then
11050 configure_input="$ac_file. "
11052 configure_input=$configure_input"Generated from `echo $ac_file_in |
11053 sed 's,.*/,,'` by configure."
11055 # First look for the input files in the build tree, otherwise in the
11057 ac_file_inputs=`IFS=:
11058 for f in $ac_file_in; do
11060 -) echo $tmp/stdin ;;
11062 # Absolute (can't be DOS-style, as IFS=:)
11063 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11064 echo "$as_me: error: cannot find input file: $f" >&2;}
11065 { (exit 1); exit 1; }; }
11068 if test -f "$f"; then
11071 elif test -f "$srcdir/$f"; then
11076 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11077 echo "$as_me: error: cannot find input file: $f" >&2;}
11078 { (exit 1); exit 1; }; }
11081 done` || { (exit 1); exit 1; }
11083 if test x"$ac_file" != x-; then
11084 { echo "$as_me:$LINENO: creating $ac_file" >&5
11085 echo "$as_me: creating $ac_file" >&6;}
11089 cat >>$CONFIG_STATUS <<_ACEOF
11093 cat >>$CONFIG_STATUS <<\_ACEOF
11095 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11096 s,@configure_input@,$configure_input,;t t
11097 s,@srcdir@,$ac_srcdir,;t t
11098 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11099 s,@top_srcdir@,$ac_top_srcdir,;t t
11100 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11101 s,@builddir@,$ac_builddir,;t t
11102 s,@abs_builddir@,$ac_abs_builddir,;t t
11103 s,@top_builddir@,$ac_top_builddir,;t t
11104 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11105 s,@INSTALL@,$ac_INSTALL,;t t
11106 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11108 if test x"$ac_file" != x-; then
11109 mv $tmp/out $ac_file
11117 cat >>$CONFIG_STATUS <<\_ACEOF
11120 # CONFIG_HEADER section.
11123 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11124 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11126 # ac_d sets the value in "#define NAME VALUE" lines.
11127 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11128 ac_dB='[ ].*$,\1#\2'
11131 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11132 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11133 ac_uB='$,\1#\2define\3'
11137 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11138 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11140 - | *:- | *:-:* ) # input from stdin
11142 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11143 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11144 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11145 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11146 * ) ac_file_in=$ac_file.in ;;
11149 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11150 echo "$as_me: creating $ac_file" >&6;}
11152 # First look for the input files in the build tree, otherwise in the
11154 ac_file_inputs=`IFS=:
11155 for f in $ac_file_in; do
11157 -) echo $tmp/stdin ;;
11159 # Absolute (can't be DOS-style, as IFS=:)
11160 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11161 echo "$as_me: error: cannot find input file: $f" >&2;}
11162 { (exit 1); exit 1; }; }
11163 # Do quote $f, to prevent DOS paths from being IFS'd.
11166 if test -f "$f"; then
11169 elif test -f "$srcdir/$f"; then
11174 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11175 echo "$as_me: error: cannot find input file: $f" >&2;}
11176 { (exit 1); exit 1; }; }
11179 done` || { (exit 1); exit 1; }
11180 # Remove the trailing spaces.
11181 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11185 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11186 # `conftest.undefs', that substitutes the proper values into
11187 # config.h.in to produce config.h. The first handles `#define'
11188 # templates, and the second `#undef' templates.
11189 # And first: Protect against being on the right side of a sed subst in
11190 # config.status. Protect against being in an unquoted here document
11191 # in config.status.
11192 rm -f conftest.defines conftest.undefs
11193 # Using a here document instead of a string reduces the quoting nightmare.
11194 # Putting comments in sed scripts is not portable.
11196 # `end' is used to avoid that the second main sed command (meant for
11197 # 0-ary CPP macros) applies to n-ary macro definitions.
11198 # See the Autoconf documentation for `clear'.
11199 cat >confdef2sed.sed <<\_ACEOF
11204 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11206 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11209 # If some macros were called several times there might be several times
11210 # the same #defines, which is useless. Nevertheless, we may not want to
11211 # sort them, since we want the *last* AC-DEFINE to be honored.
11212 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11213 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11214 rm -f confdef2sed.sed
11216 # This sed command replaces #undef with comments. This is necessary, for
11217 # example, in the case of _POSIX_SOURCE, which is predefined and required
11218 # on some systems where configure will not decide to define it.
11219 cat >>conftest.undefs <<\_ACEOF
11220 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11223 # Break up conftest.defines because some shells have a limit on the size
11224 # of here documents, and old seds have small limits too (100 cmds).
11225 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11226 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11227 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11228 echo ' :' >>$CONFIG_STATUS
11229 rm -f conftest.tail
11230 while grep . conftest.defines >/dev/null
11232 # Write a limited-size here document to $tmp/defines.sed.
11233 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11234 # Speed up: don't consider the non `#define' lines.
11235 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11236 # Work around the forget-to-reset-the-flag bug.
11237 echo 't clr' >>$CONFIG_STATUS
11238 echo ': clr' >>$CONFIG_STATUS
11239 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11241 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11243 mv $tmp/out $tmp/in
11245 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11246 rm -f conftest.defines
11247 mv conftest.tail conftest.defines
11249 rm -f conftest.defines
11250 echo ' fi # grep' >>$CONFIG_STATUS
11251 echo >>$CONFIG_STATUS
11253 # Break up conftest.undefs because some shells have a limit on the size
11254 # of here documents, and old seds have small limits too (100 cmds).
11255 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11256 rm -f conftest.tail
11257 while grep . conftest.undefs >/dev/null
11259 # Write a limited-size here document to $tmp/undefs.sed.
11260 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11261 # Speed up: don't consider the non `#undef'
11262 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11263 # Work around the forget-to-reset-the-flag bug.
11264 echo 't clr' >>$CONFIG_STATUS
11265 echo ': clr' >>$CONFIG_STATUS
11266 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11268 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11270 mv $tmp/out $tmp/in
11272 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11273 rm -f conftest.undefs
11274 mv conftest.tail conftest.undefs
11276 rm -f conftest.undefs
11278 cat >>$CONFIG_STATUS <<\_ACEOF
11279 # Let's still pretend it is `configure' which instantiates (i.e., don't
11280 # use $as_me), people would be surprised to read:
11281 # /* config.h. Generated by config.status. */
11282 if test x"$ac_file" = x-; then
11283 echo "/* Generated by configure. */" >$tmp/config.h
11285 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11287 cat $tmp/in >>$tmp/config.h
11289 if test x"$ac_file" != x-; then
11290 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11291 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11292 echo "$as_me: $ac_file is unchanged" >&6;}
11294 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11295 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11296 X"$ac_file" : 'X\(//\)[^/]' \| \
11297 X"$ac_file" : 'X\(//\)$' \| \
11298 X"$ac_file" : 'X\(/\)' \| \
11299 . : '\(.\)' 2>/dev/null ||
11301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11302 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11303 /^X\(\/\/\)$/{ s//\1/; q; }
11304 /^X\(\/\).*/{ s//\1/; q; }
11306 { if $as_mkdir_p; then
11311 while test ! -d "$as_dir"; do
11312 as_dirs="$as_dir $as_dirs"
11313 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11315 X"$as_dir" : 'X\(//\)[^/]' \| \
11316 X"$as_dir" : 'X\(//\)$' \| \
11317 X"$as_dir" : 'X\(/\)' \| \
11318 . : '\(.\)' 2>/dev/null ||
11320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11321 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11322 /^X\(\/\/\)$/{ s//\1/; q; }
11323 /^X\(\/\).*/{ s//\1/; q; }
11326 test ! -n "$as_dirs" || mkdir $as_dirs
11327 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11328 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11329 { (exit 1); exit 1; }; }; }
11332 mv $tmp/config.h $ac_file
11336 rm -f $tmp/config.h
11340 cat >>$CONFIG_STATUS <<\_ACEOF
11343 # CONFIG_COMMANDS section.
11345 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11346 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11347 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11348 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11349 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11350 X"$ac_dest" : 'X\(//\)[^/]' \| \
11351 X"$ac_dest" : 'X\(//\)$' \| \
11352 X"$ac_dest" : 'X\(/\)' \| \
11353 . : '\(.\)' 2>/dev/null ||
11355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11356 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11357 /^X\(\/\/\)$/{ s//\1/; q; }
11358 /^X\(\/\).*/{ s//\1/; q; }
11360 { if $as_mkdir_p; then
11365 while test ! -d "$as_dir"; do
11366 as_dirs="$as_dir $as_dirs"
11367 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11368 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11369 X"$as_dir" : 'X\(//\)[^/]' \| \
11370 X"$as_dir" : 'X\(//\)$' \| \
11371 X"$as_dir" : 'X\(/\)' \| \
11372 . : '\(.\)' 2>/dev/null ||
11374 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11375 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11376 /^X\(\/\/\)$/{ s//\1/; q; }
11377 /^X\(\/\).*/{ s//\1/; q; }
11380 test ! -n "$as_dirs" || mkdir $as_dirs
11381 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11382 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11383 { (exit 1); exit 1; }; }; }
11387 if test "$ac_dir" != .; then
11388 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11389 # A "../" for each directory in $ac_dir_suffix.
11390 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11392 ac_dir_suffix= ac_top_builddir=
11396 .) # No --srcdir option. We are building in place.
11398 if test -z "$ac_top_builddir"; then
11401 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11403 [\\/]* | ?:[\\/]* ) # Absolute path.
11404 ac_srcdir=$srcdir$ac_dir_suffix;
11405 ac_top_srcdir=$srcdir ;;
11406 *) # Relative path.
11407 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11408 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11411 # Do not use `cd foo && pwd` to compute absolute paths, because
11412 # the directories may not exist.
11414 .) ac_abs_builddir="$ac_dir";;
11417 .) ac_abs_builddir=`pwd`;;
11418 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11419 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11422 case $ac_abs_builddir in
11423 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11425 case ${ac_top_builddir}. in
11426 .) ac_abs_top_builddir=$ac_abs_builddir;;
11427 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11428 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11431 case $ac_abs_builddir in
11432 .) ac_abs_srcdir=$ac_srcdir;;
11435 .) ac_abs_srcdir=$ac_abs_builddir;;
11436 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11437 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11440 case $ac_abs_builddir in
11441 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11443 case $ac_top_srcdir in
11444 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11445 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11446 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11451 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11452 echo "$as_me: executing $ac_dest commands" >&6;}
11454 default ) echo timestamp > stamp-h ;;
11459 cat >>$CONFIG_STATUS <<\_ACEOF
11461 { (exit 0); exit 0; }
11463 chmod +x $CONFIG_STATUS
11464 ac_clean_files=$ac_clean_files_save
11467 # configure is writing to config.log, and then calls config.status.
11468 # config.status does its own redirection, appending to config.log.
11469 # Unfortunately, on DOS this fails, as config.log is still kept open
11470 # by configure, so config.status won't be able to write to it; its
11471 # output is simply discarded. So we exec the FD to /dev/null,
11472 # effectively closing config.log, so it can be properly (re)opened and
11473 # appended to by config.status. When coming back to configure, we
11474 # need to make the FD available again.
11475 if test "$no_create" != yes; then
11477 ac_config_status_args=
11478 test "$silent" = yes &&
11479 ac_config_status_args="$ac_config_status_args --quiet"
11481 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11483 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11484 # would make configure fail if this is the last instruction.
11485 $ac_cs_success || { (exit 1); exit 1; }
11489 ac_config_commands="$ac_config_commands default-1"