2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="ircd/ircd.c"
275 ac_default_prefix=$HOME
276 # Factoring default headers for most tests.
277 ac_includes_default="\
280 # include <sys/types.h>
283 # include <sys/stat.h>
294 # if !STDC_HEADERS && HAVE_MEMORY_H
300 # include <strings.h>
303 # include <inttypes.h>
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP AWK SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S RMPROG SHPROG LEX LEXLIB LEX_OUTPUT_ROOT YACC ENGINE_C INSTALL_RULE SYMLINK IRCDMODE IRCDOWN IRCDGRP DPATH LIBOBJS LTLIBOBJS'
316 # Initialize some variables set by options.
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
328 program_transform_name=s,x,x,
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
388 cache_file=config.cache ;;
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 datadir=$ac_optarg ;;
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
431 -help | --help | --hel | --he | -h)
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
455 -libdir | --libdir | --libdi | --libd)
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 # Obsolete; use --without-fp.
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 sbindir=$ac_optarg ;;
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 sharedstatedir=$ac_optarg ;;
559 -site | --site | --sit)
561 -site=* | --site=* | --sit=*)
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 -version | --version | --versio | --versi | --vers | -V)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
610 # Obsolete; use --with-x.
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
662 eval ac_val=$`echo $ac_var`
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val=$`echo $ac_var`
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703 test "$silent" = yes && exec 6>/dev/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
723 if test ! -r $srcdir/$ac_unique_file; then
727 ac_srcdir_defaulted=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
776 # Report the --help message.
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
782 \`configure' configures this package to adapt to many kinds of systems.
784 Usage: $0 [OPTION]... [VAR=VALUE]...
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
789 Defaults for the options are specified in brackets.
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
816 For better control, use the options below.
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
836 --build=BUILD configure for building on BUILD [guessed]
837 --host=HOST cross-compile to build programs to run on HOST [BUILD]
841 if test -n "$ac_init_help"; then
846 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
847 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
848 --enable-poll Force poll to be used regardless of whether or not
850 --enable-debug Turn on debugging mode
851 --disable-asserts Disable assertion checking
852 --disable-symbols Disable debugging symbols (remove -g from CFLAGS)
853 --enable-profile Enable profiling support (add -pg to CFLAGS)
854 --enable-pedantic Enable pedantic warnings (add -pedantic to CFLAGS)
855 --enable-warnings Enable warnings (add -Wall to CFLAGS)
856 --disable-inlines Disable inlining for a few critical functions
857 --disable-devpoll Disable the /dev/poll-based engine
858 --disable-kqueue Disable the kqueue-based engine
859 --disable-epoll Disable the epoll-based engine
862 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
863 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
864 --with-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 10.20 and later -Ae
2370 # HP-UX older versions -Aa -D_HPUX_SOURCE
2371 # SVR4 -Xc -D__EXTENSIONS__
2372 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2374 CC="$ac_save_CC $ac_arg"
2375 cat >conftest.$ac_ext <<_ACEOF
2378 cat confdefs.h >>conftest.$ac_ext
2379 cat >>conftest.$ac_ext <<_ACEOF
2380 /* end confdefs.h. */
2383 #include <sys/types.h>
2384 #include <sys/stat.h>
2385 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2386 struct buf { int x; };
2387 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2388 static char *e (p, i)
2394 static char *f (char * (*g) (char **, int), char **p, ...)
2399 s = g (p, va_arg (v,int));
2403 int test (int i, double x);
2404 struct s1 {int (*f) (int a);};
2405 struct s2 {int (*f) (double a);};
2406 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2414 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2420 rm -f conftest.$ac_objext
2421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2422 (eval $ac_compile) 2>conftest.er1
2424 grep -v '^ *+' conftest.er1 >conftest.err
2426 cat conftest.err >&5
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); } &&
2429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); }; } &&
2435 { ac_try='test -s conftest.$ac_objext'
2436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); }; }; then
2441 am_cv_prog_cc_stdc="$ac_arg"; break
2443 echo "$as_me: failed program was:" >&5
2444 sed 's/^/| /' conftest.$ac_ext >&5
2447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2453 if test -z "$am_cv_prog_cc_stdc"; then
2454 echo "$as_me:$LINENO: result: none needed" >&5
2455 echo "${ECHO_T}none needed" >&6
2457 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2458 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2460 case "x$am_cv_prog_cc_stdc" in
2462 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2465 if test x"$CFLAGS" != x; then
2466 CFLAGS=`echo "$CFLAGS" | sed -e 's/-O2/-O3/'`
2468 if test x"$CFLAGS" != x; then
2469 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pipe//g'`
2471 if test x"$CFLAGS" != x; then
2472 unet_old_cflags=$CFLAGS
2473 CFLAGS=`echo "$CFLAGS" | sed -e 's/-g//g'`
2475 if test x"$CFLAGS" != x"$unet_old_cflags"; then
2476 # If -g was already there, force symbols to be enabled
2477 unet_cv_enable_symbols=yes
2479 if test x"$CFLAGS" != x; then
2480 unet_old_cflags=$CFLAGS
2481 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pg//g'`
2483 if test x"$CFLAGS" != x"$unet_old_cflags"; then
2484 # If -pg was already there, force profiling to be enabled
2485 unet_cv_enable_profile=yes
2487 if test x"$CFLAGS" != x; then
2488 unet_old_cflags=$CFLAGS
2489 CFLAGS=`echo "$CFLAGS" | sed -e 's/-Wall//g'`
2491 if test x"$CFLAGS" != x"$unet_old_cflags"; then
2492 # If -Wall was already there, force warnings to be enabled
2493 unet_cv_enable_warnings=yes
2495 if test x"$CFLAGS" != x; then
2496 unet_old_cflags=$CFLAGS
2497 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pedantic//g'`
2499 if test x"$CFLAGS" != x"$unet_old_cflags"; then
2500 # If -pedantic was already there, force pedatic to be enabled
2501 unet_cv_enable_pedantic=yes
2505 echo "$as_me:$LINENO: checking for library containing crypt" >&5
2506 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
2507 if test "${ac_cv_search_crypt+set}" = set; then
2508 echo $ECHO_N "(cached) $ECHO_C" >&6
2510 ac_func_search_save_LIBS=$LIBS
2511 ac_cv_search_crypt=no
2512 cat >conftest.$ac_ext <<_ACEOF
2515 cat confdefs.h >>conftest.$ac_ext
2516 cat >>conftest.$ac_ext <<_ACEOF
2517 /* end confdefs.h. */
2519 /* Override any gcc2 internal prototype to avoid an error. */
2523 /* We use char because int might match the return type of a gcc2
2524 builtin and then its argument prototype would still apply. */
2534 rm -f conftest.$ac_objext conftest$ac_exeext
2535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2536 (eval $ac_link) 2>conftest.er1
2538 grep -v '^ *+' conftest.er1 >conftest.err
2540 cat conftest.err >&5
2541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542 (exit $ac_status); } &&
2543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); }; } &&
2549 { ac_try='test -s conftest$ac_exeext'
2550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); }; }; then
2555 ac_cv_search_crypt="none required"
2557 echo "$as_me: failed program was:" >&5
2558 sed 's/^/| /' conftest.$ac_ext >&5
2561 rm -f conftest.err conftest.$ac_objext \
2562 conftest$ac_exeext conftest.$ac_ext
2563 if test "$ac_cv_search_crypt" = no; then
2564 for ac_lib in descrypt crypt; do
2565 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2566 cat >conftest.$ac_ext <<_ACEOF
2569 cat confdefs.h >>conftest.$ac_ext
2570 cat >>conftest.$ac_ext <<_ACEOF
2571 /* end confdefs.h. */
2573 /* Override any gcc2 internal prototype to avoid an error. */
2577 /* We use char because int might match the return type of a gcc2
2578 builtin and then its argument prototype would still apply. */
2588 rm -f conftest.$ac_objext conftest$ac_exeext
2589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2590 (eval $ac_link) 2>conftest.er1
2592 grep -v '^ *+' conftest.er1 >conftest.err
2594 cat conftest.err >&5
2595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596 (exit $ac_status); } &&
2597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602 (exit $ac_status); }; } &&
2603 { ac_try='test -s conftest$ac_exeext'
2604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); }; }; then
2609 ac_cv_search_crypt="-l$ac_lib"
2612 echo "$as_me: failed program was:" >&5
2613 sed 's/^/| /' conftest.$ac_ext >&5
2616 rm -f conftest.err conftest.$ac_objext \
2617 conftest$ac_exeext conftest.$ac_ext
2620 LIBS=$ac_func_search_save_LIBS
2622 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
2623 echo "${ECHO_T}$ac_cv_search_crypt" >&6
2624 if test "$ac_cv_search_crypt" != no; then
2625 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
2628 { { echo "$as_me:$LINENO: error: Unable to find library containing crypt()" >&5
2629 echo "$as_me: error: Unable to find library containing crypt()" >&2;}
2630 { (exit 1); exit 1; }; }
2635 # Most operating systems have gethostbyname() in the default searched
2636 # libraries (i.e. libc):
2637 echo "$as_me:$LINENO: checking for gethostbyname" >&5
2638 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
2639 if test "${ac_cv_func_gethostbyname+set}" = set; then
2640 echo $ECHO_N "(cached) $ECHO_C" >&6
2642 cat >conftest.$ac_ext <<_ACEOF
2645 cat confdefs.h >>conftest.$ac_ext
2646 cat >>conftest.$ac_ext <<_ACEOF
2647 /* end confdefs.h. */
2648 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
2649 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2650 #define gethostbyname innocuous_gethostbyname
2652 /* System header to define __stub macros and hopefully few prototypes,
2653 which can conflict with char gethostbyname (); below.
2654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2655 <limits.h> exists even on freestanding compilers. */
2658 # include <limits.h>
2660 # include <assert.h>
2663 #undef gethostbyname
2665 /* Override any gcc2 internal prototype to avoid an error. */
2670 /* We use char because int might match the return type of a gcc2
2671 builtin and then its argument prototype would still apply. */
2672 char gethostbyname ();
2673 /* The GNU C library defines this for functions which it implements
2674 to always fail with ENOSYS. Some functions are actually named
2675 something starting with __ and the normal name is an alias. */
2676 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2679 char (*f) () = gethostbyname;
2688 return f != gethostbyname;
2693 rm -f conftest.$ac_objext conftest$ac_exeext
2694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2695 (eval $ac_link) 2>conftest.er1
2697 grep -v '^ *+' conftest.er1 >conftest.err
2699 cat conftest.err >&5
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); } &&
2702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); }; } &&
2708 { ac_try='test -s conftest$ac_exeext'
2709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); }; }; then
2714 ac_cv_func_gethostbyname=yes
2716 echo "$as_me: failed program was:" >&5
2717 sed 's/^/| /' conftest.$ac_ext >&5
2719 ac_cv_func_gethostbyname=no
2721 rm -f conftest.err conftest.$ac_objext \
2722 conftest$ac_exeext conftest.$ac_ext
2724 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
2725 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
2726 if test $ac_cv_func_gethostbyname = yes; then
2729 # Some OSes (eg. Solaris) place it in libnsl:
2731 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
2732 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
2733 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
2734 echo $ECHO_N "(cached) $ECHO_C" >&6
2736 ac_check_lib_save_LIBS=$LIBS
2738 cat >conftest.$ac_ext <<_ACEOF
2741 cat confdefs.h >>conftest.$ac_ext
2742 cat >>conftest.$ac_ext <<_ACEOF
2743 /* end confdefs.h. */
2745 /* Override any gcc2 internal prototype to avoid an error. */
2749 /* We use char because int might match the return type of a gcc2
2750 builtin and then its argument prototype would still apply. */
2751 char gethostbyname ();
2760 rm -f conftest.$ac_objext conftest$ac_exeext
2761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2762 (eval $ac_link) 2>conftest.er1
2764 grep -v '^ *+' conftest.er1 >conftest.err
2766 cat conftest.err >&5
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); } &&
2769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); }; } &&
2775 { ac_try='test -s conftest$ac_exeext'
2776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); }; }; then
2781 ac_cv_lib_nsl_gethostbyname=yes
2783 echo "$as_me: failed program was:" >&5
2784 sed 's/^/| /' conftest.$ac_ext >&5
2786 ac_cv_lib_nsl_gethostbyname=no
2788 rm -f conftest.err conftest.$ac_objext \
2789 conftest$ac_exeext conftest.$ac_ext
2790 LIBS=$ac_check_lib_save_LIBS
2792 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
2793 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
2794 if test $ac_cv_lib_nsl_gethostbyname = yes; then
2795 cat >>confdefs.h <<_ACEOF
2796 #define HAVE_LIBNSL 1
2802 # Some strange OSes (SINIX) have it in libsocket:
2804 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
2805 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
2806 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
2807 echo $ECHO_N "(cached) $ECHO_C" >&6
2809 ac_check_lib_save_LIBS=$LIBS
2810 LIBS="-lsocket $LIBS"
2811 cat >conftest.$ac_ext <<_ACEOF
2814 cat confdefs.h >>conftest.$ac_ext
2815 cat >>conftest.$ac_ext <<_ACEOF
2816 /* end confdefs.h. */
2818 /* Override any gcc2 internal prototype to avoid an error. */
2822 /* We use char because int might match the return type of a gcc2
2823 builtin and then its argument prototype would still apply. */
2824 char gethostbyname ();
2833 rm -f conftest.$ac_objext conftest$ac_exeext
2834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2835 (eval $ac_link) 2>conftest.er1
2837 grep -v '^ *+' conftest.er1 >conftest.err
2839 cat conftest.err >&5
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); } &&
2842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); }; } &&
2848 { ac_try='test -s conftest$ac_exeext'
2849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853 (exit $ac_status); }; }; then
2854 ac_cv_lib_socket_gethostbyname=yes
2856 echo "$as_me: failed program was:" >&5
2857 sed 's/^/| /' conftest.$ac_ext >&5
2859 ac_cv_lib_socket_gethostbyname=no
2861 rm -f conftest.err conftest.$ac_objext \
2862 conftest$ac_exeext conftest.$ac_ext
2863 LIBS=$ac_check_lib_save_LIBS
2865 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
2866 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
2867 if test $ac_cv_lib_socket_gethostbyname = yes; then
2868 cat >>confdefs.h <<_ACEOF
2869 #define HAVE_LIBSOCKET 1
2872 LIBS="-lsocket $LIBS"
2875 # Unfortunately libsocket sometimes depends on libnsl.
2876 # AC_CHECK_LIB's API is essentially broken so the following
2877 # ugliness is necessary:
2878 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
2879 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
2880 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
2881 echo $ECHO_N "(cached) $ECHO_C" >&6
2883 ac_check_lib_save_LIBS=$LIBS
2884 LIBS="-lsocket -lnsl $LIBS"
2885 cat >conftest.$ac_ext <<_ACEOF
2888 cat confdefs.h >>conftest.$ac_ext
2889 cat >>conftest.$ac_ext <<_ACEOF
2890 /* end confdefs.h. */
2892 /* Override any gcc2 internal prototype to avoid an error. */
2896 /* We use char because int might match the return type of a gcc2
2897 builtin and then its argument prototype would still apply. */
2898 char gethostbyname ();
2907 rm -f conftest.$ac_objext conftest$ac_exeext
2908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2909 (eval $ac_link) 2>conftest.er1
2911 grep -v '^ *+' conftest.er1 >conftest.err
2913 cat conftest.err >&5
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); } &&
2916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); }; } &&
2922 { ac_try='test -s conftest$ac_exeext'
2923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); }; }; then
2928 ac_cv_lib_socket_gethostbyname=yes
2930 echo "$as_me: failed program was:" >&5
2931 sed 's/^/| /' conftest.$ac_ext >&5
2933 ac_cv_lib_socket_gethostbyname=no
2935 rm -f conftest.err conftest.$ac_objext \
2936 conftest$ac_exeext conftest.$ac_ext
2937 LIBS=$ac_check_lib_save_LIBS
2939 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
2940 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
2941 if test $ac_cv_lib_socket_gethostbyname = yes; then
2942 LIBS="-lsocket -lnsl $LIBS"
2945 echo "$as_me:$LINENO: checking for gethostbyname in -lresolv" >&5
2946 echo $ECHO_N "checking for gethostbyname in -lresolv... $ECHO_C" >&6
2947 if test "${ac_cv_lib_resolv_gethostbyname+set}" = set; then
2948 echo $ECHO_N "(cached) $ECHO_C" >&6
2950 ac_check_lib_save_LIBS=$LIBS
2951 LIBS="-lresolv $LIBS"
2952 cat >conftest.$ac_ext <<_ACEOF
2955 cat confdefs.h >>conftest.$ac_ext
2956 cat >>conftest.$ac_ext <<_ACEOF
2957 /* end confdefs.h. */
2959 /* Override any gcc2 internal prototype to avoid an error. */
2963 /* We use char because int might match the return type of a gcc2
2964 builtin and then its argument prototype would still apply. */
2965 char gethostbyname ();
2974 rm -f conftest.$ac_objext conftest$ac_exeext
2975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2976 (eval $ac_link) 2>conftest.er1
2978 grep -v '^ *+' conftest.er1 >conftest.err
2980 cat conftest.err >&5
2981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982 (exit $ac_status); } &&
2983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); }; } &&
2989 { ac_try='test -s conftest$ac_exeext'
2990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); }; }; then
2995 ac_cv_lib_resolv_gethostbyname=yes
2997 echo "$as_me: failed program was:" >&5
2998 sed 's/^/| /' conftest.$ac_ext >&5
3000 ac_cv_lib_resolv_gethostbyname=no
3002 rm -f conftest.err conftest.$ac_objext \
3003 conftest$ac_exeext conftest.$ac_ext
3004 LIBS=$ac_check_lib_save_LIBS
3006 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname" >&5
3007 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname" >&6
3008 if test $ac_cv_lib_resolv_gethostbyname = yes; then
3009 cat >>confdefs.h <<_ACEOF
3010 #define HAVE_LIBRESOLV 1
3013 LIBS="-lresolv $LIBS"
3028 echo "$as_me:$LINENO: checking for socket" >&5
3029 echo $ECHO_N "checking for socket... $ECHO_C" >&6
3030 if test "${ac_cv_func_socket+set}" = set; then
3031 echo $ECHO_N "(cached) $ECHO_C" >&6
3033 cat >conftest.$ac_ext <<_ACEOF
3036 cat confdefs.h >>conftest.$ac_ext
3037 cat >>conftest.$ac_ext <<_ACEOF
3038 /* end confdefs.h. */
3039 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
3040 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3041 #define socket innocuous_socket
3043 /* System header to define __stub macros and hopefully few prototypes,
3044 which can conflict with char socket (); below.
3045 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3046 <limits.h> exists even on freestanding compilers. */
3049 # include <limits.h>
3051 # include <assert.h>
3056 /* Override any gcc2 internal prototype to avoid an error. */
3061 /* We use char because int might match the return type of a gcc2
3062 builtin and then its argument prototype would still apply. */
3064 /* The GNU C library defines this for functions which it implements
3065 to always fail with ENOSYS. Some functions are actually named
3066 something starting with __ and the normal name is an alias. */
3067 #if defined (__stub_socket) || defined (__stub___socket)
3070 char (*f) () = socket;
3084 rm -f conftest.$ac_objext conftest$ac_exeext
3085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3086 (eval $ac_link) 2>conftest.er1
3088 grep -v '^ *+' conftest.er1 >conftest.err
3090 cat conftest.err >&5
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); } &&
3093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); }; } &&
3099 { ac_try='test -s conftest$ac_exeext'
3100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); }; }; then
3105 ac_cv_func_socket=yes
3107 echo "$as_me: failed program was:" >&5
3108 sed 's/^/| /' conftest.$ac_ext >&5
3110 ac_cv_func_socket=no
3112 rm -f conftest.err conftest.$ac_objext \
3113 conftest$ac_exeext conftest.$ac_ext
3115 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
3116 echo "${ECHO_T}$ac_cv_func_socket" >&6
3117 if test $ac_cv_func_socket = yes; then
3121 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3122 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3123 if test "${ac_cv_lib_socket_socket+set}" = set; then
3124 echo $ECHO_N "(cached) $ECHO_C" >&6
3126 ac_check_lib_save_LIBS=$LIBS
3127 LIBS="-lsocket $LIBS"
3128 cat >conftest.$ac_ext <<_ACEOF
3131 cat confdefs.h >>conftest.$ac_ext
3132 cat >>conftest.$ac_ext <<_ACEOF
3133 /* end confdefs.h. */
3135 /* Override any gcc2 internal prototype to avoid an error. */
3139 /* We use char because int might match the return type of a gcc2
3140 builtin and then its argument prototype would still apply. */
3150 rm -f conftest.$ac_objext conftest$ac_exeext
3151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3152 (eval $ac_link) 2>conftest.er1
3154 grep -v '^ *+' conftest.er1 >conftest.err
3156 cat conftest.err >&5
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); } &&
3159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); }; } &&
3165 { ac_try='test -s conftest$ac_exeext'
3166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); }; }; then
3171 ac_cv_lib_socket_socket=yes
3173 echo "$as_me: failed program was:" >&5
3174 sed 's/^/| /' conftest.$ac_ext >&5
3176 ac_cv_lib_socket_socket=no
3178 rm -f conftest.err conftest.$ac_objext \
3179 conftest$ac_exeext conftest.$ac_ext
3180 LIBS=$ac_check_lib_save_LIBS
3182 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3183 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3184 if test $ac_cv_lib_socket_socket = yes; then
3185 cat >>confdefs.h <<_ACEOF
3186 #define HAVE_LIBSOCKET 1
3189 LIBS="-lsocket $LIBS"
3192 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3193 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3194 if test "${ac_cv_lib_socket_socket+set}" = set; then
3195 echo $ECHO_N "(cached) $ECHO_C" >&6
3197 ac_check_lib_save_LIBS=$LIBS
3198 LIBS="-lsocket -lnsl $LIBS"
3199 cat >conftest.$ac_ext <<_ACEOF
3202 cat confdefs.h >>conftest.$ac_ext
3203 cat >>conftest.$ac_ext <<_ACEOF
3204 /* end confdefs.h. */
3206 /* Override any gcc2 internal prototype to avoid an error. */
3210 /* We use char because int might match the return type of a gcc2
3211 builtin and then its argument prototype would still apply. */
3221 rm -f conftest.$ac_objext conftest$ac_exeext
3222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3223 (eval $ac_link) 2>conftest.er1
3225 grep -v '^ *+' conftest.er1 >conftest.err
3227 cat conftest.err >&5
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); } &&
3230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235 (exit $ac_status); }; } &&
3236 { ac_try='test -s conftest$ac_exeext'
3237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241 (exit $ac_status); }; }; then
3242 ac_cv_lib_socket_socket=yes
3244 echo "$as_me: failed program was:" >&5
3245 sed 's/^/| /' conftest.$ac_ext >&5
3247 ac_cv_lib_socket_socket=no
3249 rm -f conftest.err conftest.$ac_objext \
3250 conftest$ac_exeext conftest.$ac_ext
3251 LIBS=$ac_check_lib_save_LIBS
3253 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3254 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3255 if test $ac_cv_lib_socket_socket = yes; then
3256 LIBS="-lsocket -lnsl $LIBS"
3266 ac_cpp='$CPP $CPPFLAGS'
3267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3270 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3271 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3272 # On Suns, sometimes $CPP names a directory.
3273 if test -n "$CPP" && test -d "$CPP"; then
3276 if test -z "$CPP"; then
3277 if test "${ac_cv_prog_CPP+set}" = set; then
3278 echo $ECHO_N "(cached) $ECHO_C" >&6
3280 # Double quotes because CPP needs to be expanded
3281 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3284 for ac_c_preproc_warn_flag in '' yes
3286 # Use a header file that comes with gcc, so configuring glibc
3287 # with a fresh cross-compiler works.
3288 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3289 # <limits.h> exists even on freestanding compilers.
3290 # On the NeXT, cc -E runs the code through the compiler's parser,
3291 # not just through cpp. "Syntax error" is here to catch this case.
3292 cat >conftest.$ac_ext <<_ACEOF
3295 cat confdefs.h >>conftest.$ac_ext
3296 cat >>conftest.$ac_ext <<_ACEOF
3297 /* end confdefs.h. */
3299 # include <limits.h>
3301 # include <assert.h>
3305 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3306 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3308 grep -v '^ *+' conftest.er1 >conftest.err
3310 cat conftest.err >&5
3311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 (exit $ac_status); } >/dev/null; then
3313 if test -s conftest.err; then
3314 ac_cpp_err=$ac_c_preproc_warn_flag
3315 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3322 if test -z "$ac_cpp_err"; then
3325 echo "$as_me: failed program was:" >&5
3326 sed 's/^/| /' conftest.$ac_ext >&5
3328 # Broken: fails on valid input.
3331 rm -f conftest.err conftest.$ac_ext
3333 # OK, works on sane cases. Now check whether non-existent headers
3334 # can be detected and how.
3335 cat >conftest.$ac_ext <<_ACEOF
3338 cat confdefs.h >>conftest.$ac_ext
3339 cat >>conftest.$ac_ext <<_ACEOF
3340 /* end confdefs.h. */
3341 #include <ac_nonexistent.h>
3343 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3344 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3346 grep -v '^ *+' conftest.er1 >conftest.err
3348 cat conftest.err >&5
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); } >/dev/null; then
3351 if test -s conftest.err; then
3352 ac_cpp_err=$ac_c_preproc_warn_flag
3353 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3360 if test -z "$ac_cpp_err"; then
3361 # Broken: success on invalid input.
3364 echo "$as_me: failed program was:" >&5
3365 sed 's/^/| /' conftest.$ac_ext >&5
3367 # Passes both tests.
3371 rm -f conftest.err conftest.$ac_ext
3374 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3375 rm -f conftest.err conftest.$ac_ext
3376 if $ac_preproc_ok; then
3388 echo "$as_me:$LINENO: result: $CPP" >&5
3389 echo "${ECHO_T}$CPP" >&6
3391 for ac_c_preproc_warn_flag in '' yes
3393 # Use a header file that comes with gcc, so configuring glibc
3394 # with a fresh cross-compiler works.
3395 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3396 # <limits.h> exists even on freestanding compilers.
3397 # On the NeXT, cc -E runs the code through the compiler's parser,
3398 # not just through cpp. "Syntax error" is here to catch this case.
3399 cat >conftest.$ac_ext <<_ACEOF
3402 cat confdefs.h >>conftest.$ac_ext
3403 cat >>conftest.$ac_ext <<_ACEOF
3404 /* end confdefs.h. */
3406 # include <limits.h>
3408 # include <assert.h>
3412 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3413 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3415 grep -v '^ *+' conftest.er1 >conftest.err
3417 cat conftest.err >&5
3418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419 (exit $ac_status); } >/dev/null; then
3420 if test -s conftest.err; then
3421 ac_cpp_err=$ac_c_preproc_warn_flag
3422 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3429 if test -z "$ac_cpp_err"; then
3432 echo "$as_me: failed program was:" >&5
3433 sed 's/^/| /' conftest.$ac_ext >&5
3435 # Broken: fails on valid input.
3438 rm -f conftest.err conftest.$ac_ext
3440 # OK, works on sane cases. Now check whether non-existent headers
3441 # can be detected and how.
3442 cat >conftest.$ac_ext <<_ACEOF
3445 cat confdefs.h >>conftest.$ac_ext
3446 cat >>conftest.$ac_ext <<_ACEOF
3447 /* end confdefs.h. */
3448 #include <ac_nonexistent.h>
3450 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3451 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3453 grep -v '^ *+' conftest.er1 >conftest.err
3455 cat conftest.err >&5
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); } >/dev/null; then
3458 if test -s conftest.err; then
3459 ac_cpp_err=$ac_c_preproc_warn_flag
3460 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3467 if test -z "$ac_cpp_err"; then
3468 # Broken: success on invalid input.
3471 echo "$as_me: failed program was:" >&5
3472 sed 's/^/| /' conftest.$ac_ext >&5
3474 # Passes both tests.
3478 rm -f conftest.err conftest.$ac_ext
3481 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3482 rm -f conftest.err conftest.$ac_ext
3483 if $ac_preproc_ok; then
3486 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3487 See \`config.log' for more details." >&5
3488 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3489 See \`config.log' for more details." >&2;}
3490 { (exit 1); exit 1; }; }
3494 ac_cpp='$CPP $CPPFLAGS'
3495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3500 echo "$as_me:$LINENO: checking for egrep" >&5
3501 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3502 if test "${ac_cv_prog_egrep+set}" = set; then
3503 echo $ECHO_N "(cached) $ECHO_C" >&6
3505 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3506 then ac_cv_prog_egrep='grep -E'
3507 else ac_cv_prog_egrep='egrep'
3510 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3511 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3512 EGREP=$ac_cv_prog_egrep
3515 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3516 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3517 if test "${ac_cv_header_stdc+set}" = set; then
3518 echo $ECHO_N "(cached) $ECHO_C" >&6
3520 cat >conftest.$ac_ext <<_ACEOF
3523 cat confdefs.h >>conftest.$ac_ext
3524 cat >>conftest.$ac_ext <<_ACEOF
3525 /* end confdefs.h. */
3539 rm -f conftest.$ac_objext
3540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3541 (eval $ac_compile) 2>conftest.er1
3543 grep -v '^ *+' conftest.er1 >conftest.err
3545 cat conftest.err >&5
3546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547 (exit $ac_status); } &&
3548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553 (exit $ac_status); }; } &&
3554 { ac_try='test -s conftest.$ac_objext'
3555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); }; }; then
3560 ac_cv_header_stdc=yes
3562 echo "$as_me: failed program was:" >&5
3563 sed 's/^/| /' conftest.$ac_ext >&5
3565 ac_cv_header_stdc=no
3567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3569 if test $ac_cv_header_stdc = yes; then
3570 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3571 cat >conftest.$ac_ext <<_ACEOF
3574 cat confdefs.h >>conftest.$ac_ext
3575 cat >>conftest.$ac_ext <<_ACEOF
3576 /* end confdefs.h. */
3580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3581 $EGREP "memchr" >/dev/null 2>&1; then
3584 ac_cv_header_stdc=no
3590 if test $ac_cv_header_stdc = yes; then
3591 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3592 cat >conftest.$ac_ext <<_ACEOF
3595 cat confdefs.h >>conftest.$ac_ext
3596 cat >>conftest.$ac_ext <<_ACEOF
3597 /* end confdefs.h. */
3601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3602 $EGREP "free" >/dev/null 2>&1; then
3605 ac_cv_header_stdc=no
3611 if test $ac_cv_header_stdc = yes; then
3612 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3613 if test "$cross_compiling" = yes; then
3616 cat >conftest.$ac_ext <<_ACEOF
3619 cat confdefs.h >>conftest.$ac_ext
3620 cat >>conftest.$ac_ext <<_ACEOF
3621 /* end confdefs.h. */
3623 #if ((' ' & 0x0FF) == 0x020)
3624 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3625 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3627 # define ISLOWER(c) \
3628 (('a' <= (c) && (c) <= 'i') \
3629 || ('j' <= (c) && (c) <= 'r') \
3630 || ('s' <= (c) && (c) <= 'z'))
3631 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3634 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3639 for (i = 0; i < 256; i++)
3640 if (XOR (islower (i), ISLOWER (i))
3641 || toupper (i) != TOUPPER (i))
3646 rm -f conftest$ac_exeext
3647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3648 (eval $ac_link) 2>&5
3650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656 (exit $ac_status); }; }; then
3659 echo "$as_me: program exited with status $ac_status" >&5
3660 echo "$as_me: failed program was:" >&5
3661 sed 's/^/| /' conftest.$ac_ext >&5
3664 ac_cv_header_stdc=no
3666 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3670 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3671 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3672 if test $ac_cv_header_stdc = yes; then
3674 cat >>confdefs.h <<\_ACEOF
3675 #define STDC_HEADERS 1
3680 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3690 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3691 inttypes.h stdint.h unistd.h
3693 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3694 echo "$as_me:$LINENO: checking for $ac_header" >&5
3695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3696 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3697 echo $ECHO_N "(cached) $ECHO_C" >&6
3699 cat >conftest.$ac_ext <<_ACEOF
3702 cat confdefs.h >>conftest.$ac_ext
3703 cat >>conftest.$ac_ext <<_ACEOF
3704 /* end confdefs.h. */
3705 $ac_includes_default
3707 #include <$ac_header>
3709 rm -f conftest.$ac_objext
3710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3711 (eval $ac_compile) 2>conftest.er1
3713 grep -v '^ *+' conftest.er1 >conftest.err
3715 cat conftest.err >&5
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); } &&
3718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); }; } &&
3724 { ac_try='test -s conftest.$ac_objext'
3725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); }; }; then
3730 eval "$as_ac_Header=yes"
3732 echo "$as_me: failed program was:" >&5
3733 sed 's/^/| /' conftest.$ac_ext >&5
3735 eval "$as_ac_Header=no"
3737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3740 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3741 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3742 cat >>confdefs.h <<_ACEOF
3743 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3759 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
3761 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3762 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3763 echo "$as_me:$LINENO: checking for $ac_header" >&5
3764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3765 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3766 echo $ECHO_N "(cached) $ECHO_C" >&6
3768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3769 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3771 # Is the header compilable?
3772 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3773 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3774 cat >conftest.$ac_ext <<_ACEOF
3777 cat confdefs.h >>conftest.$ac_ext
3778 cat >>conftest.$ac_ext <<_ACEOF
3779 /* end confdefs.h. */
3780 $ac_includes_default
3781 #include <$ac_header>
3783 rm -f conftest.$ac_objext
3784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3785 (eval $ac_compile) 2>conftest.er1
3787 grep -v '^ *+' conftest.er1 >conftest.err
3789 cat conftest.err >&5
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); } &&
3792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797 (exit $ac_status); }; } &&
3798 { ac_try='test -s conftest.$ac_objext'
3799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803 (exit $ac_status); }; }; then
3804 ac_header_compiler=yes
3806 echo "$as_me: failed program was:" >&5
3807 sed 's/^/| /' conftest.$ac_ext >&5
3809 ac_header_compiler=no
3811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3812 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3813 echo "${ECHO_T}$ac_header_compiler" >&6
3815 # Is the header present?
3816 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3817 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3818 cat >conftest.$ac_ext <<_ACEOF
3821 cat confdefs.h >>conftest.$ac_ext
3822 cat >>conftest.$ac_ext <<_ACEOF
3823 /* end confdefs.h. */
3824 #include <$ac_header>
3826 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3827 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3829 grep -v '^ *+' conftest.er1 >conftest.err
3831 cat conftest.err >&5
3832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833 (exit $ac_status); } >/dev/null; then
3834 if test -s conftest.err; then
3835 ac_cpp_err=$ac_c_preproc_warn_flag
3836 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3843 if test -z "$ac_cpp_err"; then
3844 ac_header_preproc=yes
3846 echo "$as_me: failed program was:" >&5
3847 sed 's/^/| /' conftest.$ac_ext >&5
3849 ac_header_preproc=no
3851 rm -f conftest.err conftest.$ac_ext
3852 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3853 echo "${ECHO_T}$ac_header_preproc" >&6
3855 # So? What about this header?
3856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3858 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3859 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3861 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3862 ac_header_preproc=yes
3865 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3866 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3867 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3868 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3869 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3870 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3871 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3872 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3874 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3875 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3876 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3879 ## ------------------------------------------ ##
3880 ## Report this to the AC_PACKAGE_NAME lists. ##
3881 ## ------------------------------------------ ##
3884 sed "s/^/$as_me: WARNING: /" >&2
3887 echo "$as_me:$LINENO: checking for $ac_header" >&5
3888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3889 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3890 echo $ECHO_N "(cached) $ECHO_C" >&6
3892 eval "$as_ac_Header=\$ac_header_preproc"
3894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3895 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3898 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3899 cat >>confdefs.h <<_ACEOF
3900 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3908 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3909 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3910 if test "${ac_cv_c_bigendian+set}" = set; then
3911 echo $ECHO_N "(cached) $ECHO_C" >&6
3913 # See if sys/param.h defines the BYTE_ORDER macro.
3914 cat >conftest.$ac_ext <<_ACEOF
3917 cat confdefs.h >>conftest.$ac_ext
3918 cat >>conftest.$ac_ext <<_ACEOF
3919 /* end confdefs.h. */
3920 #include <sys/types.h>
3921 #include <sys/param.h>
3926 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3934 rm -f conftest.$ac_objext
3935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3936 (eval $ac_compile) 2>conftest.er1
3938 grep -v '^ *+' conftest.er1 >conftest.err
3940 cat conftest.err >&5
3941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942 (exit $ac_status); } &&
3943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948 (exit $ac_status); }; } &&
3949 { ac_try='test -s conftest.$ac_objext'
3950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954 (exit $ac_status); }; }; then
3955 # It does; now see whether it defined to BIG_ENDIAN or not.
3956 cat >conftest.$ac_ext <<_ACEOF
3959 cat confdefs.h >>conftest.$ac_ext
3960 cat >>conftest.$ac_ext <<_ACEOF
3961 /* end confdefs.h. */
3962 #include <sys/types.h>
3963 #include <sys/param.h>
3968 #if BYTE_ORDER != BIG_ENDIAN
3976 rm -f conftest.$ac_objext
3977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3978 (eval $ac_compile) 2>conftest.er1
3980 grep -v '^ *+' conftest.er1 >conftest.err
3982 cat conftest.err >&5
3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); } &&
3985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); }; } &&
3991 { ac_try='test -s conftest.$ac_objext'
3992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996 (exit $ac_status); }; }; then
3997 ac_cv_c_bigendian=yes
3999 echo "$as_me: failed program was:" >&5
4000 sed 's/^/| /' conftest.$ac_ext >&5
4002 ac_cv_c_bigendian=no
4004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4006 echo "$as_me: failed program was:" >&5
4007 sed 's/^/| /' conftest.$ac_ext >&5
4009 # It does not; compile a test program.
4010 if test "$cross_compiling" = yes; then
4011 # try to guess the endianness by grepping values into an object file
4012 ac_cv_c_bigendian=unknown
4013 cat >conftest.$ac_ext <<_ACEOF
4016 cat confdefs.h >>conftest.$ac_ext
4017 cat >>conftest.$ac_ext <<_ACEOF
4018 /* end confdefs.h. */
4019 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4020 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4021 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4022 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4023 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4024 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4028 _ascii (); _ebcdic ();
4033 rm -f conftest.$ac_objext
4034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4035 (eval $ac_compile) 2>conftest.er1
4037 grep -v '^ *+' conftest.er1 >conftest.err
4039 cat conftest.err >&5
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); } &&
4042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); }; } &&
4048 { ac_try='test -s conftest.$ac_objext'
4049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); }; }; then
4054 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4055 ac_cv_c_bigendian=yes
4057 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4058 if test "$ac_cv_c_bigendian" = unknown; then
4059 ac_cv_c_bigendian=no
4061 # finding both strings is unlikely to happen, but who knows?
4062 ac_cv_c_bigendian=unknown
4066 echo "$as_me: failed program was:" >&5
4067 sed 's/^/| /' conftest.$ac_ext >&5
4070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4072 cat >conftest.$ac_ext <<_ACEOF
4075 cat confdefs.h >>conftest.$ac_ext
4076 cat >>conftest.$ac_ext <<_ACEOF
4077 /* end confdefs.h. */
4081 /* Are we little or big endian? From Harbison&Steele. */
4085 char c[sizeof (long)];
4088 exit (u.c[sizeof (long) - 1] == 1);
4091 rm -f conftest$ac_exeext
4092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4093 (eval $ac_link) 2>&5
4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); }; }; then
4102 ac_cv_c_bigendian=no
4104 echo "$as_me: program exited with status $ac_status" >&5
4105 echo "$as_me: failed program was:" >&5
4106 sed 's/^/| /' conftest.$ac_ext >&5
4109 ac_cv_c_bigendian=yes
4111 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4116 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4117 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4118 case $ac_cv_c_bigendian in
4121 cat >>confdefs.h <<\_ACEOF
4122 #define WORDS_BIGENDIAN 1
4128 { { echo "$as_me:$LINENO: error: unknown endianness
4129 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4130 echo "$as_me: error: unknown endianness
4131 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4132 { (exit 1); exit 1; }; } ;;
4135 echo "$as_me:$LINENO: checking for size_t" >&5
4136 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4137 if test "${ac_cv_type_size_t+set}" = set; then
4138 echo $ECHO_N "(cached) $ECHO_C" >&6
4140 cat >conftest.$ac_ext <<_ACEOF
4143 cat confdefs.h >>conftest.$ac_ext
4144 cat >>conftest.$ac_ext <<_ACEOF
4145 /* end confdefs.h. */
4146 $ac_includes_default
4152 if (sizeof (size_t))
4158 rm -f conftest.$ac_objext
4159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4160 (eval $ac_compile) 2>conftest.er1
4162 grep -v '^ *+' conftest.er1 >conftest.err
4164 cat conftest.err >&5
4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); } &&
4167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); }; } &&
4173 { ac_try='test -s conftest.$ac_objext'
4174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); }; }; then
4179 ac_cv_type_size_t=yes
4181 echo "$as_me: failed program was:" >&5
4182 sed 's/^/| /' conftest.$ac_ext >&5
4184 ac_cv_type_size_t=no
4186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4188 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4189 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4190 if test $ac_cv_type_size_t = yes; then
4194 cat >>confdefs.h <<_ACEOF
4195 #define size_t unsigned
4200 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4201 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4202 if test "${ac_cv_header_time+set}" = set; then
4203 echo $ECHO_N "(cached) $ECHO_C" >&6
4205 cat >conftest.$ac_ext <<_ACEOF
4208 cat confdefs.h >>conftest.$ac_ext
4209 cat >>conftest.$ac_ext <<_ACEOF
4210 /* end confdefs.h. */
4211 #include <sys/types.h>
4212 #include <sys/time.h>
4218 if ((struct tm *) 0)
4224 rm -f conftest.$ac_objext
4225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4226 (eval $ac_compile) 2>conftest.er1
4228 grep -v '^ *+' conftest.er1 >conftest.err
4230 cat conftest.err >&5
4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); } &&
4233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); }; } &&
4239 { ac_try='test -s conftest.$ac_objext'
4240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); }; }; then
4245 ac_cv_header_time=yes
4247 echo "$as_me: failed program was:" >&5
4248 sed 's/^/| /' conftest.$ac_ext >&5
4250 ac_cv_header_time=no
4252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4254 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4255 echo "${ECHO_T}$ac_cv_header_time" >&6
4256 if test $ac_cv_header_time = yes; then
4258 cat >>confdefs.h <<\_ACEOF
4259 #define TIME_WITH_SYS_TIME 1
4264 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4265 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4266 if test "${ac_cv_struct_tm+set}" = set; then
4267 echo $ECHO_N "(cached) $ECHO_C" >&6
4269 cat >conftest.$ac_ext <<_ACEOF
4272 cat confdefs.h >>conftest.$ac_ext
4273 cat >>conftest.$ac_ext <<_ACEOF
4274 /* end confdefs.h. */
4275 #include <sys/types.h>
4281 struct tm *tp; tp->tm_sec;
4286 rm -f conftest.$ac_objext
4287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4288 (eval $ac_compile) 2>conftest.er1
4290 grep -v '^ *+' conftest.er1 >conftest.err
4292 cat conftest.err >&5
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); } &&
4295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); }; } &&
4301 { ac_try='test -s conftest.$ac_objext'
4302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306 (exit $ac_status); }; }; then
4307 ac_cv_struct_tm=time.h
4309 echo "$as_me: failed program was:" >&5
4310 sed 's/^/| /' conftest.$ac_ext >&5
4312 ac_cv_struct_tm=sys/time.h
4314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4316 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4317 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4318 if test $ac_cv_struct_tm = sys/time.h; then
4320 cat >>confdefs.h <<\_ACEOF
4321 #define TM_IN_SYS_TIME 1
4326 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
4327 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
4328 if test "${ac_cv_type_uid_t+set}" = set; then
4329 echo $ECHO_N "(cached) $ECHO_C" >&6
4331 cat >conftest.$ac_ext <<_ACEOF
4334 cat confdefs.h >>conftest.$ac_ext
4335 cat >>conftest.$ac_ext <<_ACEOF
4336 /* end confdefs.h. */
4337 #include <sys/types.h>
4340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4341 $EGREP "uid_t" >/dev/null 2>&1; then
4342 ac_cv_type_uid_t=yes
4349 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
4350 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
4351 if test $ac_cv_type_uid_t = no; then
4353 cat >>confdefs.h <<\_ACEOF
4358 cat >>confdefs.h <<\_ACEOF
4364 echo "$as_me:$LINENO: checking for short" >&5
4365 echo $ECHO_N "checking for short... $ECHO_C" >&6
4366 if test "${ac_cv_type_short+set}" = set; then
4367 echo $ECHO_N "(cached) $ECHO_C" >&6
4369 cat >conftest.$ac_ext <<_ACEOF
4372 cat confdefs.h >>conftest.$ac_ext
4373 cat >>conftest.$ac_ext <<_ACEOF
4374 /* end confdefs.h. */
4375 $ac_includes_default
4387 rm -f conftest.$ac_objext
4388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4389 (eval $ac_compile) 2>conftest.er1
4391 grep -v '^ *+' conftest.er1 >conftest.err
4393 cat conftest.err >&5
4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); } &&
4396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); }; } &&
4402 { ac_try='test -s conftest.$ac_objext'
4403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); }; }; then
4408 ac_cv_type_short=yes
4410 echo "$as_me: failed program was:" >&5
4411 sed 's/^/| /' conftest.$ac_ext >&5
4415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4417 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4418 echo "${ECHO_T}$ac_cv_type_short" >&6
4420 echo "$as_me:$LINENO: checking size of short" >&5
4421 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4422 if test "${ac_cv_sizeof_short+set}" = set; then
4423 echo $ECHO_N "(cached) $ECHO_C" >&6
4425 if test "$ac_cv_type_short" = yes; then
4426 # The cast to unsigned long works around a bug in the HP C Compiler
4427 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4428 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4429 # This bug is HP SR number 8606223364.
4430 if test "$cross_compiling" = yes; then
4431 # Depending upon the size, compute the lo and hi bounds.
4432 cat >conftest.$ac_ext <<_ACEOF
4435 cat confdefs.h >>conftest.$ac_ext
4436 cat >>conftest.$ac_ext <<_ACEOF
4437 /* end confdefs.h. */
4438 $ac_includes_default
4442 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4449 rm -f conftest.$ac_objext
4450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4451 (eval $ac_compile) 2>conftest.er1
4453 grep -v '^ *+' conftest.er1 >conftest.err
4455 cat conftest.err >&5
4456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457 (exit $ac_status); } &&
4458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463 (exit $ac_status); }; } &&
4464 { ac_try='test -s conftest.$ac_objext'
4465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); }; }; then
4472 cat >conftest.$ac_ext <<_ACEOF
4475 cat confdefs.h >>conftest.$ac_ext
4476 cat >>conftest.$ac_ext <<_ACEOF
4477 /* end confdefs.h. */
4478 $ac_includes_default
4482 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4489 rm -f conftest.$ac_objext
4490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4491 (eval $ac_compile) 2>conftest.er1
4493 grep -v '^ *+' conftest.er1 >conftest.err
4495 cat conftest.err >&5
4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); } &&
4498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); }; } &&
4504 { ac_try='test -s conftest.$ac_objext'
4505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); }; }; then
4510 ac_hi=$ac_mid; break
4512 echo "$as_me: failed program was:" >&5
4513 sed 's/^/| /' conftest.$ac_ext >&5
4515 ac_lo=`expr $ac_mid + 1`
4516 if test $ac_lo -le $ac_mid; then
4520 ac_mid=`expr 2 '*' $ac_mid + 1`
4522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4525 echo "$as_me: failed program was:" >&5
4526 sed 's/^/| /' conftest.$ac_ext >&5
4528 cat >conftest.$ac_ext <<_ACEOF
4531 cat confdefs.h >>conftest.$ac_ext
4532 cat >>conftest.$ac_ext <<_ACEOF
4533 /* end confdefs.h. */
4534 $ac_includes_default
4538 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4545 rm -f conftest.$ac_objext
4546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4547 (eval $ac_compile) 2>conftest.er1
4549 grep -v '^ *+' conftest.er1 >conftest.err
4551 cat conftest.err >&5
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); } &&
4554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); }; } &&
4560 { ac_try='test -s conftest.$ac_objext'
4561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565 (exit $ac_status); }; }; then
4568 cat >conftest.$ac_ext <<_ACEOF
4571 cat confdefs.h >>conftest.$ac_ext
4572 cat >>conftest.$ac_ext <<_ACEOF
4573 /* end confdefs.h. */
4574 $ac_includes_default
4578 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4585 rm -f conftest.$ac_objext
4586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4587 (eval $ac_compile) 2>conftest.er1
4589 grep -v '^ *+' conftest.er1 >conftest.err
4591 cat conftest.err >&5
4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); } &&
4594 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); }; } &&
4600 { ac_try='test -s conftest.$ac_objext'
4601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); }; }; then
4606 ac_lo=$ac_mid; break
4608 echo "$as_me: failed program was:" >&5
4609 sed 's/^/| /' conftest.$ac_ext >&5
4611 ac_hi=`expr '(' $ac_mid ')' - 1`
4612 if test $ac_mid -le $ac_hi; then
4616 ac_mid=`expr 2 '*' $ac_mid`
4618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4621 echo "$as_me: failed program was:" >&5
4622 sed 's/^/| /' conftest.$ac_ext >&5
4626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4629 # Binary search between lo and hi bounds.
4630 while test "x$ac_lo" != "x$ac_hi"; do
4631 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4632 cat >conftest.$ac_ext <<_ACEOF
4635 cat confdefs.h >>conftest.$ac_ext
4636 cat >>conftest.$ac_ext <<_ACEOF
4637 /* end confdefs.h. */
4638 $ac_includes_default
4642 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4649 rm -f conftest.$ac_objext
4650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4651 (eval $ac_compile) 2>conftest.er1
4653 grep -v '^ *+' conftest.er1 >conftest.err
4655 cat conftest.err >&5
4656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657 (exit $ac_status); } &&
4658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663 (exit $ac_status); }; } &&
4664 { ac_try='test -s conftest.$ac_objext'
4665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); }; }; then
4672 echo "$as_me: failed program was:" >&5
4673 sed 's/^/| /' conftest.$ac_ext >&5
4675 ac_lo=`expr '(' $ac_mid ')' + 1`
4677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4680 ?*) ac_cv_sizeof_short=$ac_lo;;
4681 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4682 See \`config.log' for more details." >&5
4683 echo "$as_me: error: cannot compute sizeof (short), 77
4684 See \`config.log' for more details." >&2;}
4685 { (exit 1); exit 1; }; } ;;
4688 if test "$cross_compiling" = yes; then
4689 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4690 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4691 { (exit 1); exit 1; }; }
4693 cat >conftest.$ac_ext <<_ACEOF
4696 cat confdefs.h >>conftest.$ac_ext
4697 cat >>conftest.$ac_ext <<_ACEOF
4698 /* end confdefs.h. */
4699 $ac_includes_default
4700 long longval () { return (long) (sizeof (short)); }
4701 unsigned long ulongval () { return (long) (sizeof (short)); }
4708 FILE *f = fopen ("conftest.val", "w");
4711 if (((long) (sizeof (short))) < 0)
4713 long i = longval ();
4714 if (i != ((long) (sizeof (short))))
4716 fprintf (f, "%ld\n", i);
4720 unsigned long i = ulongval ();
4721 if (i != ((long) (sizeof (short))))
4723 fprintf (f, "%lu\n", i);
4725 exit (ferror (f) || fclose (f) != 0);
4731 rm -f conftest$ac_exeext
4732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4733 (eval $ac_link) 2>&5
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); }; }; then
4742 ac_cv_sizeof_short=`cat conftest.val`
4744 echo "$as_me: program exited with status $ac_status" >&5
4745 echo "$as_me: failed program was:" >&5
4746 sed 's/^/| /' conftest.$ac_ext >&5
4749 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4750 See \`config.log' for more details." >&5
4751 echo "$as_me: error: cannot compute sizeof (short), 77
4752 See \`config.log' for more details." >&2;}
4753 { (exit 1); exit 1; }; }
4755 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4760 ac_cv_sizeof_short=0
4763 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4764 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4765 cat >>confdefs.h <<_ACEOF
4766 #define SIZEOF_SHORT $ac_cv_sizeof_short
4770 echo "$as_me:$LINENO: checking for int" >&5
4771 echo $ECHO_N "checking for int... $ECHO_C" >&6
4772 if test "${ac_cv_type_int+set}" = set; then
4773 echo $ECHO_N "(cached) $ECHO_C" >&6
4775 cat >conftest.$ac_ext <<_ACEOF
4778 cat confdefs.h >>conftest.$ac_ext
4779 cat >>conftest.$ac_ext <<_ACEOF
4780 /* end confdefs.h. */
4781 $ac_includes_default
4793 rm -f conftest.$ac_objext
4794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4795 (eval $ac_compile) 2>conftest.er1
4797 grep -v '^ *+' conftest.er1 >conftest.err
4799 cat conftest.err >&5
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); } &&
4802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); }; } &&
4808 { ac_try='test -s conftest.$ac_objext'
4809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813 (exit $ac_status); }; }; then
4816 echo "$as_me: failed program was:" >&5
4817 sed 's/^/| /' conftest.$ac_ext >&5
4821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4823 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4824 echo "${ECHO_T}$ac_cv_type_int" >&6
4826 echo "$as_me:$LINENO: checking size of int" >&5
4827 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4828 if test "${ac_cv_sizeof_int+set}" = set; then
4829 echo $ECHO_N "(cached) $ECHO_C" >&6
4831 if test "$ac_cv_type_int" = yes; then
4832 # The cast to unsigned long works around a bug in the HP C Compiler
4833 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4834 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4835 # This bug is HP SR number 8606223364.
4836 if test "$cross_compiling" = yes; then
4837 # Depending upon the size, compute the lo and hi bounds.
4838 cat >conftest.$ac_ext <<_ACEOF
4841 cat confdefs.h >>conftest.$ac_ext
4842 cat >>conftest.$ac_ext <<_ACEOF
4843 /* end confdefs.h. */
4844 $ac_includes_default
4848 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4855 rm -f conftest.$ac_objext
4856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4857 (eval $ac_compile) 2>conftest.er1
4859 grep -v '^ *+' conftest.er1 >conftest.err
4861 cat conftest.err >&5
4862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); } &&
4864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); }; } &&
4870 { ac_try='test -s conftest.$ac_objext'
4871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); }; }; then
4878 cat >conftest.$ac_ext <<_ACEOF
4881 cat confdefs.h >>conftest.$ac_ext
4882 cat >>conftest.$ac_ext <<_ACEOF
4883 /* end confdefs.h. */
4884 $ac_includes_default
4888 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4895 rm -f conftest.$ac_objext
4896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4897 (eval $ac_compile) 2>conftest.er1
4899 grep -v '^ *+' conftest.er1 >conftest.err
4901 cat conftest.err >&5
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); } &&
4904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); }; } &&
4910 { ac_try='test -s conftest.$ac_objext'
4911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915 (exit $ac_status); }; }; then
4916 ac_hi=$ac_mid; break
4918 echo "$as_me: failed program was:" >&5
4919 sed 's/^/| /' conftest.$ac_ext >&5
4921 ac_lo=`expr $ac_mid + 1`
4922 if test $ac_lo -le $ac_mid; then
4926 ac_mid=`expr 2 '*' $ac_mid + 1`
4928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4931 echo "$as_me: failed program was:" >&5
4932 sed 's/^/| /' conftest.$ac_ext >&5
4934 cat >conftest.$ac_ext <<_ACEOF
4937 cat confdefs.h >>conftest.$ac_ext
4938 cat >>conftest.$ac_ext <<_ACEOF
4939 /* end confdefs.h. */
4940 $ac_includes_default
4944 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4951 rm -f conftest.$ac_objext
4952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4953 (eval $ac_compile) 2>conftest.er1
4955 grep -v '^ *+' conftest.er1 >conftest.err
4957 cat conftest.err >&5
4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); } &&
4960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); }; } &&
4966 { ac_try='test -s conftest.$ac_objext'
4967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971 (exit $ac_status); }; }; then
4974 cat >conftest.$ac_ext <<_ACEOF
4977 cat confdefs.h >>conftest.$ac_ext
4978 cat >>conftest.$ac_ext <<_ACEOF
4979 /* end confdefs.h. */
4980 $ac_includes_default
4984 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4991 rm -f conftest.$ac_objext
4992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4993 (eval $ac_compile) 2>conftest.er1
4995 grep -v '^ *+' conftest.er1 >conftest.err
4997 cat conftest.err >&5
4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999 (exit $ac_status); } &&
5000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005 (exit $ac_status); }; } &&
5006 { ac_try='test -s conftest.$ac_objext'
5007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011 (exit $ac_status); }; }; then
5012 ac_lo=$ac_mid; break
5014 echo "$as_me: failed program was:" >&5
5015 sed 's/^/| /' conftest.$ac_ext >&5
5017 ac_hi=`expr '(' $ac_mid ')' - 1`
5018 if test $ac_mid -le $ac_hi; then
5022 ac_mid=`expr 2 '*' $ac_mid`
5024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5027 echo "$as_me: failed program was:" >&5
5028 sed 's/^/| /' conftest.$ac_ext >&5
5032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5035 # Binary search between lo and hi bounds.
5036 while test "x$ac_lo" != "x$ac_hi"; do
5037 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5038 cat >conftest.$ac_ext <<_ACEOF
5041 cat confdefs.h >>conftest.$ac_ext
5042 cat >>conftest.$ac_ext <<_ACEOF
5043 /* end confdefs.h. */
5044 $ac_includes_default
5048 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5055 rm -f conftest.$ac_objext
5056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5057 (eval $ac_compile) 2>conftest.er1
5059 grep -v '^ *+' conftest.er1 >conftest.err
5061 cat conftest.err >&5
5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063 (exit $ac_status); } &&
5064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069 (exit $ac_status); }; } &&
5070 { ac_try='test -s conftest.$ac_objext'
5071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075 (exit $ac_status); }; }; then
5078 echo "$as_me: failed program was:" >&5
5079 sed 's/^/| /' conftest.$ac_ext >&5
5081 ac_lo=`expr '(' $ac_mid ')' + 1`
5083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5086 ?*) ac_cv_sizeof_int=$ac_lo;;
5087 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5088 See \`config.log' for more details." >&5
5089 echo "$as_me: error: cannot compute sizeof (int), 77
5090 See \`config.log' for more details." >&2;}
5091 { (exit 1); exit 1; }; } ;;
5094 if test "$cross_compiling" = yes; then
5095 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5096 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5097 { (exit 1); exit 1; }; }
5099 cat >conftest.$ac_ext <<_ACEOF
5102 cat confdefs.h >>conftest.$ac_ext
5103 cat >>conftest.$ac_ext <<_ACEOF
5104 /* end confdefs.h. */
5105 $ac_includes_default
5106 long longval () { return (long) (sizeof (int)); }
5107 unsigned long ulongval () { return (long) (sizeof (int)); }
5114 FILE *f = fopen ("conftest.val", "w");
5117 if (((long) (sizeof (int))) < 0)
5119 long i = longval ();
5120 if (i != ((long) (sizeof (int))))
5122 fprintf (f, "%ld\n", i);
5126 unsigned long i = ulongval ();
5127 if (i != ((long) (sizeof (int))))
5129 fprintf (f, "%lu\n", i);
5131 exit (ferror (f) || fclose (f) != 0);
5137 rm -f conftest$ac_exeext
5138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5139 (eval $ac_link) 2>&5
5141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); }; }; then
5148 ac_cv_sizeof_int=`cat conftest.val`
5150 echo "$as_me: program exited with status $ac_status" >&5
5151 echo "$as_me: failed program was:" >&5
5152 sed 's/^/| /' conftest.$ac_ext >&5
5155 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5156 See \`config.log' for more details." >&5
5157 echo "$as_me: error: cannot compute sizeof (int), 77
5158 See \`config.log' for more details." >&2;}
5159 { (exit 1); exit 1; }; }
5161 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5169 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5170 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5171 cat >>confdefs.h <<_ACEOF
5172 #define SIZEOF_INT $ac_cv_sizeof_int
5176 echo "$as_me:$LINENO: checking for long" >&5
5177 echo $ECHO_N "checking for long... $ECHO_C" >&6
5178 if test "${ac_cv_type_long+set}" = set; then
5179 echo $ECHO_N "(cached) $ECHO_C" >&6
5181 cat >conftest.$ac_ext <<_ACEOF
5184 cat confdefs.h >>conftest.$ac_ext
5185 cat >>conftest.$ac_ext <<_ACEOF
5186 /* end confdefs.h. */
5187 $ac_includes_default
5199 rm -f conftest.$ac_objext
5200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5201 (eval $ac_compile) 2>conftest.er1
5203 grep -v '^ *+' conftest.er1 >conftest.err
5205 cat conftest.err >&5
5206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207 (exit $ac_status); } &&
5208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213 (exit $ac_status); }; } &&
5214 { ac_try='test -s conftest.$ac_objext'
5215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); }; }; then
5222 echo "$as_me: failed program was:" >&5
5223 sed 's/^/| /' conftest.$ac_ext >&5
5227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5229 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5230 echo "${ECHO_T}$ac_cv_type_long" >&6
5232 echo "$as_me:$LINENO: checking size of long" >&5
5233 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5234 if test "${ac_cv_sizeof_long+set}" = set; then
5235 echo $ECHO_N "(cached) $ECHO_C" >&6
5237 if test "$ac_cv_type_long" = yes; then
5238 # The cast to unsigned long works around a bug in the HP C Compiler
5239 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5240 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5241 # This bug is HP SR number 8606223364.
5242 if test "$cross_compiling" = yes; then
5243 # Depending upon the size, compute the lo and hi bounds.
5244 cat >conftest.$ac_ext <<_ACEOF
5247 cat confdefs.h >>conftest.$ac_ext
5248 cat >>conftest.$ac_ext <<_ACEOF
5249 /* end confdefs.h. */
5250 $ac_includes_default
5254 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5261 rm -f conftest.$ac_objext
5262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5263 (eval $ac_compile) 2>conftest.er1
5265 grep -v '^ *+' conftest.er1 >conftest.err
5267 cat conftest.err >&5
5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269 (exit $ac_status); } &&
5270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275 (exit $ac_status); }; } &&
5276 { ac_try='test -s conftest.$ac_objext'
5277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); }; }; then
5284 cat >conftest.$ac_ext <<_ACEOF
5287 cat confdefs.h >>conftest.$ac_ext
5288 cat >>conftest.$ac_ext <<_ACEOF
5289 /* end confdefs.h. */
5290 $ac_includes_default
5294 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5301 rm -f conftest.$ac_objext
5302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5303 (eval $ac_compile) 2>conftest.er1
5305 grep -v '^ *+' conftest.er1 >conftest.err
5307 cat conftest.err >&5
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); } &&
5310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315 (exit $ac_status); }; } &&
5316 { ac_try='test -s conftest.$ac_objext'
5317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5321 (exit $ac_status); }; }; then
5322 ac_hi=$ac_mid; break
5324 echo "$as_me: failed program was:" >&5
5325 sed 's/^/| /' conftest.$ac_ext >&5
5327 ac_lo=`expr $ac_mid + 1`
5328 if test $ac_lo -le $ac_mid; then
5332 ac_mid=`expr 2 '*' $ac_mid + 1`
5334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5337 echo "$as_me: failed program was:" >&5
5338 sed 's/^/| /' conftest.$ac_ext >&5
5340 cat >conftest.$ac_ext <<_ACEOF
5343 cat confdefs.h >>conftest.$ac_ext
5344 cat >>conftest.$ac_ext <<_ACEOF
5345 /* end confdefs.h. */
5346 $ac_includes_default
5350 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5357 rm -f conftest.$ac_objext
5358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5359 (eval $ac_compile) 2>conftest.er1
5361 grep -v '^ *+' conftest.er1 >conftest.err
5363 cat conftest.err >&5
5364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365 (exit $ac_status); } &&
5366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371 (exit $ac_status); }; } &&
5372 { ac_try='test -s conftest.$ac_objext'
5373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); }; }; then
5380 cat >conftest.$ac_ext <<_ACEOF
5383 cat confdefs.h >>conftest.$ac_ext
5384 cat >>conftest.$ac_ext <<_ACEOF
5385 /* end confdefs.h. */
5386 $ac_includes_default
5390 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5397 rm -f conftest.$ac_objext
5398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5399 (eval $ac_compile) 2>conftest.er1
5401 grep -v '^ *+' conftest.er1 >conftest.err
5403 cat conftest.err >&5
5404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 (exit $ac_status); } &&
5406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); }; } &&
5412 { ac_try='test -s conftest.$ac_objext'
5413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417 (exit $ac_status); }; }; then
5418 ac_lo=$ac_mid; break
5420 echo "$as_me: failed program was:" >&5
5421 sed 's/^/| /' conftest.$ac_ext >&5
5423 ac_hi=`expr '(' $ac_mid ')' - 1`
5424 if test $ac_mid -le $ac_hi; then
5428 ac_mid=`expr 2 '*' $ac_mid`
5430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5433 echo "$as_me: failed program was:" >&5
5434 sed 's/^/| /' conftest.$ac_ext >&5
5438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5441 # Binary search between lo and hi bounds.
5442 while test "x$ac_lo" != "x$ac_hi"; do
5443 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5444 cat >conftest.$ac_ext <<_ACEOF
5447 cat confdefs.h >>conftest.$ac_ext
5448 cat >>conftest.$ac_ext <<_ACEOF
5449 /* end confdefs.h. */
5450 $ac_includes_default
5454 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5461 rm -f conftest.$ac_objext
5462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5463 (eval $ac_compile) 2>conftest.er1
5465 grep -v '^ *+' conftest.er1 >conftest.err
5467 cat conftest.err >&5
5468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469 (exit $ac_status); } &&
5470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475 (exit $ac_status); }; } &&
5476 { ac_try='test -s conftest.$ac_objext'
5477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481 (exit $ac_status); }; }; then
5484 echo "$as_me: failed program was:" >&5
5485 sed 's/^/| /' conftest.$ac_ext >&5
5487 ac_lo=`expr '(' $ac_mid ')' + 1`
5489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5492 ?*) ac_cv_sizeof_long=$ac_lo;;
5493 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5494 See \`config.log' for more details." >&5
5495 echo "$as_me: error: cannot compute sizeof (long), 77
5496 See \`config.log' for more details." >&2;}
5497 { (exit 1); exit 1; }; } ;;
5500 if test "$cross_compiling" = yes; then
5501 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5502 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5503 { (exit 1); exit 1; }; }
5505 cat >conftest.$ac_ext <<_ACEOF
5508 cat confdefs.h >>conftest.$ac_ext
5509 cat >>conftest.$ac_ext <<_ACEOF
5510 /* end confdefs.h. */
5511 $ac_includes_default
5512 long longval () { return (long) (sizeof (long)); }
5513 unsigned long ulongval () { return (long) (sizeof (long)); }
5520 FILE *f = fopen ("conftest.val", "w");
5523 if (((long) (sizeof (long))) < 0)
5525 long i = longval ();
5526 if (i != ((long) (sizeof (long))))
5528 fprintf (f, "%ld\n", i);
5532 unsigned long i = ulongval ();
5533 if (i != ((long) (sizeof (long))))
5535 fprintf (f, "%lu\n", i);
5537 exit (ferror (f) || fclose (f) != 0);
5543 rm -f conftest$ac_exeext
5544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5545 (eval $ac_link) 2>&5
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553 (exit $ac_status); }; }; then
5554 ac_cv_sizeof_long=`cat conftest.val`
5556 echo "$as_me: program exited with status $ac_status" >&5
5557 echo "$as_me: failed program was:" >&5
5558 sed 's/^/| /' conftest.$ac_ext >&5
5561 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5562 See \`config.log' for more details." >&5
5563 echo "$as_me: error: cannot compute sizeof (long), 77
5564 See \`config.log' for more details." >&2;}
5565 { (exit 1); exit 1; }; }
5567 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5575 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5576 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5577 cat >>confdefs.h <<_ACEOF
5578 #define SIZEOF_LONG $ac_cv_sizeof_long
5582 echo "$as_me:$LINENO: checking for void *" >&5
5583 echo $ECHO_N "checking for void *... $ECHO_C" >&6
5584 if test "${ac_cv_type_void_p+set}" = set; then
5585 echo $ECHO_N "(cached) $ECHO_C" >&6
5587 cat >conftest.$ac_ext <<_ACEOF
5590 cat confdefs.h >>conftest.$ac_ext
5591 cat >>conftest.$ac_ext <<_ACEOF
5592 /* end confdefs.h. */
5593 $ac_includes_default
5599 if (sizeof (void *))
5605 rm -f conftest.$ac_objext
5606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5607 (eval $ac_compile) 2>conftest.er1
5609 grep -v '^ *+' conftest.er1 >conftest.err
5611 cat conftest.err >&5
5612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613 (exit $ac_status); } &&
5614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619 (exit $ac_status); }; } &&
5620 { ac_try='test -s conftest.$ac_objext'
5621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625 (exit $ac_status); }; }; then
5626 ac_cv_type_void_p=yes
5628 echo "$as_me: failed program was:" >&5
5629 sed 's/^/| /' conftest.$ac_ext >&5
5631 ac_cv_type_void_p=no
5633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5635 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
5636 echo "${ECHO_T}$ac_cv_type_void_p" >&6
5638 echo "$as_me:$LINENO: checking size of void *" >&5
5639 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
5640 if test "${ac_cv_sizeof_void_p+set}" = set; then
5641 echo $ECHO_N "(cached) $ECHO_C" >&6
5643 if test "$ac_cv_type_void_p" = yes; then
5644 # The cast to unsigned long works around a bug in the HP C Compiler
5645 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5646 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5647 # This bug is HP SR number 8606223364.
5648 if test "$cross_compiling" = yes; then
5649 # Depending upon the size, compute the lo and hi bounds.
5650 cat >conftest.$ac_ext <<_ACEOF
5653 cat confdefs.h >>conftest.$ac_ext
5654 cat >>conftest.$ac_ext <<_ACEOF
5655 /* end confdefs.h. */
5656 $ac_includes_default
5660 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
5667 rm -f conftest.$ac_objext
5668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5669 (eval $ac_compile) 2>conftest.er1
5671 grep -v '^ *+' conftest.er1 >conftest.err
5673 cat conftest.err >&5
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); } &&
5676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681 (exit $ac_status); }; } &&
5682 { ac_try='test -s conftest.$ac_objext'
5683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687 (exit $ac_status); }; }; then
5690 cat >conftest.$ac_ext <<_ACEOF
5693 cat confdefs.h >>conftest.$ac_ext
5694 cat >>conftest.$ac_ext <<_ACEOF
5695 /* end confdefs.h. */
5696 $ac_includes_default
5700 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
5707 rm -f conftest.$ac_objext
5708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5709 (eval $ac_compile) 2>conftest.er1
5711 grep -v '^ *+' conftest.er1 >conftest.err
5713 cat conftest.err >&5
5714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715 (exit $ac_status); } &&
5716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721 (exit $ac_status); }; } &&
5722 { ac_try='test -s conftest.$ac_objext'
5723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727 (exit $ac_status); }; }; then
5728 ac_hi=$ac_mid; break
5730 echo "$as_me: failed program was:" >&5
5731 sed 's/^/| /' conftest.$ac_ext >&5
5733 ac_lo=`expr $ac_mid + 1`
5734 if test $ac_lo -le $ac_mid; then
5738 ac_mid=`expr 2 '*' $ac_mid + 1`
5740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5743 echo "$as_me: failed program was:" >&5
5744 sed 's/^/| /' conftest.$ac_ext >&5
5746 cat >conftest.$ac_ext <<_ACEOF
5749 cat confdefs.h >>conftest.$ac_ext
5750 cat >>conftest.$ac_ext <<_ACEOF
5751 /* end confdefs.h. */
5752 $ac_includes_default
5756 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
5763 rm -f conftest.$ac_objext
5764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5765 (eval $ac_compile) 2>conftest.er1
5767 grep -v '^ *+' conftest.er1 >conftest.err
5769 cat conftest.err >&5
5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 (exit $ac_status); } &&
5772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777 (exit $ac_status); }; } &&
5778 { ac_try='test -s conftest.$ac_objext'
5779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 (exit $ac_status); }; }; then
5786 cat >conftest.$ac_ext <<_ACEOF
5789 cat confdefs.h >>conftest.$ac_ext
5790 cat >>conftest.$ac_ext <<_ACEOF
5791 /* end confdefs.h. */
5792 $ac_includes_default
5796 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
5803 rm -f conftest.$ac_objext
5804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5805 (eval $ac_compile) 2>conftest.er1
5807 grep -v '^ *+' conftest.er1 >conftest.err
5809 cat conftest.err >&5
5810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811 (exit $ac_status); } &&
5812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817 (exit $ac_status); }; } &&
5818 { ac_try='test -s conftest.$ac_objext'
5819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); }; }; then
5824 ac_lo=$ac_mid; break
5826 echo "$as_me: failed program was:" >&5
5827 sed 's/^/| /' conftest.$ac_ext >&5
5829 ac_hi=`expr '(' $ac_mid ')' - 1`
5830 if test $ac_mid -le $ac_hi; then
5834 ac_mid=`expr 2 '*' $ac_mid`
5836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5839 echo "$as_me: failed program was:" >&5
5840 sed 's/^/| /' conftest.$ac_ext >&5
5844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5847 # Binary search between lo and hi bounds.
5848 while test "x$ac_lo" != "x$ac_hi"; do
5849 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5850 cat >conftest.$ac_ext <<_ACEOF
5853 cat confdefs.h >>conftest.$ac_ext
5854 cat >>conftest.$ac_ext <<_ACEOF
5855 /* end confdefs.h. */
5856 $ac_includes_default
5860 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
5867 rm -f conftest.$ac_objext
5868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5869 (eval $ac_compile) 2>conftest.er1
5871 grep -v '^ *+' conftest.er1 >conftest.err
5873 cat conftest.err >&5
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); } &&
5876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); }; } &&
5882 { ac_try='test -s conftest.$ac_objext'
5883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); }; }; then
5890 echo "$as_me: failed program was:" >&5
5891 sed 's/^/| /' conftest.$ac_ext >&5
5893 ac_lo=`expr '(' $ac_mid ')' + 1`
5895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5898 ?*) ac_cv_sizeof_void_p=$ac_lo;;
5899 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
5900 See \`config.log' for more details." >&5
5901 echo "$as_me: error: cannot compute sizeof (void *), 77
5902 See \`config.log' for more details." >&2;}
5903 { (exit 1); exit 1; }; } ;;
5906 if test "$cross_compiling" = yes; then
5907 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5908 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5909 { (exit 1); exit 1; }; }
5911 cat >conftest.$ac_ext <<_ACEOF
5914 cat confdefs.h >>conftest.$ac_ext
5915 cat >>conftest.$ac_ext <<_ACEOF
5916 /* end confdefs.h. */
5917 $ac_includes_default
5918 long longval () { return (long) (sizeof (void *)); }
5919 unsigned long ulongval () { return (long) (sizeof (void *)); }
5926 FILE *f = fopen ("conftest.val", "w");
5929 if (((long) (sizeof (void *))) < 0)
5931 long i = longval ();
5932 if (i != ((long) (sizeof (void *))))
5934 fprintf (f, "%ld\n", i);
5938 unsigned long i = ulongval ();
5939 if (i != ((long) (sizeof (void *))))
5941 fprintf (f, "%lu\n", i);
5943 exit (ferror (f) || fclose (f) != 0);
5949 rm -f conftest$ac_exeext
5950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5951 (eval $ac_link) 2>&5
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959 (exit $ac_status); }; }; then
5960 ac_cv_sizeof_void_p=`cat conftest.val`
5962 echo "$as_me: program exited with status $ac_status" >&5
5963 echo "$as_me: failed program was:" >&5
5964 sed 's/^/| /' conftest.$ac_ext >&5
5967 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
5968 See \`config.log' for more details." >&5
5969 echo "$as_me: error: cannot compute sizeof (void *), 77
5970 See \`config.log' for more details." >&2;}
5971 { (exit 1); exit 1; }; }
5973 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5978 ac_cv_sizeof_void_p=0
5981 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
5982 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
5983 cat >>confdefs.h <<_ACEOF
5984 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5988 if test "$ac_cv_sizeof_int" = 2 ; then
5989 echo "$as_me:$LINENO: checking for int16_t" >&5
5990 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
5991 if test "${ac_cv_type_int16_t+set}" = set; then
5992 echo $ECHO_N "(cached) $ECHO_C" >&6
5994 cat >conftest.$ac_ext <<_ACEOF
5997 cat confdefs.h >>conftest.$ac_ext
5998 cat >>conftest.$ac_ext <<_ACEOF
5999 /* end confdefs.h. */
6000 $ac_includes_default
6006 if (sizeof (int16_t))
6012 rm -f conftest.$ac_objext
6013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6014 (eval $ac_compile) 2>conftest.er1
6016 grep -v '^ *+' conftest.er1 >conftest.err
6018 cat conftest.err >&5
6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); } &&
6021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); }; } &&
6027 { ac_try='test -s conftest.$ac_objext'
6028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); }; }; then
6033 ac_cv_type_int16_t=yes
6035 echo "$as_me: failed program was:" >&5
6036 sed 's/^/| /' conftest.$ac_ext >&5
6038 ac_cv_type_int16_t=no
6040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6042 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
6043 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
6044 if test $ac_cv_type_int16_t = yes; then
6048 cat >>confdefs.h <<_ACEOF
6054 echo "$as_me:$LINENO: checking for uint16_t" >&5
6055 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
6056 if test "${ac_cv_type_uint16_t+set}" = set; then
6057 echo $ECHO_N "(cached) $ECHO_C" >&6
6059 cat >conftest.$ac_ext <<_ACEOF
6062 cat confdefs.h >>conftest.$ac_ext
6063 cat >>conftest.$ac_ext <<_ACEOF
6064 /* end confdefs.h. */
6065 $ac_includes_default
6071 if (sizeof (uint16_t))
6077 rm -f conftest.$ac_objext
6078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6079 (eval $ac_compile) 2>conftest.er1
6081 grep -v '^ *+' conftest.er1 >conftest.err
6083 cat conftest.err >&5
6084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085 (exit $ac_status); } &&
6086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); }; } &&
6092 { ac_try='test -s conftest.$ac_objext'
6093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); }; }; then
6098 ac_cv_type_uint16_t=yes
6100 echo "$as_me: failed program was:" >&5
6101 sed 's/^/| /' conftest.$ac_ext >&5
6103 ac_cv_type_uint16_t=no
6105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6107 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
6108 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
6109 if test $ac_cv_type_uint16_t = yes; then
6113 cat >>confdefs.h <<_ACEOF
6114 #define uint16_t unsigned int
6119 elif test "$ac_cv_sizeof_short" = 2 ; then
6120 echo "$as_me:$LINENO: checking for int16_t" >&5
6121 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
6122 if test "${ac_cv_type_int16_t+set}" = set; then
6123 echo $ECHO_N "(cached) $ECHO_C" >&6
6125 cat >conftest.$ac_ext <<_ACEOF
6128 cat confdefs.h >>conftest.$ac_ext
6129 cat >>conftest.$ac_ext <<_ACEOF
6130 /* end confdefs.h. */
6131 $ac_includes_default
6137 if (sizeof (int16_t))
6143 rm -f conftest.$ac_objext
6144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6145 (eval $ac_compile) 2>conftest.er1
6147 grep -v '^ *+' conftest.er1 >conftest.err
6149 cat conftest.err >&5
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); } &&
6152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157 (exit $ac_status); }; } &&
6158 { ac_try='test -s conftest.$ac_objext'
6159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); }; }; then
6164 ac_cv_type_int16_t=yes
6166 echo "$as_me: failed program was:" >&5
6167 sed 's/^/| /' conftest.$ac_ext >&5
6169 ac_cv_type_int16_t=no
6171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6173 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
6174 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
6175 if test $ac_cv_type_int16_t = yes; then
6179 cat >>confdefs.h <<_ACEOF
6180 #define int16_t short
6185 echo "$as_me:$LINENO: checking for uint16_t" >&5
6186 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
6187 if test "${ac_cv_type_uint16_t+set}" = set; then
6188 echo $ECHO_N "(cached) $ECHO_C" >&6
6190 cat >conftest.$ac_ext <<_ACEOF
6193 cat confdefs.h >>conftest.$ac_ext
6194 cat >>conftest.$ac_ext <<_ACEOF
6195 /* end confdefs.h. */
6196 $ac_includes_default
6202 if (sizeof (uint16_t))
6208 rm -f conftest.$ac_objext
6209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6210 (eval $ac_compile) 2>conftest.er1
6212 grep -v '^ *+' conftest.er1 >conftest.err
6214 cat conftest.err >&5
6215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); } &&
6217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222 (exit $ac_status); }; } &&
6223 { ac_try='test -s conftest.$ac_objext'
6224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228 (exit $ac_status); }; }; then
6229 ac_cv_type_uint16_t=yes
6231 echo "$as_me: failed program was:" >&5
6232 sed 's/^/| /' conftest.$ac_ext >&5
6234 ac_cv_type_uint16_t=no
6236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6238 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
6239 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
6240 if test $ac_cv_type_uint16_t = yes; then
6244 cat >>confdefs.h <<_ACEOF
6245 #define uint16_t unsigned short
6251 { { echo "$as_me:$LINENO: error: Cannot find a type with size of 16 bits" >&5
6252 echo "$as_me: error: Cannot find a type with size of 16 bits" >&2;}
6253 { (exit 1); exit 1; }; }
6255 if test "$ac_cv_sizeof_int" = 4 ; then
6256 echo "$as_me:$LINENO: checking for int32_t" >&5
6257 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
6258 if test "${ac_cv_type_int32_t+set}" = set; then
6259 echo $ECHO_N "(cached) $ECHO_C" >&6
6261 cat >conftest.$ac_ext <<_ACEOF
6264 cat confdefs.h >>conftest.$ac_ext
6265 cat >>conftest.$ac_ext <<_ACEOF
6266 /* end confdefs.h. */
6267 $ac_includes_default
6273 if (sizeof (int32_t))
6279 rm -f conftest.$ac_objext
6280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6281 (eval $ac_compile) 2>conftest.er1
6283 grep -v '^ *+' conftest.er1 >conftest.err
6285 cat conftest.err >&5
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); } &&
6288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); }; } &&
6294 { ac_try='test -s conftest.$ac_objext'
6295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299 (exit $ac_status); }; }; then
6300 ac_cv_type_int32_t=yes
6302 echo "$as_me: failed program was:" >&5
6303 sed 's/^/| /' conftest.$ac_ext >&5
6305 ac_cv_type_int32_t=no
6307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6309 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
6310 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
6311 if test $ac_cv_type_int32_t = yes; then
6315 cat >>confdefs.h <<_ACEOF
6321 echo "$as_me:$LINENO: checking for uint32_t" >&5
6322 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
6323 if test "${ac_cv_type_uint32_t+set}" = set; then
6324 echo $ECHO_N "(cached) $ECHO_C" >&6
6326 cat >conftest.$ac_ext <<_ACEOF
6329 cat confdefs.h >>conftest.$ac_ext
6330 cat >>conftest.$ac_ext <<_ACEOF
6331 /* end confdefs.h. */
6332 $ac_includes_default
6338 if (sizeof (uint32_t))
6344 rm -f conftest.$ac_objext
6345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6346 (eval $ac_compile) 2>conftest.er1
6348 grep -v '^ *+' conftest.er1 >conftest.err
6350 cat conftest.err >&5
6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 (exit $ac_status); } &&
6353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); }; } &&
6359 { ac_try='test -s conftest.$ac_objext'
6360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); }; }; then
6365 ac_cv_type_uint32_t=yes
6367 echo "$as_me: failed program was:" >&5
6368 sed 's/^/| /' conftest.$ac_ext >&5
6370 ac_cv_type_uint32_t=no
6372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6374 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
6375 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
6376 if test $ac_cv_type_uint32_t = yes; then
6380 cat >>confdefs.h <<_ACEOF
6381 #define uint32_t unsigned int
6386 elif test "$ac_cv_sizeof_short" = 4 ; then
6387 echo "$as_me:$LINENO: checking for int32_t" >&5
6388 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
6389 if test "${ac_cv_type_int32_t+set}" = set; then
6390 echo $ECHO_N "(cached) $ECHO_C" >&6
6392 cat >conftest.$ac_ext <<_ACEOF
6395 cat confdefs.h >>conftest.$ac_ext
6396 cat >>conftest.$ac_ext <<_ACEOF
6397 /* end confdefs.h. */
6398 $ac_includes_default
6404 if (sizeof (int32_t))
6410 rm -f conftest.$ac_objext
6411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6412 (eval $ac_compile) 2>conftest.er1
6414 grep -v '^ *+' conftest.er1 >conftest.err
6416 cat conftest.err >&5
6417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418 (exit $ac_status); } &&
6419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424 (exit $ac_status); }; } &&
6425 { ac_try='test -s conftest.$ac_objext'
6426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); }; }; then
6431 ac_cv_type_int32_t=yes
6433 echo "$as_me: failed program was:" >&5
6434 sed 's/^/| /' conftest.$ac_ext >&5
6436 ac_cv_type_int32_t=no
6438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6440 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
6441 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
6442 if test $ac_cv_type_int32_t = yes; then
6446 cat >>confdefs.h <<_ACEOF
6447 #define int32_t short
6452 echo "$as_me:$LINENO: checking for uint32_t" >&5
6453 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
6454 if test "${ac_cv_type_uint32_t+set}" = set; then
6455 echo $ECHO_N "(cached) $ECHO_C" >&6
6457 cat >conftest.$ac_ext <<_ACEOF
6460 cat confdefs.h >>conftest.$ac_ext
6461 cat >>conftest.$ac_ext <<_ACEOF
6462 /* end confdefs.h. */
6463 $ac_includes_default
6469 if (sizeof (uint32_t))
6475 rm -f conftest.$ac_objext
6476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6477 (eval $ac_compile) 2>conftest.er1
6479 grep -v '^ *+' conftest.er1 >conftest.err
6481 cat conftest.err >&5
6482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483 (exit $ac_status); } &&
6484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); }; } &&
6490 { ac_try='test -s conftest.$ac_objext'
6491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 (exit $ac_status); }; }; then
6496 ac_cv_type_uint32_t=yes
6498 echo "$as_me: failed program was:" >&5
6499 sed 's/^/| /' conftest.$ac_ext >&5
6501 ac_cv_type_uint32_t=no
6503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6505 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
6506 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
6507 if test $ac_cv_type_uint32_t = yes; then
6511 cat >>confdefs.h <<_ACEOF
6512 #define uint32_t unsigned short
6517 elif test "$ac_cv_sizeof_long" = 4 ; then
6518 echo "$as_me:$LINENO: checking for int32_t" >&5
6519 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
6520 if test "${ac_cv_type_int32_t+set}" = set; then
6521 echo $ECHO_N "(cached) $ECHO_C" >&6
6523 cat >conftest.$ac_ext <<_ACEOF
6526 cat confdefs.h >>conftest.$ac_ext
6527 cat >>conftest.$ac_ext <<_ACEOF
6528 /* end confdefs.h. */
6529 $ac_includes_default
6535 if (sizeof (int32_t))
6541 rm -f conftest.$ac_objext
6542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6543 (eval $ac_compile) 2>conftest.er1
6545 grep -v '^ *+' conftest.er1 >conftest.err
6547 cat conftest.err >&5
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); } &&
6550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555 (exit $ac_status); }; } &&
6556 { ac_try='test -s conftest.$ac_objext'
6557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); }; }; then
6562 ac_cv_type_int32_t=yes
6564 echo "$as_me: failed program was:" >&5
6565 sed 's/^/| /' conftest.$ac_ext >&5
6567 ac_cv_type_int32_t=no
6569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6571 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
6572 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
6573 if test $ac_cv_type_int32_t = yes; then
6577 cat >>confdefs.h <<_ACEOF
6578 #define int32_t long
6583 echo "$as_me:$LINENO: checking for uint32_t" >&5
6584 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
6585 if test "${ac_cv_type_uint32_t+set}" = set; then
6586 echo $ECHO_N "(cached) $ECHO_C" >&6
6588 cat >conftest.$ac_ext <<_ACEOF
6591 cat confdefs.h >>conftest.$ac_ext
6592 cat >>conftest.$ac_ext <<_ACEOF
6593 /* end confdefs.h. */
6594 $ac_includes_default
6600 if (sizeof (uint32_t))
6606 rm -f conftest.$ac_objext
6607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6608 (eval $ac_compile) 2>conftest.er1
6610 grep -v '^ *+' conftest.er1 >conftest.err
6612 cat conftest.err >&5
6613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614 (exit $ac_status); } &&
6615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 (exit $ac_status); }; } &&
6621 { ac_try='test -s conftest.$ac_objext'
6622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626 (exit $ac_status); }; }; then
6627 ac_cv_type_uint32_t=yes
6629 echo "$as_me: failed program was:" >&5
6630 sed 's/^/| /' conftest.$ac_ext >&5
6632 ac_cv_type_uint32_t=no
6634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6636 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
6637 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
6638 if test $ac_cv_type_uint32_t = yes; then
6642 cat >>confdefs.h <<_ACEOF
6643 #define uint32_t unsigned long
6649 { { echo "$as_me:$LINENO: error: Cannot find a type with size of 32 bits" >&5
6650 echo "$as_me: error: Cannot find a type with size of 32 bits" >&2;}
6651 { (exit 1); exit 1; }; }
6653 echo "$as_me:$LINENO: checking for socklen_t" >&5
6654 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
6655 if test "${ac_cv_type_socklen_t+set}" = set; then
6656 echo $ECHO_N "(cached) $ECHO_C" >&6
6658 cat >conftest.$ac_ext <<_ACEOF
6661 cat confdefs.h >>conftest.$ac_ext
6662 cat >>conftest.$ac_ext <<_ACEOF
6663 /* end confdefs.h. */
6664 $ac_includes_default
6668 if ((socklen_t *) 0)
6670 if (sizeof (socklen_t))
6676 rm -f conftest.$ac_objext
6677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6678 (eval $ac_compile) 2>conftest.er1
6680 grep -v '^ *+' conftest.er1 >conftest.err
6682 cat conftest.err >&5
6683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684 (exit $ac_status); } &&
6685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690 (exit $ac_status); }; } &&
6691 { ac_try='test -s conftest.$ac_objext'
6692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696 (exit $ac_status); }; }; then
6697 ac_cv_type_socklen_t=yes
6699 echo "$as_me: failed program was:" >&5
6700 sed 's/^/| /' conftest.$ac_ext >&5
6702 ac_cv_type_socklen_t=no
6704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6706 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
6707 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
6708 if test $ac_cv_type_socklen_t = yes; then
6712 cat >>confdefs.h <<_ACEOF
6713 #define socklen_t unsigned int
6718 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
6719 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
6720 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
6721 echo $ECHO_N "(cached) $ECHO_C" >&6
6723 cat >conftest.$ac_ext <<_ACEOF
6726 cat confdefs.h >>conftest.$ac_ext
6727 cat >>conftest.$ac_ext <<_ACEOF
6728 /* end confdefs.h. */
6729 #include <sys/types.h>
6730 #include <netinet/in.h>
6735 if ((struct sockaddr_in6 *) 0)
6737 if (sizeof (struct sockaddr_in6))
6743 rm -f conftest.$ac_objext
6744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6745 (eval $ac_compile) 2>conftest.er1
6747 grep -v '^ *+' conftest.er1 >conftest.err
6749 cat conftest.err >&5
6750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751 (exit $ac_status); } &&
6752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757 (exit $ac_status); }; } &&
6758 { ac_try='test -s conftest.$ac_objext'
6759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); }; }; then
6764 ac_cv_type_struct_sockaddr_in6=yes
6766 echo "$as_me: failed program was:" >&5
6767 sed 's/^/| /' conftest.$ac_ext >&5
6769 ac_cv_type_struct_sockaddr_in6=no
6771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6773 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
6774 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
6775 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
6776 unet_have_sockaddr_in6="yes"
6778 unet_have_sockaddr_in6="no"
6786 for ac_func in kqueue setrlimit getrusage times
6788 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6789 echo "$as_me:$LINENO: checking for $ac_func" >&5
6790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6791 if eval "test \"\${$as_ac_var+set}\" = set"; then
6792 echo $ECHO_N "(cached) $ECHO_C" >&6
6794 cat >conftest.$ac_ext <<_ACEOF
6797 cat confdefs.h >>conftest.$ac_ext
6798 cat >>conftest.$ac_ext <<_ACEOF
6799 /* end confdefs.h. */
6800 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6802 #define $ac_func innocuous_$ac_func
6804 /* System header to define __stub macros and hopefully few prototypes,
6805 which can conflict with char $ac_func (); below.
6806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6807 <limits.h> exists even on freestanding compilers. */
6810 # include <limits.h>
6812 # include <assert.h>
6817 /* Override any gcc2 internal prototype to avoid an error. */
6822 /* We use char because int might match the return type of a gcc2
6823 builtin and then its argument prototype would still apply. */
6825 /* The GNU C library defines this for functions which it implements
6826 to always fail with ENOSYS. Some functions are actually named
6827 something starting with __ and the normal name is an alias. */
6828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6831 char (*f) () = $ac_func;
6840 return f != $ac_func;
6845 rm -f conftest.$ac_objext conftest$ac_exeext
6846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6847 (eval $ac_link) 2>conftest.er1
6849 grep -v '^ *+' conftest.er1 >conftest.err
6851 cat conftest.err >&5
6852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853 (exit $ac_status); } &&
6854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859 (exit $ac_status); }; } &&
6860 { ac_try='test -s conftest$ac_exeext'
6861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865 (exit $ac_status); }; }; then
6866 eval "$as_ac_var=yes"
6868 echo "$as_me: failed program was:" >&5
6869 sed 's/^/| /' conftest.$ac_ext >&5
6871 eval "$as_ac_var=no"
6873 rm -f conftest.err conftest.$ac_objext \
6874 conftest$ac_exeext conftest.$ac_ext
6876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6877 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6878 if test `eval echo '${'$as_ac_var'}'` = yes; then
6879 cat >>confdefs.h <<_ACEOF
6880 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6887 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6888 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6889 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6890 echo $ECHO_N "(cached) $ECHO_C" >&6
6892 cat >conftest.$ac_ext <<_ACEOF
6895 cat confdefs.h >>conftest.$ac_ext
6896 cat >>conftest.$ac_ext <<_ACEOF
6897 /* end confdefs.h. */
6898 #include <sys/types.h>
6899 #include <sys/wait.h>
6901 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6904 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6912 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6917 rm -f conftest.$ac_objext
6918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6919 (eval $ac_compile) 2>conftest.er1
6921 grep -v '^ *+' conftest.er1 >conftest.err
6923 cat conftest.err >&5
6924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925 (exit $ac_status); } &&
6926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931 (exit $ac_status); }; } &&
6932 { ac_try='test -s conftest.$ac_objext'
6933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937 (exit $ac_status); }; }; then
6938 ac_cv_header_sys_wait_h=yes
6940 echo "$as_me: failed program was:" >&5
6941 sed 's/^/| /' conftest.$ac_ext >&5
6943 ac_cv_header_sys_wait_h=no
6945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6947 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6948 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6949 if test $ac_cv_header_sys_wait_h = yes; then
6951 cat >>confdefs.h <<\_ACEOF
6952 #define HAVE_SYS_WAIT_H 1
6958 for ac_header in unistd.h
6960 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6962 echo "$as_me:$LINENO: checking for $ac_header" >&5
6963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6965 echo $ECHO_N "(cached) $ECHO_C" >&6
6967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6968 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6970 # Is the header compilable?
6971 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6972 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6973 cat >conftest.$ac_ext <<_ACEOF
6976 cat confdefs.h >>conftest.$ac_ext
6977 cat >>conftest.$ac_ext <<_ACEOF
6978 /* end confdefs.h. */
6979 $ac_includes_default
6980 #include <$ac_header>
6982 rm -f conftest.$ac_objext
6983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6984 (eval $ac_compile) 2>conftest.er1
6986 grep -v '^ *+' conftest.er1 >conftest.err
6988 cat conftest.err >&5
6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); } &&
6991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996 (exit $ac_status); }; } &&
6997 { ac_try='test -s conftest.$ac_objext'
6998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002 (exit $ac_status); }; }; then
7003 ac_header_compiler=yes
7005 echo "$as_me: failed program was:" >&5
7006 sed 's/^/| /' conftest.$ac_ext >&5
7008 ac_header_compiler=no
7010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7011 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7012 echo "${ECHO_T}$ac_header_compiler" >&6
7014 # Is the header present?
7015 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7016 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7017 cat >conftest.$ac_ext <<_ACEOF
7020 cat confdefs.h >>conftest.$ac_ext
7021 cat >>conftest.$ac_ext <<_ACEOF
7022 /* end confdefs.h. */
7023 #include <$ac_header>
7025 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7026 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7028 grep -v '^ *+' conftest.er1 >conftest.err
7030 cat conftest.err >&5
7031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032 (exit $ac_status); } >/dev/null; then
7033 if test -s conftest.err; then
7034 ac_cpp_err=$ac_c_preproc_warn_flag
7035 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7042 if test -z "$ac_cpp_err"; then
7043 ac_header_preproc=yes
7045 echo "$as_me: failed program was:" >&5
7046 sed 's/^/| /' conftest.$ac_ext >&5
7048 ac_header_preproc=no
7050 rm -f conftest.err conftest.$ac_ext
7051 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7052 echo "${ECHO_T}$ac_header_preproc" >&6
7054 # So? What about this header?
7055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7057 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7058 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7059 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7060 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7061 ac_header_preproc=yes
7064 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7065 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7066 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7067 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7068 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7069 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7070 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7071 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7072 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7073 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7074 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7075 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7078 ## ------------------------------------------ ##
7079 ## Report this to the AC_PACKAGE_NAME lists. ##
7080 ## ------------------------------------------ ##
7083 sed "s/^/$as_me: WARNING: /" >&2
7086 echo "$as_me:$LINENO: checking for $ac_header" >&5
7087 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7088 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7089 echo $ECHO_N "(cached) $ECHO_C" >&6
7091 eval "$as_ac_Header=\$ac_header_preproc"
7093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7094 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7097 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7098 cat >>confdefs.h <<_ACEOF
7099 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7106 echo "$as_me:$LINENO: checking for restartable system calls" >&5
7107 echo $ECHO_N "checking for restartable system calls... $ECHO_C" >&6
7108 if test "${ac_cv_sys_restartable_syscalls+set}" = set; then
7109 echo $ECHO_N "(cached) $ECHO_C" >&6
7111 if test "$cross_compiling" = yes; then
7112 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7113 See \`config.log' for more details." >&5
7114 echo "$as_me: error: cannot run test program while cross compiling
7115 See \`config.log' for more details." >&2;}
7116 { (exit 1); exit 1; }; }
7118 cat >conftest.$ac_ext <<_ACEOF
7121 cat confdefs.h >>conftest.$ac_ext
7122 cat >>conftest.$ac_ext <<_ACEOF
7123 /* end confdefs.h. */
7124 /* Exit 0 (true) if wait returns something other than -1,
7125 i.e. the pid of the child, which means that wait was restarted
7126 after getting the signal. */
7128 #include <sys/types.h>
7131 # include <unistd.h>
7134 # include <sys/wait.h>
7137 /* Some platforms explicitly require an extern "C" signal handler
7140 extern "C" void ucatch (int dummy) { }
7142 void ucatch (dummy) int dummy; { }
7148 int i = fork (), status;
7153 kill (getppid (), SIGINT);
7158 signal (SIGINT, ucatch);
7164 exit (status == -1);
7167 rm -f conftest$ac_exeext
7168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7169 (eval $ac_link) 2>&5
7171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177 (exit $ac_status); }; }; then
7178 ac_cv_sys_restartable_syscalls=yes
7180 echo "$as_me: program exited with status $ac_status" >&5
7181 echo "$as_me: failed program was:" >&5
7182 sed 's/^/| /' conftest.$ac_ext >&5
7185 ac_cv_sys_restartable_syscalls=no
7187 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7190 echo "$as_me:$LINENO: result: $ac_cv_sys_restartable_syscalls" >&5
7191 echo "${ECHO_T}$ac_cv_sys_restartable_syscalls" >&6
7192 if test $ac_cv_sys_restartable_syscalls = yes; then
7194 cat >>confdefs.h <<\_ACEOF
7195 #define HAVE_RESTARTABLE_SYSCALLS 1
7201 echo "$as_me:$LINENO: checking for donuts" >&5
7202 echo $ECHO_N "checking for donuts... $ECHO_C" >&6
7203 echo "$as_me:$LINENO: result: yes" >&5
7204 echo "${ECHO_T}yes" >&6
7206 for ac_prog in gawk mawk nawk awk
7208 # Extract the first word of "$ac_prog", so it can be a program name with args.
7209 set dummy $ac_prog; ac_word=$2
7210 echo "$as_me:$LINENO: checking for $ac_word" >&5
7211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7212 if test "${ac_cv_prog_AWK+set}" = set; then
7213 echo $ECHO_N "(cached) $ECHO_C" >&6
7215 if test -n "$AWK"; then
7216 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7222 test -z "$as_dir" && as_dir=.
7223 for ac_exec_ext in '' $ac_executable_extensions; do
7224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7225 ac_cv_prog_AWK="$ac_prog"
7226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7235 if test -n "$AWK"; then
7236 echo "$as_me:$LINENO: result: $AWK" >&5
7237 echo "${ECHO_T}$AWK" >&6
7239 echo "$as_me:$LINENO: result: no" >&5
7240 echo "${ECHO_T}no" >&6
7243 test -n "$AWK" && break
7246 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7247 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7248 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7249 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7250 echo $ECHO_N "(cached) $ECHO_C" >&6
7252 cat >conftest.make <<\_ACEOF
7254 @echo 'ac_maketemp="$(MAKE)"'
7256 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7257 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7258 if test -n "$ac_maketemp"; then
7259 eval ac_cv_prog_make_${ac_make}_set=yes
7261 eval ac_cv_prog_make_${ac_make}_set=no
7265 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7266 echo "$as_me:$LINENO: result: yes" >&5
7267 echo "${ECHO_T}yes" >&6
7270 echo "$as_me:$LINENO: result: no" >&5
7271 echo "${ECHO_T}no" >&6
7272 SET_MAKE="MAKE=${MAKE-make}"
7275 # Find a good install program. We prefer a C program (faster),
7276 # so one script is as good as another. But avoid the broken or
7277 # incompatible versions:
7278 # SysV /etc/install, /usr/sbin/install
7279 # SunOS /usr/etc/install
7280 # IRIX /sbin/install
7282 # AmigaOS /C/install, which installs bootblocks on floppy discs
7283 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7284 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7285 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7286 # OS/2's system install, which has a completely different semantic
7287 # ./install, which can be erroneously created by make from ./install.sh.
7288 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7289 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
7290 if test -z "$INSTALL"; then
7291 if test "${ac_cv_path_install+set}" = set; then
7292 echo $ECHO_N "(cached) $ECHO_C" >&6
7294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7298 test -z "$as_dir" && as_dir=.
7299 # Account for people who put trailing slashes in PATH elements.
7301 ./ | .// | /cC/* | \
7302 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7303 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7306 # OSF1 and SCO ODT 3.0 have their own names for install.
7307 # Don't use installbsd from OSF since it installs stuff as root
7309 for ac_prog in ginstall scoinst install; do
7310 for ac_exec_ext in '' $ac_executable_extensions; do
7311 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7312 if test $ac_prog = install &&
7313 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7314 # AIX install. It has an incompatible calling convention.
7316 elif test $ac_prog = install &&
7317 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7318 # program-specific install script used by HP pwplus--don't use.
7321 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7333 if test "${ac_cv_path_install+set}" = set; then
7334 INSTALL=$ac_cv_path_install
7336 # As a last resort, use the slow shell script. We don't cache a
7337 # path for INSTALL within a source directory, because that will
7338 # break other packages using the cache if that directory is
7339 # removed, or if the path is relative.
7340 INSTALL=$ac_install_sh
7343 echo "$as_me:$LINENO: result: $INSTALL" >&5
7344 echo "${ECHO_T}$INSTALL" >&6
7346 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7347 # It thinks the first close brace ends the variable substitution.
7348 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7350 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7352 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7354 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7355 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7357 if test "$LN_S" = "ln -s"; then
7358 echo "$as_me:$LINENO: result: yes" >&5
7359 echo "${ECHO_T}yes" >&6
7361 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7362 echo "${ECHO_T}no, using $LN_S" >&6
7367 # Extract the first word of "$ac_prog", so it can be a program name with args.
7368 set dummy $ac_prog; ac_word=$2
7369 echo "$as_me:$LINENO: checking for $ac_word" >&5
7370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7371 if test "${ac_cv_path_RMPROG+set}" = set; then
7372 echo $ECHO_N "(cached) $ECHO_C" >&6
7376 ac_cv_path_RMPROG="$RMPROG" # Let the user override the test with a path.
7379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7383 test -z "$as_dir" && as_dir=.
7384 for ac_exec_ext in '' $ac_executable_extensions; do
7385 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7386 ac_cv_path_RMPROG="$as_dir/$ac_word$ac_exec_ext"
7387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7396 RMPROG=$ac_cv_path_RMPROG
7398 if test -n "$RMPROG"; then
7399 echo "$as_me:$LINENO: result: $RMPROG" >&5
7400 echo "${ECHO_T}$RMPROG" >&6
7402 echo "$as_me:$LINENO: result: no" >&5
7403 echo "${ECHO_T}no" >&6
7406 test -n "$RMPROG" && break
7408 test -n "$RMPROG" || RMPROG="/bin/rm"
7412 # Extract the first word of "$ac_prog", so it can be a program name with args.
7413 set dummy $ac_prog; ac_word=$2
7414 echo "$as_me:$LINENO: checking for $ac_word" >&5
7415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7416 if test "${ac_cv_path_SHPROG+set}" = set; then
7417 echo $ECHO_N "(cached) $ECHO_C" >&6
7421 ac_cv_path_SHPROG="$SHPROG" # Let the user override the test with a path.
7424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7428 test -z "$as_dir" && as_dir=.
7429 for ac_exec_ext in '' $ac_executable_extensions; do
7430 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7431 ac_cv_path_SHPROG="$as_dir/$ac_word$ac_exec_ext"
7432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7441 SHPROG=$ac_cv_path_SHPROG
7443 if test -n "$SHPROG"; then
7444 echo "$as_me:$LINENO: result: $SHPROG" >&5
7445 echo "${ECHO_T}$SHPROG" >&6
7447 echo "$as_me:$LINENO: result: no" >&5
7448 echo "${ECHO_T}no" >&6
7451 test -n "$SHPROG" && break
7453 test -n "$SHPROG" || SHPROG="/bin/sh"
7456 for ac_prog in flex lex
7458 # Extract the first word of "$ac_prog", so it can be a program name with args.
7459 set dummy $ac_prog; ac_word=$2
7460 echo "$as_me:$LINENO: checking for $ac_word" >&5
7461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7462 if test "${ac_cv_prog_LEX+set}" = set; then
7463 echo $ECHO_N "(cached) $ECHO_C" >&6
7465 if test -n "$LEX"; then
7466 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7472 test -z "$as_dir" && as_dir=.
7473 for ac_exec_ext in '' $ac_executable_extensions; do
7474 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7475 ac_cv_prog_LEX="$ac_prog"
7476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7485 if test -n "$LEX"; then
7486 echo "$as_me:$LINENO: result: $LEX" >&5
7487 echo "${ECHO_T}$LEX" >&6
7489 echo "$as_me:$LINENO: result: no" >&5
7490 echo "${ECHO_T}no" >&6
7493 test -n "$LEX" && break
7495 test -n "$LEX" || LEX=":"
7497 if test -z "$LEXLIB"
7499 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
7500 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
7501 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
7502 echo $ECHO_N "(cached) $ECHO_C" >&6
7504 ac_check_lib_save_LIBS=$LIBS
7506 cat >conftest.$ac_ext <<_ACEOF
7509 cat confdefs.h >>conftest.$ac_ext
7510 cat >>conftest.$ac_ext <<_ACEOF
7511 /* end confdefs.h. */
7513 /* Override any gcc2 internal prototype to avoid an error. */
7517 /* We use char because int might match the return type of a gcc2
7518 builtin and then its argument prototype would still apply. */
7528 rm -f conftest.$ac_objext conftest$ac_exeext
7529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7530 (eval $ac_link) 2>conftest.er1
7532 grep -v '^ *+' conftest.er1 >conftest.err
7534 cat conftest.err >&5
7535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536 (exit $ac_status); } &&
7537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); }; } &&
7543 { ac_try='test -s conftest$ac_exeext'
7544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548 (exit $ac_status); }; }; then
7549 ac_cv_lib_fl_yywrap=yes
7551 echo "$as_me: failed program was:" >&5
7552 sed 's/^/| /' conftest.$ac_ext >&5
7554 ac_cv_lib_fl_yywrap=no
7556 rm -f conftest.err conftest.$ac_objext \
7557 conftest$ac_exeext conftest.$ac_ext
7558 LIBS=$ac_check_lib_save_LIBS
7560 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
7561 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
7562 if test $ac_cv_lib_fl_yywrap = yes; then
7565 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
7566 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
7567 if test "${ac_cv_lib_l_yywrap+set}" = set; then
7568 echo $ECHO_N "(cached) $ECHO_C" >&6
7570 ac_check_lib_save_LIBS=$LIBS
7572 cat >conftest.$ac_ext <<_ACEOF
7575 cat confdefs.h >>conftest.$ac_ext
7576 cat >>conftest.$ac_ext <<_ACEOF
7577 /* end confdefs.h. */
7579 /* Override any gcc2 internal prototype to avoid an error. */
7583 /* We use char because int might match the return type of a gcc2
7584 builtin and then its argument prototype would still apply. */
7594 rm -f conftest.$ac_objext conftest$ac_exeext
7595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7596 (eval $ac_link) 2>conftest.er1
7598 grep -v '^ *+' conftest.er1 >conftest.err
7600 cat conftest.err >&5
7601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602 (exit $ac_status); } &&
7603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); }; } &&
7609 { ac_try='test -s conftest$ac_exeext'
7610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614 (exit $ac_status); }; }; then
7615 ac_cv_lib_l_yywrap=yes
7617 echo "$as_me: failed program was:" >&5
7618 sed 's/^/| /' conftest.$ac_ext >&5
7620 ac_cv_lib_l_yywrap=no
7622 rm -f conftest.err conftest.$ac_objext \
7623 conftest$ac_exeext conftest.$ac_ext
7624 LIBS=$ac_check_lib_save_LIBS
7626 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
7627 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
7628 if test $ac_cv_lib_l_yywrap = yes; then
7636 if test "x$LEX" != "x:"; then
7637 echo "$as_me:$LINENO: checking lex output file root" >&5
7638 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
7639 if test "${ac_cv_prog_lex_root+set}" = set; then
7640 echo $ECHO_N "(cached) $ECHO_C" >&6
7642 # The minimal lex program is just a single line: %%. But some broken lexes
7643 # (Solaris, I think it was) want two %% lines, so accommodate them.
7644 cat >conftest.l <<_ACEOF
7648 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
7649 (eval $LEX conftest.l) 2>&5
7651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652 (exit $ac_status); }
7653 if test -f lex.yy.c; then
7654 ac_cv_prog_lex_root=lex.yy
7655 elif test -f lexyy.c; then
7656 ac_cv_prog_lex_root=lexyy
7658 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
7659 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
7660 { (exit 1); exit 1; }; }
7663 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
7664 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
7666 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
7668 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
7669 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
7670 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
7671 echo $ECHO_N "(cached) $ECHO_C" >&6
7673 # POSIX says lex can declare yytext either as a pointer or an array; the
7674 # default is implementation-dependent. Figure out which it is, since
7675 # not all implementations provide the %pointer and %array declarations.
7676 ac_cv_prog_lex_yytext_pointer=no
7677 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
7679 LIBS="$LIBS $LEXLIB"
7680 cat >conftest.$ac_ext <<_ACEOF
7681 `cat $LEX_OUTPUT_ROOT.c`
7683 rm -f conftest.$ac_objext conftest$ac_exeext
7684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7685 (eval $ac_link) 2>conftest.er1
7687 grep -v '^ *+' conftest.er1 >conftest.err
7689 cat conftest.err >&5
7690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691 (exit $ac_status); } &&
7692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697 (exit $ac_status); }; } &&
7698 { ac_try='test -s conftest$ac_exeext'
7699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703 (exit $ac_status); }; }; then
7704 ac_cv_prog_lex_yytext_pointer=yes
7706 echo "$as_me: failed program was:" >&5
7707 sed 's/^/| /' conftest.$ac_ext >&5
7710 rm -f conftest.err conftest.$ac_objext \
7711 conftest$ac_exeext conftest.$ac_ext
7713 rm -f "${LEX_OUTPUT_ROOT}.c"
7716 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
7717 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
7718 if test $ac_cv_prog_lex_yytext_pointer = yes; then
7720 cat >>confdefs.h <<\_ACEOF
7721 #define YYTEXT_POINTER 1
7729 { { echo "$as_me:$LINENO: error: Cannot find flex." >&5
7730 echo "$as_me: error: Cannot find flex." >&2;}
7731 { (exit 1); exit 1; }; }
7734 if test -z "$LEXLIB"
7736 { { echo "$as_me:$LINENO: error:
7737 Cannot find a library with yywrap() in, but flex was found.
7738 It's possible the compiler you're using ($CC) is incompatible with the
7740 See \`config.log' for more details." >&5
7741 echo "$as_me: error:
7742 Cannot find a library with yywrap() in, but flex was found.
7743 It's possible the compiler you're using ($CC) is incompatible with the
7745 See \`config.log' for more details." >&2;}
7746 { (exit 1); exit 1; }; }
7749 LIBS="$LEXLIB $LIBS"
7751 for ac_prog in 'bison -y' byacc
7753 # Extract the first word of "$ac_prog", so it can be a program name with args.
7754 set dummy $ac_prog; ac_word=$2
7755 echo "$as_me:$LINENO: checking for $ac_word" >&5
7756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7757 if test "${ac_cv_prog_YACC+set}" = set; then
7758 echo $ECHO_N "(cached) $ECHO_C" >&6
7760 if test -n "$YACC"; then
7761 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7767 test -z "$as_dir" && as_dir=.
7768 for ac_exec_ext in '' $ac_executable_extensions; do
7769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7770 ac_cv_prog_YACC="$ac_prog"
7771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7779 YACC=$ac_cv_prog_YACC
7780 if test -n "$YACC"; then
7781 echo "$as_me:$LINENO: result: $YACC" >&5
7782 echo "${ECHO_T}$YACC" >&6
7784 echo "$as_me:$LINENO: result: no" >&5
7785 echo "${ECHO_T}no" >&6
7788 test -n "$YACC" && break
7790 test -n "$YACC" || YACC="yacc"
7794 { { echo "$as_me:$LINENO: error: Cannot find yacc." >&5
7795 echo "$as_me: error: Cannot find yacc." >&2;}
7796 { (exit 1); exit 1; }; }
7800 echo "$as_me:$LINENO: checking for posix non-blocking" >&5
7801 echo $ECHO_N "checking for posix non-blocking... $ECHO_C" >&6
7802 if test "${unet_cv_sys_nonblocking_posix+set}" = set; then
7803 echo $ECHO_N "(cached) $ECHO_C" >&6
7805 if test "$cross_compiling" = yes; then
7806 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7807 See \`config.log' for more details." >&5
7808 echo "$as_me: error: cannot run test program while cross compiling
7809 See \`config.log' for more details." >&2;}
7810 { (exit 1); exit 1; }; }
7812 cat >conftest.$ac_ext <<_ACEOF
7815 cat confdefs.h >>conftest.$ac_ext
7816 cat >>conftest.$ac_ext <<_ACEOF
7817 /* end confdefs.h. */
7818 #include <sys/types.h>
7819 #include <sys/socket.h>
7821 #include <sys/ioctl.h>
7822 #include <sys/file.h>
7824 $ac_cv_type_signal alarmed() { exit(1); }
7829 size_t l = sizeof(x);
7830 int f = socket(AF_INET, SOCK_DGRAM, 0);
7831 if (f >= 0 && !(fcntl(f, F_SETFL, O_NONBLOCK)))
7833 signal(SIGALRM, alarmed);
7835 recvfrom(f, b, 12, 0, &x, &l);
7842 rm -f conftest$ac_exeext
7843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7844 (eval $ac_link) 2>&5
7846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852 (exit $ac_status); }; }; then
7853 unet_cv_sys_nonblocking_posix=yes
7855 echo "$as_me: program exited with status $ac_status" >&5
7856 echo "$as_me: failed program was:" >&5
7857 sed 's/^/| /' conftest.$ac_ext >&5
7860 unet_cv_sys_nonblocking_posix=no
7862 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7865 echo "$as_me:$LINENO: result: $unet_cv_sys_nonblocking_posix" >&5
7866 echo "${ECHO_T}$unet_cv_sys_nonblocking_posix" >&6
7867 if test $unet_cv_sys_nonblocking_posix = yes; then
7869 cat >>confdefs.h <<\_ACEOF
7870 #define NBLOCK_POSIX
7874 echo "$as_me:$LINENO: checking for bsd non-blocking" >&5
7875 echo $ECHO_N "checking for bsd non-blocking... $ECHO_C" >&6
7876 if test "${unet_cv_sys_nonblocking_bsd+set}" = set; then
7877 echo $ECHO_N "(cached) $ECHO_C" >&6
7879 if test "$cross_compiling" = yes; then
7880 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7881 See \`config.log' for more details." >&5
7882 echo "$as_me: error: cannot run test program while cross compiling
7883 See \`config.log' for more details." >&2;}
7884 { (exit 1); exit 1; }; }
7886 cat >conftest.$ac_ext <<_ACEOF
7889 cat confdefs.h >>conftest.$ac_ext
7890 cat >>conftest.$ac_ext <<_ACEOF
7891 /* end confdefs.h. */
7892 #include <sys/types.h>
7893 #include <sys/socket.h>
7895 #include <sys/ioctl.h>
7896 #include <sys/file.h>
7898 $ac_cv_type_signal alarmed() { exit(1); }
7903 size_t l = sizeof(x);
7904 int f = socket(AF_INET, SOCK_DGRAM, 0);
7905 if (f >= 0 && !(fcntl(f, F_SETFL, O_NDELAY)))
7907 signal(SIGALRM, alarmed);
7909 recvfrom(f, b, 12, 0, &x, &l);
7916 rm -f conftest$ac_exeext
7917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7918 (eval $ac_link) 2>&5
7920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926 (exit $ac_status); }; }; then
7927 unet_cv_sys_nonblocking_bsd=yes
7929 echo "$as_me: program exited with status $ac_status" >&5
7930 echo "$as_me: failed program was:" >&5
7931 sed 's/^/| /' conftest.$ac_ext >&5
7934 unet_cv_sys_nonblocking_bsd=no
7936 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7939 echo "$as_me:$LINENO: result: $unet_cv_sys_nonblocking_bsd" >&5
7940 echo "${ECHO_T}$unet_cv_sys_nonblocking_bsd" >&6
7941 if test $unet_cv_sys_nonblocking_bsd = yes; then
7943 cat >>confdefs.h <<\_ACEOF
7949 cat >>confdefs.h <<\_ACEOF
7955 echo "$as_me:$LINENO: checking for posix signals" >&5
7956 echo $ECHO_N "checking for posix signals... $ECHO_C" >&6
7957 if test "${unet_cv_sys_signal_posix+set}" = set; then
7958 echo $ECHO_N "(cached) $ECHO_C" >&6
7960 cat >conftest.$ac_ext <<_ACEOF
7963 cat confdefs.h >>conftest.$ac_ext
7964 cat >>conftest.$ac_ext <<_ACEOF
7965 /* end confdefs.h. */
7970 sigaction(SIGTERM, (struct sigaction *)0L, (struct sigaction *)0L)
7975 rm -f conftest.$ac_objext
7976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7977 (eval $ac_compile) 2>conftest.er1
7979 grep -v '^ *+' conftest.er1 >conftest.err
7981 cat conftest.err >&5
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); } &&
7984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7989 (exit $ac_status); }; } &&
7990 { ac_try='test -s conftest.$ac_objext'
7991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7995 (exit $ac_status); }; }; then
7996 unet_cv_sys_signal_posix=yes
7998 echo "$as_me: failed program was:" >&5
7999 sed 's/^/| /' conftest.$ac_ext >&5
8001 unet_cv_sys_signal_posix=no
8003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8005 echo "$as_me:$LINENO: result: $unet_cv_sys_signal_posix" >&5
8006 echo "${ECHO_T}$unet_cv_sys_signal_posix" >&6
8007 if test $unet_cv_sys_signal_posix = yes; then
8009 cat >>confdefs.h <<\_ACEOF
8010 #define POSIX_SIGNALS
8014 echo "$as_me:$LINENO: checking for bsd reliable signals" >&5
8015 echo $ECHO_N "checking for bsd reliable signals... $ECHO_C" >&6
8016 if test "${unet_cv_sys_signal_bsd+set}" = set; then
8017 echo $ECHO_N "(cached) $ECHO_C" >&6
8019 if test "$cross_compiling" = yes; then
8020 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8021 See \`config.log' for more details." >&5
8022 echo "$as_me: error: cannot run test program while cross compiling
8023 See \`config.log' for more details." >&2;}
8024 { (exit 1); exit 1; }; }
8026 cat >conftest.$ac_ext <<_ACEOF
8029 cat confdefs.h >>conftest.$ac_ext
8030 cat >>conftest.$ac_ext <<_ACEOF
8031 /* end confdefs.h. */
8034 $ac_cv_type_signal handler()
8038 kill(getpid(), SIGTERM);
8043 signal(SIGTERM, handler);
8044 kill(getpid(), SIGTERM);
8048 rm -f conftest$ac_exeext
8049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8050 (eval $ac_link) 2>&5
8052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058 (exit $ac_status); }; }; then
8059 unet_cv_sys_signal_bsd=yes
8061 echo "$as_me: program exited with status $ac_status" >&5
8062 echo "$as_me: failed program was:" >&5
8063 sed 's/^/| /' conftest.$ac_ext >&5
8066 unet_cv_sys_signal_bsd=no
8068 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8071 echo "$as_me:$LINENO: result: $unet_cv_sys_signal_bsd" >&5
8072 echo "${ECHO_T}$unet_cv_sys_signal_bsd" >&6
8073 if test $unet_cv_sys_signal_bsd = yes; then
8075 cat >>confdefs.h <<\_ACEOF
8076 #define BSD_RELIABLE_SIGNALS
8081 cat >>confdefs.h <<\_ACEOF
8082 #define SYSV_UNRELIABLE_SIGNALS
8088 echo "$as_me:$LINENO: checking if the compiler understands -pipe" >&5
8089 echo $ECHO_N "checking if the compiler understands -pipe... $ECHO_C" >&6
8090 unet_cv_pipe_flags="$ac_cv_c_compiler_gnu"
8091 if test "$ac_cv_c_compiler_gnu" = no; then
8093 CFLAGS="$CFLAGS -pipe"
8094 cat >conftest.$ac_ext <<_ACEOF
8097 cat confdefs.h >>conftest.$ac_ext
8098 cat >>conftest.$ac_ext <<_ACEOF
8099 /* end confdefs.h. */
8109 rm -f conftest.$ac_objext
8110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8111 (eval $ac_compile) 2>conftest.er1
8113 grep -v '^ *+' conftest.er1 >conftest.err
8115 cat conftest.err >&5
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); } &&
8118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123 (exit $ac_status); }; } &&
8124 { ac_try='test -s conftest.$ac_objext'
8125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129 (exit $ac_status); }; }; then
8130 unet_cv_pipe_flags=yes
8132 echo "$as_me: failed program was:" >&5
8133 sed 's/^/| /' conftest.$ac_ext >&5
8136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8139 echo "$as_me:$LINENO: result: $unet_cv_pipe_flags" >&5
8140 echo "${ECHO_T}$unet_cv_pipe_flags" >&6
8141 if test "$unet_cv_pipe_flags" = yes ; then
8142 x=`echo $CFLAGS | grep 'pipe' 2>/dev/null`
8143 if test "$x" = "" ; then
8144 CFLAGS="$CFLAGS -pipe"
8149 echo "$as_me:$LINENO: checking for OS-dependent information" >&5
8150 echo $ECHO_N "checking for OS-dependent information... $ECHO_C" >&6
8153 echo "$as_me:$LINENO: result: Linux ($host) found." >&5
8154 echo "${ECHO_T}Linux ($host) found." >&6
8155 unet_poll_syscall=yes
8159 echo "$as_me:$LINENO: result: Solaris ($host) found." >&5
8160 echo "${ECHO_T}Solaris ($host) found." >&6
8161 if test x"$ac_cv_header_poll_h" = xyes; then
8162 unet_poll_syscall=yes
8164 unet_poll_syscall=no
8169 echo "$as_me:$LINENO: result: Solaris ($host) found." >&5
8170 echo "${ECHO_T}Solaris ($host) found." >&6
8171 unet_poll_syscall=no
8175 echo "$as_me:$LINENO: result: OpenBSD ($host) found." >&5
8176 echo "${ECHO_T}OpenBSD ($host) found." >&6
8177 if test x"$ac_cv_header_poll_h" = xyes; then
8178 unet_poll_syscall=yes
8180 unet_poll_syscall=no
8185 echo "$as_me:$LINENO: result: Generic BSD ($host) found." >&5
8186 echo "${ECHO_T}Generic BSD ($host) found." >&6
8187 if test x"$ac_cv_header_poll_h" = xyes; then
8188 unet_poll_syscall=yes
8190 unet_poll_syscall=no
8195 echo "$as_me:$LINENO: result: Darwin (Mac OS X) ($host) found." >&5
8196 echo "${ECHO_T}Darwin (Mac OS X) ($host) found." >&6
8197 unet_poll_syscall=no
8201 echo "$as_me:$LINENO: result: Unknown system type $host found." >&5
8202 echo "${ECHO_T}Unknown system type $host found." >&6
8203 { echo "$as_me:$LINENO: WARNING: Unknown OS type; using generic routines." >&5
8204 echo "$as_me: WARNING: Unknown OS type; using generic routines." >&2;}
8205 unet_poll_syscall=no
8209 echo "$as_me:$LINENO: checking whether to enable use of poll()" >&5
8210 echo $ECHO_N "checking whether to enable use of poll()... $ECHO_C" >&6
8211 # Check whether --enable-poll or --disable-poll was given.
8212 if test "${enable_poll+set}" = set; then
8213 enableval="$enable_poll"
8214 unet_cv_enable_poll=$enable_poll
8216 if test "${unet_cv_enable_poll+set}" = set; then
8217 echo $ECHO_N "(cached) $ECHO_C" >&6
8219 unet_cv_enable_poll=$unet_poll_syscall
8224 # Force poll to be disabled if there is no poll.h
8225 if test x"$ac_cv_header_poll_h" != xyes; then
8226 unet_cv_enable_poll=no
8229 echo "$as_me:$LINENO: result: $unet_cv_enable_poll" >&5
8230 echo "${ECHO_T}$unet_cv_enable_poll" >&6
8232 if test x"$unet_cv_enable_poll" = xyes; then
8234 cat >>confdefs.h <<\_ACEOF
8238 ENGINE_C=engine_poll.c
8240 ENGINE_C=engine_select.c
8244 echo "$as_me:$LINENO: checking whether to enable debug mode" >&5
8245 echo $ECHO_N "checking whether to enable debug mode... $ECHO_C" >&6
8246 # Check whether --enable-debug or --disable-debug was given.
8247 if test "${enable_debug+set}" = set; then
8248 enableval="$enable_debug"
8249 unet_cv_enable_debug=$enable_debug
8251 if test "${unet_cv_enable_debug+set}" = set; then
8252 echo $ECHO_N "(cached) $ECHO_C" >&6
8254 unet_cv_enable_debug=no
8258 echo "$as_me:$LINENO: result: $unet_cv_enable_debug" >&5
8259 echo "${ECHO_T}$unet_cv_enable_debug" >&6
8261 if test x"$unet_cv_enable_debug" = xyes; then
8263 cat >>confdefs.h <<\_ACEOF
8269 echo "$as_me:$LINENO: checking whether to enable leak detection" >&5
8270 echo $ECHO_N "checking whether to enable leak detection... $ECHO_C" >&6
8272 # Check whether --with-leak-detect or --without-leak-detect was given.
8273 if test "${with_leak_detect+set}" = set; then
8274 withval="$with_leak_detect"
8275 unet_cv_with_leak_detect=$with_leak_detect
8277 if test "${unet_cv_with_leak_detect+set}" = set; then
8278 echo $ECHO_N "(cached) $ECHO_C" >&6
8280 unet_cv_with_leak_detect=no
8284 echo "$as_me:$LINENO: result: $unet_cv_enable_leak_detect" >&5
8285 echo "${ECHO_T}$unet_cv_enable_leak_detect" >&6
8287 if test x"$unet_cv_with_leak_detect" != xno; then
8289 CFLAGS="-DMDEBUG $CFLAGS"
8290 if test x"$unet_cv_with_leak_detect" != xyes; then
8291 LIBS="-L$unet_cv_with_leak_detect $LIBS"
8296 # Check whether --with-ipv6 or --without-ipv6 was given.
8297 if test "${with_ipv6+set}" = set; then
8298 withval="$with_ipv6"
8299 ac_cv_use_ipv6=$withval
8301 ac_cv_use_ipv6=$unet_have_sockaddr_in6
8303 echo "$as_me:$LINENO: checking whether to use IPv6" >&5
8304 echo $ECHO_N "checking whether to use IPv6... $ECHO_C" >&6
8305 if test "${ac_cv_use_ipv6+set}" = set; then
8306 echo $ECHO_N "(cached) $ECHO_C" >&6
8310 echo "$as_me:$LINENO: result: $ac_cv_use_ipv6" >&5
8311 echo "${ECHO_T}$ac_cv_use_ipv6" >&6
8312 if test x"$ac_cv_use_ipv6" != "xno" ; then
8314 cat >>confdefs.h <<\_ACEOF
8320 echo "$as_me:$LINENO: checking whether to enable asserts" >&5
8321 echo $ECHO_N "checking whether to enable asserts... $ECHO_C" >&6
8322 # Check whether --enable-asserts or --disable-asserts was given.
8323 if test "${enable_asserts+set}" = set; then
8324 enableval="$enable_asserts"
8325 unet_cv_enable_asserts=$enable_asserts
8327 if test "${unet_cv_enable_asserts+set}" = set; then
8328 echo $ECHO_N "(cached) $ECHO_C" >&6
8330 unet_cv_enable_asserts=yes
8334 echo "$as_me:$LINENO: result: $unet_cv_enable_asserts" >&5
8335 echo "${ECHO_T}$unet_cv_enable_asserts" >&6
8337 if test x"$unet_cv_enable_asserts" = xno; then
8339 cat >>confdefs.h <<\_ACEOF
8345 echo "$as_me:$LINENO: checking whether to enable debugging symbols" >&5
8346 echo $ECHO_N "checking whether to enable debugging symbols... $ECHO_C" >&6
8347 # Check whether --enable-symbols or --disable-symbols was given.
8348 if test "${enable_symbols+set}" = set; then
8349 enableval="$enable_symbols"
8350 unet_cv_enable_symbols=$enable_symbols
8352 if test "${unet_cv_enable_symbols+set}" = set; then
8353 echo $ECHO_N "(cached) $ECHO_C" >&6
8355 unet_cv_enable_symbols=yes
8359 echo "$as_me:$LINENO: result: $unet_cv_enable_symbols" >&5
8360 echo "${ECHO_T}$unet_cv_enable_symbols" >&6
8362 if test x"$unet_cv_enable_symbols" = xyes; then
8366 echo "$as_me:$LINENO: checking whether to enable profiling support (gprof)" >&5
8367 echo $ECHO_N "checking whether to enable profiling support (gprof)... $ECHO_C" >&6
8368 # Check whether --enable-profile or --disable-profile was given.
8369 if test "${enable_profile+set}" = set; then
8370 enableval="$enable_profile"
8371 unet_cv_enable_profile=$enable_profile
8373 if test "${unet_cv_enable_profile+set}" = set; then
8374 echo $ECHO_N "(cached) $ECHO_C" >&6
8376 unet_cv_enable_profile=no
8380 echo "$as_me:$LINENO: result: $unet_cv_enable_profile" >&5
8381 echo "${ECHO_T}$unet_cv_enable_profile" >&6
8383 if test x"$unet_cv_enable_profile" = xyes; then
8384 CFLAGS="-pg $CFLAGS"
8387 echo "$as_me:$LINENO: checking whether to enable pedantic compiler warnings" >&5
8388 echo $ECHO_N "checking whether to enable pedantic compiler warnings... $ECHO_C" >&6
8389 # Check whether --enable-pedantic or --disable-pedantic was given.
8390 if test "${enable_pedantic+set}" = set; then
8391 enableval="$enable_pedantic"
8392 unet_cv_enable_pedantic=$enable_pedantic
8394 if test "${unet_cv_enable_pedantic+set}" = set; then
8395 echo $ECHO_N "(cached) $ECHO_C" >&6
8397 unet_cv_enable_pedantic=no
8401 echo "$as_me:$LINENO: result: $unet_cv_enable_pedantic" >&5
8402 echo "${ECHO_T}$unet_cv_enable_pedantic" >&6
8404 if test x"$unet_cv_enable_pedantic" = xyes; then
8405 CFLAGS="-pedantic $CFLAGS"
8408 echo "$as_me:$LINENO: checking whether to enable compiler warnings" >&5
8409 echo $ECHO_N "checking whether to enable compiler warnings... $ECHO_C" >&6
8410 # Check whether --enable-warnings or --disable-warnings was given.
8411 if test "${enable_warnings+set}" = set; then
8412 enableval="$enable_warnings"
8413 unet_cv_enable_warnings=$enable_warnings
8415 if test "${unet_cv_enable_warnings+set}" = set; then
8416 echo $ECHO_N "(cached) $ECHO_C" >&6
8418 unet_cv_enable_warnings=no
8422 echo "$as_me:$LINENO: result: $unet_cv_enable_warnings" >&5
8423 echo "${ECHO_T}$unet_cv_enable_warnings" >&6
8425 if test x"$unet_cv_enable_warnings" = xyes; then
8426 CFLAGS="-Wall $CFLAGS"
8429 echo "$as_me:$LINENO: checking whether to enable inlining for a few critical functions" >&5
8430 echo $ECHO_N "checking whether to enable inlining for a few critical functions... $ECHO_C" >&6
8431 # Check whether --enable-inlines or --disable-inlines was given.
8432 if test "${enable_inlines+set}" = set; then
8433 enableval="$enable_inlines"
8434 unet_cv_enable_inlines=$enable_inlines
8436 if test "${unet_cv_enable_inlines+set}" = set; then
8437 echo $ECHO_N "(cached) $ECHO_C" >&6
8439 unet_cv_enable_inlines=yes
8443 echo "$as_me:$LINENO: result: $unet_cv_enable_inlines" >&5
8444 echo "${ECHO_T}$unet_cv_enable_inlines" >&6
8446 if test x"$unet_cv_enable_inlines" = xyes; then
8448 cat >>confdefs.h <<\_ACEOF
8454 echo "$as_me:$LINENO: checking whether to enable the /dev/poll event engine" >&5
8455 echo $ECHO_N "checking whether to enable the /dev/poll event engine... $ECHO_C" >&6
8456 # Check whether --enable-devpoll or --disable-devpoll was given.
8457 if test "${enable_devpoll+set}" = set; then
8458 enableval="$enable_devpoll"
8459 unet_cv_enable_devpoll=$enable_devpoll
8461 if test "${unet_cv_enable_devpoll+set}" = set; then
8462 echo $ECHO_N "(cached) $ECHO_C" >&6
8464 unet_cv_enable_devpoll=yes
8469 if test x"$ac_cv_header_sys_devpoll_h" = xno; then
8470 unet_cv_enable_devpoll=no
8473 echo "$as_me:$LINENO: result: $unet_cv_enable_devpoll" >&5
8474 echo "${ECHO_T}$unet_cv_enable_devpoll" >&6
8476 if test x"$unet_cv_enable_devpoll" != xno; then
8478 cat >>confdefs.h <<\_ACEOF
8482 ENGINE_C="engine_devpoll.c $ENGINE_C"
8485 echo "$as_me:$LINENO: checking whether to enable the kqueue event engine" >&5
8486 echo $ECHO_N "checking whether to enable the kqueue event engine... $ECHO_C" >&6
8487 # Check whether --enable-kqueue or --disable-kqueue was given.
8488 if test "${enable_kqueue+set}" = set; then
8489 enableval="$enable_kqueue"
8490 unet_cv_enable_kqueue=$enable_kqueue
8492 if test "${unet_cv_enable_kqueue+set}" = set; then
8493 echo $ECHO_N "(cached) $ECHO_C" >&6
8495 unet_cv_enable_kqueue=yes
8500 if test x"$ac_cv_header_sys_event_h" = xno -o x"$ac_cv_func_kqueue" = xno; then
8501 unet_cv_enable_kqueue=no
8504 echo "$as_me:$LINENO: result: $unet_cv_enable_kqueue" >&5
8505 echo "${ECHO_T}$unet_cv_enable_kqueue" >&6
8507 if test x"$unet_cv_enable_kqueue" != xno; then
8509 cat >>confdefs.h <<\_ACEOF
8513 ENGINE_C="engine_kqueue.c $ENGINE_C"
8516 echo "$as_me:$LINENO: checking whether to enable the epoll event engine" >&5
8517 echo $ECHO_N "checking whether to enable the epoll event engine... $ECHO_C" >&6
8518 # Check whether --enable-epoll or --disable-epoll was given.
8519 if test "${enable_epoll+set}" = set; then
8520 enableval="$enable_epoll"
8521 unet_cv_enable_epoll=$enable_epoll
8523 if test "${unet_cv_enable_epoll+set}" = set; then
8524 echo $ECHO_N "(cached) $ECHO_C" >&6
8526 unet_cv_enable_epoll=yes
8531 if test x"$ac_cv_header_sys_epoll_h" = xno -o x"$ac_cv_func_epoll" = xno; then
8532 unet_cv_enable_epoll=no
8535 echo "$as_me:$LINENO: result: $unet_cv_enable_epoll" >&5
8536 echo "${ECHO_T}$unet_cv_enable_epoll" >&6
8538 if test x"$unet_cv_enable_epoll" != xno; then
8539 echo "$as_me:$LINENO: checking whether epoll functions are properly defined" >&5
8540 echo $ECHO_N "checking whether epoll functions are properly defined... $ECHO_C" >&6
8541 cat >conftest.$ac_ext <<_ACEOF
8544 cat confdefs.h >>conftest.$ac_ext
8545 cat >>conftest.$ac_ext <<_ACEOF
8546 /* end confdefs.h. */
8547 #include <sys/epoll.h>
8556 rm -f conftest.$ac_objext conftest$ac_exeext
8557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8558 (eval $ac_link) 2>conftest.er1
8560 grep -v '^ *+' conftest.er1 >conftest.err
8562 cat conftest.err >&5
8563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564 (exit $ac_status); } &&
8565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570 (exit $ac_status); }; } &&
8571 { ac_try='test -s conftest$ac_exeext'
8572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576 (exit $ac_status); }; }; then
8577 echo "$as_me:$LINENO: result: yes" >&5
8578 echo "${ECHO_T}yes" >&6
8580 echo "$as_me: failed program was:" >&5
8581 sed 's/^/| /' conftest.$ac_ext >&5
8583 echo "$as_me:$LINENO: result: no" >&5
8584 echo "${ECHO_T}no" >&6
8586 cat >>confdefs.h <<\_ACEOF
8587 #define EPOLL_NEED_BODY
8591 rm -f conftest.err conftest.$ac_objext \
8592 conftest$ac_exeext conftest.$ac_ext
8594 cat >>confdefs.h <<\_ACEOF
8598 ENGINE_C="engine_epoll.c $ENGINE_C"
8601 echo "$as_me:$LINENO: checking for va_copy" >&5
8602 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
8603 if test "${unet_cv_c_va_copy+set}" = set; then
8604 echo $ECHO_N "(cached) $ECHO_C" >&6
8606 cat >conftest.$ac_ext <<_ACEOF
8609 cat confdefs.h >>conftest.$ac_ext
8610 cat >>conftest.$ac_ext <<_ACEOF
8611 /* end confdefs.h. */
8616 va_list ap1, ap2; va_copy(ap1, ap2);
8621 rm -f conftest.$ac_objext conftest$ac_exeext
8622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8623 (eval $ac_link) 2>conftest.er1
8625 grep -v '^ *+' conftest.er1 >conftest.err
8627 cat conftest.err >&5
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 (exit $ac_status); } &&
8630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635 (exit $ac_status); }; } &&
8636 { ac_try='test -s conftest$ac_exeext'
8637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641 (exit $ac_status); }; }; then
8642 unet_cv_c_va_copy="yes"
8644 echo "$as_me: failed program was:" >&5
8645 sed 's/^/| /' conftest.$ac_ext >&5
8647 unet_cv_c_va_copy="no"
8650 rm -f conftest.err conftest.$ac_objext \
8651 conftest$ac_exeext conftest.$ac_ext
8653 echo "$as_me:$LINENO: result: $unet_cv_c_va_copy" >&5
8654 echo "${ECHO_T}$unet_cv_c_va_copy" >&6
8655 if test "$unet_cv_c_va_copy" = "yes" ; then
8657 cat >>confdefs.h <<\_ACEOF
8658 #define HAVE_VA_COPY 1
8663 echo "$as_me:$LINENO: checking for __va_copy" >&5
8664 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
8665 if test "${unet_cv_c___va_copy+set}" = set; then
8666 echo $ECHO_N "(cached) $ECHO_C" >&6
8668 cat >conftest.$ac_ext <<_ACEOF
8671 cat confdefs.h >>conftest.$ac_ext
8672 cat >>conftest.$ac_ext <<_ACEOF
8673 /* end confdefs.h. */
8678 va_list ap1, ap2; __va_copy(ap1, ap2);
8683 rm -f conftest.$ac_objext conftest$ac_exeext
8684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8685 (eval $ac_link) 2>conftest.er1
8687 grep -v '^ *+' conftest.er1 >conftest.err
8689 cat conftest.err >&5
8690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691 (exit $ac_status); } &&
8692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697 (exit $ac_status); }; } &&
8698 { ac_try='test -s conftest$ac_exeext'
8699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 (exit $ac_status); }; }; then
8704 unet_cv_c___va_copy="yes"
8706 echo "$as_me: failed program was:" >&5
8707 sed 's/^/| /' conftest.$ac_ext >&5
8709 unet_cv_c___va_copy="no"
8712 rm -f conftest.err conftest.$ac_objext \
8713 conftest$ac_exeext conftest.$ac_ext
8715 echo "$as_me:$LINENO: result: $unet_cv_c___va_copy" >&5
8716 echo "${ECHO_T}$unet_cv_c___va_copy" >&6
8717 if test "$unet_cv_c___va_copy" = "yes" ; then
8719 cat >>confdefs.h <<\_ACEOF
8720 #define HAVE___VA_COPY 1
8725 echo "$as_me:$LINENO: checking what name to give the symlink" >&5
8726 echo $ECHO_N "checking what name to give the symlink... $ECHO_C" >&6
8728 # Check whether --with-symlink or --without-symlink was given.
8729 if test "${with_symlink+set}" = set; then
8730 withval="$with_symlink"
8731 unet_cv_with_symlink=$with_symlink
8733 if test "${unet_cv_with_symlink+set}" = set; then
8734 echo $ECHO_N "(cached) $ECHO_C" >&6
8736 unet_cv_with_symlink="ircd"
8741 if test x"$unet_cv_with_symlink" = xyes; then
8742 unet_cv_with_symlink="ircd"
8745 echo "$as_me:$LINENO: result: $unet_cv_with_symlink" >&5
8746 echo "${ECHO_T}$unet_cv_with_symlink" >&6
8748 if test x"$unet_cv_with_symlink" = xno; then
8749 INSTALL_RULE=install-no-symlink
8752 INSTALL_RULE=install-with-symlink
8753 SYMLINK=$unet_cv_with_symlink
8758 echo "$as_me:$LINENO: checking what permissions to set on the installed binary" >&5
8759 echo $ECHO_N "checking what permissions to set on the installed binary... $ECHO_C" >&6
8761 # Check whether --with-mode or --without-mode was given.
8762 if test "${with_mode+set}" = set; then
8763 withval="$with_mode"
8764 unet_cv_with_mode=$with_mode
8766 if test "${unet_cv_with_mode+set}" = set; then
8767 echo $ECHO_N "(cached) $ECHO_C" >&6
8769 unet_cv_with_mode=711
8774 if test x"$unet_cv_with_mode" = xyes -o x"$unet_cv_with_mode" = xno; then
8775 unet_cv_with_mode=711
8778 echo "$as_me:$LINENO: result: $unet_cv_with_mode" >&5
8779 echo "${ECHO_T}$unet_cv_with_mode" >&6
8781 IRCDMODE=$unet_cv_with_mode
8784 unet_uid=`id | sed -e 's/.*uid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
8785 echo "$as_me:$LINENO: checking which user should own the installed binary" >&5
8786 echo $ECHO_N "checking which user should own the installed binary... $ECHO_C" >&6
8788 # Check whether --with-owner or --without-owner was given.
8789 if test "${with_owner+set}" = set; then
8790 withval="$with_owner"
8791 unet_cv_with_owner=$with_owner
8793 if test "${unet_cv_with_owner+set}" = set; then
8794 echo $ECHO_N "(cached) $ECHO_C" >&6
8796 unet_cv_with_owner=$unet_uid
8801 if test x"$unet_cv_with_owner" = xyes -o x"$unet_cv_with_owner" = xno; then
8802 unet_cv_with_owner=$unet_uid
8805 echo "$as_me:$LINENO: result: $unet_cv_with_owner" >&5
8806 echo "${ECHO_T}$unet_cv_with_owner" >&6
8808 IRCDOWN=$unet_cv_with_owner
8811 unet_gid=`id | sed -e 's/.*gid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
8812 echo "$as_me:$LINENO: checking which group should own the installed binary" >&5
8813 echo $ECHO_N "checking which group should own the installed binary... $ECHO_C" >&6
8815 # Check whether --with-group or --without-group was given.
8816 if test "${with_group+set}" = set; then
8817 withval="$with_group"
8818 unet_cv_with_group=$with_group
8820 if test "${unet_cv_with_group+set}" = set; then
8821 echo $ECHO_N "(cached) $ECHO_C" >&6
8823 unet_cv_with_group=$unet_gid
8828 if test x"$unet_cv_with_group" = xyes -o x"$unet_cv_with_group" = xno; then
8829 unet_cv_with_group=$unet_gid
8832 echo "$as_me:$LINENO: result: $unet_cv_with_group" >&5
8833 echo "${ECHO_T}$unet_cv_with_group" >&6
8835 IRCDGRP=$unet_cv_with_group
8839 if test -f /etc/resolv.conf; then
8840 unet_domain=`awk '/^domain/ { print $2; exit }' /etc/resolv.conf`
8841 if test x"$unet_domain" = x; then
8842 unet_domain=`awk '/^search/ { print $2; exit }' /etc/resolv.conf`
8845 echo "$as_me:$LINENO: checking for site domain name" >&5
8846 echo $ECHO_N "checking for site domain name... $ECHO_C" >&6
8848 # Check whether --with-domain or --without-domain was given.
8849 if test "${with_domain+set}" = set; then
8850 withval="$with_domain"
8851 unet_cv_with_domain=$with_domain
8853 if test "${unet_cv_with_domain+set}" = set; then
8854 echo $ECHO_N "(cached) $ECHO_C" >&6
8856 unet_cv_with_domain=$unet_domain
8861 if test x"$unet_cv_with_domain" = xyes -o x"$unet_cv_with_domain" = xno; then
8862 unet_cv_with_domain=$unet_domain
8864 if test x"$unet_cv_with_domain" = xno; then
8865 { { echo "$as_me:$LINENO: error: Unable to determine server DNS domain; use --with-domain to set it" >&5
8866 echo "$as_me: error: Unable to determine server DNS domain; use --with-domain to set it" >&2;}
8867 { (exit 1); exit 1; }; }
8870 echo "$as_me:$LINENO: result: $unet_cv_with_domain" >&5
8871 echo "${ECHO_T}$unet_cv_with_domain" >&6
8874 cat >>confdefs.h <<_ACEOF
8875 #define DOMAINNAME "*$unet_cv_with_domain"
8879 echo "$as_me:$LINENO: checking if chroot operation is desired" >&5
8880 echo $ECHO_N "checking if chroot operation is desired... $ECHO_C" >&6
8882 # Check whether --with-chroot or --without-chroot was given.
8883 if test "${with_chroot+set}" = set; then
8884 withval="$with_chroot"
8885 unet_cv_with_chroot=$with_chroot
8887 if test "${unet_cv_with_chroot+set}" = set; then
8888 echo $ECHO_N "(cached) $ECHO_C" >&6
8890 unet_cv_with_chroot=no
8895 if test x"$unet_cv_with_chroot" = xyes; then
8896 { { echo "$as_me:$LINENO: error: --with-chroot given with no directory. See doc/readme.chroot." >&5
8897 echo "$as_me: error: --with-chroot given with no directory. See doc/readme.chroot." >&2;}
8898 { (exit 1); exit 1; }; }
8901 # Ensure there are no trailing /'s to mess us up
8902 unet_cv_with_chroot=`echo "$unet_cv_with_chroot" | sed 's%/*$%%'`
8904 echo "$as_me:$LINENO: result: $unet_cv_with_chroot" >&5
8905 echo "${ECHO_T}$unet_cv_with_chroot" >&6
8907 # Deal with the annoying value "NONE" here
8908 unet_save_prefix=$prefix
8909 if test x"$prefix" = xNONE; then
8910 prefix=$ac_default_prefix
8915 unet_save_exec_prefix=$exec_prefix
8916 if test x"$exec_prefix" = xNONE; then
8919 exec_prefix=$exec_prefix
8922 # Obtain the actual interesting directories
8923 unet_bindir=`eval echo "$bindir"`
8924 unet_libdir=`eval echo "$libdir"`
8926 # Restore the original settings of $prefix and $exec_prefix
8927 prefix=$unet_save_prefix
8928 exec_prefix=$unet_save_exec_prefix
8930 echo "$as_me:$LINENO: checking where the binary will be for /restart" >&5
8931 echo $ECHO_N "checking where the binary will be for /restart... $ECHO_C" >&6
8932 if test x"$unet_cv_with_symlink" = xno; then
8933 unet_spath="$unet_bindir/ircd"
8935 unet_spath="$unet_bindir/$unet_cv_with_symlink"
8937 echo "$as_me:$LINENO: result: $unet_spath" >&5
8938 echo "${ECHO_T}$unet_spath" >&6
8940 if test x"$unet_cv_with_chroot" != xno; then
8941 if echo "$unet_spath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
8942 unet_spath=`echo "$unet_spath" | sed "s%^$unet_cv_with_chroot%%"`
8944 { echo "$as_me:$LINENO: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&5
8945 echo "$as_me: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&2;}
8950 cat >>confdefs.h <<_ACEOF
8951 #define SPATH "$unet_spath"
8955 echo "$as_me:$LINENO: checking what the data directory should be" >&5
8956 echo $ECHO_N "checking what the data directory should be... $ECHO_C" >&6
8958 # Check whether --with-dpath or --without-dpath was given.
8959 if test "${with_dpath+set}" = set; then
8960 withval="$with_dpath"
8961 unet_cv_with_dpath=$with_dpath
8963 if test "${unet_cv_with_dpath+set}" = set; then
8964 echo $ECHO_N "(cached) $ECHO_C" >&6
8966 unet_cv_with_dpath=$unet_libdir
8971 if test x"$unet_cv_with_dpath" = xyes -o x"$unet_cv_with_dpath" = xno; then
8972 unet_cv_with_dpath=$unet_libdir
8975 # Ensure there are no trailing /'s to mess us up
8976 unet_cv_with_dpath=`echo "$unet_cv_with_dpath" | sed 's%/*$%%'`
8978 echo "$as_me:$LINENO: result: $unet_cv_with_dpath" >&5
8979 echo "${ECHO_T}$unet_cv_with_dpath" >&6
8981 if test x"$unet_cv_with_chroot" != xno; then
8982 if echo "$unet_cv_with_dpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
8983 unet_dpath=`echo "$unet_cv_with_dpath" | sed "s%^$unet_cv_with_chroot%%"`
8985 { { echo "$as_me:$LINENO: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&5
8986 echo "$as_me: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&2;}
8987 { (exit 1); exit 1; }; }
8990 unet_dpath=$unet_cv_with_dpath
8994 cat >>confdefs.h <<_ACEOF
8995 #define DPATH "$unet_dpath"
8999 DPATH=$unet_cv_with_dpath
9002 echo "$as_me:$LINENO: checking where the default configuration file resides" >&5
9003 echo $ECHO_N "checking where the default configuration file resides... $ECHO_C" >&6
9005 # Check whether --with-cpath or --without-cpath was given.
9006 if test "${with_cpath+set}" = set; then
9007 withval="$with_cpath"
9008 unet_cv_with_cpath=$with_cpath
9010 if test "${unet_cv_with_cpath+set}" = set; then
9011 echo $ECHO_N "(cached) $ECHO_C" >&6
9013 unet_cv_with_cpath="ircd.conf"
9018 if test x"$unet_cv_with_cpath" = xyes -o x"$unet_cv_with_cpath" = xno; then
9019 unet_cv_with_cpath="ircd.conf"
9022 echo "$as_me:$LINENO: result: $unet_cv_with_cpath" >&5
9023 echo "${ECHO_T}$unet_cv_with_cpath" >&6
9025 if echo "$unet_cv_with_cpath" | grep '^/' > /dev/null 2>&1; then
9026 # Absolute path; check against chroot stuff
9027 if test x"$unet_cv_with_chroot" != xno; then
9028 if echo "$unet_cv_with_cpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
9029 unet_cpath=`echo "$unet_cv_with_cpath" | sed "s%^$unet_cv_with_chroot%%"`
9031 { { echo "$as_me:$LINENO: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&5
9032 echo "$as_me: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&2;}
9033 { (exit 1); exit 1; }; }
9036 unet_cpath=$unet_cv_with_cpath
9039 unet_cpath=$unet_cv_with_cpath
9043 cat >>confdefs.h <<_ACEOF
9044 #define CPATH "$unet_cpath"
9048 echo "$as_me:$LINENO: checking where to put the debugging log if debugging enabled" >&5
9049 echo $ECHO_N "checking where to put the debugging log if debugging enabled... $ECHO_C" >&6
9051 # Check whether --with-lpath or --without-lpath was given.
9052 if test "${with_lpath+set}" = set; then
9053 withval="$with_lpath"
9054 unet_cv_with_lpath=$with_lpath
9056 if test "${unet_cv_with_lpath+set}" = set; then
9057 echo $ECHO_N "(cached) $ECHO_C" >&6
9059 unet_cv_with_lpath="ircd.log"
9064 if test x"$unet_cv_with_lpath" = xyes -o x"$unet_cv_with_lpath" = xno; then
9065 unet_cv_with_lpath="ircd.log"
9068 echo "$as_me:$LINENO: result: $unet_cv_with_lpath" >&5
9069 echo "${ECHO_T}$unet_cv_with_lpath" >&6
9071 if echo "$unet_cv_with_lpath" | grep '^/' > /dev/null 2>&1; then
9072 # Absolute path; check against chroot stuff
9073 if test x"$unet_cv_with_chroot" != xno; then
9074 if echo "$unet_cv_with_lpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
9075 unet_lpath=`echo "$unet_cv_with_lpath" | sed "s%^$unet_cv_with_chroot%%"`
9077 { 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
9078 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;}
9079 unet_cv_with_lpath="ircd.log"
9080 unet_lpath="ircd.log"
9083 unet_lpath=$unet_cv_with_lpath
9086 unet_lpath=$unet_cv_with_lpath
9090 cat >>confdefs.h <<_ACEOF
9091 #define LPATH "$unet_lpath"
9095 unet_maxcon=`ulimit -Hn`
9096 if test x"$unet_maxcon" = xunlimited; then
9097 unet_maxcon=`ulimit -Sn`
9099 unet_maxcon=`expr $unet_maxcon - 4`
9100 echo "$as_me:$LINENO: checking max connections" >&5
9101 echo $ECHO_N "checking max connections... $ECHO_C" >&6
9103 # Check whether --with-maxcon or --without-maxcon was given.
9104 if test "${with_maxcon+set}" = set; then
9105 withval="$with_maxcon"
9106 unet_cv_with_maxcon=$with_maxcon
9108 if test "${unet_cv_with_maxcon+set}" = set; then
9109 echo $ECHO_N "(cached) $ECHO_C" >&6
9111 unet_cv_with_maxcon=$unet_maxcon
9116 if test x"$unet_cv_with_maxcon" = xyes -o x"$unet_cv_with_maxcon" = xno; then
9117 unet_cv_with_maxcon=$unet_maxcon
9120 echo "$as_me:$LINENO: result: $unet_cv_with_maxcon" >&5
9121 echo "${ECHO_T}$unet_cv_with_maxcon" >&6
9124 cat >>confdefs.h <<_ACEOF
9125 #define MAXCONNECTIONS $unet_cv_with_maxcon
9129 ac_config_files="$ac_config_files Makefile ircd/Makefile doc/Makefile"
9130 ac_config_commands="$ac_config_commands default"
9131 cat >confcache <<\_ACEOF
9132 # This file is a shell script that caches the results of configure
9133 # tests run on this system so they can be shared between configure
9134 # scripts and configure runs, see configure's option --config-cache.
9135 # It is not useful on other systems. If it contains results you don't
9136 # want to keep, you may remove or edit it.
9138 # config.status only pays attention to the cache file if you give it
9139 # the --recheck option to rerun configure.
9141 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9142 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9147 # The following way of writing the cache mishandles newlines in values,
9148 # but we know of no workaround that is simple, portable, and efficient.
9149 # So, don't put newlines in cache variables' values.
9150 # Ultrix sh set writes to stderr and can't be redirected directly,
9151 # and sets the high bit in the cache file unless we assign to the vars.
9154 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9156 # `set' does not quote correctly, so add quotes (double-quote
9157 # substitution turns \\\\ into \\, and sed turns \\ into \).
9160 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9163 # `set' quotes correctly as required by POSIX, so do not add quotes.
9165 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9172 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9174 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9176 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9177 if test -w $cache_file; then
9178 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9179 cat confcache >$cache_file
9181 echo "not updating unwritable cache $cache_file"
9186 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9187 # Let make expand exec_prefix.
9188 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9190 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9191 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9192 # trailing colons and then remove the whole line if VPATH becomes empty
9193 # (actually we leave an empty line to preserve line numbers).
9194 if test "x$srcdir" = x.; then
9195 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9196 s/:*\$(srcdir):*/:/;
9197 s/:*\${srcdir}:*/:/;
9199 s/^\([^=]*=[ ]*\):*/\1/;
9205 DEFS=-DHAVE_CONFIG_H
9209 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9210 # 1. Remove the extension, and $U if already installed.
9211 ac_i=`echo "$ac_i" |
9212 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9214 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9215 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9219 LTLIBOBJS=$ac_ltlibobjs
9223 : ${CONFIG_STATUS=./config.status}
9224 ac_clean_files_save=$ac_clean_files
9225 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9226 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9227 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9228 cat >$CONFIG_STATUS <<_ACEOF
9230 # Generated by $as_me.
9231 # Run this file to recreate the current configuration.
9232 # Compiler output produced by configure, useful for debugging
9233 # configure, is in config.log if it exists.
9238 SHELL=\${CONFIG_SHELL-$SHELL}
9241 cat >>$CONFIG_STATUS <<\_ACEOF
9242 ## --------------------- ##
9243 ## M4sh Initialization. ##
9244 ## --------------------- ##
9246 # Be Bourne compatible
9247 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9250 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9251 # is contrary to our usage. Disable this feature.
9252 alias -g '${1+"$@"}'='"$@"'
9253 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9256 DUALCASE=1; export DUALCASE # for MKS sh
9258 # Support unset when possible.
9259 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9266 # Work around bugs in pre-3.0 UWIN ksh.
9267 $as_unset ENV MAIL MAILPATH
9274 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9275 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9276 LC_TELEPHONE LC_TIME
9278 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9279 eval $as_var=C; export $as_var
9285 # Required to use basename.
9286 if expr a : '\(a\)' >/dev/null 2>&1; then
9292 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9293 as_basename=basename
9299 # Name of the executable.
9300 as_me=`$as_basename "$0" ||
9301 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9302 X"$0" : 'X\(//\)$' \| \
9303 X"$0" : 'X\(/\)$' \| \
9304 . : '\(.\)' 2>/dev/null ||
9306 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9307 /^X\/\(\/\/\)$/{ s//\1/; q; }
9308 /^X\/\(\/\).*/{ s//\1/; q; }
9312 # PATH needs CR, and LINENO needs CR and PATH.
9313 # Avoid depending upon Character Ranges.
9314 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9315 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9316 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9317 as_cr_digits='0123456789'
9318 as_cr_alnum=$as_cr_Letters$as_cr_digits
9320 # The user is always right.
9321 if test "${PATH_SEPARATOR+set}" != set; then
9322 echo "#! /bin/sh" >conf$$.sh
9323 echo "exit 0" >>conf$$.sh
9325 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9336 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9337 test "x$as_lineno_1" != "x$as_lineno_2" &&
9338 test "x$as_lineno_3" = "x$as_lineno_2" || {
9339 # Find who we are. Look in the path if we contain no path at all
9342 *[\\/]* ) as_myself=$0 ;;
9343 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9347 test -z "$as_dir" && as_dir=.
9348 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9353 # We did not find ourselves, most probably we were run as `sh COMMAND'
9354 # in which case we are not to be found in the path.
9355 if test "x$as_myself" = x; then
9358 if test ! -f "$as_myself"; then
9359 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9360 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9361 { (exit 1); exit 1; }; }
9363 case $CONFIG_SHELL in
9365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9366 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9369 test -z "$as_dir" && as_dir=.
9370 for as_base in sh bash ksh sh5; do
9373 if ("$as_dir/$as_base" -c '
9376 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9377 test "x$as_lineno_1" != "x$as_lineno_2" &&
9378 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9379 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9380 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9381 CONFIG_SHELL=$as_dir/$as_base
9383 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9391 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9392 # uniformly replaced by the line number. The first 'sed' inserts a
9393 # line-number line before each line; the second 'sed' does the real
9394 # work. The second script uses 'N' to pair each line-number line
9395 # with the numbered line, and appends trailing '-' during
9396 # substitution so that $LINENO is not a special case at line end.
9397 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9398 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9399 sed '=' <$as_myself |
9404 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9407 s,^['$as_cr_digits']*\n,,
9409 chmod +x $as_me.lineno ||
9410 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9411 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9412 { (exit 1); exit 1; }; }
9414 # Don't try to exec as it changes $[0], causing all sort of problems
9415 # (the dirname of $[0] is not the place where we might find the
9416 # original and so on. Autoconf is especially sensible to this).
9418 # Exit status is that of the last command.
9423 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9424 *c*,-n*) ECHO_N= ECHO_C='
9426 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9427 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9430 if expr a : '\(a\)' >/dev/null 2>&1; then
9436 rm -f conf$$ conf$$.exe conf$$.file
9438 if ln -s conf$$.file conf$$ 2>/dev/null; then
9439 # We could just check for DJGPP; but this test a) works b) is more generic
9440 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9441 if test -f conf$$.exe; then
9442 # Don't use ln at all; we don't have any links
9447 elif ln conf$$.file conf$$ 2>/dev/null; then
9452 rm -f conf$$ conf$$.exe conf$$.file
9454 if mkdir -p . 2>/dev/null; then
9457 test -d ./-p && rmdir ./-p
9461 as_executable_p="test -f"
9463 # Sed expression to map a string onto a valid CPP name.
9464 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9466 # Sed expression to map a string onto a valid variable name.
9467 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9471 # We need space, tab and new line, in precisely that order.
9481 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9482 # report actual input values of CONFIG_FILES etc. instead of their
9483 # values after options handling. Logging --version etc. is OK.
9487 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9488 ## Running $as_me. ##
9493 This file was extended by $as_me, which was
9494 generated by GNU Autoconf 2.59. Invocation command line was
9496 CONFIG_FILES = $CONFIG_FILES
9497 CONFIG_HEADERS = $CONFIG_HEADERS
9498 CONFIG_LINKS = $CONFIG_LINKS
9499 CONFIG_COMMANDS = $CONFIG_COMMANDS
9503 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9507 # Files that config.status was made for.
9508 if test -n "$ac_config_files"; then
9509 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9512 if test -n "$ac_config_headers"; then
9513 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9516 if test -n "$ac_config_links"; then
9517 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9520 if test -n "$ac_config_commands"; then
9521 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9524 cat >>$CONFIG_STATUS <<\_ACEOF
9527 \`$as_me' instantiates files from templates according to the
9528 current configuration.
9530 Usage: $0 [OPTIONS] [FILE]...
9532 -h, --help print this help, then exit
9533 -V, --version print version number, then exit
9534 -q, --quiet do not print progress messages
9535 -d, --debug don't remove temporary files
9536 --recheck update $as_me by reconfiguring in the same conditions
9537 --file=FILE[:TEMPLATE]
9538 instantiate the configuration file FILE
9539 --header=FILE[:TEMPLATE]
9540 instantiate the configuration header FILE
9542 Configuration files:
9545 Configuration headers:
9548 Configuration commands:
9551 Report bugs to <bug-autoconf@gnu.org>."
9554 cat >>$CONFIG_STATUS <<_ACEOF
9557 configured by $0, generated by GNU Autoconf 2.59,
9558 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9560 Copyright (C) 2003 Free Software Foundation, Inc.
9561 This config.status script is free software; the Free Software Foundation
9562 gives unlimited permission to copy, distribute and modify it."
9567 cat >>$CONFIG_STATUS <<\_ACEOF
9568 # If no file are specified by the user, then we need to provide default
9569 # value. By we need to know if files were specified by the user.
9575 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9576 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9584 *) # This is not an option, so the user has probably given explicit
9587 ac_need_defaults=false;;
9591 # Handling of the options.
9593 cat >>$CONFIG_STATUS <<\_ACEOF
9594 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9596 --version | --vers* | -V )
9597 echo "$ac_cs_version"; exit 0 ;;
9599 # Conflict between --help and --header
9600 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9601 Try \`$0 --help' for more information." >&5
9602 echo "$as_me: error: ambiguous option: $1
9603 Try \`$0 --help' for more information." >&2;}
9604 { (exit 1); exit 1; }; };;
9605 --help | --hel | -h )
9606 echo "$ac_cs_usage"; exit 0 ;;
9607 --debug | --d* | -d )
9609 --file | --fil | --fi | --f )
9611 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9612 ac_need_defaults=false;;
9613 --header | --heade | --head | --hea )
9615 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9616 ac_need_defaults=false;;
9617 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9618 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9622 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9623 Try \`$0 --help' for more information." >&5
9624 echo "$as_me: error: unrecognized option: $1
9625 Try \`$0 --help' for more information." >&2;}
9626 { (exit 1); exit 1; }; } ;;
9628 *) ac_config_targets="$ac_config_targets $1" ;;
9634 ac_configure_extra_args=
9636 if $ac_cs_silent; then
9638 ac_configure_extra_args="$ac_configure_extra_args --silent"
9642 cat >>$CONFIG_STATUS <<_ACEOF
9643 if \$ac_cs_recheck; then
9644 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9645 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9654 cat >>$CONFIG_STATUS <<\_ACEOF
9655 for ac_config_target in $ac_config_targets
9657 case "$ac_config_target" in
9658 # Handling of arguments.
9659 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9660 "ircd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ircd/Makefile" ;;
9661 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
9662 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
9663 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9664 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9665 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9666 { (exit 1); exit 1; }; };;
9670 # If the user did not use the arguments to specify the items to instantiate,
9671 # then the envvar interface is used. Set only those that are not.
9672 # We use the long form for the default assignment because of an extremely
9673 # bizarre bug on SunOS 4.1.3.
9674 if $ac_need_defaults; then
9675 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9676 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9677 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9680 # Have a temporary directory for convenience. Make it in the build tree
9681 # simply because there is no reason to put it here, and in addition,
9682 # creating and moving files from /tmp can sometimes cause problems.
9683 # Create a temporary directory, and hook for its removal unless debugging.
9686 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9687 trap '{ (exit 1); exit 1; }' 1 2 13 15
9690 # Create a (secure) tmp directory for tmp files.
9693 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9694 test -n "$tmp" && test -d "$tmp"
9697 tmp=./confstat$$-$RANDOM
9698 (umask 077 && mkdir $tmp)
9701 echo "$me: cannot create a temporary directory in ." >&2
9702 { (exit 1); exit 1; }
9707 cat >>$CONFIG_STATUS <<_ACEOF
9710 # CONFIG_FILES section.
9713 # No need to generate the scripts if there are no CONFIG_FILES.
9714 # This happens for instance when ./config.status config.h
9715 if test -n "\$CONFIG_FILES"; then
9716 # Protect against being on the right side of a sed subst in config.status.
9717 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9718 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9719 s,@SHELL@,$SHELL,;t t
9720 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9721 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9722 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9723 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9724 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9725 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9726 s,@exec_prefix@,$exec_prefix,;t t
9727 s,@prefix@,$prefix,;t t
9728 s,@program_transform_name@,$program_transform_name,;t t
9729 s,@bindir@,$bindir,;t t
9730 s,@sbindir@,$sbindir,;t t
9731 s,@libexecdir@,$libexecdir,;t t
9732 s,@datadir@,$datadir,;t t
9733 s,@sysconfdir@,$sysconfdir,;t t
9734 s,@sharedstatedir@,$sharedstatedir,;t t
9735 s,@localstatedir@,$localstatedir,;t t
9736 s,@libdir@,$libdir,;t t
9737 s,@includedir@,$includedir,;t t
9738 s,@oldincludedir@,$oldincludedir,;t t
9739 s,@infodir@,$infodir,;t t
9740 s,@mandir@,$mandir,;t t
9741 s,@build_alias@,$build_alias,;t t
9742 s,@host_alias@,$host_alias,;t t
9743 s,@target_alias@,$target_alias,;t t
9745 s,@ECHO_C@,$ECHO_C,;t t
9746 s,@ECHO_N@,$ECHO_N,;t t
9747 s,@ECHO_T@,$ECHO_T,;t t
9749 s,@build@,$build,;t t
9750 s,@build_cpu@,$build_cpu,;t t
9751 s,@build_vendor@,$build_vendor,;t t
9752 s,@build_os@,$build_os,;t t
9754 s,@host_cpu@,$host_cpu,;t t
9755 s,@host_vendor@,$host_vendor,;t t
9756 s,@host_os@,$host_os,;t t
9758 s,@CFLAGS@,$CFLAGS,;t t
9759 s,@LDFLAGS@,$LDFLAGS,;t t
9760 s,@CPPFLAGS@,$CPPFLAGS,;t t
9761 s,@ac_ct_CC@,$ac_ct_CC,;t t
9762 s,@EXEEXT@,$EXEEXT,;t t
9763 s,@OBJEXT@,$OBJEXT,;t t
9765 s,@EGREP@,$EGREP,;t t
9767 s,@SET_MAKE@,$SET_MAKE,;t t
9768 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9769 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9770 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9772 s,@RMPROG@,$RMPROG,;t t
9773 s,@SHPROG@,$SHPROG,;t t
9775 s,@LEXLIB@,$LEXLIB,;t t
9776 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
9778 s,@ENGINE_C@,$ENGINE_C,;t t
9779 s,@INSTALL_RULE@,$INSTALL_RULE,;t t
9780 s,@SYMLINK@,$SYMLINK,;t t
9781 s,@IRCDMODE@,$IRCDMODE,;t t
9782 s,@IRCDOWN@,$IRCDOWN,;t t
9783 s,@IRCDGRP@,$IRCDGRP,;t t
9784 s,@DPATH@,$DPATH,;t t
9785 s,@LIBOBJS@,$LIBOBJS,;t t
9786 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9791 cat >>$CONFIG_STATUS <<\_ACEOF
9792 # Split the substitutions into bite-sized pieces for seds with
9793 # small command number limits, like on Digital OSF/1 and HP-UX.
9795 ac_sed_frag=1 # Number of current file.
9796 ac_beg=1 # First line for current file.
9797 ac_end=$ac_max_sed_lines # Line after last line for current file.
9800 while $ac_more_lines; do
9801 if test $ac_beg -gt 1; then
9802 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9804 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9806 if test ! -s $tmp/subs.frag; then
9809 # The purpose of the label and of the branching condition is to
9810 # speed up the sed processing (if there are no `@' at all, there
9811 # is no need to browse any of the substitutions).
9812 # These are the two extra sed commands mentioned above.
9814 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9815 if test -z "$ac_sed_cmds"; then
9816 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9818 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9820 ac_sed_frag=`expr $ac_sed_frag + 1`
9822 ac_end=`expr $ac_end + $ac_max_sed_lines`
9825 if test -z "$ac_sed_cmds"; then
9828 fi # test -n "$CONFIG_FILES"
9831 cat >>$CONFIG_STATUS <<\_ACEOF
9832 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9833 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9835 - | *:- | *:-:* ) # input from stdin
9837 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9838 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9839 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9840 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9841 * ) ac_file_in=$ac_file.in ;;
9844 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9845 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9846 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9847 X"$ac_file" : 'X\(//\)[^/]' \| \
9848 X"$ac_file" : 'X\(//\)$' \| \
9849 X"$ac_file" : 'X\(/\)' \| \
9850 . : '\(.\)' 2>/dev/null ||
9852 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9853 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9854 /^X\(\/\/\)$/{ s//\1/; q; }
9855 /^X\(\/\).*/{ s//\1/; q; }
9857 { if $as_mkdir_p; then
9862 while test ! -d "$as_dir"; do
9863 as_dirs="$as_dir $as_dirs"
9864 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9865 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9866 X"$as_dir" : 'X\(//\)[^/]' \| \
9867 X"$as_dir" : 'X\(//\)$' \| \
9868 X"$as_dir" : 'X\(/\)' \| \
9869 . : '\(.\)' 2>/dev/null ||
9871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9872 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9873 /^X\(\/\/\)$/{ s//\1/; q; }
9874 /^X\(\/\).*/{ s//\1/; q; }
9877 test ! -n "$as_dirs" || mkdir $as_dirs
9878 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9879 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9880 { (exit 1); exit 1; }; }; }
9884 if test "$ac_dir" != .; then
9885 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9886 # A "../" for each directory in $ac_dir_suffix.
9887 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9889 ac_dir_suffix= ac_top_builddir=
9893 .) # No --srcdir option. We are building in place.
9895 if test -z "$ac_top_builddir"; then
9898 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9900 [\\/]* | ?:[\\/]* ) # Absolute path.
9901 ac_srcdir=$srcdir$ac_dir_suffix;
9902 ac_top_srcdir=$srcdir ;;
9904 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9905 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9908 # Do not use `cd foo && pwd` to compute absolute paths, because
9909 # the directories may not exist.
9911 .) ac_abs_builddir="$ac_dir";;
9914 .) ac_abs_builddir=`pwd`;;
9915 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9916 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9919 case $ac_abs_builddir in
9920 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9922 case ${ac_top_builddir}. in
9923 .) ac_abs_top_builddir=$ac_abs_builddir;;
9924 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9925 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9928 case $ac_abs_builddir in
9929 .) ac_abs_srcdir=$ac_srcdir;;
9932 .) ac_abs_srcdir=$ac_abs_builddir;;
9933 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9934 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9937 case $ac_abs_builddir in
9938 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9940 case $ac_top_srcdir in
9941 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9942 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9943 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9949 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9950 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9953 # Let's still pretend it is `configure' which instantiates (i.e., don't
9954 # use $as_me), people would be surprised to read:
9955 # /* config.h. Generated by config.status. */
9956 if test x"$ac_file" = x-; then
9959 configure_input="$ac_file. "
9961 configure_input=$configure_input"Generated from `echo $ac_file_in |
9962 sed 's,.*/,,'` by configure."
9964 # First look for the input files in the build tree, otherwise in the
9966 ac_file_inputs=`IFS=:
9967 for f in $ac_file_in; do
9969 -) echo $tmp/stdin ;;
9971 # Absolute (can't be DOS-style, as IFS=:)
9972 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9973 echo "$as_me: error: cannot find input file: $f" >&2;}
9974 { (exit 1); exit 1; }; }
9977 if test -f "$f"; then
9980 elif test -f "$srcdir/$f"; then
9985 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9986 echo "$as_me: error: cannot find input file: $f" >&2;}
9987 { (exit 1); exit 1; }; }
9990 done` || { (exit 1); exit 1; }
9992 if test x"$ac_file" != x-; then
9993 { echo "$as_me:$LINENO: creating $ac_file" >&5
9994 echo "$as_me: creating $ac_file" >&6;}
9998 cat >>$CONFIG_STATUS <<_ACEOF
10002 cat >>$CONFIG_STATUS <<\_ACEOF
10004 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10005 s,@configure_input@,$configure_input,;t t
10006 s,@srcdir@,$ac_srcdir,;t t
10007 s,@abs_srcdir@,$ac_abs_srcdir,;t t
10008 s,@top_srcdir@,$ac_top_srcdir,;t t
10009 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10010 s,@builddir@,$ac_builddir,;t t
10011 s,@abs_builddir@,$ac_abs_builddir,;t t
10012 s,@top_builddir@,$ac_top_builddir,;t t
10013 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10014 s,@INSTALL@,$ac_INSTALL,;t t
10015 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10017 if test x"$ac_file" != x-; then
10018 mv $tmp/out $ac_file
10026 cat >>$CONFIG_STATUS <<\_ACEOF
10029 # CONFIG_HEADER section.
10032 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10033 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10035 # ac_d sets the value in "#define NAME VALUE" lines.
10036 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10037 ac_dB='[ ].*$,\1#\2'
10040 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10041 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10042 ac_uB='$,\1#\2define\3'
10046 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10047 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10049 - | *:- | *:-:* ) # input from stdin
10051 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10052 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10053 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10054 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10055 * ) ac_file_in=$ac_file.in ;;
10058 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10059 echo "$as_me: creating $ac_file" >&6;}
10061 # First look for the input files in the build tree, otherwise in the
10063 ac_file_inputs=`IFS=:
10064 for f in $ac_file_in; do
10066 -) echo $tmp/stdin ;;
10068 # Absolute (can't be DOS-style, as IFS=:)
10069 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10070 echo "$as_me: error: cannot find input file: $f" >&2;}
10071 { (exit 1); exit 1; }; }
10072 # Do quote $f, to prevent DOS paths from being IFS'd.
10075 if test -f "$f"; then
10078 elif test -f "$srcdir/$f"; then
10083 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10084 echo "$as_me: error: cannot find input file: $f" >&2;}
10085 { (exit 1); exit 1; }; }
10088 done` || { (exit 1); exit 1; }
10089 # Remove the trailing spaces.
10090 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10094 # Transform confdefs.h into two sed scripts, `conftest.defines' and
10095 # `conftest.undefs', that substitutes the proper values into
10096 # config.h.in to produce config.h. The first handles `#define'
10097 # templates, and the second `#undef' templates.
10098 # And first: Protect against being on the right side of a sed subst in
10099 # config.status. Protect against being in an unquoted here document
10100 # in config.status.
10101 rm -f conftest.defines conftest.undefs
10102 # Using a here document instead of a string reduces the quoting nightmare.
10103 # Putting comments in sed scripts is not portable.
10105 # `end' is used to avoid that the second main sed command (meant for
10106 # 0-ary CPP macros) applies to n-ary macro definitions.
10107 # See the Autoconf documentation for `clear'.
10108 cat >confdef2sed.sed <<\_ACEOF
10113 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10115 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10118 # If some macros were called several times there might be several times
10119 # the same #defines, which is useless. Nevertheless, we may not want to
10120 # sort them, since we want the *last* AC-DEFINE to be honored.
10121 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10122 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10123 rm -f confdef2sed.sed
10125 # This sed command replaces #undef with comments. This is necessary, for
10126 # example, in the case of _POSIX_SOURCE, which is predefined and required
10127 # on some systems where configure will not decide to define it.
10128 cat >>conftest.undefs <<\_ACEOF
10129 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10132 # Break up conftest.defines because some shells have a limit on the size
10133 # of here documents, and old seds have small limits too (100 cmds).
10134 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10135 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10136 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10137 echo ' :' >>$CONFIG_STATUS
10138 rm -f conftest.tail
10139 while grep . conftest.defines >/dev/null
10141 # Write a limited-size here document to $tmp/defines.sed.
10142 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10143 # Speed up: don't consider the non `#define' lines.
10144 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10145 # Work around the forget-to-reset-the-flag bug.
10146 echo 't clr' >>$CONFIG_STATUS
10147 echo ': clr' >>$CONFIG_STATUS
10148 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10150 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10152 mv $tmp/out $tmp/in
10154 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10155 rm -f conftest.defines
10156 mv conftest.tail conftest.defines
10158 rm -f conftest.defines
10159 echo ' fi # grep' >>$CONFIG_STATUS
10160 echo >>$CONFIG_STATUS
10162 # Break up conftest.undefs because some shells have a limit on the size
10163 # of here documents, and old seds have small limits too (100 cmds).
10164 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10165 rm -f conftest.tail
10166 while grep . conftest.undefs >/dev/null
10168 # Write a limited-size here document to $tmp/undefs.sed.
10169 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10170 # Speed up: don't consider the non `#undef'
10171 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10172 # Work around the forget-to-reset-the-flag bug.
10173 echo 't clr' >>$CONFIG_STATUS
10174 echo ': clr' >>$CONFIG_STATUS
10175 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10177 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10179 mv $tmp/out $tmp/in
10181 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10182 rm -f conftest.undefs
10183 mv conftest.tail conftest.undefs
10185 rm -f conftest.undefs
10187 cat >>$CONFIG_STATUS <<\_ACEOF
10188 # Let's still pretend it is `configure' which instantiates (i.e., don't
10189 # use $as_me), people would be surprised to read:
10190 # /* config.h. Generated by config.status. */
10191 if test x"$ac_file" = x-; then
10192 echo "/* Generated by configure. */" >$tmp/config.h
10194 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10196 cat $tmp/in >>$tmp/config.h
10198 if test x"$ac_file" != x-; then
10199 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10200 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10201 echo "$as_me: $ac_file is unchanged" >&6;}
10203 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10204 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10205 X"$ac_file" : 'X\(//\)[^/]' \| \
10206 X"$ac_file" : 'X\(//\)$' \| \
10207 X"$ac_file" : 'X\(/\)' \| \
10208 . : '\(.\)' 2>/dev/null ||
10210 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10211 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10212 /^X\(\/\/\)$/{ s//\1/; q; }
10213 /^X\(\/\).*/{ s//\1/; q; }
10215 { if $as_mkdir_p; then
10220 while test ! -d "$as_dir"; do
10221 as_dirs="$as_dir $as_dirs"
10222 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10223 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10224 X"$as_dir" : 'X\(//\)[^/]' \| \
10225 X"$as_dir" : 'X\(//\)$' \| \
10226 X"$as_dir" : 'X\(/\)' \| \
10227 . : '\(.\)' 2>/dev/null ||
10229 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10230 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10231 /^X\(\/\/\)$/{ s//\1/; q; }
10232 /^X\(\/\).*/{ s//\1/; q; }
10235 test ! -n "$as_dirs" || mkdir $as_dirs
10236 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10237 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10238 { (exit 1); exit 1; }; }; }
10241 mv $tmp/config.h $ac_file
10245 rm -f $tmp/config.h
10249 cat >>$CONFIG_STATUS <<\_ACEOF
10252 # CONFIG_COMMANDS section.
10254 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10255 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10256 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10257 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10258 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10259 X"$ac_dest" : 'X\(//\)[^/]' \| \
10260 X"$ac_dest" : 'X\(//\)$' \| \
10261 X"$ac_dest" : 'X\(/\)' \| \
10262 . : '\(.\)' 2>/dev/null ||
10264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10265 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10266 /^X\(\/\/\)$/{ s//\1/; q; }
10267 /^X\(\/\).*/{ s//\1/; q; }
10269 { if $as_mkdir_p; then
10274 while test ! -d "$as_dir"; do
10275 as_dirs="$as_dir $as_dirs"
10276 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10277 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10278 X"$as_dir" : 'X\(//\)[^/]' \| \
10279 X"$as_dir" : 'X\(//\)$' \| \
10280 X"$as_dir" : 'X\(/\)' \| \
10281 . : '\(.\)' 2>/dev/null ||
10283 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10284 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10285 /^X\(\/\/\)$/{ s//\1/; q; }
10286 /^X\(\/\).*/{ s//\1/; q; }
10289 test ! -n "$as_dirs" || mkdir $as_dirs
10290 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10291 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10292 { (exit 1); exit 1; }; }; }
10296 if test "$ac_dir" != .; then
10297 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10298 # A "../" for each directory in $ac_dir_suffix.
10299 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10301 ac_dir_suffix= ac_top_builddir=
10305 .) # No --srcdir option. We are building in place.
10307 if test -z "$ac_top_builddir"; then
10310 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10312 [\\/]* | ?:[\\/]* ) # Absolute path.
10313 ac_srcdir=$srcdir$ac_dir_suffix;
10314 ac_top_srcdir=$srcdir ;;
10315 *) # Relative path.
10316 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10317 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10320 # Do not use `cd foo && pwd` to compute absolute paths, because
10321 # the directories may not exist.
10323 .) ac_abs_builddir="$ac_dir";;
10326 .) ac_abs_builddir=`pwd`;;
10327 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10328 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10331 case $ac_abs_builddir in
10332 .) ac_abs_top_builddir=${ac_top_builddir}.;;
10334 case ${ac_top_builddir}. in
10335 .) ac_abs_top_builddir=$ac_abs_builddir;;
10336 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10337 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10340 case $ac_abs_builddir in
10341 .) ac_abs_srcdir=$ac_srcdir;;
10344 .) ac_abs_srcdir=$ac_abs_builddir;;
10345 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10346 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10349 case $ac_abs_builddir in
10350 .) ac_abs_top_srcdir=$ac_top_srcdir;;
10352 case $ac_top_srcdir in
10353 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10354 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10355 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10360 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10361 echo "$as_me: executing $ac_dest commands" >&6;}
10363 default ) echo timestamp > stamp-h ;;
10368 cat >>$CONFIG_STATUS <<\_ACEOF
10370 { (exit 0); exit 0; }
10372 chmod +x $CONFIG_STATUS
10373 ac_clean_files=$ac_clean_files_save
10376 # configure is writing to config.log, and then calls config.status.
10377 # config.status does its own redirection, appending to config.log.
10378 # Unfortunately, on DOS this fails, as config.log is still kept open
10379 # by configure, so config.status won't be able to write to it; its
10380 # output is simply discarded. So we exec the FD to /dev/null,
10381 # effectively closing config.log, so it can be properly (re)opened and
10382 # appended to by config.status. When coming back to configure, we
10383 # need to make the FD available again.
10384 if test "$no_create" != yes; then
10386 ac_config_status_args=
10387 test "$silent" = yes &&
10388 ac_config_status_args="$ac_config_status_args --quiet"
10390 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10392 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10393 # would make configure fail if this is the last instruction.
10394 $ac_cs_success || { (exit 1); exit 1; }
10398 ac_config_commands="$ac_config_commands default-1"