2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="ircd/ircd.c"
275 ac_default_prefix=$HOME
276 # Factoring default headers for most tests.
277 ac_includes_default="\
280 # include <sys/types.h>
283 # include <sys/stat.h>
294 # if !STDC_HEADERS && HAVE_MEMORY_H
300 # include <strings.h>
303 # include <inttypes.h>
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP AWK SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S RMPROG SHPROG LEX LEXLIB LEX_OUTPUT_ROOT YACC ENGINE_C INSTALL_RULE SYMLINK IRCDMODE IRCDOWN IRCDGRP DPATH LIBOBJS LTLIBOBJS'
316 # Initialize some variables set by options.
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
328 program_transform_name=s,x,x,
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
388 cache_file=config.cache ;;
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 datadir=$ac_optarg ;;
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
431 -help | --help | --hel | --he | -h)
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
455 -libdir | --libdir | --libdi | --libd)
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 # Obsolete; use --without-fp.
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 sbindir=$ac_optarg ;;
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 sharedstatedir=$ac_optarg ;;
559 -site | --site | --sit)
561 -site=* | --site=* | --sit=*)
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 -version | --version | --versio | --versi | --vers | -V)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
610 # Obsolete; use --with-x.
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
662 eval ac_val=$`echo $ac_var`
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val=$`echo $ac_var`
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703 test "$silent" = yes && exec 6>/dev/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
723 if test ! -r $srcdir/$ac_unique_file; then
727 ac_srcdir_defaulted=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
776 # Report the --help message.
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
782 \`configure' configures this package to adapt to many kinds of systems.
784 Usage: $0 [OPTION]... [VAR=VALUE]...
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
789 Defaults for the options are specified in brackets.
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
816 For better control, use the options below.
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
836 --build=BUILD configure for building on BUILD [guessed]
837 --host=HOST cross-compile to build programs to run on HOST [BUILD]
841 if test -n "$ac_init_help"; then
846 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
847 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
848 --enable-poll Force poll to be used regardless of whether or not
850 --enable-debug Turn on debugging mode
851 --disable-asserts Disable assertion checking
852 --enable-profile Enable profiling support (add -pg to CFLAGS and LDFLAGS)
853 --enable-pedantic Enable pedantic warnings (add -pedantic to CFLAGS)
854 --enable-warnings Enable warnings (add -Wall to CFLAGS)
855 --disable-inlines Disable inlining for a few critical functions
856 --disable-devpoll Disable the /dev/poll-based engine
857 --disable-kqueue Disable the kqueue-based engine
858 --disable-epoll Disable the epoll-based engine
861 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
862 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
863 --with-leak-detect Turn on the leak detector(requires patched boehm)
864 --without-ipv6 disable IPv6 support (default is autodetect)
865 --with-symlink=name Name to give the symlink; if name is "no," no
866 symlink will be created.
867 --with-mode=mode Permissions (in octal) to give the binary
868 --with-owner=owner Specify owner of the installed binary
869 --with-group=group Specify group owner of the installed binary
870 --with-domain=domain Domain name to use in local statistics gathering
871 --with-chroot=dir Specify that the server will be operated under
872 a different root directory given by dir. See
873 doc/readme.chroot for more information.
874 --with-dpath=dir Directory for all server data files
875 --with-cpath=file Set server configuration file
876 --with-lpath=file Set the debugging log file
877 --with-maxcon=maxcon Maximum number of connections server will accept
879 Some influential environment variables:
880 CC C compiler command
881 CFLAGS C compiler flags
882 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
883 nonstandard directory <lib dir>
884 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
885 headers in a nonstandard directory <include dir>
888 Use these variables to override the choices made by `configure' or to help
889 it to find libraries and programs with nonstandard names/locations.
894 if test "$ac_init_help" = "recursive"; then
895 # If there are subdirs, report their specific --help.
897 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
898 test -d $ac_dir || continue
901 if test "$ac_dir" != .; then
902 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
903 # A "../" for each directory in $ac_dir_suffix.
904 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
906 ac_dir_suffix= ac_top_builddir=
910 .) # No --srcdir option. We are building in place.
912 if test -z "$ac_top_builddir"; then
915 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
917 [\\/]* | ?:[\\/]* ) # Absolute path.
918 ac_srcdir=$srcdir$ac_dir_suffix;
919 ac_top_srcdir=$srcdir ;;
921 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
922 ac_top_srcdir=$ac_top_builddir$srcdir ;;
925 # Do not use `cd foo && pwd` to compute absolute paths, because
926 # the directories may not exist.
928 .) ac_abs_builddir="$ac_dir";;
931 .) ac_abs_builddir=`pwd`;;
932 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
933 *) ac_abs_builddir=`pwd`/"$ac_dir";;
936 case $ac_abs_builddir in
937 .) ac_abs_top_builddir=${ac_top_builddir}.;;
939 case ${ac_top_builddir}. in
940 .) ac_abs_top_builddir=$ac_abs_builddir;;
941 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
942 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
945 case $ac_abs_builddir in
946 .) ac_abs_srcdir=$ac_srcdir;;
949 .) ac_abs_srcdir=$ac_abs_builddir;;
950 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
951 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
954 case $ac_abs_builddir in
955 .) ac_abs_top_srcdir=$ac_top_srcdir;;
957 case $ac_top_srcdir in
958 .) ac_abs_top_srcdir=$ac_abs_builddir;;
959 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
960 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
965 # Check for guested configure; otherwise get Cygnus style configure.
966 if test -f $ac_srcdir/configure.gnu; then
968 $SHELL $ac_srcdir/configure.gnu --help=recursive
969 elif test -f $ac_srcdir/configure; then
971 $SHELL $ac_srcdir/configure --help=recursive
972 elif test -f $ac_srcdir/configure.ac ||
973 test -f $ac_srcdir/configure.in; then
977 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
983 test -n "$ac_init_help" && exit 0
984 if $ac_init_version; then
987 Copyright (C) 2003 Free Software Foundation, Inc.
988 This configure script is free software; the Free Software Foundation
989 gives unlimited permission to copy, distribute and modify it.
995 This file contains any messages produced by compilers while
996 running configure, to aid debugging if configure makes a mistake.
998 It was created by $as_me, which was
999 generated by GNU Autoconf 2.59. Invocation command line was
1010 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1011 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1012 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1013 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1014 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1016 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1017 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1019 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1020 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1021 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1022 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1023 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1024 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1025 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1033 test -z "$as_dir" && as_dir=.
1034 echo "PATH: $as_dir"
1049 # Keep a trace of the command line.
1050 # Strip out --no-create and --no-recursion so they do not pile up.
1051 # Strip out --silent because we don't want to record it for future runs.
1052 # Also quote any args containing shell meta-characters.
1053 # Make two passes to allow for proper duplicate-argument suppression.
1058 ac_must_keep_next=false
1064 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1065 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1066 | -silent | --silent | --silen | --sile | --sil)
1068 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1069 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1072 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1074 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1075 if test $ac_must_keep_next = true; then
1076 ac_must_keep_next=false # Got value, back to normal.
1079 *=* | --config-cache | -C | -disable-* | --disable-* \
1080 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1081 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1082 | -with-* | --with-* | -without-* | --without-* | --x)
1083 case "$ac_configure_args0 " in
1084 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1087 -* ) ac_must_keep_next=true ;;
1090 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1091 # Get rid of the leading space.
1097 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1098 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1100 # When interrupted or exit'd, cleanup temporary files, and complete
1101 # config.log. We remove comments because anyway the quotes in there
1102 # would cause problems or look ugly.
1103 # WARNING: Be sure not to use single quotes in there, as some shells,
1104 # such as our DU 5.0 friend, will then `close' the trap.
1105 trap 'exit_status=$?
1106 # Save into config.log some information that might help in debugging.
1111 ## ---------------- ##
1112 ## Cache variables. ##
1113 ## ---------------- ##
1116 # The following way of writing the cache mishandles newlines in values,
1119 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1122 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1123 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1127 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1134 ## ----------------- ##
1135 ## Output variables. ##
1136 ## ----------------- ##
1139 for ac_var in $ac_subst_vars
1141 eval ac_val=$`echo $ac_var`
1142 echo "$ac_var='"'"'$ac_val'"'"'"
1146 if test -n "$ac_subst_files"; then
1153 for ac_var in $ac_subst_files
1155 eval ac_val=$`echo $ac_var`
1156 echo "$ac_var='"'"'$ac_val'"'"'"
1161 if test -s confdefs.h; then
1168 sed "/^$/d" confdefs.h | sort
1171 test "$ac_signal" != 0 &&
1172 echo "$as_me: caught signal $ac_signal"
1173 echo "$as_me: exit $exit_status"
1175 rm -f core *.core &&
1176 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1179 for ac_signal in 1 2 13 15; do
1180 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1184 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1185 rm -rf conftest* confdefs.h
1186 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1189 # Predefined preprocessor variables.
1191 cat >>confdefs.h <<_ACEOF
1192 #define PACKAGE_NAME "$PACKAGE_NAME"
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_STRING "$PACKAGE_STRING"
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1216 # Let the site file select an alternate cache file if it wants to.
1217 # Prefer explicitly selected file to automatically selected ones.
1218 if test -z "$CONFIG_SITE"; then
1219 if test "x$prefix" != xNONE; then
1220 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1222 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1225 for ac_site_file in $CONFIG_SITE; do
1226 if test -r "$ac_site_file"; then
1227 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1228 echo "$as_me: loading site script $ac_site_file" >&6;}
1229 sed 's/^/| /' "$ac_site_file" >&5
1234 if test -r "$cache_file"; then
1235 # Some versions of bash will fail to source /dev/null (special
1236 # files actually), so we avoid doing that.
1237 if test -f "$cache_file"; then
1238 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1239 echo "$as_me: loading cache $cache_file" >&6;}
1241 [\\/]* | ?:[\\/]* ) . $cache_file;;
1242 *) . ./$cache_file;;
1246 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1247 echo "$as_me: creating cache $cache_file" >&6;}
1251 # Check that the precious variables saved in the cache have kept the same
1253 ac_cache_corrupted=false
1254 for ac_var in `(set) 2>&1 |
1255 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1256 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1257 eval ac_new_set=\$ac_env_${ac_var}_set
1258 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1259 eval ac_new_val="\$ac_env_${ac_var}_value"
1260 case $ac_old_set,$ac_new_set in
1262 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1263 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1264 ac_cache_corrupted=: ;;
1266 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1267 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1268 ac_cache_corrupted=: ;;
1271 if test "x$ac_old_val" != "x$ac_new_val"; then
1272 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1273 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1274 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1275 echo "$as_me: former value: $ac_old_val" >&2;}
1276 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1277 echo "$as_me: current value: $ac_new_val" >&2;}
1278 ac_cache_corrupted=:
1281 # Pass precious variables to config.status.
1282 if test "$ac_new_set" = set; then
1284 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1285 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1286 *) ac_arg=$ac_var=$ac_new_val ;;
1288 case " $ac_configure_args " in
1289 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1290 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1294 if $ac_cache_corrupted; then
1295 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1296 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1297 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1298 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1299 { (exit 1); exit 1; }; }
1303 ac_cpp='$CPP $CPPFLAGS'
1304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1328 echo "$as_me:$LINENO: checking for installation prefix" >&5
1329 echo $ECHO_N "checking for installation prefix... $ECHO_C" >&6
1330 if test "${unet_cv_prefix+set}" = set; then
1331 echo $ECHO_N "(cached) $ECHO_C" >&6
1333 unet_cv_prefix=$HOME
1336 if test x"$prefix" != xNONE; then
1337 unet_cv_prefix=$prefix
1339 echo "$as_me:$LINENO: result: $unet_cv_prefix" >&5
1340 echo "${ECHO_T}$unet_cv_prefix" >&6
1341 ac_default_prefix=$unet_cv_prefix
1343 ac_config_headers="$ac_config_headers config.h"
1349 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1350 if test -f $ac_dir/install-sh; then
1352 ac_install_sh="$ac_aux_dir/install-sh -c"
1354 elif test -f $ac_dir/install.sh; then
1356 ac_install_sh="$ac_aux_dir/install.sh -c"
1358 elif test -f $ac_dir/shtool; then
1360 ac_install_sh="$ac_aux_dir/shtool install -c"
1364 if test -z "$ac_aux_dir"; then
1365 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1366 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1367 { (exit 1); exit 1; }; }
1369 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1370 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1371 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1373 # Make sure we can run config.sub.
1374 $ac_config_sub sun4 >/dev/null 2>&1 ||
1375 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1376 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1377 { (exit 1); exit 1; }; }
1379 echo "$as_me:$LINENO: checking build system type" >&5
1380 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1381 if test "${ac_cv_build+set}" = set; then
1382 echo $ECHO_N "(cached) $ECHO_C" >&6
1384 ac_cv_build_alias=$build_alias
1385 test -z "$ac_cv_build_alias" &&
1386 ac_cv_build_alias=`$ac_config_guess`
1387 test -z "$ac_cv_build_alias" &&
1388 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1389 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1390 { (exit 1); exit 1; }; }
1391 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1392 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1393 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1394 { (exit 1); exit 1; }; }
1397 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1398 echo "${ECHO_T}$ac_cv_build" >&6
1400 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1401 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1402 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1405 echo "$as_me:$LINENO: checking host system type" >&5
1406 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1407 if test "${ac_cv_host+set}" = set; then
1408 echo $ECHO_N "(cached) $ECHO_C" >&6
1410 ac_cv_host_alias=$host_alias
1411 test -z "$ac_cv_host_alias" &&
1412 ac_cv_host_alias=$ac_cv_build_alias
1413 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1414 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1415 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1416 { (exit 1); exit 1; }; }
1419 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1420 echo "${ECHO_T}$ac_cv_host" >&6
1422 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1423 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1424 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1429 ac_cpp='$CPP $CPPFLAGS'
1430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1433 if test -n "$ac_tool_prefix"; then
1434 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1435 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1436 echo "$as_me:$LINENO: checking for $ac_word" >&5
1437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1438 if test "${ac_cv_prog_CC+set}" = set; then
1439 echo $ECHO_N "(cached) $ECHO_C" >&6
1441 if test -n "$CC"; then
1442 ac_cv_prog_CC="$CC" # Let the user override the test.
1444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1448 test -z "$as_dir" && as_dir=.
1449 for ac_exec_ext in '' $ac_executable_extensions; do
1450 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1451 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1461 if test -n "$CC"; then
1462 echo "$as_me:$LINENO: result: $CC" >&5
1463 echo "${ECHO_T}$CC" >&6
1465 echo "$as_me:$LINENO: result: no" >&5
1466 echo "${ECHO_T}no" >&6
1470 if test -z "$ac_cv_prog_CC"; then
1472 # Extract the first word of "gcc", so it can be a program name with args.
1473 set dummy gcc; ac_word=$2
1474 echo "$as_me:$LINENO: checking for $ac_word" >&5
1475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1476 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1477 echo $ECHO_N "(cached) $ECHO_C" >&6
1479 if test -n "$ac_ct_CC"; then
1480 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1486 test -z "$as_dir" && as_dir=.
1487 for ac_exec_ext in '' $ac_executable_extensions; do
1488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1489 ac_cv_prog_ac_ct_CC="gcc"
1490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1498 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1499 if test -n "$ac_ct_CC"; then
1500 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1501 echo "${ECHO_T}$ac_ct_CC" >&6
1503 echo "$as_me:$LINENO: result: no" >&5
1504 echo "${ECHO_T}no" >&6
1512 if test -z "$CC"; then
1513 if test -n "$ac_tool_prefix"; then
1514 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1515 set dummy ${ac_tool_prefix}cc; ac_word=$2
1516 echo "$as_me:$LINENO: checking for $ac_word" >&5
1517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1518 if test "${ac_cv_prog_CC+set}" = set; then
1519 echo $ECHO_N "(cached) $ECHO_C" >&6
1521 if test -n "$CC"; then
1522 ac_cv_prog_CC="$CC" # Let the user override the test.
1524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1528 test -z "$as_dir" && as_dir=.
1529 for ac_exec_ext in '' $ac_executable_extensions; do
1530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1531 ac_cv_prog_CC="${ac_tool_prefix}cc"
1532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1541 if test -n "$CC"; then
1542 echo "$as_me:$LINENO: result: $CC" >&5
1543 echo "${ECHO_T}$CC" >&6
1545 echo "$as_me:$LINENO: result: no" >&5
1546 echo "${ECHO_T}no" >&6
1550 if test -z "$ac_cv_prog_CC"; then
1552 # Extract the first word of "cc", so it can be a program name with args.
1553 set dummy cc; ac_word=$2
1554 echo "$as_me:$LINENO: checking for $ac_word" >&5
1555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1556 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1557 echo $ECHO_N "(cached) $ECHO_C" >&6
1559 if test -n "$ac_ct_CC"; then
1560 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1566 test -z "$as_dir" && as_dir=.
1567 for ac_exec_ext in '' $ac_executable_extensions; do
1568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1569 ac_cv_prog_ac_ct_CC="cc"
1570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1578 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1579 if test -n "$ac_ct_CC"; then
1580 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1581 echo "${ECHO_T}$ac_ct_CC" >&6
1583 echo "$as_me:$LINENO: result: no" >&5
1584 echo "${ECHO_T}no" >&6
1593 if test -z "$CC"; then
1594 # Extract the first word of "cc", so it can be a program name with args.
1595 set dummy cc; ac_word=$2
1596 echo "$as_me:$LINENO: checking for $ac_word" >&5
1597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1598 if test "${ac_cv_prog_CC+set}" = set; then
1599 echo $ECHO_N "(cached) $ECHO_C" >&6
1601 if test -n "$CC"; then
1602 ac_cv_prog_CC="$CC" # Let the user override the test.
1605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1609 test -z "$as_dir" && as_dir=.
1610 for ac_exec_ext in '' $ac_executable_extensions; do
1611 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1612 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1613 ac_prog_rejected=yes
1617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1623 if test $ac_prog_rejected = yes; then
1624 # We found a bogon in the path, so make sure we never use it.
1625 set dummy $ac_cv_prog_CC
1627 if test $# != 0; then
1628 # We chose a different compiler from the bogus one.
1629 # However, it has the same basename, so the bogon will be chosen
1630 # first if we set CC to just the basename; use the full file name.
1632 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1638 if test -n "$CC"; then
1639 echo "$as_me:$LINENO: result: $CC" >&5
1640 echo "${ECHO_T}$CC" >&6
1642 echo "$as_me:$LINENO: result: no" >&5
1643 echo "${ECHO_T}no" >&6
1647 if test -z "$CC"; then
1648 if test -n "$ac_tool_prefix"; then
1651 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1652 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1653 echo "$as_me:$LINENO: checking for $ac_word" >&5
1654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1655 if test "${ac_cv_prog_CC+set}" = set; then
1656 echo $ECHO_N "(cached) $ECHO_C" >&6
1658 if test -n "$CC"; then
1659 ac_cv_prog_CC="$CC" # Let the user override the test.
1661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1665 test -z "$as_dir" && as_dir=.
1666 for ac_exec_ext in '' $ac_executable_extensions; do
1667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1668 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1678 if test -n "$CC"; then
1679 echo "$as_me:$LINENO: result: $CC" >&5
1680 echo "${ECHO_T}$CC" >&6
1682 echo "$as_me:$LINENO: result: no" >&5
1683 echo "${ECHO_T}no" >&6
1686 test -n "$CC" && break
1689 if test -z "$CC"; then
1693 # Extract the first word of "$ac_prog", so it can be a program name with args.
1694 set dummy $ac_prog; ac_word=$2
1695 echo "$as_me:$LINENO: checking for $ac_word" >&5
1696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1697 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1698 echo $ECHO_N "(cached) $ECHO_C" >&6
1700 if test -n "$ac_ct_CC"; then
1701 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1707 test -z "$as_dir" && as_dir=.
1708 for ac_exec_ext in '' $ac_executable_extensions; do
1709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1710 ac_cv_prog_ac_ct_CC="$ac_prog"
1711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1719 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1720 if test -n "$ac_ct_CC"; then
1721 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1722 echo "${ECHO_T}$ac_ct_CC" >&6
1724 echo "$as_me:$LINENO: result: no" >&5
1725 echo "${ECHO_T}no" >&6
1728 test -n "$ac_ct_CC" && break
1737 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1738 See \`config.log' for more details." >&5
1739 echo "$as_me: error: no acceptable C compiler found in \$PATH
1740 See \`config.log' for more details." >&2;}
1741 { (exit 1); exit 1; }; }
1743 # Provide some information about the compiler.
1744 echo "$as_me:$LINENO:" \
1745 "checking for C compiler version" >&5
1746 ac_compiler=`set X $ac_compile; echo $2`
1747 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1748 (eval $ac_compiler --version </dev/null >&5) 2>&5
1750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1751 (exit $ac_status); }
1752 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1753 (eval $ac_compiler -v </dev/null >&5) 2>&5
1755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1756 (exit $ac_status); }
1757 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1758 (eval $ac_compiler -V </dev/null >&5) 2>&5
1760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1761 (exit $ac_status); }
1763 cat >conftest.$ac_ext <<_ACEOF
1766 cat confdefs.h >>conftest.$ac_ext
1767 cat >>conftest.$ac_ext <<_ACEOF
1768 /* end confdefs.h. */
1778 ac_clean_files_save=$ac_clean_files
1779 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1780 # Try to create an executable without -o first, disregard a.out.
1781 # It will help us diagnose broken compilers, and finding out an intuition
1783 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1784 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1785 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1786 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1787 (eval $ac_link_default) 2>&5
1789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1790 (exit $ac_status); }; then
1791 # Find the output, starting from the most likely. This scheme is
1792 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1795 # Be careful to initialize this variable, since it used to be cached.
1796 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1798 # b.out is created by i960 compilers.
1799 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1801 test -f "$ac_file" || continue
1803 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1806 # This is the source file.
1809 # We found the default executable, but exeext='' is most
1813 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1814 # FIXME: I believe we export ac_cv_exeext for Libtool,
1815 # but it would be cool to find out if it's true. Does anybody
1816 # maintain Libtool? --akim.
1824 echo "$as_me: failed program was:" >&5
1825 sed 's/^/| /' conftest.$ac_ext >&5
1827 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1828 See \`config.log' for more details." >&5
1829 echo "$as_me: error: C compiler cannot create executables
1830 See \`config.log' for more details." >&2;}
1831 { (exit 77); exit 77; }; }
1834 ac_exeext=$ac_cv_exeext
1835 echo "$as_me:$LINENO: result: $ac_file" >&5
1836 echo "${ECHO_T}$ac_file" >&6
1838 # Check the compiler produces executables we can run. If not, either
1839 # the compiler is broken, or we cross compile.
1840 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1841 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1842 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1843 # If not cross compiling, check that we can run a simple program.
1844 if test "$cross_compiling" != yes; then
1845 if { ac_try='./$ac_file'
1846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1850 (exit $ac_status); }; }; then
1853 if test "$cross_compiling" = maybe; then
1856 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1857 If you meant to cross compile, use \`--host'.
1858 See \`config.log' for more details." >&5
1859 echo "$as_me: error: cannot run C compiled programs.
1860 If you meant to cross compile, use \`--host'.
1861 See \`config.log' for more details." >&2;}
1862 { (exit 1); exit 1; }; }
1866 echo "$as_me:$LINENO: result: yes" >&5
1867 echo "${ECHO_T}yes" >&6
1869 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1870 ac_clean_files=$ac_clean_files_save
1871 # Check the compiler produces executables we can run. If not, either
1872 # the compiler is broken, or we cross compile.
1873 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1874 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1875 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1876 echo "${ECHO_T}$cross_compiling" >&6
1878 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1879 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1881 (eval $ac_link) 2>&5
1883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1884 (exit $ac_status); }; then
1885 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1886 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1887 # work properly (i.e., refer to `conftest.exe'), while it won't with
1889 for ac_file in conftest.exe conftest conftest.*; do
1890 test -f "$ac_file" || continue
1892 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1893 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1900 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1901 See \`config.log' for more details." >&5
1902 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1903 See \`config.log' for more details." >&2;}
1904 { (exit 1); exit 1; }; }
1907 rm -f conftest$ac_cv_exeext
1908 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1909 echo "${ECHO_T}$ac_cv_exeext" >&6
1911 rm -f conftest.$ac_ext
1912 EXEEXT=$ac_cv_exeext
1914 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1915 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1916 if test "${ac_cv_objext+set}" = set; then
1917 echo $ECHO_N "(cached) $ECHO_C" >&6
1919 cat >conftest.$ac_ext <<_ACEOF
1922 cat confdefs.h >>conftest.$ac_ext
1923 cat >>conftest.$ac_ext <<_ACEOF
1924 /* end confdefs.h. */
1934 rm -f conftest.o conftest.obj
1935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1936 (eval $ac_compile) 2>&5
1938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1939 (exit $ac_status); }; then
1940 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1942 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1943 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1948 echo "$as_me: failed program was:" >&5
1949 sed 's/^/| /' conftest.$ac_ext >&5
1951 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1952 See \`config.log' for more details." >&5
1953 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1954 See \`config.log' for more details." >&2;}
1955 { (exit 1); exit 1; }; }
1958 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1960 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1961 echo "${ECHO_T}$ac_cv_objext" >&6
1962 OBJEXT=$ac_cv_objext
1964 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1965 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1966 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1967 echo $ECHO_N "(cached) $ECHO_C" >&6
1969 cat >conftest.$ac_ext <<_ACEOF
1972 cat confdefs.h >>conftest.$ac_ext
1973 cat >>conftest.$ac_ext <<_ACEOF
1974 /* end confdefs.h. */
1987 rm -f conftest.$ac_objext
1988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1989 (eval $ac_compile) 2>conftest.er1
1991 grep -v '^ *+' conftest.er1 >conftest.err
1993 cat conftest.err >&5
1994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1995 (exit $ac_status); } &&
1996 { ac_try='test -z "$ac_c_werror_flag"
1997 || test ! -s conftest.err'
1998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002 (exit $ac_status); }; } &&
2003 { ac_try='test -s conftest.$ac_objext'
2004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008 (exit $ac_status); }; }; then
2011 echo "$as_me: failed program was:" >&5
2012 sed 's/^/| /' conftest.$ac_ext >&5
2016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2017 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2020 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2021 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2022 GCC=`test $ac_compiler_gnu = yes && echo yes`
2023 ac_test_CFLAGS=${CFLAGS+set}
2024 ac_save_CFLAGS=$CFLAGS
2026 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2027 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2028 if test "${ac_cv_prog_cc_g+set}" = set; then
2029 echo $ECHO_N "(cached) $ECHO_C" >&6
2031 cat >conftest.$ac_ext <<_ACEOF
2034 cat confdefs.h >>conftest.$ac_ext
2035 cat >>conftest.$ac_ext <<_ACEOF
2036 /* end confdefs.h. */
2046 rm -f conftest.$ac_objext
2047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2048 (eval $ac_compile) 2>conftest.er1
2050 grep -v '^ *+' conftest.er1 >conftest.err
2052 cat conftest.err >&5
2053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054 (exit $ac_status); } &&
2055 { ac_try='test -z "$ac_c_werror_flag"
2056 || test ! -s conftest.err'
2057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2061 (exit $ac_status); }; } &&
2062 { ac_try='test -s conftest.$ac_objext'
2063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067 (exit $ac_status); }; }; then
2070 echo "$as_me: failed program was:" >&5
2071 sed 's/^/| /' conftest.$ac_ext >&5
2075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2077 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2078 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2079 if test "$ac_test_CFLAGS" = set; then
2080 CFLAGS=$ac_save_CFLAGS
2081 elif test $ac_cv_prog_cc_g = yes; then
2082 if test "$GCC" = yes; then
2088 if test "$GCC" = yes; then
2094 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2095 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2096 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2097 echo $ECHO_N "(cached) $ECHO_C" >&6
2099 ac_cv_prog_cc_stdc=no
2101 cat >conftest.$ac_ext <<_ACEOF
2104 cat confdefs.h >>conftest.$ac_ext
2105 cat >>conftest.$ac_ext <<_ACEOF
2106 /* end confdefs.h. */
2109 #include <sys/types.h>
2110 #include <sys/stat.h>
2111 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2112 struct buf { int x; };
2113 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2114 static char *e (p, i)
2120 static char *f (char * (*g) (char **, int), char **p, ...)
2125 s = g (p, va_arg (v,int));
2130 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2131 function prototypes and stuff, but not '\xHH' hex character constants.
2132 These don't provoke an error unfortunately, instead are silently treated
2133 as 'x'. The following induces an error, until -std1 is added to get
2134 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2135 array size at least. It's necessary to write '\x00'==0 to get something
2136 that's true only with -std1. */
2137 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2139 int test (int i, double x);
2140 struct s1 {int (*f) (int a);};
2141 struct s2 {int (*f) (double a);};
2142 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2148 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2153 # Don't try gcc -ansi; that turns off useful extensions and
2154 # breaks some systems' header files.
2155 # AIX -qlanglvl=ansi
2156 # Ultrix and OSF/1 -std1
2157 # HP-UX 10.20 and later -Ae
2158 # HP-UX older versions -Aa -D_HPUX_SOURCE
2159 # SVR4 -Xc -D__EXTENSIONS__
2160 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2162 CC="$ac_save_CC $ac_arg"
2163 rm -f conftest.$ac_objext
2164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2165 (eval $ac_compile) 2>conftest.er1
2167 grep -v '^ *+' conftest.er1 >conftest.err
2169 cat conftest.err >&5
2170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171 (exit $ac_status); } &&
2172 { ac_try='test -z "$ac_c_werror_flag"
2173 || 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"
2228 || test ! -s conftest.err'
2229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233 (exit $ac_status); }; } &&
2234 { ac_try='test -s conftest.$ac_objext'
2235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239 (exit $ac_status); }; }; then
2240 for ac_declaration in \
2242 'extern "C" void std::exit (int) throw (); using std::exit;' \
2243 'extern "C" void std::exit (int); using std::exit;' \
2244 'extern "C" void exit (int) throw ();' \
2245 'extern "C" void exit (int);' \
2248 cat >conftest.$ac_ext <<_ACEOF
2251 cat confdefs.h >>conftest.$ac_ext
2252 cat >>conftest.$ac_ext <<_ACEOF
2253 /* end confdefs.h. */
2264 rm -f conftest.$ac_objext
2265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2266 (eval $ac_compile) 2>conftest.er1
2268 grep -v '^ *+' conftest.er1 >conftest.err
2270 cat conftest.err >&5
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); } &&
2273 { ac_try='test -z "$ac_c_werror_flag"
2274 || test ! -s conftest.err'
2275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279 (exit $ac_status); }; } &&
2280 { ac_try='test -s conftest.$ac_objext'
2281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285 (exit $ac_status); }; }; then
2288 echo "$as_me: failed program was:" >&5
2289 sed 's/^/| /' conftest.$ac_ext >&5
2293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2294 cat >conftest.$ac_ext <<_ACEOF
2297 cat confdefs.h >>conftest.$ac_ext
2298 cat >>conftest.$ac_ext <<_ACEOF
2299 /* end confdefs.h. */
2309 rm -f conftest.$ac_objext
2310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2311 (eval $ac_compile) 2>conftest.er1
2313 grep -v '^ *+' conftest.er1 >conftest.err
2315 cat conftest.err >&5
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); } &&
2318 { ac_try='test -z "$ac_c_werror_flag"
2319 || test ! -s conftest.err'
2320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); }; } &&
2325 { ac_try='test -s conftest.$ac_objext'
2326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }; }; then
2333 echo "$as_me: failed program was:" >&5
2334 sed 's/^/| /' conftest.$ac_ext >&5
2337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2340 if test -n "$ac_declaration"; then
2341 echo '#ifdef __cplusplus' >>confdefs.h
2342 echo $ac_declaration >>confdefs.h
2343 echo '#endif' >>confdefs.h
2347 echo "$as_me: failed program was:" >&5
2348 sed 's/^/| /' conftest.$ac_ext >&5
2351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2353 ac_cpp='$CPP $CPPFLAGS'
2354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2360 ac_cpp='$CPP $CPPFLAGS'
2361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2364 if test -n "$ac_tool_prefix"; then
2365 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2366 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2367 echo "$as_me:$LINENO: checking for $ac_word" >&5
2368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2369 if test "${ac_cv_prog_CC+set}" = set; then
2370 echo $ECHO_N "(cached) $ECHO_C" >&6
2372 if test -n "$CC"; then
2373 ac_cv_prog_CC="$CC" # Let the user override the test.
2375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2379 test -z "$as_dir" && as_dir=.
2380 for ac_exec_ext in '' $ac_executable_extensions; do
2381 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2382 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2392 if test -n "$CC"; then
2393 echo "$as_me:$LINENO: result: $CC" >&5
2394 echo "${ECHO_T}$CC" >&6
2396 echo "$as_me:$LINENO: result: no" >&5
2397 echo "${ECHO_T}no" >&6
2401 if test -z "$ac_cv_prog_CC"; then
2403 # Extract the first word of "gcc", so it can be a program name with args.
2404 set dummy gcc; ac_word=$2
2405 echo "$as_me:$LINENO: checking for $ac_word" >&5
2406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2407 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2408 echo $ECHO_N "(cached) $ECHO_C" >&6
2410 if test -n "$ac_ct_CC"; then
2411 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2417 test -z "$as_dir" && as_dir=.
2418 for ac_exec_ext in '' $ac_executable_extensions; do
2419 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2420 ac_cv_prog_ac_ct_CC="gcc"
2421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2429 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2430 if test -n "$ac_ct_CC"; then
2431 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2432 echo "${ECHO_T}$ac_ct_CC" >&6
2434 echo "$as_me:$LINENO: result: no" >&5
2435 echo "${ECHO_T}no" >&6
2443 if test -z "$CC"; then
2444 if test -n "$ac_tool_prefix"; then
2445 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2446 set dummy ${ac_tool_prefix}cc; ac_word=$2
2447 echo "$as_me:$LINENO: checking for $ac_word" >&5
2448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2449 if test "${ac_cv_prog_CC+set}" = set; then
2450 echo $ECHO_N "(cached) $ECHO_C" >&6
2452 if test -n "$CC"; then
2453 ac_cv_prog_CC="$CC" # Let the user override the test.
2455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2459 test -z "$as_dir" && as_dir=.
2460 for ac_exec_ext in '' $ac_executable_extensions; do
2461 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2462 ac_cv_prog_CC="${ac_tool_prefix}cc"
2463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2472 if test -n "$CC"; then
2473 echo "$as_me:$LINENO: result: $CC" >&5
2474 echo "${ECHO_T}$CC" >&6
2476 echo "$as_me:$LINENO: result: no" >&5
2477 echo "${ECHO_T}no" >&6
2481 if test -z "$ac_cv_prog_CC"; then
2483 # Extract the first word of "cc", so it can be a program name with args.
2484 set dummy cc; ac_word=$2
2485 echo "$as_me:$LINENO: checking for $ac_word" >&5
2486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2487 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2488 echo $ECHO_N "(cached) $ECHO_C" >&6
2490 if test -n "$ac_ct_CC"; then
2491 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2497 test -z "$as_dir" && as_dir=.
2498 for ac_exec_ext in '' $ac_executable_extensions; do
2499 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2500 ac_cv_prog_ac_ct_CC="cc"
2501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2509 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2510 if test -n "$ac_ct_CC"; then
2511 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2512 echo "${ECHO_T}$ac_ct_CC" >&6
2514 echo "$as_me:$LINENO: result: no" >&5
2515 echo "${ECHO_T}no" >&6
2524 if test -z "$CC"; then
2525 # Extract the first word of "cc", so it can be a program name with args.
2526 set dummy cc; ac_word=$2
2527 echo "$as_me:$LINENO: checking for $ac_word" >&5
2528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2529 if test "${ac_cv_prog_CC+set}" = set; then
2530 echo $ECHO_N "(cached) $ECHO_C" >&6
2532 if test -n "$CC"; then
2533 ac_cv_prog_CC="$CC" # Let the user override the test.
2536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540 test -z "$as_dir" && as_dir=.
2541 for ac_exec_ext in '' $ac_executable_extensions; do
2542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2543 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2544 ac_prog_rejected=yes
2548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2554 if test $ac_prog_rejected = yes; then
2555 # We found a bogon in the path, so make sure we never use it.
2556 set dummy $ac_cv_prog_CC
2558 if test $# != 0; then
2559 # We chose a different compiler from the bogus one.
2560 # However, it has the same basename, so the bogon will be chosen
2561 # first if we set CC to just the basename; use the full file name.
2563 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2569 if test -n "$CC"; then
2570 echo "$as_me:$LINENO: result: $CC" >&5
2571 echo "${ECHO_T}$CC" >&6
2573 echo "$as_me:$LINENO: result: no" >&5
2574 echo "${ECHO_T}no" >&6
2578 if test -z "$CC"; then
2579 if test -n "$ac_tool_prefix"; then
2582 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2583 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2584 echo "$as_me:$LINENO: checking for $ac_word" >&5
2585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2586 if test "${ac_cv_prog_CC+set}" = set; then
2587 echo $ECHO_N "(cached) $ECHO_C" >&6
2589 if test -n "$CC"; then
2590 ac_cv_prog_CC="$CC" # Let the user override the test.
2592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596 test -z "$as_dir" && as_dir=.
2597 for ac_exec_ext in '' $ac_executable_extensions; do
2598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2599 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2609 if test -n "$CC"; then
2610 echo "$as_me:$LINENO: result: $CC" >&5
2611 echo "${ECHO_T}$CC" >&6
2613 echo "$as_me:$LINENO: result: no" >&5
2614 echo "${ECHO_T}no" >&6
2617 test -n "$CC" && break
2620 if test -z "$CC"; then
2624 # Extract the first word of "$ac_prog", so it can be a program name with args.
2625 set dummy $ac_prog; ac_word=$2
2626 echo "$as_me:$LINENO: checking for $ac_word" >&5
2627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2628 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2629 echo $ECHO_N "(cached) $ECHO_C" >&6
2631 if test -n "$ac_ct_CC"; then
2632 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638 test -z "$as_dir" && as_dir=.
2639 for ac_exec_ext in '' $ac_executable_extensions; do
2640 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2641 ac_cv_prog_ac_ct_CC="$ac_prog"
2642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2650 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2651 if test -n "$ac_ct_CC"; then
2652 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2653 echo "${ECHO_T}$ac_ct_CC" >&6
2655 echo "$as_me:$LINENO: result: no" >&5
2656 echo "${ECHO_T}no" >&6
2659 test -n "$ac_ct_CC" && break
2668 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2669 See \`config.log' for more details." >&5
2670 echo "$as_me: error: no acceptable C compiler found in \$PATH
2671 See \`config.log' for more details." >&2;}
2672 { (exit 1); exit 1; }; }
2674 # Provide some information about the compiler.
2675 echo "$as_me:$LINENO:" \
2676 "checking for C compiler version" >&5
2677 ac_compiler=`set X $ac_compile; echo $2`
2678 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2679 (eval $ac_compiler --version </dev/null >&5) 2>&5
2681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682 (exit $ac_status); }
2683 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2684 (eval $ac_compiler -v </dev/null >&5) 2>&5
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }
2688 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2689 (eval $ac_compiler -V </dev/null >&5) 2>&5
2691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692 (exit $ac_status); }
2694 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2695 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2696 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2697 echo $ECHO_N "(cached) $ECHO_C" >&6
2699 cat >conftest.$ac_ext <<_ACEOF
2702 cat confdefs.h >>conftest.$ac_ext
2703 cat >>conftest.$ac_ext <<_ACEOF
2704 /* end confdefs.h. */
2717 rm -f conftest.$ac_objext
2718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2719 (eval $ac_compile) 2>conftest.er1
2721 grep -v '^ *+' conftest.er1 >conftest.err
2723 cat conftest.err >&5
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); } &&
2726 { ac_try='test -z "$ac_c_werror_flag"
2727 || test ! -s conftest.err'
2728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); }; } &&
2733 { ac_try='test -s conftest.$ac_objext'
2734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); }; }; then
2741 echo "$as_me: failed program was:" >&5
2742 sed 's/^/| /' conftest.$ac_ext >&5
2746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2747 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2750 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2751 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2752 GCC=`test $ac_compiler_gnu = yes && echo yes`
2753 ac_test_CFLAGS=${CFLAGS+set}
2754 ac_save_CFLAGS=$CFLAGS
2756 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2757 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2758 if test "${ac_cv_prog_cc_g+set}" = set; then
2759 echo $ECHO_N "(cached) $ECHO_C" >&6
2761 cat >conftest.$ac_ext <<_ACEOF
2764 cat confdefs.h >>conftest.$ac_ext
2765 cat >>conftest.$ac_ext <<_ACEOF
2766 /* end confdefs.h. */
2776 rm -f conftest.$ac_objext
2777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2778 (eval $ac_compile) 2>conftest.er1
2780 grep -v '^ *+' conftest.er1 >conftest.err
2782 cat conftest.err >&5
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); } &&
2785 { ac_try='test -z "$ac_c_werror_flag"
2786 || test ! -s conftest.err'
2787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); }; } &&
2792 { ac_try='test -s conftest.$ac_objext'
2793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); }; }; then
2800 echo "$as_me: failed program was:" >&5
2801 sed 's/^/| /' conftest.$ac_ext >&5
2805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2807 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2808 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2809 if test "$ac_test_CFLAGS" = set; then
2810 CFLAGS=$ac_save_CFLAGS
2811 elif test $ac_cv_prog_cc_g = yes; then
2812 if test "$GCC" = yes; then
2818 if test "$GCC" = yes; then
2824 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2825 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2826 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2827 echo $ECHO_N "(cached) $ECHO_C" >&6
2829 ac_cv_prog_cc_stdc=no
2831 cat >conftest.$ac_ext <<_ACEOF
2834 cat confdefs.h >>conftest.$ac_ext
2835 cat >>conftest.$ac_ext <<_ACEOF
2836 /* end confdefs.h. */
2839 #include <sys/types.h>
2840 #include <sys/stat.h>
2841 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2842 struct buf { int x; };
2843 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2844 static char *e (p, i)
2850 static char *f (char * (*g) (char **, int), char **p, ...)
2855 s = g (p, va_arg (v,int));
2860 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2861 function prototypes and stuff, but not '\xHH' hex character constants.
2862 These don't provoke an error unfortunately, instead are silently treated
2863 as 'x'. The following induces an error, until -std1 is added to get
2864 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2865 array size at least. It's necessary to write '\x00'==0 to get something
2866 that's true only with -std1. */
2867 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2869 int test (int i, double x);
2870 struct s1 {int (*f) (int a);};
2871 struct s2 {int (*f) (double a);};
2872 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2878 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2883 # Don't try gcc -ansi; that turns off useful extensions and
2884 # breaks some systems' header files.
2885 # AIX -qlanglvl=ansi
2886 # Ultrix and OSF/1 -std1
2887 # HP-UX 10.20 and later -Ae
2888 # HP-UX older versions -Aa -D_HPUX_SOURCE
2889 # SVR4 -Xc -D__EXTENSIONS__
2890 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2892 CC="$ac_save_CC $ac_arg"
2893 rm -f conftest.$ac_objext
2894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2895 (eval $ac_compile) 2>conftest.er1
2897 grep -v '^ *+' conftest.er1 >conftest.err
2899 cat conftest.err >&5
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); } &&
2902 { ac_try='test -z "$ac_c_werror_flag"
2903 || test ! -s conftest.err'
2904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908 (exit $ac_status); }; } &&
2909 { ac_try='test -s conftest.$ac_objext'
2910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); }; }; then
2915 ac_cv_prog_cc_stdc=$ac_arg
2918 echo "$as_me: failed program was:" >&5
2919 sed 's/^/| /' conftest.$ac_ext >&5
2922 rm -f conftest.err conftest.$ac_objext
2924 rm -f conftest.$ac_ext conftest.$ac_objext
2929 case "x$ac_cv_prog_cc_stdc" in
2931 echo "$as_me:$LINENO: result: none needed" >&5
2932 echo "${ECHO_T}none needed" >&6 ;;
2934 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2935 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2936 CC="$CC $ac_cv_prog_cc_stdc" ;;
2939 # Some people use a C++ compiler to compile C. Since we use `exit',
2940 # in C++ we need to declare it. In case someone uses the same compiler
2941 # for both compiling C and C++ we need to have the C++ compiler decide
2942 # the declaration of exit, since it's the most demanding environment.
2943 cat >conftest.$ac_ext <<_ACEOF
2948 rm -f conftest.$ac_objext
2949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2950 (eval $ac_compile) 2>conftest.er1
2952 grep -v '^ *+' conftest.er1 >conftest.err
2954 cat conftest.err >&5
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); } &&
2957 { ac_try='test -z "$ac_c_werror_flag"
2958 || test ! -s conftest.err'
2959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); }; } &&
2964 { ac_try='test -s conftest.$ac_objext'
2965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); }; }; then
2970 for ac_declaration in \
2972 'extern "C" void std::exit (int) throw (); using std::exit;' \
2973 'extern "C" void std::exit (int); using std::exit;' \
2974 'extern "C" void exit (int) throw ();' \
2975 'extern "C" void exit (int);' \
2978 cat >conftest.$ac_ext <<_ACEOF
2981 cat confdefs.h >>conftest.$ac_ext
2982 cat >>conftest.$ac_ext <<_ACEOF
2983 /* end confdefs.h. */
2994 rm -f conftest.$ac_objext
2995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2996 (eval $ac_compile) 2>conftest.er1
2998 grep -v '^ *+' conftest.er1 >conftest.err
3000 cat conftest.err >&5
3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); } &&
3003 { ac_try='test -z "$ac_c_werror_flag"
3004 || test ! -s conftest.err'
3005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009 (exit $ac_status); }; } &&
3010 { ac_try='test -s conftest.$ac_objext'
3011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015 (exit $ac_status); }; }; then
3018 echo "$as_me: failed program was:" >&5
3019 sed 's/^/| /' conftest.$ac_ext >&5
3023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3024 cat >conftest.$ac_ext <<_ACEOF
3027 cat confdefs.h >>conftest.$ac_ext
3028 cat >>conftest.$ac_ext <<_ACEOF
3029 /* end confdefs.h. */
3039 rm -f conftest.$ac_objext
3040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3041 (eval $ac_compile) 2>conftest.er1
3043 grep -v '^ *+' conftest.er1 >conftest.err
3045 cat conftest.err >&5
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); } &&
3048 { ac_try='test -z "$ac_c_werror_flag"
3049 || test ! -s conftest.err'
3050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); }; } &&
3055 { ac_try='test -s conftest.$ac_objext'
3056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060 (exit $ac_status); }; }; then
3063 echo "$as_me: failed program was:" >&5
3064 sed 's/^/| /' conftest.$ac_ext >&5
3067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3070 if test -n "$ac_declaration"; then
3071 echo '#ifdef __cplusplus' >>confdefs.h
3072 echo $ac_declaration >>confdefs.h
3073 echo '#endif' >>confdefs.h
3077 echo "$as_me: failed program was:" >&5
3078 sed 's/^/| /' conftest.$ac_ext >&5
3081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3083 ac_cpp='$CPP $CPPFLAGS'
3084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3089 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
3094 echo "$as_me:$LINENO: checking for library containing crypt" >&5
3095 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
3096 if test "${ac_cv_search_crypt+set}" = set; then
3097 echo $ECHO_N "(cached) $ECHO_C" >&6
3099 ac_func_search_save_LIBS=$LIBS
3100 ac_cv_search_crypt=no
3101 cat >conftest.$ac_ext <<_ACEOF
3104 cat confdefs.h >>conftest.$ac_ext
3105 cat >>conftest.$ac_ext <<_ACEOF
3106 /* end confdefs.h. */
3108 /* Override any gcc2 internal prototype to avoid an error. */
3112 /* We use char because int might match the return type of a gcc2
3113 builtin and then its argument prototype would still apply. */
3123 rm -f conftest.$ac_objext conftest$ac_exeext
3124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3125 (eval $ac_link) 2>conftest.er1
3127 grep -v '^ *+' conftest.er1 >conftest.err
3129 cat conftest.err >&5
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); } &&
3132 { ac_try='test -z "$ac_c_werror_flag"
3133 || test ! -s conftest.err'
3134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); }; } &&
3139 { ac_try='test -s conftest$ac_exeext'
3140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); }; }; then
3145 ac_cv_search_crypt="none required"
3147 echo "$as_me: failed program was:" >&5
3148 sed 's/^/| /' conftest.$ac_ext >&5
3151 rm -f conftest.err conftest.$ac_objext \
3152 conftest$ac_exeext conftest.$ac_ext
3153 if test "$ac_cv_search_crypt" = no; then
3154 for ac_lib in descrypt crypt; do
3155 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3156 cat >conftest.$ac_ext <<_ACEOF
3159 cat confdefs.h >>conftest.$ac_ext
3160 cat >>conftest.$ac_ext <<_ACEOF
3161 /* end confdefs.h. */
3163 /* Override any gcc2 internal prototype to avoid an error. */
3167 /* We use char because int might match the return type of a gcc2
3168 builtin and then its argument prototype would still apply. */
3178 rm -f conftest.$ac_objext conftest$ac_exeext
3179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3180 (eval $ac_link) 2>conftest.er1
3182 grep -v '^ *+' conftest.er1 >conftest.err
3184 cat conftest.err >&5
3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); } &&
3187 { ac_try='test -z "$ac_c_werror_flag"
3188 || test ! -s conftest.err'
3189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); }; } &&
3194 { ac_try='test -s conftest$ac_exeext'
3195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); }; }; then
3200 ac_cv_search_crypt="-l$ac_lib"
3203 echo "$as_me: failed program was:" >&5
3204 sed 's/^/| /' conftest.$ac_ext >&5
3207 rm -f conftest.err conftest.$ac_objext \
3208 conftest$ac_exeext conftest.$ac_ext
3211 LIBS=$ac_func_search_save_LIBS
3213 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
3214 echo "${ECHO_T}$ac_cv_search_crypt" >&6
3215 if test "$ac_cv_search_crypt" != no; then
3216 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
3219 { { echo "$as_me:$LINENO: error: Unable to find library containing crypt()" >&5
3220 echo "$as_me: error: Unable to find library containing crypt()" >&2;}
3221 { (exit 1); exit 1; }; }
3226 # Most operating systems have gethostbyname() in the default searched
3227 # libraries (i.e. libc):
3228 echo "$as_me:$LINENO: checking for gethostbyname" >&5
3229 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3230 if test "${ac_cv_func_gethostbyname+set}" = set; then
3231 echo $ECHO_N "(cached) $ECHO_C" >&6
3233 cat >conftest.$ac_ext <<_ACEOF
3236 cat confdefs.h >>conftest.$ac_ext
3237 cat >>conftest.$ac_ext <<_ACEOF
3238 /* end confdefs.h. */
3239 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3240 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3241 #define gethostbyname innocuous_gethostbyname
3243 /* System header to define __stub macros and hopefully few prototypes,
3244 which can conflict with char gethostbyname (); below.
3245 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3246 <limits.h> exists even on freestanding compilers. */
3249 # include <limits.h>
3251 # include <assert.h>
3254 #undef gethostbyname
3256 /* Override any gcc2 internal prototype to avoid an error. */
3261 /* We use char because int might match the return type of a gcc2
3262 builtin and then its argument prototype would still apply. */
3263 char gethostbyname ();
3264 /* The GNU C library defines this for functions which it implements
3265 to always fail with ENOSYS. Some functions are actually named
3266 something starting with __ and the normal name is an alias. */
3267 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3270 char (*f) () = gethostbyname;
3279 return f != gethostbyname;
3284 rm -f conftest.$ac_objext conftest$ac_exeext
3285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3286 (eval $ac_link) 2>conftest.er1
3288 grep -v '^ *+' conftest.er1 >conftest.err
3290 cat conftest.err >&5
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); } &&
3293 { ac_try='test -z "$ac_c_werror_flag"
3294 || test ! -s conftest.err'
3295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299 (exit $ac_status); }; } &&
3300 { ac_try='test -s conftest$ac_exeext'
3301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305 (exit $ac_status); }; }; then
3306 ac_cv_func_gethostbyname=yes
3308 echo "$as_me: failed program was:" >&5
3309 sed 's/^/| /' conftest.$ac_ext >&5
3311 ac_cv_func_gethostbyname=no
3313 rm -f conftest.err conftest.$ac_objext \
3314 conftest$ac_exeext conftest.$ac_ext
3316 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3317 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3318 if test $ac_cv_func_gethostbyname = yes; then
3321 # Some OSes (eg. Solaris) place it in libnsl:
3323 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3324 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3325 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3326 echo $ECHO_N "(cached) $ECHO_C" >&6
3328 ac_check_lib_save_LIBS=$LIBS
3330 cat >conftest.$ac_ext <<_ACEOF
3333 cat confdefs.h >>conftest.$ac_ext
3334 cat >>conftest.$ac_ext <<_ACEOF
3335 /* end confdefs.h. */
3337 /* Override any gcc2 internal prototype to avoid an error. */
3341 /* We use char because int might match the return type of a gcc2
3342 builtin and then its argument prototype would still apply. */
3343 char gethostbyname ();
3352 rm -f conftest.$ac_objext conftest$ac_exeext
3353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3354 (eval $ac_link) 2>conftest.er1
3356 grep -v '^ *+' conftest.er1 >conftest.err
3358 cat conftest.err >&5
3359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360 (exit $ac_status); } &&
3361 { ac_try='test -z "$ac_c_werror_flag"
3362 || test ! -s conftest.err'
3363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); }; } &&
3368 { ac_try='test -s conftest$ac_exeext'
3369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); }; }; then
3374 ac_cv_lib_nsl_gethostbyname=yes
3376 echo "$as_me: failed program was:" >&5
3377 sed 's/^/| /' conftest.$ac_ext >&5
3379 ac_cv_lib_nsl_gethostbyname=no
3381 rm -f conftest.err conftest.$ac_objext \
3382 conftest$ac_exeext conftest.$ac_ext
3383 LIBS=$ac_check_lib_save_LIBS
3385 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3386 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3387 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3388 cat >>confdefs.h <<_ACEOF
3389 #define HAVE_LIBNSL 1
3395 # Some strange OSes (SINIX) have it in libsocket:
3397 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
3398 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
3399 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
3400 echo $ECHO_N "(cached) $ECHO_C" >&6
3402 ac_check_lib_save_LIBS=$LIBS
3403 LIBS="-lsocket $LIBS"
3404 cat >conftest.$ac_ext <<_ACEOF
3407 cat confdefs.h >>conftest.$ac_ext
3408 cat >>conftest.$ac_ext <<_ACEOF
3409 /* end confdefs.h. */
3411 /* Override any gcc2 internal prototype to avoid an error. */
3415 /* We use char because int might match the return type of a gcc2
3416 builtin and then its argument prototype would still apply. */
3417 char gethostbyname ();
3426 rm -f conftest.$ac_objext conftest$ac_exeext
3427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3428 (eval $ac_link) 2>conftest.er1
3430 grep -v '^ *+' conftest.er1 >conftest.err
3432 cat conftest.err >&5
3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434 (exit $ac_status); } &&
3435 { ac_try='test -z "$ac_c_werror_flag"
3436 || test ! -s conftest.err'
3437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); }; } &&
3442 { ac_try='test -s conftest$ac_exeext'
3443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); }; }; then
3448 ac_cv_lib_socket_gethostbyname=yes
3450 echo "$as_me: failed program was:" >&5
3451 sed 's/^/| /' conftest.$ac_ext >&5
3453 ac_cv_lib_socket_gethostbyname=no
3455 rm -f conftest.err conftest.$ac_objext \
3456 conftest$ac_exeext conftest.$ac_ext
3457 LIBS=$ac_check_lib_save_LIBS
3459 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
3460 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
3461 if test $ac_cv_lib_socket_gethostbyname = yes; then
3462 cat >>confdefs.h <<_ACEOF
3463 #define HAVE_LIBSOCKET 1
3466 LIBS="-lsocket $LIBS"
3469 # Unfortunately libsocket sometimes depends on libnsl.
3470 # AC_CHECK_LIB's API is essentially broken so the following
3471 # ugliness is necessary:
3472 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
3473 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
3474 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
3475 echo $ECHO_N "(cached) $ECHO_C" >&6
3477 ac_check_lib_save_LIBS=$LIBS
3478 LIBS="-lsocket -lnsl $LIBS"
3479 cat >conftest.$ac_ext <<_ACEOF
3482 cat confdefs.h >>conftest.$ac_ext
3483 cat >>conftest.$ac_ext <<_ACEOF
3484 /* end confdefs.h. */
3486 /* Override any gcc2 internal prototype to avoid an error. */
3490 /* We use char because int might match the return type of a gcc2
3491 builtin and then its argument prototype would still apply. */
3492 char gethostbyname ();
3501 rm -f conftest.$ac_objext conftest$ac_exeext
3502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3503 (eval $ac_link) 2>conftest.er1
3505 grep -v '^ *+' conftest.er1 >conftest.err
3507 cat conftest.err >&5
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); } &&
3510 { ac_try='test -z "$ac_c_werror_flag"
3511 || test ! -s conftest.err'
3512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); }; } &&
3517 { ac_try='test -s conftest$ac_exeext'
3518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); }; }; then
3523 ac_cv_lib_socket_gethostbyname=yes
3525 echo "$as_me: failed program was:" >&5
3526 sed 's/^/| /' conftest.$ac_ext >&5
3528 ac_cv_lib_socket_gethostbyname=no
3530 rm -f conftest.err conftest.$ac_objext \
3531 conftest$ac_exeext conftest.$ac_ext
3532 LIBS=$ac_check_lib_save_LIBS
3534 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
3535 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
3536 if test $ac_cv_lib_socket_gethostbyname = yes; then
3537 LIBS="-lsocket -lnsl $LIBS"
3540 echo "$as_me:$LINENO: checking for gethostbyname in -lresolv" >&5
3541 echo $ECHO_N "checking for gethostbyname in -lresolv... $ECHO_C" >&6
3542 if test "${ac_cv_lib_resolv_gethostbyname+set}" = set; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6
3545 ac_check_lib_save_LIBS=$LIBS
3546 LIBS="-lresolv $LIBS"
3547 cat >conftest.$ac_ext <<_ACEOF
3550 cat confdefs.h >>conftest.$ac_ext
3551 cat >>conftest.$ac_ext <<_ACEOF
3552 /* end confdefs.h. */
3554 /* Override any gcc2 internal prototype to avoid an error. */
3558 /* We use char because int might match the return type of a gcc2
3559 builtin and then its argument prototype would still apply. */
3560 char gethostbyname ();
3569 rm -f conftest.$ac_objext conftest$ac_exeext
3570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3571 (eval $ac_link) 2>conftest.er1
3573 grep -v '^ *+' conftest.er1 >conftest.err
3575 cat conftest.err >&5
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); } &&
3578 { ac_try='test -z "$ac_c_werror_flag"
3579 || test ! -s conftest.err'
3580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584 (exit $ac_status); }; } &&
3585 { ac_try='test -s conftest$ac_exeext'
3586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); }; }; then
3591 ac_cv_lib_resolv_gethostbyname=yes
3593 echo "$as_me: failed program was:" >&5
3594 sed 's/^/| /' conftest.$ac_ext >&5
3596 ac_cv_lib_resolv_gethostbyname=no
3598 rm -f conftest.err conftest.$ac_objext \
3599 conftest$ac_exeext conftest.$ac_ext
3600 LIBS=$ac_check_lib_save_LIBS
3602 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname" >&5
3603 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname" >&6
3604 if test $ac_cv_lib_resolv_gethostbyname = yes; then
3605 cat >>confdefs.h <<_ACEOF
3606 #define HAVE_LIBRESOLV 1
3609 LIBS="-lresolv $LIBS"
3624 echo "$as_me:$LINENO: checking for socket" >&5
3625 echo $ECHO_N "checking for socket... $ECHO_C" >&6
3626 if test "${ac_cv_func_socket+set}" = set; then
3627 echo $ECHO_N "(cached) $ECHO_C" >&6
3629 cat >conftest.$ac_ext <<_ACEOF
3632 cat confdefs.h >>conftest.$ac_ext
3633 cat >>conftest.$ac_ext <<_ACEOF
3634 /* end confdefs.h. */
3635 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
3636 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3637 #define socket innocuous_socket
3639 /* System header to define __stub macros and hopefully few prototypes,
3640 which can conflict with char socket (); below.
3641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3642 <limits.h> exists even on freestanding compilers. */
3645 # include <limits.h>
3647 # include <assert.h>
3652 /* Override any gcc2 internal prototype to avoid an error. */
3657 /* We use char because int might match the return type of a gcc2
3658 builtin and then its argument prototype would still apply. */
3660 /* The GNU C library defines this for functions which it implements
3661 to always fail with ENOSYS. Some functions are actually named
3662 something starting with __ and the normal name is an alias. */
3663 #if defined (__stub_socket) || defined (__stub___socket)
3666 char (*f) () = socket;
3680 rm -f conftest.$ac_objext conftest$ac_exeext
3681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3682 (eval $ac_link) 2>conftest.er1
3684 grep -v '^ *+' conftest.er1 >conftest.err
3686 cat conftest.err >&5
3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688 (exit $ac_status); } &&
3689 { ac_try='test -z "$ac_c_werror_flag"
3690 || test ! -s conftest.err'
3691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695 (exit $ac_status); }; } &&
3696 { ac_try='test -s conftest$ac_exeext'
3697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701 (exit $ac_status); }; }; then
3702 ac_cv_func_socket=yes
3704 echo "$as_me: failed program was:" >&5
3705 sed 's/^/| /' conftest.$ac_ext >&5
3707 ac_cv_func_socket=no
3709 rm -f conftest.err conftest.$ac_objext \
3710 conftest$ac_exeext conftest.$ac_ext
3712 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
3713 echo "${ECHO_T}$ac_cv_func_socket" >&6
3714 if test $ac_cv_func_socket = yes; then
3718 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3719 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3720 if test "${ac_cv_lib_socket_socket+set}" = set; then
3721 echo $ECHO_N "(cached) $ECHO_C" >&6
3723 ac_check_lib_save_LIBS=$LIBS
3724 LIBS="-lsocket $LIBS"
3725 cat >conftest.$ac_ext <<_ACEOF
3728 cat confdefs.h >>conftest.$ac_ext
3729 cat >>conftest.$ac_ext <<_ACEOF
3730 /* end confdefs.h. */
3732 /* Override any gcc2 internal prototype to avoid an error. */
3736 /* We use char because int might match the return type of a gcc2
3737 builtin and then its argument prototype would still apply. */
3747 rm -f conftest.$ac_objext conftest$ac_exeext
3748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3749 (eval $ac_link) 2>conftest.er1
3751 grep -v '^ *+' conftest.er1 >conftest.err
3753 cat conftest.err >&5
3754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755 (exit $ac_status); } &&
3756 { ac_try='test -z "$ac_c_werror_flag"
3757 || test ! -s conftest.err'
3758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762 (exit $ac_status); }; } &&
3763 { ac_try='test -s conftest$ac_exeext'
3764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768 (exit $ac_status); }; }; then
3769 ac_cv_lib_socket_socket=yes
3771 echo "$as_me: failed program was:" >&5
3772 sed 's/^/| /' conftest.$ac_ext >&5
3774 ac_cv_lib_socket_socket=no
3776 rm -f conftest.err conftest.$ac_objext \
3777 conftest$ac_exeext conftest.$ac_ext
3778 LIBS=$ac_check_lib_save_LIBS
3780 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3781 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3782 if test $ac_cv_lib_socket_socket = yes; then
3783 cat >>confdefs.h <<_ACEOF
3784 #define HAVE_LIBSOCKET 1
3787 LIBS="-lsocket $LIBS"
3790 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3791 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3792 if test "${ac_cv_lib_socket_socket+set}" = set; then
3793 echo $ECHO_N "(cached) $ECHO_C" >&6
3795 ac_check_lib_save_LIBS=$LIBS
3796 LIBS="-lsocket -lnsl $LIBS"
3797 cat >conftest.$ac_ext <<_ACEOF
3800 cat confdefs.h >>conftest.$ac_ext
3801 cat >>conftest.$ac_ext <<_ACEOF
3802 /* end confdefs.h. */
3804 /* Override any gcc2 internal prototype to avoid an error. */
3808 /* We use char because int might match the return type of a gcc2
3809 builtin and then its argument prototype would still apply. */
3819 rm -f conftest.$ac_objext conftest$ac_exeext
3820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3821 (eval $ac_link) 2>conftest.er1
3823 grep -v '^ *+' conftest.er1 >conftest.err
3825 cat conftest.err >&5
3826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827 (exit $ac_status); } &&
3828 { ac_try='test -z "$ac_c_werror_flag"
3829 || test ! -s conftest.err'
3830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); }; } &&
3835 { ac_try='test -s conftest$ac_exeext'
3836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); }; }; then
3841 ac_cv_lib_socket_socket=yes
3843 echo "$as_me: failed program was:" >&5
3844 sed 's/^/| /' conftest.$ac_ext >&5
3846 ac_cv_lib_socket_socket=no
3848 rm -f conftest.err conftest.$ac_objext \
3849 conftest$ac_exeext conftest.$ac_ext
3850 LIBS=$ac_check_lib_save_LIBS
3852 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3853 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3854 if test $ac_cv_lib_socket_socket = yes; then
3855 LIBS="-lsocket -lnsl $LIBS"
3865 ac_cpp='$CPP $CPPFLAGS'
3866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3869 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3870 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3871 # On Suns, sometimes $CPP names a directory.
3872 if test -n "$CPP" && test -d "$CPP"; then
3875 if test -z "$CPP"; then
3876 if test "${ac_cv_prog_CPP+set}" = set; then
3877 echo $ECHO_N "(cached) $ECHO_C" >&6
3879 # Double quotes because CPP needs to be expanded
3880 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3883 for ac_c_preproc_warn_flag in '' yes
3885 # Use a header file that comes with gcc, so configuring glibc
3886 # with a fresh cross-compiler works.
3887 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3888 # <limits.h> exists even on freestanding compilers.
3889 # On the NeXT, cc -E runs the code through the compiler's parser,
3890 # not just through cpp. "Syntax error" is here to catch this case.
3891 cat >conftest.$ac_ext <<_ACEOF
3894 cat confdefs.h >>conftest.$ac_ext
3895 cat >>conftest.$ac_ext <<_ACEOF
3896 /* end confdefs.h. */
3898 # include <limits.h>
3900 # include <assert.h>
3904 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3905 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3907 grep -v '^ *+' conftest.er1 >conftest.err
3909 cat conftest.err >&5
3910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911 (exit $ac_status); } >/dev/null; then
3912 if test -s conftest.err; then
3913 ac_cpp_err=$ac_c_preproc_warn_flag
3914 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3921 if test -z "$ac_cpp_err"; then
3924 echo "$as_me: failed program was:" >&5
3925 sed 's/^/| /' conftest.$ac_ext >&5
3927 # Broken: fails on valid input.
3930 rm -f conftest.err conftest.$ac_ext
3932 # OK, works on sane cases. Now check whether non-existent headers
3933 # can be detected and how.
3934 cat >conftest.$ac_ext <<_ACEOF
3937 cat confdefs.h >>conftest.$ac_ext
3938 cat >>conftest.$ac_ext <<_ACEOF
3939 /* end confdefs.h. */
3940 #include <ac_nonexistent.h>
3942 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3943 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3945 grep -v '^ *+' conftest.er1 >conftest.err
3947 cat conftest.err >&5
3948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949 (exit $ac_status); } >/dev/null; then
3950 if test -s conftest.err; then
3951 ac_cpp_err=$ac_c_preproc_warn_flag
3952 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3959 if test -z "$ac_cpp_err"; then
3960 # Broken: success on invalid input.
3963 echo "$as_me: failed program was:" >&5
3964 sed 's/^/| /' conftest.$ac_ext >&5
3966 # Passes both tests.
3970 rm -f conftest.err conftest.$ac_ext
3973 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3974 rm -f conftest.err conftest.$ac_ext
3975 if $ac_preproc_ok; then
3987 echo "$as_me:$LINENO: result: $CPP" >&5
3988 echo "${ECHO_T}$CPP" >&6
3990 for ac_c_preproc_warn_flag in '' yes
3992 # Use a header file that comes with gcc, so configuring glibc
3993 # with a fresh cross-compiler works.
3994 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3995 # <limits.h> exists even on freestanding compilers.
3996 # On the NeXT, cc -E runs the code through the compiler's parser,
3997 # not just through cpp. "Syntax error" is here to catch this case.
3998 cat >conftest.$ac_ext <<_ACEOF
4001 cat confdefs.h >>conftest.$ac_ext
4002 cat >>conftest.$ac_ext <<_ACEOF
4003 /* end confdefs.h. */
4005 # include <limits.h>
4007 # include <assert.h>
4011 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4012 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4014 grep -v '^ *+' conftest.er1 >conftest.err
4016 cat conftest.err >&5
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); } >/dev/null; then
4019 if test -s conftest.err; then
4020 ac_cpp_err=$ac_c_preproc_warn_flag
4021 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4028 if test -z "$ac_cpp_err"; then
4031 echo "$as_me: failed program was:" >&5
4032 sed 's/^/| /' conftest.$ac_ext >&5
4034 # Broken: fails on valid input.
4037 rm -f conftest.err conftest.$ac_ext
4039 # OK, works on sane cases. Now check whether non-existent headers
4040 # can be detected and how.
4041 cat >conftest.$ac_ext <<_ACEOF
4044 cat confdefs.h >>conftest.$ac_ext
4045 cat >>conftest.$ac_ext <<_ACEOF
4046 /* end confdefs.h. */
4047 #include <ac_nonexistent.h>
4049 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4050 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4052 grep -v '^ *+' conftest.er1 >conftest.err
4054 cat conftest.err >&5
4055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056 (exit $ac_status); } >/dev/null; then
4057 if test -s conftest.err; then
4058 ac_cpp_err=$ac_c_preproc_warn_flag
4059 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4066 if test -z "$ac_cpp_err"; then
4067 # Broken: success on invalid input.
4070 echo "$as_me: failed program was:" >&5
4071 sed 's/^/| /' conftest.$ac_ext >&5
4073 # Passes both tests.
4077 rm -f conftest.err conftest.$ac_ext
4080 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4081 rm -f conftest.err conftest.$ac_ext
4082 if $ac_preproc_ok; then
4085 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4086 See \`config.log' for more details." >&5
4087 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4088 See \`config.log' for more details." >&2;}
4089 { (exit 1); exit 1; }; }
4093 ac_cpp='$CPP $CPPFLAGS'
4094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4099 echo "$as_me:$LINENO: checking for egrep" >&5
4100 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4101 if test "${ac_cv_prog_egrep+set}" = set; then
4102 echo $ECHO_N "(cached) $ECHO_C" >&6
4104 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4105 then ac_cv_prog_egrep='grep -E'
4106 else ac_cv_prog_egrep='egrep'
4109 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4110 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4111 EGREP=$ac_cv_prog_egrep
4114 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4115 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4116 if test "${ac_cv_header_stdc+set}" = set; then
4117 echo $ECHO_N "(cached) $ECHO_C" >&6
4119 cat >conftest.$ac_ext <<_ACEOF
4122 cat confdefs.h >>conftest.$ac_ext
4123 cat >>conftest.$ac_ext <<_ACEOF
4124 /* end confdefs.h. */
4138 rm -f conftest.$ac_objext
4139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4140 (eval $ac_compile) 2>conftest.er1
4142 grep -v '^ *+' conftest.er1 >conftest.err
4144 cat conftest.err >&5
4145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146 (exit $ac_status); } &&
4147 { ac_try='test -z "$ac_c_werror_flag"
4148 || test ! -s conftest.err'
4149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153 (exit $ac_status); }; } &&
4154 { ac_try='test -s conftest.$ac_objext'
4155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159 (exit $ac_status); }; }; then
4160 ac_cv_header_stdc=yes
4162 echo "$as_me: failed program was:" >&5
4163 sed 's/^/| /' conftest.$ac_ext >&5
4165 ac_cv_header_stdc=no
4167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4169 if test $ac_cv_header_stdc = yes; then
4170 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4171 cat >conftest.$ac_ext <<_ACEOF
4174 cat confdefs.h >>conftest.$ac_ext
4175 cat >>conftest.$ac_ext <<_ACEOF
4176 /* end confdefs.h. */
4180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4181 $EGREP "memchr" >/dev/null 2>&1; then
4184 ac_cv_header_stdc=no
4190 if test $ac_cv_header_stdc = yes; then
4191 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4192 cat >conftest.$ac_ext <<_ACEOF
4195 cat confdefs.h >>conftest.$ac_ext
4196 cat >>conftest.$ac_ext <<_ACEOF
4197 /* end confdefs.h. */
4201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4202 $EGREP "free" >/dev/null 2>&1; then
4205 ac_cv_header_stdc=no
4211 if test $ac_cv_header_stdc = yes; then
4212 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4213 if test "$cross_compiling" = yes; then
4216 cat >conftest.$ac_ext <<_ACEOF
4219 cat confdefs.h >>conftest.$ac_ext
4220 cat >>conftest.$ac_ext <<_ACEOF
4221 /* end confdefs.h. */
4223 #if ((' ' & 0x0FF) == 0x020)
4224 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4225 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4227 # define ISLOWER(c) \
4228 (('a' <= (c) && (c) <= 'i') \
4229 || ('j' <= (c) && (c) <= 'r') \
4230 || ('s' <= (c) && (c) <= 'z'))
4231 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4234 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4239 for (i = 0; i < 256; i++)
4240 if (XOR (islower (i), ISLOWER (i))
4241 || toupper (i) != TOUPPER (i))
4246 rm -f conftest$ac_exeext
4247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4248 (eval $ac_link) 2>&5
4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256 (exit $ac_status); }; }; then
4259 echo "$as_me: program exited with status $ac_status" >&5
4260 echo "$as_me: failed program was:" >&5
4261 sed 's/^/| /' conftest.$ac_ext >&5
4264 ac_cv_header_stdc=no
4266 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4270 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4271 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4272 if test $ac_cv_header_stdc = yes; then
4274 cat >>confdefs.h <<\_ACEOF
4275 #define STDC_HEADERS 1
4280 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4290 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4291 inttypes.h stdint.h unistd.h
4293 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4294 echo "$as_me:$LINENO: checking for $ac_header" >&5
4295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4297 echo $ECHO_N "(cached) $ECHO_C" >&6
4299 cat >conftest.$ac_ext <<_ACEOF
4302 cat confdefs.h >>conftest.$ac_ext
4303 cat >>conftest.$ac_ext <<_ACEOF
4304 /* end confdefs.h. */
4305 $ac_includes_default
4307 #include <$ac_header>
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"
4319 || test ! -s conftest.err'
4320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); }; } &&
4325 { ac_try='test -s conftest.$ac_objext'
4326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330 (exit $ac_status); }; }; then
4331 eval "$as_ac_Header=yes"
4333 echo "$as_me: failed program was:" >&5
4334 sed 's/^/| /' conftest.$ac_ext >&5
4336 eval "$as_ac_Header=no"
4338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4341 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4342 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4343 cat >>confdefs.h <<_ACEOF
4344 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4362 for ac_header in crypt.h poll.h inttypes.h stdint.h sys/devpoll.h sys/epoll.h sys/event.h sys/param.h sys/resource.h sys/socket.h
4364 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4366 echo "$as_me:$LINENO: checking for $ac_header" >&5
4367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4368 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4369 echo $ECHO_N "(cached) $ECHO_C" >&6
4371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4372 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4374 # Is the header compilable?
4375 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4376 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4377 cat >conftest.$ac_ext <<_ACEOF
4380 cat confdefs.h >>conftest.$ac_ext
4381 cat >>conftest.$ac_ext <<_ACEOF
4382 /* end confdefs.h. */
4383 $ac_includes_default
4384 #include <$ac_header>
4386 rm -f conftest.$ac_objext
4387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4388 (eval $ac_compile) 2>conftest.er1
4390 grep -v '^ *+' conftest.er1 >conftest.err
4392 cat conftest.err >&5
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); } &&
4395 { ac_try='test -z "$ac_c_werror_flag"
4396 || test ! -s conftest.err'
4397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); }; } &&
4402 { ac_try='test -s conftest.$ac_objext'
4403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); }; }; then
4408 ac_header_compiler=yes
4410 echo "$as_me: failed program was:" >&5
4411 sed 's/^/| /' conftest.$ac_ext >&5
4413 ac_header_compiler=no
4415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4416 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4417 echo "${ECHO_T}$ac_header_compiler" >&6
4419 # Is the header present?
4420 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4421 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4422 cat >conftest.$ac_ext <<_ACEOF
4425 cat confdefs.h >>conftest.$ac_ext
4426 cat >>conftest.$ac_ext <<_ACEOF
4427 /* end confdefs.h. */
4428 #include <$ac_header>
4430 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4431 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4433 grep -v '^ *+' conftest.er1 >conftest.err
4435 cat conftest.err >&5
4436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437 (exit $ac_status); } >/dev/null; then
4438 if test -s conftest.err; then
4439 ac_cpp_err=$ac_c_preproc_warn_flag
4440 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4447 if test -z "$ac_cpp_err"; then
4448 ac_header_preproc=yes
4450 echo "$as_me: failed program was:" >&5
4451 sed 's/^/| /' conftest.$ac_ext >&5
4453 ac_header_preproc=no
4455 rm -f conftest.err conftest.$ac_ext
4456 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4457 echo "${ECHO_T}$ac_header_preproc" >&6
4459 # So? What about this header?
4460 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4462 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4463 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4465 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4466 ac_header_preproc=yes
4469 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4470 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4471 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4472 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4473 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4474 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4475 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4476 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4478 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4479 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4480 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4483 ## ------------------------------------------ ##
4484 ## Report this to the AC_PACKAGE_NAME lists. ##
4485 ## ------------------------------------------ ##
4488 sed "s/^/$as_me: WARNING: /" >&2
4491 echo "$as_me:$LINENO: checking for $ac_header" >&5
4492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4494 echo $ECHO_N "(cached) $ECHO_C" >&6
4496 eval "$as_ac_Header=\$ac_header_preproc"
4498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4499 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4503 cat >>confdefs.h <<_ACEOF
4504 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4512 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4513 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4514 if test "${ac_cv_c_bigendian+set}" = set; then
4515 echo $ECHO_N "(cached) $ECHO_C" >&6
4517 # See if sys/param.h defines the BYTE_ORDER macro.
4518 cat >conftest.$ac_ext <<_ACEOF
4521 cat confdefs.h >>conftest.$ac_ext
4522 cat >>conftest.$ac_ext <<_ACEOF
4523 /* end confdefs.h. */
4524 #include <sys/types.h>
4525 #include <sys/param.h>
4530 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4538 rm -f conftest.$ac_objext
4539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4540 (eval $ac_compile) 2>conftest.er1
4542 grep -v '^ *+' conftest.er1 >conftest.err
4544 cat conftest.err >&5
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); } &&
4547 { ac_try='test -z "$ac_c_werror_flag"
4548 || test ! -s conftest.err'
4549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); }; } &&
4554 { ac_try='test -s conftest.$ac_objext'
4555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); }; }; then
4560 # It does; now see whether it defined to BIG_ENDIAN or not.
4561 cat >conftest.$ac_ext <<_ACEOF
4564 cat confdefs.h >>conftest.$ac_ext
4565 cat >>conftest.$ac_ext <<_ACEOF
4566 /* end confdefs.h. */
4567 #include <sys/types.h>
4568 #include <sys/param.h>
4573 #if BYTE_ORDER != BIG_ENDIAN
4581 rm -f conftest.$ac_objext
4582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4583 (eval $ac_compile) 2>conftest.er1
4585 grep -v '^ *+' conftest.er1 >conftest.err
4587 cat conftest.err >&5
4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589 (exit $ac_status); } &&
4590 { ac_try='test -z "$ac_c_werror_flag"
4591 || test ! -s conftest.err'
4592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); }; } &&
4597 { ac_try='test -s conftest.$ac_objext'
4598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); }; }; then
4603 ac_cv_c_bigendian=yes
4605 echo "$as_me: failed program was:" >&5
4606 sed 's/^/| /' conftest.$ac_ext >&5
4608 ac_cv_c_bigendian=no
4610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4612 echo "$as_me: failed program was:" >&5
4613 sed 's/^/| /' conftest.$ac_ext >&5
4615 # It does not; compile a test program.
4616 if test "$cross_compiling" = yes; then
4617 # try to guess the endianness by grepping values into an object file
4618 ac_cv_c_bigendian=unknown
4619 cat >conftest.$ac_ext <<_ACEOF
4622 cat confdefs.h >>conftest.$ac_ext
4623 cat >>conftest.$ac_ext <<_ACEOF
4624 /* end confdefs.h. */
4625 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4626 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4627 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4628 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4629 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4630 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4634 _ascii (); _ebcdic ();
4639 rm -f conftest.$ac_objext
4640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4641 (eval $ac_compile) 2>conftest.er1
4643 grep -v '^ *+' conftest.er1 >conftest.err
4645 cat conftest.err >&5
4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647 (exit $ac_status); } &&
4648 { ac_try='test -z "$ac_c_werror_flag"
4649 || test ! -s conftest.err'
4650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); }; } &&
4655 { ac_try='test -s conftest.$ac_objext'
4656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660 (exit $ac_status); }; }; then
4661 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4662 ac_cv_c_bigendian=yes
4664 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4665 if test "$ac_cv_c_bigendian" = unknown; then
4666 ac_cv_c_bigendian=no
4668 # finding both strings is unlikely to happen, but who knows?
4669 ac_cv_c_bigendian=unknown
4673 echo "$as_me: failed program was:" >&5
4674 sed 's/^/| /' conftest.$ac_ext >&5
4677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4679 cat >conftest.$ac_ext <<_ACEOF
4682 cat confdefs.h >>conftest.$ac_ext
4683 cat >>conftest.$ac_ext <<_ACEOF
4684 /* end confdefs.h. */
4688 /* Are we little or big endian? From Harbison&Steele. */
4692 char c[sizeof (long)];
4695 exit (u.c[sizeof (long) - 1] == 1);
4698 rm -f conftest$ac_exeext
4699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4700 (eval $ac_link) 2>&5
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); }; }; then
4709 ac_cv_c_bigendian=no
4711 echo "$as_me: program exited with status $ac_status" >&5
4712 echo "$as_me: failed program was:" >&5
4713 sed 's/^/| /' conftest.$ac_ext >&5
4716 ac_cv_c_bigendian=yes
4718 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4723 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4724 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4725 case $ac_cv_c_bigendian in
4728 cat >>confdefs.h <<\_ACEOF
4729 #define WORDS_BIGENDIAN 1
4735 { { echo "$as_me:$LINENO: error: unknown endianness
4736 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4737 echo "$as_me: error: unknown endianness
4738 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4739 { (exit 1); exit 1; }; } ;;
4742 echo "$as_me:$LINENO: checking for size_t" >&5
4743 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4744 if test "${ac_cv_type_size_t+set}" = set; then
4745 echo $ECHO_N "(cached) $ECHO_C" >&6
4747 cat >conftest.$ac_ext <<_ACEOF
4750 cat confdefs.h >>conftest.$ac_ext
4751 cat >>conftest.$ac_ext <<_ACEOF
4752 /* end confdefs.h. */
4753 $ac_includes_default
4759 if (sizeof (size_t))
4765 rm -f conftest.$ac_objext
4766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4767 (eval $ac_compile) 2>conftest.er1
4769 grep -v '^ *+' conftest.er1 >conftest.err
4771 cat conftest.err >&5
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); } &&
4774 { ac_try='test -z "$ac_c_werror_flag"
4775 || test ! -s conftest.err'
4776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); }; } &&
4781 { ac_try='test -s conftest.$ac_objext'
4782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786 (exit $ac_status); }; }; then
4787 ac_cv_type_size_t=yes
4789 echo "$as_me: failed program was:" >&5
4790 sed 's/^/| /' conftest.$ac_ext >&5
4792 ac_cv_type_size_t=no
4794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4796 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4797 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4798 if test $ac_cv_type_size_t = yes; then
4802 cat >>confdefs.h <<_ACEOF
4803 #define size_t unsigned
4808 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4809 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4810 if test "${ac_cv_header_time+set}" = set; then
4811 echo $ECHO_N "(cached) $ECHO_C" >&6
4813 cat >conftest.$ac_ext <<_ACEOF
4816 cat confdefs.h >>conftest.$ac_ext
4817 cat >>conftest.$ac_ext <<_ACEOF
4818 /* end confdefs.h. */
4819 #include <sys/types.h>
4820 #include <sys/time.h>
4826 if ((struct tm *) 0)
4832 rm -f conftest.$ac_objext
4833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4834 (eval $ac_compile) 2>conftest.er1
4836 grep -v '^ *+' conftest.er1 >conftest.err
4838 cat conftest.err >&5
4839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840 (exit $ac_status); } &&
4841 { ac_try='test -z "$ac_c_werror_flag"
4842 || test ! -s conftest.err'
4843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847 (exit $ac_status); }; } &&
4848 { ac_try='test -s conftest.$ac_objext'
4849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853 (exit $ac_status); }; }; then
4854 ac_cv_header_time=yes
4856 echo "$as_me: failed program was:" >&5
4857 sed 's/^/| /' conftest.$ac_ext >&5
4859 ac_cv_header_time=no
4861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4863 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4864 echo "${ECHO_T}$ac_cv_header_time" >&6
4865 if test $ac_cv_header_time = yes; then
4867 cat >>confdefs.h <<\_ACEOF
4868 #define TIME_WITH_SYS_TIME 1
4873 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4874 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4875 if test "${ac_cv_struct_tm+set}" = set; then
4876 echo $ECHO_N "(cached) $ECHO_C" >&6
4878 cat >conftest.$ac_ext <<_ACEOF
4881 cat confdefs.h >>conftest.$ac_ext
4882 cat >>conftest.$ac_ext <<_ACEOF
4883 /* end confdefs.h. */
4884 #include <sys/types.h>
4890 struct tm *tp; tp->tm_sec;
4895 rm -f conftest.$ac_objext
4896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4897 (eval $ac_compile) 2>conftest.er1
4899 grep -v '^ *+' conftest.er1 >conftest.err
4901 cat conftest.err >&5
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); } &&
4904 { ac_try='test -z "$ac_c_werror_flag"
4905 || test ! -s conftest.err'
4906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); }; } &&
4911 { ac_try='test -s conftest.$ac_objext'
4912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); }; }; then
4917 ac_cv_struct_tm=time.h
4919 echo "$as_me: failed program was:" >&5
4920 sed 's/^/| /' conftest.$ac_ext >&5
4922 ac_cv_struct_tm=sys/time.h
4924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4926 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4927 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4928 if test $ac_cv_struct_tm = sys/time.h; then
4930 cat >>confdefs.h <<\_ACEOF
4931 #define TM_IN_SYS_TIME 1
4936 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
4937 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
4938 if test "${ac_cv_type_uid_t+set}" = set; then
4939 echo $ECHO_N "(cached) $ECHO_C" >&6
4941 cat >conftest.$ac_ext <<_ACEOF
4944 cat confdefs.h >>conftest.$ac_ext
4945 cat >>conftest.$ac_ext <<_ACEOF
4946 /* end confdefs.h. */
4947 #include <sys/types.h>
4950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4951 $EGREP "uid_t" >/dev/null 2>&1; then
4952 ac_cv_type_uid_t=yes
4959 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
4960 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
4961 if test $ac_cv_type_uid_t = no; then
4963 cat >>confdefs.h <<\_ACEOF
4968 cat >>confdefs.h <<\_ACEOF
4974 echo "$as_me:$LINENO: checking for short" >&5
4975 echo $ECHO_N "checking for short... $ECHO_C" >&6
4976 if test "${ac_cv_type_short+set}" = set; then
4977 echo $ECHO_N "(cached) $ECHO_C" >&6
4979 cat >conftest.$ac_ext <<_ACEOF
4982 cat confdefs.h >>conftest.$ac_ext
4983 cat >>conftest.$ac_ext <<_ACEOF
4984 /* end confdefs.h. */
4985 $ac_includes_default
4997 rm -f conftest.$ac_objext
4998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4999 (eval $ac_compile) 2>conftest.er1
5001 grep -v '^ *+' conftest.er1 >conftest.err
5003 cat conftest.err >&5
5004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005 (exit $ac_status); } &&
5006 { ac_try='test -z "$ac_c_werror_flag"
5007 || test ! -s conftest.err'
5008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012 (exit $ac_status); }; } &&
5013 { ac_try='test -s conftest.$ac_objext'
5014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018 (exit $ac_status); }; }; then
5019 ac_cv_type_short=yes
5021 echo "$as_me: failed program was:" >&5
5022 sed 's/^/| /' conftest.$ac_ext >&5
5026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5028 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5029 echo "${ECHO_T}$ac_cv_type_short" >&6
5031 echo "$as_me:$LINENO: checking size of short" >&5
5032 echo $ECHO_N "checking size of short... $ECHO_C" >&6
5033 if test "${ac_cv_sizeof_short+set}" = set; then
5034 echo $ECHO_N "(cached) $ECHO_C" >&6
5036 if test "$ac_cv_type_short" = yes; then
5037 # The cast to unsigned long works around a bug in the HP C Compiler
5038 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5039 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5040 # This bug is HP SR number 8606223364.
5041 if test "$cross_compiling" = yes; then
5042 # Depending upon the size, compute the lo and hi bounds.
5043 cat >conftest.$ac_ext <<_ACEOF
5046 cat confdefs.h >>conftest.$ac_ext
5047 cat >>conftest.$ac_ext <<_ACEOF
5048 /* end confdefs.h. */
5049 $ac_includes_default
5053 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
5060 rm -f conftest.$ac_objext
5061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5062 (eval $ac_compile) 2>conftest.er1
5064 grep -v '^ *+' conftest.er1 >conftest.err
5066 cat conftest.err >&5
5067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); } &&
5069 { ac_try='test -z "$ac_c_werror_flag"
5070 || test ! -s conftest.err'
5071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075 (exit $ac_status); }; } &&
5076 { ac_try='test -s conftest.$ac_objext'
5077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); }; }; then
5084 cat >conftest.$ac_ext <<_ACEOF
5087 cat confdefs.h >>conftest.$ac_ext
5088 cat >>conftest.$ac_ext <<_ACEOF
5089 /* end confdefs.h. */
5090 $ac_includes_default
5094 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5101 rm -f conftest.$ac_objext
5102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5103 (eval $ac_compile) 2>conftest.er1
5105 grep -v '^ *+' conftest.er1 >conftest.err
5107 cat conftest.err >&5
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); } &&
5110 { ac_try='test -z "$ac_c_werror_flag"
5111 || test ! -s conftest.err'
5112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116 (exit $ac_status); }; } &&
5117 { ac_try='test -s conftest.$ac_objext'
5118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); }; }; then
5123 ac_hi=$ac_mid; break
5125 echo "$as_me: failed program was:" >&5
5126 sed 's/^/| /' conftest.$ac_ext >&5
5128 ac_lo=`expr $ac_mid + 1`
5129 if test $ac_lo -le $ac_mid; then
5133 ac_mid=`expr 2 '*' $ac_mid + 1`
5135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5138 echo "$as_me: failed program was:" >&5
5139 sed 's/^/| /' conftest.$ac_ext >&5
5141 cat >conftest.$ac_ext <<_ACEOF
5144 cat confdefs.h >>conftest.$ac_ext
5145 cat >>conftest.$ac_ext <<_ACEOF
5146 /* end confdefs.h. */
5147 $ac_includes_default
5151 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
5158 rm -f conftest.$ac_objext
5159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5160 (eval $ac_compile) 2>conftest.er1
5162 grep -v '^ *+' conftest.er1 >conftest.err
5164 cat conftest.err >&5
5165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166 (exit $ac_status); } &&
5167 { ac_try='test -z "$ac_c_werror_flag"
5168 || test ! -s conftest.err'
5169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173 (exit $ac_status); }; } &&
5174 { ac_try='test -s conftest.$ac_objext'
5175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179 (exit $ac_status); }; }; then
5182 cat >conftest.$ac_ext <<_ACEOF
5185 cat confdefs.h >>conftest.$ac_ext
5186 cat >>conftest.$ac_ext <<_ACEOF
5187 /* end confdefs.h. */
5188 $ac_includes_default
5192 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5199 rm -f conftest.$ac_objext
5200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5201 (eval $ac_compile) 2>conftest.er1
5203 grep -v '^ *+' conftest.er1 >conftest.err
5205 cat conftest.err >&5
5206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207 (exit $ac_status); } &&
5208 { ac_try='test -z "$ac_c_werror_flag"
5209 || test ! -s conftest.err'
5210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214 (exit $ac_status); }; } &&
5215 { ac_try='test -s conftest.$ac_objext'
5216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220 (exit $ac_status); }; }; then
5221 ac_lo=$ac_mid; break
5223 echo "$as_me: failed program was:" >&5
5224 sed 's/^/| /' conftest.$ac_ext >&5
5226 ac_hi=`expr '(' $ac_mid ')' - 1`
5227 if test $ac_mid -le $ac_hi; then
5231 ac_mid=`expr 2 '*' $ac_mid`
5233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5236 echo "$as_me: failed program was:" >&5
5237 sed 's/^/| /' conftest.$ac_ext >&5
5241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5244 # Binary search between lo and hi bounds.
5245 while test "x$ac_lo" != "x$ac_hi"; do
5246 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5247 cat >conftest.$ac_ext <<_ACEOF
5250 cat confdefs.h >>conftest.$ac_ext
5251 cat >>conftest.$ac_ext <<_ACEOF
5252 /* end confdefs.h. */
5253 $ac_includes_default
5257 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5264 rm -f conftest.$ac_objext
5265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5266 (eval $ac_compile) 2>conftest.er1
5268 grep -v '^ *+' conftest.er1 >conftest.err
5270 cat conftest.err >&5
5271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272 (exit $ac_status); } &&
5273 { ac_try='test -z "$ac_c_werror_flag"
5274 || test ! -s conftest.err'
5275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279 (exit $ac_status); }; } &&
5280 { ac_try='test -s conftest.$ac_objext'
5281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285 (exit $ac_status); }; }; then
5288 echo "$as_me: failed program was:" >&5
5289 sed 's/^/| /' conftest.$ac_ext >&5
5291 ac_lo=`expr '(' $ac_mid ')' + 1`
5293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5296 ?*) ac_cv_sizeof_short=$ac_lo;;
5297 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5298 See \`config.log' for more details." >&5
5299 echo "$as_me: error: cannot compute sizeof (short), 77
5300 See \`config.log' for more details." >&2;}
5301 { (exit 1); exit 1; }; } ;;
5304 if test "$cross_compiling" = yes; then
5305 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5306 See \`config.log' for more details." >&5
5307 echo "$as_me: error: cannot run test program while cross compiling
5308 See \`config.log' for more details." >&2;}
5309 { (exit 1); exit 1; }; }
5311 cat >conftest.$ac_ext <<_ACEOF
5314 cat confdefs.h >>conftest.$ac_ext
5315 cat >>conftest.$ac_ext <<_ACEOF
5316 /* end confdefs.h. */
5317 $ac_includes_default
5318 long longval () { return (long) (sizeof (short)); }
5319 unsigned long ulongval () { return (long) (sizeof (short)); }
5326 FILE *f = fopen ("conftest.val", "w");
5329 if (((long) (sizeof (short))) < 0)
5331 long i = longval ();
5332 if (i != ((long) (sizeof (short))))
5334 fprintf (f, "%ld\n", i);
5338 unsigned long i = ulongval ();
5339 if (i != ((long) (sizeof (short))))
5341 fprintf (f, "%lu\n", i);
5343 exit (ferror (f) || fclose (f) != 0);
5349 rm -f conftest$ac_exeext
5350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5351 (eval $ac_link) 2>&5
5353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); }; }; then
5360 ac_cv_sizeof_short=`cat conftest.val`
5362 echo "$as_me: program exited with status $ac_status" >&5
5363 echo "$as_me: failed program was:" >&5
5364 sed 's/^/| /' conftest.$ac_ext >&5
5367 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5368 See \`config.log' for more details." >&5
5369 echo "$as_me: error: cannot compute sizeof (short), 77
5370 See \`config.log' for more details." >&2;}
5371 { (exit 1); exit 1; }; }
5373 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5378 ac_cv_sizeof_short=0
5381 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5382 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5383 cat >>confdefs.h <<_ACEOF
5384 #define SIZEOF_SHORT $ac_cv_sizeof_short
5388 echo "$as_me:$LINENO: checking for int" >&5
5389 echo $ECHO_N "checking for int... $ECHO_C" >&6
5390 if test "${ac_cv_type_int+set}" = set; then
5391 echo $ECHO_N "(cached) $ECHO_C" >&6
5393 cat >conftest.$ac_ext <<_ACEOF
5396 cat confdefs.h >>conftest.$ac_ext
5397 cat >>conftest.$ac_ext <<_ACEOF
5398 /* end confdefs.h. */
5399 $ac_includes_default
5411 rm -f conftest.$ac_objext
5412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5413 (eval $ac_compile) 2>conftest.er1
5415 grep -v '^ *+' conftest.er1 >conftest.err
5417 cat conftest.err >&5
5418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419 (exit $ac_status); } &&
5420 { ac_try='test -z "$ac_c_werror_flag"
5421 || test ! -s conftest.err'
5422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426 (exit $ac_status); }; } &&
5427 { ac_try='test -s conftest.$ac_objext'
5428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432 (exit $ac_status); }; }; then
5435 echo "$as_me: failed program was:" >&5
5436 sed 's/^/| /' conftest.$ac_ext >&5
5440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5442 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5443 echo "${ECHO_T}$ac_cv_type_int" >&6
5445 echo "$as_me:$LINENO: checking size of int" >&5
5446 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5447 if test "${ac_cv_sizeof_int+set}" = set; then
5448 echo $ECHO_N "(cached) $ECHO_C" >&6
5450 if test "$ac_cv_type_int" = yes; then
5451 # The cast to unsigned long works around a bug in the HP C Compiler
5452 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5453 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5454 # This bug is HP SR number 8606223364.
5455 if test "$cross_compiling" = yes; then
5456 # Depending upon the size, compute the lo and hi bounds.
5457 cat >conftest.$ac_ext <<_ACEOF
5460 cat confdefs.h >>conftest.$ac_ext
5461 cat >>conftest.$ac_ext <<_ACEOF
5462 /* end confdefs.h. */
5463 $ac_includes_default
5467 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5474 rm -f conftest.$ac_objext
5475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5476 (eval $ac_compile) 2>conftest.er1
5478 grep -v '^ *+' conftest.er1 >conftest.err
5480 cat conftest.err >&5
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); } &&
5483 { ac_try='test -z "$ac_c_werror_flag"
5484 || test ! -s conftest.err'
5485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489 (exit $ac_status); }; } &&
5490 { ac_try='test -s conftest.$ac_objext'
5491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); }; }; then
5498 cat >conftest.$ac_ext <<_ACEOF
5501 cat confdefs.h >>conftest.$ac_ext
5502 cat >>conftest.$ac_ext <<_ACEOF
5503 /* end confdefs.h. */
5504 $ac_includes_default
5508 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5515 rm -f conftest.$ac_objext
5516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5517 (eval $ac_compile) 2>conftest.er1
5519 grep -v '^ *+' conftest.er1 >conftest.err
5521 cat conftest.err >&5
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); } &&
5524 { ac_try='test -z "$ac_c_werror_flag"
5525 || test ! -s conftest.err'
5526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); }; } &&
5531 { ac_try='test -s conftest.$ac_objext'
5532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); }; }; then
5537 ac_hi=$ac_mid; break
5539 echo "$as_me: failed program was:" >&5
5540 sed 's/^/| /' conftest.$ac_ext >&5
5542 ac_lo=`expr $ac_mid + 1`
5543 if test $ac_lo -le $ac_mid; then
5547 ac_mid=`expr 2 '*' $ac_mid + 1`
5549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5552 echo "$as_me: failed program was:" >&5
5553 sed 's/^/| /' conftest.$ac_ext >&5
5555 cat >conftest.$ac_ext <<_ACEOF
5558 cat confdefs.h >>conftest.$ac_ext
5559 cat >>conftest.$ac_ext <<_ACEOF
5560 /* end confdefs.h. */
5561 $ac_includes_default
5565 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5572 rm -f conftest.$ac_objext
5573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5574 (eval $ac_compile) 2>conftest.er1
5576 grep -v '^ *+' conftest.er1 >conftest.err
5578 cat conftest.err >&5
5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580 (exit $ac_status); } &&
5581 { ac_try='test -z "$ac_c_werror_flag"
5582 || test ! -s conftest.err'
5583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587 (exit $ac_status); }; } &&
5588 { ac_try='test -s conftest.$ac_objext'
5589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593 (exit $ac_status); }; }; then
5596 cat >conftest.$ac_ext <<_ACEOF
5599 cat confdefs.h >>conftest.$ac_ext
5600 cat >>conftest.$ac_ext <<_ACEOF
5601 /* end confdefs.h. */
5602 $ac_includes_default
5606 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5613 rm -f conftest.$ac_objext
5614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5615 (eval $ac_compile) 2>conftest.er1
5617 grep -v '^ *+' conftest.er1 >conftest.err
5619 cat conftest.err >&5
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); } &&
5622 { ac_try='test -z "$ac_c_werror_flag"
5623 || test ! -s conftest.err'
5624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); }; } &&
5629 { ac_try='test -s conftest.$ac_objext'
5630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); }; }; then
5635 ac_lo=$ac_mid; break
5637 echo "$as_me: failed program was:" >&5
5638 sed 's/^/| /' conftest.$ac_ext >&5
5640 ac_hi=`expr '(' $ac_mid ')' - 1`
5641 if test $ac_mid -le $ac_hi; then
5645 ac_mid=`expr 2 '*' $ac_mid`
5647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5650 echo "$as_me: failed program was:" >&5
5651 sed 's/^/| /' conftest.$ac_ext >&5
5655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5658 # Binary search between lo and hi bounds.
5659 while test "x$ac_lo" != "x$ac_hi"; do
5660 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5661 cat >conftest.$ac_ext <<_ACEOF
5664 cat confdefs.h >>conftest.$ac_ext
5665 cat >>conftest.$ac_ext <<_ACEOF
5666 /* end confdefs.h. */
5667 $ac_includes_default
5671 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5678 rm -f conftest.$ac_objext
5679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5680 (eval $ac_compile) 2>conftest.er1
5682 grep -v '^ *+' conftest.er1 >conftest.err
5684 cat conftest.err >&5
5685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686 (exit $ac_status); } &&
5687 { ac_try='test -z "$ac_c_werror_flag"
5688 || test ! -s conftest.err'
5689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693 (exit $ac_status); }; } &&
5694 { ac_try='test -s conftest.$ac_objext'
5695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699 (exit $ac_status); }; }; then
5702 echo "$as_me: failed program was:" >&5
5703 sed 's/^/| /' conftest.$ac_ext >&5
5705 ac_lo=`expr '(' $ac_mid ')' + 1`
5707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5710 ?*) ac_cv_sizeof_int=$ac_lo;;
5711 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5712 See \`config.log' for more details." >&5
5713 echo "$as_me: error: cannot compute sizeof (int), 77
5714 See \`config.log' for more details." >&2;}
5715 { (exit 1); exit 1; }; } ;;
5718 if test "$cross_compiling" = yes; then
5719 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5720 See \`config.log' for more details." >&5
5721 echo "$as_me: error: cannot run test program while cross compiling
5722 See \`config.log' for more details." >&2;}
5723 { (exit 1); exit 1; }; }
5725 cat >conftest.$ac_ext <<_ACEOF
5728 cat confdefs.h >>conftest.$ac_ext
5729 cat >>conftest.$ac_ext <<_ACEOF
5730 /* end confdefs.h. */
5731 $ac_includes_default
5732 long longval () { return (long) (sizeof (int)); }
5733 unsigned long ulongval () { return (long) (sizeof (int)); }
5740 FILE *f = fopen ("conftest.val", "w");
5743 if (((long) (sizeof (int))) < 0)
5745 long i = longval ();
5746 if (i != ((long) (sizeof (int))))
5748 fprintf (f, "%ld\n", i);
5752 unsigned long i = ulongval ();
5753 if (i != ((long) (sizeof (int))))
5755 fprintf (f, "%lu\n", i);
5757 exit (ferror (f) || fclose (f) != 0);
5763 rm -f conftest$ac_exeext
5764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5765 (eval $ac_link) 2>&5
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); }; }; then
5774 ac_cv_sizeof_int=`cat conftest.val`
5776 echo "$as_me: program exited with status $ac_status" >&5
5777 echo "$as_me: failed program was:" >&5
5778 sed 's/^/| /' conftest.$ac_ext >&5
5781 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5782 See \`config.log' for more details." >&5
5783 echo "$as_me: error: cannot compute sizeof (int), 77
5784 See \`config.log' for more details." >&2;}
5785 { (exit 1); exit 1; }; }
5787 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5795 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5796 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5797 cat >>confdefs.h <<_ACEOF
5798 #define SIZEOF_INT $ac_cv_sizeof_int
5802 echo "$as_me:$LINENO: checking for long" >&5
5803 echo $ECHO_N "checking for long... $ECHO_C" >&6
5804 if test "${ac_cv_type_long+set}" = set; then
5805 echo $ECHO_N "(cached) $ECHO_C" >&6
5807 cat >conftest.$ac_ext <<_ACEOF
5810 cat confdefs.h >>conftest.$ac_ext
5811 cat >>conftest.$ac_ext <<_ACEOF
5812 /* end confdefs.h. */
5813 $ac_includes_default
5825 rm -f conftest.$ac_objext
5826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5827 (eval $ac_compile) 2>conftest.er1
5829 grep -v '^ *+' conftest.er1 >conftest.err
5831 cat conftest.err >&5
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); } &&
5834 { ac_try='test -z "$ac_c_werror_flag"
5835 || 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
5849 echo "$as_me: failed program was:" >&5
5850 sed 's/^/| /' conftest.$ac_ext >&5
5854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5856 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5857 echo "${ECHO_T}$ac_cv_type_long" >&6
5859 echo "$as_me:$LINENO: checking size of long" >&5
5860 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5861 if test "${ac_cv_sizeof_long+set}" = set; then
5862 echo $ECHO_N "(cached) $ECHO_C" >&6
5864 if test "$ac_cv_type_long" = yes; then
5865 # The cast to unsigned long works around a bug in the HP C Compiler
5866 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5867 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5868 # This bug is HP SR number 8606223364.
5869 if test "$cross_compiling" = yes; then
5870 # Depending upon the size, compute the lo and hi bounds.
5871 cat >conftest.$ac_ext <<_ACEOF
5874 cat confdefs.h >>conftest.$ac_ext
5875 cat >>conftest.$ac_ext <<_ACEOF
5876 /* end confdefs.h. */
5877 $ac_includes_default
5881 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5888 rm -f conftest.$ac_objext
5889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5890 (eval $ac_compile) 2>conftest.er1
5892 grep -v '^ *+' conftest.er1 >conftest.err
5894 cat conftest.err >&5
5895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896 (exit $ac_status); } &&
5897 { ac_try='test -z "$ac_c_werror_flag"
5898 || test ! -s conftest.err'
5899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); }; } &&
5904 { ac_try='test -s conftest.$ac_objext'
5905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909 (exit $ac_status); }; }; then
5912 cat >conftest.$ac_ext <<_ACEOF
5915 cat confdefs.h >>conftest.$ac_ext
5916 cat >>conftest.$ac_ext <<_ACEOF
5917 /* end confdefs.h. */
5918 $ac_includes_default
5922 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5929 rm -f conftest.$ac_objext
5930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5931 (eval $ac_compile) 2>conftest.er1
5933 grep -v '^ *+' conftest.er1 >conftest.err
5935 cat conftest.err >&5
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); } &&
5938 { ac_try='test -z "$ac_c_werror_flag"
5939 || test ! -s conftest.err'
5940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); }; } &&
5945 { ac_try='test -s conftest.$ac_objext'
5946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); }; }; then
5951 ac_hi=$ac_mid; break
5953 echo "$as_me: failed program was:" >&5
5954 sed 's/^/| /' conftest.$ac_ext >&5
5956 ac_lo=`expr $ac_mid + 1`
5957 if test $ac_lo -le $ac_mid; then
5961 ac_mid=`expr 2 '*' $ac_mid + 1`
5963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5966 echo "$as_me: failed program was:" >&5
5967 sed 's/^/| /' conftest.$ac_ext >&5
5969 cat >conftest.$ac_ext <<_ACEOF
5972 cat confdefs.h >>conftest.$ac_ext
5973 cat >>conftest.$ac_ext <<_ACEOF
5974 /* end confdefs.h. */
5975 $ac_includes_default
5979 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5986 rm -f conftest.$ac_objext
5987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5988 (eval $ac_compile) 2>conftest.er1
5990 grep -v '^ *+' conftest.er1 >conftest.err
5992 cat conftest.err >&5
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); } &&
5995 { ac_try='test -z "$ac_c_werror_flag"
5996 || test ! -s conftest.err'
5997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); }; } &&
6002 { ac_try='test -s conftest.$ac_objext'
6003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); }; }; then
6010 cat >conftest.$ac_ext <<_ACEOF
6013 cat confdefs.h >>conftest.$ac_ext
6014 cat >>conftest.$ac_ext <<_ACEOF
6015 /* end confdefs.h. */
6016 $ac_includes_default
6020 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6027 rm -f conftest.$ac_objext
6028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6029 (eval $ac_compile) 2>conftest.er1
6031 grep -v '^ *+' conftest.er1 >conftest.err
6033 cat conftest.err >&5
6034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035 (exit $ac_status); } &&
6036 { ac_try='test -z "$ac_c_werror_flag"
6037 || test ! -s conftest.err'
6038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042 (exit $ac_status); }; } &&
6043 { ac_try='test -s conftest.$ac_objext'
6044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); }; }; then
6049 ac_lo=$ac_mid; break
6051 echo "$as_me: failed program was:" >&5
6052 sed 's/^/| /' conftest.$ac_ext >&5
6054 ac_hi=`expr '(' $ac_mid ')' - 1`
6055 if test $ac_mid -le $ac_hi; then
6059 ac_mid=`expr 2 '*' $ac_mid`
6061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6064 echo "$as_me: failed program was:" >&5
6065 sed 's/^/| /' conftest.$ac_ext >&5
6069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6072 # Binary search between lo and hi bounds.
6073 while test "x$ac_lo" != "x$ac_hi"; do
6074 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6075 cat >conftest.$ac_ext <<_ACEOF
6078 cat confdefs.h >>conftest.$ac_ext
6079 cat >>conftest.$ac_ext <<_ACEOF
6080 /* end confdefs.h. */
6081 $ac_includes_default
6085 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6092 rm -f conftest.$ac_objext
6093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6094 (eval $ac_compile) 2>conftest.er1
6096 grep -v '^ *+' conftest.er1 >conftest.err
6098 cat conftest.err >&5
6099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100 (exit $ac_status); } &&
6101 { ac_try='test -z "$ac_c_werror_flag"
6102 || test ! -s conftest.err'
6103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107 (exit $ac_status); }; } &&
6108 { ac_try='test -s conftest.$ac_objext'
6109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); }; }; then
6116 echo "$as_me: failed program was:" >&5
6117 sed 's/^/| /' conftest.$ac_ext >&5
6119 ac_lo=`expr '(' $ac_mid ')' + 1`
6121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6124 ?*) ac_cv_sizeof_long=$ac_lo;;
6125 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6126 See \`config.log' for more details." >&5
6127 echo "$as_me: error: cannot compute sizeof (long), 77
6128 See \`config.log' for more details." >&2;}
6129 { (exit 1); exit 1; }; } ;;
6132 if test "$cross_compiling" = yes; then
6133 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6134 See \`config.log' for more details." >&5
6135 echo "$as_me: error: cannot run test program while cross compiling
6136 See \`config.log' for more details." >&2;}
6137 { (exit 1); exit 1; }; }
6139 cat >conftest.$ac_ext <<_ACEOF
6142 cat confdefs.h >>conftest.$ac_ext
6143 cat >>conftest.$ac_ext <<_ACEOF
6144 /* end confdefs.h. */
6145 $ac_includes_default
6146 long longval () { return (long) (sizeof (long)); }
6147 unsigned long ulongval () { return (long) (sizeof (long)); }
6154 FILE *f = fopen ("conftest.val", "w");
6157 if (((long) (sizeof (long))) < 0)
6159 long i = longval ();
6160 if (i != ((long) (sizeof (long))))
6162 fprintf (f, "%ld\n", i);
6166 unsigned long i = ulongval ();
6167 if (i != ((long) (sizeof (long))))
6169 fprintf (f, "%lu\n", i);
6171 exit (ferror (f) || fclose (f) != 0);
6177 rm -f conftest$ac_exeext
6178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6179 (eval $ac_link) 2>&5
6181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); }; }; then
6188 ac_cv_sizeof_long=`cat conftest.val`
6190 echo "$as_me: program exited with status $ac_status" >&5
6191 echo "$as_me: failed program was:" >&5
6192 sed 's/^/| /' conftest.$ac_ext >&5
6195 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6196 See \`config.log' for more details." >&5
6197 echo "$as_me: error: cannot compute sizeof (long), 77
6198 See \`config.log' for more details." >&2;}
6199 { (exit 1); exit 1; }; }
6201 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6209 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6210 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
6211 cat >>confdefs.h <<_ACEOF
6212 #define SIZEOF_LONG $ac_cv_sizeof_long
6216 echo "$as_me:$LINENO: checking for void *" >&5
6217 echo $ECHO_N "checking for void *... $ECHO_C" >&6
6218 if test "${ac_cv_type_void_p+set}" = set; then
6219 echo $ECHO_N "(cached) $ECHO_C" >&6
6221 cat >conftest.$ac_ext <<_ACEOF
6224 cat confdefs.h >>conftest.$ac_ext
6225 cat >>conftest.$ac_ext <<_ACEOF
6226 /* end confdefs.h. */
6227 $ac_includes_default
6233 if (sizeof (void *))
6239 rm -f conftest.$ac_objext
6240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6241 (eval $ac_compile) 2>conftest.er1
6243 grep -v '^ *+' conftest.er1 >conftest.err
6245 cat conftest.err >&5
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); } &&
6248 { ac_try='test -z "$ac_c_werror_flag"
6249 || test ! -s conftest.err'
6250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); }; } &&
6255 { ac_try='test -s conftest.$ac_objext'
6256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); }; }; then
6261 ac_cv_type_void_p=yes
6263 echo "$as_me: failed program was:" >&5
6264 sed 's/^/| /' conftest.$ac_ext >&5
6266 ac_cv_type_void_p=no
6268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6270 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
6271 echo "${ECHO_T}$ac_cv_type_void_p" >&6
6273 echo "$as_me:$LINENO: checking size of void *" >&5
6274 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
6275 if test "${ac_cv_sizeof_void_p+set}" = set; then
6276 echo $ECHO_N "(cached) $ECHO_C" >&6
6278 if test "$ac_cv_type_void_p" = yes; then
6279 # The cast to unsigned long works around a bug in the HP C Compiler
6280 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6281 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6282 # This bug is HP SR number 8606223364.
6283 if test "$cross_compiling" = yes; then
6284 # Depending upon the size, compute the lo and hi bounds.
6285 cat >conftest.$ac_ext <<_ACEOF
6288 cat confdefs.h >>conftest.$ac_ext
6289 cat >>conftest.$ac_ext <<_ACEOF
6290 /* end confdefs.h. */
6291 $ac_includes_default
6295 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
6302 rm -f conftest.$ac_objext
6303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6304 (eval $ac_compile) 2>conftest.er1
6306 grep -v '^ *+' conftest.er1 >conftest.err
6308 cat conftest.err >&5
6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); } &&
6311 { ac_try='test -z "$ac_c_werror_flag"
6312 || test ! -s conftest.err'
6313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317 (exit $ac_status); }; } &&
6318 { ac_try='test -s conftest.$ac_objext'
6319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323 (exit $ac_status); }; }; then
6326 cat >conftest.$ac_ext <<_ACEOF
6329 cat confdefs.h >>conftest.$ac_ext
6330 cat >>conftest.$ac_ext <<_ACEOF
6331 /* end confdefs.h. */
6332 $ac_includes_default
6336 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
6343 rm -f conftest.$ac_objext
6344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6345 (eval $ac_compile) 2>conftest.er1
6347 grep -v '^ *+' conftest.er1 >conftest.err
6349 cat conftest.err >&5
6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351 (exit $ac_status); } &&
6352 { ac_try='test -z "$ac_c_werror_flag"
6353 || test ! -s conftest.err'
6354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); }; } &&
6359 { ac_try='test -s conftest.$ac_objext'
6360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); }; }; then
6365 ac_hi=$ac_mid; break
6367 echo "$as_me: failed program was:" >&5
6368 sed 's/^/| /' conftest.$ac_ext >&5
6370 ac_lo=`expr $ac_mid + 1`
6371 if test $ac_lo -le $ac_mid; then
6375 ac_mid=`expr 2 '*' $ac_mid + 1`
6377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6380 echo "$as_me: failed program was:" >&5
6381 sed 's/^/| /' conftest.$ac_ext >&5
6383 cat >conftest.$ac_ext <<_ACEOF
6386 cat confdefs.h >>conftest.$ac_ext
6387 cat >>conftest.$ac_ext <<_ACEOF
6388 /* end confdefs.h. */
6389 $ac_includes_default
6393 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
6400 rm -f conftest.$ac_objext
6401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6402 (eval $ac_compile) 2>conftest.er1
6404 grep -v '^ *+' conftest.er1 >conftest.err
6406 cat conftest.err >&5
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); } &&
6409 { ac_try='test -z "$ac_c_werror_flag"
6410 || test ! -s conftest.err'
6411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); }; } &&
6416 { ac_try='test -s conftest.$ac_objext'
6417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421 (exit $ac_status); }; }; then
6424 cat >conftest.$ac_ext <<_ACEOF
6427 cat confdefs.h >>conftest.$ac_ext
6428 cat >>conftest.$ac_ext <<_ACEOF
6429 /* end confdefs.h. */
6430 $ac_includes_default
6434 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
6441 rm -f conftest.$ac_objext
6442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6443 (eval $ac_compile) 2>conftest.er1
6445 grep -v '^ *+' conftest.er1 >conftest.err
6447 cat conftest.err >&5
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); } &&
6450 { ac_try='test -z "$ac_c_werror_flag"
6451 || test ! -s conftest.err'
6452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456 (exit $ac_status); }; } &&
6457 { ac_try='test -s conftest.$ac_objext'
6458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462 (exit $ac_status); }; }; then
6463 ac_lo=$ac_mid; break
6465 echo "$as_me: failed program was:" >&5
6466 sed 's/^/| /' conftest.$ac_ext >&5
6468 ac_hi=`expr '(' $ac_mid ')' - 1`
6469 if test $ac_mid -le $ac_hi; then
6473 ac_mid=`expr 2 '*' $ac_mid`
6475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6478 echo "$as_me: failed program was:" >&5
6479 sed 's/^/| /' conftest.$ac_ext >&5
6483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6486 # Binary search between lo and hi bounds.
6487 while test "x$ac_lo" != "x$ac_hi"; do
6488 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6489 cat >conftest.$ac_ext <<_ACEOF
6492 cat confdefs.h >>conftest.$ac_ext
6493 cat >>conftest.$ac_ext <<_ACEOF
6494 /* end confdefs.h. */
6495 $ac_includes_default
6499 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
6506 rm -f conftest.$ac_objext
6507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6508 (eval $ac_compile) 2>conftest.er1
6510 grep -v '^ *+' conftest.er1 >conftest.err
6512 cat conftest.err >&5
6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514 (exit $ac_status); } &&
6515 { ac_try='test -z "$ac_c_werror_flag"
6516 || test ! -s conftest.err'
6517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521 (exit $ac_status); }; } &&
6522 { ac_try='test -s conftest.$ac_objext'
6523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527 (exit $ac_status); }; }; then
6530 echo "$as_me: failed program was:" >&5
6531 sed 's/^/| /' conftest.$ac_ext >&5
6533 ac_lo=`expr '(' $ac_mid ')' + 1`
6535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6538 ?*) ac_cv_sizeof_void_p=$ac_lo;;
6539 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
6540 See \`config.log' for more details." >&5
6541 echo "$as_me: error: cannot compute sizeof (void *), 77
6542 See \`config.log' for more details." >&2;}
6543 { (exit 1); exit 1; }; } ;;
6546 if test "$cross_compiling" = yes; then
6547 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6548 See \`config.log' for more details." >&5
6549 echo "$as_me: error: cannot run test program while cross compiling
6550 See \`config.log' for more details." >&2;}
6551 { (exit 1); exit 1; }; }
6553 cat >conftest.$ac_ext <<_ACEOF
6556 cat confdefs.h >>conftest.$ac_ext
6557 cat >>conftest.$ac_ext <<_ACEOF
6558 /* end confdefs.h. */
6559 $ac_includes_default
6560 long longval () { return (long) (sizeof (void *)); }
6561 unsigned long ulongval () { return (long) (sizeof (void *)); }
6568 FILE *f = fopen ("conftest.val", "w");
6571 if (((long) (sizeof (void *))) < 0)
6573 long i = longval ();
6574 if (i != ((long) (sizeof (void *))))
6576 fprintf (f, "%ld\n", i);
6580 unsigned long i = ulongval ();
6581 if (i != ((long) (sizeof (void *))))
6583 fprintf (f, "%lu\n", i);
6585 exit (ferror (f) || fclose (f) != 0);
6591 rm -f conftest$ac_exeext
6592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6593 (eval $ac_link) 2>&5
6595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); }; }; then
6602 ac_cv_sizeof_void_p=`cat conftest.val`
6604 echo "$as_me: program exited with status $ac_status" >&5
6605 echo "$as_me: failed program was:" >&5
6606 sed 's/^/| /' conftest.$ac_ext >&5
6609 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
6610 See \`config.log' for more details." >&5
6611 echo "$as_me: error: cannot compute sizeof (void *), 77
6612 See \`config.log' for more details." >&2;}
6613 { (exit 1); exit 1; }; }
6615 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6620 ac_cv_sizeof_void_p=0
6623 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
6624 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
6625 cat >>confdefs.h <<_ACEOF
6626 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6630 echo "$as_me:$LINENO: checking for int64_t" >&5
6631 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
6632 if test "${ac_cv_type_int64_t+set}" = set; then
6633 echo $ECHO_N "(cached) $ECHO_C" >&6
6635 cat >conftest.$ac_ext <<_ACEOF
6638 cat confdefs.h >>conftest.$ac_ext
6639 cat >>conftest.$ac_ext <<_ACEOF
6640 /* end confdefs.h. */
6641 $ac_includes_default
6647 if (sizeof (int64_t))
6653 rm -f conftest.$ac_objext
6654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6655 (eval $ac_compile) 2>conftest.er1
6657 grep -v '^ *+' conftest.er1 >conftest.err
6659 cat conftest.err >&5
6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); } &&
6662 { ac_try='test -z "$ac_c_werror_flag"
6663 || test ! -s conftest.err'
6664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668 (exit $ac_status); }; } &&
6669 { ac_try='test -s conftest.$ac_objext'
6670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674 (exit $ac_status); }; }; then
6675 ac_cv_type_int64_t=yes
6677 echo "$as_me: failed program was:" >&5
6678 sed 's/^/| /' conftest.$ac_ext >&5
6680 ac_cv_type_int64_t=no
6682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6684 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
6685 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
6687 echo "$as_me:$LINENO: checking size of int64_t" >&5
6688 echo $ECHO_N "checking size of int64_t... $ECHO_C" >&6
6689 if test "${ac_cv_sizeof_int64_t+set}" = set; then
6690 echo $ECHO_N "(cached) $ECHO_C" >&6
6692 if test "$ac_cv_type_int64_t" = yes; then
6693 # The cast to unsigned long works around a bug in the HP C Compiler
6694 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6695 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6696 # This bug is HP SR number 8606223364.
6697 if test "$cross_compiling" = yes; then
6698 # Depending upon the size, compute the lo and hi bounds.
6699 cat >conftest.$ac_ext <<_ACEOF
6702 cat confdefs.h >>conftest.$ac_ext
6703 cat >>conftest.$ac_ext <<_ACEOF
6704 /* end confdefs.h. */
6705 $ac_includes_default
6709 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) >= 0)];
6716 rm -f conftest.$ac_objext
6717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6718 (eval $ac_compile) 2>conftest.er1
6720 grep -v '^ *+' conftest.er1 >conftest.err
6722 cat conftest.err >&5
6723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724 (exit $ac_status); } &&
6725 { ac_try='test -z "$ac_c_werror_flag"
6726 || test ! -s conftest.err'
6727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731 (exit $ac_status); }; } &&
6732 { ac_try='test -s conftest.$ac_objext'
6733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6737 (exit $ac_status); }; }; then
6740 cat >conftest.$ac_ext <<_ACEOF
6743 cat confdefs.h >>conftest.$ac_ext
6744 cat >>conftest.$ac_ext <<_ACEOF
6745 /* end confdefs.h. */
6746 $ac_includes_default
6750 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) <= $ac_mid)];
6757 rm -f conftest.$ac_objext
6758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6759 (eval $ac_compile) 2>conftest.er1
6761 grep -v '^ *+' conftest.er1 >conftest.err
6763 cat conftest.err >&5
6764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765 (exit $ac_status); } &&
6766 { ac_try='test -z "$ac_c_werror_flag"
6767 || test ! -s conftest.err'
6768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772 (exit $ac_status); }; } &&
6773 { ac_try='test -s conftest.$ac_objext'
6774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778 (exit $ac_status); }; }; then
6779 ac_hi=$ac_mid; break
6781 echo "$as_me: failed program was:" >&5
6782 sed 's/^/| /' conftest.$ac_ext >&5
6784 ac_lo=`expr $ac_mid + 1`
6785 if test $ac_lo -le $ac_mid; then
6789 ac_mid=`expr 2 '*' $ac_mid + 1`
6791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6794 echo "$as_me: failed program was:" >&5
6795 sed 's/^/| /' conftest.$ac_ext >&5
6797 cat >conftest.$ac_ext <<_ACEOF
6800 cat confdefs.h >>conftest.$ac_ext
6801 cat >>conftest.$ac_ext <<_ACEOF
6802 /* end confdefs.h. */
6803 $ac_includes_default
6807 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) < 0)];
6814 rm -f conftest.$ac_objext
6815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6816 (eval $ac_compile) 2>conftest.er1
6818 grep -v '^ *+' conftest.er1 >conftest.err
6820 cat conftest.err >&5
6821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822 (exit $ac_status); } &&
6823 { ac_try='test -z "$ac_c_werror_flag"
6824 || test ! -s conftest.err'
6825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829 (exit $ac_status); }; } &&
6830 { ac_try='test -s conftest.$ac_objext'
6831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835 (exit $ac_status); }; }; then
6838 cat >conftest.$ac_ext <<_ACEOF
6841 cat confdefs.h >>conftest.$ac_ext
6842 cat >>conftest.$ac_ext <<_ACEOF
6843 /* end confdefs.h. */
6844 $ac_includes_default
6848 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) >= $ac_mid)];
6855 rm -f conftest.$ac_objext
6856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6857 (eval $ac_compile) 2>conftest.er1
6859 grep -v '^ *+' conftest.er1 >conftest.err
6861 cat conftest.err >&5
6862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6863 (exit $ac_status); } &&
6864 { ac_try='test -z "$ac_c_werror_flag"
6865 || test ! -s conftest.err'
6866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870 (exit $ac_status); }; } &&
6871 { ac_try='test -s conftest.$ac_objext'
6872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876 (exit $ac_status); }; }; then
6877 ac_lo=$ac_mid; break
6879 echo "$as_me: failed program was:" >&5
6880 sed 's/^/| /' conftest.$ac_ext >&5
6882 ac_hi=`expr '(' $ac_mid ')' - 1`
6883 if test $ac_mid -le $ac_hi; then
6887 ac_mid=`expr 2 '*' $ac_mid`
6889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6892 echo "$as_me: failed program was:" >&5
6893 sed 's/^/| /' conftest.$ac_ext >&5
6897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6900 # Binary search between lo and hi bounds.
6901 while test "x$ac_lo" != "x$ac_hi"; do
6902 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6903 cat >conftest.$ac_ext <<_ACEOF
6906 cat confdefs.h >>conftest.$ac_ext
6907 cat >>conftest.$ac_ext <<_ACEOF
6908 /* end confdefs.h. */
6909 $ac_includes_default
6913 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) <= $ac_mid)];
6920 rm -f conftest.$ac_objext
6921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6922 (eval $ac_compile) 2>conftest.er1
6924 grep -v '^ *+' conftest.er1 >conftest.err
6926 cat conftest.err >&5
6927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928 (exit $ac_status); } &&
6929 { ac_try='test -z "$ac_c_werror_flag"
6930 || test ! -s conftest.err'
6931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6935 (exit $ac_status); }; } &&
6936 { ac_try='test -s conftest.$ac_objext'
6937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941 (exit $ac_status); }; }; then
6944 echo "$as_me: failed program was:" >&5
6945 sed 's/^/| /' conftest.$ac_ext >&5
6947 ac_lo=`expr '(' $ac_mid ')' + 1`
6949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6952 ?*) ac_cv_sizeof_int64_t=$ac_lo;;
6953 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int64_t), 77
6954 See \`config.log' for more details." >&5
6955 echo "$as_me: error: cannot compute sizeof (int64_t), 77
6956 See \`config.log' for more details." >&2;}
6957 { (exit 1); exit 1; }; } ;;
6960 if test "$cross_compiling" = yes; then
6961 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6962 See \`config.log' for more details." >&5
6963 echo "$as_me: error: cannot run test program while cross compiling
6964 See \`config.log' for more details." >&2;}
6965 { (exit 1); exit 1; }; }
6967 cat >conftest.$ac_ext <<_ACEOF
6970 cat confdefs.h >>conftest.$ac_ext
6971 cat >>conftest.$ac_ext <<_ACEOF
6972 /* end confdefs.h. */
6973 $ac_includes_default
6974 long longval () { return (long) (sizeof (int64_t)); }
6975 unsigned long ulongval () { return (long) (sizeof (int64_t)); }
6982 FILE *f = fopen ("conftest.val", "w");
6985 if (((long) (sizeof (int64_t))) < 0)
6987 long i = longval ();
6988 if (i != ((long) (sizeof (int64_t))))
6990 fprintf (f, "%ld\n", i);
6994 unsigned long i = ulongval ();
6995 if (i != ((long) (sizeof (int64_t))))
6997 fprintf (f, "%lu\n", i);
6999 exit (ferror (f) || fclose (f) != 0);
7005 rm -f conftest$ac_exeext
7006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7007 (eval $ac_link) 2>&5
7009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); }; }; then
7016 ac_cv_sizeof_int64_t=`cat conftest.val`
7018 echo "$as_me: program exited with status $ac_status" >&5
7019 echo "$as_me: failed program was:" >&5
7020 sed 's/^/| /' conftest.$ac_ext >&5
7023 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int64_t), 77
7024 See \`config.log' for more details." >&5
7025 echo "$as_me: error: cannot compute sizeof (int64_t), 77
7026 See \`config.log' for more details." >&2;}
7027 { (exit 1); exit 1; }; }
7029 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7034 ac_cv_sizeof_int64_t=0
7037 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int64_t" >&5
7038 echo "${ECHO_T}$ac_cv_sizeof_int64_t" >&6
7039 cat >>confdefs.h <<_ACEOF
7040 #define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
7044 echo "$as_me:$LINENO: checking for long long" >&5
7045 echo $ECHO_N "checking for long long... $ECHO_C" >&6
7046 if test "${ac_cv_type_long_long+set}" = set; then
7047 echo $ECHO_N "(cached) $ECHO_C" >&6
7049 cat >conftest.$ac_ext <<_ACEOF
7052 cat confdefs.h >>conftest.$ac_ext
7053 cat >>conftest.$ac_ext <<_ACEOF
7054 /* end confdefs.h. */
7055 $ac_includes_default
7059 if ((long long *) 0)
7061 if (sizeof (long long))
7067 rm -f conftest.$ac_objext
7068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7069 (eval $ac_compile) 2>conftest.er1
7071 grep -v '^ *+' conftest.er1 >conftest.err
7073 cat conftest.err >&5
7074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075 (exit $ac_status); } &&
7076 { ac_try='test -z "$ac_c_werror_flag"
7077 || test ! -s conftest.err'
7078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082 (exit $ac_status); }; } &&
7083 { ac_try='test -s conftest.$ac_objext'
7084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088 (exit $ac_status); }; }; then
7089 ac_cv_type_long_long=yes
7091 echo "$as_me: failed program was:" >&5
7092 sed 's/^/| /' conftest.$ac_ext >&5
7094 ac_cv_type_long_long=no
7096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7098 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
7099 echo "${ECHO_T}$ac_cv_type_long_long" >&6
7101 echo "$as_me:$LINENO: checking size of long long" >&5
7102 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
7103 if test "${ac_cv_sizeof_long_long+set}" = set; then
7104 echo $ECHO_N "(cached) $ECHO_C" >&6
7106 if test "$ac_cv_type_long_long" = yes; then
7107 # The cast to unsigned long works around a bug in the HP C Compiler
7108 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7109 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7110 # This bug is HP SR number 8606223364.
7111 if test "$cross_compiling" = yes; then
7112 # Depending upon the size, compute the lo and hi bounds.
7113 cat >conftest.$ac_ext <<_ACEOF
7116 cat confdefs.h >>conftest.$ac_ext
7117 cat >>conftest.$ac_ext <<_ACEOF
7118 /* end confdefs.h. */
7119 $ac_includes_default
7123 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
7130 rm -f conftest.$ac_objext
7131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7132 (eval $ac_compile) 2>conftest.er1
7134 grep -v '^ *+' conftest.er1 >conftest.err
7136 cat conftest.err >&5
7137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138 (exit $ac_status); } &&
7139 { ac_try='test -z "$ac_c_werror_flag"
7140 || test ! -s conftest.err'
7141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145 (exit $ac_status); }; } &&
7146 { ac_try='test -s conftest.$ac_objext'
7147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151 (exit $ac_status); }; }; then
7154 cat >conftest.$ac_ext <<_ACEOF
7157 cat confdefs.h >>conftest.$ac_ext
7158 cat >>conftest.$ac_ext <<_ACEOF
7159 /* end confdefs.h. */
7160 $ac_includes_default
7164 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
7171 rm -f conftest.$ac_objext
7172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7173 (eval $ac_compile) 2>conftest.er1
7175 grep -v '^ *+' conftest.er1 >conftest.err
7177 cat conftest.err >&5
7178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179 (exit $ac_status); } &&
7180 { ac_try='test -z "$ac_c_werror_flag"
7181 || test ! -s conftest.err'
7182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186 (exit $ac_status); }; } &&
7187 { ac_try='test -s conftest.$ac_objext'
7188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192 (exit $ac_status); }; }; then
7193 ac_hi=$ac_mid; break
7195 echo "$as_me: failed program was:" >&5
7196 sed 's/^/| /' conftest.$ac_ext >&5
7198 ac_lo=`expr $ac_mid + 1`
7199 if test $ac_lo -le $ac_mid; then
7203 ac_mid=`expr 2 '*' $ac_mid + 1`
7205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7208 echo "$as_me: failed program was:" >&5
7209 sed 's/^/| /' conftest.$ac_ext >&5
7211 cat >conftest.$ac_ext <<_ACEOF
7214 cat confdefs.h >>conftest.$ac_ext
7215 cat >>conftest.$ac_ext <<_ACEOF
7216 /* end confdefs.h. */
7217 $ac_includes_default
7221 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
7228 rm -f conftest.$ac_objext
7229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7230 (eval $ac_compile) 2>conftest.er1
7232 grep -v '^ *+' conftest.er1 >conftest.err
7234 cat conftest.err >&5
7235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236 (exit $ac_status); } &&
7237 { ac_try='test -z "$ac_c_werror_flag"
7238 || test ! -s conftest.err'
7239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); }; } &&
7244 { ac_try='test -s conftest.$ac_objext'
7245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249 (exit $ac_status); }; }; then
7252 cat >conftest.$ac_ext <<_ACEOF
7255 cat confdefs.h >>conftest.$ac_ext
7256 cat >>conftest.$ac_ext <<_ACEOF
7257 /* end confdefs.h. */
7258 $ac_includes_default
7262 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
7269 rm -f conftest.$ac_objext
7270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7271 (eval $ac_compile) 2>conftest.er1
7273 grep -v '^ *+' conftest.er1 >conftest.err
7275 cat conftest.err >&5
7276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277 (exit $ac_status); } &&
7278 { ac_try='test -z "$ac_c_werror_flag"
7279 || test ! -s conftest.err'
7280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284 (exit $ac_status); }; } &&
7285 { ac_try='test -s conftest.$ac_objext'
7286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290 (exit $ac_status); }; }; then
7291 ac_lo=$ac_mid; break
7293 echo "$as_me: failed program was:" >&5
7294 sed 's/^/| /' conftest.$ac_ext >&5
7296 ac_hi=`expr '(' $ac_mid ')' - 1`
7297 if test $ac_mid -le $ac_hi; then
7301 ac_mid=`expr 2 '*' $ac_mid`
7303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7306 echo "$as_me: failed program was:" >&5
7307 sed 's/^/| /' conftest.$ac_ext >&5
7311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7314 # Binary search between lo and hi bounds.
7315 while test "x$ac_lo" != "x$ac_hi"; do
7316 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7317 cat >conftest.$ac_ext <<_ACEOF
7320 cat confdefs.h >>conftest.$ac_ext
7321 cat >>conftest.$ac_ext <<_ACEOF
7322 /* end confdefs.h. */
7323 $ac_includes_default
7327 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
7334 rm -f conftest.$ac_objext
7335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7336 (eval $ac_compile) 2>conftest.er1
7338 grep -v '^ *+' conftest.er1 >conftest.err
7340 cat conftest.err >&5
7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); } &&
7343 { ac_try='test -z "$ac_c_werror_flag"
7344 || test ! -s conftest.err'
7345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); }; } &&
7350 { ac_try='test -s conftest.$ac_objext'
7351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355 (exit $ac_status); }; }; then
7358 echo "$as_me: failed program was:" >&5
7359 sed 's/^/| /' conftest.$ac_ext >&5
7361 ac_lo=`expr '(' $ac_mid ')' + 1`
7363 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7366 ?*) ac_cv_sizeof_long_long=$ac_lo;;
7367 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
7368 See \`config.log' for more details." >&5
7369 echo "$as_me: error: cannot compute sizeof (long long), 77
7370 See \`config.log' for more details." >&2;}
7371 { (exit 1); exit 1; }; } ;;
7374 if test "$cross_compiling" = yes; then
7375 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7376 See \`config.log' for more details." >&5
7377 echo "$as_me: error: cannot run test program while cross compiling
7378 See \`config.log' for more details." >&2;}
7379 { (exit 1); exit 1; }; }
7381 cat >conftest.$ac_ext <<_ACEOF
7384 cat confdefs.h >>conftest.$ac_ext
7385 cat >>conftest.$ac_ext <<_ACEOF
7386 /* end confdefs.h. */
7387 $ac_includes_default
7388 long longval () { return (long) (sizeof (long long)); }
7389 unsigned long ulongval () { return (long) (sizeof (long long)); }
7396 FILE *f = fopen ("conftest.val", "w");
7399 if (((long) (sizeof (long long))) < 0)
7401 long i = longval ();
7402 if (i != ((long) (sizeof (long long))))
7404 fprintf (f, "%ld\n", i);
7408 unsigned long i = ulongval ();
7409 if (i != ((long) (sizeof (long long))))
7411 fprintf (f, "%lu\n", i);
7413 exit (ferror (f) || fclose (f) != 0);
7419 rm -f conftest$ac_exeext
7420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7421 (eval $ac_link) 2>&5
7423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429 (exit $ac_status); }; }; then
7430 ac_cv_sizeof_long_long=`cat conftest.val`
7432 echo "$as_me: program exited with status $ac_status" >&5
7433 echo "$as_me: failed program was:" >&5
7434 sed 's/^/| /' conftest.$ac_ext >&5
7437 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
7438 See \`config.log' for more details." >&5
7439 echo "$as_me: error: cannot compute sizeof (long long), 77
7440 See \`config.log' for more details." >&2;}
7441 { (exit 1); exit 1; }; }
7443 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7448 ac_cv_sizeof_long_long=0
7451 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
7452 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
7453 cat >>confdefs.h <<_ACEOF
7454 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7458 if test "$ac_cv_sizeof_int" = 2 ; then
7459 echo "$as_me:$LINENO: checking for int16_t" >&5
7460 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
7461 if test "${ac_cv_type_int16_t+set}" = set; then
7462 echo $ECHO_N "(cached) $ECHO_C" >&6
7464 cat >conftest.$ac_ext <<_ACEOF
7467 cat confdefs.h >>conftest.$ac_ext
7468 cat >>conftest.$ac_ext <<_ACEOF
7469 /* end confdefs.h. */
7470 $ac_includes_default
7476 if (sizeof (int16_t))
7482 rm -f conftest.$ac_objext
7483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7484 (eval $ac_compile) 2>conftest.er1
7486 grep -v '^ *+' conftest.er1 >conftest.err
7488 cat conftest.err >&5
7489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7490 (exit $ac_status); } &&
7491 { ac_try='test -z "$ac_c_werror_flag"
7492 || test ! -s conftest.err'
7493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7497 (exit $ac_status); }; } &&
7498 { ac_try='test -s conftest.$ac_objext'
7499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503 (exit $ac_status); }; }; then
7504 ac_cv_type_int16_t=yes
7506 echo "$as_me: failed program was:" >&5
7507 sed 's/^/| /' conftest.$ac_ext >&5
7509 ac_cv_type_int16_t=no
7511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7513 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
7514 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
7515 if test $ac_cv_type_int16_t = yes; then
7519 cat >>confdefs.h <<_ACEOF
7525 echo "$as_me:$LINENO: checking for uint16_t" >&5
7526 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
7527 if test "${ac_cv_type_uint16_t+set}" = set; then
7528 echo $ECHO_N "(cached) $ECHO_C" >&6
7530 cat >conftest.$ac_ext <<_ACEOF
7533 cat confdefs.h >>conftest.$ac_ext
7534 cat >>conftest.$ac_ext <<_ACEOF
7535 /* end confdefs.h. */
7536 $ac_includes_default
7542 if (sizeof (uint16_t))
7548 rm -f conftest.$ac_objext
7549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7550 (eval $ac_compile) 2>conftest.er1
7552 grep -v '^ *+' conftest.er1 >conftest.err
7554 cat conftest.err >&5
7555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556 (exit $ac_status); } &&
7557 { ac_try='test -z "$ac_c_werror_flag"
7558 || test ! -s conftest.err'
7559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563 (exit $ac_status); }; } &&
7564 { ac_try='test -s conftest.$ac_objext'
7565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7569 (exit $ac_status); }; }; then
7570 ac_cv_type_uint16_t=yes
7572 echo "$as_me: failed program was:" >&5
7573 sed 's/^/| /' conftest.$ac_ext >&5
7575 ac_cv_type_uint16_t=no
7577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7579 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
7580 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
7581 if test $ac_cv_type_uint16_t = yes; then
7585 cat >>confdefs.h <<_ACEOF
7586 #define uint16_t unsigned int
7591 elif test "$ac_cv_sizeof_short" = 2 ; then
7592 echo "$as_me:$LINENO: checking for int16_t" >&5
7593 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
7594 if test "${ac_cv_type_int16_t+set}" = set; then
7595 echo $ECHO_N "(cached) $ECHO_C" >&6
7597 cat >conftest.$ac_ext <<_ACEOF
7600 cat confdefs.h >>conftest.$ac_ext
7601 cat >>conftest.$ac_ext <<_ACEOF
7602 /* end confdefs.h. */
7603 $ac_includes_default
7609 if (sizeof (int16_t))
7615 rm -f conftest.$ac_objext
7616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7617 (eval $ac_compile) 2>conftest.er1
7619 grep -v '^ *+' conftest.er1 >conftest.err
7621 cat conftest.err >&5
7622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623 (exit $ac_status); } &&
7624 { ac_try='test -z "$ac_c_werror_flag"
7625 || test ! -s conftest.err'
7626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630 (exit $ac_status); }; } &&
7631 { ac_try='test -s conftest.$ac_objext'
7632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636 (exit $ac_status); }; }; then
7637 ac_cv_type_int16_t=yes
7639 echo "$as_me: failed program was:" >&5
7640 sed 's/^/| /' conftest.$ac_ext >&5
7642 ac_cv_type_int16_t=no
7644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7646 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
7647 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
7648 if test $ac_cv_type_int16_t = yes; then
7652 cat >>confdefs.h <<_ACEOF
7653 #define int16_t short
7658 echo "$as_me:$LINENO: checking for uint16_t" >&5
7659 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
7660 if test "${ac_cv_type_uint16_t+set}" = set; then
7661 echo $ECHO_N "(cached) $ECHO_C" >&6
7663 cat >conftest.$ac_ext <<_ACEOF
7666 cat confdefs.h >>conftest.$ac_ext
7667 cat >>conftest.$ac_ext <<_ACEOF
7668 /* end confdefs.h. */
7669 $ac_includes_default
7675 if (sizeof (uint16_t))
7681 rm -f conftest.$ac_objext
7682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7683 (eval $ac_compile) 2>conftest.er1
7685 grep -v '^ *+' conftest.er1 >conftest.err
7687 cat conftest.err >&5
7688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689 (exit $ac_status); } &&
7690 { ac_try='test -z "$ac_c_werror_flag"
7691 || test ! -s conftest.err'
7692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696 (exit $ac_status); }; } &&
7697 { ac_try='test -s conftest.$ac_objext'
7698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702 (exit $ac_status); }; }; then
7703 ac_cv_type_uint16_t=yes
7705 echo "$as_me: failed program was:" >&5
7706 sed 's/^/| /' conftest.$ac_ext >&5
7708 ac_cv_type_uint16_t=no
7710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7712 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
7713 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
7714 if test $ac_cv_type_uint16_t = yes; then
7718 cat >>confdefs.h <<_ACEOF
7719 #define uint16_t unsigned short
7725 { { echo "$as_me:$LINENO: error: Cannot find a type with size of 16 bits" >&5
7726 echo "$as_me: error: Cannot find a type with size of 16 bits" >&2;}
7727 { (exit 1); exit 1; }; }
7729 if test "$ac_cv_sizeof_int" = 4 ; then
7730 echo "$as_me:$LINENO: checking for int32_t" >&5
7731 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
7732 if test "${ac_cv_type_int32_t+set}" = set; then
7733 echo $ECHO_N "(cached) $ECHO_C" >&6
7735 cat >conftest.$ac_ext <<_ACEOF
7738 cat confdefs.h >>conftest.$ac_ext
7739 cat >>conftest.$ac_ext <<_ACEOF
7740 /* end confdefs.h. */
7741 $ac_includes_default
7747 if (sizeof (int32_t))
7753 rm -f conftest.$ac_objext
7754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7755 (eval $ac_compile) 2>conftest.er1
7757 grep -v '^ *+' conftest.er1 >conftest.err
7759 cat conftest.err >&5
7760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); } &&
7762 { ac_try='test -z "$ac_c_werror_flag"
7763 || test ! -s conftest.err'
7764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 (exit $ac_status); }; } &&
7769 { ac_try='test -s conftest.$ac_objext'
7770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774 (exit $ac_status); }; }; then
7775 ac_cv_type_int32_t=yes
7777 echo "$as_me: failed program was:" >&5
7778 sed 's/^/| /' conftest.$ac_ext >&5
7780 ac_cv_type_int32_t=no
7782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7784 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
7785 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
7786 if test $ac_cv_type_int32_t = yes; then
7790 cat >>confdefs.h <<_ACEOF
7796 echo "$as_me:$LINENO: checking for uint32_t" >&5
7797 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
7798 if test "${ac_cv_type_uint32_t+set}" = set; then
7799 echo $ECHO_N "(cached) $ECHO_C" >&6
7801 cat >conftest.$ac_ext <<_ACEOF
7804 cat confdefs.h >>conftest.$ac_ext
7805 cat >>conftest.$ac_ext <<_ACEOF
7806 /* end confdefs.h. */
7807 $ac_includes_default
7813 if (sizeof (uint32_t))
7819 rm -f conftest.$ac_objext
7820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7821 (eval $ac_compile) 2>conftest.er1
7823 grep -v '^ *+' conftest.er1 >conftest.err
7825 cat conftest.err >&5
7826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827 (exit $ac_status); } &&
7828 { ac_try='test -z "$ac_c_werror_flag"
7829 || test ! -s conftest.err'
7830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834 (exit $ac_status); }; } &&
7835 { ac_try='test -s conftest.$ac_objext'
7836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840 (exit $ac_status); }; }; then
7841 ac_cv_type_uint32_t=yes
7843 echo "$as_me: failed program was:" >&5
7844 sed 's/^/| /' conftest.$ac_ext >&5
7846 ac_cv_type_uint32_t=no
7848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7850 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
7851 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
7852 if test $ac_cv_type_uint32_t = yes; then
7856 cat >>confdefs.h <<_ACEOF
7857 #define uint32_t unsigned int
7862 elif test "$ac_cv_sizeof_short" = 4 ; then
7863 echo "$as_me:$LINENO: checking for int32_t" >&5
7864 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
7865 if test "${ac_cv_type_int32_t+set}" = set; then
7866 echo $ECHO_N "(cached) $ECHO_C" >&6
7868 cat >conftest.$ac_ext <<_ACEOF
7871 cat confdefs.h >>conftest.$ac_ext
7872 cat >>conftest.$ac_ext <<_ACEOF
7873 /* end confdefs.h. */
7874 $ac_includes_default
7880 if (sizeof (int32_t))
7886 rm -f conftest.$ac_objext
7887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7888 (eval $ac_compile) 2>conftest.er1
7890 grep -v '^ *+' conftest.er1 >conftest.err
7892 cat conftest.err >&5
7893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894 (exit $ac_status); } &&
7895 { ac_try='test -z "$ac_c_werror_flag"
7896 || test ! -s conftest.err'
7897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); }; } &&
7902 { ac_try='test -s conftest.$ac_objext'
7903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907 (exit $ac_status); }; }; then
7908 ac_cv_type_int32_t=yes
7910 echo "$as_me: failed program was:" >&5
7911 sed 's/^/| /' conftest.$ac_ext >&5
7913 ac_cv_type_int32_t=no
7915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7917 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
7918 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
7919 if test $ac_cv_type_int32_t = yes; then
7923 cat >>confdefs.h <<_ACEOF
7924 #define int32_t short
7929 echo "$as_me:$LINENO: checking for uint32_t" >&5
7930 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
7931 if test "${ac_cv_type_uint32_t+set}" = set; then
7932 echo $ECHO_N "(cached) $ECHO_C" >&6
7934 cat >conftest.$ac_ext <<_ACEOF
7937 cat confdefs.h >>conftest.$ac_ext
7938 cat >>conftest.$ac_ext <<_ACEOF
7939 /* end confdefs.h. */
7940 $ac_includes_default
7946 if (sizeof (uint32_t))
7952 rm -f conftest.$ac_objext
7953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7954 (eval $ac_compile) 2>conftest.er1
7956 grep -v '^ *+' conftest.er1 >conftest.err
7958 cat conftest.err >&5
7959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960 (exit $ac_status); } &&
7961 { ac_try='test -z "$ac_c_werror_flag"
7962 || test ! -s conftest.err'
7963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); }; } &&
7968 { ac_try='test -s conftest.$ac_objext'
7969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 (exit $ac_status); }; }; then
7974 ac_cv_type_uint32_t=yes
7976 echo "$as_me: failed program was:" >&5
7977 sed 's/^/| /' conftest.$ac_ext >&5
7979 ac_cv_type_uint32_t=no
7981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7983 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
7984 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
7985 if test $ac_cv_type_uint32_t = yes; then
7989 cat >>confdefs.h <<_ACEOF
7990 #define uint32_t unsigned short
7995 elif test "$ac_cv_sizeof_long" = 4 ; then
7996 echo "$as_me:$LINENO: checking for int32_t" >&5
7997 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
7998 if test "${ac_cv_type_int32_t+set}" = set; then
7999 echo $ECHO_N "(cached) $ECHO_C" >&6
8001 cat >conftest.$ac_ext <<_ACEOF
8004 cat confdefs.h >>conftest.$ac_ext
8005 cat >>conftest.$ac_ext <<_ACEOF
8006 /* end confdefs.h. */
8007 $ac_includes_default
8013 if (sizeof (int32_t))
8019 rm -f conftest.$ac_objext
8020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8021 (eval $ac_compile) 2>conftest.er1
8023 grep -v '^ *+' conftest.er1 >conftest.err
8025 cat conftest.err >&5
8026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027 (exit $ac_status); } &&
8028 { ac_try='test -z "$ac_c_werror_flag"
8029 || test ! -s conftest.err'
8030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); }; } &&
8035 { ac_try='test -s conftest.$ac_objext'
8036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040 (exit $ac_status); }; }; then
8041 ac_cv_type_int32_t=yes
8043 echo "$as_me: failed program was:" >&5
8044 sed 's/^/| /' conftest.$ac_ext >&5
8046 ac_cv_type_int32_t=no
8048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8050 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
8051 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
8052 if test $ac_cv_type_int32_t = yes; then
8056 cat >>confdefs.h <<_ACEOF
8057 #define int32_t long
8062 echo "$as_me:$LINENO: checking for uint32_t" >&5
8063 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
8064 if test "${ac_cv_type_uint32_t+set}" = set; then
8065 echo $ECHO_N "(cached) $ECHO_C" >&6
8067 cat >conftest.$ac_ext <<_ACEOF
8070 cat confdefs.h >>conftest.$ac_ext
8071 cat >>conftest.$ac_ext <<_ACEOF
8072 /* end confdefs.h. */
8073 $ac_includes_default
8079 if (sizeof (uint32_t))
8085 rm -f conftest.$ac_objext
8086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8087 (eval $ac_compile) 2>conftest.er1
8089 grep -v '^ *+' conftest.er1 >conftest.err
8091 cat conftest.err >&5
8092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093 (exit $ac_status); } &&
8094 { ac_try='test -z "$ac_c_werror_flag"
8095 || test ! -s conftest.err'
8096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100 (exit $ac_status); }; } &&
8101 { ac_try='test -s conftest.$ac_objext'
8102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106 (exit $ac_status); }; }; then
8107 ac_cv_type_uint32_t=yes
8109 echo "$as_me: failed program was:" >&5
8110 sed 's/^/| /' conftest.$ac_ext >&5
8112 ac_cv_type_uint32_t=no
8114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8116 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
8117 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
8118 if test $ac_cv_type_uint32_t = yes; then
8122 cat >>confdefs.h <<_ACEOF
8123 #define uint32_t unsigned long
8129 { { echo "$as_me:$LINENO: error: Cannot find a type with size of 32 bits" >&5
8130 echo "$as_me: error: Cannot find a type with size of 32 bits" >&2;}
8131 { (exit 1); exit 1; }; }
8133 if test "$ac_cv_sizeof_int64_t" = 8 ; then
8134 echo "$as_me:$LINENO: checking for int64_t" >&5
8135 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
8136 if test "${ac_cv_type_int64_t+set}" = set; then
8137 echo $ECHO_N "(cached) $ECHO_C" >&6
8139 cat >conftest.$ac_ext <<_ACEOF
8142 cat confdefs.h >>conftest.$ac_ext
8143 cat >>conftest.$ac_ext <<_ACEOF
8144 /* end confdefs.h. */
8145 $ac_includes_default
8151 if (sizeof (int64_t))
8157 rm -f conftest.$ac_objext
8158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8159 (eval $ac_compile) 2>conftest.er1
8161 grep -v '^ *+' conftest.er1 >conftest.err
8163 cat conftest.err >&5
8164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165 (exit $ac_status); } &&
8166 { ac_try='test -z "$ac_c_werror_flag"
8167 || test ! -s conftest.err'
8168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172 (exit $ac_status); }; } &&
8173 { ac_try='test -s conftest.$ac_objext'
8174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 (exit $ac_status); }; }; then
8179 ac_cv_type_int64_t=yes
8181 echo "$as_me: failed program was:" >&5
8182 sed 's/^/| /' conftest.$ac_ext >&5
8184 ac_cv_type_int64_t=no
8186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8188 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
8189 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
8191 echo "$as_me:$LINENO: checking for uint64_t" >&5
8192 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
8193 if test "${ac_cv_type_uint64_t+set}" = set; then
8194 echo $ECHO_N "(cached) $ECHO_C" >&6
8196 cat >conftest.$ac_ext <<_ACEOF
8199 cat confdefs.h >>conftest.$ac_ext
8200 cat >>conftest.$ac_ext <<_ACEOF
8201 /* end confdefs.h. */
8202 $ac_includes_default
8208 if (sizeof (uint64_t))
8214 rm -f conftest.$ac_objext
8215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8216 (eval $ac_compile) 2>conftest.er1
8218 grep -v '^ *+' conftest.er1 >conftest.err
8220 cat conftest.err >&5
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); } &&
8223 { ac_try='test -z "$ac_c_werror_flag"
8224 || test ! -s conftest.err'
8225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229 (exit $ac_status); }; } &&
8230 { ac_try='test -s conftest.$ac_objext'
8231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235 (exit $ac_status); }; }; then
8236 ac_cv_type_uint64_t=yes
8238 echo "$as_me: failed program was:" >&5
8239 sed 's/^/| /' conftest.$ac_ext >&5
8241 ac_cv_type_uint64_t=no
8243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8245 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
8246 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
8248 elif test "$ac_cv_sizeof_long_long" = 8 ; then
8249 echo "$as_me:$LINENO: checking for int64_t" >&5
8250 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
8251 if test "${ac_cv_type_int64_t+set}" = set; then
8252 echo $ECHO_N "(cached) $ECHO_C" >&6
8254 cat >conftest.$ac_ext <<_ACEOF
8257 cat confdefs.h >>conftest.$ac_ext
8258 cat >>conftest.$ac_ext <<_ACEOF
8259 /* end confdefs.h. */
8260 $ac_includes_default
8266 if (sizeof (int64_t))
8272 rm -f conftest.$ac_objext
8273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8274 (eval $ac_compile) 2>conftest.er1
8276 grep -v '^ *+' conftest.er1 >conftest.err
8278 cat conftest.err >&5
8279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280 (exit $ac_status); } &&
8281 { ac_try='test -z "$ac_c_werror_flag"
8282 || test ! -s conftest.err'
8283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); }; } &&
8288 { ac_try='test -s conftest.$ac_objext'
8289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); }; }; then
8294 ac_cv_type_int64_t=yes
8296 echo "$as_me: failed program was:" >&5
8297 sed 's/^/| /' conftest.$ac_ext >&5
8299 ac_cv_type_int64_t=no
8301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8303 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
8304 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
8305 if test $ac_cv_type_int64_t = yes; then
8309 cat >>confdefs.h <<_ACEOF
8310 #define int64_t long long
8315 echo "$as_me:$LINENO: checking for uint64_t" >&5
8316 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
8317 if test "${ac_cv_type_uint64_t+set}" = set; then
8318 echo $ECHO_N "(cached) $ECHO_C" >&6
8320 cat >conftest.$ac_ext <<_ACEOF
8323 cat confdefs.h >>conftest.$ac_ext
8324 cat >>conftest.$ac_ext <<_ACEOF
8325 /* end confdefs.h. */
8326 $ac_includes_default
8332 if (sizeof (uint64_t))
8338 rm -f conftest.$ac_objext
8339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8340 (eval $ac_compile) 2>conftest.er1
8342 grep -v '^ *+' conftest.er1 >conftest.err
8344 cat conftest.err >&5
8345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346 (exit $ac_status); } &&
8347 { ac_try='test -z "$ac_c_werror_flag"
8348 || test ! -s conftest.err'
8349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353 (exit $ac_status); }; } &&
8354 { ac_try='test -s conftest.$ac_objext'
8355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359 (exit $ac_status); }; }; then
8360 ac_cv_type_uint64_t=yes
8362 echo "$as_me: failed program was:" >&5
8363 sed 's/^/| /' conftest.$ac_ext >&5
8365 ac_cv_type_uint64_t=no
8367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8369 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
8370 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
8371 if test $ac_cv_type_uint64_t = yes; then
8375 cat >>confdefs.h <<_ACEOF
8376 #define uint64_t unsigned long long
8382 { { echo "$as_me:$LINENO: error: Cannot find a type with size of 64 bits" >&5
8383 echo "$as_me: error: Cannot find a type with size of 64 bits" >&2;}
8384 { (exit 1); exit 1; }; }
8386 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
8387 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
8388 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
8389 echo $ECHO_N "(cached) $ECHO_C" >&6
8391 cat >conftest.$ac_ext <<_ACEOF
8394 cat confdefs.h >>conftest.$ac_ext
8395 cat >>conftest.$ac_ext <<_ACEOF
8396 /* end confdefs.h. */
8397 #include <sys/types.h>
8398 #include <netinet/in.h>
8403 if ((struct sockaddr_in6 *) 0)
8405 if (sizeof (struct sockaddr_in6))
8411 rm -f conftest.$ac_objext
8412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8413 (eval $ac_compile) 2>conftest.er1
8415 grep -v '^ *+' conftest.er1 >conftest.err
8417 cat conftest.err >&5
8418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419 (exit $ac_status); } &&
8420 { ac_try='test -z "$ac_c_werror_flag"
8421 || test ! -s conftest.err'
8422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426 (exit $ac_status); }; } &&
8427 { ac_try='test -s conftest.$ac_objext'
8428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432 (exit $ac_status); }; }; then
8433 ac_cv_type_struct_sockaddr_in6=yes
8435 echo "$as_me: failed program was:" >&5
8436 sed 's/^/| /' conftest.$ac_ext >&5
8438 ac_cv_type_struct_sockaddr_in6=no
8440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8442 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
8443 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
8444 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
8445 unet_have_sockaddr_in6="yes"
8447 unet_have_sockaddr_in6="no"
8451 echo "$as_me:$LINENO: checking for socklen_t" >&5
8452 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
8453 if test "${ac_cv_type_socklen_t+set}" = set; then
8454 echo $ECHO_N "(cached) $ECHO_C" >&6
8456 cat >conftest.$ac_ext <<_ACEOF
8459 cat confdefs.h >>conftest.$ac_ext
8460 cat >>conftest.$ac_ext <<_ACEOF
8461 /* end confdefs.h. */
8462 #include <sys/types.h>
8463 #include<sys/socket.h>
8468 if ((socklen_t *) 0)
8470 if (sizeof (socklen_t))
8476 rm -f conftest.$ac_objext
8477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8478 (eval $ac_compile) 2>conftest.er1
8480 grep -v '^ *+' conftest.er1 >conftest.err
8482 cat conftest.err >&5
8483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 (exit $ac_status); } &&
8485 { ac_try='test -z "$ac_c_werror_flag"
8486 || test ! -s conftest.err'
8487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); }; } &&
8492 { ac_try='test -s conftest.$ac_objext'
8493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497 (exit $ac_status); }; }; then
8498 ac_cv_type_socklen_t=yes
8500 echo "$as_me: failed program was:" >&5
8501 sed 's/^/| /' conftest.$ac_ext >&5
8503 ac_cv_type_socklen_t=no
8505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8507 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
8508 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
8509 if test $ac_cv_type_socklen_t = yes; then
8513 echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
8514 echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6
8515 if test "${curl_cv_socklen_t_equiv+set}" = set; then
8516 echo $ECHO_N "(cached) $ECHO_C" >&6
8519 curl_cv_socklen_t_equiv=
8520 for arg2 in "struct sockaddr" void ; do
8521 for t in int size_t unsigned long "unsigned long" ; do
8522 cat >conftest.$ac_ext <<_ACEOF
8525 cat confdefs.h >>conftest.$ac_ext
8526 cat >>conftest.$ac_ext <<_ACEOF
8527 /* end confdefs.h. */
8528 #include <sys/types.h>
8529 #include <sys/socket.h>
8530 int getpeername (int $arg2 *, $t *);
8535 getpeername(0, 0, &len);
8540 rm -f conftest.$ac_objext
8541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8542 (eval $ac_compile) 2>conftest.er1
8544 grep -v '^ *+' conftest.er1 >conftest.err
8546 cat conftest.err >&5
8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 (exit $ac_status); } &&
8549 { ac_try='test -z "$ac_c_werror_flag"
8550 || test ! -s conftest.err'
8551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555 (exit $ac_status); }; } &&
8556 { ac_try='test -s conftest.$ac_objext'
8557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561 (exit $ac_status); }; }; then
8562 curl_cv_socklen_t_equiv="$t"
8565 echo "$as_me: failed program was:" >&5
8566 sed 's/^/| /' conftest.$ac_ext >&5
8569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8575 echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
8576 echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6
8578 cat >>confdefs.h <<_ACEOF
8579 #define socklen_t $curl_cv_socklen_t_equiv
8589 for ac_func in kqueue setrlimit getrusage times
8591 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8592 echo "$as_me:$LINENO: checking for $ac_func" >&5
8593 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8594 if eval "test \"\${$as_ac_var+set}\" = set"; then
8595 echo $ECHO_N "(cached) $ECHO_C" >&6
8597 cat >conftest.$ac_ext <<_ACEOF
8600 cat confdefs.h >>conftest.$ac_ext
8601 cat >>conftest.$ac_ext <<_ACEOF
8602 /* end confdefs.h. */
8603 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8604 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8605 #define $ac_func innocuous_$ac_func
8607 /* System header to define __stub macros and hopefully few prototypes,
8608 which can conflict with char $ac_func (); below.
8609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8610 <limits.h> exists even on freestanding compilers. */
8613 # include <limits.h>
8615 # include <assert.h>
8620 /* Override any gcc2 internal prototype to avoid an error. */
8625 /* We use char because int might match the return type of a gcc2
8626 builtin and then its argument prototype would still apply. */
8628 /* The GNU C library defines this for functions which it implements
8629 to always fail with ENOSYS. Some functions are actually named
8630 something starting with __ and the normal name is an alias. */
8631 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8634 char (*f) () = $ac_func;
8643 return f != $ac_func;
8648 rm -f conftest.$ac_objext conftest$ac_exeext
8649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8650 (eval $ac_link) 2>conftest.er1
8652 grep -v '^ *+' conftest.er1 >conftest.err
8654 cat conftest.err >&5
8655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8656 (exit $ac_status); } &&
8657 { ac_try='test -z "$ac_c_werror_flag"
8658 || test ! -s conftest.err'
8659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663 (exit $ac_status); }; } &&
8664 { ac_try='test -s conftest$ac_exeext'
8665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669 (exit $ac_status); }; }; then
8670 eval "$as_ac_var=yes"
8672 echo "$as_me: failed program was:" >&5
8673 sed 's/^/| /' conftest.$ac_ext >&5
8675 eval "$as_ac_var=no"
8677 rm -f conftest.err conftest.$ac_objext \
8678 conftest$ac_exeext conftest.$ac_ext
8680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8681 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8682 if test `eval echo '${'$as_ac_var'}'` = yes; then
8683 cat >>confdefs.h <<_ACEOF
8684 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8691 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8692 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8693 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8694 echo $ECHO_N "(cached) $ECHO_C" >&6
8696 cat >conftest.$ac_ext <<_ACEOF
8699 cat confdefs.h >>conftest.$ac_ext
8700 cat >>conftest.$ac_ext <<_ACEOF
8701 /* end confdefs.h. */
8702 #include <sys/types.h>
8703 #include <sys/wait.h>
8705 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8708 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8716 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8721 rm -f conftest.$ac_objext
8722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8723 (eval $ac_compile) 2>conftest.er1
8725 grep -v '^ *+' conftest.er1 >conftest.err
8727 cat conftest.err >&5
8728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729 (exit $ac_status); } &&
8730 { ac_try='test -z "$ac_c_werror_flag"
8731 || test ! -s conftest.err'
8732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736 (exit $ac_status); }; } &&
8737 { ac_try='test -s conftest.$ac_objext'
8738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742 (exit $ac_status); }; }; then
8743 ac_cv_header_sys_wait_h=yes
8745 echo "$as_me: failed program was:" >&5
8746 sed 's/^/| /' conftest.$ac_ext >&5
8748 ac_cv_header_sys_wait_h=no
8750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8752 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8753 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8754 if test $ac_cv_header_sys_wait_h = yes; then
8756 cat >>confdefs.h <<\_ACEOF
8757 #define HAVE_SYS_WAIT_H 1
8763 for ac_header in unistd.h
8765 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8766 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8767 echo "$as_me:$LINENO: checking for $ac_header" >&5
8768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8769 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8770 echo $ECHO_N "(cached) $ECHO_C" >&6
8772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8773 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8775 # Is the header compilable?
8776 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8777 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8778 cat >conftest.$ac_ext <<_ACEOF
8781 cat confdefs.h >>conftest.$ac_ext
8782 cat >>conftest.$ac_ext <<_ACEOF
8783 /* end confdefs.h. */
8784 $ac_includes_default
8785 #include <$ac_header>
8787 rm -f conftest.$ac_objext
8788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8789 (eval $ac_compile) 2>conftest.er1
8791 grep -v '^ *+' conftest.er1 >conftest.err
8793 cat conftest.err >&5
8794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795 (exit $ac_status); } &&
8796 { ac_try='test -z "$ac_c_werror_flag"
8797 || test ! -s conftest.err'
8798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802 (exit $ac_status); }; } &&
8803 { ac_try='test -s conftest.$ac_objext'
8804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808 (exit $ac_status); }; }; then
8809 ac_header_compiler=yes
8811 echo "$as_me: failed program was:" >&5
8812 sed 's/^/| /' conftest.$ac_ext >&5
8814 ac_header_compiler=no
8816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8817 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8818 echo "${ECHO_T}$ac_header_compiler" >&6
8820 # Is the header present?
8821 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8822 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8823 cat >conftest.$ac_ext <<_ACEOF
8826 cat confdefs.h >>conftest.$ac_ext
8827 cat >>conftest.$ac_ext <<_ACEOF
8828 /* end confdefs.h. */
8829 #include <$ac_header>
8831 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8832 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8834 grep -v '^ *+' conftest.er1 >conftest.err
8836 cat conftest.err >&5
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); } >/dev/null; then
8839 if test -s conftest.err; then
8840 ac_cpp_err=$ac_c_preproc_warn_flag
8841 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8848 if test -z "$ac_cpp_err"; then
8849 ac_header_preproc=yes
8851 echo "$as_me: failed program was:" >&5
8852 sed 's/^/| /' conftest.$ac_ext >&5
8854 ac_header_preproc=no
8856 rm -f conftest.err conftest.$ac_ext
8857 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8858 echo "${ECHO_T}$ac_header_preproc" >&6
8860 # So? What about this header?
8861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8863 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8864 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8866 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8867 ac_header_preproc=yes
8870 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8871 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8872 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8873 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8874 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8875 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8876 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8877 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8879 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8880 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8881 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8884 ## ------------------------------------------ ##
8885 ## Report this to the AC_PACKAGE_NAME lists. ##
8886 ## ------------------------------------------ ##
8889 sed "s/^/$as_me: WARNING: /" >&2
8892 echo "$as_me:$LINENO: checking for $ac_header" >&5
8893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8894 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8895 echo $ECHO_N "(cached) $ECHO_C" >&6
8897 eval "$as_ac_Header=\$ac_header_preproc"
8899 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8900 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8903 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8904 cat >>confdefs.h <<_ACEOF
8905 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8912 echo "$as_me:$LINENO: checking for restartable system calls" >&5
8913 echo $ECHO_N "checking for restartable system calls... $ECHO_C" >&6
8914 if test "${ac_cv_sys_restartable_syscalls+set}" = set; then
8915 echo $ECHO_N "(cached) $ECHO_C" >&6
8917 if test "$cross_compiling" = yes; then
8918 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8919 See \`config.log' for more details." >&5
8920 echo "$as_me: error: cannot run test program while cross compiling
8921 See \`config.log' for more details." >&2;}
8922 { (exit 1); exit 1; }; }
8924 cat >conftest.$ac_ext <<_ACEOF
8927 cat confdefs.h >>conftest.$ac_ext
8928 cat >>conftest.$ac_ext <<_ACEOF
8929 /* end confdefs.h. */
8930 /* Exit 0 (true) if wait returns something other than -1,
8931 i.e. the pid of the child, which means that wait was restarted
8932 after getting the signal. */
8934 #include <sys/types.h>
8937 # include <unistd.h>
8940 # include <sys/wait.h>
8943 /* Some platforms explicitly require an extern "C" signal handler
8946 extern "C" void ucatch (int dummy) { }
8948 void ucatch (dummy) int dummy; { }
8954 int i = fork (), status;
8959 kill (getppid (), SIGINT);
8964 signal (SIGINT, ucatch);
8970 exit (status == -1);
8973 rm -f conftest$ac_exeext
8974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8975 (eval $ac_link) 2>&5
8977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983 (exit $ac_status); }; }; then
8984 ac_cv_sys_restartable_syscalls=yes
8986 echo "$as_me: program exited with status $ac_status" >&5
8987 echo "$as_me: failed program was:" >&5
8988 sed 's/^/| /' conftest.$ac_ext >&5
8991 ac_cv_sys_restartable_syscalls=no
8993 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8996 echo "$as_me:$LINENO: result: $ac_cv_sys_restartable_syscalls" >&5
8997 echo "${ECHO_T}$ac_cv_sys_restartable_syscalls" >&6
8998 if test $ac_cv_sys_restartable_syscalls = yes; then
9000 cat >>confdefs.h <<\_ACEOF
9001 #define HAVE_RESTARTABLE_SYSCALLS 1
9007 echo "$as_me:$LINENO: checking for donuts" >&5
9008 echo $ECHO_N "checking for donuts... $ECHO_C" >&6
9009 echo "$as_me:$LINENO: result: yes" >&5
9010 echo "${ECHO_T}yes" >&6
9012 for ac_prog in gawk mawk nawk awk
9014 # Extract the first word of "$ac_prog", so it can be a program name with args.
9015 set dummy $ac_prog; ac_word=$2
9016 echo "$as_me:$LINENO: checking for $ac_word" >&5
9017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9018 if test "${ac_cv_prog_AWK+set}" = set; then
9019 echo $ECHO_N "(cached) $ECHO_C" >&6
9021 if test -n "$AWK"; then
9022 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9028 test -z "$as_dir" && as_dir=.
9029 for ac_exec_ext in '' $ac_executable_extensions; do
9030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9031 ac_cv_prog_AWK="$ac_prog"
9032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9041 if test -n "$AWK"; then
9042 echo "$as_me:$LINENO: result: $AWK" >&5
9043 echo "${ECHO_T}$AWK" >&6
9045 echo "$as_me:$LINENO: result: no" >&5
9046 echo "${ECHO_T}no" >&6
9049 test -n "$AWK" && break
9052 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9053 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
9054 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
9055 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
9056 echo $ECHO_N "(cached) $ECHO_C" >&6
9058 cat >conftest.make <<\_ACEOF
9060 @echo 'ac_maketemp="$(MAKE)"'
9062 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9063 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
9064 if test -n "$ac_maketemp"; then
9065 eval ac_cv_prog_make_${ac_make}_set=yes
9067 eval ac_cv_prog_make_${ac_make}_set=no
9071 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
9072 echo "$as_me:$LINENO: result: yes" >&5
9073 echo "${ECHO_T}yes" >&6
9076 echo "$as_me:$LINENO: result: no" >&5
9077 echo "${ECHO_T}no" >&6
9078 SET_MAKE="MAKE=${MAKE-make}"
9081 # Find a good install program. We prefer a C program (faster),
9082 # so one script is as good as another. But avoid the broken or
9083 # incompatible versions:
9084 # SysV /etc/install, /usr/sbin/install
9085 # SunOS /usr/etc/install
9086 # IRIX /sbin/install
9088 # AmigaOS /C/install, which installs bootblocks on floppy discs
9089 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9090 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9091 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9092 # OS/2's system install, which has a completely different semantic
9093 # ./install, which can be erroneously created by make from ./install.sh.
9094 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
9095 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
9096 if test -z "$INSTALL"; then
9097 if test "${ac_cv_path_install+set}" = set; then
9098 echo $ECHO_N "(cached) $ECHO_C" >&6
9100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9104 test -z "$as_dir" && as_dir=.
9105 # Account for people who put trailing slashes in PATH elements.
9107 ./ | .// | /cC/* | \
9108 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9109 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
9112 # OSF1 and SCO ODT 3.0 have their own names for install.
9113 # Don't use installbsd from OSF since it installs stuff as root
9115 for ac_prog in ginstall scoinst install; do
9116 for ac_exec_ext in '' $ac_executable_extensions; do
9117 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9118 if test $ac_prog = install &&
9119 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9120 # AIX install. It has an incompatible calling convention.
9122 elif test $ac_prog = install &&
9123 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9124 # program-specific install script used by HP pwplus--don't use.
9127 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9139 if test "${ac_cv_path_install+set}" = set; then
9140 INSTALL=$ac_cv_path_install
9142 # As a last resort, use the slow shell script. We don't cache a
9143 # path for INSTALL within a source directory, because that will
9144 # break other packages using the cache if that directory is
9145 # removed, or if the path is relative.
9146 INSTALL=$ac_install_sh
9149 echo "$as_me:$LINENO: result: $INSTALL" >&5
9150 echo "${ECHO_T}$INSTALL" >&6
9152 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9153 # It thinks the first close brace ends the variable substitution.
9154 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9156 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9158 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9160 echo "$as_me:$LINENO: checking whether ln -s works" >&5
9161 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
9163 if test "$LN_S" = "ln -s"; then
9164 echo "$as_me:$LINENO: result: yes" >&5
9165 echo "${ECHO_T}yes" >&6
9167 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
9168 echo "${ECHO_T}no, using $LN_S" >&6
9173 # Extract the first word of "$ac_prog", so it can be a program name with args.
9174 set dummy $ac_prog; ac_word=$2
9175 echo "$as_me:$LINENO: checking for $ac_word" >&5
9176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9177 if test "${ac_cv_path_RMPROG+set}" = set; then
9178 echo $ECHO_N "(cached) $ECHO_C" >&6
9182 ac_cv_path_RMPROG="$RMPROG" # Let the user override the test with a path.
9185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9189 test -z "$as_dir" && as_dir=.
9190 for ac_exec_ext in '' $ac_executable_extensions; do
9191 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9192 ac_cv_path_RMPROG="$as_dir/$ac_word$ac_exec_ext"
9193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9202 RMPROG=$ac_cv_path_RMPROG
9204 if test -n "$RMPROG"; then
9205 echo "$as_me:$LINENO: result: $RMPROG" >&5
9206 echo "${ECHO_T}$RMPROG" >&6
9208 echo "$as_me:$LINENO: result: no" >&5
9209 echo "${ECHO_T}no" >&6
9212 test -n "$RMPROG" && break
9214 test -n "$RMPROG" || RMPROG="/bin/rm"
9218 # Extract the first word of "$ac_prog", so it can be a program name with args.
9219 set dummy $ac_prog; ac_word=$2
9220 echo "$as_me:$LINENO: checking for $ac_word" >&5
9221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9222 if test "${ac_cv_path_SHPROG+set}" = set; then
9223 echo $ECHO_N "(cached) $ECHO_C" >&6
9227 ac_cv_path_SHPROG="$SHPROG" # Let the user override the test with a path.
9230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9234 test -z "$as_dir" && as_dir=.
9235 for ac_exec_ext in '' $ac_executable_extensions; do
9236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9237 ac_cv_path_SHPROG="$as_dir/$ac_word$ac_exec_ext"
9238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9247 SHPROG=$ac_cv_path_SHPROG
9249 if test -n "$SHPROG"; then
9250 echo "$as_me:$LINENO: result: $SHPROG" >&5
9251 echo "${ECHO_T}$SHPROG" >&6
9253 echo "$as_me:$LINENO: result: no" >&5
9254 echo "${ECHO_T}no" >&6
9257 test -n "$SHPROG" && break
9259 test -n "$SHPROG" || SHPROG="/bin/sh"
9262 for ac_prog in flex lex
9264 # Extract the first word of "$ac_prog", so it can be a program name with args.
9265 set dummy $ac_prog; ac_word=$2
9266 echo "$as_me:$LINENO: checking for $ac_word" >&5
9267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9268 if test "${ac_cv_prog_LEX+set}" = set; then
9269 echo $ECHO_N "(cached) $ECHO_C" >&6
9271 if test -n "$LEX"; then
9272 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9278 test -z "$as_dir" && as_dir=.
9279 for ac_exec_ext in '' $ac_executable_extensions; do
9280 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9281 ac_cv_prog_LEX="$ac_prog"
9282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9291 if test -n "$LEX"; then
9292 echo "$as_me:$LINENO: result: $LEX" >&5
9293 echo "${ECHO_T}$LEX" >&6
9295 echo "$as_me:$LINENO: result: no" >&5
9296 echo "${ECHO_T}no" >&6
9299 test -n "$LEX" && break
9301 test -n "$LEX" || LEX=":"
9303 if test -z "$LEXLIB"
9305 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
9306 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
9307 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
9308 echo $ECHO_N "(cached) $ECHO_C" >&6
9310 ac_check_lib_save_LIBS=$LIBS
9312 cat >conftest.$ac_ext <<_ACEOF
9315 cat confdefs.h >>conftest.$ac_ext
9316 cat >>conftest.$ac_ext <<_ACEOF
9317 /* end confdefs.h. */
9319 /* Override any gcc2 internal prototype to avoid an error. */
9323 /* We use char because int might match the return type of a gcc2
9324 builtin and then its argument prototype would still apply. */
9334 rm -f conftest.$ac_objext conftest$ac_exeext
9335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9336 (eval $ac_link) 2>conftest.er1
9338 grep -v '^ *+' conftest.er1 >conftest.err
9340 cat conftest.err >&5
9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342 (exit $ac_status); } &&
9343 { ac_try='test -z "$ac_c_werror_flag"
9344 || test ! -s conftest.err'
9345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349 (exit $ac_status); }; } &&
9350 { ac_try='test -s conftest$ac_exeext'
9351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355 (exit $ac_status); }; }; then
9356 ac_cv_lib_fl_yywrap=yes
9358 echo "$as_me: failed program was:" >&5
9359 sed 's/^/| /' conftest.$ac_ext >&5
9361 ac_cv_lib_fl_yywrap=no
9363 rm -f conftest.err conftest.$ac_objext \
9364 conftest$ac_exeext conftest.$ac_ext
9365 LIBS=$ac_check_lib_save_LIBS
9367 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
9368 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
9369 if test $ac_cv_lib_fl_yywrap = yes; then
9372 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
9373 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
9374 if test "${ac_cv_lib_l_yywrap+set}" = set; then
9375 echo $ECHO_N "(cached) $ECHO_C" >&6
9377 ac_check_lib_save_LIBS=$LIBS
9379 cat >conftest.$ac_ext <<_ACEOF
9382 cat confdefs.h >>conftest.$ac_ext
9383 cat >>conftest.$ac_ext <<_ACEOF
9384 /* end confdefs.h. */
9386 /* Override any gcc2 internal prototype to avoid an error. */
9390 /* We use char because int might match the return type of a gcc2
9391 builtin and then its argument prototype would still apply. */
9401 rm -f conftest.$ac_objext conftest$ac_exeext
9402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9403 (eval $ac_link) 2>conftest.er1
9405 grep -v '^ *+' conftest.er1 >conftest.err
9407 cat conftest.err >&5
9408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409 (exit $ac_status); } &&
9410 { ac_try='test -z "$ac_c_werror_flag"
9411 || test ! -s conftest.err'
9412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416 (exit $ac_status); }; } &&
9417 { ac_try='test -s conftest$ac_exeext'
9418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422 (exit $ac_status); }; }; then
9423 ac_cv_lib_l_yywrap=yes
9425 echo "$as_me: failed program was:" >&5
9426 sed 's/^/| /' conftest.$ac_ext >&5
9428 ac_cv_lib_l_yywrap=no
9430 rm -f conftest.err conftest.$ac_objext \
9431 conftest$ac_exeext conftest.$ac_ext
9432 LIBS=$ac_check_lib_save_LIBS
9434 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
9435 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
9436 if test $ac_cv_lib_l_yywrap = yes; then
9444 if test "x$LEX" != "x:"; then
9445 echo "$as_me:$LINENO: checking lex output file root" >&5
9446 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
9447 if test "${ac_cv_prog_lex_root+set}" = set; then
9448 echo $ECHO_N "(cached) $ECHO_C" >&6
9450 # The minimal lex program is just a single line: %%. But some broken lexes
9451 # (Solaris, I think it was) want two %% lines, so accommodate them.
9452 cat >conftest.l <<_ACEOF
9456 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
9457 (eval $LEX conftest.l) 2>&5
9459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460 (exit $ac_status); }
9461 if test -f lex.yy.c; then
9462 ac_cv_prog_lex_root=lex.yy
9463 elif test -f lexyy.c; then
9464 ac_cv_prog_lex_root=lexyy
9466 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
9467 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
9468 { (exit 1); exit 1; }; }
9471 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
9472 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
9474 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
9476 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
9477 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
9478 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
9479 echo $ECHO_N "(cached) $ECHO_C" >&6
9481 # POSIX says lex can declare yytext either as a pointer or an array; the
9482 # default is implementation-dependent. Figure out which it is, since
9483 # not all implementations provide the %pointer and %array declarations.
9484 ac_cv_prog_lex_yytext_pointer=no
9485 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
9487 LIBS="$LIBS $LEXLIB"
9488 cat >conftest.$ac_ext <<_ACEOF
9489 `cat $LEX_OUTPUT_ROOT.c`
9491 rm -f conftest.$ac_objext conftest$ac_exeext
9492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9493 (eval $ac_link) 2>conftest.er1
9495 grep -v '^ *+' conftest.er1 >conftest.err
9497 cat conftest.err >&5
9498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499 (exit $ac_status); } &&
9500 { ac_try='test -z "$ac_c_werror_flag"
9501 || test ! -s conftest.err'
9502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506 (exit $ac_status); }; } &&
9507 { ac_try='test -s conftest$ac_exeext'
9508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512 (exit $ac_status); }; }; then
9513 ac_cv_prog_lex_yytext_pointer=yes
9515 echo "$as_me: failed program was:" >&5
9516 sed 's/^/| /' conftest.$ac_ext >&5
9519 rm -f conftest.err conftest.$ac_objext \
9520 conftest$ac_exeext conftest.$ac_ext
9522 rm -f "${LEX_OUTPUT_ROOT}.c"
9525 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
9526 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
9527 if test $ac_cv_prog_lex_yytext_pointer = yes; then
9529 cat >>confdefs.h <<\_ACEOF
9530 #define YYTEXT_POINTER 1
9536 if test "$LEX" = ":" ; then
9537 { { echo "$as_me:$LINENO: error: Cannot find flex." >&5
9538 echo "$as_me: error: Cannot find flex." >&2;}
9539 { (exit 1); exit 1; }; }
9540 elif echo "" | $LEX -V -v --version > /dev/null 2>&1 ; then
9543 { { echo "$as_me:$LINENO: error: Cannot use $LEX as flex." >&5
9544 echo "$as_me: error: Cannot use $LEX as flex." >&2;}
9545 { (exit 1); exit 1; }; }
9548 for ac_prog in 'bison -y' byacc
9550 # Extract the first word of "$ac_prog", so it can be a program name with args.
9551 set dummy $ac_prog; ac_word=$2
9552 echo "$as_me:$LINENO: checking for $ac_word" >&5
9553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9554 if test "${ac_cv_prog_YACC+set}" = set; then
9555 echo $ECHO_N "(cached) $ECHO_C" >&6
9557 if test -n "$YACC"; then
9558 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9564 test -z "$as_dir" && as_dir=.
9565 for ac_exec_ext in '' $ac_executable_extensions; do
9566 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9567 ac_cv_prog_YACC="$ac_prog"
9568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9576 YACC=$ac_cv_prog_YACC
9577 if test -n "$YACC"; then
9578 echo "$as_me:$LINENO: result: $YACC" >&5
9579 echo "${ECHO_T}$YACC" >&6
9581 echo "$as_me:$LINENO: result: no" >&5
9582 echo "${ECHO_T}no" >&6
9585 test -n "$YACC" && break
9587 test -n "$YACC" || YACC="yacc"
9589 if test "$YACC" = ":" ; then
9590 { { echo "$as_me:$LINENO: error: Cannot find yacc." >&5
9591 echo "$as_me: error: Cannot find yacc." >&2;}
9592 { (exit 1); exit 1; }; }
9593 elif echo "" | $YACC -V -v --version > /dev/null 2>&1 ; then
9596 { echo "$as_me:$LINENO: WARNING: $YACC may not work as yacc." >&5
9597 echo "$as_me: WARNING: $YACC may not work as yacc." >&2;}
9600 echo "$as_me:$LINENO: checking for posix non-blocking" >&5
9601 echo $ECHO_N "checking for posix non-blocking... $ECHO_C" >&6
9602 if test "${unet_cv_sys_nonblocking_posix+set}" = set; then
9603 echo $ECHO_N "(cached) $ECHO_C" >&6
9605 if test "$cross_compiling" = yes; then
9606 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9607 See \`config.log' for more details." >&5
9608 echo "$as_me: error: cannot run test program while cross compiling
9609 See \`config.log' for more details." >&2;}
9610 { (exit 1); exit 1; }; }
9612 cat >conftest.$ac_ext <<_ACEOF
9615 cat confdefs.h >>conftest.$ac_ext
9616 cat >>conftest.$ac_ext <<_ACEOF
9617 /* end confdefs.h. */
9618 #include <sys/types.h>
9619 #include <sys/socket.h>
9621 #include <sys/ioctl.h>
9622 #include <sys/file.h>
9624 $ac_cv_type_signal alarmed() { exit(1); }
9629 size_t l = sizeof(x);
9630 int f = socket(AF_INET, SOCK_DGRAM, 0);
9631 if (f >= 0 && !(fcntl(f, F_SETFL, O_NONBLOCK)))
9633 signal(SIGALRM, alarmed);
9635 recvfrom(f, b, 12, 0, &x, &l);
9642 rm -f conftest$ac_exeext
9643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9644 (eval $ac_link) 2>&5
9646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652 (exit $ac_status); }; }; then
9653 unet_cv_sys_nonblocking_posix=yes
9655 echo "$as_me: program exited with status $ac_status" >&5
9656 echo "$as_me: failed program was:" >&5
9657 sed 's/^/| /' conftest.$ac_ext >&5
9660 unet_cv_sys_nonblocking_posix=no
9662 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9665 echo "$as_me:$LINENO: result: $unet_cv_sys_nonblocking_posix" >&5
9666 echo "${ECHO_T}$unet_cv_sys_nonblocking_posix" >&6
9667 if test $unet_cv_sys_nonblocking_posix = yes; then
9669 cat >>confdefs.h <<\_ACEOF
9670 #define NBLOCK_POSIX
9674 echo "$as_me:$LINENO: checking for bsd non-blocking" >&5
9675 echo $ECHO_N "checking for bsd non-blocking... $ECHO_C" >&6
9676 if test "${unet_cv_sys_nonblocking_bsd+set}" = set; then
9677 echo $ECHO_N "(cached) $ECHO_C" >&6
9679 if test "$cross_compiling" = yes; then
9680 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9681 See \`config.log' for more details." >&5
9682 echo "$as_me: error: cannot run test program while cross compiling
9683 See \`config.log' for more details." >&2;}
9684 { (exit 1); exit 1; }; }
9686 cat >conftest.$ac_ext <<_ACEOF
9689 cat confdefs.h >>conftest.$ac_ext
9690 cat >>conftest.$ac_ext <<_ACEOF
9691 /* end confdefs.h. */
9692 #include <sys/types.h>
9693 #include <sys/socket.h>
9695 #include <sys/ioctl.h>
9696 #include <sys/file.h>
9698 $ac_cv_type_signal alarmed() { exit(1); }
9703 size_t l = sizeof(x);
9704 int f = socket(AF_INET, SOCK_DGRAM, 0);
9705 if (f >= 0 && !(fcntl(f, F_SETFL, O_NDELAY)))
9707 signal(SIGALRM, alarmed);
9709 recvfrom(f, b, 12, 0, &x, &l);
9716 rm -f conftest$ac_exeext
9717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9718 (eval $ac_link) 2>&5
9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); }; }; then
9727 unet_cv_sys_nonblocking_bsd=yes
9729 echo "$as_me: program exited with status $ac_status" >&5
9730 echo "$as_me: failed program was:" >&5
9731 sed 's/^/| /' conftest.$ac_ext >&5
9734 unet_cv_sys_nonblocking_bsd=no
9736 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9739 echo "$as_me:$LINENO: result: $unet_cv_sys_nonblocking_bsd" >&5
9740 echo "${ECHO_T}$unet_cv_sys_nonblocking_bsd" >&6
9741 if test $unet_cv_sys_nonblocking_bsd = yes; then
9743 cat >>confdefs.h <<\_ACEOF
9749 cat >>confdefs.h <<\_ACEOF
9755 echo "$as_me:$LINENO: checking for posix signals" >&5
9756 echo $ECHO_N "checking for posix signals... $ECHO_C" >&6
9757 if test "${unet_cv_sys_signal_posix+set}" = set; then
9758 echo $ECHO_N "(cached) $ECHO_C" >&6
9760 cat >conftest.$ac_ext <<_ACEOF
9763 cat confdefs.h >>conftest.$ac_ext
9764 cat >>conftest.$ac_ext <<_ACEOF
9765 /* end confdefs.h. */
9770 sigaction(SIGTERM, (struct sigaction *)0L, (struct sigaction *)0L)
9775 rm -f conftest.$ac_objext
9776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9777 (eval $ac_compile) 2>conftest.er1
9779 grep -v '^ *+' conftest.er1 >conftest.err
9781 cat conftest.err >&5
9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783 (exit $ac_status); } &&
9784 { ac_try='test -z "$ac_c_werror_flag"
9785 || test ! -s conftest.err'
9786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790 (exit $ac_status); }; } &&
9791 { ac_try='test -s conftest.$ac_objext'
9792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796 (exit $ac_status); }; }; then
9797 unet_cv_sys_signal_posix=yes
9799 echo "$as_me: failed program was:" >&5
9800 sed 's/^/| /' conftest.$ac_ext >&5
9802 unet_cv_sys_signal_posix=no
9804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9806 echo "$as_me:$LINENO: result: $unet_cv_sys_signal_posix" >&5
9807 echo "${ECHO_T}$unet_cv_sys_signal_posix" >&6
9808 if test $unet_cv_sys_signal_posix = yes; then
9810 cat >>confdefs.h <<\_ACEOF
9811 #define POSIX_SIGNALS
9815 echo "$as_me:$LINENO: checking for bsd reliable signals" >&5
9816 echo $ECHO_N "checking for bsd reliable signals... $ECHO_C" >&6
9817 if test "${unet_cv_sys_signal_bsd+set}" = set; then
9818 echo $ECHO_N "(cached) $ECHO_C" >&6
9820 if test "$cross_compiling" = yes; then
9821 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9822 See \`config.log' for more details." >&5
9823 echo "$as_me: error: cannot run test program while cross compiling
9824 See \`config.log' for more details." >&2;}
9825 { (exit 1); exit 1; }; }
9827 cat >conftest.$ac_ext <<_ACEOF
9830 cat confdefs.h >>conftest.$ac_ext
9831 cat >>conftest.$ac_ext <<_ACEOF
9832 /* end confdefs.h. */
9835 $ac_cv_type_signal handler()
9839 kill(getpid(), SIGTERM);
9844 signal(SIGTERM, handler);
9845 kill(getpid(), SIGTERM);
9849 rm -f conftest$ac_exeext
9850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9851 (eval $ac_link) 2>&5
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); }; }; then
9860 unet_cv_sys_signal_bsd=yes
9862 echo "$as_me: program exited with status $ac_status" >&5
9863 echo "$as_me: failed program was:" >&5
9864 sed 's/^/| /' conftest.$ac_ext >&5
9867 unet_cv_sys_signal_bsd=no
9869 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9872 echo "$as_me:$LINENO: result: $unet_cv_sys_signal_bsd" >&5
9873 echo "${ECHO_T}$unet_cv_sys_signal_bsd" >&6
9874 if test $unet_cv_sys_signal_bsd = yes; then
9876 cat >>confdefs.h <<\_ACEOF
9877 #define BSD_RELIABLE_SIGNALS
9882 cat >>confdefs.h <<\_ACEOF
9883 #define SYSV_UNRELIABLE_SIGNALS
9889 echo "$as_me:$LINENO: checking for OS-dependent information" >&5
9890 echo $ECHO_N "checking for OS-dependent information... $ECHO_C" >&6
9893 echo "$as_me:$LINENO: result: Linux ($host) found." >&5
9894 echo "${ECHO_T}Linux ($host) found." >&6
9895 unet_poll_syscall=yes
9899 echo "$as_me:$LINENO: result: Solaris ($host) found." >&5
9900 echo "${ECHO_T}Solaris ($host) found." >&6
9901 if test x"$ac_cv_header_poll_h" = xyes; then
9902 unet_poll_syscall=yes
9904 unet_poll_syscall=no
9907 cat >>confdefs.h <<\_ACEOF
9908 #define IRCU_SOLARIS 1
9914 echo "$as_me:$LINENO: result: Solaris ($host) found." >&5
9915 echo "${ECHO_T}Solaris ($host) found." >&6
9916 unet_poll_syscall=no
9920 echo "$as_me:$LINENO: result: OpenBSD ($host) found." >&5
9921 echo "${ECHO_T}OpenBSD ($host) found." >&6
9922 if test x"$ac_cv_header_poll_h" = xyes; then
9923 unet_poll_syscall=yes
9925 unet_poll_syscall=no
9930 echo "$as_me:$LINENO: result: Generic BSD ($host) found." >&5
9931 echo "${ECHO_T}Generic BSD ($host) found." >&6
9932 if test x"$ac_cv_header_poll_h" = xyes; then
9933 unet_poll_syscall=yes
9935 unet_poll_syscall=no
9940 echo "$as_me:$LINENO: result: Darwin (Mac OS X) ($host) found." >&5
9941 echo "${ECHO_T}Darwin (Mac OS X) ($host) found." >&6
9942 unet_poll_syscall=no
9946 echo "$as_me:$LINENO: result: Unknown system type $host found." >&5
9947 echo "${ECHO_T}Unknown system type $host found." >&6
9948 { echo "$as_me:$LINENO: WARNING: Unknown OS type; using generic routines." >&5
9949 echo "$as_me: WARNING: Unknown OS type; using generic routines." >&2;}
9950 unet_poll_syscall=no
9954 echo "$as_me:$LINENO: checking whether to enable use of poll()" >&5
9955 echo $ECHO_N "checking whether to enable use of poll()... $ECHO_C" >&6
9956 # Check whether --enable-poll or --disable-poll was given.
9957 if test "${enable_poll+set}" = set; then
9958 enableval="$enable_poll"
9959 unet_cv_enable_poll=$enable_poll
9961 if test "${unet_cv_enable_poll+set}" = set; then
9962 echo $ECHO_N "(cached) $ECHO_C" >&6
9964 unet_cv_enable_poll=$unet_poll_syscall
9969 # Force poll to be disabled if there is no poll.h
9970 if test x"$ac_cv_header_poll_h" != xyes; then
9971 unet_cv_enable_poll=no
9974 echo "$as_me:$LINENO: result: $unet_cv_enable_poll" >&5
9975 echo "${ECHO_T}$unet_cv_enable_poll" >&6
9977 if test x"$unet_cv_enable_poll" = xyes; then
9979 cat >>confdefs.h <<\_ACEOF
9983 ENGINE_C=engine_poll.c
9985 ENGINE_C=engine_select.c
9989 echo "$as_me:$LINENO: checking whether to enable debug mode" >&5
9990 echo $ECHO_N "checking whether to enable debug mode... $ECHO_C" >&6
9991 # Check whether --enable-debug or --disable-debug was given.
9992 if test "${enable_debug+set}" = set; then
9993 enableval="$enable_debug"
9994 unet_cv_enable_debug=$enable_debug
9996 if test "${unet_cv_enable_debug+set}" = set; then
9997 echo $ECHO_N "(cached) $ECHO_C" >&6
9999 unet_cv_enable_debug=no
10003 echo "$as_me:$LINENO: result: $unet_cv_enable_debug" >&5
10004 echo "${ECHO_T}$unet_cv_enable_debug" >&6
10006 if test x"$unet_cv_enable_debug" = xyes; then
10008 cat >>confdefs.h <<\_ACEOF
10009 #define DEBUGMODE 1
10014 echo "$as_me:$LINENO: checking whether to enable leak detection" >&5
10015 echo $ECHO_N "checking whether to enable leak detection... $ECHO_C" >&6
10017 # Check whether --with-leak-detect or --without-leak-detect was given.
10018 if test "${with_leak_detect+set}" = set; then
10019 withval="$with_leak_detect"
10020 unet_cv_with_leak_detect=$with_leak_detect
10022 if test "${unet_cv_with_leak_detect+set}" = set; then
10023 echo $ECHO_N "(cached) $ECHO_C" >&6
10025 unet_cv_with_leak_detect=no
10029 echo "$as_me:$LINENO: result: $unet_cv_enable_leak_detect" >&5
10030 echo "${ECHO_T}$unet_cv_enable_leak_detect" >&6
10032 if test x"$unet_cv_with_leak_detect" != xno; then
10034 CFLAGS="-DMDEBUG $CFLAGS"
10035 if test x"$unet_cv_with_leak_detect" != xyes; then
10036 LIBS="-L$unet_cv_with_leak_detect $LIBS"
10041 # Check whether --with-ipv6 or --without-ipv6 was given.
10042 if test "${with_ipv6+set}" = set; then
10043 withval="$with_ipv6"
10044 ac_cv_use_ipv6=$withval
10046 ac_cv_use_ipv6=$unet_have_sockaddr_in6
10048 echo "$as_me:$LINENO: checking whether to use IPv6" >&5
10049 echo $ECHO_N "checking whether to use IPv6... $ECHO_C" >&6
10050 if test "${ac_cv_use_ipv6+set}" = set; then
10051 echo $ECHO_N "(cached) $ECHO_C" >&6
10055 echo "$as_me:$LINENO: result: $ac_cv_use_ipv6" >&5
10056 echo "${ECHO_T}$ac_cv_use_ipv6" >&6
10057 if test x"$ac_cv_use_ipv6" != "xno" ; then
10059 cat >>confdefs.h <<\_ACEOF
10065 echo "$as_me:$LINENO: checking whether to enable asserts" >&5
10066 echo $ECHO_N "checking whether to enable asserts... $ECHO_C" >&6
10067 # Check whether --enable-asserts or --disable-asserts was given.
10068 if test "${enable_asserts+set}" = set; then
10069 enableval="$enable_asserts"
10070 unet_cv_enable_asserts=$enable_asserts
10072 if test "${unet_cv_enable_asserts+set}" = set; then
10073 echo $ECHO_N "(cached) $ECHO_C" >&6
10075 unet_cv_enable_asserts=yes
10079 echo "$as_me:$LINENO: result: $unet_cv_enable_asserts" >&5
10080 echo "${ECHO_T}$unet_cv_enable_asserts" >&6
10082 if test x"$unet_cv_enable_asserts" = xno; then
10084 cat >>confdefs.h <<\_ACEOF
10090 echo "$as_me:$LINENO: checking whether to enable profiling support (gprof)" >&5
10091 echo $ECHO_N "checking whether to enable profiling support (gprof)... $ECHO_C" >&6
10092 # Check whether --enable-profile or --disable-profile was given.
10093 if test "${enable_profile+set}" = set; then
10094 enableval="$enable_profile"
10095 unet_cv_enable_profile=$enable_profile
10097 if test "${unet_cv_enable_profile+set}" = set; then
10098 echo $ECHO_N "(cached) $ECHO_C" >&6
10100 unet_cv_enable_profile=no
10104 echo "$as_me:$LINENO: result: $unet_cv_enable_profile" >&5
10105 echo "${ECHO_T}$unet_cv_enable_profile" >&6
10107 if test x"$unet_cv_enable_profile" = xyes; then
10108 CFLAGS="-pg $CFLAGS"
10109 LDFLAGS="-pg $LDFLAGS"
10112 echo "$as_me:$LINENO: checking whether to enable pedantic compiler warnings" >&5
10113 echo $ECHO_N "checking whether to enable pedantic compiler warnings... $ECHO_C" >&6
10114 # Check whether --enable-pedantic or --disable-pedantic was given.
10115 if test "${enable_pedantic+set}" = set; then
10116 enableval="$enable_pedantic"
10117 unet_cv_enable_pedantic=$enable_pedantic
10119 if test "${unet_cv_enable_pedantic+set}" = set; then
10120 echo $ECHO_N "(cached) $ECHO_C" >&6
10122 unet_cv_enable_pedantic=no
10126 echo "$as_me:$LINENO: result: $unet_cv_enable_pedantic" >&5
10127 echo "${ECHO_T}$unet_cv_enable_pedantic" >&6
10129 if test x"$unet_cv_enable_pedantic" = xyes; then
10130 CFLAGS="-pedantic $CFLAGS"
10133 echo "$as_me:$LINENO: checking whether to enable compiler warnings" >&5
10134 echo $ECHO_N "checking whether to enable compiler warnings... $ECHO_C" >&6
10135 # Check whether --enable-warnings or --disable-warnings was given.
10136 if test "${enable_warnings+set}" = set; then
10137 enableval="$enable_warnings"
10138 unet_cv_enable_warnings=$enable_warnings
10140 if test "${unet_cv_enable_warnings+set}" = set; then
10141 echo $ECHO_N "(cached) $ECHO_C" >&6
10143 unet_cv_enable_warnings=no
10147 echo "$as_me:$LINENO: result: $unet_cv_enable_warnings" >&5
10148 echo "${ECHO_T}$unet_cv_enable_warnings" >&6
10150 if test x"$unet_cv_enable_warnings" = xyes; then
10151 CFLAGS="-Wall $CFLAGS"
10154 echo "$as_me:$LINENO: checking whether to enable inlining for a few critical functions" >&5
10155 echo $ECHO_N "checking whether to enable inlining for a few critical functions... $ECHO_C" >&6
10156 # Check whether --enable-inlines or --disable-inlines was given.
10157 if test "${enable_inlines+set}" = set; then
10158 enableval="$enable_inlines"
10159 unet_cv_enable_inlines=$enable_inlines
10161 if test "${unet_cv_enable_inlines+set}" = set; then
10162 echo $ECHO_N "(cached) $ECHO_C" >&6
10164 unet_cv_enable_inlines=yes
10168 echo "$as_me:$LINENO: result: $unet_cv_enable_inlines" >&5
10169 echo "${ECHO_T}$unet_cv_enable_inlines" >&6
10171 if test x"$unet_cv_enable_inlines" = xyes; then
10173 cat >>confdefs.h <<\_ACEOF
10174 #define FORCEINLINE 1
10179 echo "$as_me:$LINENO: checking whether to enable the /dev/poll event engine" >&5
10180 echo $ECHO_N "checking whether to enable the /dev/poll event engine... $ECHO_C" >&6
10181 # Check whether --enable-devpoll or --disable-devpoll was given.
10182 if test "${enable_devpoll+set}" = set; then
10183 enableval="$enable_devpoll"
10184 unet_cv_enable_devpoll=$enable_devpoll
10186 if test "${unet_cv_enable_devpoll+set}" = set; then
10187 echo $ECHO_N "(cached) $ECHO_C" >&6
10189 unet_cv_enable_devpoll=yes
10194 if test x"$ac_cv_header_sys_devpoll_h" = xno; then
10195 unet_cv_enable_devpoll=no
10198 echo "$as_me:$LINENO: result: $unet_cv_enable_devpoll" >&5
10199 echo "${ECHO_T}$unet_cv_enable_devpoll" >&6
10201 if test x"$unet_cv_enable_devpoll" != xno; then
10203 cat >>confdefs.h <<\_ACEOF
10204 #define USE_DEVPOLL 1
10207 ENGINE_C="engine_devpoll.c $ENGINE_C"
10210 echo "$as_me:$LINENO: checking whether to enable the kqueue event engine" >&5
10211 echo $ECHO_N "checking whether to enable the kqueue event engine... $ECHO_C" >&6
10212 # Check whether --enable-kqueue or --disable-kqueue was given.
10213 if test "${enable_kqueue+set}" = set; then
10214 enableval="$enable_kqueue"
10215 unet_cv_enable_kqueue=$enable_kqueue
10217 if test "${unet_cv_enable_kqueue+set}" = set; then
10218 echo $ECHO_N "(cached) $ECHO_C" >&6
10220 unet_cv_enable_kqueue=yes
10225 if test x"$ac_cv_header_sys_event_h" = xno -o x"$ac_cv_func_kqueue" = xno; then
10226 unet_cv_enable_kqueue=no
10229 echo "$as_me:$LINENO: result: $unet_cv_enable_kqueue" >&5
10230 echo "${ECHO_T}$unet_cv_enable_kqueue" >&6
10232 if test x"$unet_cv_enable_kqueue" != xno; then
10234 cat >>confdefs.h <<\_ACEOF
10235 #define USE_KQUEUE 1
10238 ENGINE_C="engine_kqueue.c $ENGINE_C"
10241 echo "$as_me:$LINENO: checking whether to enable the epoll event engine" >&5
10242 echo $ECHO_N "checking whether to enable the epoll event engine... $ECHO_C" >&6
10243 # Check whether --enable-epoll or --disable-epoll was given.
10244 if test "${enable_epoll+set}" = set; then
10245 enableval="$enable_epoll"
10246 unet_cv_enable_epoll=$enable_epoll
10248 if test "${unet_cv_enable_epoll+set}" = set; then
10249 echo $ECHO_N "(cached) $ECHO_C" >&6
10251 unet_cv_enable_epoll=yes
10256 if test x"$ac_cv_header_sys_epoll_h" = xno -o x"$ac_cv_func_epoll" = xno; then
10257 unet_cv_enable_epoll=no
10260 echo "$as_me:$LINENO: result: $unet_cv_enable_epoll" >&5
10261 echo "${ECHO_T}$unet_cv_enable_epoll" >&6
10263 if test x"$unet_cv_enable_epoll" != xno; then
10264 echo "$as_me:$LINENO: checking whether epoll functions are properly defined" >&5
10265 echo $ECHO_N "checking whether epoll functions are properly defined... $ECHO_C" >&6
10266 cat >conftest.$ac_ext <<_ACEOF
10269 cat confdefs.h >>conftest.$ac_ext
10270 cat >>conftest.$ac_ext <<_ACEOF
10271 /* end confdefs.h. */
10272 #include <sys/epoll.h>
10281 rm -f conftest.$ac_objext conftest$ac_exeext
10282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10283 (eval $ac_link) 2>conftest.er1
10285 grep -v '^ *+' conftest.er1 >conftest.err
10287 cat conftest.err >&5
10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 (exit $ac_status); } &&
10290 { ac_try='test -z "$ac_c_werror_flag"
10291 || test ! -s conftest.err'
10292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10293 (eval $ac_try) 2>&5
10295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); }; } &&
10297 { ac_try='test -s conftest$ac_exeext'
10298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10299 (eval $ac_try) 2>&5
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); }; }; then
10303 echo "$as_me:$LINENO: result: yes" >&5
10304 echo "${ECHO_T}yes" >&6
10306 echo "$as_me: failed program was:" >&5
10307 sed 's/^/| /' conftest.$ac_ext >&5
10309 echo "$as_me:$LINENO: result: no" >&5
10310 echo "${ECHO_T}no" >&6
10312 cat >>confdefs.h <<\_ACEOF
10313 #define EPOLL_NEED_BODY 1
10317 rm -f conftest.err conftest.$ac_objext \
10318 conftest$ac_exeext conftest.$ac_ext
10320 cat >>confdefs.h <<\_ACEOF
10321 #define USE_EPOLL 1
10324 ENGINE_C="engine_epoll.c $ENGINE_C"
10327 echo "$as_me:$LINENO: checking for va_copy" >&5
10328 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
10329 if test "${unet_cv_c_va_copy+set}" = set; then
10330 echo $ECHO_N "(cached) $ECHO_C" >&6
10332 cat >conftest.$ac_ext <<_ACEOF
10335 cat confdefs.h >>conftest.$ac_ext
10336 cat >>conftest.$ac_ext <<_ACEOF
10337 /* end confdefs.h. */
10338 #include <stdarg.h>
10342 va_list ap1, ap2; va_copy(ap1, ap2);
10347 rm -f conftest.$ac_objext conftest$ac_exeext
10348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10349 (eval $ac_link) 2>conftest.er1
10351 grep -v '^ *+' conftest.er1 >conftest.err
10353 cat conftest.err >&5
10354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355 (exit $ac_status); } &&
10356 { ac_try='test -z "$ac_c_werror_flag"
10357 || test ! -s conftest.err'
10358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10359 (eval $ac_try) 2>&5
10361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362 (exit $ac_status); }; } &&
10363 { ac_try='test -s conftest$ac_exeext'
10364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10365 (eval $ac_try) 2>&5
10367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); }; }; then
10369 unet_cv_c_va_copy="yes"
10371 echo "$as_me: failed program was:" >&5
10372 sed 's/^/| /' conftest.$ac_ext >&5
10374 unet_cv_c_va_copy="no"
10377 rm -f conftest.err conftest.$ac_objext \
10378 conftest$ac_exeext conftest.$ac_ext
10380 echo "$as_me:$LINENO: result: $unet_cv_c_va_copy" >&5
10381 echo "${ECHO_T}$unet_cv_c_va_copy" >&6
10382 if test "$unet_cv_c_va_copy" = "yes" ; then
10384 cat >>confdefs.h <<\_ACEOF
10385 #define HAVE_VA_COPY 1
10390 echo "$as_me:$LINENO: checking for __va_copy" >&5
10391 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
10392 if test "${unet_cv_c___va_copy+set}" = set; then
10393 echo $ECHO_N "(cached) $ECHO_C" >&6
10395 cat >conftest.$ac_ext <<_ACEOF
10398 cat confdefs.h >>conftest.$ac_ext
10399 cat >>conftest.$ac_ext <<_ACEOF
10400 /* end confdefs.h. */
10401 #include <stdarg.h>
10405 va_list ap1, ap2; __va_copy(ap1, ap2);
10410 rm -f conftest.$ac_objext conftest$ac_exeext
10411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10412 (eval $ac_link) 2>conftest.er1
10414 grep -v '^ *+' conftest.er1 >conftest.err
10416 cat conftest.err >&5
10417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418 (exit $ac_status); } &&
10419 { ac_try='test -z "$ac_c_werror_flag"
10420 || test ! -s conftest.err'
10421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10422 (eval $ac_try) 2>&5
10424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425 (exit $ac_status); }; } &&
10426 { ac_try='test -s conftest$ac_exeext'
10427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10428 (eval $ac_try) 2>&5
10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431 (exit $ac_status); }; }; then
10432 unet_cv_c___va_copy="yes"
10434 echo "$as_me: failed program was:" >&5
10435 sed 's/^/| /' conftest.$ac_ext >&5
10437 unet_cv_c___va_copy="no"
10440 rm -f conftest.err conftest.$ac_objext \
10441 conftest$ac_exeext conftest.$ac_ext
10443 echo "$as_me:$LINENO: result: $unet_cv_c___va_copy" >&5
10444 echo "${ECHO_T}$unet_cv_c___va_copy" >&6
10445 if test "$unet_cv_c___va_copy" = "yes" ; then
10447 cat >>confdefs.h <<\_ACEOF
10448 #define HAVE___VA_COPY 1
10453 echo "$as_me:$LINENO: checking what name to give the symlink" >&5
10454 echo $ECHO_N "checking what name to give the symlink... $ECHO_C" >&6
10456 # Check whether --with-symlink or --without-symlink was given.
10457 if test "${with_symlink+set}" = set; then
10458 withval="$with_symlink"
10459 unet_cv_with_symlink=$with_symlink
10461 if test "${unet_cv_with_symlink+set}" = set; then
10462 echo $ECHO_N "(cached) $ECHO_C" >&6
10464 unet_cv_with_symlink="ircd"
10469 if test x"$unet_cv_with_symlink" = xyes; then
10470 unet_cv_with_symlink="ircd"
10473 echo "$as_me:$LINENO: result: $unet_cv_with_symlink" >&5
10474 echo "${ECHO_T}$unet_cv_with_symlink" >&6
10476 if test x"$unet_cv_with_symlink" = xno; then
10477 INSTALL_RULE=install-no-symlink
10480 INSTALL_RULE=install-with-symlink
10481 SYMLINK=$unet_cv_with_symlink
10486 echo "$as_me:$LINENO: checking what permissions to set on the installed binary" >&5
10487 echo $ECHO_N "checking what permissions to set on the installed binary... $ECHO_C" >&6
10489 # Check whether --with-mode or --without-mode was given.
10490 if test "${with_mode+set}" = set; then
10491 withval="$with_mode"
10492 unet_cv_with_mode=$with_mode
10494 if test "${unet_cv_with_mode+set}" = set; then
10495 echo $ECHO_N "(cached) $ECHO_C" >&6
10497 unet_cv_with_mode=711
10502 if test x"$unet_cv_with_mode" = xyes -o x"$unet_cv_with_mode" = xno; then
10503 unet_cv_with_mode=711
10506 echo "$as_me:$LINENO: result: $unet_cv_with_mode" >&5
10507 echo "${ECHO_T}$unet_cv_with_mode" >&6
10509 IRCDMODE=$unet_cv_with_mode
10512 unet_uid=`id | sed -e 's/.*uid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
10513 echo "$as_me:$LINENO: checking which user should own the installed binary" >&5
10514 echo $ECHO_N "checking which user should own the installed binary... $ECHO_C" >&6
10516 # Check whether --with-owner or --without-owner was given.
10517 if test "${with_owner+set}" = set; then
10518 withval="$with_owner"
10519 unet_cv_with_owner=$with_owner
10521 if test "${unet_cv_with_owner+set}" = set; then
10522 echo $ECHO_N "(cached) $ECHO_C" >&6
10524 unet_cv_with_owner=$unet_uid
10529 if test x"$unet_cv_with_owner" = xyes -o x"$unet_cv_with_owner" = xno; then
10530 unet_cv_with_owner=$unet_uid
10533 echo "$as_me:$LINENO: result: $unet_cv_with_owner" >&5
10534 echo "${ECHO_T}$unet_cv_with_owner" >&6
10536 IRCDOWN=$unet_cv_with_owner
10539 unet_gid=`id | sed -e 's/.*gid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
10540 echo "$as_me:$LINENO: checking which group should own the installed binary" >&5
10541 echo $ECHO_N "checking which group should own the installed binary... $ECHO_C" >&6
10543 # Check whether --with-group or --without-group was given.
10544 if test "${with_group+set}" = set; then
10545 withval="$with_group"
10546 unet_cv_with_group=$with_group
10548 if test "${unet_cv_with_group+set}" = set; then
10549 echo $ECHO_N "(cached) $ECHO_C" >&6
10551 unet_cv_with_group=$unet_gid
10556 if test x"$unet_cv_with_group" = xyes -o x"$unet_cv_with_group" = xno; then
10557 unet_cv_with_group=$unet_gid
10560 echo "$as_me:$LINENO: result: $unet_cv_with_group" >&5
10561 echo "${ECHO_T}$unet_cv_with_group" >&6
10563 IRCDGRP=$unet_cv_with_group
10567 if test -f /etc/resolv.conf; then
10568 unet_domain=`awk '/^domain/ { print $2; exit }' /etc/resolv.conf`
10569 if test x"$unet_domain" = x; then
10570 unet_domain=`awk '/^search/ { print $2; exit }' /etc/resolv.conf`
10573 echo "$as_me:$LINENO: checking for site domain name" >&5
10574 echo $ECHO_N "checking for site domain name... $ECHO_C" >&6
10576 # Check whether --with-domain or --without-domain was given.
10577 if test "${with_domain+set}" = set; then
10578 withval="$with_domain"
10579 unet_cv_with_domain=$with_domain
10581 if test "${unet_cv_with_domain+set}" = set; then
10582 echo $ECHO_N "(cached) $ECHO_C" >&6
10584 unet_cv_with_domain=$unet_domain
10589 if test x"$unet_cv_with_domain" = xyes -o x"$unet_cv_with_domain" = xno; then
10590 unet_cv_with_domain=$unet_domain
10592 if test x"$unet_cv_with_domain" = xno; then
10593 { { echo "$as_me:$LINENO: error: Unable to determine server DNS domain; use --with-domain to set it" >&5
10594 echo "$as_me: error: Unable to determine server DNS domain; use --with-domain to set it" >&2;}
10595 { (exit 1); exit 1; }; }
10598 echo "$as_me:$LINENO: result: $unet_cv_with_domain" >&5
10599 echo "${ECHO_T}$unet_cv_with_domain" >&6
10602 cat >>confdefs.h <<_ACEOF
10603 #define DOMAINNAME "*$unet_cv_with_domain"
10607 echo "$as_me:$LINENO: checking if chroot operation is desired" >&5
10608 echo $ECHO_N "checking if chroot operation is desired... $ECHO_C" >&6
10610 # Check whether --with-chroot or --without-chroot was given.
10611 if test "${with_chroot+set}" = set; then
10612 withval="$with_chroot"
10613 unet_cv_with_chroot=$with_chroot
10615 if test "${unet_cv_with_chroot+set}" = set; then
10616 echo $ECHO_N "(cached) $ECHO_C" >&6
10618 unet_cv_with_chroot=no
10623 if test x"$unet_cv_with_chroot" = xyes; then
10624 { { echo "$as_me:$LINENO: error: --with-chroot given with no directory. See doc/readme.chroot." >&5
10625 echo "$as_me: error: --with-chroot given with no directory. See doc/readme.chroot." >&2;}
10626 { (exit 1); exit 1; }; }
10629 # Ensure there are no trailing /'s to mess us up
10630 unet_cv_with_chroot=`echo "$unet_cv_with_chroot" | sed 's%/*$%%'`
10632 echo "$as_me:$LINENO: result: $unet_cv_with_chroot" >&5
10633 echo "${ECHO_T}$unet_cv_with_chroot" >&6
10635 # Deal with the annoying value "NONE" here
10636 unet_save_prefix=$prefix
10637 if test x"$prefix" = xNONE; then
10638 prefix=$ac_default_prefix
10643 unet_save_exec_prefix=$exec_prefix
10644 if test x"$exec_prefix" = xNONE; then
10645 exec_prefix=$prefix
10647 exec_prefix=$exec_prefix
10650 # Obtain the actual interesting directories
10651 unet_bindir=`eval echo "$bindir"`
10652 unet_libdir=`eval echo "$libdir"`
10654 # Restore the original settings of $prefix and $exec_prefix
10655 prefix=$unet_save_prefix
10656 exec_prefix=$unet_save_exec_prefix
10658 echo "$as_me:$LINENO: checking where the binary will be for /restart" >&5
10659 echo $ECHO_N "checking where the binary will be for /restart... $ECHO_C" >&6
10660 if test x"$unet_cv_with_symlink" = xno; then
10661 unet_spath="$unet_bindir/ircd"
10663 unet_spath="$unet_bindir/$unet_cv_with_symlink"
10665 echo "$as_me:$LINENO: result: $unet_spath" >&5
10666 echo "${ECHO_T}$unet_spath" >&6
10668 if test x"$unet_cv_with_chroot" != xno; then
10669 if echo "$unet_spath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10670 unet_spath=`echo "$unet_spath" | sed "s%^$unet_cv_with_chroot%%"`
10672 { echo "$as_me:$LINENO: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&5
10673 echo "$as_me: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&2;}
10678 cat >>confdefs.h <<_ACEOF
10679 #define SPATH "$unet_spath"
10683 echo "$as_me:$LINENO: checking what the data directory should be" >&5
10684 echo $ECHO_N "checking what the data directory should be... $ECHO_C" >&6
10686 # Check whether --with-dpath or --without-dpath was given.
10687 if test "${with_dpath+set}" = set; then
10688 withval="$with_dpath"
10689 unet_cv_with_dpath=$with_dpath
10691 if test "${unet_cv_with_dpath+set}" = set; then
10692 echo $ECHO_N "(cached) $ECHO_C" >&6
10694 unet_cv_with_dpath=$unet_libdir
10699 if test x"$unet_cv_with_dpath" = xyes -o x"$unet_cv_with_dpath" = xno; then
10700 unet_cv_with_dpath=$unet_libdir
10703 # Ensure there are no trailing /'s to mess us up
10704 unet_cv_with_dpath=`echo "$unet_cv_with_dpath" | sed 's%/*$%%'`
10706 echo "$as_me:$LINENO: result: $unet_cv_with_dpath" >&5
10707 echo "${ECHO_T}$unet_cv_with_dpath" >&6
10709 if test x"$unet_cv_with_chroot" != xno; then
10710 if echo "$unet_cv_with_dpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10711 unet_dpath=`echo "$unet_cv_with_dpath" | sed "s%^$unet_cv_with_chroot%%"`
10713 { { echo "$as_me:$LINENO: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&5
10714 echo "$as_me: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&2;}
10715 { (exit 1); exit 1; }; }
10718 unet_dpath=$unet_cv_with_dpath
10722 cat >>confdefs.h <<_ACEOF
10723 #define DPATH "$unet_dpath"
10727 DPATH=$unet_cv_with_dpath
10730 echo "$as_me:$LINENO: checking where the default configuration file resides" >&5
10731 echo $ECHO_N "checking where the default configuration file resides... $ECHO_C" >&6
10733 # Check whether --with-cpath or --without-cpath was given.
10734 if test "${with_cpath+set}" = set; then
10735 withval="$with_cpath"
10736 unet_cv_with_cpath=$with_cpath
10738 if test "${unet_cv_with_cpath+set}" = set; then
10739 echo $ECHO_N "(cached) $ECHO_C" >&6
10741 unet_cv_with_cpath="ircd.conf"
10746 if test x"$unet_cv_with_cpath" = xyes -o x"$unet_cv_with_cpath" = xno; then
10747 unet_cv_with_cpath="ircd.conf"
10750 echo "$as_me:$LINENO: result: $unet_cv_with_cpath" >&5
10751 echo "${ECHO_T}$unet_cv_with_cpath" >&6
10753 if echo "$unet_cv_with_cpath" | grep '^/' > /dev/null 2>&1; then
10754 # Absolute path; check against chroot stuff
10755 if test x"$unet_cv_with_chroot" != xno; then
10756 if echo "$unet_cv_with_cpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10757 unet_cpath=`echo "$unet_cv_with_cpath" | sed "s%^$unet_cv_with_chroot%%"`
10759 { { echo "$as_me:$LINENO: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&5
10760 echo "$as_me: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&2;}
10761 { (exit 1); exit 1; }; }
10764 unet_cpath=$unet_cv_with_cpath
10767 unet_cpath=$unet_cv_with_cpath
10771 cat >>confdefs.h <<_ACEOF
10772 #define CPATH "$unet_cpath"
10776 echo "$as_me:$LINENO: checking where to put the debugging log if debugging enabled" >&5
10777 echo $ECHO_N "checking where to put the debugging log if debugging enabled... $ECHO_C" >&6
10779 # Check whether --with-lpath or --without-lpath was given.
10780 if test "${with_lpath+set}" = set; then
10781 withval="$with_lpath"
10782 unet_cv_with_lpath=$with_lpath
10784 if test "${unet_cv_with_lpath+set}" = set; then
10785 echo $ECHO_N "(cached) $ECHO_C" >&6
10787 unet_cv_with_lpath="ircd.log"
10792 if test x"$unet_cv_with_lpath" = xyes -o x"$unet_cv_with_lpath" = xno; then
10793 unet_cv_with_lpath="ircd.log"
10796 echo "$as_me:$LINENO: result: $unet_cv_with_lpath" >&5
10797 echo "${ECHO_T}$unet_cv_with_lpath" >&6
10799 if echo "$unet_cv_with_lpath" | grep '^/' > /dev/null 2>&1; then
10800 # Absolute path; check against chroot stuff
10801 if test x"$unet_cv_with_chroot" != xno; then
10802 if echo "$unet_cv_with_lpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10803 unet_lpath=`echo "$unet_cv_with_lpath" | sed "s%^$unet_cv_with_chroot%%"`
10805 { 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
10806 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;}
10807 unet_cv_with_lpath="ircd.log"
10808 unet_lpath="ircd.log"
10811 unet_lpath=$unet_cv_with_lpath
10814 unet_lpath=$unet_cv_with_lpath
10818 cat >>confdefs.h <<_ACEOF
10819 #define LPATH "$unet_lpath"
10823 unet_maxcon=`ulimit -Hn`
10824 if test x"$unet_maxcon" = xunlimited; then
10825 unet_maxcon=`ulimit -Sn`
10827 unet_maxcon=`expr $unet_maxcon - 4`
10828 echo "$as_me:$LINENO: checking max connections" >&5
10829 echo $ECHO_N "checking max connections... $ECHO_C" >&6
10831 # Check whether --with-maxcon or --without-maxcon was given.
10832 if test "${with_maxcon+set}" = set; then
10833 withval="$with_maxcon"
10834 unet_cv_with_maxcon=$with_maxcon
10836 if test "${unet_cv_with_maxcon+set}" = set; then
10837 echo $ECHO_N "(cached) $ECHO_C" >&6
10839 unet_cv_with_maxcon=$unet_maxcon
10844 if test x"$unet_cv_with_maxcon" = xyes -o x"$unet_cv_with_maxcon" = xno; then
10845 if test "$unet_maxcon" -lt 32; then
10846 { { echo "$as_me:$LINENO: error: Maximum connections (number of open files minus 4) must be at least 32." >&5
10847 echo "$as_me: error: Maximum connections (number of open files minus 4) must be at least 32." >&2;}
10848 { (exit 1); exit 1; }; }
10850 unet_cv_with_maxcon=$unet_maxcon
10851 elif test "$unet_cv_with_maxcon" -lt 32; then
10852 { { echo "$as_me:$LINENO: error: Maximum connections (--with-maxcon) must be at least 32." >&5
10853 echo "$as_me: error: Maximum connections (--with-maxcon) must be at least 32." >&2;}
10854 { (exit 1); exit 1; }; }
10857 echo "$as_me:$LINENO: result: $unet_cv_with_maxcon" >&5
10858 echo "${ECHO_T}$unet_cv_with_maxcon" >&6
10861 cat >>confdefs.h <<_ACEOF
10862 #define MAXCONNECTIONS $unet_cv_with_maxcon
10866 ac_config_files="$ac_config_files Makefile ircd/Makefile ircd/test/Makefile doc/Makefile"
10867 ac_config_commands="$ac_config_commands default"
10868 cat >confcache <<\_ACEOF
10869 # This file is a shell script that caches the results of configure
10870 # tests run on this system so they can be shared between configure
10871 # scripts and configure runs, see configure's option --config-cache.
10872 # It is not useful on other systems. If it contains results you don't
10873 # want to keep, you may remove or edit it.
10875 # config.status only pays attention to the cache file if you give it
10876 # the --recheck option to rerun configure.
10878 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10879 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10880 # following values.
10884 # The following way of writing the cache mishandles newlines in values,
10885 # but we know of no workaround that is simple, portable, and efficient.
10886 # So, don't put newlines in cache variables' values.
10887 # Ultrix sh set writes to stderr and can't be redirected directly,
10888 # and sets the high bit in the cache file unless we assign to the vars.
10891 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10893 # `set' does not quote correctly, so add quotes (double-quote
10894 # substitution turns \\\\ into \\, and sed turns \\ into \).
10897 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10900 # `set' quotes correctly as required by POSIX, so do not add quotes.
10902 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10909 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10911 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10913 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10914 if test -w $cache_file; then
10915 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10916 cat confcache >$cache_file
10918 echo "not updating unwritable cache $cache_file"
10923 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10924 # Let make expand exec_prefix.
10925 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10927 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10928 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10929 # trailing colons and then remove the whole line if VPATH becomes empty
10930 # (actually we leave an empty line to preserve line numbers).
10931 if test "x$srcdir" = x.; then
10932 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10933 s/:*\$(srcdir):*/:/;
10934 s/:*\${srcdir}:*/:/;
10936 s/^\([^=]*=[ ]*\):*/\1/;
10942 DEFS=-DHAVE_CONFIG_H
10946 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10947 # 1. Remove the extension, and $U if already installed.
10948 ac_i=`echo "$ac_i" |
10949 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10951 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10952 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10954 LIBOBJS=$ac_libobjs
10956 LTLIBOBJS=$ac_ltlibobjs
10960 : ${CONFIG_STATUS=./config.status}
10961 ac_clean_files_save=$ac_clean_files
10962 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10963 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10964 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10965 cat >$CONFIG_STATUS <<_ACEOF
10967 # Generated by $as_me.
10968 # Run this file to recreate the current configuration.
10969 # Compiler output produced by configure, useful for debugging
10970 # configure, is in config.log if it exists.
10973 ac_cs_recheck=false
10975 SHELL=\${CONFIG_SHELL-$SHELL}
10978 cat >>$CONFIG_STATUS <<\_ACEOF
10979 ## --------------------- ##
10980 ## M4sh Initialization. ##
10981 ## --------------------- ##
10983 # Be Bourne compatible
10984 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10987 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10988 # is contrary to our usage. Disable this feature.
10989 alias -g '${1+"$@"}'='"$@"'
10990 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10993 DUALCASE=1; export DUALCASE # for MKS sh
10995 # Support unset when possible.
10996 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11003 # Work around bugs in pre-3.0 UWIN ksh.
11004 $as_unset ENV MAIL MAILPATH
11011 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11012 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11013 LC_TELEPHONE LC_TIME
11015 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11016 eval $as_var=C; export $as_var
11022 # Required to use basename.
11023 if expr a : '\(a\)' >/dev/null 2>&1; then
11029 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11030 as_basename=basename
11036 # Name of the executable.
11037 as_me=`$as_basename "$0" ||
11038 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11039 X"$0" : 'X\(//\)$' \| \
11040 X"$0" : 'X\(/\)$' \| \
11041 . : '\(.\)' 2>/dev/null ||
11043 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11044 /^X\/\(\/\/\)$/{ s//\1/; q; }
11045 /^X\/\(\/\).*/{ s//\1/; q; }
11049 # PATH needs CR, and LINENO needs CR and PATH.
11050 # Avoid depending upon Character Ranges.
11051 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11052 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11053 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11054 as_cr_digits='0123456789'
11055 as_cr_alnum=$as_cr_Letters$as_cr_digits
11057 # The user is always right.
11058 if test "${PATH_SEPARATOR+set}" != set; then
11059 echo "#! /bin/sh" >conf$$.sh
11060 echo "exit 0" >>conf$$.sh
11062 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11071 as_lineno_1=$LINENO
11072 as_lineno_2=$LINENO
11073 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11074 test "x$as_lineno_1" != "x$as_lineno_2" &&
11075 test "x$as_lineno_3" = "x$as_lineno_2" || {
11076 # Find who we are. Look in the path if we contain no path at all
11079 *[\\/]* ) as_myself=$0 ;;
11080 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11081 for as_dir in $PATH
11084 test -z "$as_dir" && as_dir=.
11085 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11090 # We did not find ourselves, most probably we were run as `sh COMMAND'
11091 # in which case we are not to be found in the path.
11092 if test "x$as_myself" = x; then
11095 if test ! -f "$as_myself"; then
11096 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11097 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11098 { (exit 1); exit 1; }; }
11100 case $CONFIG_SHELL in
11102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11103 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11106 test -z "$as_dir" && as_dir=.
11107 for as_base in sh bash ksh sh5; do
11110 if ("$as_dir/$as_base" -c '
11111 as_lineno_1=$LINENO
11112 as_lineno_2=$LINENO
11113 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11114 test "x$as_lineno_1" != "x$as_lineno_2" &&
11115 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11116 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11117 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11118 CONFIG_SHELL=$as_dir/$as_base
11119 export CONFIG_SHELL
11120 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11128 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11129 # uniformly replaced by the line number. The first 'sed' inserts a
11130 # line-number line before each line; the second 'sed' does the real
11131 # work. The second script uses 'N' to pair each line-number line
11132 # with the numbered line, and appends trailing '-' during
11133 # substitution so that $LINENO is not a special case at line end.
11134 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11135 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11136 sed '=' <$as_myself |
11141 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11144 s,^['$as_cr_digits']*\n,,
11145 ' >$as_me.lineno &&
11146 chmod +x $as_me.lineno ||
11147 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11148 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11149 { (exit 1); exit 1; }; }
11151 # Don't try to exec as it changes $[0], causing all sort of problems
11152 # (the dirname of $[0] is not the place where we might find the
11153 # original and so on. Autoconf is especially sensible to this).
11155 # Exit status is that of the last command.
11160 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11161 *c*,-n*) ECHO_N= ECHO_C='
11163 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11164 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11167 if expr a : '\(a\)' >/dev/null 2>&1; then
11173 rm -f conf$$ conf$$.exe conf$$.file
11175 if ln -s conf$$.file conf$$ 2>/dev/null; then
11176 # We could just check for DJGPP; but this test a) works b) is more generic
11177 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11178 if test -f conf$$.exe; then
11179 # Don't use ln at all; we don't have any links
11184 elif ln conf$$.file conf$$ 2>/dev/null; then
11189 rm -f conf$$ conf$$.exe conf$$.file
11191 if mkdir -p . 2>/dev/null; then
11194 test -d ./-p && rmdir ./-p
11198 as_executable_p="test -f"
11200 # Sed expression to map a string onto a valid CPP name.
11201 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11203 # Sed expression to map a string onto a valid variable name.
11204 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11208 # We need space, tab and new line, in precisely that order.
11218 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11219 # report actual input values of CONFIG_FILES etc. instead of their
11220 # values after options handling. Logging --version etc. is OK.
11224 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11225 ## Running $as_me. ##
11230 This file was extended by $as_me, which was
11231 generated by GNU Autoconf 2.59. Invocation command line was
11233 CONFIG_FILES = $CONFIG_FILES
11234 CONFIG_HEADERS = $CONFIG_HEADERS
11235 CONFIG_LINKS = $CONFIG_LINKS
11236 CONFIG_COMMANDS = $CONFIG_COMMANDS
11240 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11244 # Files that config.status was made for.
11245 if test -n "$ac_config_files"; then
11246 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11249 if test -n "$ac_config_headers"; then
11250 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11253 if test -n "$ac_config_links"; then
11254 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11257 if test -n "$ac_config_commands"; then
11258 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11261 cat >>$CONFIG_STATUS <<\_ACEOF
11264 \`$as_me' instantiates files from templates according to the
11265 current configuration.
11267 Usage: $0 [OPTIONS] [FILE]...
11269 -h, --help print this help, then exit
11270 -V, --version print version number, then exit
11271 -q, --quiet do not print progress messages
11272 -d, --debug don't remove temporary files
11273 --recheck update $as_me by reconfiguring in the same conditions
11274 --file=FILE[:TEMPLATE]
11275 instantiate the configuration file FILE
11276 --header=FILE[:TEMPLATE]
11277 instantiate the configuration header FILE
11279 Configuration files:
11282 Configuration headers:
11285 Configuration commands:
11288 Report bugs to <bug-autoconf@gnu.org>."
11291 cat >>$CONFIG_STATUS <<_ACEOF
11294 configured by $0, generated by GNU Autoconf 2.59,
11295 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11297 Copyright (C) 2003 Free Software Foundation, Inc.
11298 This config.status script is free software; the Free Software Foundation
11299 gives unlimited permission to copy, distribute and modify it."
11304 cat >>$CONFIG_STATUS <<\_ACEOF
11305 # If no file are specified by the user, then we need to provide default
11306 # value. By we need to know if files were specified by the user.
11312 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11313 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11321 *) # This is not an option, so the user has probably given explicit
11324 ac_need_defaults=false;;
11328 # Handling of the options.
11330 cat >>$CONFIG_STATUS <<\_ACEOF
11331 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11333 --version | --vers* | -V )
11334 echo "$ac_cs_version"; exit 0 ;;
11336 # Conflict between --help and --header
11337 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11338 Try \`$0 --help' for more information." >&5
11339 echo "$as_me: error: ambiguous option: $1
11340 Try \`$0 --help' for more information." >&2;}
11341 { (exit 1); exit 1; }; };;
11342 --help | --hel | -h )
11343 echo "$ac_cs_usage"; exit 0 ;;
11344 --debug | --d* | -d )
11346 --file | --fil | --fi | --f )
11348 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11349 ac_need_defaults=false;;
11350 --header | --heade | --head | --hea )
11352 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11353 ac_need_defaults=false;;
11354 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11355 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11358 # This is an error.
11359 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11360 Try \`$0 --help' for more information." >&5
11361 echo "$as_me: error: unrecognized option: $1
11362 Try \`$0 --help' for more information." >&2;}
11363 { (exit 1); exit 1; }; } ;;
11365 *) ac_config_targets="$ac_config_targets $1" ;;
11371 ac_configure_extra_args=
11373 if $ac_cs_silent; then
11375 ac_configure_extra_args="$ac_configure_extra_args --silent"
11379 cat >>$CONFIG_STATUS <<_ACEOF
11380 if \$ac_cs_recheck; then
11381 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11382 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11391 cat >>$CONFIG_STATUS <<\_ACEOF
11392 for ac_config_target in $ac_config_targets
11394 case "$ac_config_target" in
11395 # Handling of arguments.
11396 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11397 "ircd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ircd/Makefile" ;;
11398 "ircd/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES ircd/test/Makefile" ;;
11399 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11400 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
11401 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11402 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11403 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11404 { (exit 1); exit 1; }; };;
11408 # If the user did not use the arguments to specify the items to instantiate,
11409 # then the envvar interface is used. Set only those that are not.
11410 # We use the long form for the default assignment because of an extremely
11411 # bizarre bug on SunOS 4.1.3.
11412 if $ac_need_defaults; then
11413 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11414 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11415 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11418 # Have a temporary directory for convenience. Make it in the build tree
11419 # simply because there is no reason to put it here, and in addition,
11420 # creating and moving files from /tmp can sometimes cause problems.
11421 # Create a temporary directory, and hook for its removal unless debugging.
11424 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11425 trap '{ (exit 1); exit 1; }' 1 2 13 15
11428 # Create a (secure) tmp directory for tmp files.
11431 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11432 test -n "$tmp" && test -d "$tmp"
11435 tmp=./confstat$$-$RANDOM
11436 (umask 077 && mkdir $tmp)
11439 echo "$me: cannot create a temporary directory in ." >&2
11440 { (exit 1); exit 1; }
11445 cat >>$CONFIG_STATUS <<_ACEOF
11448 # CONFIG_FILES section.
11451 # No need to generate the scripts if there are no CONFIG_FILES.
11452 # This happens for instance when ./config.status config.h
11453 if test -n "\$CONFIG_FILES"; then
11454 # Protect against being on the right side of a sed subst in config.status.
11455 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11456 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11457 s,@SHELL@,$SHELL,;t t
11458 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11459 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11460 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11461 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11462 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11463 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11464 s,@exec_prefix@,$exec_prefix,;t t
11465 s,@prefix@,$prefix,;t t
11466 s,@program_transform_name@,$program_transform_name,;t t
11467 s,@bindir@,$bindir,;t t
11468 s,@sbindir@,$sbindir,;t t
11469 s,@libexecdir@,$libexecdir,;t t
11470 s,@datadir@,$datadir,;t t
11471 s,@sysconfdir@,$sysconfdir,;t t
11472 s,@sharedstatedir@,$sharedstatedir,;t t
11473 s,@localstatedir@,$localstatedir,;t t
11474 s,@libdir@,$libdir,;t t
11475 s,@includedir@,$includedir,;t t
11476 s,@oldincludedir@,$oldincludedir,;t t
11477 s,@infodir@,$infodir,;t t
11478 s,@mandir@,$mandir,;t t
11479 s,@build_alias@,$build_alias,;t t
11480 s,@host_alias@,$host_alias,;t t
11481 s,@target_alias@,$target_alias,;t t
11482 s,@DEFS@,$DEFS,;t t
11483 s,@ECHO_C@,$ECHO_C,;t t
11484 s,@ECHO_N@,$ECHO_N,;t t
11485 s,@ECHO_T@,$ECHO_T,;t t
11486 s,@LIBS@,$LIBS,;t t
11487 s,@build@,$build,;t t
11488 s,@build_cpu@,$build_cpu,;t t
11489 s,@build_vendor@,$build_vendor,;t t
11490 s,@build_os@,$build_os,;t t
11491 s,@host@,$host,;t t
11492 s,@host_cpu@,$host_cpu,;t t
11493 s,@host_vendor@,$host_vendor,;t t
11494 s,@host_os@,$host_os,;t t
11496 s,@CFLAGS@,$CFLAGS,;t t
11497 s,@LDFLAGS@,$LDFLAGS,;t t
11498 s,@CPPFLAGS@,$CPPFLAGS,;t t
11499 s,@ac_ct_CC@,$ac_ct_CC,;t t
11500 s,@EXEEXT@,$EXEEXT,;t t
11501 s,@OBJEXT@,$OBJEXT,;t t
11503 s,@EGREP@,$EGREP,;t t
11505 s,@SET_MAKE@,$SET_MAKE,;t t
11506 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11507 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11508 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11509 s,@LN_S@,$LN_S,;t t
11510 s,@RMPROG@,$RMPROG,;t t
11511 s,@SHPROG@,$SHPROG,;t t
11513 s,@LEXLIB@,$LEXLIB,;t t
11514 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
11515 s,@YACC@,$YACC,;t t
11516 s,@ENGINE_C@,$ENGINE_C,;t t
11517 s,@INSTALL_RULE@,$INSTALL_RULE,;t t
11518 s,@SYMLINK@,$SYMLINK,;t t
11519 s,@IRCDMODE@,$IRCDMODE,;t t
11520 s,@IRCDOWN@,$IRCDOWN,;t t
11521 s,@IRCDGRP@,$IRCDGRP,;t t
11522 s,@DPATH@,$DPATH,;t t
11523 s,@LIBOBJS@,$LIBOBJS,;t t
11524 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11529 cat >>$CONFIG_STATUS <<\_ACEOF
11530 # Split the substitutions into bite-sized pieces for seds with
11531 # small command number limits, like on Digital OSF/1 and HP-UX.
11532 ac_max_sed_lines=48
11533 ac_sed_frag=1 # Number of current file.
11534 ac_beg=1 # First line for current file.
11535 ac_end=$ac_max_sed_lines # Line after last line for current file.
11538 while $ac_more_lines; do
11539 if test $ac_beg -gt 1; then
11540 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11542 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11544 if test ! -s $tmp/subs.frag; then
11545 ac_more_lines=false
11547 # The purpose of the label and of the branching condition is to
11548 # speed up the sed processing (if there are no `@' at all, there
11549 # is no need to browse any of the substitutions).
11550 # These are the two extra sed commands mentioned above.
11552 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11553 if test -z "$ac_sed_cmds"; then
11554 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11556 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11558 ac_sed_frag=`expr $ac_sed_frag + 1`
11560 ac_end=`expr $ac_end + $ac_max_sed_lines`
11563 if test -z "$ac_sed_cmds"; then
11566 fi # test -n "$CONFIG_FILES"
11569 cat >>$CONFIG_STATUS <<\_ACEOF
11570 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11571 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11573 - | *:- | *:-:* ) # input from stdin
11575 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11576 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11577 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11578 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11579 * ) ac_file_in=$ac_file.in ;;
11582 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11583 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11584 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11585 X"$ac_file" : 'X\(//\)[^/]' \| \
11586 X"$ac_file" : 'X\(//\)$' \| \
11587 X"$ac_file" : 'X\(/\)' \| \
11588 . : '\(.\)' 2>/dev/null ||
11590 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11591 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11592 /^X\(\/\/\)$/{ s//\1/; q; }
11593 /^X\(\/\).*/{ s//\1/; q; }
11595 { if $as_mkdir_p; then
11600 while test ! -d "$as_dir"; do
11601 as_dirs="$as_dir $as_dirs"
11602 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11603 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11604 X"$as_dir" : 'X\(//\)[^/]' \| \
11605 X"$as_dir" : 'X\(//\)$' \| \
11606 X"$as_dir" : 'X\(/\)' \| \
11607 . : '\(.\)' 2>/dev/null ||
11609 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11610 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11611 /^X\(\/\/\)$/{ s//\1/; q; }
11612 /^X\(\/\).*/{ s//\1/; q; }
11615 test ! -n "$as_dirs" || mkdir $as_dirs
11616 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11617 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11618 { (exit 1); exit 1; }; }; }
11622 if test "$ac_dir" != .; then
11623 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11624 # A "../" for each directory in $ac_dir_suffix.
11625 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11627 ac_dir_suffix= ac_top_builddir=
11631 .) # No --srcdir option. We are building in place.
11633 if test -z "$ac_top_builddir"; then
11636 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11638 [\\/]* | ?:[\\/]* ) # Absolute path.
11639 ac_srcdir=$srcdir$ac_dir_suffix;
11640 ac_top_srcdir=$srcdir ;;
11641 *) # Relative path.
11642 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11643 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11646 # Do not use `cd foo && pwd` to compute absolute paths, because
11647 # the directories may not exist.
11649 .) ac_abs_builddir="$ac_dir";;
11652 .) ac_abs_builddir=`pwd`;;
11653 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11654 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11657 case $ac_abs_builddir in
11658 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11660 case ${ac_top_builddir}. in
11661 .) ac_abs_top_builddir=$ac_abs_builddir;;
11662 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11663 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11666 case $ac_abs_builddir in
11667 .) ac_abs_srcdir=$ac_srcdir;;
11670 .) ac_abs_srcdir=$ac_abs_builddir;;
11671 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11672 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11675 case $ac_abs_builddir in
11676 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11678 case $ac_top_srcdir in
11679 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11680 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11681 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11687 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11688 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11691 if test x"$ac_file" != x-; then
11692 { echo "$as_me:$LINENO: creating $ac_file" >&5
11693 echo "$as_me: creating $ac_file" >&6;}
11696 # Let's still pretend it is `configure' which instantiates (i.e., don't
11697 # use $as_me), people would be surprised to read:
11698 # /* config.h. Generated by config.status. */
11699 if test x"$ac_file" = x-; then
11702 configure_input="$ac_file. "
11704 configure_input=$configure_input"Generated from `echo $ac_file_in |
11705 sed 's,.*/,,'` by configure."
11707 # First look for the input files in the build tree, otherwise in the
11709 ac_file_inputs=`IFS=:
11710 for f in $ac_file_in; do
11712 -) echo $tmp/stdin ;;
11714 # Absolute (can't be DOS-style, as IFS=:)
11715 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11716 echo "$as_me: error: cannot find input file: $f" >&2;}
11717 { (exit 1); exit 1; }; }
11720 if test -f "$f"; then
11723 elif test -f "$srcdir/$f"; then
11728 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11729 echo "$as_me: error: cannot find input file: $f" >&2;}
11730 { (exit 1); exit 1; }; }
11733 done` || { (exit 1); exit 1; }
11735 cat >>$CONFIG_STATUS <<_ACEOF
11739 cat >>$CONFIG_STATUS <<\_ACEOF
11741 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11742 s,@configure_input@,$configure_input,;t t
11743 s,@srcdir@,$ac_srcdir,;t t
11744 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11745 s,@top_srcdir@,$ac_top_srcdir,;t t
11746 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11747 s,@builddir@,$ac_builddir,;t t
11748 s,@abs_builddir@,$ac_abs_builddir,;t t
11749 s,@top_builddir@,$ac_top_builddir,;t t
11750 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11751 s,@INSTALL@,$ac_INSTALL,;t t
11752 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11754 if test x"$ac_file" != x-; then
11755 mv $tmp/out $ac_file
11763 cat >>$CONFIG_STATUS <<\_ACEOF
11766 # CONFIG_HEADER section.
11769 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11770 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11772 # ac_d sets the value in "#define NAME VALUE" lines.
11773 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11774 ac_dB='[ ].*$,\1#\2'
11777 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11778 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11779 ac_uB='$,\1#\2define\3'
11783 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11784 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11786 - | *:- | *:-:* ) # input from stdin
11788 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11789 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11790 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11791 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11792 * ) ac_file_in=$ac_file.in ;;
11795 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11796 echo "$as_me: creating $ac_file" >&6;}
11798 # First look for the input files in the build tree, otherwise in the
11800 ac_file_inputs=`IFS=:
11801 for f in $ac_file_in; do
11803 -) echo $tmp/stdin ;;
11805 # Absolute (can't be DOS-style, as IFS=:)
11806 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11807 echo "$as_me: error: cannot find input file: $f" >&2;}
11808 { (exit 1); exit 1; }; }
11809 # Do quote $f, to prevent DOS paths from being IFS'd.
11812 if test -f "$f"; then
11815 elif test -f "$srcdir/$f"; then
11820 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11821 echo "$as_me: error: cannot find input file: $f" >&2;}
11822 { (exit 1); exit 1; }; }
11825 done` || { (exit 1); exit 1; }
11826 # Remove the trailing spaces.
11827 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11831 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11832 # `conftest.undefs', that substitutes the proper values into
11833 # config.h.in to produce config.h. The first handles `#define'
11834 # templates, and the second `#undef' templates.
11835 # And first: Protect against being on the right side of a sed subst in
11836 # config.status. Protect against being in an unquoted here document
11837 # in config.status.
11838 rm -f conftest.defines conftest.undefs
11839 # Using a here document instead of a string reduces the quoting nightmare.
11840 # Putting comments in sed scripts is not portable.
11842 # `end' is used to avoid that the second main sed command (meant for
11843 # 0-ary CPP macros) applies to n-ary macro definitions.
11844 # See the Autoconf documentation for `clear'.
11845 cat >confdef2sed.sed <<\_ACEOF
11850 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11852 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11855 # If some macros were called several times there might be several times
11856 # the same #defines, which is useless. Nevertheless, we may not want to
11857 # sort them, since we want the *last* AC-DEFINE to be honored.
11858 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11859 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11860 rm -f confdef2sed.sed
11862 # This sed command replaces #undef with comments. This is necessary, for
11863 # example, in the case of _POSIX_SOURCE, which is predefined and required
11864 # on some systems where configure will not decide to define it.
11865 cat >>conftest.undefs <<\_ACEOF
11866 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11869 # Break up conftest.defines because some shells have a limit on the size
11870 # of here documents, and old seds have small limits too (100 cmds).
11871 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11872 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11873 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11874 echo ' :' >>$CONFIG_STATUS
11875 rm -f conftest.tail
11876 while grep . conftest.defines >/dev/null
11878 # Write a limited-size here document to $tmp/defines.sed.
11879 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11880 # Speed up: don't consider the non `#define' lines.
11881 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11882 # Work around the forget-to-reset-the-flag bug.
11883 echo 't clr' >>$CONFIG_STATUS
11884 echo ': clr' >>$CONFIG_STATUS
11885 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11887 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11889 mv $tmp/out $tmp/in
11891 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11892 rm -f conftest.defines
11893 mv conftest.tail conftest.defines
11895 rm -f conftest.defines
11896 echo ' fi # grep' >>$CONFIG_STATUS
11897 echo >>$CONFIG_STATUS
11899 # Break up conftest.undefs because some shells have a limit on the size
11900 # of here documents, and old seds have small limits too (100 cmds).
11901 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11902 rm -f conftest.tail
11903 while grep . conftest.undefs >/dev/null
11905 # Write a limited-size here document to $tmp/undefs.sed.
11906 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11907 # Speed up: don't consider the non `#undef'
11908 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11909 # Work around the forget-to-reset-the-flag bug.
11910 echo 't clr' >>$CONFIG_STATUS
11911 echo ': clr' >>$CONFIG_STATUS
11912 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11914 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11916 mv $tmp/out $tmp/in
11918 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11919 rm -f conftest.undefs
11920 mv conftest.tail conftest.undefs
11922 rm -f conftest.undefs
11924 cat >>$CONFIG_STATUS <<\_ACEOF
11925 # Let's still pretend it is `configure' which instantiates (i.e., don't
11926 # use $as_me), people would be surprised to read:
11927 # /* config.h. Generated by config.status. */
11928 if test x"$ac_file" = x-; then
11929 echo "/* Generated by configure. */" >$tmp/config.h
11931 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11933 cat $tmp/in >>$tmp/config.h
11935 if test x"$ac_file" != x-; then
11936 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11937 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11938 echo "$as_me: $ac_file is unchanged" >&6;}
11940 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11941 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11942 X"$ac_file" : 'X\(//\)[^/]' \| \
11943 X"$ac_file" : 'X\(//\)$' \| \
11944 X"$ac_file" : 'X\(/\)' \| \
11945 . : '\(.\)' 2>/dev/null ||
11947 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11948 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11949 /^X\(\/\/\)$/{ s//\1/; q; }
11950 /^X\(\/\).*/{ s//\1/; q; }
11952 { if $as_mkdir_p; then
11957 while test ! -d "$as_dir"; do
11958 as_dirs="$as_dir $as_dirs"
11959 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11960 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11961 X"$as_dir" : 'X\(//\)[^/]' \| \
11962 X"$as_dir" : 'X\(//\)$' \| \
11963 X"$as_dir" : 'X\(/\)' \| \
11964 . : '\(.\)' 2>/dev/null ||
11966 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11967 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11968 /^X\(\/\/\)$/{ s//\1/; q; }
11969 /^X\(\/\).*/{ s//\1/; q; }
11972 test ! -n "$as_dirs" || mkdir $as_dirs
11973 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11974 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11975 { (exit 1); exit 1; }; }; }
11978 mv $tmp/config.h $ac_file
11982 rm -f $tmp/config.h
11986 cat >>$CONFIG_STATUS <<\_ACEOF
11989 # CONFIG_COMMANDS section.
11991 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11992 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11993 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11994 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11995 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11996 X"$ac_dest" : 'X\(//\)[^/]' \| \
11997 X"$ac_dest" : 'X\(//\)$' \| \
11998 X"$ac_dest" : 'X\(/\)' \| \
11999 . : '\(.\)' 2>/dev/null ||
12001 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12002 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12003 /^X\(\/\/\)$/{ s//\1/; q; }
12004 /^X\(\/\).*/{ s//\1/; q; }
12006 { if $as_mkdir_p; then
12011 while test ! -d "$as_dir"; do
12012 as_dirs="$as_dir $as_dirs"
12013 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12014 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12015 X"$as_dir" : 'X\(//\)[^/]' \| \
12016 X"$as_dir" : 'X\(//\)$' \| \
12017 X"$as_dir" : 'X\(/\)' \| \
12018 . : '\(.\)' 2>/dev/null ||
12020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12021 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12022 /^X\(\/\/\)$/{ s//\1/; q; }
12023 /^X\(\/\).*/{ s//\1/; q; }
12026 test ! -n "$as_dirs" || mkdir $as_dirs
12027 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12028 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12029 { (exit 1); exit 1; }; }; }
12033 if test "$ac_dir" != .; then
12034 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12035 # A "../" for each directory in $ac_dir_suffix.
12036 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12038 ac_dir_suffix= ac_top_builddir=
12042 .) # No --srcdir option. We are building in place.
12044 if test -z "$ac_top_builddir"; then
12047 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12049 [\\/]* | ?:[\\/]* ) # Absolute path.
12050 ac_srcdir=$srcdir$ac_dir_suffix;
12051 ac_top_srcdir=$srcdir ;;
12052 *) # Relative path.
12053 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12054 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12057 # Do not use `cd foo && pwd` to compute absolute paths, because
12058 # the directories may not exist.
12060 .) ac_abs_builddir="$ac_dir";;
12063 .) ac_abs_builddir=`pwd`;;
12064 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12065 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12068 case $ac_abs_builddir in
12069 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12071 case ${ac_top_builddir}. in
12072 .) ac_abs_top_builddir=$ac_abs_builddir;;
12073 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12074 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12077 case $ac_abs_builddir in
12078 .) ac_abs_srcdir=$ac_srcdir;;
12081 .) ac_abs_srcdir=$ac_abs_builddir;;
12082 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12083 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12086 case $ac_abs_builddir in
12087 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12089 case $ac_top_srcdir in
12090 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12091 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12092 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12097 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12098 echo "$as_me: executing $ac_dest commands" >&6;}
12100 default ) echo timestamp > stamp-h ;;
12105 cat >>$CONFIG_STATUS <<\_ACEOF
12107 { (exit 0); exit 0; }
12109 chmod +x $CONFIG_STATUS
12110 ac_clean_files=$ac_clean_files_save
12113 # configure is writing to config.log, and then calls config.status.
12114 # config.status does its own redirection, appending to config.log.
12115 # Unfortunately, on DOS this fails, as config.log is still kept open
12116 # by configure, so config.status won't be able to write to it; its
12117 # output is simply discarded. So we exec the FD to /dev/null,
12118 # effectively closing config.log, so it can be properly (re)opened and
12119 # appended to by config.status. When coming back to configure, we
12120 # need to make the FD available again.
12121 if test "$no_create" != yes; then
12123 ac_config_status_args=
12124 test "$silent" = yes &&
12125 ac_config_status_args="$ac_config_status_args --quiet"
12127 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12129 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12130 # would make configure fail if this is the last instruction.
12131 $ac_cs_success || { (exit 1); exit 1; }
12135 ac_config_commands="$ac_config_commands default-1"