2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="ircd/ircd.c"
275 ac_default_prefix=$HOME
276 # Factoring default headers for most tests.
277 ac_includes_default="\
280 # include <sys/types.h>
283 # include <sys/stat.h>
294 # if !STDC_HEADERS && HAVE_MEMORY_H
300 # include <strings.h>
303 # include <inttypes.h>
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP AWK SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S LEX LEXLIB LEX_OUTPUT_ROOT YACC RMPROG SHPROG ENGINE_C INSTALL_RULE SYMLINK IRCDMODE IRCDOWN IRCDGRP DPATH LIBOBJS LTLIBOBJS'
316 # Initialize some variables set by options.
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
328 program_transform_name=s,x,x,
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
388 cache_file=config.cache ;;
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 datadir=$ac_optarg ;;
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
431 -help | --help | --hel | --he | -h)
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
455 -libdir | --libdir | --libdi | --libd)
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 # Obsolete; use --without-fp.
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 sbindir=$ac_optarg ;;
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 sharedstatedir=$ac_optarg ;;
559 -site | --site | --sit)
561 -site=* | --site=* | --sit=*)
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 -version | --version | --versio | --versi | --vers | -V)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
610 # Obsolete; use --with-x.
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
662 eval ac_val=$`echo $ac_var`
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val=$`echo $ac_var`
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703 test "$silent" = yes && exec 6>/dev/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
723 if test ! -r $srcdir/$ac_unique_file; then
727 ac_srcdir_defaulted=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
776 # Report the --help message.
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
782 \`configure' configures this package to adapt to many kinds of systems.
784 Usage: $0 [OPTION]... [VAR=VALUE]...
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
789 Defaults for the options are specified in brackets.
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
816 For better control, use the options below.
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
836 --build=BUILD configure for building on BUILD [guessed]
837 --host=HOST cross-compile to build programs to run on HOST [BUILD]
841 if test -n "$ac_init_help"; then
846 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
847 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
848 --enable-poll Force poll to be used regardless of whether or not
850 --enable-debug Turn on debugging mode
851 --disable-asserts Disable assertion checking
852 --disable-symbols Disable debugging symbols (remove -g from CFLAGS)
853 --enable-profile Enable profiling support (add -pg to CFLAGS)
854 --enable-pedantic Enable pedantic warnings (add -pedantic to CFLAGS)
855 --enable-warnings Enable warnings (add -Wall to CFLAGS)
856 --disable-inlines Disable inlining for a few critical functions
857 --disable-devpoll Disable the /dev/poll-based engine
858 --disable-kqueue Disable the kqueue-based engine
859 --disable-epoll Disable the epoll-based engine
862 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
863 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
864 --with-leak-detect Turn on the leak detector(requires patched boehm)
865 --without-ipv6 disable IPv6 support (default is autodetect)
866 --with-symlink=name Name to give the symlink; if name is "no," no
867 symlink will be created.
868 --with-mode=mode Permissions (in octal) to give the binary
869 --with-owner=owner Specify owner of the installed binary
870 --with-group=group Specify group owner of the installed binary
871 --with-domain=domain Domain name to use in local statistics gathering
872 --with-chroot=dir Specify that the server will be operated under
873 a different root directory given by dir. See
874 doc/readme.chroot for more information.
875 --with-dpath=dir Directory for all server data files
876 --with-cpath=file Set server configuration file
877 --with-lpath=file Set the debugging log file
878 --with-maxcon=maxcon Maximum number of connections server will accept
880 Some influential environment variables:
881 CC C compiler command
882 CFLAGS C compiler flags
883 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
884 nonstandard directory <lib dir>
885 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
886 headers in a nonstandard directory <include dir>
889 Use these variables to override the choices made by `configure' or to help
890 it to find libraries and programs with nonstandard names/locations.
895 if test "$ac_init_help" = "recursive"; then
896 # If there are subdirs, report their specific --help.
898 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
899 test -d $ac_dir || continue
902 if test "$ac_dir" != .; then
903 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
904 # A "../" for each directory in $ac_dir_suffix.
905 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
907 ac_dir_suffix= ac_top_builddir=
911 .) # No --srcdir option. We are building in place.
913 if test -z "$ac_top_builddir"; then
916 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
918 [\\/]* | ?:[\\/]* ) # Absolute path.
919 ac_srcdir=$srcdir$ac_dir_suffix;
920 ac_top_srcdir=$srcdir ;;
922 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
923 ac_top_srcdir=$ac_top_builddir$srcdir ;;
926 # Do not use `cd foo && pwd` to compute absolute paths, because
927 # the directories may not exist.
929 .) ac_abs_builddir="$ac_dir";;
932 .) ac_abs_builddir=`pwd`;;
933 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
934 *) ac_abs_builddir=`pwd`/"$ac_dir";;
937 case $ac_abs_builddir in
938 .) ac_abs_top_builddir=${ac_top_builddir}.;;
940 case ${ac_top_builddir}. in
941 .) ac_abs_top_builddir=$ac_abs_builddir;;
942 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
943 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
946 case $ac_abs_builddir in
947 .) ac_abs_srcdir=$ac_srcdir;;
950 .) ac_abs_srcdir=$ac_abs_builddir;;
951 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
952 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
955 case $ac_abs_builddir in
956 .) ac_abs_top_srcdir=$ac_top_srcdir;;
958 case $ac_top_srcdir in
959 .) ac_abs_top_srcdir=$ac_abs_builddir;;
960 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
961 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
966 # Check for guested configure; otherwise get Cygnus style configure.
967 if test -f $ac_srcdir/configure.gnu; then
969 $SHELL $ac_srcdir/configure.gnu --help=recursive
970 elif test -f $ac_srcdir/configure; then
972 $SHELL $ac_srcdir/configure --help=recursive
973 elif test -f $ac_srcdir/configure.ac ||
974 test -f $ac_srcdir/configure.in; then
978 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
984 test -n "$ac_init_help" && exit 0
985 if $ac_init_version; then
988 Copyright (C) 2003 Free Software Foundation, Inc.
989 This configure script is free software; the Free Software Foundation
990 gives unlimited permission to copy, distribute and modify it.
996 This file contains any messages produced by compilers while
997 running configure, to aid debugging if configure makes a mistake.
999 It was created by $as_me, which was
1000 generated by GNU Autoconf 2.59. Invocation command line was
1011 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1012 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1013 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1014 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1015 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1017 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1018 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1020 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1021 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1022 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1023 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1024 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1025 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1026 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1034 test -z "$as_dir" && as_dir=.
1035 echo "PATH: $as_dir"
1050 # Keep a trace of the command line.
1051 # Strip out --no-create and --no-recursion so they do not pile up.
1052 # Strip out --silent because we don't want to record it for future runs.
1053 # Also quote any args containing shell meta-characters.
1054 # Make two passes to allow for proper duplicate-argument suppression.
1059 ac_must_keep_next=false
1065 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1066 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1067 | -silent | --silent | --silen | --sile | --sil)
1069 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1070 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1073 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1075 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1076 if test $ac_must_keep_next = true; then
1077 ac_must_keep_next=false # Got value, back to normal.
1080 *=* | --config-cache | -C | -disable-* | --disable-* \
1081 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1082 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1083 | -with-* | --with-* | -without-* | --without-* | --x)
1084 case "$ac_configure_args0 " in
1085 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1088 -* ) ac_must_keep_next=true ;;
1091 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1092 # Get rid of the leading space.
1098 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1099 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1101 # When interrupted or exit'd, cleanup temporary files, and complete
1102 # config.log. We remove comments because anyway the quotes in there
1103 # would cause problems or look ugly.
1104 # WARNING: Be sure not to use single quotes in there, as some shells,
1105 # such as our DU 5.0 friend, will then `close' the trap.
1106 trap 'exit_status=$?
1107 # Save into config.log some information that might help in debugging.
1112 ## ---------------- ##
1113 ## Cache variables. ##
1114 ## ---------------- ##
1117 # The following way of writing the cache mishandles newlines in values,
1120 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1123 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1124 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1128 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1135 ## ----------------- ##
1136 ## Output variables. ##
1137 ## ----------------- ##
1140 for ac_var in $ac_subst_vars
1142 eval ac_val=$`echo $ac_var`
1143 echo "$ac_var='"'"'$ac_val'"'"'"
1147 if test -n "$ac_subst_files"; then
1154 for ac_var in $ac_subst_files
1156 eval ac_val=$`echo $ac_var`
1157 echo "$ac_var='"'"'$ac_val'"'"'"
1162 if test -s confdefs.h; then
1169 sed "/^$/d" confdefs.h | sort
1172 test "$ac_signal" != 0 &&
1173 echo "$as_me: caught signal $ac_signal"
1174 echo "$as_me: exit $exit_status"
1176 rm -f core *.core &&
1177 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1180 for ac_signal in 1 2 13 15; do
1181 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1185 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1186 rm -rf conftest* confdefs.h
1187 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1190 # Predefined preprocessor variables.
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_NAME "$PACKAGE_NAME"
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_STRING "$PACKAGE_STRING"
1212 cat >>confdefs.h <<_ACEOF
1213 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1217 # Let the site file select an alternate cache file if it wants to.
1218 # Prefer explicitly selected file to automatically selected ones.
1219 if test -z "$CONFIG_SITE"; then
1220 if test "x$prefix" != xNONE; then
1221 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1223 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1226 for ac_site_file in $CONFIG_SITE; do
1227 if test -r "$ac_site_file"; then
1228 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1229 echo "$as_me: loading site script $ac_site_file" >&6;}
1230 sed 's/^/| /' "$ac_site_file" >&5
1235 if test -r "$cache_file"; then
1236 # Some versions of bash will fail to source /dev/null (special
1237 # files actually), so we avoid doing that.
1238 if test -f "$cache_file"; then
1239 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1240 echo "$as_me: loading cache $cache_file" >&6;}
1242 [\\/]* | ?:[\\/]* ) . $cache_file;;
1243 *) . ./$cache_file;;
1247 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1248 echo "$as_me: creating cache $cache_file" >&6;}
1252 # Check that the precious variables saved in the cache have kept the same
1254 ac_cache_corrupted=false
1255 for ac_var in `(set) 2>&1 |
1256 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1257 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1258 eval ac_new_set=\$ac_env_${ac_var}_set
1259 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1260 eval ac_new_val="\$ac_env_${ac_var}_value"
1261 case $ac_old_set,$ac_new_set in
1263 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1264 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1265 ac_cache_corrupted=: ;;
1267 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1268 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1269 ac_cache_corrupted=: ;;
1272 if test "x$ac_old_val" != "x$ac_new_val"; then
1273 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1274 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1275 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1276 echo "$as_me: former value: $ac_old_val" >&2;}
1277 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1278 echo "$as_me: current value: $ac_new_val" >&2;}
1279 ac_cache_corrupted=:
1282 # Pass precious variables to config.status.
1283 if test "$ac_new_set" = set; then
1285 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1286 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1287 *) ac_arg=$ac_var=$ac_new_val ;;
1289 case " $ac_configure_args " in
1290 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1291 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1295 if $ac_cache_corrupted; then
1296 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1297 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1298 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1299 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1300 { (exit 1); exit 1; }; }
1304 ac_cpp='$CPP $CPPFLAGS'
1305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1329 echo "$as_me:$LINENO: checking for installation prefix" >&5
1330 echo $ECHO_N "checking for installation prefix... $ECHO_C" >&6
1331 if test "${unet_cv_prefix+set}" = set; then
1332 echo $ECHO_N "(cached) $ECHO_C" >&6
1334 unet_cv_prefix=$HOME
1337 if test x"$prefix" != xNONE; then
1338 unet_cv_prefix=$prefix
1340 echo "$as_me:$LINENO: result: $unet_cv_prefix" >&5
1341 echo "${ECHO_T}$unet_cv_prefix" >&6
1342 ac_default_prefix=$unet_cv_prefix
1344 ac_config_headers="$ac_config_headers config.h"
1350 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1351 if test -f $ac_dir/install-sh; then
1353 ac_install_sh="$ac_aux_dir/install-sh -c"
1355 elif test -f $ac_dir/install.sh; then
1357 ac_install_sh="$ac_aux_dir/install.sh -c"
1359 elif test -f $ac_dir/shtool; then
1361 ac_install_sh="$ac_aux_dir/shtool install -c"
1365 if test -z "$ac_aux_dir"; then
1366 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1367 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1368 { (exit 1); exit 1; }; }
1370 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1371 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1372 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1374 # Make sure we can run config.sub.
1375 $ac_config_sub sun4 >/dev/null 2>&1 ||
1376 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1377 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1378 { (exit 1); exit 1; }; }
1380 echo "$as_me:$LINENO: checking build system type" >&5
1381 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1382 if test "${ac_cv_build+set}" = set; then
1383 echo $ECHO_N "(cached) $ECHO_C" >&6
1385 ac_cv_build_alias=$build_alias
1386 test -z "$ac_cv_build_alias" &&
1387 ac_cv_build_alias=`$ac_config_guess`
1388 test -z "$ac_cv_build_alias" &&
1389 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1390 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1391 { (exit 1); exit 1; }; }
1392 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1393 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1394 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1395 { (exit 1); exit 1; }; }
1398 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1399 echo "${ECHO_T}$ac_cv_build" >&6
1401 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1402 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1403 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1406 echo "$as_me:$LINENO: checking host system type" >&5
1407 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1408 if test "${ac_cv_host+set}" = set; then
1409 echo $ECHO_N "(cached) $ECHO_C" >&6
1411 ac_cv_host_alias=$host_alias
1412 test -z "$ac_cv_host_alias" &&
1413 ac_cv_host_alias=$ac_cv_build_alias
1414 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1415 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1416 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1417 { (exit 1); exit 1; }; }
1420 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1421 echo "${ECHO_T}$ac_cv_host" >&6
1423 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1424 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1425 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1430 ac_cpp='$CPP $CPPFLAGS'
1431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1434 if test -n "$ac_tool_prefix"; then
1435 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1436 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1437 echo "$as_me:$LINENO: checking for $ac_word" >&5
1438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1439 if test "${ac_cv_prog_CC+set}" = set; then
1440 echo $ECHO_N "(cached) $ECHO_C" >&6
1442 if test -n "$CC"; then
1443 ac_cv_prog_CC="$CC" # Let the user override the test.
1445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1449 test -z "$as_dir" && as_dir=.
1450 for ac_exec_ext in '' $ac_executable_extensions; do
1451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1452 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1462 if test -n "$CC"; then
1463 echo "$as_me:$LINENO: result: $CC" >&5
1464 echo "${ECHO_T}$CC" >&6
1466 echo "$as_me:$LINENO: result: no" >&5
1467 echo "${ECHO_T}no" >&6
1471 if test -z "$ac_cv_prog_CC"; then
1473 # Extract the first word of "gcc", so it can be a program name with args.
1474 set dummy gcc; ac_word=$2
1475 echo "$as_me:$LINENO: checking for $ac_word" >&5
1476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1477 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1478 echo $ECHO_N "(cached) $ECHO_C" >&6
1480 if test -n "$ac_ct_CC"; then
1481 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1487 test -z "$as_dir" && as_dir=.
1488 for ac_exec_ext in '' $ac_executable_extensions; do
1489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1490 ac_cv_prog_ac_ct_CC="gcc"
1491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1499 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1500 if test -n "$ac_ct_CC"; then
1501 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1502 echo "${ECHO_T}$ac_ct_CC" >&6
1504 echo "$as_me:$LINENO: result: no" >&5
1505 echo "${ECHO_T}no" >&6
1513 if test -z "$CC"; then
1514 if test -n "$ac_tool_prefix"; then
1515 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1516 set dummy ${ac_tool_prefix}cc; ac_word=$2
1517 echo "$as_me:$LINENO: checking for $ac_word" >&5
1518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1519 if test "${ac_cv_prog_CC+set}" = set; then
1520 echo $ECHO_N "(cached) $ECHO_C" >&6
1522 if test -n "$CC"; then
1523 ac_cv_prog_CC="$CC" # Let the user override the test.
1525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1529 test -z "$as_dir" && as_dir=.
1530 for ac_exec_ext in '' $ac_executable_extensions; do
1531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1532 ac_cv_prog_CC="${ac_tool_prefix}cc"
1533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1542 if test -n "$CC"; then
1543 echo "$as_me:$LINENO: result: $CC" >&5
1544 echo "${ECHO_T}$CC" >&6
1546 echo "$as_me:$LINENO: result: no" >&5
1547 echo "${ECHO_T}no" >&6
1551 if test -z "$ac_cv_prog_CC"; then
1553 # Extract the first word of "cc", so it can be a program name with args.
1554 set dummy cc; ac_word=$2
1555 echo "$as_me:$LINENO: checking for $ac_word" >&5
1556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1557 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1558 echo $ECHO_N "(cached) $ECHO_C" >&6
1560 if test -n "$ac_ct_CC"; then
1561 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1567 test -z "$as_dir" && as_dir=.
1568 for ac_exec_ext in '' $ac_executable_extensions; do
1569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1570 ac_cv_prog_ac_ct_CC="cc"
1571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1579 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1580 if test -n "$ac_ct_CC"; then
1581 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1582 echo "${ECHO_T}$ac_ct_CC" >&6
1584 echo "$as_me:$LINENO: result: no" >&5
1585 echo "${ECHO_T}no" >&6
1594 if test -z "$CC"; then
1595 # Extract the first word of "cc", so it can be a program name with args.
1596 set dummy cc; ac_word=$2
1597 echo "$as_me:$LINENO: checking for $ac_word" >&5
1598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1599 if test "${ac_cv_prog_CC+set}" = set; then
1600 echo $ECHO_N "(cached) $ECHO_C" >&6
1602 if test -n "$CC"; then
1603 ac_cv_prog_CC="$CC" # Let the user override the test.
1606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1610 test -z "$as_dir" && as_dir=.
1611 for ac_exec_ext in '' $ac_executable_extensions; do
1612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1613 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1614 ac_prog_rejected=yes
1618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1624 if test $ac_prog_rejected = yes; then
1625 # We found a bogon in the path, so make sure we never use it.
1626 set dummy $ac_cv_prog_CC
1628 if test $# != 0; then
1629 # We chose a different compiler from the bogus one.
1630 # However, it has the same basename, so the bogon will be chosen
1631 # first if we set CC to just the basename; use the full file name.
1633 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1639 if test -n "$CC"; then
1640 echo "$as_me:$LINENO: result: $CC" >&5
1641 echo "${ECHO_T}$CC" >&6
1643 echo "$as_me:$LINENO: result: no" >&5
1644 echo "${ECHO_T}no" >&6
1648 if test -z "$CC"; then
1649 if test -n "$ac_tool_prefix"; then
1652 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1653 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1654 echo "$as_me:$LINENO: checking for $ac_word" >&5
1655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1656 if test "${ac_cv_prog_CC+set}" = set; then
1657 echo $ECHO_N "(cached) $ECHO_C" >&6
1659 if test -n "$CC"; then
1660 ac_cv_prog_CC="$CC" # Let the user override the test.
1662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1666 test -z "$as_dir" && as_dir=.
1667 for ac_exec_ext in '' $ac_executable_extensions; do
1668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1669 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1679 if test -n "$CC"; then
1680 echo "$as_me:$LINENO: result: $CC" >&5
1681 echo "${ECHO_T}$CC" >&6
1683 echo "$as_me:$LINENO: result: no" >&5
1684 echo "${ECHO_T}no" >&6
1687 test -n "$CC" && break
1690 if test -z "$CC"; then
1694 # Extract the first word of "$ac_prog", so it can be a program name with args.
1695 set dummy $ac_prog; ac_word=$2
1696 echo "$as_me:$LINENO: checking for $ac_word" >&5
1697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1698 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1699 echo $ECHO_N "(cached) $ECHO_C" >&6
1701 if test -n "$ac_ct_CC"; then
1702 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1708 test -z "$as_dir" && as_dir=.
1709 for ac_exec_ext in '' $ac_executable_extensions; do
1710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1711 ac_cv_prog_ac_ct_CC="$ac_prog"
1712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1720 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1721 if test -n "$ac_ct_CC"; then
1722 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1723 echo "${ECHO_T}$ac_ct_CC" >&6
1725 echo "$as_me:$LINENO: result: no" >&5
1726 echo "${ECHO_T}no" >&6
1729 test -n "$ac_ct_CC" && break
1738 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1739 See \`config.log' for more details." >&5
1740 echo "$as_me: error: no acceptable C compiler found in \$PATH
1741 See \`config.log' for more details." >&2;}
1742 { (exit 1); exit 1; }; }
1744 # Provide some information about the compiler.
1745 echo "$as_me:$LINENO:" \
1746 "checking for C compiler version" >&5
1747 ac_compiler=`set X $ac_compile; echo $2`
1748 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1749 (eval $ac_compiler --version </dev/null >&5) 2>&5
1751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1752 (exit $ac_status); }
1753 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1754 (eval $ac_compiler -v </dev/null >&5) 2>&5
1756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1757 (exit $ac_status); }
1758 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1759 (eval $ac_compiler -V </dev/null >&5) 2>&5
1761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1762 (exit $ac_status); }
1764 cat >conftest.$ac_ext <<_ACEOF
1767 cat confdefs.h >>conftest.$ac_ext
1768 cat >>conftest.$ac_ext <<_ACEOF
1769 /* end confdefs.h. */
1779 ac_clean_files_save=$ac_clean_files
1780 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1781 # Try to create an executable without -o first, disregard a.out.
1782 # It will help us diagnose broken compilers, and finding out an intuition
1784 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1785 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1786 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1787 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1788 (eval $ac_link_default) 2>&5
1790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1791 (exit $ac_status); }; then
1792 # Find the output, starting from the most likely. This scheme is
1793 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1796 # Be careful to initialize this variable, since it used to be cached.
1797 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1799 # b.out is created by i960 compilers.
1800 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1802 test -f "$ac_file" || continue
1804 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1807 # This is the source file.
1810 # We found the default executable, but exeext='' is most
1814 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1815 # FIXME: I believe we export ac_cv_exeext for Libtool,
1816 # but it would be cool to find out if it's true. Does anybody
1817 # maintain Libtool? --akim.
1825 echo "$as_me: failed program was:" >&5
1826 sed 's/^/| /' conftest.$ac_ext >&5
1828 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1829 See \`config.log' for more details." >&5
1830 echo "$as_me: error: C compiler cannot create executables
1831 See \`config.log' for more details." >&2;}
1832 { (exit 77); exit 77; }; }
1835 ac_exeext=$ac_cv_exeext
1836 echo "$as_me:$LINENO: result: $ac_file" >&5
1837 echo "${ECHO_T}$ac_file" >&6
1839 # Check the compiler produces executables we can run. If not, either
1840 # the compiler is broken, or we cross compile.
1841 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1842 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1843 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1844 # If not cross compiling, check that we can run a simple program.
1845 if test "$cross_compiling" != yes; then
1846 if { ac_try='./$ac_file'
1847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1851 (exit $ac_status); }; }; then
1854 if test "$cross_compiling" = maybe; then
1857 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1858 If you meant to cross compile, use \`--host'.
1859 See \`config.log' for more details." >&5
1860 echo "$as_me: error: cannot run C compiled programs.
1861 If you meant to cross compile, use \`--host'.
1862 See \`config.log' for more details." >&2;}
1863 { (exit 1); exit 1; }; }
1867 echo "$as_me:$LINENO: result: yes" >&5
1868 echo "${ECHO_T}yes" >&6
1870 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1871 ac_clean_files=$ac_clean_files_save
1872 # Check the compiler produces executables we can run. If not, either
1873 # the compiler is broken, or we cross compile.
1874 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1875 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1876 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1877 echo "${ECHO_T}$cross_compiling" >&6
1879 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1880 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1882 (eval $ac_link) 2>&5
1884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1885 (exit $ac_status); }; then
1886 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1887 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1888 # work properly (i.e., refer to `conftest.exe'), while it won't with
1890 for ac_file in conftest.exe conftest conftest.*; do
1891 test -f "$ac_file" || continue
1893 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1894 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1901 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1902 See \`config.log' for more details." >&5
1903 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1904 See \`config.log' for more details." >&2;}
1905 { (exit 1); exit 1; }; }
1908 rm -f conftest$ac_cv_exeext
1909 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1910 echo "${ECHO_T}$ac_cv_exeext" >&6
1912 rm -f conftest.$ac_ext
1913 EXEEXT=$ac_cv_exeext
1915 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1916 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1917 if test "${ac_cv_objext+set}" = set; then
1918 echo $ECHO_N "(cached) $ECHO_C" >&6
1920 cat >conftest.$ac_ext <<_ACEOF
1923 cat confdefs.h >>conftest.$ac_ext
1924 cat >>conftest.$ac_ext <<_ACEOF
1925 /* end confdefs.h. */
1935 rm -f conftest.o conftest.obj
1936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1937 (eval $ac_compile) 2>&5
1939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1940 (exit $ac_status); }; then
1941 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1943 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1944 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1949 echo "$as_me: failed program was:" >&5
1950 sed 's/^/| /' conftest.$ac_ext >&5
1952 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1953 See \`config.log' for more details." >&5
1954 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1955 See \`config.log' for more details." >&2;}
1956 { (exit 1); exit 1; }; }
1959 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1961 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1962 echo "${ECHO_T}$ac_cv_objext" >&6
1963 OBJEXT=$ac_cv_objext
1965 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1966 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1967 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1968 echo $ECHO_N "(cached) $ECHO_C" >&6
1970 cat >conftest.$ac_ext <<_ACEOF
1973 cat confdefs.h >>conftest.$ac_ext
1974 cat >>conftest.$ac_ext <<_ACEOF
1975 /* end confdefs.h. */
1988 rm -f conftest.$ac_objext
1989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1990 (eval $ac_compile) 2>conftest.er1
1992 grep -v '^ *+' conftest.er1 >conftest.err
1994 cat conftest.err >&5
1995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996 (exit $ac_status); } &&
1997 { ac_try='test -z "$ac_c_werror_flag" || 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" || test ! -s conftest.err'
2056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060 (exit $ac_status); }; } &&
2061 { ac_try='test -s conftest.$ac_objext'
2062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2066 (exit $ac_status); }; }; then
2069 echo "$as_me: failed program was:" >&5
2070 sed 's/^/| /' conftest.$ac_ext >&5
2074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2076 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2077 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2078 if test "$ac_test_CFLAGS" = set; then
2079 CFLAGS=$ac_save_CFLAGS
2080 elif test $ac_cv_prog_cc_g = yes; then
2081 if test "$GCC" = yes; then
2087 if test "$GCC" = yes; then
2093 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2094 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2095 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2096 echo $ECHO_N "(cached) $ECHO_C" >&6
2098 ac_cv_prog_cc_stdc=no
2100 cat >conftest.$ac_ext <<_ACEOF
2103 cat confdefs.h >>conftest.$ac_ext
2104 cat >>conftest.$ac_ext <<_ACEOF
2105 /* end confdefs.h. */
2108 #include <sys/types.h>
2109 #include <sys/stat.h>
2110 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2111 struct buf { int x; };
2112 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2113 static char *e (p, i)
2119 static char *f (char * (*g) (char **, int), char **p, ...)
2124 s = g (p, va_arg (v,int));
2129 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2130 function prototypes and stuff, but not '\xHH' hex character constants.
2131 These don't provoke an error unfortunately, instead are silently treated
2132 as 'x'. The following induces an error, until -std1 is added to get
2133 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2134 array size at least. It's necessary to write '\x00'==0 to get something
2135 that's true only with -std1. */
2136 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2138 int test (int i, double x);
2139 struct s1 {int (*f) (int a);};
2140 struct s2 {int (*f) (double a);};
2141 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2147 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2152 # Don't try gcc -ansi; that turns off useful extensions and
2153 # breaks some systems' header files.
2154 # AIX -qlanglvl=ansi
2155 # Ultrix and OSF/1 -std1
2156 # HP-UX 10.20 and later -Ae
2157 # HP-UX older versions -Aa -D_HPUX_SOURCE
2158 # SVR4 -Xc -D__EXTENSIONS__
2159 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2161 CC="$ac_save_CC $ac_arg"
2162 rm -f conftest.$ac_objext
2163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2164 (eval $ac_compile) 2>conftest.er1
2166 grep -v '^ *+' conftest.er1 >conftest.err
2168 cat conftest.err >&5
2169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170 (exit $ac_status); } &&
2171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176 (exit $ac_status); }; } &&
2177 { ac_try='test -s conftest.$ac_objext'
2178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182 (exit $ac_status); }; }; then
2183 ac_cv_prog_cc_stdc=$ac_arg
2186 echo "$as_me: failed program was:" >&5
2187 sed 's/^/| /' conftest.$ac_ext >&5
2190 rm -f conftest.err conftest.$ac_objext
2192 rm -f conftest.$ac_ext conftest.$ac_objext
2197 case "x$ac_cv_prog_cc_stdc" in
2199 echo "$as_me:$LINENO: result: none needed" >&5
2200 echo "${ECHO_T}none needed" >&6 ;;
2202 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2203 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2204 CC="$CC $ac_cv_prog_cc_stdc" ;;
2207 # Some people use a C++ compiler to compile C. Since we use `exit',
2208 # in C++ we need to declare it. In case someone uses the same compiler
2209 # for both compiling C and C++ we need to have the C++ compiler decide
2210 # the declaration of exit, since it's the most demanding environment.
2211 cat >conftest.$ac_ext <<_ACEOF
2216 rm -f conftest.$ac_objext
2217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2218 (eval $ac_compile) 2>conftest.er1
2220 grep -v '^ *+' conftest.er1 >conftest.err
2222 cat conftest.err >&5
2223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224 (exit $ac_status); } &&
2225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230 (exit $ac_status); }; } &&
2231 { ac_try='test -s conftest.$ac_objext'
2232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236 (exit $ac_status); }; }; then
2237 for ac_declaration in \
2239 'extern "C" void std::exit (int) throw (); using std::exit;' \
2240 'extern "C" void std::exit (int); using std::exit;' \
2241 'extern "C" void exit (int) throw ();' \
2242 'extern "C" void exit (int);' \
2245 cat >conftest.$ac_ext <<_ACEOF
2248 cat confdefs.h >>conftest.$ac_ext
2249 cat >>conftest.$ac_ext <<_ACEOF
2250 /* end confdefs.h. */
2261 rm -f conftest.$ac_objext
2262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2263 (eval $ac_compile) 2>conftest.er1
2265 grep -v '^ *+' conftest.er1 >conftest.err
2267 cat conftest.err >&5
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); } &&
2270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275 (exit $ac_status); }; } &&
2276 { ac_try='test -s conftest.$ac_objext'
2277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281 (exit $ac_status); }; }; then
2284 echo "$as_me: failed program was:" >&5
2285 sed 's/^/| /' conftest.$ac_ext >&5
2289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2290 cat >conftest.$ac_ext <<_ACEOF
2293 cat confdefs.h >>conftest.$ac_ext
2294 cat >>conftest.$ac_ext <<_ACEOF
2295 /* end confdefs.h. */
2305 rm -f conftest.$ac_objext
2306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307 (eval $ac_compile) 2>conftest.er1
2309 grep -v '^ *+' conftest.er1 >conftest.err
2311 cat conftest.err >&5
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); } &&
2314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); }; } &&
2320 { ac_try='test -s conftest.$ac_objext'
2321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }; }; then
2328 echo "$as_me: failed program was:" >&5
2329 sed 's/^/| /' conftest.$ac_ext >&5
2332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2335 if test -n "$ac_declaration"; then
2336 echo '#ifdef __cplusplus' >>confdefs.h
2337 echo $ac_declaration >>confdefs.h
2338 echo '#endif' >>confdefs.h
2342 echo "$as_me: failed program was:" >&5
2343 sed 's/^/| /' conftest.$ac_ext >&5
2346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2348 ac_cpp='$CPP $CPPFLAGS'
2349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2358 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2359 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2360 if test "${am_cv_prog_cc_stdc+set}" = set; then
2361 echo $ECHO_N "(cached) $ECHO_C" >&6
2363 am_cv_prog_cc_stdc=no
2365 # Don't try gcc -ansi; that turns off useful extensions and
2366 # breaks some systems' header files.
2367 # AIX -qlanglvl=ansi
2368 # Ultrix and OSF/1 -std1
2369 # HP-UX -Aa -D_HPUX_SOURCE
2370 # SVR4 -Xc -D__EXTENSIONS__
2371 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2373 CC="$ac_save_CC $ac_arg"
2374 cat >conftest.$ac_ext <<_ACEOF
2377 cat confdefs.h >>conftest.$ac_ext
2378 cat >>conftest.$ac_ext <<_ACEOF
2379 /* end confdefs.h. */
2382 #include <sys/types.h>
2383 #include <sys/stat.h>
2384 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2385 struct buf { int x; };
2386 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2387 static char *e (p, i)
2393 static char *f (char * (*g) (char **, int), char **p, ...)
2398 s = g (p, va_arg (v,int));
2402 int test (int i, double x);
2403 struct s1 {int (*f) (int a);};
2404 struct s2 {int (*f) (double a);};
2405 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2413 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2419 rm -f conftest.$ac_objext
2420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2421 (eval $ac_compile) 2>conftest.er1
2423 grep -v '^ *+' conftest.er1 >conftest.err
2425 cat conftest.err >&5
2426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427 (exit $ac_status); } &&
2428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433 (exit $ac_status); }; } &&
2434 { ac_try='test -s conftest.$ac_objext'
2435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439 (exit $ac_status); }; }; then
2440 am_cv_prog_cc_stdc="$ac_arg"; break
2442 echo "$as_me: failed program was:" >&5
2443 sed 's/^/| /' conftest.$ac_ext >&5
2446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2452 if test -z "$am_cv_prog_cc_stdc"; then
2453 echo "$as_me:$LINENO: result: none needed" >&5
2454 echo "${ECHO_T}none needed" >&6
2456 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2457 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2459 case "x$am_cv_prog_cc_stdc" in
2461 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2464 if test x"$CFLAGS" != x; then
2465 CFLAGS=`echo "$CFLAGS" | sed -e 's/-O2/-O3/'`
2467 if test x"$CFLAGS" != x; then
2468 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pipe//g'`
2470 if test x"$CFLAGS" != x; then
2471 unet_old_cflags=$CFLAGS
2472 CFLAGS=`echo "$CFLAGS" | sed -e 's/-g//g'`
2474 if test x"$CFLAGS" != x"$unet_old_cflags"; then
2475 # If -g was already there, force symbols to be enabled
2476 unet_cv_enable_symbols=yes
2478 if test x"$CFLAGS" != x; then
2479 unet_old_cflags=$CFLAGS
2480 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pg//g'`
2482 if test x"$CFLAGS" != x"$unet_old_cflags"; then
2483 # If -pg was already there, force profiling to be enabled
2484 unet_cv_enable_profile=yes
2486 if test x"$CFLAGS" != x; then
2487 unet_old_cflags=$CFLAGS
2488 CFLAGS=`echo "$CFLAGS" | sed -e 's/-Wall//g'`
2490 if test x"$CFLAGS" != x"$unet_old_cflags"; then
2491 # If -Wall was already there, force warnings to be enabled
2492 unet_cv_enable_warnings=yes
2494 if test x"$CFLAGS" != x; then
2495 unet_old_cflags=$CFLAGS
2496 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pedantic//g'`
2498 if test x"$CFLAGS" != x"$unet_old_cflags"; then
2499 # If -pedantic was already there, force pedatic to be enabled
2500 unet_cv_enable_pedantic=yes
2504 echo "$as_me:$LINENO: checking for library containing crypt" >&5
2505 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
2506 if test "${ac_cv_search_crypt+set}" = set; then
2507 echo $ECHO_N "(cached) $ECHO_C" >&6
2509 ac_func_search_save_LIBS=$LIBS
2510 ac_cv_search_crypt=no
2511 cat >conftest.$ac_ext <<_ACEOF
2514 cat confdefs.h >>conftest.$ac_ext
2515 cat >>conftest.$ac_ext <<_ACEOF
2516 /* end confdefs.h. */
2518 /* Override any gcc2 internal prototype to avoid an error. */
2522 /* We use char because int might match the return type of a gcc2
2523 builtin and then its argument prototype would still apply. */
2533 rm -f conftest.$ac_objext conftest$ac_exeext
2534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2535 (eval $ac_link) 2>conftest.er1
2537 grep -v '^ *+' conftest.er1 >conftest.err
2539 cat conftest.err >&5
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); } &&
2542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); }; } &&
2548 { ac_try='test -s conftest$ac_exeext'
2549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); }; }; then
2554 ac_cv_search_crypt="none required"
2556 echo "$as_me: failed program was:" >&5
2557 sed 's/^/| /' conftest.$ac_ext >&5
2560 rm -f conftest.err conftest.$ac_objext \
2561 conftest$ac_exeext conftest.$ac_ext
2562 if test "$ac_cv_search_crypt" = no; then
2563 for ac_lib in descrypt crypt; do
2564 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2565 cat >conftest.$ac_ext <<_ACEOF
2568 cat confdefs.h >>conftest.$ac_ext
2569 cat >>conftest.$ac_ext <<_ACEOF
2570 /* end confdefs.h. */
2572 /* Override any gcc2 internal prototype to avoid an error. */
2576 /* We use char because int might match the return type of a gcc2
2577 builtin and then its argument prototype would still apply. */
2587 rm -f conftest.$ac_objext conftest$ac_exeext
2588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2589 (eval $ac_link) 2>conftest.er1
2591 grep -v '^ *+' conftest.er1 >conftest.err
2593 cat conftest.err >&5
2594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 (exit $ac_status); } &&
2596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601 (exit $ac_status); }; } &&
2602 { ac_try='test -s conftest$ac_exeext'
2603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); }; }; then
2608 ac_cv_search_crypt="-l$ac_lib"
2611 echo "$as_me: failed program was:" >&5
2612 sed 's/^/| /' conftest.$ac_ext >&5
2615 rm -f conftest.err conftest.$ac_objext \
2616 conftest$ac_exeext conftest.$ac_ext
2619 LIBS=$ac_func_search_save_LIBS
2621 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
2622 echo "${ECHO_T}$ac_cv_search_crypt" >&6
2623 if test "$ac_cv_search_crypt" != no; then
2624 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
2627 { { echo "$as_me:$LINENO: error: Unable to find library containing crypt()" >&5
2628 echo "$as_me: error: Unable to find library containing crypt()" >&2;}
2629 { (exit 1); exit 1; }; }
2634 # Most operating systems have gethostbyname() in the default searched
2635 # libraries (i.e. libc):
2636 echo "$as_me:$LINENO: checking for gethostbyname" >&5
2637 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
2638 if test "${ac_cv_func_gethostbyname+set}" = set; then
2639 echo $ECHO_N "(cached) $ECHO_C" >&6
2641 cat >conftest.$ac_ext <<_ACEOF
2644 cat confdefs.h >>conftest.$ac_ext
2645 cat >>conftest.$ac_ext <<_ACEOF
2646 /* end confdefs.h. */
2647 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
2648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2649 #define gethostbyname innocuous_gethostbyname
2651 /* System header to define __stub macros and hopefully few prototypes,
2652 which can conflict with char gethostbyname (); below.
2653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2654 <limits.h> exists even on freestanding compilers. */
2657 # include <limits.h>
2659 # include <assert.h>
2662 #undef gethostbyname
2664 /* Override any gcc2 internal prototype to avoid an error. */
2669 /* We use char because int might match the return type of a gcc2
2670 builtin and then its argument prototype would still apply. */
2671 char gethostbyname ();
2672 /* The GNU C library defines this for functions which it implements
2673 to always fail with ENOSYS. Some functions are actually named
2674 something starting with __ and the normal name is an alias. */
2675 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2678 char (*f) () = gethostbyname;
2687 return f != gethostbyname;
2692 rm -f conftest.$ac_objext conftest$ac_exeext
2693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2694 (eval $ac_link) 2>conftest.er1
2696 grep -v '^ *+' conftest.er1 >conftest.err
2698 cat conftest.err >&5
2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); } &&
2701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); }; } &&
2707 { ac_try='test -s conftest$ac_exeext'
2708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); }; }; then
2713 ac_cv_func_gethostbyname=yes
2715 echo "$as_me: failed program was:" >&5
2716 sed 's/^/| /' conftest.$ac_ext >&5
2718 ac_cv_func_gethostbyname=no
2720 rm -f conftest.err conftest.$ac_objext \
2721 conftest$ac_exeext conftest.$ac_ext
2723 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
2724 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
2725 if test $ac_cv_func_gethostbyname = yes; then
2728 # Some OSes (eg. Solaris) place it in libnsl:
2730 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
2731 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
2732 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
2733 echo $ECHO_N "(cached) $ECHO_C" >&6
2735 ac_check_lib_save_LIBS=$LIBS
2737 cat >conftest.$ac_ext <<_ACEOF
2740 cat confdefs.h >>conftest.$ac_ext
2741 cat >>conftest.$ac_ext <<_ACEOF
2742 /* end confdefs.h. */
2744 /* Override any gcc2 internal prototype to avoid an error. */
2748 /* We use char because int might match the return type of a gcc2
2749 builtin and then its argument prototype would still apply. */
2750 char gethostbyname ();
2759 rm -f conftest.$ac_objext conftest$ac_exeext
2760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2761 (eval $ac_link) 2>conftest.er1
2763 grep -v '^ *+' conftest.er1 >conftest.err
2765 cat conftest.err >&5
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); } &&
2768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773 (exit $ac_status); }; } &&
2774 { ac_try='test -s conftest$ac_exeext'
2775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); }; }; then
2780 ac_cv_lib_nsl_gethostbyname=yes
2782 echo "$as_me: failed program was:" >&5
2783 sed 's/^/| /' conftest.$ac_ext >&5
2785 ac_cv_lib_nsl_gethostbyname=no
2787 rm -f conftest.err conftest.$ac_objext \
2788 conftest$ac_exeext conftest.$ac_ext
2789 LIBS=$ac_check_lib_save_LIBS
2791 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
2792 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
2793 if test $ac_cv_lib_nsl_gethostbyname = yes; then
2794 cat >>confdefs.h <<_ACEOF
2795 #define HAVE_LIBNSL 1
2801 # Some strange OSes (SINIX) have it in libsocket:
2803 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
2804 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
2805 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
2806 echo $ECHO_N "(cached) $ECHO_C" >&6
2808 ac_check_lib_save_LIBS=$LIBS
2809 LIBS="-lsocket $LIBS"
2810 cat >conftest.$ac_ext <<_ACEOF
2813 cat confdefs.h >>conftest.$ac_ext
2814 cat >>conftest.$ac_ext <<_ACEOF
2815 /* end confdefs.h. */
2817 /* Override any gcc2 internal prototype to avoid an error. */
2821 /* We use char because int might match the return type of a gcc2
2822 builtin and then its argument prototype would still apply. */
2823 char gethostbyname ();
2832 rm -f conftest.$ac_objext conftest$ac_exeext
2833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2834 (eval $ac_link) 2>conftest.er1
2836 grep -v '^ *+' conftest.er1 >conftest.err
2838 cat conftest.err >&5
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); } &&
2841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); }; } &&
2847 { ac_try='test -s conftest$ac_exeext'
2848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); }; }; then
2853 ac_cv_lib_socket_gethostbyname=yes
2855 echo "$as_me: failed program was:" >&5
2856 sed 's/^/| /' conftest.$ac_ext >&5
2858 ac_cv_lib_socket_gethostbyname=no
2860 rm -f conftest.err conftest.$ac_objext \
2861 conftest$ac_exeext conftest.$ac_ext
2862 LIBS=$ac_check_lib_save_LIBS
2864 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
2865 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
2866 if test $ac_cv_lib_socket_gethostbyname = yes; then
2867 cat >>confdefs.h <<_ACEOF
2868 #define HAVE_LIBSOCKET 1
2871 LIBS="-lsocket $LIBS"
2874 # Unfortunately libsocket sometimes depends on libnsl.
2875 # AC_CHECK_LIB's API is essentially broken so the following
2876 # ugliness is necessary:
2877 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
2878 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
2879 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
2880 echo $ECHO_N "(cached) $ECHO_C" >&6
2882 ac_check_lib_save_LIBS=$LIBS
2883 LIBS="-lsocket -lnsl $LIBS"
2884 cat >conftest.$ac_ext <<_ACEOF
2887 cat confdefs.h >>conftest.$ac_ext
2888 cat >>conftest.$ac_ext <<_ACEOF
2889 /* end confdefs.h. */
2891 /* Override any gcc2 internal prototype to avoid an error. */
2895 /* We use char because int might match the return type of a gcc2
2896 builtin and then its argument prototype would still apply. */
2897 char gethostbyname ();
2906 rm -f conftest.$ac_objext conftest$ac_exeext
2907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2908 (eval $ac_link) 2>conftest.er1
2910 grep -v '^ *+' conftest.er1 >conftest.err
2912 cat conftest.err >&5
2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); } &&
2915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); }; } &&
2921 { ac_try='test -s conftest$ac_exeext'
2922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); }; }; then
2927 ac_cv_lib_socket_gethostbyname=yes
2929 echo "$as_me: failed program was:" >&5
2930 sed 's/^/| /' conftest.$ac_ext >&5
2932 ac_cv_lib_socket_gethostbyname=no
2934 rm -f conftest.err conftest.$ac_objext \
2935 conftest$ac_exeext conftest.$ac_ext
2936 LIBS=$ac_check_lib_save_LIBS
2938 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
2939 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
2940 if test $ac_cv_lib_socket_gethostbyname = yes; then
2941 LIBS="-lsocket -lnsl $LIBS"
2944 echo "$as_me:$LINENO: checking for gethostbyname in -lresolv" >&5
2945 echo $ECHO_N "checking for gethostbyname in -lresolv... $ECHO_C" >&6
2946 if test "${ac_cv_lib_resolv_gethostbyname+set}" = set; then
2947 echo $ECHO_N "(cached) $ECHO_C" >&6
2949 ac_check_lib_save_LIBS=$LIBS
2950 LIBS="-lresolv $LIBS"
2951 cat >conftest.$ac_ext <<_ACEOF
2954 cat confdefs.h >>conftest.$ac_ext
2955 cat >>conftest.$ac_ext <<_ACEOF
2956 /* end confdefs.h. */
2958 /* Override any gcc2 internal prototype to avoid an error. */
2962 /* We use char because int might match the return type of a gcc2
2963 builtin and then its argument prototype would still apply. */
2964 char gethostbyname ();
2973 rm -f conftest.$ac_objext conftest$ac_exeext
2974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2975 (eval $ac_link) 2>conftest.er1
2977 grep -v '^ *+' conftest.er1 >conftest.err
2979 cat conftest.err >&5
2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); } &&
2982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); }; } &&
2988 { ac_try='test -s conftest$ac_exeext'
2989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); }; }; then
2994 ac_cv_lib_resolv_gethostbyname=yes
2996 echo "$as_me: failed program was:" >&5
2997 sed 's/^/| /' conftest.$ac_ext >&5
2999 ac_cv_lib_resolv_gethostbyname=no
3001 rm -f conftest.err conftest.$ac_objext \
3002 conftest$ac_exeext conftest.$ac_ext
3003 LIBS=$ac_check_lib_save_LIBS
3005 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname" >&5
3006 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname" >&6
3007 if test $ac_cv_lib_resolv_gethostbyname = yes; then
3008 cat >>confdefs.h <<_ACEOF
3009 #define HAVE_LIBRESOLV 1
3012 LIBS="-lresolv $LIBS"
3027 echo "$as_me:$LINENO: checking for socket" >&5
3028 echo $ECHO_N "checking for socket... $ECHO_C" >&6
3029 if test "${ac_cv_func_socket+set}" = set; then
3030 echo $ECHO_N "(cached) $ECHO_C" >&6
3032 cat >conftest.$ac_ext <<_ACEOF
3035 cat confdefs.h >>conftest.$ac_ext
3036 cat >>conftest.$ac_ext <<_ACEOF
3037 /* end confdefs.h. */
3038 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
3039 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3040 #define socket innocuous_socket
3042 /* System header to define __stub macros and hopefully few prototypes,
3043 which can conflict with char socket (); below.
3044 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3045 <limits.h> exists even on freestanding compilers. */
3048 # include <limits.h>
3050 # include <assert.h>
3055 /* Override any gcc2 internal prototype to avoid an error. */
3060 /* We use char because int might match the return type of a gcc2
3061 builtin and then its argument prototype would still apply. */
3063 /* The GNU C library defines this for functions which it implements
3064 to always fail with ENOSYS. Some functions are actually named
3065 something starting with __ and the normal name is an alias. */
3066 #if defined (__stub_socket) || defined (__stub___socket)
3069 char (*f) () = socket;
3083 rm -f conftest.$ac_objext conftest$ac_exeext
3084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3085 (eval $ac_link) 2>conftest.er1
3087 grep -v '^ *+' conftest.er1 >conftest.err
3089 cat conftest.err >&5
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); } &&
3092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); }; } &&
3098 { ac_try='test -s conftest$ac_exeext'
3099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; }; then
3104 ac_cv_func_socket=yes
3106 echo "$as_me: failed program was:" >&5
3107 sed 's/^/| /' conftest.$ac_ext >&5
3109 ac_cv_func_socket=no
3111 rm -f conftest.err conftest.$ac_objext \
3112 conftest$ac_exeext conftest.$ac_ext
3114 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
3115 echo "${ECHO_T}$ac_cv_func_socket" >&6
3116 if test $ac_cv_func_socket = yes; then
3120 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3121 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3122 if test "${ac_cv_lib_socket_socket+set}" = set; then
3123 echo $ECHO_N "(cached) $ECHO_C" >&6
3125 ac_check_lib_save_LIBS=$LIBS
3126 LIBS="-lsocket $LIBS"
3127 cat >conftest.$ac_ext <<_ACEOF
3130 cat confdefs.h >>conftest.$ac_ext
3131 cat >>conftest.$ac_ext <<_ACEOF
3132 /* end confdefs.h. */
3134 /* Override any gcc2 internal prototype to avoid an error. */
3138 /* We use char because int might match the return type of a gcc2
3139 builtin and then its argument prototype would still apply. */
3149 rm -f conftest.$ac_objext conftest$ac_exeext
3150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3151 (eval $ac_link) 2>conftest.er1
3153 grep -v '^ *+' conftest.er1 >conftest.err
3155 cat conftest.err >&5
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); } &&
3158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); }; } &&
3164 { ac_try='test -s conftest$ac_exeext'
3165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); }; }; then
3170 ac_cv_lib_socket_socket=yes
3172 echo "$as_me: failed program was:" >&5
3173 sed 's/^/| /' conftest.$ac_ext >&5
3175 ac_cv_lib_socket_socket=no
3177 rm -f conftest.err conftest.$ac_objext \
3178 conftest$ac_exeext conftest.$ac_ext
3179 LIBS=$ac_check_lib_save_LIBS
3181 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3182 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3183 if test $ac_cv_lib_socket_socket = yes; then
3184 cat >>confdefs.h <<_ACEOF
3185 #define HAVE_LIBSOCKET 1
3188 LIBS="-lsocket $LIBS"
3191 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3192 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3193 if test "${ac_cv_lib_socket_socket+set}" = set; then
3194 echo $ECHO_N "(cached) $ECHO_C" >&6
3196 ac_check_lib_save_LIBS=$LIBS
3197 LIBS="-lsocket -lnsl $LIBS"
3198 cat >conftest.$ac_ext <<_ACEOF
3201 cat confdefs.h >>conftest.$ac_ext
3202 cat >>conftest.$ac_ext <<_ACEOF
3203 /* end confdefs.h. */
3205 /* Override any gcc2 internal prototype to avoid an error. */
3209 /* We use char because int might match the return type of a gcc2
3210 builtin and then its argument prototype would still apply. */
3220 rm -f conftest.$ac_objext conftest$ac_exeext
3221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3222 (eval $ac_link) 2>conftest.er1
3224 grep -v '^ *+' conftest.er1 >conftest.err
3226 cat conftest.err >&5
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); } &&
3229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); }; } &&
3235 { ac_try='test -s conftest$ac_exeext'
3236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); }; }; then
3241 ac_cv_lib_socket_socket=yes
3243 echo "$as_me: failed program was:" >&5
3244 sed 's/^/| /' conftest.$ac_ext >&5
3246 ac_cv_lib_socket_socket=no
3248 rm -f conftest.err conftest.$ac_objext \
3249 conftest$ac_exeext conftest.$ac_ext
3250 LIBS=$ac_check_lib_save_LIBS
3252 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3253 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3254 if test $ac_cv_lib_socket_socket = yes; then
3255 LIBS="-lsocket -lnsl $LIBS"
3265 ac_cpp='$CPP $CPPFLAGS'
3266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3269 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3270 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3271 # On Suns, sometimes $CPP names a directory.
3272 if test -n "$CPP" && test -d "$CPP"; then
3275 if test -z "$CPP"; then
3276 if test "${ac_cv_prog_CPP+set}" = set; then
3277 echo $ECHO_N "(cached) $ECHO_C" >&6
3279 # Double quotes because CPP needs to be expanded
3280 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3283 for ac_c_preproc_warn_flag in '' yes
3285 # Use a header file that comes with gcc, so configuring glibc
3286 # with a fresh cross-compiler works.
3287 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3288 # <limits.h> exists even on freestanding compilers.
3289 # On the NeXT, cc -E runs the code through the compiler's parser,
3290 # not just through cpp. "Syntax error" is here to catch this case.
3291 cat >conftest.$ac_ext <<_ACEOF
3294 cat confdefs.h >>conftest.$ac_ext
3295 cat >>conftest.$ac_ext <<_ACEOF
3296 /* end confdefs.h. */
3298 # include <limits.h>
3300 # include <assert.h>
3304 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3305 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3307 grep -v '^ *+' conftest.er1 >conftest.err
3309 cat conftest.err >&5
3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); } >/dev/null; then
3312 if test -s conftest.err; then
3313 ac_cpp_err=$ac_c_preproc_warn_flag
3314 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3321 if test -z "$ac_cpp_err"; then
3324 echo "$as_me: failed program was:" >&5
3325 sed 's/^/| /' conftest.$ac_ext >&5
3327 # Broken: fails on valid input.
3330 rm -f conftest.err conftest.$ac_ext
3332 # OK, works on sane cases. Now check whether non-existent headers
3333 # can be detected and how.
3334 cat >conftest.$ac_ext <<_ACEOF
3337 cat confdefs.h >>conftest.$ac_ext
3338 cat >>conftest.$ac_ext <<_ACEOF
3339 /* end confdefs.h. */
3340 #include <ac_nonexistent.h>
3342 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3343 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3345 grep -v '^ *+' conftest.er1 >conftest.err
3347 cat conftest.err >&5
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); } >/dev/null; then
3350 if test -s conftest.err; then
3351 ac_cpp_err=$ac_c_preproc_warn_flag
3352 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3359 if test -z "$ac_cpp_err"; then
3360 # Broken: success on invalid input.
3363 echo "$as_me: failed program was:" >&5
3364 sed 's/^/| /' conftest.$ac_ext >&5
3366 # Passes both tests.
3370 rm -f conftest.err conftest.$ac_ext
3373 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3374 rm -f conftest.err conftest.$ac_ext
3375 if $ac_preproc_ok; then
3387 echo "$as_me:$LINENO: result: $CPP" >&5
3388 echo "${ECHO_T}$CPP" >&6
3390 for ac_c_preproc_warn_flag in '' yes
3392 # Use a header file that comes with gcc, so configuring glibc
3393 # with a fresh cross-compiler works.
3394 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3395 # <limits.h> exists even on freestanding compilers.
3396 # On the NeXT, cc -E runs the code through the compiler's parser,
3397 # not just through cpp. "Syntax error" is here to catch this case.
3398 cat >conftest.$ac_ext <<_ACEOF
3401 cat confdefs.h >>conftest.$ac_ext
3402 cat >>conftest.$ac_ext <<_ACEOF
3403 /* end confdefs.h. */
3405 # include <limits.h>
3407 # include <assert.h>
3411 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3412 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3414 grep -v '^ *+' conftest.er1 >conftest.err
3416 cat conftest.err >&5
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); } >/dev/null; then
3419 if test -s conftest.err; then
3420 ac_cpp_err=$ac_c_preproc_warn_flag
3421 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3428 if test -z "$ac_cpp_err"; then
3431 echo "$as_me: failed program was:" >&5
3432 sed 's/^/| /' conftest.$ac_ext >&5
3434 # Broken: fails on valid input.
3437 rm -f conftest.err conftest.$ac_ext
3439 # OK, works on sane cases. Now check whether non-existent headers
3440 # can be detected and how.
3441 cat >conftest.$ac_ext <<_ACEOF
3444 cat confdefs.h >>conftest.$ac_ext
3445 cat >>conftest.$ac_ext <<_ACEOF
3446 /* end confdefs.h. */
3447 #include <ac_nonexistent.h>
3449 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3450 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3452 grep -v '^ *+' conftest.er1 >conftest.err
3454 cat conftest.err >&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); } >/dev/null; then
3457 if test -s conftest.err; then
3458 ac_cpp_err=$ac_c_preproc_warn_flag
3459 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3466 if test -z "$ac_cpp_err"; then
3467 # Broken: success on invalid input.
3470 echo "$as_me: failed program was:" >&5
3471 sed 's/^/| /' conftest.$ac_ext >&5
3473 # Passes both tests.
3477 rm -f conftest.err conftest.$ac_ext
3480 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3481 rm -f conftest.err conftest.$ac_ext
3482 if $ac_preproc_ok; then
3485 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3486 See \`config.log' for more details." >&5
3487 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3488 See \`config.log' for more details." >&2;}
3489 { (exit 1); exit 1; }; }
3493 ac_cpp='$CPP $CPPFLAGS'
3494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3499 echo "$as_me:$LINENO: checking for egrep" >&5
3500 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3501 if test "${ac_cv_prog_egrep+set}" = set; then
3502 echo $ECHO_N "(cached) $ECHO_C" >&6
3504 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3505 then ac_cv_prog_egrep='grep -E'
3506 else ac_cv_prog_egrep='egrep'
3509 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3510 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3511 EGREP=$ac_cv_prog_egrep
3514 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3515 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3516 if test "${ac_cv_header_stdc+set}" = set; then
3517 echo $ECHO_N "(cached) $ECHO_C" >&6
3519 cat >conftest.$ac_ext <<_ACEOF
3522 cat confdefs.h >>conftest.$ac_ext
3523 cat >>conftest.$ac_ext <<_ACEOF
3524 /* end confdefs.h. */
3538 rm -f conftest.$ac_objext
3539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3540 (eval $ac_compile) 2>conftest.er1
3542 grep -v '^ *+' conftest.er1 >conftest.err
3544 cat conftest.err >&5
3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546 (exit $ac_status); } &&
3547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); }; } &&
3553 { ac_try='test -s conftest.$ac_objext'
3554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); }; }; then
3559 ac_cv_header_stdc=yes
3561 echo "$as_me: failed program was:" >&5
3562 sed 's/^/| /' conftest.$ac_ext >&5
3564 ac_cv_header_stdc=no
3566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3568 if test $ac_cv_header_stdc = yes; then
3569 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3570 cat >conftest.$ac_ext <<_ACEOF
3573 cat confdefs.h >>conftest.$ac_ext
3574 cat >>conftest.$ac_ext <<_ACEOF
3575 /* end confdefs.h. */
3579 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3580 $EGREP "memchr" >/dev/null 2>&1; then
3583 ac_cv_header_stdc=no
3589 if test $ac_cv_header_stdc = yes; then
3590 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3591 cat >conftest.$ac_ext <<_ACEOF
3594 cat confdefs.h >>conftest.$ac_ext
3595 cat >>conftest.$ac_ext <<_ACEOF
3596 /* end confdefs.h. */
3600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3601 $EGREP "free" >/dev/null 2>&1; then
3604 ac_cv_header_stdc=no
3610 if test $ac_cv_header_stdc = yes; then
3611 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3612 if test "$cross_compiling" = yes; then
3615 cat >conftest.$ac_ext <<_ACEOF
3618 cat confdefs.h >>conftest.$ac_ext
3619 cat >>conftest.$ac_ext <<_ACEOF
3620 /* end confdefs.h. */
3622 #if ((' ' & 0x0FF) == 0x020)
3623 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3624 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3626 # define ISLOWER(c) \
3627 (('a' <= (c) && (c) <= 'i') \
3628 || ('j' <= (c) && (c) <= 'r') \
3629 || ('s' <= (c) && (c) <= 'z'))
3630 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3633 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3638 for (i = 0; i < 256; i++)
3639 if (XOR (islower (i), ISLOWER (i))
3640 || toupper (i) != TOUPPER (i))
3645 rm -f conftest$ac_exeext
3646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3647 (eval $ac_link) 2>&5
3649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655 (exit $ac_status); }; }; then
3658 echo "$as_me: program exited with status $ac_status" >&5
3659 echo "$as_me: failed program was:" >&5
3660 sed 's/^/| /' conftest.$ac_ext >&5
3663 ac_cv_header_stdc=no
3665 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3669 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3670 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3671 if test $ac_cv_header_stdc = yes; then
3673 cat >>confdefs.h <<\_ACEOF
3674 #define STDC_HEADERS 1
3679 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3689 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3690 inttypes.h stdint.h unistd.h
3692 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3693 echo "$as_me:$LINENO: checking for $ac_header" >&5
3694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3696 echo $ECHO_N "(cached) $ECHO_C" >&6
3698 cat >conftest.$ac_ext <<_ACEOF
3701 cat confdefs.h >>conftest.$ac_ext
3702 cat >>conftest.$ac_ext <<_ACEOF
3703 /* end confdefs.h. */
3704 $ac_includes_default
3706 #include <$ac_header>
3708 rm -f conftest.$ac_objext
3709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3710 (eval $ac_compile) 2>conftest.er1
3712 grep -v '^ *+' conftest.er1 >conftest.err
3714 cat conftest.err >&5
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); } &&
3717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); }; } &&
3723 { ac_try='test -s conftest.$ac_objext'
3724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 (exit $ac_status); }; }; then
3729 eval "$as_ac_Header=yes"
3731 echo "$as_me: failed program was:" >&5
3732 sed 's/^/| /' conftest.$ac_ext >&5
3734 eval "$as_ac_Header=no"
3736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3738 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3739 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3740 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3741 cat >>confdefs.h <<_ACEOF
3742 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3758 for ac_header in crypt.h poll.h stdint.h sys/devpoll.h sys/epoll.h sys/event.h sys/param.h sys/socket.h
3760 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3762 echo "$as_me:$LINENO: checking for $ac_header" >&5
3763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3765 echo $ECHO_N "(cached) $ECHO_C" >&6
3767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3768 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3770 # Is the header compilable?
3771 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3772 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3773 cat >conftest.$ac_ext <<_ACEOF
3776 cat confdefs.h >>conftest.$ac_ext
3777 cat >>conftest.$ac_ext <<_ACEOF
3778 /* end confdefs.h. */
3779 $ac_includes_default
3780 #include <$ac_header>
3782 rm -f conftest.$ac_objext
3783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3784 (eval $ac_compile) 2>conftest.er1
3786 grep -v '^ *+' conftest.er1 >conftest.err
3788 cat conftest.err >&5
3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); } &&
3791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796 (exit $ac_status); }; } &&
3797 { ac_try='test -s conftest.$ac_objext'
3798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); }; }; then
3803 ac_header_compiler=yes
3805 echo "$as_me: failed program was:" >&5
3806 sed 's/^/| /' conftest.$ac_ext >&5
3808 ac_header_compiler=no
3810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3811 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3812 echo "${ECHO_T}$ac_header_compiler" >&6
3814 # Is the header present?
3815 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3816 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3817 cat >conftest.$ac_ext <<_ACEOF
3820 cat confdefs.h >>conftest.$ac_ext
3821 cat >>conftest.$ac_ext <<_ACEOF
3822 /* end confdefs.h. */
3823 #include <$ac_header>
3825 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3826 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3828 grep -v '^ *+' conftest.er1 >conftest.err
3830 cat conftest.err >&5
3831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832 (exit $ac_status); } >/dev/null; then
3833 if test -s conftest.err; then
3834 ac_cpp_err=$ac_c_preproc_warn_flag
3835 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3842 if test -z "$ac_cpp_err"; then
3843 ac_header_preproc=yes
3845 echo "$as_me: failed program was:" >&5
3846 sed 's/^/| /' conftest.$ac_ext >&5
3848 ac_header_preproc=no
3850 rm -f conftest.err conftest.$ac_ext
3851 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3852 echo "${ECHO_T}$ac_header_preproc" >&6
3854 # So? What about this header?
3855 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3857 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3858 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3860 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3861 ac_header_preproc=yes
3864 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3865 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3866 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3867 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3868 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3869 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3870 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3871 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3872 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3873 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3874 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3875 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3878 ## ------------------------------------------ ##
3879 ## Report this to the AC_PACKAGE_NAME lists. ##
3880 ## ------------------------------------------ ##
3883 sed "s/^/$as_me: WARNING: /" >&2
3886 echo "$as_me:$LINENO: checking for $ac_header" >&5
3887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3889 echo $ECHO_N "(cached) $ECHO_C" >&6
3891 eval "$as_ac_Header=\$ac_header_preproc"
3893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3894 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3897 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3898 cat >>confdefs.h <<_ACEOF
3899 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3907 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3908 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3909 if test "${ac_cv_c_bigendian+set}" = set; then
3910 echo $ECHO_N "(cached) $ECHO_C" >&6
3912 # See if sys/param.h defines the BYTE_ORDER macro.
3913 cat >conftest.$ac_ext <<_ACEOF
3916 cat confdefs.h >>conftest.$ac_ext
3917 cat >>conftest.$ac_ext <<_ACEOF
3918 /* end confdefs.h. */
3919 #include <sys/types.h>
3920 #include <sys/param.h>
3925 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3933 rm -f conftest.$ac_objext
3934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3935 (eval $ac_compile) 2>conftest.er1
3937 grep -v '^ *+' conftest.er1 >conftest.err
3939 cat conftest.err >&5
3940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941 (exit $ac_status); } &&
3942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947 (exit $ac_status); }; } &&
3948 { ac_try='test -s conftest.$ac_objext'
3949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); }; }; then
3954 # It does; now see whether it defined to BIG_ENDIAN or not.
3955 cat >conftest.$ac_ext <<_ACEOF
3958 cat confdefs.h >>conftest.$ac_ext
3959 cat >>conftest.$ac_ext <<_ACEOF
3960 /* end confdefs.h. */
3961 #include <sys/types.h>
3962 #include <sys/param.h>
3967 #if BYTE_ORDER != BIG_ENDIAN
3975 rm -f conftest.$ac_objext
3976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3977 (eval $ac_compile) 2>conftest.er1
3979 grep -v '^ *+' conftest.er1 >conftest.err
3981 cat conftest.err >&5
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); } &&
3984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989 (exit $ac_status); }; } &&
3990 { ac_try='test -s conftest.$ac_objext'
3991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); }; }; then
3996 ac_cv_c_bigendian=yes
3998 echo "$as_me: failed program was:" >&5
3999 sed 's/^/| /' conftest.$ac_ext >&5
4001 ac_cv_c_bigendian=no
4003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4005 echo "$as_me: failed program was:" >&5
4006 sed 's/^/| /' conftest.$ac_ext >&5
4008 # It does not; compile a test program.
4009 if test "$cross_compiling" = yes; then
4010 # try to guess the endianness by grepping values into an object file
4011 ac_cv_c_bigendian=unknown
4012 cat >conftest.$ac_ext <<_ACEOF
4015 cat confdefs.h >>conftest.$ac_ext
4016 cat >>conftest.$ac_ext <<_ACEOF
4017 /* end confdefs.h. */
4018 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4019 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4020 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4021 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4022 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4023 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4027 _ascii (); _ebcdic ();
4032 rm -f conftest.$ac_objext
4033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4034 (eval $ac_compile) 2>conftest.er1
4036 grep -v '^ *+' conftest.er1 >conftest.err
4038 cat conftest.err >&5
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); } &&
4041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); }; } &&
4047 { ac_try='test -s conftest.$ac_objext'
4048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); }; }; then
4053 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4054 ac_cv_c_bigendian=yes
4056 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4057 if test "$ac_cv_c_bigendian" = unknown; then
4058 ac_cv_c_bigendian=no
4060 # finding both strings is unlikely to happen, but who knows?
4061 ac_cv_c_bigendian=unknown
4065 echo "$as_me: failed program was:" >&5
4066 sed 's/^/| /' conftest.$ac_ext >&5
4069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4071 cat >conftest.$ac_ext <<_ACEOF
4074 cat confdefs.h >>conftest.$ac_ext
4075 cat >>conftest.$ac_ext <<_ACEOF
4076 /* end confdefs.h. */
4080 /* Are we little or big endian? From Harbison&Steele. */
4084 char c[sizeof (long)];
4087 exit (u.c[sizeof (long) - 1] == 1);
4090 rm -f conftest$ac_exeext
4091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4092 (eval $ac_link) 2>&5
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100 (exit $ac_status); }; }; then
4101 ac_cv_c_bigendian=no
4103 echo "$as_me: program exited with status $ac_status" >&5
4104 echo "$as_me: failed program was:" >&5
4105 sed 's/^/| /' conftest.$ac_ext >&5
4108 ac_cv_c_bigendian=yes
4110 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4115 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4116 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4117 case $ac_cv_c_bigendian in
4120 cat >>confdefs.h <<\_ACEOF
4121 #define WORDS_BIGENDIAN 1
4127 { { echo "$as_me:$LINENO: error: unknown endianness
4128 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4129 echo "$as_me: error: unknown endianness
4130 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4131 { (exit 1); exit 1; }; } ;;
4134 echo "$as_me:$LINENO: checking for size_t" >&5
4135 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4136 if test "${ac_cv_type_size_t+set}" = set; then
4137 echo $ECHO_N "(cached) $ECHO_C" >&6
4139 cat >conftest.$ac_ext <<_ACEOF
4142 cat confdefs.h >>conftest.$ac_ext
4143 cat >>conftest.$ac_ext <<_ACEOF
4144 /* end confdefs.h. */
4145 $ac_includes_default
4151 if (sizeof (size_t))
4157 rm -f conftest.$ac_objext
4158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4159 (eval $ac_compile) 2>conftest.er1
4161 grep -v '^ *+' conftest.er1 >conftest.err
4163 cat conftest.err >&5
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); } &&
4166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); }; } &&
4172 { ac_try='test -s conftest.$ac_objext'
4173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); }; }; then
4178 ac_cv_type_size_t=yes
4180 echo "$as_me: failed program was:" >&5
4181 sed 's/^/| /' conftest.$ac_ext >&5
4183 ac_cv_type_size_t=no
4185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4187 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4188 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4189 if test $ac_cv_type_size_t = yes; then
4193 cat >>confdefs.h <<_ACEOF
4194 #define size_t unsigned
4199 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4200 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4201 if test "${ac_cv_header_time+set}" = set; then
4202 echo $ECHO_N "(cached) $ECHO_C" >&6
4204 cat >conftest.$ac_ext <<_ACEOF
4207 cat confdefs.h >>conftest.$ac_ext
4208 cat >>conftest.$ac_ext <<_ACEOF
4209 /* end confdefs.h. */
4210 #include <sys/types.h>
4211 #include <sys/time.h>
4217 if ((struct tm *) 0)
4223 rm -f conftest.$ac_objext
4224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4225 (eval $ac_compile) 2>conftest.er1
4227 grep -v '^ *+' conftest.er1 >conftest.err
4229 cat conftest.err >&5
4230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231 (exit $ac_status); } &&
4232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); }; } &&
4238 { ac_try='test -s conftest.$ac_objext'
4239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); }; }; then
4244 ac_cv_header_time=yes
4246 echo "$as_me: failed program was:" >&5
4247 sed 's/^/| /' conftest.$ac_ext >&5
4249 ac_cv_header_time=no
4251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4253 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4254 echo "${ECHO_T}$ac_cv_header_time" >&6
4255 if test $ac_cv_header_time = yes; then
4257 cat >>confdefs.h <<\_ACEOF
4258 #define TIME_WITH_SYS_TIME 1
4263 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4264 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4265 if test "${ac_cv_struct_tm+set}" = set; then
4266 echo $ECHO_N "(cached) $ECHO_C" >&6
4268 cat >conftest.$ac_ext <<_ACEOF
4271 cat confdefs.h >>conftest.$ac_ext
4272 cat >>conftest.$ac_ext <<_ACEOF
4273 /* end confdefs.h. */
4274 #include <sys/types.h>
4280 struct tm *tp; tp->tm_sec;
4285 rm -f conftest.$ac_objext
4286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4287 (eval $ac_compile) 2>conftest.er1
4289 grep -v '^ *+' conftest.er1 >conftest.err
4291 cat conftest.err >&5
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); } &&
4294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); }; } &&
4300 { ac_try='test -s conftest.$ac_objext'
4301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); }; }; then
4306 ac_cv_struct_tm=time.h
4308 echo "$as_me: failed program was:" >&5
4309 sed 's/^/| /' conftest.$ac_ext >&5
4311 ac_cv_struct_tm=sys/time.h
4313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4315 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4316 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4317 if test $ac_cv_struct_tm = sys/time.h; then
4319 cat >>confdefs.h <<\_ACEOF
4320 #define TM_IN_SYS_TIME 1
4325 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
4326 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
4327 if test "${ac_cv_type_uid_t+set}" = set; then
4328 echo $ECHO_N "(cached) $ECHO_C" >&6
4330 cat >conftest.$ac_ext <<_ACEOF
4333 cat confdefs.h >>conftest.$ac_ext
4334 cat >>conftest.$ac_ext <<_ACEOF
4335 /* end confdefs.h. */
4336 #include <sys/types.h>
4339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4340 $EGREP "uid_t" >/dev/null 2>&1; then
4341 ac_cv_type_uid_t=yes
4348 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
4349 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
4350 if test $ac_cv_type_uid_t = no; then
4352 cat >>confdefs.h <<\_ACEOF
4357 cat >>confdefs.h <<\_ACEOF
4363 echo "$as_me:$LINENO: checking for short" >&5
4364 echo $ECHO_N "checking for short... $ECHO_C" >&6
4365 if test "${ac_cv_type_short+set}" = set; then
4366 echo $ECHO_N "(cached) $ECHO_C" >&6
4368 cat >conftest.$ac_ext <<_ACEOF
4371 cat confdefs.h >>conftest.$ac_ext
4372 cat >>conftest.$ac_ext <<_ACEOF
4373 /* end confdefs.h. */
4374 $ac_includes_default
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" || test ! -s conftest.err'
4396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); }; } &&
4401 { ac_try='test -s conftest.$ac_objext'
4402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); }; }; then
4407 ac_cv_type_short=yes
4409 echo "$as_me: failed program was:" >&5
4410 sed 's/^/| /' conftest.$ac_ext >&5
4414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4416 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4417 echo "${ECHO_T}$ac_cv_type_short" >&6
4419 echo "$as_me:$LINENO: checking size of short" >&5
4420 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4421 if test "${ac_cv_sizeof_short+set}" = set; then
4422 echo $ECHO_N "(cached) $ECHO_C" >&6
4424 if test "$ac_cv_type_short" = yes; then
4425 # The cast to unsigned long works around a bug in the HP C Compiler
4426 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4427 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4428 # This bug is HP SR number 8606223364.
4429 if test "$cross_compiling" = yes; then
4430 # Depending upon the size, compute the lo and hi bounds.
4431 cat >conftest.$ac_ext <<_ACEOF
4434 cat confdefs.h >>conftest.$ac_ext
4435 cat >>conftest.$ac_ext <<_ACEOF
4436 /* end confdefs.h. */
4437 $ac_includes_default
4441 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4448 rm -f conftest.$ac_objext
4449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4450 (eval $ac_compile) 2>conftest.er1
4452 grep -v '^ *+' conftest.er1 >conftest.err
4454 cat conftest.err >&5
4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); } &&
4457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462 (exit $ac_status); }; } &&
4463 { ac_try='test -s conftest.$ac_objext'
4464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); }; }; then
4471 cat >conftest.$ac_ext <<_ACEOF
4474 cat confdefs.h >>conftest.$ac_ext
4475 cat >>conftest.$ac_ext <<_ACEOF
4476 /* end confdefs.h. */
4477 $ac_includes_default
4481 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4488 rm -f conftest.$ac_objext
4489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4490 (eval $ac_compile) 2>conftest.er1
4492 grep -v '^ *+' conftest.er1 >conftest.err
4494 cat conftest.err >&5
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); } &&
4497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); }; } &&
4503 { ac_try='test -s conftest.$ac_objext'
4504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508 (exit $ac_status); }; }; then
4509 ac_hi=$ac_mid; break
4511 echo "$as_me: failed program was:" >&5
4512 sed 's/^/| /' conftest.$ac_ext >&5
4514 ac_lo=`expr $ac_mid + 1`
4515 if test $ac_lo -le $ac_mid; then
4519 ac_mid=`expr 2 '*' $ac_mid + 1`
4521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4524 echo "$as_me: failed program was:" >&5
4525 sed 's/^/| /' conftest.$ac_ext >&5
4527 cat >conftest.$ac_ext <<_ACEOF
4530 cat confdefs.h >>conftest.$ac_ext
4531 cat >>conftest.$ac_ext <<_ACEOF
4532 /* end confdefs.h. */
4533 $ac_includes_default
4537 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4544 rm -f conftest.$ac_objext
4545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4546 (eval $ac_compile) 2>conftest.er1
4548 grep -v '^ *+' conftest.er1 >conftest.err
4550 cat conftest.err >&5
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); } &&
4553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); }; } &&
4559 { ac_try='test -s conftest.$ac_objext'
4560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); }; }; then
4567 cat >conftest.$ac_ext <<_ACEOF
4570 cat confdefs.h >>conftest.$ac_ext
4571 cat >>conftest.$ac_ext <<_ACEOF
4572 /* end confdefs.h. */
4573 $ac_includes_default
4577 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4584 rm -f conftest.$ac_objext
4585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4586 (eval $ac_compile) 2>conftest.er1
4588 grep -v '^ *+' conftest.er1 >conftest.err
4590 cat conftest.err >&5
4591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592 (exit $ac_status); } &&
4593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); }; } &&
4599 { ac_try='test -s conftest.$ac_objext'
4600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); }; }; then
4605 ac_lo=$ac_mid; break
4607 echo "$as_me: failed program was:" >&5
4608 sed 's/^/| /' conftest.$ac_ext >&5
4610 ac_hi=`expr '(' $ac_mid ')' - 1`
4611 if test $ac_mid -le $ac_hi; then
4615 ac_mid=`expr 2 '*' $ac_mid`
4617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4620 echo "$as_me: failed program was:" >&5
4621 sed 's/^/| /' conftest.$ac_ext >&5
4625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4628 # Binary search between lo and hi bounds.
4629 while test "x$ac_lo" != "x$ac_hi"; do
4630 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4631 cat >conftest.$ac_ext <<_ACEOF
4634 cat confdefs.h >>conftest.$ac_ext
4635 cat >>conftest.$ac_ext <<_ACEOF
4636 /* end confdefs.h. */
4637 $ac_includes_default
4641 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4648 rm -f conftest.$ac_objext
4649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4650 (eval $ac_compile) 2>conftest.er1
4652 grep -v '^ *+' conftest.er1 >conftest.err
4654 cat conftest.err >&5
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); } &&
4657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662 (exit $ac_status); }; } &&
4663 { ac_try='test -s conftest.$ac_objext'
4664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); }; }; then
4671 echo "$as_me: failed program was:" >&5
4672 sed 's/^/| /' conftest.$ac_ext >&5
4674 ac_lo=`expr '(' $ac_mid ')' + 1`
4676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4679 ?*) ac_cv_sizeof_short=$ac_lo;;
4680 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4681 See \`config.log' for more details." >&5
4682 echo "$as_me: error: cannot compute sizeof (short), 77
4683 See \`config.log' for more details." >&2;}
4684 { (exit 1); exit 1; }; } ;;
4687 if test "$cross_compiling" = yes; then
4688 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4689 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4690 { (exit 1); exit 1; }; }
4692 cat >conftest.$ac_ext <<_ACEOF
4695 cat confdefs.h >>conftest.$ac_ext
4696 cat >>conftest.$ac_ext <<_ACEOF
4697 /* end confdefs.h. */
4698 $ac_includes_default
4699 long longval () { return (long) (sizeof (short)); }
4700 unsigned long ulongval () { return (long) (sizeof (short)); }
4707 FILE *f = fopen ("conftest.val", "w");
4710 if (((long) (sizeof (short))) < 0)
4712 long i = longval ();
4713 if (i != ((long) (sizeof (short))))
4715 fprintf (f, "%ld\n", i);
4719 unsigned long i = ulongval ();
4720 if (i != ((long) (sizeof (short))))
4722 fprintf (f, "%lu\n", i);
4724 exit (ferror (f) || fclose (f) != 0);
4730 rm -f conftest$ac_exeext
4731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4732 (eval $ac_link) 2>&5
4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740 (exit $ac_status); }; }; then
4741 ac_cv_sizeof_short=`cat conftest.val`
4743 echo "$as_me: program exited with status $ac_status" >&5
4744 echo "$as_me: failed program was:" >&5
4745 sed 's/^/| /' conftest.$ac_ext >&5
4748 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4749 See \`config.log' for more details." >&5
4750 echo "$as_me: error: cannot compute sizeof (short), 77
4751 See \`config.log' for more details." >&2;}
4752 { (exit 1); exit 1; }; }
4754 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4759 ac_cv_sizeof_short=0
4762 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4763 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4764 cat >>confdefs.h <<_ACEOF
4765 #define SIZEOF_SHORT $ac_cv_sizeof_short
4769 echo "$as_me:$LINENO: checking for int" >&5
4770 echo $ECHO_N "checking for int... $ECHO_C" >&6
4771 if test "${ac_cv_type_int+set}" = set; then
4772 echo $ECHO_N "(cached) $ECHO_C" >&6
4774 cat >conftest.$ac_ext <<_ACEOF
4777 cat confdefs.h >>conftest.$ac_ext
4778 cat >>conftest.$ac_ext <<_ACEOF
4779 /* end confdefs.h. */
4780 $ac_includes_default
4792 rm -f conftest.$ac_objext
4793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4794 (eval $ac_compile) 2>conftest.er1
4796 grep -v '^ *+' conftest.er1 >conftest.err
4798 cat conftest.err >&5
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); } &&
4801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); }; } &&
4807 { ac_try='test -s conftest.$ac_objext'
4808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812 (exit $ac_status); }; }; then
4815 echo "$as_me: failed program was:" >&5
4816 sed 's/^/| /' conftest.$ac_ext >&5
4820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4822 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4823 echo "${ECHO_T}$ac_cv_type_int" >&6
4825 echo "$as_me:$LINENO: checking size of int" >&5
4826 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4827 if test "${ac_cv_sizeof_int+set}" = set; then
4828 echo $ECHO_N "(cached) $ECHO_C" >&6
4830 if test "$ac_cv_type_int" = yes; then
4831 # The cast to unsigned long works around a bug in the HP C Compiler
4832 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4833 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4834 # This bug is HP SR number 8606223364.
4835 if test "$cross_compiling" = yes; then
4836 # Depending upon the size, compute the lo and hi bounds.
4837 cat >conftest.$ac_ext <<_ACEOF
4840 cat confdefs.h >>conftest.$ac_ext
4841 cat >>conftest.$ac_ext <<_ACEOF
4842 /* end confdefs.h. */
4843 $ac_includes_default
4847 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4854 rm -f conftest.$ac_objext
4855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4856 (eval $ac_compile) 2>conftest.er1
4858 grep -v '^ *+' conftest.er1 >conftest.err
4860 cat conftest.err >&5
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); } &&
4863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); }; } &&
4869 { ac_try='test -s conftest.$ac_objext'
4870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); }; }; then
4877 cat >conftest.$ac_ext <<_ACEOF
4880 cat confdefs.h >>conftest.$ac_ext
4881 cat >>conftest.$ac_ext <<_ACEOF
4882 /* end confdefs.h. */
4883 $ac_includes_default
4887 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4894 rm -f conftest.$ac_objext
4895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4896 (eval $ac_compile) 2>conftest.er1
4898 grep -v '^ *+' conftest.er1 >conftest.err
4900 cat conftest.err >&5
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); } &&
4903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908 (exit $ac_status); }; } &&
4909 { ac_try='test -s conftest.$ac_objext'
4910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914 (exit $ac_status); }; }; then
4915 ac_hi=$ac_mid; break
4917 echo "$as_me: failed program was:" >&5
4918 sed 's/^/| /' conftest.$ac_ext >&5
4920 ac_lo=`expr $ac_mid + 1`
4921 if test $ac_lo -le $ac_mid; then
4925 ac_mid=`expr 2 '*' $ac_mid + 1`
4927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4930 echo "$as_me: failed program was:" >&5
4931 sed 's/^/| /' conftest.$ac_ext >&5
4933 cat >conftest.$ac_ext <<_ACEOF
4936 cat confdefs.h >>conftest.$ac_ext
4937 cat >>conftest.$ac_ext <<_ACEOF
4938 /* end confdefs.h. */
4939 $ac_includes_default
4943 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4950 rm -f conftest.$ac_objext
4951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4952 (eval $ac_compile) 2>conftest.er1
4954 grep -v '^ *+' conftest.er1 >conftest.err
4956 cat conftest.err >&5
4957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958 (exit $ac_status); } &&
4959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); }; } &&
4965 { ac_try='test -s conftest.$ac_objext'
4966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970 (exit $ac_status); }; }; then
4973 cat >conftest.$ac_ext <<_ACEOF
4976 cat confdefs.h >>conftest.$ac_ext
4977 cat >>conftest.$ac_ext <<_ACEOF
4978 /* end confdefs.h. */
4979 $ac_includes_default
4983 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4990 rm -f conftest.$ac_objext
4991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4992 (eval $ac_compile) 2>conftest.er1
4994 grep -v '^ *+' conftest.er1 >conftest.err
4996 cat conftest.err >&5
4997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998 (exit $ac_status); } &&
4999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004 (exit $ac_status); }; } &&
5005 { ac_try='test -s conftest.$ac_objext'
5006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); }; }; then
5011 ac_lo=$ac_mid; break
5013 echo "$as_me: failed program was:" >&5
5014 sed 's/^/| /' conftest.$ac_ext >&5
5016 ac_hi=`expr '(' $ac_mid ')' - 1`
5017 if test $ac_mid -le $ac_hi; then
5021 ac_mid=`expr 2 '*' $ac_mid`
5023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5026 echo "$as_me: failed program was:" >&5
5027 sed 's/^/| /' conftest.$ac_ext >&5
5031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5034 # Binary search between lo and hi bounds.
5035 while test "x$ac_lo" != "x$ac_hi"; do
5036 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5037 cat >conftest.$ac_ext <<_ACEOF
5040 cat confdefs.h >>conftest.$ac_ext
5041 cat >>conftest.$ac_ext <<_ACEOF
5042 /* end confdefs.h. */
5043 $ac_includes_default
5047 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5054 rm -f conftest.$ac_objext
5055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5056 (eval $ac_compile) 2>conftest.er1
5058 grep -v '^ *+' conftest.er1 >conftest.err
5060 cat conftest.err >&5
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); } &&
5063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); }; } &&
5069 { ac_try='test -s conftest.$ac_objext'
5070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); }; }; then
5077 echo "$as_me: failed program was:" >&5
5078 sed 's/^/| /' conftest.$ac_ext >&5
5080 ac_lo=`expr '(' $ac_mid ')' + 1`
5082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5085 ?*) ac_cv_sizeof_int=$ac_lo;;
5086 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5087 See \`config.log' for more details." >&5
5088 echo "$as_me: error: cannot compute sizeof (int), 77
5089 See \`config.log' for more details." >&2;}
5090 { (exit 1); exit 1; }; } ;;
5093 if test "$cross_compiling" = yes; then
5094 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5095 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5096 { (exit 1); exit 1; }; }
5098 cat >conftest.$ac_ext <<_ACEOF
5101 cat confdefs.h >>conftest.$ac_ext
5102 cat >>conftest.$ac_ext <<_ACEOF
5103 /* end confdefs.h. */
5104 $ac_includes_default
5105 long longval () { return (long) (sizeof (int)); }
5106 unsigned long ulongval () { return (long) (sizeof (int)); }
5113 FILE *f = fopen ("conftest.val", "w");
5116 if (((long) (sizeof (int))) < 0)
5118 long i = longval ();
5119 if (i != ((long) (sizeof (int))))
5121 fprintf (f, "%ld\n", i);
5125 unsigned long i = ulongval ();
5126 if (i != ((long) (sizeof (int))))
5128 fprintf (f, "%lu\n", i);
5130 exit (ferror (f) || fclose (f) != 0);
5136 rm -f conftest$ac_exeext
5137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5138 (eval $ac_link) 2>&5
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146 (exit $ac_status); }; }; then
5147 ac_cv_sizeof_int=`cat conftest.val`
5149 echo "$as_me: program exited with status $ac_status" >&5
5150 echo "$as_me: failed program was:" >&5
5151 sed 's/^/| /' conftest.$ac_ext >&5
5154 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5155 See \`config.log' for more details." >&5
5156 echo "$as_me: error: cannot compute sizeof (int), 77
5157 See \`config.log' for more details." >&2;}
5158 { (exit 1); exit 1; }; }
5160 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5168 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5169 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5170 cat >>confdefs.h <<_ACEOF
5171 #define SIZEOF_INT $ac_cv_sizeof_int
5175 echo "$as_me:$LINENO: checking for long" >&5
5176 echo $ECHO_N "checking for long... $ECHO_C" >&6
5177 if test "${ac_cv_type_long+set}" = set; then
5178 echo $ECHO_N "(cached) $ECHO_C" >&6
5180 cat >conftest.$ac_ext <<_ACEOF
5183 cat confdefs.h >>conftest.$ac_ext
5184 cat >>conftest.$ac_ext <<_ACEOF
5185 /* end confdefs.h. */
5186 $ac_includes_default
5198 rm -f conftest.$ac_objext
5199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5200 (eval $ac_compile) 2>conftest.er1
5202 grep -v '^ *+' conftest.er1 >conftest.err
5204 cat conftest.err >&5
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); } &&
5207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212 (exit $ac_status); }; } &&
5213 { ac_try='test -s conftest.$ac_objext'
5214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218 (exit $ac_status); }; }; then
5221 echo "$as_me: failed program was:" >&5
5222 sed 's/^/| /' conftest.$ac_ext >&5
5226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5228 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5229 echo "${ECHO_T}$ac_cv_type_long" >&6
5231 echo "$as_me:$LINENO: checking size of long" >&5
5232 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5233 if test "${ac_cv_sizeof_long+set}" = set; then
5234 echo $ECHO_N "(cached) $ECHO_C" >&6
5236 if test "$ac_cv_type_long" = yes; then
5237 # The cast to unsigned long works around a bug in the HP C Compiler
5238 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5239 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5240 # This bug is HP SR number 8606223364.
5241 if test "$cross_compiling" = yes; then
5242 # Depending upon the size, compute the lo and hi bounds.
5243 cat >conftest.$ac_ext <<_ACEOF
5246 cat confdefs.h >>conftest.$ac_ext
5247 cat >>conftest.$ac_ext <<_ACEOF
5248 /* end confdefs.h. */
5249 $ac_includes_default
5253 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5260 rm -f conftest.$ac_objext
5261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5262 (eval $ac_compile) 2>conftest.er1
5264 grep -v '^ *+' conftest.er1 >conftest.err
5266 cat conftest.err >&5
5267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268 (exit $ac_status); } &&
5269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); }; } &&
5275 { ac_try='test -s conftest.$ac_objext'
5276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); }; }; then
5283 cat >conftest.$ac_ext <<_ACEOF
5286 cat confdefs.h >>conftest.$ac_ext
5287 cat >>conftest.$ac_ext <<_ACEOF
5288 /* end confdefs.h. */
5289 $ac_includes_default
5293 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5300 rm -f conftest.$ac_objext
5301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5302 (eval $ac_compile) 2>conftest.er1
5304 grep -v '^ *+' conftest.er1 >conftest.err
5306 cat conftest.err >&5
5307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308 (exit $ac_status); } &&
5309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314 (exit $ac_status); }; } &&
5315 { ac_try='test -s conftest.$ac_objext'
5316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320 (exit $ac_status); }; }; then
5321 ac_hi=$ac_mid; break
5323 echo "$as_me: failed program was:" >&5
5324 sed 's/^/| /' conftest.$ac_ext >&5
5326 ac_lo=`expr $ac_mid + 1`
5327 if test $ac_lo -le $ac_mid; then
5331 ac_mid=`expr 2 '*' $ac_mid + 1`
5333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5336 echo "$as_me: failed program was:" >&5
5337 sed 's/^/| /' conftest.$ac_ext >&5
5339 cat >conftest.$ac_ext <<_ACEOF
5342 cat confdefs.h >>conftest.$ac_ext
5343 cat >>conftest.$ac_ext <<_ACEOF
5344 /* end confdefs.h. */
5345 $ac_includes_default
5349 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5356 rm -f conftest.$ac_objext
5357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5358 (eval $ac_compile) 2>conftest.er1
5360 grep -v '^ *+' conftest.er1 >conftest.err
5362 cat conftest.err >&5
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); } &&
5365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); }; } &&
5371 { ac_try='test -s conftest.$ac_objext'
5372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376 (exit $ac_status); }; }; then
5379 cat >conftest.$ac_ext <<_ACEOF
5382 cat confdefs.h >>conftest.$ac_ext
5383 cat >>conftest.$ac_ext <<_ACEOF
5384 /* end confdefs.h. */
5385 $ac_includes_default
5389 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5396 rm -f conftest.$ac_objext
5397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5398 (eval $ac_compile) 2>conftest.er1
5400 grep -v '^ *+' conftest.er1 >conftest.err
5402 cat conftest.err >&5
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); } &&
5405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); }; } &&
5411 { ac_try='test -s conftest.$ac_objext'
5412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); }; }; then
5417 ac_lo=$ac_mid; break
5419 echo "$as_me: failed program was:" >&5
5420 sed 's/^/| /' conftest.$ac_ext >&5
5422 ac_hi=`expr '(' $ac_mid ')' - 1`
5423 if test $ac_mid -le $ac_hi; then
5427 ac_mid=`expr 2 '*' $ac_mid`
5429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5432 echo "$as_me: failed program was:" >&5
5433 sed 's/^/| /' conftest.$ac_ext >&5
5437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5440 # Binary search between lo and hi bounds.
5441 while test "x$ac_lo" != "x$ac_hi"; do
5442 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5443 cat >conftest.$ac_ext <<_ACEOF
5446 cat confdefs.h >>conftest.$ac_ext
5447 cat >>conftest.$ac_ext <<_ACEOF
5448 /* end confdefs.h. */
5449 $ac_includes_default
5453 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5460 rm -f conftest.$ac_objext
5461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5462 (eval $ac_compile) 2>conftest.er1
5464 grep -v '^ *+' conftest.er1 >conftest.err
5466 cat conftest.err >&5
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); } &&
5469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); }; } &&
5475 { ac_try='test -s conftest.$ac_objext'
5476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480 (exit $ac_status); }; }; then
5483 echo "$as_me: failed program was:" >&5
5484 sed 's/^/| /' conftest.$ac_ext >&5
5486 ac_lo=`expr '(' $ac_mid ')' + 1`
5488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5491 ?*) ac_cv_sizeof_long=$ac_lo;;
5492 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5493 See \`config.log' for more details." >&5
5494 echo "$as_me: error: cannot compute sizeof (long), 77
5495 See \`config.log' for more details." >&2;}
5496 { (exit 1); exit 1; }; } ;;
5499 if test "$cross_compiling" = yes; then
5500 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5501 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5502 { (exit 1); exit 1; }; }
5504 cat >conftest.$ac_ext <<_ACEOF
5507 cat confdefs.h >>conftest.$ac_ext
5508 cat >>conftest.$ac_ext <<_ACEOF
5509 /* end confdefs.h. */
5510 $ac_includes_default
5511 long longval () { return (long) (sizeof (long)); }
5512 unsigned long ulongval () { return (long) (sizeof (long)); }
5519 FILE *f = fopen ("conftest.val", "w");
5522 if (((long) (sizeof (long))) < 0)
5524 long i = longval ();
5525 if (i != ((long) (sizeof (long))))
5527 fprintf (f, "%ld\n", i);
5531 unsigned long i = ulongval ();
5532 if (i != ((long) (sizeof (long))))
5534 fprintf (f, "%lu\n", i);
5536 exit (ferror (f) || fclose (f) != 0);
5542 rm -f conftest$ac_exeext
5543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5544 (eval $ac_link) 2>&5
5546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552 (exit $ac_status); }; }; then
5553 ac_cv_sizeof_long=`cat conftest.val`
5555 echo "$as_me: program exited with status $ac_status" >&5
5556 echo "$as_me: failed program was:" >&5
5557 sed 's/^/| /' conftest.$ac_ext >&5
5560 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5561 See \`config.log' for more details." >&5
5562 echo "$as_me: error: cannot compute sizeof (long), 77
5563 See \`config.log' for more details." >&2;}
5564 { (exit 1); exit 1; }; }
5566 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5574 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5575 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5576 cat >>confdefs.h <<_ACEOF
5577 #define SIZEOF_LONG $ac_cv_sizeof_long
5581 echo "$as_me:$LINENO: checking for void *" >&5
5582 echo $ECHO_N "checking for void *... $ECHO_C" >&6
5583 if test "${ac_cv_type_void_p+set}" = set; then
5584 echo $ECHO_N "(cached) $ECHO_C" >&6
5586 cat >conftest.$ac_ext <<_ACEOF
5589 cat confdefs.h >>conftest.$ac_ext
5590 cat >>conftest.$ac_ext <<_ACEOF
5591 /* end confdefs.h. */
5592 $ac_includes_default
5598 if (sizeof (void *))
5604 rm -f conftest.$ac_objext
5605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5606 (eval $ac_compile) 2>conftest.er1
5608 grep -v '^ *+' conftest.er1 >conftest.err
5610 cat conftest.err >&5
5611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612 (exit $ac_status); } &&
5613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618 (exit $ac_status); }; } &&
5619 { ac_try='test -s conftest.$ac_objext'
5620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624 (exit $ac_status); }; }; then
5625 ac_cv_type_void_p=yes
5627 echo "$as_me: failed program was:" >&5
5628 sed 's/^/| /' conftest.$ac_ext >&5
5630 ac_cv_type_void_p=no
5632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5634 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
5635 echo "${ECHO_T}$ac_cv_type_void_p" >&6
5637 echo "$as_me:$LINENO: checking size of void *" >&5
5638 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
5639 if test "${ac_cv_sizeof_void_p+set}" = set; then
5640 echo $ECHO_N "(cached) $ECHO_C" >&6
5642 if test "$ac_cv_type_void_p" = yes; then
5643 # The cast to unsigned long works around a bug in the HP C Compiler
5644 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5645 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5646 # This bug is HP SR number 8606223364.
5647 if test "$cross_compiling" = yes; then
5648 # Depending upon the size, compute the lo and hi bounds.
5649 cat >conftest.$ac_ext <<_ACEOF
5652 cat confdefs.h >>conftest.$ac_ext
5653 cat >>conftest.$ac_ext <<_ACEOF
5654 /* end confdefs.h. */
5655 $ac_includes_default
5659 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
5666 rm -f conftest.$ac_objext
5667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5668 (eval $ac_compile) 2>conftest.er1
5670 grep -v '^ *+' conftest.er1 >conftest.err
5672 cat conftest.err >&5
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); } &&
5675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); }; } &&
5681 { ac_try='test -s conftest.$ac_objext'
5682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686 (exit $ac_status); }; }; then
5689 cat >conftest.$ac_ext <<_ACEOF
5692 cat confdefs.h >>conftest.$ac_ext
5693 cat >>conftest.$ac_ext <<_ACEOF
5694 /* end confdefs.h. */
5695 $ac_includes_default
5699 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
5706 rm -f conftest.$ac_objext
5707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5708 (eval $ac_compile) 2>conftest.er1
5710 grep -v '^ *+' conftest.er1 >conftest.err
5712 cat conftest.err >&5
5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714 (exit $ac_status); } &&
5715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); }; } &&
5721 { ac_try='test -s conftest.$ac_objext'
5722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); }; }; then
5727 ac_hi=$ac_mid; break
5729 echo "$as_me: failed program was:" >&5
5730 sed 's/^/| /' conftest.$ac_ext >&5
5732 ac_lo=`expr $ac_mid + 1`
5733 if test $ac_lo -le $ac_mid; then
5737 ac_mid=`expr 2 '*' $ac_mid + 1`
5739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5742 echo "$as_me: failed program was:" >&5
5743 sed 's/^/| /' conftest.$ac_ext >&5
5745 cat >conftest.$ac_ext <<_ACEOF
5748 cat confdefs.h >>conftest.$ac_ext
5749 cat >>conftest.$ac_ext <<_ACEOF
5750 /* end confdefs.h. */
5751 $ac_includes_default
5755 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
5762 rm -f conftest.$ac_objext
5763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5764 (eval $ac_compile) 2>conftest.er1
5766 grep -v '^ *+' conftest.er1 >conftest.err
5768 cat conftest.err >&5
5769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); } &&
5771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776 (exit $ac_status); }; } &&
5777 { ac_try='test -s conftest.$ac_objext'
5778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); }; }; then
5785 cat >conftest.$ac_ext <<_ACEOF
5788 cat confdefs.h >>conftest.$ac_ext
5789 cat >>conftest.$ac_ext <<_ACEOF
5790 /* end confdefs.h. */
5791 $ac_includes_default
5795 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
5802 rm -f conftest.$ac_objext
5803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5804 (eval $ac_compile) 2>conftest.er1
5806 grep -v '^ *+' conftest.er1 >conftest.err
5808 cat conftest.err >&5
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); } &&
5811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); }; } &&
5817 { ac_try='test -s conftest.$ac_objext'
5818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822 (exit $ac_status); }; }; then
5823 ac_lo=$ac_mid; break
5825 echo "$as_me: failed program was:" >&5
5826 sed 's/^/| /' conftest.$ac_ext >&5
5828 ac_hi=`expr '(' $ac_mid ')' - 1`
5829 if test $ac_mid -le $ac_hi; then
5833 ac_mid=`expr 2 '*' $ac_mid`
5835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5838 echo "$as_me: failed program was:" >&5
5839 sed 's/^/| /' conftest.$ac_ext >&5
5843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5846 # Binary search between lo and hi bounds.
5847 while test "x$ac_lo" != "x$ac_hi"; do
5848 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5849 cat >conftest.$ac_ext <<_ACEOF
5852 cat confdefs.h >>conftest.$ac_ext
5853 cat >>conftest.$ac_ext <<_ACEOF
5854 /* end confdefs.h. */
5855 $ac_includes_default
5859 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
5866 rm -f conftest.$ac_objext
5867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5868 (eval $ac_compile) 2>conftest.er1
5870 grep -v '^ *+' conftest.er1 >conftest.err
5872 cat conftest.err >&5
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); } &&
5875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); }; } &&
5881 { ac_try='test -s conftest.$ac_objext'
5882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886 (exit $ac_status); }; }; then
5889 echo "$as_me: failed program was:" >&5
5890 sed 's/^/| /' conftest.$ac_ext >&5
5892 ac_lo=`expr '(' $ac_mid ')' + 1`
5894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5897 ?*) ac_cv_sizeof_void_p=$ac_lo;;
5898 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
5899 See \`config.log' for more details." >&5
5900 echo "$as_me: error: cannot compute sizeof (void *), 77
5901 See \`config.log' for more details." >&2;}
5902 { (exit 1); exit 1; }; } ;;
5905 if test "$cross_compiling" = yes; then
5906 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5907 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5908 { (exit 1); exit 1; }; }
5910 cat >conftest.$ac_ext <<_ACEOF
5913 cat confdefs.h >>conftest.$ac_ext
5914 cat >>conftest.$ac_ext <<_ACEOF
5915 /* end confdefs.h. */
5916 $ac_includes_default
5917 long longval () { return (long) (sizeof (void *)); }
5918 unsigned long ulongval () { return (long) (sizeof (void *)); }
5925 FILE *f = fopen ("conftest.val", "w");
5928 if (((long) (sizeof (void *))) < 0)
5930 long i = longval ();
5931 if (i != ((long) (sizeof (void *))))
5933 fprintf (f, "%ld\n", i);
5937 unsigned long i = ulongval ();
5938 if (i != ((long) (sizeof (void *))))
5940 fprintf (f, "%lu\n", i);
5942 exit (ferror (f) || fclose (f) != 0);
5948 rm -f conftest$ac_exeext
5949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5950 (eval $ac_link) 2>&5
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); }; }; then
5959 ac_cv_sizeof_void_p=`cat conftest.val`
5961 echo "$as_me: program exited with status $ac_status" >&5
5962 echo "$as_me: failed program was:" >&5
5963 sed 's/^/| /' conftest.$ac_ext >&5
5966 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
5967 See \`config.log' for more details." >&5
5968 echo "$as_me: error: cannot compute sizeof (void *), 77
5969 See \`config.log' for more details." >&2;}
5970 { (exit 1); exit 1; }; }
5972 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5977 ac_cv_sizeof_void_p=0
5980 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
5981 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
5982 cat >>confdefs.h <<_ACEOF
5983 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5987 if test "$ac_cv_sizeof_int" = 2 ; then
5988 echo "$as_me:$LINENO: checking for int16_t" >&5
5989 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
5990 if test "${ac_cv_type_int16_t+set}" = set; then
5991 echo $ECHO_N "(cached) $ECHO_C" >&6
5993 cat >conftest.$ac_ext <<_ACEOF
5996 cat confdefs.h >>conftest.$ac_ext
5997 cat >>conftest.$ac_ext <<_ACEOF
5998 /* end confdefs.h. */
5999 $ac_includes_default
6005 if (sizeof (int16_t))
6011 rm -f conftest.$ac_objext
6012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6013 (eval $ac_compile) 2>conftest.er1
6015 grep -v '^ *+' conftest.er1 >conftest.err
6017 cat conftest.err >&5
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); } &&
6020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025 (exit $ac_status); }; } &&
6026 { ac_try='test -s conftest.$ac_objext'
6027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); }; }; then
6032 ac_cv_type_int16_t=yes
6034 echo "$as_me: failed program was:" >&5
6035 sed 's/^/| /' conftest.$ac_ext >&5
6037 ac_cv_type_int16_t=no
6039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6041 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
6042 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
6043 if test $ac_cv_type_int16_t = yes; then
6047 cat >>confdefs.h <<_ACEOF
6053 echo "$as_me:$LINENO: checking for uint16_t" >&5
6054 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
6055 if test "${ac_cv_type_uint16_t+set}" = set; then
6056 echo $ECHO_N "(cached) $ECHO_C" >&6
6058 cat >conftest.$ac_ext <<_ACEOF
6061 cat confdefs.h >>conftest.$ac_ext
6062 cat >>conftest.$ac_ext <<_ACEOF
6063 /* end confdefs.h. */
6064 $ac_includes_default
6070 if (sizeof (uint16_t))
6076 rm -f conftest.$ac_objext
6077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6078 (eval $ac_compile) 2>conftest.er1
6080 grep -v '^ *+' conftest.er1 >conftest.err
6082 cat conftest.err >&5
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); } &&
6085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); }; } &&
6091 { ac_try='test -s conftest.$ac_objext'
6092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); }; }; then
6097 ac_cv_type_uint16_t=yes
6099 echo "$as_me: failed program was:" >&5
6100 sed 's/^/| /' conftest.$ac_ext >&5
6102 ac_cv_type_uint16_t=no
6104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6106 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
6107 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
6108 if test $ac_cv_type_uint16_t = yes; then
6112 cat >>confdefs.h <<_ACEOF
6113 #define uint16_t unsigned int
6118 elif test "$ac_cv_sizeof_short" = 2 ; then
6119 echo "$as_me:$LINENO: checking for int16_t" >&5
6120 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
6121 if test "${ac_cv_type_int16_t+set}" = set; then
6122 echo $ECHO_N "(cached) $ECHO_C" >&6
6124 cat >conftest.$ac_ext <<_ACEOF
6127 cat confdefs.h >>conftest.$ac_ext
6128 cat >>conftest.$ac_ext <<_ACEOF
6129 /* end confdefs.h. */
6130 $ac_includes_default
6136 if (sizeof (int16_t))
6142 rm -f conftest.$ac_objext
6143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6144 (eval $ac_compile) 2>conftest.er1
6146 grep -v '^ *+' conftest.er1 >conftest.err
6148 cat conftest.err >&5
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); } &&
6151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); }; } &&
6157 { ac_try='test -s conftest.$ac_objext'
6158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); }; }; then
6163 ac_cv_type_int16_t=yes
6165 echo "$as_me: failed program was:" >&5
6166 sed 's/^/| /' conftest.$ac_ext >&5
6168 ac_cv_type_int16_t=no
6170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6172 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
6173 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
6174 if test $ac_cv_type_int16_t = yes; then
6178 cat >>confdefs.h <<_ACEOF
6179 #define int16_t short
6184 echo "$as_me:$LINENO: checking for uint16_t" >&5
6185 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
6186 if test "${ac_cv_type_uint16_t+set}" = set; then
6187 echo $ECHO_N "(cached) $ECHO_C" >&6
6189 cat >conftest.$ac_ext <<_ACEOF
6192 cat confdefs.h >>conftest.$ac_ext
6193 cat >>conftest.$ac_ext <<_ACEOF
6194 /* end confdefs.h. */
6195 $ac_includes_default
6201 if (sizeof (uint16_t))
6207 rm -f conftest.$ac_objext
6208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6209 (eval $ac_compile) 2>conftest.er1
6211 grep -v '^ *+' conftest.er1 >conftest.err
6213 cat conftest.err >&5
6214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); } &&
6216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221 (exit $ac_status); }; } &&
6222 { ac_try='test -s conftest.$ac_objext'
6223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 (exit $ac_status); }; }; then
6228 ac_cv_type_uint16_t=yes
6230 echo "$as_me: failed program was:" >&5
6231 sed 's/^/| /' conftest.$ac_ext >&5
6233 ac_cv_type_uint16_t=no
6235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6237 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
6238 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
6239 if test $ac_cv_type_uint16_t = yes; then
6243 cat >>confdefs.h <<_ACEOF
6244 #define uint16_t unsigned short
6250 { { echo "$as_me:$LINENO: error: Cannot find a type with size of 16 bits" >&5
6251 echo "$as_me: error: Cannot find a type with size of 16 bits" >&2;}
6252 { (exit 1); exit 1; }; }
6254 if test "$ac_cv_sizeof_int" = 4 ; then
6255 echo "$as_me:$LINENO: checking for int32_t" >&5
6256 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
6257 if test "${ac_cv_type_int32_t+set}" = set; then
6258 echo $ECHO_N "(cached) $ECHO_C" >&6
6260 cat >conftest.$ac_ext <<_ACEOF
6263 cat confdefs.h >>conftest.$ac_ext
6264 cat >>conftest.$ac_ext <<_ACEOF
6265 /* end confdefs.h. */
6266 $ac_includes_default
6272 if (sizeof (int32_t))
6278 rm -f conftest.$ac_objext
6279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6280 (eval $ac_compile) 2>conftest.er1
6282 grep -v '^ *+' conftest.er1 >conftest.err
6284 cat conftest.err >&5
6285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); } &&
6287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292 (exit $ac_status); }; } &&
6293 { ac_try='test -s conftest.$ac_objext'
6294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298 (exit $ac_status); }; }; then
6299 ac_cv_type_int32_t=yes
6301 echo "$as_me: failed program was:" >&5
6302 sed 's/^/| /' conftest.$ac_ext >&5
6304 ac_cv_type_int32_t=no
6306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6308 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
6309 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
6310 if test $ac_cv_type_int32_t = yes; then
6314 cat >>confdefs.h <<_ACEOF
6320 echo "$as_me:$LINENO: checking for uint32_t" >&5
6321 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
6322 if test "${ac_cv_type_uint32_t+set}" = set; then
6323 echo $ECHO_N "(cached) $ECHO_C" >&6
6325 cat >conftest.$ac_ext <<_ACEOF
6328 cat confdefs.h >>conftest.$ac_ext
6329 cat >>conftest.$ac_ext <<_ACEOF
6330 /* end confdefs.h. */
6331 $ac_includes_default
6337 if (sizeof (uint32_t))
6343 rm -f conftest.$ac_objext
6344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6345 (eval $ac_compile) 2>conftest.er1
6347 grep -v '^ *+' conftest.er1 >conftest.err
6349 cat conftest.err >&5
6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351 (exit $ac_status); } &&
6352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); }; } &&
6358 { ac_try='test -s conftest.$ac_objext'
6359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); }; }; then
6364 ac_cv_type_uint32_t=yes
6366 echo "$as_me: failed program was:" >&5
6367 sed 's/^/| /' conftest.$ac_ext >&5
6369 ac_cv_type_uint32_t=no
6371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6373 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
6374 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
6375 if test $ac_cv_type_uint32_t = yes; then
6379 cat >>confdefs.h <<_ACEOF
6380 #define uint32_t unsigned int
6385 elif test "$ac_cv_sizeof_short" = 4 ; then
6386 echo "$as_me:$LINENO: checking for int32_t" >&5
6387 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
6388 if test "${ac_cv_type_int32_t+set}" = set; then
6389 echo $ECHO_N "(cached) $ECHO_C" >&6
6391 cat >conftest.$ac_ext <<_ACEOF
6394 cat confdefs.h >>conftest.$ac_ext
6395 cat >>conftest.$ac_ext <<_ACEOF
6396 /* end confdefs.h. */
6397 $ac_includes_default
6403 if (sizeof (int32_t))
6409 rm -f conftest.$ac_objext
6410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6411 (eval $ac_compile) 2>conftest.er1
6413 grep -v '^ *+' conftest.er1 >conftest.err
6415 cat conftest.err >&5
6416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417 (exit $ac_status); } &&
6418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423 (exit $ac_status); }; } &&
6424 { ac_try='test -s conftest.$ac_objext'
6425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); }; }; then
6430 ac_cv_type_int32_t=yes
6432 echo "$as_me: failed program was:" >&5
6433 sed 's/^/| /' conftest.$ac_ext >&5
6435 ac_cv_type_int32_t=no
6437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6439 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
6440 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
6441 if test $ac_cv_type_int32_t = yes; then
6445 cat >>confdefs.h <<_ACEOF
6446 #define int32_t short
6451 echo "$as_me:$LINENO: checking for uint32_t" >&5
6452 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
6453 if test "${ac_cv_type_uint32_t+set}" = set; then
6454 echo $ECHO_N "(cached) $ECHO_C" >&6
6456 cat >conftest.$ac_ext <<_ACEOF
6459 cat confdefs.h >>conftest.$ac_ext
6460 cat >>conftest.$ac_ext <<_ACEOF
6461 /* end confdefs.h. */
6462 $ac_includes_default
6468 if (sizeof (uint32_t))
6474 rm -f conftest.$ac_objext
6475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6476 (eval $ac_compile) 2>conftest.er1
6478 grep -v '^ *+' conftest.er1 >conftest.err
6480 cat conftest.err >&5
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); } &&
6483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488 (exit $ac_status); }; } &&
6489 { ac_try='test -s conftest.$ac_objext'
6490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494 (exit $ac_status); }; }; then
6495 ac_cv_type_uint32_t=yes
6497 echo "$as_me: failed program was:" >&5
6498 sed 's/^/| /' conftest.$ac_ext >&5
6500 ac_cv_type_uint32_t=no
6502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6504 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
6505 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
6506 if test $ac_cv_type_uint32_t = yes; then
6510 cat >>confdefs.h <<_ACEOF
6511 #define uint32_t unsigned short
6516 elif test "$ac_cv_sizeof_long" = 4 ; then
6517 echo "$as_me:$LINENO: checking for int32_t" >&5
6518 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
6519 if test "${ac_cv_type_int32_t+set}" = set; then
6520 echo $ECHO_N "(cached) $ECHO_C" >&6
6522 cat >conftest.$ac_ext <<_ACEOF
6525 cat confdefs.h >>conftest.$ac_ext
6526 cat >>conftest.$ac_ext <<_ACEOF
6527 /* end confdefs.h. */
6528 $ac_includes_default
6534 if (sizeof (int32_t))
6540 rm -f conftest.$ac_objext
6541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6542 (eval $ac_compile) 2>conftest.er1
6544 grep -v '^ *+' conftest.er1 >conftest.err
6546 cat conftest.err >&5
6547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548 (exit $ac_status); } &&
6549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6554 (exit $ac_status); }; } &&
6555 { ac_try='test -s conftest.$ac_objext'
6556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560 (exit $ac_status); }; }; then
6561 ac_cv_type_int32_t=yes
6563 echo "$as_me: failed program was:" >&5
6564 sed 's/^/| /' conftest.$ac_ext >&5
6566 ac_cv_type_int32_t=no
6568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6570 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
6571 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
6572 if test $ac_cv_type_int32_t = yes; then
6576 cat >>confdefs.h <<_ACEOF
6577 #define int32_t long
6582 echo "$as_me:$LINENO: checking for uint32_t" >&5
6583 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
6584 if test "${ac_cv_type_uint32_t+set}" = set; then
6585 echo $ECHO_N "(cached) $ECHO_C" >&6
6587 cat >conftest.$ac_ext <<_ACEOF
6590 cat confdefs.h >>conftest.$ac_ext
6591 cat >>conftest.$ac_ext <<_ACEOF
6592 /* end confdefs.h. */
6593 $ac_includes_default
6599 if (sizeof (uint32_t))
6605 rm -f conftest.$ac_objext
6606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6607 (eval $ac_compile) 2>conftest.er1
6609 grep -v '^ *+' conftest.er1 >conftest.err
6611 cat conftest.err >&5
6612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); } &&
6614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); }; } &&
6620 { ac_try='test -s conftest.$ac_objext'
6621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625 (exit $ac_status); }; }; then
6626 ac_cv_type_uint32_t=yes
6628 echo "$as_me: failed program was:" >&5
6629 sed 's/^/| /' conftest.$ac_ext >&5
6631 ac_cv_type_uint32_t=no
6633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6635 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
6636 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
6637 if test $ac_cv_type_uint32_t = yes; then
6641 cat >>confdefs.h <<_ACEOF
6642 #define uint32_t unsigned long
6648 { { echo "$as_me:$LINENO: error: Cannot find a type with size of 32 bits" >&5
6649 echo "$as_me: error: Cannot find a type with size of 32 bits" >&2;}
6650 { (exit 1); exit 1; }; }
6652 echo "$as_me:$LINENO: checking for socklen_t" >&5
6653 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
6654 if test "${ac_cv_type_socklen_t+set}" = set; then
6655 echo $ECHO_N "(cached) $ECHO_C" >&6
6657 cat >conftest.$ac_ext <<_ACEOF
6660 cat confdefs.h >>conftest.$ac_ext
6661 cat >>conftest.$ac_ext <<_ACEOF
6662 /* end confdefs.h. */
6663 $ac_includes_default
6667 if ((socklen_t *) 0)
6669 if (sizeof (socklen_t))
6675 rm -f conftest.$ac_objext
6676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6677 (eval $ac_compile) 2>conftest.er1
6679 grep -v '^ *+' conftest.er1 >conftest.err
6681 cat conftest.err >&5
6682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683 (exit $ac_status); } &&
6684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689 (exit $ac_status); }; } &&
6690 { ac_try='test -s conftest.$ac_objext'
6691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695 (exit $ac_status); }; }; then
6696 ac_cv_type_socklen_t=yes
6698 echo "$as_me: failed program was:" >&5
6699 sed 's/^/| /' conftest.$ac_ext >&5
6701 ac_cv_type_socklen_t=no
6703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6705 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
6706 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
6707 if test $ac_cv_type_socklen_t = yes; then
6711 cat >>confdefs.h <<_ACEOF
6712 #define socklen_t unsigned int
6717 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
6718 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
6719 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
6720 echo $ECHO_N "(cached) $ECHO_C" >&6
6722 cat >conftest.$ac_ext <<_ACEOF
6725 cat confdefs.h >>conftest.$ac_ext
6726 cat >>conftest.$ac_ext <<_ACEOF
6727 /* end confdefs.h. */
6728 #include <sys/types.h>
6729 #include <netinet/in.h>
6734 if ((struct sockaddr_in6 *) 0)
6736 if (sizeof (struct sockaddr_in6))
6742 rm -f conftest.$ac_objext
6743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6744 (eval $ac_compile) 2>conftest.er1
6746 grep -v '^ *+' conftest.er1 >conftest.err
6748 cat conftest.err >&5
6749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750 (exit $ac_status); } &&
6751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756 (exit $ac_status); }; } &&
6757 { ac_try='test -s conftest.$ac_objext'
6758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762 (exit $ac_status); }; }; then
6763 ac_cv_type_struct_sockaddr_in6=yes
6765 echo "$as_me: failed program was:" >&5
6766 sed 's/^/| /' conftest.$ac_ext >&5
6768 ac_cv_type_struct_sockaddr_in6=no
6770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6772 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
6773 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
6774 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
6775 unet_have_sockaddr_in6="yes"
6777 unet_have_sockaddr_in6="no"
6785 for ac_func in kqueue setrlimit getrusage times
6787 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6788 echo "$as_me:$LINENO: checking for $ac_func" >&5
6789 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6790 if eval "test \"\${$as_ac_var+set}\" = set"; then
6791 echo $ECHO_N "(cached) $ECHO_C" >&6
6793 cat >conftest.$ac_ext <<_ACEOF
6796 cat confdefs.h >>conftest.$ac_ext
6797 cat >>conftest.$ac_ext <<_ACEOF
6798 /* end confdefs.h. */
6799 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6800 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6801 #define $ac_func innocuous_$ac_func
6803 /* System header to define __stub macros and hopefully few prototypes,
6804 which can conflict with char $ac_func (); below.
6805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6806 <limits.h> exists even on freestanding compilers. */
6809 # include <limits.h>
6811 # include <assert.h>
6816 /* Override any gcc2 internal prototype to avoid an error. */
6821 /* We use char because int might match the return type of a gcc2
6822 builtin and then its argument prototype would still apply. */
6824 /* The GNU C library defines this for functions which it implements
6825 to always fail with ENOSYS. Some functions are actually named
6826 something starting with __ and the normal name is an alias. */
6827 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6830 char (*f) () = $ac_func;
6839 return f != $ac_func;
6844 rm -f conftest.$ac_objext conftest$ac_exeext
6845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6846 (eval $ac_link) 2>conftest.er1
6848 grep -v '^ *+' conftest.er1 >conftest.err
6850 cat conftest.err >&5
6851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852 (exit $ac_status); } &&
6853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858 (exit $ac_status); }; } &&
6859 { ac_try='test -s conftest$ac_exeext'
6860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864 (exit $ac_status); }; }; then
6865 eval "$as_ac_var=yes"
6867 echo "$as_me: failed program was:" >&5
6868 sed 's/^/| /' conftest.$ac_ext >&5
6870 eval "$as_ac_var=no"
6872 rm -f conftest.err conftest.$ac_objext \
6873 conftest$ac_exeext conftest.$ac_ext
6875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6876 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6877 if test `eval echo '${'$as_ac_var'}'` = yes; then
6878 cat >>confdefs.h <<_ACEOF
6879 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6886 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6887 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6888 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6889 echo $ECHO_N "(cached) $ECHO_C" >&6
6891 cat >conftest.$ac_ext <<_ACEOF
6894 cat confdefs.h >>conftest.$ac_ext
6895 cat >>conftest.$ac_ext <<_ACEOF
6896 /* end confdefs.h. */
6897 #include <sys/types.h>
6898 #include <sys/wait.h>
6900 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6903 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6911 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6916 rm -f conftest.$ac_objext
6917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6918 (eval $ac_compile) 2>conftest.er1
6920 grep -v '^ *+' conftest.er1 >conftest.err
6922 cat conftest.err >&5
6923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924 (exit $ac_status); } &&
6925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930 (exit $ac_status); }; } &&
6931 { ac_try='test -s conftest.$ac_objext'
6932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6936 (exit $ac_status); }; }; then
6937 ac_cv_header_sys_wait_h=yes
6939 echo "$as_me: failed program was:" >&5
6940 sed 's/^/| /' conftest.$ac_ext >&5
6942 ac_cv_header_sys_wait_h=no
6944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6946 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6947 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6948 if test $ac_cv_header_sys_wait_h = yes; then
6950 cat >>confdefs.h <<\_ACEOF
6951 #define HAVE_SYS_WAIT_H 1
6957 for ac_header in unistd.h
6959 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6961 echo "$as_me:$LINENO: checking for $ac_header" >&5
6962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6964 echo $ECHO_N "(cached) $ECHO_C" >&6
6966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6967 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6969 # Is the header compilable?
6970 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6971 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6972 cat >conftest.$ac_ext <<_ACEOF
6975 cat confdefs.h >>conftest.$ac_ext
6976 cat >>conftest.$ac_ext <<_ACEOF
6977 /* end confdefs.h. */
6978 $ac_includes_default
6979 #include <$ac_header>
6981 rm -f conftest.$ac_objext
6982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6983 (eval $ac_compile) 2>conftest.er1
6985 grep -v '^ *+' conftest.er1 >conftest.err
6987 cat conftest.err >&5
6988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989 (exit $ac_status); } &&
6990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995 (exit $ac_status); }; } &&
6996 { ac_try='test -s conftest.$ac_objext'
6997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001 (exit $ac_status); }; }; then
7002 ac_header_compiler=yes
7004 echo "$as_me: failed program was:" >&5
7005 sed 's/^/| /' conftest.$ac_ext >&5
7007 ac_header_compiler=no
7009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7010 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7011 echo "${ECHO_T}$ac_header_compiler" >&6
7013 # Is the header present?
7014 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7015 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7016 cat >conftest.$ac_ext <<_ACEOF
7019 cat confdefs.h >>conftest.$ac_ext
7020 cat >>conftest.$ac_ext <<_ACEOF
7021 /* end confdefs.h. */
7022 #include <$ac_header>
7024 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7025 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7027 grep -v '^ *+' conftest.er1 >conftest.err
7029 cat conftest.err >&5
7030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031 (exit $ac_status); } >/dev/null; then
7032 if test -s conftest.err; then
7033 ac_cpp_err=$ac_c_preproc_warn_flag
7034 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7041 if test -z "$ac_cpp_err"; then
7042 ac_header_preproc=yes
7044 echo "$as_me: failed program was:" >&5
7045 sed 's/^/| /' conftest.$ac_ext >&5
7047 ac_header_preproc=no
7049 rm -f conftest.err conftest.$ac_ext
7050 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7051 echo "${ECHO_T}$ac_header_preproc" >&6
7053 # So? What about this header?
7054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7056 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7057 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7059 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7060 ac_header_preproc=yes
7063 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7064 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7065 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7066 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7067 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7068 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7069 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7070 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7071 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7072 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7073 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7074 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7077 ## ------------------------------------------ ##
7078 ## Report this to the AC_PACKAGE_NAME lists. ##
7079 ## ------------------------------------------ ##
7082 sed "s/^/$as_me: WARNING: /" >&2
7085 echo "$as_me:$LINENO: checking for $ac_header" >&5
7086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7087 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7088 echo $ECHO_N "(cached) $ECHO_C" >&6
7090 eval "$as_ac_Header=\$ac_header_preproc"
7092 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7093 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7096 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7097 cat >>confdefs.h <<_ACEOF
7098 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7105 echo "$as_me:$LINENO: checking for restartable system calls" >&5
7106 echo $ECHO_N "checking for restartable system calls... $ECHO_C" >&6
7107 if test "${ac_cv_sys_restartable_syscalls+set}" = set; then
7108 echo $ECHO_N "(cached) $ECHO_C" >&6
7110 if test "$cross_compiling" = yes; then
7111 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7112 See \`config.log' for more details." >&5
7113 echo "$as_me: error: cannot run test program while cross compiling
7114 See \`config.log' for more details." >&2;}
7115 { (exit 1); exit 1; }; }
7117 cat >conftest.$ac_ext <<_ACEOF
7120 cat confdefs.h >>conftest.$ac_ext
7121 cat >>conftest.$ac_ext <<_ACEOF
7122 /* end confdefs.h. */
7123 /* Exit 0 (true) if wait returns something other than -1,
7124 i.e. the pid of the child, which means that wait was restarted
7125 after getting the signal. */
7127 #include <sys/types.h>
7130 # include <unistd.h>
7133 # include <sys/wait.h>
7136 /* Some platforms explicitly require an extern "C" signal handler
7139 extern "C" void ucatch (int dummy) { }
7141 void ucatch (dummy) int dummy; { }
7147 int i = fork (), status;
7152 kill (getppid (), SIGINT);
7157 signal (SIGINT, ucatch);
7163 exit (status == -1);
7166 rm -f conftest$ac_exeext
7167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7168 (eval $ac_link) 2>&5
7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176 (exit $ac_status); }; }; then
7177 ac_cv_sys_restartable_syscalls=yes
7179 echo "$as_me: program exited with status $ac_status" >&5
7180 echo "$as_me: failed program was:" >&5
7181 sed 's/^/| /' conftest.$ac_ext >&5
7184 ac_cv_sys_restartable_syscalls=no
7186 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7189 echo "$as_me:$LINENO: result: $ac_cv_sys_restartable_syscalls" >&5
7190 echo "${ECHO_T}$ac_cv_sys_restartable_syscalls" >&6
7191 if test $ac_cv_sys_restartable_syscalls = yes; then
7193 cat >>confdefs.h <<\_ACEOF
7194 #define HAVE_RESTARTABLE_SYSCALLS 1
7200 echo "$as_me:$LINENO: checking for donuts" >&5
7201 echo $ECHO_N "checking for donuts... $ECHO_C" >&6
7202 echo "$as_me:$LINENO: result: yes" >&5
7203 echo "${ECHO_T}yes" >&6
7205 for ac_prog in gawk mawk nawk awk
7207 # Extract the first word of "$ac_prog", so it can be a program name with args.
7208 set dummy $ac_prog; ac_word=$2
7209 echo "$as_me:$LINENO: checking for $ac_word" >&5
7210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7211 if test "${ac_cv_prog_AWK+set}" = set; then
7212 echo $ECHO_N "(cached) $ECHO_C" >&6
7214 if test -n "$AWK"; then
7215 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7221 test -z "$as_dir" && as_dir=.
7222 for ac_exec_ext in '' $ac_executable_extensions; do
7223 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7224 ac_cv_prog_AWK="$ac_prog"
7225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7234 if test -n "$AWK"; then
7235 echo "$as_me:$LINENO: result: $AWK" >&5
7236 echo "${ECHO_T}$AWK" >&6
7238 echo "$as_me:$LINENO: result: no" >&5
7239 echo "${ECHO_T}no" >&6
7242 test -n "$AWK" && break
7245 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7246 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7247 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7248 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7249 echo $ECHO_N "(cached) $ECHO_C" >&6
7251 cat >conftest.make <<\_ACEOF
7253 @echo 'ac_maketemp="$(MAKE)"'
7255 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7256 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7257 if test -n "$ac_maketemp"; then
7258 eval ac_cv_prog_make_${ac_make}_set=yes
7260 eval ac_cv_prog_make_${ac_make}_set=no
7264 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7265 echo "$as_me:$LINENO: result: yes" >&5
7266 echo "${ECHO_T}yes" >&6
7269 echo "$as_me:$LINENO: result: no" >&5
7270 echo "${ECHO_T}no" >&6
7271 SET_MAKE="MAKE=${MAKE-make}"
7274 # Find a good install program. We prefer a C program (faster),
7275 # so one script is as good as another. But avoid the broken or
7276 # incompatible versions:
7277 # SysV /etc/install, /usr/sbin/install
7278 # SunOS /usr/etc/install
7279 # IRIX /sbin/install
7281 # AmigaOS /C/install, which installs bootblocks on floppy discs
7282 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7283 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7284 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7285 # OS/2's system install, which has a completely different semantic
7286 # ./install, which can be erroneously created by make from ./install.sh.
7287 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7288 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
7289 if test -z "$INSTALL"; then
7290 if test "${ac_cv_path_install+set}" = set; then
7291 echo $ECHO_N "(cached) $ECHO_C" >&6
7293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7297 test -z "$as_dir" && as_dir=.
7298 # Account for people who put trailing slashes in PATH elements.
7300 ./ | .// | /cC/* | \
7301 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7302 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7305 # OSF1 and SCO ODT 3.0 have their own names for install.
7306 # Don't use installbsd from OSF since it installs stuff as root
7308 for ac_prog in ginstall scoinst install; do
7309 for ac_exec_ext in '' $ac_executable_extensions; do
7310 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7311 if test $ac_prog = install &&
7312 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7313 # AIX install. It has an incompatible calling convention.
7315 elif test $ac_prog = install &&
7316 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7317 # program-specific install script used by HP pwplus--don't use.
7320 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7332 if test "${ac_cv_path_install+set}" = set; then
7333 INSTALL=$ac_cv_path_install
7335 # As a last resort, use the slow shell script. We don't cache a
7336 # path for INSTALL within a source directory, because that will
7337 # break other packages using the cache if that directory is
7338 # removed, or if the path is relative.
7339 INSTALL=$ac_install_sh
7342 echo "$as_me:$LINENO: result: $INSTALL" >&5
7343 echo "${ECHO_T}$INSTALL" >&6
7345 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7346 # It thinks the first close brace ends the variable substitution.
7347 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7349 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7351 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7353 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7354 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7356 if test "$LN_S" = "ln -s"; then
7357 echo "$as_me:$LINENO: result: yes" >&5
7358 echo "${ECHO_T}yes" >&6
7360 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7361 echo "${ECHO_T}no, using $LN_S" >&6
7364 for ac_prog in flex lex
7366 # Extract the first word of "$ac_prog", so it can be a program name with args.
7367 set dummy $ac_prog; ac_word=$2
7368 echo "$as_me:$LINENO: checking for $ac_word" >&5
7369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7370 if test "${ac_cv_prog_LEX+set}" = set; then
7371 echo $ECHO_N "(cached) $ECHO_C" >&6
7373 if test -n "$LEX"; then
7374 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7380 test -z "$as_dir" && as_dir=.
7381 for ac_exec_ext in '' $ac_executable_extensions; do
7382 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7383 ac_cv_prog_LEX="$ac_prog"
7384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7393 if test -n "$LEX"; then
7394 echo "$as_me:$LINENO: result: $LEX" >&5
7395 echo "${ECHO_T}$LEX" >&6
7397 echo "$as_me:$LINENO: result: no" >&5
7398 echo "${ECHO_T}no" >&6
7401 test -n "$LEX" && break
7403 test -n "$LEX" || LEX=":"
7405 if test -z "$LEXLIB"
7407 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
7408 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
7409 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
7410 echo $ECHO_N "(cached) $ECHO_C" >&6
7412 ac_check_lib_save_LIBS=$LIBS
7414 cat >conftest.$ac_ext <<_ACEOF
7417 cat confdefs.h >>conftest.$ac_ext
7418 cat >>conftest.$ac_ext <<_ACEOF
7419 /* end confdefs.h. */
7421 /* Override any gcc2 internal prototype to avoid an error. */
7425 /* We use char because int might match the return type of a gcc2
7426 builtin and then its argument prototype would still apply. */
7436 rm -f conftest.$ac_objext conftest$ac_exeext
7437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7438 (eval $ac_link) 2>conftest.er1
7440 grep -v '^ *+' conftest.er1 >conftest.err
7442 cat conftest.err >&5
7443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444 (exit $ac_status); } &&
7445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450 (exit $ac_status); }; } &&
7451 { ac_try='test -s conftest$ac_exeext'
7452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456 (exit $ac_status); }; }; then
7457 ac_cv_lib_fl_yywrap=yes
7459 echo "$as_me: failed program was:" >&5
7460 sed 's/^/| /' conftest.$ac_ext >&5
7462 ac_cv_lib_fl_yywrap=no
7464 rm -f conftest.err conftest.$ac_objext \
7465 conftest$ac_exeext conftest.$ac_ext
7466 LIBS=$ac_check_lib_save_LIBS
7468 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
7469 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
7470 if test $ac_cv_lib_fl_yywrap = yes; then
7473 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
7474 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
7475 if test "${ac_cv_lib_l_yywrap+set}" = set; then
7476 echo $ECHO_N "(cached) $ECHO_C" >&6
7478 ac_check_lib_save_LIBS=$LIBS
7480 cat >conftest.$ac_ext <<_ACEOF
7483 cat confdefs.h >>conftest.$ac_ext
7484 cat >>conftest.$ac_ext <<_ACEOF
7485 /* end confdefs.h. */
7487 /* Override any gcc2 internal prototype to avoid an error. */
7491 /* We use char because int might match the return type of a gcc2
7492 builtin and then its argument prototype would still apply. */
7502 rm -f conftest.$ac_objext conftest$ac_exeext
7503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7504 (eval $ac_link) 2>conftest.er1
7506 grep -v '^ *+' conftest.er1 >conftest.err
7508 cat conftest.err >&5
7509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7510 (exit $ac_status); } &&
7511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516 (exit $ac_status); }; } &&
7517 { ac_try='test -s conftest$ac_exeext'
7518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522 (exit $ac_status); }; }; then
7523 ac_cv_lib_l_yywrap=yes
7525 echo "$as_me: failed program was:" >&5
7526 sed 's/^/| /' conftest.$ac_ext >&5
7528 ac_cv_lib_l_yywrap=no
7530 rm -f conftest.err conftest.$ac_objext \
7531 conftest$ac_exeext conftest.$ac_ext
7532 LIBS=$ac_check_lib_save_LIBS
7534 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
7535 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
7536 if test $ac_cv_lib_l_yywrap = yes; then
7544 if test "x$LEX" != "x:"; then
7545 echo "$as_me:$LINENO: checking lex output file root" >&5
7546 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
7547 if test "${ac_cv_prog_lex_root+set}" = set; then
7548 echo $ECHO_N "(cached) $ECHO_C" >&6
7550 # The minimal lex program is just a single line: %%. But some broken lexes
7551 # (Solaris, I think it was) want two %% lines, so accommodate them.
7552 cat >conftest.l <<_ACEOF
7556 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
7557 (eval $LEX conftest.l) 2>&5
7559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560 (exit $ac_status); }
7561 if test -f lex.yy.c; then
7562 ac_cv_prog_lex_root=lex.yy
7563 elif test -f lexyy.c; then
7564 ac_cv_prog_lex_root=lexyy
7566 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
7567 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
7568 { (exit 1); exit 1; }; }
7571 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
7572 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
7574 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
7576 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
7577 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
7578 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
7579 echo $ECHO_N "(cached) $ECHO_C" >&6
7581 # POSIX says lex can declare yytext either as a pointer or an array; the
7582 # default is implementation-dependent. Figure out which it is, since
7583 # not all implementations provide the %pointer and %array declarations.
7584 ac_cv_prog_lex_yytext_pointer=no
7585 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
7587 LIBS="$LIBS $LEXLIB"
7588 cat >conftest.$ac_ext <<_ACEOF
7589 `cat $LEX_OUTPUT_ROOT.c`
7591 rm -f conftest.$ac_objext conftest$ac_exeext
7592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7593 (eval $ac_link) 2>conftest.er1
7595 grep -v '^ *+' conftest.er1 >conftest.err
7597 cat conftest.err >&5
7598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599 (exit $ac_status); } &&
7600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); }; } &&
7606 { ac_try='test -s conftest$ac_exeext'
7607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611 (exit $ac_status); }; }; then
7612 ac_cv_prog_lex_yytext_pointer=yes
7614 echo "$as_me: failed program was:" >&5
7615 sed 's/^/| /' conftest.$ac_ext >&5
7618 rm -f conftest.err conftest.$ac_objext \
7619 conftest$ac_exeext conftest.$ac_ext
7621 rm -f "${LEX_OUTPUT_ROOT}.c"
7624 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
7625 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
7626 if test $ac_cv_prog_lex_yytext_pointer = yes; then
7628 cat >>confdefs.h <<\_ACEOF
7629 #define YYTEXT_POINTER 1
7635 for ac_prog in 'bison -y' byacc
7637 # Extract the first word of "$ac_prog", so it can be a program name with args.
7638 set dummy $ac_prog; ac_word=$2
7639 echo "$as_me:$LINENO: checking for $ac_word" >&5
7640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7641 if test "${ac_cv_prog_YACC+set}" = set; then
7642 echo $ECHO_N "(cached) $ECHO_C" >&6
7644 if test -n "$YACC"; then
7645 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7651 test -z "$as_dir" && as_dir=.
7652 for ac_exec_ext in '' $ac_executable_extensions; do
7653 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7654 ac_cv_prog_YACC="$ac_prog"
7655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7663 YACC=$ac_cv_prog_YACC
7664 if test -n "$YACC"; then
7665 echo "$as_me:$LINENO: result: $YACC" >&5
7666 echo "${ECHO_T}$YACC" >&6
7668 echo "$as_me:$LINENO: result: no" >&5
7669 echo "${ECHO_T}no" >&6
7672 test -n "$YACC" && break
7674 test -n "$YACC" || YACC="yacc"
7678 # Extract the first word of "$ac_prog", so it can be a program name with args.
7679 set dummy $ac_prog; ac_word=$2
7680 echo "$as_me:$LINENO: checking for $ac_word" >&5
7681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7682 if test "${ac_cv_path_RMPROG+set}" = set; then
7683 echo $ECHO_N "(cached) $ECHO_C" >&6
7687 ac_cv_path_RMPROG="$RMPROG" # Let the user override the test with a path.
7690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7694 test -z "$as_dir" && as_dir=.
7695 for ac_exec_ext in '' $ac_executable_extensions; do
7696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7697 ac_cv_path_RMPROG="$as_dir/$ac_word$ac_exec_ext"
7698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7707 RMPROG=$ac_cv_path_RMPROG
7709 if test -n "$RMPROG"; then
7710 echo "$as_me:$LINENO: result: $RMPROG" >&5
7711 echo "${ECHO_T}$RMPROG" >&6
7713 echo "$as_me:$LINENO: result: no" >&5
7714 echo "${ECHO_T}no" >&6
7717 test -n "$RMPROG" && break
7719 test -n "$RMPROG" || RMPROG="/bin/rm"
7723 # Extract the first word of "$ac_prog", so it can be a program name with args.
7724 set dummy $ac_prog; ac_word=$2
7725 echo "$as_me:$LINENO: checking for $ac_word" >&5
7726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7727 if test "${ac_cv_path_SHPROG+set}" = set; then
7728 echo $ECHO_N "(cached) $ECHO_C" >&6
7732 ac_cv_path_SHPROG="$SHPROG" # Let the user override the test with a path.
7735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7739 test -z "$as_dir" && as_dir=.
7740 for ac_exec_ext in '' $ac_executable_extensions; do
7741 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7742 ac_cv_path_SHPROG="$as_dir/$ac_word$ac_exec_ext"
7743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7752 SHPROG=$ac_cv_path_SHPROG
7754 if test -n "$SHPROG"; then
7755 echo "$as_me:$LINENO: result: $SHPROG" >&5
7756 echo "${ECHO_T}$SHPROG" >&6
7758 echo "$as_me:$LINENO: result: no" >&5
7759 echo "${ECHO_T}no" >&6
7762 test -n "$SHPROG" && break
7764 test -n "$SHPROG" || SHPROG="/bin/sh"
7767 LIBS="$LEXLIB $LIBS"
7769 echo "$as_me:$LINENO: checking for posix non-blocking" >&5
7770 echo $ECHO_N "checking for posix non-blocking... $ECHO_C" >&6
7771 if test "${unet_cv_sys_nonblocking_posix+set}" = set; then
7772 echo $ECHO_N "(cached) $ECHO_C" >&6
7774 if test "$cross_compiling" = yes; then
7775 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7776 See \`config.log' for more details." >&5
7777 echo "$as_me: error: cannot run test program while cross compiling
7778 See \`config.log' for more details." >&2;}
7779 { (exit 1); exit 1; }; }
7781 cat >conftest.$ac_ext <<_ACEOF
7784 cat confdefs.h >>conftest.$ac_ext
7785 cat >>conftest.$ac_ext <<_ACEOF
7786 /* end confdefs.h. */
7787 #include <sys/types.h>
7788 #include <sys/socket.h>
7790 #include <sys/ioctl.h>
7791 #include <sys/file.h>
7793 $ac_cv_type_signal alarmed() { exit(1); }
7798 size_t l = sizeof(x);
7799 int f = socket(AF_INET, SOCK_DGRAM, 0);
7800 if (f >= 0 && !(fcntl(f, F_SETFL, O_NONBLOCK)))
7802 signal(SIGALRM, alarmed);
7804 recvfrom(f, b, 12, 0, &x, &l);
7811 rm -f conftest$ac_exeext
7812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7813 (eval $ac_link) 2>&5
7815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7816 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7821 (exit $ac_status); }; }; then
7822 unet_cv_sys_nonblocking_posix=yes
7824 echo "$as_me: program exited with status $ac_status" >&5
7825 echo "$as_me: failed program was:" >&5
7826 sed 's/^/| /' conftest.$ac_ext >&5
7829 unet_cv_sys_nonblocking_posix=no
7831 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7834 echo "$as_me:$LINENO: result: $unet_cv_sys_nonblocking_posix" >&5
7835 echo "${ECHO_T}$unet_cv_sys_nonblocking_posix" >&6
7836 if test $unet_cv_sys_nonblocking_posix = yes; then
7837 cat >>confdefs.h <<\_ACEOF
7838 #define NBLOCK_POSIX 1
7842 echo "$as_me:$LINENO: checking for bsd non-blocking" >&5
7843 echo $ECHO_N "checking for bsd non-blocking... $ECHO_C" >&6
7844 if test "${unet_cv_sys_nonblocking_bsd+set}" = set; then
7845 echo $ECHO_N "(cached) $ECHO_C" >&6
7847 if test "$cross_compiling" = yes; then
7848 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7849 See \`config.log' for more details." >&5
7850 echo "$as_me: error: cannot run test program while cross compiling
7851 See \`config.log' for more details." >&2;}
7852 { (exit 1); exit 1; }; }
7854 cat >conftest.$ac_ext <<_ACEOF
7857 cat confdefs.h >>conftest.$ac_ext
7858 cat >>conftest.$ac_ext <<_ACEOF
7859 /* end confdefs.h. */
7860 #include <sys/types.h>
7861 #include <sys/socket.h>
7863 #include <sys/ioctl.h>
7864 #include <sys/file.h>
7866 $ac_cv_type_signal alarmed() { exit(1); }
7871 size_t l = sizeof(x);
7872 int f = socket(AF_INET, SOCK_DGRAM, 0);
7873 if (f >= 0 && !(fcntl(f, F_SETFL, O_NDELAY)))
7875 signal(SIGALRM, alarmed);
7877 recvfrom(f, b, 12, 0, &x, &l);
7884 rm -f conftest$ac_exeext
7885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7886 (eval $ac_link) 2>&5
7888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894 (exit $ac_status); }; }; then
7895 unet_cv_sys_nonblocking_bsd=yes
7897 echo "$as_me: program exited with status $ac_status" >&5
7898 echo "$as_me: failed program was:" >&5
7899 sed 's/^/| /' conftest.$ac_ext >&5
7902 unet_cv_sys_nonblocking_bsd=no
7904 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7907 echo "$as_me:$LINENO: result: $unet_cv_sys_nonblocking_bsd" >&5
7908 echo "${ECHO_T}$unet_cv_sys_nonblocking_bsd" >&6
7909 if test $unet_cv_sys_nonblocking_bsd = yes; then
7910 cat >>confdefs.h <<\_ACEOF
7911 #define NBLOCK_BSD 1
7915 cat >>confdefs.h <<\_ACEOF
7916 #define NBLOCK_SYSV 1
7921 echo "$as_me:$LINENO: checking for posix signals" >&5
7922 echo $ECHO_N "checking for posix signals... $ECHO_C" >&6
7923 if test "${unet_cv_sys_signal_posix+set}" = set; then
7924 echo $ECHO_N "(cached) $ECHO_C" >&6
7926 cat >conftest.$ac_ext <<_ACEOF
7929 cat confdefs.h >>conftest.$ac_ext
7930 cat >>conftest.$ac_ext <<_ACEOF
7931 /* end confdefs.h. */
7936 sigaction(SIGTERM, (struct sigaction *)0L, (struct sigaction *)0L)
7941 rm -f conftest.$ac_objext
7942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7943 (eval $ac_compile) 2>conftest.er1
7945 grep -v '^ *+' conftest.er1 >conftest.err
7947 cat conftest.err >&5
7948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949 (exit $ac_status); } &&
7950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955 (exit $ac_status); }; } &&
7956 { ac_try='test -s conftest.$ac_objext'
7957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); }; }; then
7962 unet_cv_sys_signal_posix=yes
7964 echo "$as_me: failed program was:" >&5
7965 sed 's/^/| /' conftest.$ac_ext >&5
7967 unet_cv_sys_signal_posix=no
7969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7971 echo "$as_me:$LINENO: result: $unet_cv_sys_signal_posix" >&5
7972 echo "${ECHO_T}$unet_cv_sys_signal_posix" >&6
7973 if test $unet_cv_sys_signal_posix = yes; then
7974 cat >>confdefs.h <<\_ACEOF
7975 #define POSIX_SIGNALS 1
7979 echo "$as_me:$LINENO: checking for bsd reliable signals" >&5
7980 echo $ECHO_N "checking for bsd reliable signals... $ECHO_C" >&6
7981 if test "${unet_cv_sys_signal_bsd+set}" = set; then
7982 echo $ECHO_N "(cached) $ECHO_C" >&6
7984 if test "$cross_compiling" = yes; then
7985 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7986 See \`config.log' for more details." >&5
7987 echo "$as_me: error: cannot run test program while cross compiling
7988 See \`config.log' for more details." >&2;}
7989 { (exit 1); exit 1; }; }
7991 cat >conftest.$ac_ext <<_ACEOF
7994 cat confdefs.h >>conftest.$ac_ext
7995 cat >>conftest.$ac_ext <<_ACEOF
7996 /* end confdefs.h. */
7999 $ac_cv_type_signal handler()
8003 kill(getpid(), SIGTERM);
8008 signal(SIGTERM, handler);
8009 kill(getpid(), SIGTERM);
8013 rm -f conftest$ac_exeext
8014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8015 (eval $ac_link) 2>&5
8017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023 (exit $ac_status); }; }; then
8024 unet_cv_sys_signal_bsd=yes
8026 echo "$as_me: program exited with status $ac_status" >&5
8027 echo "$as_me: failed program was:" >&5
8028 sed 's/^/| /' conftest.$ac_ext >&5
8031 unet_cv_sys_signal_bsd=no
8033 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8036 echo "$as_me:$LINENO: result: $unet_cv_sys_signal_bsd" >&5
8037 echo "${ECHO_T}$unet_cv_sys_signal_bsd" >&6
8038 if test $unet_cv_sys_signal_bsd = yes; then
8039 cat >>confdefs.h <<\_ACEOF
8040 #define BSD_RELIABLE_SIGNALS 1
8044 cat >>confdefs.h <<\_ACEOF
8045 #define SYSV_UNRELIABLE_SIGNALS 1
8051 echo "$as_me:$LINENO: checking if the compiler understands -pipe" >&5
8052 echo $ECHO_N "checking if the compiler understands -pipe... $ECHO_C" >&6
8053 unet_cv_pipe_flags="$ac_cv_c_compiler_gnu"
8054 if test "$ac_cv_c_compiler_gnu" = no; then
8056 CFLAGS="$CFLAGS -pipe"
8057 cat >conftest.$ac_ext <<_ACEOF
8060 cat confdefs.h >>conftest.$ac_ext
8061 cat >>conftest.$ac_ext <<_ACEOF
8062 /* end confdefs.h. */
8072 rm -f conftest.$ac_objext
8073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8074 (eval $ac_compile) 2>conftest.er1
8076 grep -v '^ *+' conftest.er1 >conftest.err
8078 cat conftest.err >&5
8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080 (exit $ac_status); } &&
8081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086 (exit $ac_status); }; } &&
8087 { ac_try='test -s conftest.$ac_objext'
8088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 (exit $ac_status); }; }; then
8093 unet_cv_pipe_flags=yes
8095 echo "$as_me: failed program was:" >&5
8096 sed 's/^/| /' conftest.$ac_ext >&5
8099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8102 echo "$as_me:$LINENO: result: $unet_cv_pipe_flags" >&5
8103 echo "${ECHO_T}$unet_cv_pipe_flags" >&6
8104 if test "$unet_cv_pipe_flags" = yes ; then
8105 x=`echo $CFLAGS | grep 'pipe' 2>/dev/null`
8106 if test "$x" = "" ; then
8107 CFLAGS="$CFLAGS -pipe"
8112 echo "$as_me:$LINENO: checking for OS-dependent information" >&5
8113 echo $ECHO_N "checking for OS-dependent information... $ECHO_C" >&6
8116 echo "$as_me:$LINENO: result: Linux ($host) found." >&5
8117 echo "${ECHO_T}Linux ($host) found." >&6
8118 unet_poll_syscall=yes
8122 echo "$as_me:$LINENO: result: Solaris ($host) found." >&5
8123 echo "${ECHO_T}Solaris ($host) found." >&6
8124 if test x"$ac_cv_header_poll_h" = xyes; then
8125 unet_poll_syscall=yes
8127 unet_poll_syscall=no
8132 echo "$as_me:$LINENO: result: Solaris ($host) found." >&5
8133 echo "${ECHO_T}Solaris ($host) found." >&6
8134 unet_poll_syscall=no
8138 echo "$as_me:$LINENO: result: OpenBSD ($host) found." >&5
8139 echo "${ECHO_T}OpenBSD ($host) found." >&6
8140 if test x"$ac_cv_header_poll_h" = xyes; then
8141 unet_poll_syscall=yes
8143 unet_poll_syscall=no
8148 echo "$as_me:$LINENO: result: Generic BSD ($host) found." >&5
8149 echo "${ECHO_T}Generic BSD ($host) found." >&6
8150 if test x"$ac_cv_header_poll_h" = xyes; then
8151 unet_poll_syscall=yes
8153 unet_poll_syscall=no
8158 echo "$as_me:$LINENO: result: Darwin (Mac OS X) ($host) found." >&5
8159 echo "${ECHO_T}Darwin (Mac OS X) ($host) found." >&6
8160 unet_poll_syscall=no
8164 echo "$as_me:$LINENO: result: Unknown system type $host found." >&5
8165 echo "${ECHO_T}Unknown system type $host found." >&6
8166 { echo "$as_me:$LINENO: WARNING: Unknown OS type; using generic routines." >&5
8167 echo "$as_me: WARNING: Unknown OS type; using generic routines." >&2;}
8168 unet_poll_syscall=no
8172 echo "$as_me:$LINENO: checking whether to enable use of poll()" >&5
8173 echo $ECHO_N "checking whether to enable use of poll()... $ECHO_C" >&6
8174 # Check whether --enable-poll or --disable-poll was given.
8175 if test "${enable_poll+set}" = set; then
8176 enableval="$enable_poll"
8177 unet_cv_enable_poll=$enable_poll
8179 if test "${unet_cv_enable_poll+set}" = set; then
8180 echo $ECHO_N "(cached) $ECHO_C" >&6
8182 unet_cv_enable_poll=$unet_poll_syscall
8187 # Force poll to be disabled if there is no poll.h
8188 if test x"$ac_cv_header_poll_h" != xyes; then
8189 unet_cv_enable_poll=no
8192 echo "$as_me:$LINENO: result: $unet_cv_enable_poll" >&5
8193 echo "${ECHO_T}$unet_cv_enable_poll" >&6
8195 if test x"$unet_cv_enable_poll" = xyes; then
8197 cat >>confdefs.h <<\_ACEOF
8201 ENGINE_C=engine_poll.c
8203 ENGINE_C=engine_select.c
8207 echo "$as_me:$LINENO: checking whether to enable debug mode" >&5
8208 echo $ECHO_N "checking whether to enable debug mode... $ECHO_C" >&6
8209 # Check whether --enable-debug or --disable-debug was given.
8210 if test "${enable_debug+set}" = set; then
8211 enableval="$enable_debug"
8212 unet_cv_enable_debug=$enable_debug
8214 if test "${unet_cv_enable_debug+set}" = set; then
8215 echo $ECHO_N "(cached) $ECHO_C" >&6
8217 unet_cv_enable_debug=no
8221 echo "$as_me:$LINENO: result: $unet_cv_enable_debug" >&5
8222 echo "${ECHO_T}$unet_cv_enable_debug" >&6
8224 if test x"$unet_cv_enable_debug" = xyes; then
8226 cat >>confdefs.h <<\_ACEOF
8232 echo "$as_me:$LINENO: checking whether to enable leak detection" >&5
8233 echo $ECHO_N "checking whether to enable leak detection... $ECHO_C" >&6
8235 # Check whether --with-leak-detect or --without-leak-detect was given.
8236 if test "${with_leak_detect+set}" = set; then
8237 withval="$with_leak_detect"
8238 unet_cv_with_leak_detect=$with_leak_detect
8240 if test "${unet_cv_with_leak_detect+set}" = set; then
8241 echo $ECHO_N "(cached) $ECHO_C" >&6
8243 unet_cv_with_leak_detect=no
8247 echo "$as_me:$LINENO: result: $unet_cv_enable_leak_detect" >&5
8248 echo "${ECHO_T}$unet_cv_enable_leak_detect" >&6
8250 if test x"$unet_cv_with_leak_detect" != xno; then
8252 CFLAGS="-DMDEBUG $CFLAGS"
8253 if test x"$unet_cv_with_leak_detect" != xyes; then
8254 LIBS="-L$unet_cv_with_leak_detect $LIBS"
8259 # Check whether --with-ipv6 or --without-ipv6 was given.
8260 if test "${with_ipv6+set}" = set; then
8261 withval="$with_ipv6"
8262 ac_cv_use_ipv6=$withval
8264 ac_cv_use_ipv6=$unet_have_sockaddr_in6
8266 echo "$as_me:$LINENO: checking whether to use IPv6" >&5
8267 echo $ECHO_N "checking whether to use IPv6... $ECHO_C" >&6
8268 if test "${ac_cv_use_ipv6+set}" = set; then
8269 echo $ECHO_N "(cached) $ECHO_C" >&6
8273 echo "$as_me:$LINENO: result: $ac_cv_use_ipv6" >&5
8274 echo "${ECHO_T}$ac_cv_use_ipv6" >&6
8275 if test x"$ac_cv_use_ipv6" != "xno" ; then
8277 cat >>confdefs.h <<\_ACEOF
8283 echo "$as_me:$LINENO: checking whether to enable asserts" >&5
8284 echo $ECHO_N "checking whether to enable asserts... $ECHO_C" >&6
8285 # Check whether --enable-asserts or --disable-asserts was given.
8286 if test "${enable_asserts+set}" = set; then
8287 enableval="$enable_asserts"
8288 unet_cv_enable_asserts=$enable_asserts
8290 if test "${unet_cv_enable_asserts+set}" = set; then
8291 echo $ECHO_N "(cached) $ECHO_C" >&6
8293 unet_cv_enable_asserts=yes
8297 echo "$as_me:$LINENO: result: $unet_cv_enable_asserts" >&5
8298 echo "${ECHO_T}$unet_cv_enable_asserts" >&6
8300 if test x"$unet_cv_enable_asserts" = xno; then
8302 cat >>confdefs.h <<\_ACEOF
8308 echo "$as_me:$LINENO: checking whether to enable debugging symbols" >&5
8309 echo $ECHO_N "checking whether to enable debugging symbols... $ECHO_C" >&6
8310 # Check whether --enable-symbols or --disable-symbols was given.
8311 if test "${enable_symbols+set}" = set; then
8312 enableval="$enable_symbols"
8313 unet_cv_enable_symbols=$enable_symbols
8315 if test "${unet_cv_enable_symbols+set}" = set; then
8316 echo $ECHO_N "(cached) $ECHO_C" >&6
8318 unet_cv_enable_symbols=yes
8322 echo "$as_me:$LINENO: result: $unet_cv_enable_symbols" >&5
8323 echo "${ECHO_T}$unet_cv_enable_symbols" >&6
8325 if test x"$unet_cv_enable_symbols" = xyes; then
8329 echo "$as_me:$LINENO: checking whether to enable profiling support (gprof)" >&5
8330 echo $ECHO_N "checking whether to enable profiling support (gprof)... $ECHO_C" >&6
8331 # Check whether --enable-profile or --disable-profile was given.
8332 if test "${enable_profile+set}" = set; then
8333 enableval="$enable_profile"
8334 unet_cv_enable_profile=$enable_profile
8336 if test "${unet_cv_enable_profile+set}" = set; then
8337 echo $ECHO_N "(cached) $ECHO_C" >&6
8339 unet_cv_enable_profile=no
8343 echo "$as_me:$LINENO: result: $unet_cv_enable_profile" >&5
8344 echo "${ECHO_T}$unet_cv_enable_profile" >&6
8346 if test x"$unet_cv_enable_profile" = xyes; then
8347 CFLAGS="-pg $CFLAGS"
8350 echo "$as_me:$LINENO: checking whether to enable pedantic compiler warnings" >&5
8351 echo $ECHO_N "checking whether to enable pedantic compiler warnings... $ECHO_C" >&6
8352 # Check whether --enable-pedantic or --disable-pedantic was given.
8353 if test "${enable_pedantic+set}" = set; then
8354 enableval="$enable_pedantic"
8355 unet_cv_enable_pedantic=$enable_pedantic
8357 if test "${unet_cv_enable_pedantic+set}" = set; then
8358 echo $ECHO_N "(cached) $ECHO_C" >&6
8360 unet_cv_enable_pedantic=no
8364 echo "$as_me:$LINENO: result: $unet_cv_enable_pedantic" >&5
8365 echo "${ECHO_T}$unet_cv_enable_pedantic" >&6
8367 if test x"$unet_cv_enable_pedantic" = xyes; then
8368 CFLAGS="-pedantic $CFLAGS"
8371 echo "$as_me:$LINENO: checking whether to enable compiler warnings" >&5
8372 echo $ECHO_N "checking whether to enable compiler warnings... $ECHO_C" >&6
8373 # Check whether --enable-warnings or --disable-warnings was given.
8374 if test "${enable_warnings+set}" = set; then
8375 enableval="$enable_warnings"
8376 unet_cv_enable_warnings=$enable_warnings
8378 if test "${unet_cv_enable_warnings+set}" = set; then
8379 echo $ECHO_N "(cached) $ECHO_C" >&6
8381 unet_cv_enable_warnings=no
8385 echo "$as_me:$LINENO: result: $unet_cv_enable_warnings" >&5
8386 echo "${ECHO_T}$unet_cv_enable_warnings" >&6
8388 if test x"$unet_cv_enable_warnings" = xyes; then
8389 CFLAGS="-Wall $CFLAGS"
8392 echo "$as_me:$LINENO: checking whether to enable inlining for a few critical functions" >&5
8393 echo $ECHO_N "checking whether to enable inlining for a few critical functions... $ECHO_C" >&6
8394 # Check whether --enable-inlines or --disable-inlines was given.
8395 if test "${enable_inlines+set}" = set; then
8396 enableval="$enable_inlines"
8397 unet_cv_enable_inlines=$enable_inlines
8399 if test "${unet_cv_enable_inlines+set}" = set; then
8400 echo $ECHO_N "(cached) $ECHO_C" >&6
8402 unet_cv_enable_inlines=yes
8406 echo "$as_me:$LINENO: result: $unet_cv_enable_inlines" >&5
8407 echo "${ECHO_T}$unet_cv_enable_inlines" >&6
8409 if test x"$unet_cv_enable_inlines" = xyes; then
8411 cat >>confdefs.h <<\_ACEOF
8417 echo "$as_me:$LINENO: checking whether to enable the /dev/poll event engine" >&5
8418 echo $ECHO_N "checking whether to enable the /dev/poll event engine... $ECHO_C" >&6
8419 # Check whether --enable-devpoll or --disable-devpoll was given.
8420 if test "${enable_devpoll+set}" = set; then
8421 enableval="$enable_devpoll"
8422 unet_cv_enable_devpoll=$enable_devpoll
8424 if test "${unet_cv_enable_devpoll+set}" = set; then
8425 echo $ECHO_N "(cached) $ECHO_C" >&6
8427 unet_cv_enable_devpoll=yes
8432 if test x"$ac_cv_header_sys_devpoll_h" = xno; then
8433 unet_cv_enable_devpoll=no
8436 echo "$as_me:$LINENO: result: $unet_cv_enable_devpoll" >&5
8437 echo "${ECHO_T}$unet_cv_enable_devpoll" >&6
8439 if test x"$unet_cv_enable_devpoll" != xno; then
8441 cat >>confdefs.h <<\_ACEOF
8445 ENGINE_C="engine_devpoll.c $ENGINE_C"
8448 echo "$as_me:$LINENO: checking whether to enable the kqueue event engine" >&5
8449 echo $ECHO_N "checking whether to enable the kqueue event engine... $ECHO_C" >&6
8450 # Check whether --enable-kqueue or --disable-kqueue was given.
8451 if test "${enable_kqueue+set}" = set; then
8452 enableval="$enable_kqueue"
8453 unet_cv_enable_kqueue=$enable_kqueue
8455 if test "${unet_cv_enable_kqueue+set}" = set; then
8456 echo $ECHO_N "(cached) $ECHO_C" >&6
8458 unet_cv_enable_kqueue=yes
8463 if test x"$ac_cv_header_sys_event_h" = xno -o x"$ac_cv_func_kqueue" = xno; then
8464 unet_cv_enable_kqueue=no
8467 echo "$as_me:$LINENO: result: $unet_cv_enable_kqueue" >&5
8468 echo "${ECHO_T}$unet_cv_enable_kqueue" >&6
8470 if test x"$unet_cv_enable_kqueue" != xno; then
8472 cat >>confdefs.h <<\_ACEOF
8476 ENGINE_C="engine_kqueue.c $ENGINE_C"
8479 echo "$as_me:$LINENO: checking whether to enable the epoll event engine" >&5
8480 echo $ECHO_N "checking whether to enable the epoll event engine... $ECHO_C" >&6
8481 # Check whether --enable-epoll or --disable-epoll was given.
8482 if test "${enable_epoll+set}" = set; then
8483 enableval="$enable_epoll"
8484 unet_cv_enable_epoll=$enable_epoll
8486 if test "${unet_cv_enable_epoll+set}" = set; then
8487 echo $ECHO_N "(cached) $ECHO_C" >&6
8489 unet_cv_enable_epoll=yes
8494 if test x"$ac_cv_header_sys_epoll_h" = xno -o x"$ac_cv_func_epoll" = xno; then
8495 unet_cv_enable_epoll=no
8498 echo "$as_me:$LINENO: result: $unet_cv_enable_epoll" >&5
8499 echo "${ECHO_T}$unet_cv_enable_epoll" >&6
8501 if test x"$unet_cv_enable_epoll" != xno; then
8502 echo "$as_me:$LINENO: checking whether epoll functions are properly defined" >&5
8503 echo $ECHO_N "checking whether epoll functions are properly defined... $ECHO_C" >&6
8504 cat >conftest.$ac_ext <<_ACEOF
8507 cat confdefs.h >>conftest.$ac_ext
8508 cat >>conftest.$ac_ext <<_ACEOF
8509 /* end confdefs.h. */
8510 #include <sys/epoll.h>
8519 rm -f conftest.$ac_objext conftest$ac_exeext
8520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8521 (eval $ac_link) 2>conftest.er1
8523 grep -v '^ *+' conftest.er1 >conftest.err
8525 cat conftest.err >&5
8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527 (exit $ac_status); } &&
8528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); }; } &&
8534 { ac_try='test -s conftest$ac_exeext'
8535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539 (exit $ac_status); }; }; then
8540 echo "$as_me:$LINENO: result: yes" >&5
8541 echo "${ECHO_T}yes" >&6
8543 echo "$as_me: failed program was:" >&5
8544 sed 's/^/| /' conftest.$ac_ext >&5
8546 echo "$as_me:$LINENO: result: no" >&5
8547 echo "${ECHO_T}no" >&6
8549 cat >>confdefs.h <<\_ACEOF
8550 #define EPOLL_NEED_BODY
8554 rm -f conftest.err conftest.$ac_objext \
8555 conftest$ac_exeext conftest.$ac_ext
8557 cat >>confdefs.h <<\_ACEOF
8561 ENGINE_C="engine_epoll.c $ENGINE_C"
8564 echo "$as_me:$LINENO: checking for va_copy" >&5
8565 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
8566 if test "${unet_cv_c_va_copy+set}" = set; then
8567 echo $ECHO_N "(cached) $ECHO_C" >&6
8569 cat >conftest.$ac_ext <<_ACEOF
8572 cat confdefs.h >>conftest.$ac_ext
8573 cat >>conftest.$ac_ext <<_ACEOF
8574 /* end confdefs.h. */
8579 va_list ap1, ap2; va_copy(ap1, ap2);
8584 rm -f conftest.$ac_objext conftest$ac_exeext
8585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8586 (eval $ac_link) 2>conftest.er1
8588 grep -v '^ *+' conftest.er1 >conftest.err
8590 cat conftest.err >&5
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); } &&
8593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598 (exit $ac_status); }; } &&
8599 { ac_try='test -s conftest$ac_exeext'
8600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604 (exit $ac_status); }; }; then
8605 unet_cv_c_va_copy="yes"
8607 echo "$as_me: failed program was:" >&5
8608 sed 's/^/| /' conftest.$ac_ext >&5
8610 unet_cv_c_va_copy="no"
8613 rm -f conftest.err conftest.$ac_objext \
8614 conftest$ac_exeext conftest.$ac_ext
8616 echo "$as_me:$LINENO: result: $unet_cv_c_va_copy" >&5
8617 echo "${ECHO_T}$unet_cv_c_va_copy" >&6
8618 if test "$unet_cv_c_va_copy" = "yes" ; then
8620 cat >>confdefs.h <<\_ACEOF
8621 #define HAVE_VA_COPY 1
8626 echo "$as_me:$LINENO: checking for __va_copy" >&5
8627 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
8628 if test "${unet_cv_c___va_copy+set}" = set; then
8629 echo $ECHO_N "(cached) $ECHO_C" >&6
8631 cat >conftest.$ac_ext <<_ACEOF
8634 cat confdefs.h >>conftest.$ac_ext
8635 cat >>conftest.$ac_ext <<_ACEOF
8636 /* end confdefs.h. */
8641 va_list ap1, ap2; __va_copy(ap1, ap2);
8646 rm -f conftest.$ac_objext conftest$ac_exeext
8647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8648 (eval $ac_link) 2>conftest.er1
8650 grep -v '^ *+' conftest.er1 >conftest.err
8652 cat conftest.err >&5
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); } &&
8655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660 (exit $ac_status); }; } &&
8661 { ac_try='test -s conftest$ac_exeext'
8662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666 (exit $ac_status); }; }; then
8667 unet_cv_c___va_copy="yes"
8669 echo "$as_me: failed program was:" >&5
8670 sed 's/^/| /' conftest.$ac_ext >&5
8672 unet_cv_c___va_copy="no"
8675 rm -f conftest.err conftest.$ac_objext \
8676 conftest$ac_exeext conftest.$ac_ext
8678 echo "$as_me:$LINENO: result: $unet_cv_c___va_copy" >&5
8679 echo "${ECHO_T}$unet_cv_c___va_copy" >&6
8680 if test "$unet_cv_c___va_copy" = "yes" ; then
8682 cat >>confdefs.h <<\_ACEOF
8683 #define HAVE___VA_COPY 1
8688 echo "$as_me:$LINENO: checking what name to give the symlink" >&5
8689 echo $ECHO_N "checking what name to give the symlink... $ECHO_C" >&6
8691 # Check whether --with-symlink or --without-symlink was given.
8692 if test "${with_symlink+set}" = set; then
8693 withval="$with_symlink"
8694 unet_cv_with_symlink=$with_symlink
8696 if test "${unet_cv_with_symlink+set}" = set; then
8697 echo $ECHO_N "(cached) $ECHO_C" >&6
8699 unet_cv_with_symlink="ircd"
8704 if test x"$unet_cv_with_symlink" = xyes; then
8705 unet_cv_with_symlink="ircd"
8708 echo "$as_me:$LINENO: result: $unet_cv_with_symlink" >&5
8709 echo "${ECHO_T}$unet_cv_with_symlink" >&6
8711 if test x"$unet_cv_with_symlink" = xno; then
8712 INSTALL_RULE=install-no-symlink
8715 INSTALL_RULE=install-with-symlink
8716 SYMLINK=$unet_cv_with_symlink
8721 echo "$as_me:$LINENO: checking what permissions to set on the installed binary" >&5
8722 echo $ECHO_N "checking what permissions to set on the installed binary... $ECHO_C" >&6
8724 # Check whether --with-mode or --without-mode was given.
8725 if test "${with_mode+set}" = set; then
8726 withval="$with_mode"
8727 unet_cv_with_mode=$with_mode
8729 if test "${unet_cv_with_mode+set}" = set; then
8730 echo $ECHO_N "(cached) $ECHO_C" >&6
8732 unet_cv_with_mode=711
8737 if test x"$unet_cv_with_mode" = xyes -o x"$unet_cv_with_mode" = xno; then
8738 unet_cv_with_mode=711
8741 echo "$as_me:$LINENO: result: $unet_cv_with_mode" >&5
8742 echo "${ECHO_T}$unet_cv_with_mode" >&6
8744 IRCDMODE=$unet_cv_with_mode
8747 unet_uid=`id | sed -e 's/.*uid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
8748 echo "$as_me:$LINENO: checking which user should own the installed binary" >&5
8749 echo $ECHO_N "checking which user should own the installed binary... $ECHO_C" >&6
8751 # Check whether --with-owner or --without-owner was given.
8752 if test "${with_owner+set}" = set; then
8753 withval="$with_owner"
8754 unet_cv_with_owner=$with_owner
8756 if test "${unet_cv_with_owner+set}" = set; then
8757 echo $ECHO_N "(cached) $ECHO_C" >&6
8759 unet_cv_with_owner=$unet_uid
8764 if test x"$unet_cv_with_owner" = xyes -o x"$unet_cv_with_owner" = xno; then
8765 unet_cv_with_owner=$unet_uid
8768 echo "$as_me:$LINENO: result: $unet_cv_with_owner" >&5
8769 echo "${ECHO_T}$unet_cv_with_owner" >&6
8771 IRCDOWN=$unet_cv_with_owner
8774 unet_gid=`id | sed -e 's/.*gid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
8775 echo "$as_me:$LINENO: checking which group should own the installed binary" >&5
8776 echo $ECHO_N "checking which group should own the installed binary... $ECHO_C" >&6
8778 # Check whether --with-group or --without-group was given.
8779 if test "${with_group+set}" = set; then
8780 withval="$with_group"
8781 unet_cv_with_group=$with_group
8783 if test "${unet_cv_with_group+set}" = set; then
8784 echo $ECHO_N "(cached) $ECHO_C" >&6
8786 unet_cv_with_group=$unet_gid
8791 if test x"$unet_cv_with_group" = xyes -o x"$unet_cv_with_group" = xno; then
8792 unet_cv_with_group=$unet_gid
8795 echo "$as_me:$LINENO: result: $unet_cv_with_group" >&5
8796 echo "${ECHO_T}$unet_cv_with_group" >&6
8798 IRCDGRP=$unet_cv_with_group
8802 if test -f /etc/resolv.conf; then
8803 unet_domain=`awk '/^domain/ { print $2; exit }' /etc/resolv.conf`
8804 if test x"$unet_domain" = x; then
8805 unet_domain=`awk '/^search/ { print $2; exit }' /etc/resolv.conf`
8808 echo "$as_me:$LINENO: checking for site domain name" >&5
8809 echo $ECHO_N "checking for site domain name... $ECHO_C" >&6
8811 # Check whether --with-domain or --without-domain was given.
8812 if test "${with_domain+set}" = set; then
8813 withval="$with_domain"
8814 unet_cv_with_domain=$with_domain
8816 if test "${unet_cv_with_domain+set}" = set; then
8817 echo $ECHO_N "(cached) $ECHO_C" >&6
8819 unet_cv_with_domain=$unet_domain
8824 if test x"$unet_cv_with_domain" = xyes -o x"$unet_cv_with_domain" = xno; then
8825 unet_cv_with_domain=$unet_domain
8827 if test x"$unet_cv_with_domain" = xno; then
8828 { { echo "$as_me:$LINENO: error: Unable to determine server DNS domain; use --with-domain to set it" >&5
8829 echo "$as_me: error: Unable to determine server DNS domain; use --with-domain to set it" >&2;}
8830 { (exit 1); exit 1; }; }
8833 echo "$as_me:$LINENO: result: $unet_cv_with_domain" >&5
8834 echo "${ECHO_T}$unet_cv_with_domain" >&6
8837 cat >>confdefs.h <<_ACEOF
8838 #define DOMAINNAME "*$unet_cv_with_domain"
8842 echo "$as_me:$LINENO: checking if chroot operation is desired" >&5
8843 echo $ECHO_N "checking if chroot operation is desired... $ECHO_C" >&6
8845 # Check whether --with-chroot or --without-chroot was given.
8846 if test "${with_chroot+set}" = set; then
8847 withval="$with_chroot"
8848 unet_cv_with_chroot=$with_chroot
8850 if test "${unet_cv_with_chroot+set}" = set; then
8851 echo $ECHO_N "(cached) $ECHO_C" >&6
8853 unet_cv_with_chroot=no
8858 if test x"$unet_cv_with_chroot" = xyes; then
8859 { { echo "$as_me:$LINENO: error: --with-chroot given with no directory. See doc/readme.chroot." >&5
8860 echo "$as_me: error: --with-chroot given with no directory. See doc/readme.chroot." >&2;}
8861 { (exit 1); exit 1; }; }
8864 # Ensure there are no trailing /'s to mess us up
8865 unet_cv_with_chroot=`echo "$unet_cv_with_chroot" | sed 's%/*$%%'`
8867 echo "$as_me:$LINENO: result: $unet_cv_with_chroot" >&5
8868 echo "${ECHO_T}$unet_cv_with_chroot" >&6
8870 # Deal with the annoying value "NONE" here
8871 unet_save_prefix=$prefix
8872 if test x"$prefix" = xNONE; then
8873 prefix=$ac_default_prefix
8878 unet_save_exec_prefix=$exec_prefix
8879 if test x"$exec_prefix" = xNONE; then
8882 exec_prefix=$exec_prefix
8885 # Obtain the actual interesting directories
8886 unet_bindir=`eval echo "$bindir"`
8887 unet_libdir=`eval echo "$libdir"`
8889 # Restore the original settings of $prefix and $exec_prefix
8890 prefix=$unet_save_prefix
8891 exec_prefix=$unet_save_exec_prefix
8893 echo "$as_me:$LINENO: checking where the binary will be for /restart" >&5
8894 echo $ECHO_N "checking where the binary will be for /restart... $ECHO_C" >&6
8895 if test x"$unet_cv_with_symlink" = xno; then
8896 unet_spath="$unet_bindir/ircd"
8898 unet_spath="$unet_bindir/$unet_cv_with_symlink"
8900 echo "$as_me:$LINENO: result: $unet_spath" >&5
8901 echo "${ECHO_T}$unet_spath" >&6
8903 if test x"$unet_cv_with_chroot" != xno; then
8904 if echo "$unet_spath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
8905 unet_spath=`echo "$unet_spath" | sed "s%^$unet_cv_with_chroot%%"`
8907 { echo "$as_me:$LINENO: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&5
8908 echo "$as_me: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&2;}
8913 cat >>confdefs.h <<_ACEOF
8914 #define SPATH "$unet_spath"
8918 echo "$as_me:$LINENO: checking what the data directory should be" >&5
8919 echo $ECHO_N "checking what the data directory should be... $ECHO_C" >&6
8921 # Check whether --with-dpath or --without-dpath was given.
8922 if test "${with_dpath+set}" = set; then
8923 withval="$with_dpath"
8924 unet_cv_with_dpath=$with_dpath
8926 if test "${unet_cv_with_dpath+set}" = set; then
8927 echo $ECHO_N "(cached) $ECHO_C" >&6
8929 unet_cv_with_dpath=$unet_libdir
8934 if test x"$unet_cv_with_dpath" = xyes -o x"$unet_cv_with_dpath" = xno; then
8935 unet_cv_with_dpath=$unet_libdir
8938 # Ensure there are no trailing /'s to mess us up
8939 unet_cv_with_dpath=`echo "$unet_cv_with_dpath" | sed 's%/*$%%'`
8941 echo "$as_me:$LINENO: result: $unet_cv_with_dpath" >&5
8942 echo "${ECHO_T}$unet_cv_with_dpath" >&6
8944 if test x"$unet_cv_with_chroot" != xno; then
8945 if echo "$unet_cv_with_dpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
8946 unet_dpath=`echo "$unet_cv_with_dpath" | sed "s%^$unet_cv_with_chroot%%"`
8948 { { echo "$as_me:$LINENO: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&5
8949 echo "$as_me: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&2;}
8950 { (exit 1); exit 1; }; }
8953 unet_dpath=$unet_cv_with_dpath
8957 cat >>confdefs.h <<_ACEOF
8958 #define DPATH "$unet_dpath"
8962 DPATH=$unet_cv_with_dpath
8965 echo "$as_me:$LINENO: checking where the default configuration file resides" >&5
8966 echo $ECHO_N "checking where the default configuration file resides... $ECHO_C" >&6
8968 # Check whether --with-cpath or --without-cpath was given.
8969 if test "${with_cpath+set}" = set; then
8970 withval="$with_cpath"
8971 unet_cv_with_cpath=$with_cpath
8973 if test "${unet_cv_with_cpath+set}" = set; then
8974 echo $ECHO_N "(cached) $ECHO_C" >&6
8976 unet_cv_with_cpath="ircd.conf"
8981 if test x"$unet_cv_with_cpath" = xyes -o x"$unet_cv_with_cpath" = xno; then
8982 unet_cv_with_cpath="ircd.conf"
8985 echo "$as_me:$LINENO: result: $unet_cv_with_cpath" >&5
8986 echo "${ECHO_T}$unet_cv_with_cpath" >&6
8988 if echo "$unet_cv_with_cpath" | grep '^/' > /dev/null 2>&1; then
8989 # Absolute path; check against chroot stuff
8990 if test x"$unet_cv_with_chroot" != xno; then
8991 if echo "$unet_cv_with_cpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
8992 unet_cpath=`echo "$unet_cv_with_cpath" | sed "s%^$unet_cv_with_chroot%%"`
8994 { { echo "$as_me:$LINENO: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&5
8995 echo "$as_me: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&2;}
8996 { (exit 1); exit 1; }; }
8999 unet_cpath=$unet_cv_with_cpath
9002 unet_cpath=$unet_cv_with_cpath
9006 cat >>confdefs.h <<_ACEOF
9007 #define CPATH "$unet_cpath"
9011 echo "$as_me:$LINENO: checking where to put the debugging log if debugging enabled" >&5
9012 echo $ECHO_N "checking where to put the debugging log if debugging enabled... $ECHO_C" >&6
9014 # Check whether --with-lpath or --without-lpath was given.
9015 if test "${with_lpath+set}" = set; then
9016 withval="$with_lpath"
9017 unet_cv_with_lpath=$with_lpath
9019 if test "${unet_cv_with_lpath+set}" = set; then
9020 echo $ECHO_N "(cached) $ECHO_C" >&6
9022 unet_cv_with_lpath="ircd.log"
9027 if test x"$unet_cv_with_lpath" = xyes -o x"$unet_cv_with_lpath" = xno; then
9028 unet_cv_with_lpath="ircd.log"
9031 echo "$as_me:$LINENO: result: $unet_cv_with_lpath" >&5
9032 echo "${ECHO_T}$unet_cv_with_lpath" >&6
9034 if echo "$unet_cv_with_lpath" | grep '^/' > /dev/null 2>&1; then
9035 # Absolute path; check against chroot stuff
9036 if test x"$unet_cv_with_chroot" != xno; then
9037 if echo "$unet_cv_with_lpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
9038 unet_lpath=`echo "$unet_cv_with_lpath" | sed "s%^$unet_cv_with_chroot%%"`
9040 { 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
9041 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;}
9042 unet_cv_with_lpath="ircd.log"
9043 unet_lpath="ircd.log"
9046 unet_lpath=$unet_cv_with_lpath
9049 unet_lpath=$unet_cv_with_lpath
9053 cat >>confdefs.h <<_ACEOF
9054 #define LPATH "$unet_lpath"
9058 unet_maxcon=`ulimit -Hn`
9059 if test x"$unet_maxcon" = xunlimited; then
9060 unet_maxcon=`ulimit -Sn`
9062 unet_maxcon=`expr $unet_maxcon - 4`
9063 echo "$as_me:$LINENO: checking max connections" >&5
9064 echo $ECHO_N "checking max connections... $ECHO_C" >&6
9066 # Check whether --with-maxcon or --without-maxcon was given.
9067 if test "${with_maxcon+set}" = set; then
9068 withval="$with_maxcon"
9069 unet_cv_with_maxcon=$with_maxcon
9071 if test "${unet_cv_with_maxcon+set}" = set; then
9072 echo $ECHO_N "(cached) $ECHO_C" >&6
9074 unet_cv_with_maxcon=$unet_maxcon
9079 if test x"$unet_cv_with_maxcon" = xyes -o x"$unet_cv_with_maxcon" = xno; then
9080 unet_cv_with_maxcon=$unet_maxcon
9083 echo "$as_me:$LINENO: result: $unet_cv_with_maxcon" >&5
9084 echo "${ECHO_T}$unet_cv_with_maxcon" >&6
9087 cat >>confdefs.h <<_ACEOF
9088 #define MAXCONNECTIONS $unet_cv_with_maxcon
9092 ac_config_files="$ac_config_files Makefile ircd/Makefile doc/Makefile"
9093 ac_config_commands="$ac_config_commands default"
9094 cat >confcache <<\_ACEOF
9095 # This file is a shell script that caches the results of configure
9096 # tests run on this system so they can be shared between configure
9097 # scripts and configure runs, see configure's option --config-cache.
9098 # It is not useful on other systems. If it contains results you don't
9099 # want to keep, you may remove or edit it.
9101 # config.status only pays attention to the cache file if you give it
9102 # the --recheck option to rerun configure.
9104 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9105 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9110 # The following way of writing the cache mishandles newlines in values,
9111 # but we know of no workaround that is simple, portable, and efficient.
9112 # So, don't put newlines in cache variables' values.
9113 # Ultrix sh set writes to stderr and can't be redirected directly,
9114 # and sets the high bit in the cache file unless we assign to the vars.
9117 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9119 # `set' does not quote correctly, so add quotes (double-quote
9120 # substitution turns \\\\ into \\, and sed turns \\ into \).
9123 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9126 # `set' quotes correctly as required by POSIX, so do not add quotes.
9128 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9135 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9137 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9139 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9140 if test -w $cache_file; then
9141 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9142 cat confcache >$cache_file
9144 echo "not updating unwritable cache $cache_file"
9149 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9150 # Let make expand exec_prefix.
9151 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9153 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9154 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9155 # trailing colons and then remove the whole line if VPATH becomes empty
9156 # (actually we leave an empty line to preserve line numbers).
9157 if test "x$srcdir" = x.; then
9158 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9159 s/:*\$(srcdir):*/:/;
9160 s/:*\${srcdir}:*/:/;
9162 s/^\([^=]*=[ ]*\):*/\1/;
9168 DEFS=-DHAVE_CONFIG_H
9172 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9173 # 1. Remove the extension, and $U if already installed.
9174 ac_i=`echo "$ac_i" |
9175 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9177 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9178 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9182 LTLIBOBJS=$ac_ltlibobjs
9186 : ${CONFIG_STATUS=./config.status}
9187 ac_clean_files_save=$ac_clean_files
9188 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9189 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9190 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9191 cat >$CONFIG_STATUS <<_ACEOF
9193 # Generated by $as_me.
9194 # Run this file to recreate the current configuration.
9195 # Compiler output produced by configure, useful for debugging
9196 # configure, is in config.log if it exists.
9201 SHELL=\${CONFIG_SHELL-$SHELL}
9204 cat >>$CONFIG_STATUS <<\_ACEOF
9205 ## --------------------- ##
9206 ## M4sh Initialization. ##
9207 ## --------------------- ##
9209 # Be Bourne compatible
9210 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9213 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9214 # is contrary to our usage. Disable this feature.
9215 alias -g '${1+"$@"}'='"$@"'
9216 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9219 DUALCASE=1; export DUALCASE # for MKS sh
9221 # Support unset when possible.
9222 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9229 # Work around bugs in pre-3.0 UWIN ksh.
9230 $as_unset ENV MAIL MAILPATH
9237 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9238 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9239 LC_TELEPHONE LC_TIME
9241 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9242 eval $as_var=C; export $as_var
9248 # Required to use basename.
9249 if expr a : '\(a\)' >/dev/null 2>&1; then
9255 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9256 as_basename=basename
9262 # Name of the executable.
9263 as_me=`$as_basename "$0" ||
9264 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9265 X"$0" : 'X\(//\)$' \| \
9266 X"$0" : 'X\(/\)$' \| \
9267 . : '\(.\)' 2>/dev/null ||
9269 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9270 /^X\/\(\/\/\)$/{ s//\1/; q; }
9271 /^X\/\(\/\).*/{ s//\1/; q; }
9275 # PATH needs CR, and LINENO needs CR and PATH.
9276 # Avoid depending upon Character Ranges.
9277 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9278 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9279 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9280 as_cr_digits='0123456789'
9281 as_cr_alnum=$as_cr_Letters$as_cr_digits
9283 # The user is always right.
9284 if test "${PATH_SEPARATOR+set}" != set; then
9285 echo "#! /bin/sh" >conf$$.sh
9286 echo "exit 0" >>conf$$.sh
9288 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9299 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9300 test "x$as_lineno_1" != "x$as_lineno_2" &&
9301 test "x$as_lineno_3" = "x$as_lineno_2" || {
9302 # Find who we are. Look in the path if we contain no path at all
9305 *[\\/]* ) as_myself=$0 ;;
9306 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9310 test -z "$as_dir" && as_dir=.
9311 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9316 # We did not find ourselves, most probably we were run as `sh COMMAND'
9317 # in which case we are not to be found in the path.
9318 if test "x$as_myself" = x; then
9321 if test ! -f "$as_myself"; then
9322 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9323 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9324 { (exit 1); exit 1; }; }
9326 case $CONFIG_SHELL in
9328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9329 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9332 test -z "$as_dir" && as_dir=.
9333 for as_base in sh bash ksh sh5; do
9336 if ("$as_dir/$as_base" -c '
9339 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9340 test "x$as_lineno_1" != "x$as_lineno_2" &&
9341 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9342 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9343 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9344 CONFIG_SHELL=$as_dir/$as_base
9346 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9354 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9355 # uniformly replaced by the line number. The first 'sed' inserts a
9356 # line-number line before each line; the second 'sed' does the real
9357 # work. The second script uses 'N' to pair each line-number line
9358 # with the numbered line, and appends trailing '-' during
9359 # substitution so that $LINENO is not a special case at line end.
9360 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9361 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9362 sed '=' <$as_myself |
9367 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9370 s,^['$as_cr_digits']*\n,,
9372 chmod +x $as_me.lineno ||
9373 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9374 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9375 { (exit 1); exit 1; }; }
9377 # Don't try to exec as it changes $[0], causing all sort of problems
9378 # (the dirname of $[0] is not the place where we might find the
9379 # original and so on. Autoconf is especially sensible to this).
9381 # Exit status is that of the last command.
9386 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9387 *c*,-n*) ECHO_N= ECHO_C='
9389 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9390 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9393 if expr a : '\(a\)' >/dev/null 2>&1; then
9399 rm -f conf$$ conf$$.exe conf$$.file
9401 if ln -s conf$$.file conf$$ 2>/dev/null; then
9402 # We could just check for DJGPP; but this test a) works b) is more generic
9403 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9404 if test -f conf$$.exe; then
9405 # Don't use ln at all; we don't have any links
9410 elif ln conf$$.file conf$$ 2>/dev/null; then
9415 rm -f conf$$ conf$$.exe conf$$.file
9417 if mkdir -p . 2>/dev/null; then
9420 test -d ./-p && rmdir ./-p
9424 as_executable_p="test -f"
9426 # Sed expression to map a string onto a valid CPP name.
9427 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9429 # Sed expression to map a string onto a valid variable name.
9430 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9434 # We need space, tab and new line, in precisely that order.
9444 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9445 # report actual input values of CONFIG_FILES etc. instead of their
9446 # values after options handling. Logging --version etc. is OK.
9450 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9451 ## Running $as_me. ##
9456 This file was extended by $as_me, which was
9457 generated by GNU Autoconf 2.59. Invocation command line was
9459 CONFIG_FILES = $CONFIG_FILES
9460 CONFIG_HEADERS = $CONFIG_HEADERS
9461 CONFIG_LINKS = $CONFIG_LINKS
9462 CONFIG_COMMANDS = $CONFIG_COMMANDS
9466 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9470 # Files that config.status was made for.
9471 if test -n "$ac_config_files"; then
9472 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9475 if test -n "$ac_config_headers"; then
9476 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9479 if test -n "$ac_config_links"; then
9480 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9483 if test -n "$ac_config_commands"; then
9484 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9487 cat >>$CONFIG_STATUS <<\_ACEOF
9490 \`$as_me' instantiates files from templates according to the
9491 current configuration.
9493 Usage: $0 [OPTIONS] [FILE]...
9495 -h, --help print this help, then exit
9496 -V, --version print version number, then exit
9497 -q, --quiet do not print progress messages
9498 -d, --debug don't remove temporary files
9499 --recheck update $as_me by reconfiguring in the same conditions
9500 --file=FILE[:TEMPLATE]
9501 instantiate the configuration file FILE
9502 --header=FILE[:TEMPLATE]
9503 instantiate the configuration header FILE
9505 Configuration files:
9508 Configuration headers:
9511 Configuration commands:
9514 Report bugs to <bug-autoconf@gnu.org>."
9517 cat >>$CONFIG_STATUS <<_ACEOF
9520 configured by $0, generated by GNU Autoconf 2.59,
9521 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9523 Copyright (C) 2003 Free Software Foundation, Inc.
9524 This config.status script is free software; the Free Software Foundation
9525 gives unlimited permission to copy, distribute and modify it."
9530 cat >>$CONFIG_STATUS <<\_ACEOF
9531 # If no file are specified by the user, then we need to provide default
9532 # value. By we need to know if files were specified by the user.
9538 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9539 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9547 *) # This is not an option, so the user has probably given explicit
9550 ac_need_defaults=false;;
9554 # Handling of the options.
9556 cat >>$CONFIG_STATUS <<\_ACEOF
9557 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9559 --version | --vers* | -V )
9560 echo "$ac_cs_version"; exit 0 ;;
9562 # Conflict between --help and --header
9563 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9564 Try \`$0 --help' for more information." >&5
9565 echo "$as_me: error: ambiguous option: $1
9566 Try \`$0 --help' for more information." >&2;}
9567 { (exit 1); exit 1; }; };;
9568 --help | --hel | -h )
9569 echo "$ac_cs_usage"; exit 0 ;;
9570 --debug | --d* | -d )
9572 --file | --fil | --fi | --f )
9574 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9575 ac_need_defaults=false;;
9576 --header | --heade | --head | --hea )
9578 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9579 ac_need_defaults=false;;
9580 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9581 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9585 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9586 Try \`$0 --help' for more information." >&5
9587 echo "$as_me: error: unrecognized option: $1
9588 Try \`$0 --help' for more information." >&2;}
9589 { (exit 1); exit 1; }; } ;;
9591 *) ac_config_targets="$ac_config_targets $1" ;;
9597 ac_configure_extra_args=
9599 if $ac_cs_silent; then
9601 ac_configure_extra_args="$ac_configure_extra_args --silent"
9605 cat >>$CONFIG_STATUS <<_ACEOF
9606 if \$ac_cs_recheck; then
9607 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9608 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9617 cat >>$CONFIG_STATUS <<\_ACEOF
9618 for ac_config_target in $ac_config_targets
9620 case "$ac_config_target" in
9621 # Handling of arguments.
9622 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9623 "ircd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ircd/Makefile" ;;
9624 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
9625 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
9626 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9627 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9628 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9629 { (exit 1); exit 1; }; };;
9633 # If the user did not use the arguments to specify the items to instantiate,
9634 # then the envvar interface is used. Set only those that are not.
9635 # We use the long form for the default assignment because of an extremely
9636 # bizarre bug on SunOS 4.1.3.
9637 if $ac_need_defaults; then
9638 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9639 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9640 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9643 # Have a temporary directory for convenience. Make it in the build tree
9644 # simply because there is no reason to put it here, and in addition,
9645 # creating and moving files from /tmp can sometimes cause problems.
9646 # Create a temporary directory, and hook for its removal unless debugging.
9649 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9650 trap '{ (exit 1); exit 1; }' 1 2 13 15
9653 # Create a (secure) tmp directory for tmp files.
9656 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9657 test -n "$tmp" && test -d "$tmp"
9660 tmp=./confstat$$-$RANDOM
9661 (umask 077 && mkdir $tmp)
9664 echo "$me: cannot create a temporary directory in ." >&2
9665 { (exit 1); exit 1; }
9670 cat >>$CONFIG_STATUS <<_ACEOF
9673 # CONFIG_FILES section.
9676 # No need to generate the scripts if there are no CONFIG_FILES.
9677 # This happens for instance when ./config.status config.h
9678 if test -n "\$CONFIG_FILES"; then
9679 # Protect against being on the right side of a sed subst in config.status.
9680 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9681 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9682 s,@SHELL@,$SHELL,;t t
9683 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9684 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9685 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9686 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9687 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9688 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9689 s,@exec_prefix@,$exec_prefix,;t t
9690 s,@prefix@,$prefix,;t t
9691 s,@program_transform_name@,$program_transform_name,;t t
9692 s,@bindir@,$bindir,;t t
9693 s,@sbindir@,$sbindir,;t t
9694 s,@libexecdir@,$libexecdir,;t t
9695 s,@datadir@,$datadir,;t t
9696 s,@sysconfdir@,$sysconfdir,;t t
9697 s,@sharedstatedir@,$sharedstatedir,;t t
9698 s,@localstatedir@,$localstatedir,;t t
9699 s,@libdir@,$libdir,;t t
9700 s,@includedir@,$includedir,;t t
9701 s,@oldincludedir@,$oldincludedir,;t t
9702 s,@infodir@,$infodir,;t t
9703 s,@mandir@,$mandir,;t t
9704 s,@build_alias@,$build_alias,;t t
9705 s,@host_alias@,$host_alias,;t t
9706 s,@target_alias@,$target_alias,;t t
9708 s,@ECHO_C@,$ECHO_C,;t t
9709 s,@ECHO_N@,$ECHO_N,;t t
9710 s,@ECHO_T@,$ECHO_T,;t t
9712 s,@build@,$build,;t t
9713 s,@build_cpu@,$build_cpu,;t t
9714 s,@build_vendor@,$build_vendor,;t t
9715 s,@build_os@,$build_os,;t t
9717 s,@host_cpu@,$host_cpu,;t t
9718 s,@host_vendor@,$host_vendor,;t t
9719 s,@host_os@,$host_os,;t t
9721 s,@CFLAGS@,$CFLAGS,;t t
9722 s,@LDFLAGS@,$LDFLAGS,;t t
9723 s,@CPPFLAGS@,$CPPFLAGS,;t t
9724 s,@ac_ct_CC@,$ac_ct_CC,;t t
9725 s,@EXEEXT@,$EXEEXT,;t t
9726 s,@OBJEXT@,$OBJEXT,;t t
9728 s,@EGREP@,$EGREP,;t t
9730 s,@SET_MAKE@,$SET_MAKE,;t t
9731 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9732 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9733 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9736 s,@LEXLIB@,$LEXLIB,;t t
9737 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
9739 s,@RMPROG@,$RMPROG,;t t
9740 s,@SHPROG@,$SHPROG,;t t
9741 s,@ENGINE_C@,$ENGINE_C,;t t
9742 s,@INSTALL_RULE@,$INSTALL_RULE,;t t
9743 s,@SYMLINK@,$SYMLINK,;t t
9744 s,@IRCDMODE@,$IRCDMODE,;t t
9745 s,@IRCDOWN@,$IRCDOWN,;t t
9746 s,@IRCDGRP@,$IRCDGRP,;t t
9747 s,@DPATH@,$DPATH,;t t
9748 s,@LIBOBJS@,$LIBOBJS,;t t
9749 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9754 cat >>$CONFIG_STATUS <<\_ACEOF
9755 # Split the substitutions into bite-sized pieces for seds with
9756 # small command number limits, like on Digital OSF/1 and HP-UX.
9758 ac_sed_frag=1 # Number of current file.
9759 ac_beg=1 # First line for current file.
9760 ac_end=$ac_max_sed_lines # Line after last line for current file.
9763 while $ac_more_lines; do
9764 if test $ac_beg -gt 1; then
9765 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9767 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9769 if test ! -s $tmp/subs.frag; then
9772 # The purpose of the label and of the branching condition is to
9773 # speed up the sed processing (if there are no `@' at all, there
9774 # is no need to browse any of the substitutions).
9775 # These are the two extra sed commands mentioned above.
9777 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9778 if test -z "$ac_sed_cmds"; then
9779 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9781 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9783 ac_sed_frag=`expr $ac_sed_frag + 1`
9785 ac_end=`expr $ac_end + $ac_max_sed_lines`
9788 if test -z "$ac_sed_cmds"; then
9791 fi # test -n "$CONFIG_FILES"
9794 cat >>$CONFIG_STATUS <<\_ACEOF
9795 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9796 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9798 - | *:- | *:-:* ) # input from stdin
9800 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9801 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9802 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9803 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9804 * ) ac_file_in=$ac_file.in ;;
9807 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9808 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9809 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9810 X"$ac_file" : 'X\(//\)[^/]' \| \
9811 X"$ac_file" : 'X\(//\)$' \| \
9812 X"$ac_file" : 'X\(/\)' \| \
9813 . : '\(.\)' 2>/dev/null ||
9815 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9816 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9817 /^X\(\/\/\)$/{ s//\1/; q; }
9818 /^X\(\/\).*/{ s//\1/; q; }
9820 { if $as_mkdir_p; then
9825 while test ! -d "$as_dir"; do
9826 as_dirs="$as_dir $as_dirs"
9827 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9828 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9829 X"$as_dir" : 'X\(//\)[^/]' \| \
9830 X"$as_dir" : 'X\(//\)$' \| \
9831 X"$as_dir" : 'X\(/\)' \| \
9832 . : '\(.\)' 2>/dev/null ||
9834 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9835 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9836 /^X\(\/\/\)$/{ s//\1/; q; }
9837 /^X\(\/\).*/{ s//\1/; q; }
9840 test ! -n "$as_dirs" || mkdir $as_dirs
9841 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9842 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9843 { (exit 1); exit 1; }; }; }
9847 if test "$ac_dir" != .; then
9848 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9849 # A "../" for each directory in $ac_dir_suffix.
9850 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9852 ac_dir_suffix= ac_top_builddir=
9856 .) # No --srcdir option. We are building in place.
9858 if test -z "$ac_top_builddir"; then
9861 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9863 [\\/]* | ?:[\\/]* ) # Absolute path.
9864 ac_srcdir=$srcdir$ac_dir_suffix;
9865 ac_top_srcdir=$srcdir ;;
9867 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9868 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9871 # Do not use `cd foo && pwd` to compute absolute paths, because
9872 # the directories may not exist.
9874 .) ac_abs_builddir="$ac_dir";;
9877 .) ac_abs_builddir=`pwd`;;
9878 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9879 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9882 case $ac_abs_builddir in
9883 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9885 case ${ac_top_builddir}. in
9886 .) ac_abs_top_builddir=$ac_abs_builddir;;
9887 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9888 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9891 case $ac_abs_builddir in
9892 .) ac_abs_srcdir=$ac_srcdir;;
9895 .) ac_abs_srcdir=$ac_abs_builddir;;
9896 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9897 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9900 case $ac_abs_builddir in
9901 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9903 case $ac_top_srcdir in
9904 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9905 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9906 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9912 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9913 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9916 # Let's still pretend it is `configure' which instantiates (i.e., don't
9917 # use $as_me), people would be surprised to read:
9918 # /* config.h. Generated by config.status. */
9919 if test x"$ac_file" = x-; then
9922 configure_input="$ac_file. "
9924 configure_input=$configure_input"Generated from `echo $ac_file_in |
9925 sed 's,.*/,,'` by configure."
9927 # First look for the input files in the build tree, otherwise in the
9929 ac_file_inputs=`IFS=:
9930 for f in $ac_file_in; do
9932 -) echo $tmp/stdin ;;
9934 # Absolute (can't be DOS-style, as IFS=:)
9935 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9936 echo "$as_me: error: cannot find input file: $f" >&2;}
9937 { (exit 1); exit 1; }; }
9940 if test -f "$f"; then
9943 elif test -f "$srcdir/$f"; then
9948 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9949 echo "$as_me: error: cannot find input file: $f" >&2;}
9950 { (exit 1); exit 1; }; }
9953 done` || { (exit 1); exit 1; }
9955 if test x"$ac_file" != x-; then
9956 { echo "$as_me:$LINENO: creating $ac_file" >&5
9957 echo "$as_me: creating $ac_file" >&6;}
9961 cat >>$CONFIG_STATUS <<_ACEOF
9965 cat >>$CONFIG_STATUS <<\_ACEOF
9967 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9968 s,@configure_input@,$configure_input,;t t
9969 s,@srcdir@,$ac_srcdir,;t t
9970 s,@abs_srcdir@,$ac_abs_srcdir,;t t
9971 s,@top_srcdir@,$ac_top_srcdir,;t t
9972 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9973 s,@builddir@,$ac_builddir,;t t
9974 s,@abs_builddir@,$ac_abs_builddir,;t t
9975 s,@top_builddir@,$ac_top_builddir,;t t
9976 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9977 s,@INSTALL@,$ac_INSTALL,;t t
9978 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9980 if test x"$ac_file" != x-; then
9981 mv $tmp/out $ac_file
9989 cat >>$CONFIG_STATUS <<\_ACEOF
9992 # CONFIG_HEADER section.
9995 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9996 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9998 # ac_d sets the value in "#define NAME VALUE" lines.
9999 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10000 ac_dB='[ ].*$,\1#\2'
10003 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10004 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10005 ac_uB='$,\1#\2define\3'
10009 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10010 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10012 - | *:- | *:-:* ) # input from stdin
10014 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10015 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10016 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10017 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10018 * ) ac_file_in=$ac_file.in ;;
10021 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10022 echo "$as_me: creating $ac_file" >&6;}
10024 # First look for the input files in the build tree, otherwise in the
10026 ac_file_inputs=`IFS=:
10027 for f in $ac_file_in; do
10029 -) echo $tmp/stdin ;;
10031 # Absolute (can't be DOS-style, as IFS=:)
10032 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10033 echo "$as_me: error: cannot find input file: $f" >&2;}
10034 { (exit 1); exit 1; }; }
10035 # Do quote $f, to prevent DOS paths from being IFS'd.
10038 if test -f "$f"; then
10041 elif test -f "$srcdir/$f"; then
10046 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10047 echo "$as_me: error: cannot find input file: $f" >&2;}
10048 { (exit 1); exit 1; }; }
10051 done` || { (exit 1); exit 1; }
10052 # Remove the trailing spaces.
10053 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10057 # Transform confdefs.h into two sed scripts, `conftest.defines' and
10058 # `conftest.undefs', that substitutes the proper values into
10059 # config.h.in to produce config.h. The first handles `#define'
10060 # templates, and the second `#undef' templates.
10061 # And first: Protect against being on the right side of a sed subst in
10062 # config.status. Protect against being in an unquoted here document
10063 # in config.status.
10064 rm -f conftest.defines conftest.undefs
10065 # Using a here document instead of a string reduces the quoting nightmare.
10066 # Putting comments in sed scripts is not portable.
10068 # `end' is used to avoid that the second main sed command (meant for
10069 # 0-ary CPP macros) applies to n-ary macro definitions.
10070 # See the Autoconf documentation for `clear'.
10071 cat >confdef2sed.sed <<\_ACEOF
10076 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10078 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10081 # If some macros were called several times there might be several times
10082 # the same #defines, which is useless. Nevertheless, we may not want to
10083 # sort them, since we want the *last* AC-DEFINE to be honored.
10084 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10085 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10086 rm -f confdef2sed.sed
10088 # This sed command replaces #undef with comments. This is necessary, for
10089 # example, in the case of _POSIX_SOURCE, which is predefined and required
10090 # on some systems where configure will not decide to define it.
10091 cat >>conftest.undefs <<\_ACEOF
10092 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10095 # Break up conftest.defines because some shells have a limit on the size
10096 # of here documents, and old seds have small limits too (100 cmds).
10097 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10098 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10099 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10100 echo ' :' >>$CONFIG_STATUS
10101 rm -f conftest.tail
10102 while grep . conftest.defines >/dev/null
10104 # Write a limited-size here document to $tmp/defines.sed.
10105 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10106 # Speed up: don't consider the non `#define' lines.
10107 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10108 # Work around the forget-to-reset-the-flag bug.
10109 echo 't clr' >>$CONFIG_STATUS
10110 echo ': clr' >>$CONFIG_STATUS
10111 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10113 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10115 mv $tmp/out $tmp/in
10117 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10118 rm -f conftest.defines
10119 mv conftest.tail conftest.defines
10121 rm -f conftest.defines
10122 echo ' fi # grep' >>$CONFIG_STATUS
10123 echo >>$CONFIG_STATUS
10125 # Break up conftest.undefs because some shells have a limit on the size
10126 # of here documents, and old seds have small limits too (100 cmds).
10127 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10128 rm -f conftest.tail
10129 while grep . conftest.undefs >/dev/null
10131 # Write a limited-size here document to $tmp/undefs.sed.
10132 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10133 # Speed up: don't consider the non `#undef'
10134 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10135 # Work around the forget-to-reset-the-flag bug.
10136 echo 't clr' >>$CONFIG_STATUS
10137 echo ': clr' >>$CONFIG_STATUS
10138 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10140 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10142 mv $tmp/out $tmp/in
10144 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10145 rm -f conftest.undefs
10146 mv conftest.tail conftest.undefs
10148 rm -f conftest.undefs
10150 cat >>$CONFIG_STATUS <<\_ACEOF
10151 # Let's still pretend it is `configure' which instantiates (i.e., don't
10152 # use $as_me), people would be surprised to read:
10153 # /* config.h. Generated by config.status. */
10154 if test x"$ac_file" = x-; then
10155 echo "/* Generated by configure. */" >$tmp/config.h
10157 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10159 cat $tmp/in >>$tmp/config.h
10161 if test x"$ac_file" != x-; then
10162 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10163 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10164 echo "$as_me: $ac_file is unchanged" >&6;}
10166 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10167 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10168 X"$ac_file" : 'X\(//\)[^/]' \| \
10169 X"$ac_file" : 'X\(//\)$' \| \
10170 X"$ac_file" : 'X\(/\)' \| \
10171 . : '\(.\)' 2>/dev/null ||
10173 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10174 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10175 /^X\(\/\/\)$/{ s//\1/; q; }
10176 /^X\(\/\).*/{ s//\1/; q; }
10178 { if $as_mkdir_p; then
10183 while test ! -d "$as_dir"; do
10184 as_dirs="$as_dir $as_dirs"
10185 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10186 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10187 X"$as_dir" : 'X\(//\)[^/]' \| \
10188 X"$as_dir" : 'X\(//\)$' \| \
10189 X"$as_dir" : 'X\(/\)' \| \
10190 . : '\(.\)' 2>/dev/null ||
10192 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10193 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10194 /^X\(\/\/\)$/{ s//\1/; q; }
10195 /^X\(\/\).*/{ s//\1/; q; }
10198 test ! -n "$as_dirs" || mkdir $as_dirs
10199 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10200 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10201 { (exit 1); exit 1; }; }; }
10204 mv $tmp/config.h $ac_file
10208 rm -f $tmp/config.h
10212 cat >>$CONFIG_STATUS <<\_ACEOF
10215 # CONFIG_COMMANDS section.
10217 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10218 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10219 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10220 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10221 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10222 X"$ac_dest" : 'X\(//\)[^/]' \| \
10223 X"$ac_dest" : 'X\(//\)$' \| \
10224 X"$ac_dest" : 'X\(/\)' \| \
10225 . : '\(.\)' 2>/dev/null ||
10227 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10228 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10229 /^X\(\/\/\)$/{ s//\1/; q; }
10230 /^X\(\/\).*/{ s//\1/; q; }
10232 { if $as_mkdir_p; then
10237 while test ! -d "$as_dir"; do
10238 as_dirs="$as_dir $as_dirs"
10239 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10240 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10241 X"$as_dir" : 'X\(//\)[^/]' \| \
10242 X"$as_dir" : 'X\(//\)$' \| \
10243 X"$as_dir" : 'X\(/\)' \| \
10244 . : '\(.\)' 2>/dev/null ||
10246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10247 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10248 /^X\(\/\/\)$/{ s//\1/; q; }
10249 /^X\(\/\).*/{ s//\1/; q; }
10252 test ! -n "$as_dirs" || mkdir $as_dirs
10253 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10254 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10255 { (exit 1); exit 1; }; }; }
10259 if test "$ac_dir" != .; then
10260 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10261 # A "../" for each directory in $ac_dir_suffix.
10262 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10264 ac_dir_suffix= ac_top_builddir=
10268 .) # No --srcdir option. We are building in place.
10270 if test -z "$ac_top_builddir"; then
10273 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10275 [\\/]* | ?:[\\/]* ) # Absolute path.
10276 ac_srcdir=$srcdir$ac_dir_suffix;
10277 ac_top_srcdir=$srcdir ;;
10278 *) # Relative path.
10279 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10280 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10283 # Do not use `cd foo && pwd` to compute absolute paths, because
10284 # the directories may not exist.
10286 .) ac_abs_builddir="$ac_dir";;
10289 .) ac_abs_builddir=`pwd`;;
10290 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10291 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10294 case $ac_abs_builddir in
10295 .) ac_abs_top_builddir=${ac_top_builddir}.;;
10297 case ${ac_top_builddir}. in
10298 .) ac_abs_top_builddir=$ac_abs_builddir;;
10299 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10300 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10303 case $ac_abs_builddir in
10304 .) ac_abs_srcdir=$ac_srcdir;;
10307 .) ac_abs_srcdir=$ac_abs_builddir;;
10308 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10309 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10312 case $ac_abs_builddir in
10313 .) ac_abs_top_srcdir=$ac_top_srcdir;;
10315 case $ac_top_srcdir in
10316 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10317 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10318 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10323 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10324 echo "$as_me: executing $ac_dest commands" >&6;}
10326 default ) echo timestamp > stamp-h ;;
10331 cat >>$CONFIG_STATUS <<\_ACEOF
10333 { (exit 0); exit 0; }
10335 chmod +x $CONFIG_STATUS
10336 ac_clean_files=$ac_clean_files_save
10339 # configure is writing to config.log, and then calls config.status.
10340 # config.status does its own redirection, appending to config.log.
10341 # Unfortunately, on DOS this fails, as config.log is still kept open
10342 # by configure, so config.status won't be able to write to it; its
10343 # output is simply discarded. So we exec the FD to /dev/null,
10344 # effectively closing config.log, so it can be properly (re)opened and
10345 # appended to by config.status. When coming back to configure, we
10346 # need to make the FD available again.
10347 if test "$no_create" != yes; then
10349 ac_config_status_args=
10350 test "$silent" = yes &&
10351 ac_config_status_args="$ac_config_status_args --quiet"
10353 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10355 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10356 # would make configure fail if this is the last instruction.
10357 $ac_cs_success || { (exit 1); exit 1; }
10361 ac_config_commands="$ac_config_commands default-1"