2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for charybdis 2.2.0.
5 # $Id: configure 3165 2007-01-26 16:52:29Z jilles $
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
24 DUALCASE
=1; export DUALCASE
# for MKS sh
26 # Support unset when possible.
27 if ( (MAIL
=60; unset MAIL
) || exit) >/dev
/null
2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C
; export $as_var
53 # Required to use basename.
54 if expr a
: '\(a\)' >/dev
/null
2>&1; then
60 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me
=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits
='0123456789'
86 as_cr_alnum
=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
104 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself
=$0 ;;
111 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir
=.
116 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x
; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
133 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir
=.
137 for as_base
in sh bash ksh sh5
; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
146 $as_unset BASH_ENV
|| test "${BASH_ENV+set}" != set || { BASH_ENV
=; export BASH_ENV
; }
147 $as_unset ENV
|| test "${ENV+set}" != set || { ENV
=; export ENV
; }
148 CONFIG_SHELL
=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x
$as_me.lineno
||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c
*,-n*) ECHO_N
= ECHO_C
='
192 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
193 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
196 if expr a
: '\(a\)' >/dev
/null
2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.
file
204 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe
; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.
file conf$$
2>/dev
/null
; then
218 rm -f conf$$ conf$$.exe conf$$.
file
220 if mkdir -p .
2>/dev
/null
; then
223 test -d .
/-p && rmdir .
/-p
227 as_executable_p
="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # We need space, tab and new line, in precisely that order.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
256 ac_default_prefix
=/usr
/local
257 ac_config_libobj_dir
=.
262 SHELL
=${CONFIG_SHELL-/bin/sh}
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
269 # Identity of this package.
270 PACKAGE_NAME
='charybdis'
271 PACKAGE_TARNAME
='charybdis'
272 PACKAGE_VERSION
='2.2.0'
273 PACKAGE_STRING
='charybdis 2.2.0'
276 ac_default_prefix
=$HOME/ircd
277 # Factoring default headers for most tests.
278 ac_includes_default
="\
281 # include <sys/types.h>
284 # include <sys/stat.h>
295 # if !STDC_HEADERS && HAVE_MEMORY_H
301 # include <strings.h>
304 # include <inttypes.h>
314 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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MKDEP MAKEDEPEND STDOUT CPP EGREP SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RM CP MV LN SED AR LD RANLIB TOUCH YACC LEX LEXLIB LEX_OUTPUT_ROOT CRYPT_LIB VICONF ALLOCA ENCSPEED ZLIB_LD ETC_DIR confdir LOG_DIR logdir HELP_DIR helpdir MODULE_DIR moduledir SELECT_TYPE FNVHASH_S MODULES_LIBS MOD_TARGET SSL_SRCS_ENABLE SSL_INCLUDES SSL_LIBS PICFLAGS IRC_CFLAGS SEDOBJ LIBOBJS LTLIBOBJS'
317 # Initialize some variables set by options.
319 ac_init_version
=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
329 program_transform_name
=s
,x
,x
,
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir
='${exec_prefix}/bin'
343 sbindir
='${exec_prefix}/sbin'
344 libexecdir
='${exec_prefix}/libexec'
345 datadir
='${prefix}/share'
346 sysconfdir
='${prefix}/etc'
347 sharedstatedir
='${prefix}/com'
348 localstatedir
='${prefix}/var'
349 libdir
='${exec_prefix}/lib'
350 includedir
='${prefix}/include'
351 oldincludedir
='/usr/include'
352 infodir
='${prefix}/info'
353 mandir
='${prefix}/man'
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
365 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 -build | --build | --buil | --bui | --bu)
377 ac_prev
=build_alias
;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build_alias
=$ac_optarg ;;
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev
=cache_file
;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386 cache_file
=$ac_optarg ;;
389 cache_file
=config.cache
;;
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 datadir
=$ac_optarg ;;
397 -disable-* | --disable-*)
398 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
406 -enable-* | --enable-*)
407 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
414 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 eval "enable_$ac_feature='$ac_optarg'" ;;
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev
=exec_prefix
;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
426 exec_prefix
=$ac_optarg ;;
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
432 -help | --help | --hel | --he | -h)
434 -help=r
* | --help=r
* | --hel=r
* | --he=r
* | -hr*)
435 ac_init_help
=recursive
;;
436 -help=s
* | --help=s
* | --hel=s
* | --he=s
* | -hs*)
437 ac_init_help
=short
;;
439 -host | --host | --hos | --ho)
440 ac_prev
=host_alias
;;
441 -host=* | --host=* | --hos=* | --ho=*)
442 host_alias
=$ac_optarg ;;
444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev
=includedir
;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
449 includedir
=$ac_optarg ;;
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir
=$ac_optarg ;;
456 -libdir | --libdir | --libdi | --libd)
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev
=libexecdir
;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
466 libexecdir
=$ac_optarg ;;
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev
=localstatedir
;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475 localstatedir
=$ac_optarg ;;
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
483 # Obsolete; use --without-fp.
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev
=oldincludedir
;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501 oldincludedir
=$ac_optarg ;;
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev
=program_prefix
;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513 program_prefix
=$ac_optarg ;;
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev
=program_suffix
;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520 program_suffix
=$ac_optarg ;;
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev
=program_transform_name
;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
537 program_transform_name
=$ac_optarg ;;
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 sbindir
=$ac_optarg ;;
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
553 ac_prev
=sharedstatedir
;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 sharedstatedir
=$ac_optarg ;;
560 -site | --site | --sit)
562 -site=* | --site=* | --sit=*)
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev
=sysconfdir
;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575 sysconfdir
=$ac_optarg ;;
577 -target | --target | --targe | --targ | --tar | --ta | --t)
578 ac_prev
=target_alias
;;
579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580 target_alias
=$ac_optarg ;;
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 -version | --version | --versio | --versi | --vers | -V)
589 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package
=`echo $ac_package| sed 's/-/_/g'`
596 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 eval "with_$ac_package='$ac_optarg'" ;;
601 -without-* | --without-*)
602 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package
=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
611 # Obsolete; use --with-x.
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev
=x_includes
;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619 x_includes
=$ac_optarg ;;
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev
=x_libraries
;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626 x_libraries
=$ac_optarg ;;
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
634 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
654 if test -n "$ac_prev"; then
655 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
660 # Be sure to have absolute paths.
661 for ac_var
in exec_prefix prefix
663 eval ac_val
=$
`echo $ac_var`
665 [\\/$
]* | ?
:[\\/]* | NONE
| '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
671 # Be sure to have absolute paths.
672 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
675 eval ac_val
=$
`echo $ac_var`
677 [\\/$
]* | ?
:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x
; then
692 if test "x$build_alias" = x
; then
693 cross_compiling
=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
702 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
704 test "$silent" = yes && exec 6>/dev
/null
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709 ac_srcdir_defaulted
=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir
=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
724 if test ! -r $srcdir/$ac_unique_file; then
728 ac_srcdir_defaulted
=no
730 if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
739 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null
||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set
=${build_alias+set}
744 ac_env_build_alias_value
=$build_alias
745 ac_cv_env_build_alias_set
=${build_alias+set}
746 ac_cv_env_build_alias_value
=$build_alias
747 ac_env_host_alias_set
=${host_alias+set}
748 ac_env_host_alias_value
=$host_alias
749 ac_cv_env_host_alias_set
=${host_alias+set}
750 ac_cv_env_host_alias_value
=$host_alias
751 ac_env_target_alias_set
=${target_alias+set}
752 ac_env_target_alias_value
=$target_alias
753 ac_cv_env_target_alias_set
=${target_alias+set}
754 ac_cv_env_target_alias_value
=$target_alias
755 ac_env_CC_set
=${CC+set}
757 ac_cv_env_CC_set
=${CC+set}
758 ac_cv_env_CC_value
=$CC
759 ac_env_CFLAGS_set
=${CFLAGS+set}
760 ac_env_CFLAGS_value
=$CFLAGS
761 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value
=$CFLAGS
763 ac_env_LDFLAGS_set
=${LDFLAGS+set}
764 ac_env_LDFLAGS_value
=$LDFLAGS
765 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value
=$LDFLAGS
767 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value
=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
771 ac_env_CPP_set
=${CPP+set}
772 ac_env_CPP_value
=$CPP
773 ac_cv_env_CPP_set
=${CPP+set}
774 ac_cv_env_CPP_value
=$CPP
777 # Report the --help message.
779 if test "$ac_init_help" = "long"; then
780 # Omit some internal or obsolete options to make the list less imposing.
781 # This message is too long to be a string in the A/UX 3.1 sh.
783 \`configure' configures charybdis 2.2.0 to adapt to many kinds of systems.
785 Usage: $0 [OPTION]... [VAR=VALUE]...
787 To assign environment variables (e.g., CC, CFLAGS...), specify them as
788 VAR=VALUE. See below for descriptions of some of the useful variables.
790 Defaults for the options are specified in brackets.
793 -h, --help display this help and exit
794 --help=short display options specific to this package
795 --help=recursive display the short help of all the included packages
796 -V, --version display version information and exit
797 -q, --quiet, --silent do not print \`checking...' messages
798 --cache-file=FILE cache test results in FILE [disabled]
799 -C, --config-cache alias for \`--cache-file=config.cache'
800 -n, --no-create do not create output files
801 --srcdir=DIR find the sources in DIR [configure dir or \`..']
806 Installation directories:
807 --prefix=PREFIX install architecture-independent files in PREFIX
809 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
812 By default, \`make install' will install all the files in
813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815 for instance \`--prefix=\$HOME'.
817 For better control, use the options below.
819 Fine tuning of the installation directories:
820 --bindir=DIR user executables [EPREFIX/bin]
821 --sbindir=DIR system admin executables [EPREFIX/sbin]
822 --libexecdir=DIR program executables [EPREFIX/libexec]
823 --datadir=DIR read-only architecture-independent data [PREFIX/share]
824 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
825 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
826 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
827 --libdir=DIR object code libraries [EPREFIX/lib]
828 --includedir=DIR C header files [PREFIX/include]
829 --oldincludedir=DIR C header files for non-gcc [/usr/include]
830 --infodir=DIR info documentation [PREFIX/info]
831 --mandir=DIR man documentation [PREFIX/man]
838 if test -n "$ac_init_help"; then
839 case $ac_init_help in
840 short
| recursive
) echo "Configuration of charybdis 2.2.0:";;
845 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
846 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
847 --enable-ipv6 Enable IPv6 support
848 --enable-openssl=DIR Enable OpenSSL support
(DIR optional
).
849 --disable-openssl Disable OpenSSL support.
850 --disable-zlib Disable ziplinks support
851 --enable-poll Force poll
() usage.
852 --enable-select Force
select() usage.
853 --enable-kqueue Force kqueue
() usage.
854 --enable-devpoll Force usage of
/dev
/poll.
855 --enable-epoll Force sys_epoll usage
(Linux only
).
856 --enable-assert Enable assert
(). Choose between soft
(warnings
) and
857 hard
(aborts the daemon
)
858 --enable-iodebug Enable IO Debugging hooks
859 --enable-profile Enable profiling
860 --disable-balloc Disable the block allocator.
861 --enable-ricer-hashing Enable assembly
-based hashing routines.
862 --enable-small-net Enable small network support.
863 --disable-shared-modules
864 Disable shared modules.
865 --enable-warnings Enable all sorts of warnings
for debugging.
868 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
869 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
870 --with-zlib-path=DIR Path to libz.so
for ziplinks support.
871 --with-confdir=DIR Directory to
install config files.
872 --with-logdir=DIR Directory where to
write logfiles.
873 --with-helpdir=DIR Directory to
install help files.
874 --with-moduledir=DIR Directory to
install modules.
875 --with-nicklen=LENGTH Set the nick length to LENGTH
(default
15, max
50)
876 --with-topiclen=NUMBER Set the max topic length to NUMBER
(default
390, max
878 --with-maxclients=NUMBER
879 Maximum number of connections the ircd can handle
881 Some influential environment variables
:
882 CC C compiler
command
883 CFLAGS C compiler flags
884 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
885 nonstandard directory
<lib dir
>
886 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
887 headers
in a nonstandard directory
<include dir
>
890 Use these variables to override the choices made by
`configure' or to help
891 it to find libraries and programs with nonstandard names/locations.
896 if test "$ac_init_help" = "recursive"; then
897 # If there are subdirs, report their specific --help.
899 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
900 test -d $ac_dir || continue
903 if test "$ac_dir" != .; then
904 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
905 # A "../" for each directory in $ac_dir_suffix.
906 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
908 ac_dir_suffix= ac_top_builddir=
912 .) # No --srcdir option. We are building in place.
914 if test -z "$ac_top_builddir"; then
917 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
919 [\\/]* | ?:[\\/]* ) # Absolute path.
920 ac_srcdir=$srcdir$ac_dir_suffix;
921 ac_top_srcdir=$srcdir ;;
923 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
924 ac_top_srcdir=$ac_top_builddir$srcdir ;;
927 # Do not use `cd foo
&& pwd` to compute absolute paths, because
928 # the directories may not exist.
930 .) ac_abs_builddir="$ac_dir";;
933 .) ac_abs_builddir=`pwd`;;
934 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
935 *) ac_abs_builddir=`pwd`/"$ac_dir";;
938 case $ac_abs_builddir in
939 .) ac_abs_top_builddir=${ac_top_builddir}.;;
941 case ${ac_top_builddir}. in
942 .) ac_abs_top_builddir=$ac_abs_builddir;;
943 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
944 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
947 case $ac_abs_builddir in
948 .) ac_abs_srcdir=$ac_srcdir;;
951 .) ac_abs_srcdir=$ac_abs_builddir;;
952 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
953 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
956 case $ac_abs_builddir in
957 .) ac_abs_top_srcdir=$ac_top_srcdir;;
959 case $ac_top_srcdir in
960 .) ac_abs_top_srcdir=$ac_abs_builddir;;
961 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
962 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
967 # Check for guested configure; otherwise get Cygnus style configure.
968 if test -f $ac_srcdir/configure.gnu; then
970 $SHELL $ac_srcdir/configure.gnu --help=recursive
971 elif test -f $ac_srcdir/configure; then
973 $SHELL $ac_srcdir/configure --help=recursive
974 elif test -f $ac_srcdir/configure.ac ||
975 test -f $ac_srcdir/configure.in; then
979 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
985 test -n "$ac_init_help" && exit 0
986 if $ac_init_version; then
988 charybdis configure 2.2.0
989 generated by GNU Autoconf 2.59
991 Copyright (C) 2003 Free Software Foundation, Inc.
992 This configure script is free software; the Free Software Foundation
993 gives unlimited permission to copy, distribute and modify it.
995 $Id: configure 3165 2007-01-26 16:52:29Z jilles $
1001 This file contains any messages produced by compilers while
1002 running configure, to aid debugging if configure makes a mistake.
1004 It was created by charybdis $as_me 2.2.0, which was
1005 generated by GNU Autoconf 2.59. Invocation command line was
1016 hostname = `(hostname
|| uname
-n) 2>/dev
/null
| sed 1q
`
1017 uname -m = `(uname
-m) 2>/dev
/null
|| echo unknown
`
1018 uname -r = `(uname
-r) 2>/dev
/null
|| echo unknown
`
1019 uname -s = `(uname
-s) 2>/dev
/null
|| echo unknown
`
1020 uname -v = `(uname
-v) 2>/dev
/null
|| echo unknown
`
1022 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null
|| echo unknown
`
1023 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null
|| echo unknown
`
1025 /bin/arch = `(/bin
/arch
) 2>/dev
/null
|| echo unknown
`
1026 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null
|| echo unknown
`
1027 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null
|| echo unknown
`
1028 hostinfo = `(hostinfo
) 2>/dev
/null
|| echo unknown
`
1029 /bin/machine = `(/bin
/machine
) 2>/dev
/null
|| echo unknown
`
1030 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null
|| echo unknown
`
1031 /bin/universe = `(/bin
/universe
) 2>/dev
/null
|| echo unknown
`
1035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1039 test -z "$as_dir" && as_dir=.
1040 echo "PATH: $as_dir"
1055 # Keep a trace of the command line.
1056 # Strip out --no-create and --no-recursion so they do not pile up.
1057 # Strip out --silent because we don't want to record it for future runs.
1058 # Also quote any args containing shell meta-characters.
1059 # Make two passes to allow for proper duplicate-argument suppression.
1064 ac_must_keep_next=false
1070 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1071 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072 | -silent | --silent | --silen | --sile | --sil)
1074 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1075 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1078 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1080 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1081 if test $ac_must_keep_next = true; then
1082 ac_must_keep_next=false # Got value, back to normal.
1085 *=* | --config-cache | -C | -disable-* | --disable-* \
1086 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1087 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1088 | -with-* | --with-* | -without-* | --without-* | --x)
1089 case "$ac_configure_args0 " in
1090 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1093 -* ) ac_must_keep_next=true ;;
1096 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1097 # Get rid of the leading space.
1103 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1104 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1106 # When interrupted or exit'd, cleanup temporary files, and complete
1107 # config.log. We remove comments because anyway the quotes in there
1108 # would cause problems or look ugly.
1109 # WARNING: Be sure not to use single quotes in there, as some shells,
1110 # such as our DU 5.0 friend, will then `close
' the trap.
1111 trap 'exit_status
=$?
1112 # Save into config.log some information that might help in debugging.
1117 ## ---------------- ##
1118 ## Cache variables. ##
1119 ## ---------------- ##
1122 # The following way of writing the cache mishandles newlines in values,
1125 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1128 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1129 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1133 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1140 ## ----------------- ##
1141 ## Output variables. ##
1142 ## ----------------- ##
1145 for ac_var
in $ac_subst_vars
1147 eval ac_val
=$
`echo $ac_var`
1148 echo "$ac_var='"'"'$ac_val'"'"'"
1152 if test -n "$ac_subst_files"; then
1159 for ac_var
in $ac_subst_files
1161 eval ac_val
=$
`echo $ac_var`
1162 echo "$ac_var='"'"'$ac_val'"'"'"
1167 if test -s confdefs.h
; then
1174 sed "/^$/d" confdefs.h
| sort
1177 test "$ac_signal" != 0 &&
1178 echo "$as_me: caught signal $ac_signal"
1179 echo "$as_me: exit $exit_status"
1181 rm -f core
*.core
&&
1182 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1185 for ac_signal in 1 2 13 15; do
1186 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1190 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1191 rm -rf conftest* confdefs.h
1192 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1195 # Predefined preprocessor variables.
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_NAME "$PACKAGE_NAME"
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1212 cat >>confdefs.h <<_ACEOF
1213 #define PACKAGE_STRING "$PACKAGE_STRING"
1217 cat >>confdefs.h <<_ACEOF
1218 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1222 # Let the site file select an alternate cache file if it wants to.
1223 # Prefer explicitly selected file to automatically selected ones.
1224 if test -z "$CONFIG_SITE"; then
1225 if test "x$prefix" != xNONE; then
1226 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1228 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1231 for ac_site_file in $CONFIG_SITE; do
1232 if test -r "$ac_site_file"; then
1233 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1234 echo "$as_me: loading site script $ac_site_file" >&6;}
1235 sed 's
/^
/| /' "$ac_site_file" >&5
1240 if test -r "$cache_file"; then
1241 # Some versions of bash will fail to source /dev/null (special
1242 # files actually), so we avoid doing that.
1243 if test -f "$cache_file"; then
1244 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1245 echo "$as_me: loading cache $cache_file" >&6;}
1247 [\\/]* | ?:[\\/]* ) . $cache_file;;
1248 *) . ./$cache_file;;
1252 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1253 echo "$as_me: creating cache $cache_file" >&6;}
1257 # Check that the precious variables saved in the cache have kept the same
1259 ac_cache_corrupted=false
1260 for ac_var in `(set) 2>&1 |
1261 sed -n 's
/^ac_env_\
([a
-zA-Z_0-9]*\
)_set
=.
*/\
1/p
'`; do
1262 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1263 eval ac_new_set=\$ac_env_${ac_var}_set
1264 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1265 eval ac_new_val="\$ac_env_${ac_var}_value"
1266 case $ac_old_set,$ac_new_set in
1268 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1269 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1270 ac_cache_corrupted=: ;;
1272 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1273 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1274 ac_cache_corrupted=: ;;
1277 if test "x$ac_old_val" != "x$ac_new_val"; then
1278 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1279 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1280 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1281 echo "$as_me: former value: $ac_old_val" >&2;}
1282 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1283 echo "$as_me: current value: $ac_new_val" >&2;}
1284 ac_cache_corrupted=:
1287 # Pass precious variables to config.status.
1288 if test "$ac_new_set" = set; then
1290 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1291 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1292 *) ac_arg=$ac_var=$ac_new_val ;;
1294 case " $ac_configure_args " in
1295 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1296 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1300 if $ac_cache_corrupted; then
1301 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1302 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1303 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1304 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1305 { (exit 1); exit 1; }; }
1309 ac_cpp='$CPP $CPPFLAGS'
1310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1311 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1341 ac_config_headers="$ac_config_headers include/setup.h"
1347 cat >>confdefs.h <<\_ACEOF
1348 #define _GNU_SOURCE 1
1353 OLD_CFLAGS="$CFLAGS"
1355 ac_cpp='$CPP $CPPFLAGS'
1356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1357 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1359 if test -n "$ac_tool_prefix"; then
1360 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1361 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1362 echo "$as_me:$LINENO: checking for $ac_word" >&5
1363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1364 if test "${ac_cv_prog_CC+set}" = set; then
1365 echo $ECHO_N "(cached) $ECHO_C" >&6
1367 if test -n "$CC"; then
1368 ac_cv_prog_CC="$CC" # Let the user override the test.
1370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1374 test -z "$as_dir" && as_dir=.
1375 for ac_exec_ext in '' $ac_executable_extensions; do
1376 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1377 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1387 if test -n "$CC"; then
1388 echo "$as_me:$LINENO: result: $CC" >&5
1389 echo "${ECHO_T}$CC" >&6
1391 echo "$as_me:$LINENO: result: no" >&5
1392 echo "${ECHO_T}no" >&6
1396 if test -z "$ac_cv_prog_CC"; then
1398 # Extract the first word of "gcc", so it can be a program name with args.
1399 set dummy gcc; ac_word=$2
1400 echo "$as_me:$LINENO: checking for $ac_word" >&5
1401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1402 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1403 echo $ECHO_N "(cached) $ECHO_C" >&6
1405 if test -n "$ac_ct_CC"; then
1406 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1412 test -z "$as_dir" && as_dir=.
1413 for ac_exec_ext in '' $ac_executable_extensions; do
1414 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1415 ac_cv_prog_ac_ct_CC="gcc"
1416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1424 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1425 if test -n "$ac_ct_CC"; then
1426 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1427 echo "${ECHO_T}$ac_ct_CC" >&6
1429 echo "$as_me:$LINENO: result: no" >&5
1430 echo "${ECHO_T}no" >&6
1438 if test -z "$CC"; then
1439 if test -n "$ac_tool_prefix"; then
1440 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1441 set dummy ${ac_tool_prefix}cc; ac_word=$2
1442 echo "$as_me:$LINENO: checking for $ac_word" >&5
1443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1444 if test "${ac_cv_prog_CC+set}" = set; then
1445 echo $ECHO_N "(cached) $ECHO_C" >&6
1447 if test -n "$CC"; then
1448 ac_cv_prog_CC="$CC" # Let the user override the test.
1450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1454 test -z "$as_dir" && as_dir=.
1455 for ac_exec_ext in '' $ac_executable_extensions; do
1456 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1457 ac_cv_prog_CC="${ac_tool_prefix}cc"
1458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1467 if test -n "$CC"; then
1468 echo "$as_me:$LINENO: result: $CC" >&5
1469 echo "${ECHO_T}$CC" >&6
1471 echo "$as_me:$LINENO: result: no" >&5
1472 echo "${ECHO_T}no" >&6
1476 if test -z "$ac_cv_prog_CC"; then
1478 # Extract the first word of "cc", so it can be a program name with args.
1479 set dummy cc; ac_word=$2
1480 echo "$as_me:$LINENO: checking for $ac_word" >&5
1481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1482 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1483 echo $ECHO_N "(cached) $ECHO_C" >&6
1485 if test -n "$ac_ct_CC"; then
1486 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1492 test -z "$as_dir" && as_dir=.
1493 for ac_exec_ext in '' $ac_executable_extensions; do
1494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1495 ac_cv_prog_ac_ct_CC="cc"
1496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1504 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1505 if test -n "$ac_ct_CC"; then
1506 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1507 echo "${ECHO_T}$ac_ct_CC" >&6
1509 echo "$as_me:$LINENO: result: no" >&5
1510 echo "${ECHO_T}no" >&6
1519 if test -z "$CC"; then
1520 # Extract the first word of "cc", so it can be a program name with args.
1521 set dummy cc; ac_word=$2
1522 echo "$as_me:$LINENO: checking for $ac_word" >&5
1523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1524 if test "${ac_cv_prog_CC+set}" = set; then
1525 echo $ECHO_N "(cached) $ECHO_C" >&6
1527 if test -n "$CC"; then
1528 ac_cv_prog_CC="$CC" # Let the user override the test.
1531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1535 test -z "$as_dir" && as_dir=.
1536 for ac_exec_ext in '' $ac_executable_extensions; do
1537 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1538 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1539 ac_prog_rejected=yes
1543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1549 if test $ac_prog_rejected = yes; then
1550 # We found a bogon in the path, so make sure we never use it.
1551 set dummy $ac_cv_prog_CC
1553 if test $# != 0; then
1554 # We chose a different compiler from the bogus one.
1555 # However, it has the same basename, so the bogon will be chosen
1556 # first if we set CC to just the basename; use the full file name.
1558 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1564 if test -n "$CC"; then
1565 echo "$as_me:$LINENO: result: $CC" >&5
1566 echo "${ECHO_T}$CC" >&6
1568 echo "$as_me:$LINENO: result: no" >&5
1569 echo "${ECHO_T}no" >&6
1573 if test -z "$CC"; then
1574 if test -n "$ac_tool_prefix"; then
1577 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1578 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1579 echo "$as_me:$LINENO: checking for $ac_word" >&5
1580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1581 if test "${ac_cv_prog_CC+set}" = set; then
1582 echo $ECHO_N "(cached) $ECHO_C" >&6
1584 if test -n "$CC"; then
1585 ac_cv_prog_CC="$CC" # Let the user override the test.
1587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1591 test -z "$as_dir" && as_dir=.
1592 for ac_exec_ext in '' $ac_executable_extensions; do
1593 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1594 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1604 if test -n "$CC"; then
1605 echo "$as_me:$LINENO: result: $CC" >&5
1606 echo "${ECHO_T}$CC" >&6
1608 echo "$as_me:$LINENO: result: no" >&5
1609 echo "${ECHO_T}no" >&6
1612 test -n "$CC" && break
1615 if test -z "$CC"; then
1619 # Extract the first word of "$ac_prog", so it can be a program name with args.
1620 set dummy $ac_prog; ac_word=$2
1621 echo "$as_me:$LINENO: checking for $ac_word" >&5
1622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1623 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1624 echo $ECHO_N "(cached) $ECHO_C" >&6
1626 if test -n "$ac_ct_CC"; then
1627 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1633 test -z "$as_dir" && as_dir=.
1634 for ac_exec_ext in '' $ac_executable_extensions; do
1635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1636 ac_cv_prog_ac_ct_CC="$ac_prog"
1637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1645 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1646 if test -n "$ac_ct_CC"; then
1647 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1648 echo "${ECHO_T}$ac_ct_CC" >&6
1650 echo "$as_me:$LINENO: result: no" >&5
1651 echo "${ECHO_T}no" >&6
1654 test -n "$ac_ct_CC" && break
1663 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1664 See \`config.log' for more details.
" >&5
1665 echo "$as_me: error
: no acceptable C compiler found
in \
$PATH
1666 See \
`config.log' for more details." >&2;}
1667 { (exit 1); exit 1; }; }
1669 # Provide some information about the compiler.
1670 echo "$as_me:$LINENO:" \
1671 "checking for C compiler version" >&5
1672 ac_compiler=`set X
$ac_compile; echo $2`
1673 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1674 (eval $ac_compiler --version </dev/null >&5) 2>&5
1676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1677 (exit $ac_status); }
1678 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1679 (eval $ac_compiler -v </dev/null >&5) 2>&5
1681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1682 (exit $ac_status); }
1683 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1684 (eval $ac_compiler -V </dev/null >&5) 2>&5
1686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1687 (exit $ac_status); }
1689 cat >conftest.$ac_ext <<_ACEOF
1692 cat confdefs.h >>conftest.$ac_ext
1693 cat >>conftest.$ac_ext <<_ACEOF
1694 /* end confdefs.h. */
1704 ac_clean_files_save=$ac_clean_files
1705 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1706 # Try to create an executable without -o first, disregard a.out.
1707 # It will help us diagnose broken compilers, and finding out an intuition
1709 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1710 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1711 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1712 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1713 (eval $ac_link_default) 2>&5
1715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1716 (exit $ac_status); }; then
1717 # Find the output, starting from the most likely. This scheme is
1718 # not robust to junk in `.
', hence go to wildcards (a.*) only as a last
1721 # Be careful to initialize this variable, since it used to be cached.
1722 # Otherwise an old cache value of `no' led to
`EXEEXT = no' in a Makefile.
1724 # b.out is created by i960 compilers.
1725 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1727 test -f "$ac_file" || continue
1729 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1732 # This is the source file.
1735 # We found the default executable, but exeext='' is most
1739 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1740 # FIXME: I believe we export ac_cv_exeext for Libtool,
1741 # but it would be cool to find out if it's true. Does anybody
1742 # maintain Libtool? --akim.
1750 echo "$as_me: failed program was:" >&5
1751 sed 's/^/| /' conftest.$ac_ext >&5
1753 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1754 See \`config.log
' for more details." >&5
1755 echo "$as_me: error: C compiler cannot create executables
1756 See \`config.log' for more details.
" >&2;}
1757 { (exit 77); exit 77; }; }
1760 ac_exeext=$ac_cv_exeext
1761 echo "$as_me:$LINENO: result
: $ac_file" >&5
1762 echo "${ECHO_T}$ac_file" >&6
1764 # Check the compiler produces executables we can run. If not, either
1765 # the compiler is broken, or we cross compile.
1766 echo "$as_me:$LINENO: checking whether the C compiler works
" >&5
1767 echo $ECHO_N "checking whether the C compiler works...
$ECHO_C" >&6
1768 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1769 # If not cross compiling, check that we can run a simple program.
1770 if test "$cross_compiling" != yes; then
1771 if { ac_try='./$ac_file'
1772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1775 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
1776 (exit $ac_status); }; }; then
1779 if test "$cross_compiling" = maybe; then
1782 { { echo "$as_me:$LINENO: error
: cannot run C compiled programs.
1783 If you meant to cross compile
, use \
`--host'.
1784 See \`config.log
' for more details." >&5
1785 echo "$as_me: error: cannot run C compiled programs.
1786 If you meant to cross compile, use \`--host'.
1787 See \
`config.log' for more details." >&2;}
1788 { (exit 1); exit 1; }; }
1792 echo "$as_me:$LINENO: result: yes" >&5
1793 echo "${ECHO_T}yes" >&6
1795 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1796 ac_clean_files=$ac_clean_files_save
1797 # Check the compiler produces executables we can run. If not, either
1798 # the compiler is broken, or we cross compile.
1799 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1800 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1801 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1802 echo "${ECHO_T}$cross_compiling" >&6
1804 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1805 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1807 (eval $ac_link) 2>&5
1809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1810 (exit $ac_status); }; then
1811 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
1812 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
1813 # work properly (i.e., refer to `conftest.exe'), while it won't with
1815 for ac_file
in conftest.exe conftest conftest.
*; do
1816 test -f "$ac_file" || continue
1818 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.o
| *.obj
) ;;
1819 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1826 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1827 See \`config.log' for more details." >&5
1828 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1829 See \`config.log' for more details." >&2;}
1830 { (exit 1); exit 1; }; }
1833 rm -f conftest
$ac_cv_exeext
1834 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1835 echo "${ECHO_T}$ac_cv_exeext" >&6
1837 rm -f conftest.
$ac_ext
1838 EXEEXT
=$ac_cv_exeext
1840 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1841 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1842 if test "${ac_cv_objext+set}" = set; then
1843 echo $ECHO_N "(cached) $ECHO_C" >&6
1845 cat >conftest.
$ac_ext <<_ACEOF
1848 cat confdefs.h
>>conftest.
$ac_ext
1849 cat >>conftest.
$ac_ext <<_ACEOF
1850 /* end confdefs.h. */
1860 rm -f conftest.o conftest.obj
1861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1862 (eval $ac_compile) 2>&5
1864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1865 (exit $ac_status); }; then
1866 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1868 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
) ;;
1869 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1874 echo "$as_me: failed program was:" >&5
1875 sed 's/^/| /' conftest.
$ac_ext >&5
1877 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1878 See \`config.log' for more details." >&5
1879 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1880 See \`config.log' for more details." >&2;}
1881 { (exit 1); exit 1; }; }
1884 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1886 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1887 echo "${ECHO_T}$ac_cv_objext" >&6
1888 OBJEXT
=$ac_cv_objext
1890 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1891 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1892 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1893 echo $ECHO_N "(cached) $ECHO_C" >&6
1895 cat >conftest.
$ac_ext <<_ACEOF
1898 cat confdefs.h
>>conftest.
$ac_ext
1899 cat >>conftest.
$ac_ext <<_ACEOF
1900 /* end confdefs.h. */
1913 rm -f conftest.
$ac_objext
1914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1915 (eval $ac_compile) 2>conftest.er1
1917 grep -v '^ *+' conftest.er1
>conftest.err
1919 cat conftest.err
>&5
1920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1921 (exit $ac_status); } &&
1922 { ac_try
='test -z "$ac_c_werror_flag"
1923 || test ! -s conftest.err'
1924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1928 (exit $ac_status); }; } &&
1929 { ac_try
='test -s conftest.$ac_objext'
1930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1934 (exit $ac_status); }; }; then
1937 echo "$as_me: failed program was:" >&5
1938 sed 's/^/| /' conftest.
$ac_ext >&5
1942 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
1943 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
1946 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1947 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1948 GCC
=`test $ac_compiler_gnu = yes && echo yes`
1949 ac_test_CFLAGS
=${CFLAGS+set}
1950 ac_save_CFLAGS
=$CFLAGS
1952 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1953 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1954 if test "${ac_cv_prog_cc_g+set}" = set; then
1955 echo $ECHO_N "(cached) $ECHO_C" >&6
1957 cat >conftest.
$ac_ext <<_ACEOF
1960 cat confdefs.h
>>conftest.
$ac_ext
1961 cat >>conftest.
$ac_ext <<_ACEOF
1962 /* end confdefs.h. */
1972 rm -f conftest.
$ac_objext
1973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1974 (eval $ac_compile) 2>conftest.er1
1976 grep -v '^ *+' conftest.er1
>conftest.err
1978 cat conftest.err
>&5
1979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1980 (exit $ac_status); } &&
1981 { ac_try
='test -z "$ac_c_werror_flag"
1982 || test ! -s conftest.err'
1983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1987 (exit $ac_status); }; } &&
1988 { ac_try
='test -s conftest.$ac_objext'
1989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1993 (exit $ac_status); }; }; then
1996 echo "$as_me: failed program was:" >&5
1997 sed 's/^/| /' conftest.
$ac_ext >&5
2001 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2003 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2004 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2005 if test "$ac_test_CFLAGS" = set; then
2006 CFLAGS
=$ac_save_CFLAGS
2007 elif test $ac_cv_prog_cc_g = yes; then
2008 if test "$GCC" = yes; then
2014 if test "$GCC" = yes; then
2020 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2021 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2022 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2023 echo $ECHO_N "(cached) $ECHO_C" >&6
2025 ac_cv_prog_cc_stdc
=no
2027 cat >conftest.
$ac_ext <<_ACEOF
2030 cat confdefs.h
>>conftest.
$ac_ext
2031 cat >>conftest.
$ac_ext <<_ACEOF
2032 /* end confdefs.h. */
2035 #include <sys/types.h>
2036 #include <sys/stat.h>
2037 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2038 struct buf { int x; };
2039 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2040 static char *e (p, i)
2046 static char *f (char * (*g) (char **, int), char **p, ...)
2051 s = g (p, va_arg (v,int));
2056 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2057 function prototypes and stuff, but not '\xHH' hex character constants.
2058 These don't provoke an error unfortunately, instead are silently treated
2059 as 'x'. The following induces an error, until -std1 is added to get
2060 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2061 array size at least. It's necessary to write '\x00'==0 to get something
2062 that's true only with -std1. */
2063 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2065 int test (int i, double x);
2066 struct s1 {int (*f) (int a);};
2067 struct s2 {int (*f) (double a);};
2068 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2074 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2079 # Don't try gcc -ansi; that turns off useful extensions and
2080 # breaks some systems' header files.
2081 # AIX -qlanglvl=ansi
2082 # Ultrix and OSF/1 -std1
2083 # HP-UX 10.20 and later -Ae
2084 # HP-UX older versions -Aa -D_HPUX_SOURCE
2085 # SVR4 -Xc -D__EXTENSIONS__
2086 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2088 CC
="$ac_save_CC $ac_arg"
2089 rm -f conftest.
$ac_objext
2090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2091 (eval $ac_compile) 2>conftest.er1
2093 grep -v '^ *+' conftest.er1
>conftest.err
2095 cat conftest.err
>&5
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); } &&
2098 { ac_try
='test -z "$ac_c_werror_flag"
2099 || test ! -s conftest.err'
2100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); }; } &&
2105 { ac_try
='test -s conftest.$ac_objext'
2106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110 (exit $ac_status); }; }; then
2111 ac_cv_prog_cc_stdc
=$ac_arg
2114 echo "$as_me: failed program was:" >&5
2115 sed 's/^/| /' conftest.
$ac_ext >&5
2118 rm -f conftest.err conftest.
$ac_objext
2120 rm -f conftest.
$ac_ext conftest.
$ac_objext
2125 case "x$ac_cv_prog_cc_stdc" in
2127 echo "$as_me:$LINENO: result: none needed" >&5
2128 echo "${ECHO_T}none needed" >&6 ;;
2130 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2131 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2132 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2135 # Some people use a C++ compiler to compile C. Since we use `exit',
2136 # in C++ we need to declare it. In case someone uses the same compiler
2137 # for both compiling C and C++ we need to have the C++ compiler decide
2138 # the declaration of exit, since it's the most demanding environment.
2139 cat >conftest.
$ac_ext <<_ACEOF
2144 rm -f conftest.
$ac_objext
2145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2146 (eval $ac_compile) 2>conftest.er1
2148 grep -v '^ *+' conftest.er1
>conftest.err
2150 cat conftest.err
>&5
2151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152 (exit $ac_status); } &&
2153 { ac_try
='test -z "$ac_c_werror_flag"
2154 || test ! -s conftest.err'
2155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159 (exit $ac_status); }; } &&
2160 { ac_try
='test -s conftest.$ac_objext'
2161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165 (exit $ac_status); }; }; then
2166 for ac_declaration
in \
2168 'extern "C" void std::exit (int) throw (); using std::exit;' \
2169 'extern "C" void std::exit (int); using std::exit;' \
2170 'extern "C" void exit (int) throw ();' \
2171 'extern "C" void exit (int);' \
2174 cat >conftest.
$ac_ext <<_ACEOF
2177 cat confdefs.h
>>conftest.
$ac_ext
2178 cat >>conftest.
$ac_ext <<_ACEOF
2179 /* end confdefs.h. */
2190 rm -f conftest.
$ac_objext
2191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2192 (eval $ac_compile) 2>conftest.er1
2194 grep -v '^ *+' conftest.er1
>conftest.err
2196 cat conftest.err
>&5
2197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198 (exit $ac_status); } &&
2199 { ac_try
='test -z "$ac_c_werror_flag"
2200 || test ! -s conftest.err'
2201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205 (exit $ac_status); }; } &&
2206 { ac_try
='test -s conftest.$ac_objext'
2207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211 (exit $ac_status); }; }; then
2214 echo "$as_me: failed program was:" >&5
2215 sed 's/^/| /' conftest.
$ac_ext >&5
2219 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2220 cat >conftest.
$ac_ext <<_ACEOF
2223 cat confdefs.h
>>conftest.
$ac_ext
2224 cat >>conftest.
$ac_ext <<_ACEOF
2225 /* end confdefs.h. */
2235 rm -f conftest.
$ac_objext
2236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2237 (eval $ac_compile) 2>conftest.er1
2239 grep -v '^ *+' conftest.er1
>conftest.err
2241 cat conftest.err
>&5
2242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243 (exit $ac_status); } &&
2244 { ac_try
='test -z "$ac_c_werror_flag"
2245 || test ! -s conftest.err'
2246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250 (exit $ac_status); }; } &&
2251 { ac_try
='test -s conftest.$ac_objext'
2252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256 (exit $ac_status); }; }; then
2259 echo "$as_me: failed program was:" >&5
2260 sed 's/^/| /' conftest.
$ac_ext >&5
2263 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2266 if test -n "$ac_declaration"; then
2267 echo '#ifdef __cplusplus' >>confdefs.h
2268 echo $ac_declaration >>confdefs.h
2269 echo '#endif' >>confdefs.h
2273 echo "$as_me: failed program was:" >&5
2274 sed 's/^/| /' conftest.
$ac_ext >&5
2277 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2279 ac_cpp
='$CPP $CPPFLAGS'
2280 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2281 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2282 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2285 ac_cpp
='$CPP $CPPFLAGS'
2286 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2287 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2288 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2291 CFLAGS
="$OLD_CFLAGS"
2294 if test "$ac_cv_c_compiler_gnu" != yes; then
2297 echo "$as_me:$LINENO: checking $CC -version for TenDRA or MIPSpro" >&5
2298 echo $ECHO_N "checking $CC -version for TenDRA or MIPSpro... $ECHO_C" >&6
2299 case `$CC -version 2>&1` in
2301 echo "$as_me:$LINENO: result: yes, TenDRA" >&5
2302 echo "${ECHO_T}yes, TenDRA" >&6
2304 CPPFLAGS
="$CPPFLAGS -Ylonglong -Yansi -I/usr/include"
2309 echo "$as_me:$LINENO: result: yes, MIPSpro" >&5
2310 echo "${ECHO_T}yes, MIPSpro" >&6
2315 echo "$as_me:$LINENO: result: no" >&5
2316 echo "${ECHO_T}no" >&6
2322 echo "$as_me:$LINENO: checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc" >&5
2323 echo $ECHO_N "checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc... $ECHO_C" >&6
2324 case `$CC -V 2>&1` in
2325 *Sun
*WorkShop
* | *Forte
*Developer
*)
2326 echo "$as_me:$LINENO: result: Sun Workshop/Forte" >&5
2327 echo "${ECHO_T}Sun Workshop/Forte" >&6
2328 IRC_CFLAGS
="-fast -xinline=dlinkAdd,dlinkAddBefore,dlinkAddTail,dlinkDelete,dlink_list_length,dlink_node,dlinkMoveList,_MyMalloc,_MyRealloc,_MyFree,_DupString"
2333 echo "$as_me:$LINENO: result: Tru64 cc" >&5
2334 echo "${ECHO_T}Tru64 cc" >&6
2336 CPPFLAGS
="-I/usr/local/include"
2340 echo "$as_me:$LINENO: result: HPUX cc" >&5
2341 echo "${ECHO_T}HPUX cc" >&6
2346 echo "$as_me:$LINENO: result: no" >&5
2347 echo "${ECHO_T}no" >&6
2353 echo "$as_me:$LINENO: checking uname -s for Cygwin, Solaris, AIX or HPUX" >&5
2354 echo $ECHO_N "checking uname -s for Cygwin, Solaris, AIX or HPUX... $ECHO_C" >&6
2359 if test "$HPUX" != yes -a "$ac_cv_c_compiler_gnu" = no
; then
2360 echo "$as_me:$LINENO: result: assuming old HPUX with its own cc" >&5
2361 echo "${ECHO_T}assuming old HPUX with its own cc" >&6
2362 IRC_CFLAGS
="$IRC_CFLAGS +e"
2365 echo "$as_me:$LINENO: result: already using newer HPUX" >&5
2366 echo "${ECHO_T}already using newer HPUX" >&6
2370 echo "$as_me:$LINENO: result: Cygwin" >&5
2371 echo "${ECHO_T}Cygwin" >&6
2375 echo "$as_me:$LINENO: result: SunOS or Solaris" >&5
2376 echo "${ECHO_T}SunOS or Solaris" >&6
2378 cat >>confdefs.h
<<\_ACEOF
2379 #define __EXTENSIONS__ 1
2385 echo "$as_me:$LINENO: result: AIX - Sorry you poor bastard..really we are" >&5
2386 echo "${ECHO_T}AIX - Sorry you poor bastard..really we are" >&6
2387 IRC_CFLAGS
="$IRC_CFLAGS -Wl,-brtl -Wl,-G"
2390 echo "$as_me:$LINENO: result: no" >&5
2391 echo "${ECHO_T}no" >&6
2395 if test "$ac_cv_c_compiler_gnu" = yes; then
2396 echo "$as_me:$LINENO: checking if $CC is Apple GCC" >&5
2397 echo $ECHO_N "checking if $CC is Apple GCC... $ECHO_C" >&6
2399 case `$CC -v 2>&1 | tail -n 1` in
2401 echo "$as_me:$LINENO: result: yes" >&5
2402 echo "${ECHO_T}yes" >&6
2406 echo "$as_me:$LINENO: result: no" >&5
2407 echo "${ECHO_T}no" >&6
2412 IRC_CFLAGS
="$IRC_CFLAGS -O0 -Wall"
2415 if test "$ac_cv_prog_cc_g" = yes; then
2416 if test "$Tru" = yes; then
2417 IRC_CFLAGS
="$IRC_CFLAGS -g3"
2419 IRC_CFLAGS
="$IRC_CFLAGS -g"
2423 echo "$as_me:$LINENO: checking if $CC supports the SVR4 SGS interfaces" >&5
2424 echo $ECHO_N "checking if $CC supports the SVR4 SGS interfaces... $ECHO_C" >&6
2425 if test "$SGS" = "yes"; then
2426 echo "$as_me:$LINENO: result: yes" >&5
2427 echo "${ECHO_T}yes" >&6
2429 echo "$as_me:$LINENO: result: no" >&5
2430 echo "${ECHO_T}no" >&6
2433 # Extract the first word of "mkdep", so it can be a program name with args.
2434 set dummy mkdep
; ac_word
=$2
2435 echo "$as_me:$LINENO: checking for $ac_word" >&5
2436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2437 if test "${ac_cv_path_MKDEP+set}" = set; then
2438 echo $ECHO_N "(cached) $ECHO_C" >&6
2442 ac_cv_path_MKDEP
="$MKDEP" # Let the user override the test with a path.
2445 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2449 test -z "$as_dir" && as_dir
=.
2450 for ac_exec_ext
in '' $ac_executable_extensions; do
2451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2452 ac_cv_path_MKDEP
="$as_dir/$ac_word$ac_exec_ext"
2453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2462 MKDEP
=$ac_cv_path_MKDEP
2464 if test -n "$MKDEP"; then
2465 echo "$as_me:$LINENO: result: $MKDEP" >&5
2466 echo "${ECHO_T}$MKDEP" >&6
2468 echo "$as_me:$LINENO: result: no" >&5
2469 echo "${ECHO_T}no" >&6
2472 # Extract the first word of "makedepend", so it can be a program name with args.
2473 set dummy makedepend
; ac_word
=$2
2474 echo "$as_me:$LINENO: checking for $ac_word" >&5
2475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2476 if test "${ac_cv_path_MAKEDEPEND+set}" = set; then
2477 echo $ECHO_N "(cached) $ECHO_C" >&6
2481 ac_cv_path_MAKEDEPEND
="$MAKEDEPEND" # Let the user override the test with a path.
2484 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2488 test -z "$as_dir" && as_dir
=.
2489 for ac_exec_ext
in '' $ac_executable_extensions; do
2490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2491 ac_cv_path_MAKEDEPEND
="$as_dir/$ac_word$ac_exec_ext"
2492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2501 MAKEDEPEND
=$ac_cv_path_MAKEDEPEND
2503 if test -n "$MAKEDEPEND"; then
2504 echo "$as_me:$LINENO: result: $MAKEDEPEND" >&5
2505 echo "${ECHO_T}$MAKEDEPEND" >&6
2507 echo "$as_me:$LINENO: result: no" >&5
2508 echo "${ECHO_T}no" >&6
2512 echo "$as_me:$LINENO: checking how to generate dependency info" >&5
2513 echo $ECHO_N "checking how to generate dependency info... $ECHO_C" >&6
2517 if test "$ac_cv_c_compiler_gnu" = yes; then
2518 echo "$as_me:$LINENO: result: gcc -MM" >&5
2519 echo "${ECHO_T}gcc -MM" >&6
2521 elif test ! -z "$MKDEP"; then
2522 echo "$as_me:$LINENO: result: mkdep" >&5
2523 echo "${ECHO_T}mkdep" >&6
2525 if test -z "$Tru"; then
2528 STDOUT
=" 2> /dev/null"
2530 elif test "$SunWorkShop" = yes; then
2531 echo "$as_me:$LINENO: result: $CC -xM" >&5
2532 echo "${ECHO_T}$CC -xM" >&6
2534 STDOUT
="> .depend 2> /dev/null"
2535 elif test ! -z "$MAKEDEPEND"; then
2536 echo "$as_me:$LINENO: result: makedepend" >&5
2537 echo "${ECHO_T}makedepend" >&6
2538 MKDEP
="$MAKEDEPEND -f-"
2540 echo "$as_me:$LINENO: result: nothing suitable.. forget it!" >&5
2541 echo "${ECHO_T}nothing suitable.. forget it!" >&6
2548 echo "$as_me:$LINENO: checking for /dev/null" >&5
2549 echo $ECHO_N "checking for /dev/null... $ECHO_C" >&6
2550 if test -c /dev
/null
; then
2552 cat >>confdefs.h
<<\_ACEOF
2553 #define PATH_DEVNULL "/dev/null"
2556 echo "$as_me:$LINENO: result: yes" >&5
2557 echo "${ECHO_T}yes" >&6
2560 cat >>confdefs.h
<<\_ACEOF
2561 #define PATH_DEVNULL "devnull.log"
2564 echo "$as_me:$LINENO: result: no - using devnull.log" >&5
2565 echo "${ECHO_T}no - using devnull.log" >&6
2568 if test ! -z "$CFLAGS"; then
2569 IRC_CFLAGS
="$IRC_CFLAGS $CFLAGS"
2573 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2574 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2575 if test "${ac_cv_search_strerror+set}" = set; then
2576 echo $ECHO_N "(cached) $ECHO_C" >&6
2578 ac_func_search_save_LIBS
=$LIBS
2579 ac_cv_search_strerror
=no
2580 cat >conftest.
$ac_ext <<_ACEOF
2583 cat confdefs.h
>>conftest.
$ac_ext
2584 cat >>conftest.
$ac_ext <<_ACEOF
2585 /* end confdefs.h. */
2587 /* Override any gcc2 internal prototype to avoid an error. */
2591 /* We use char because int might match the return type of a gcc2
2592 builtin and then its argument prototype would still apply. */
2602 rm -f conftest.
$ac_objext conftest
$ac_exeext
2603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2604 (eval $ac_link) 2>conftest.er1
2606 grep -v '^ *+' conftest.er1
>conftest.err
2608 cat conftest.err
>&5
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); } &&
2611 { ac_try
='test -z "$ac_c_werror_flag"
2612 || test ! -s conftest.err'
2613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); }; } &&
2618 { ac_try
='test -s conftest$ac_exeext'
2619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); }; }; then
2624 ac_cv_search_strerror
="none required"
2626 echo "$as_me: failed program was:" >&5
2627 sed 's/^/| /' conftest.
$ac_ext >&5
2630 rm -f conftest.err conftest.
$ac_objext \
2631 conftest
$ac_exeext conftest.
$ac_ext
2632 if test "$ac_cv_search_strerror" = no
; then
2633 for ac_lib
in cposix
; do
2634 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
2635 cat >conftest.
$ac_ext <<_ACEOF
2638 cat confdefs.h
>>conftest.
$ac_ext
2639 cat >>conftest.
$ac_ext <<_ACEOF
2640 /* end confdefs.h. */
2642 /* Override any gcc2 internal prototype to avoid an error. */
2646 /* We use char because int might match the return type of a gcc2
2647 builtin and then its argument prototype would still apply. */
2657 rm -f conftest.
$ac_objext conftest
$ac_exeext
2658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2659 (eval $ac_link) 2>conftest.er1
2661 grep -v '^ *+' conftest.er1
>conftest.err
2663 cat conftest.err
>&5
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); } &&
2666 { ac_try
='test -z "$ac_c_werror_flag"
2667 || test ! -s conftest.err'
2668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672 (exit $ac_status); }; } &&
2673 { ac_try
='test -s conftest$ac_exeext'
2674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); }; }; then
2679 ac_cv_search_strerror
="-l$ac_lib"
2682 echo "$as_me: failed program was:" >&5
2683 sed 's/^/| /' conftest.
$ac_ext >&5
2686 rm -f conftest.err conftest.
$ac_objext \
2687 conftest
$ac_exeext conftest.
$ac_ext
2690 LIBS
=$ac_func_search_save_LIBS
2692 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2693 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2694 if test "$ac_cv_search_strerror" != no
; then
2695 test "$ac_cv_search_strerror" = "none required" || LIBS
="$ac_cv_search_strerror $LIBS"
2699 echo "$as_me:$LINENO: checking for inline" >&5
2700 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2701 if test "${ac_cv_c_inline+set}" = set; then
2702 echo $ECHO_N "(cached) $ECHO_C" >&6
2705 for ac_kw
in inline __inline__ __inline
; do
2706 cat >conftest.
$ac_ext <<_ACEOF
2709 cat confdefs.h
>>conftest.
$ac_ext
2710 cat >>conftest.
$ac_ext <<_ACEOF
2711 /* end confdefs.h. */
2714 static $ac_kw foo_t static_foo () {return 0; }
2715 $ac_kw foo_t foo () {return 0; }
2719 rm -f conftest.
$ac_objext
2720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2721 (eval $ac_compile) 2>conftest.er1
2723 grep -v '^ *+' conftest.er1
>conftest.err
2725 cat conftest.err
>&5
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); } &&
2728 { ac_try
='test -z "$ac_c_werror_flag"
2729 || test ! -s conftest.err'
2730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734 (exit $ac_status); }; } &&
2735 { ac_try
='test -s conftest.$ac_objext'
2736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); }; }; then
2741 ac_cv_c_inline
=$ac_kw; break
2743 echo "$as_me: failed program was:" >&5
2744 sed 's/^/| /' conftest.
$ac_ext >&5
2747 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2751 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
2752 echo "${ECHO_T}$ac_cv_c_inline" >&6
2755 case $ac_cv_c_inline in
2758 case $ac_cv_c_inline in
2760 *) ac_val
=$ac_cv_c_inline;;
2762 cat >>confdefs.h
<<_ACEOF
2764 #define inline $ac_val
2771 ac_cpp
='$CPP $CPPFLAGS'
2772 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2773 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2774 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2775 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2776 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2777 # On Suns, sometimes $CPP names a directory.
2778 if test -n "$CPP" && test -d "$CPP"; then
2781 if test -z "$CPP"; then
2782 if test "${ac_cv_prog_CPP+set}" = set; then
2783 echo $ECHO_N "(cached) $ECHO_C" >&6
2785 # Double quotes because CPP needs to be expanded
2786 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2789 for ac_c_preproc_warn_flag
in '' yes
2791 # Use a header file that comes with gcc, so configuring glibc
2792 # with a fresh cross-compiler works.
2793 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2794 # <limits.h> exists even on freestanding compilers.
2795 # On the NeXT, cc -E runs the code through the compiler's parser,
2796 # not just through cpp. "Syntax error" is here to catch this case.
2797 cat >conftest.
$ac_ext <<_ACEOF
2800 cat confdefs.h
>>conftest.
$ac_ext
2801 cat >>conftest.
$ac_ext <<_ACEOF
2802 /* end confdefs.h. */
2804 # include <limits.h>
2806 # include <assert.h>
2810 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2811 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2813 grep -v '^ *+' conftest.er1
>conftest.err
2815 cat conftest.err
>&5
2816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817 (exit $ac_status); } >/dev
/null
; then
2818 if test -s conftest.err
; then
2819 ac_cpp_err
=$ac_c_preproc_warn_flag
2820 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2827 if test -z "$ac_cpp_err"; then
2830 echo "$as_me: failed program was:" >&5
2831 sed 's/^/| /' conftest.
$ac_ext >&5
2833 # Broken: fails on valid input.
2836 rm -f conftest.err conftest.
$ac_ext
2838 # OK, works on sane cases. Now check whether non-existent headers
2839 # can be detected and how.
2840 cat >conftest.
$ac_ext <<_ACEOF
2843 cat confdefs.h
>>conftest.
$ac_ext
2844 cat >>conftest.
$ac_ext <<_ACEOF
2845 /* end confdefs.h. */
2846 #include <ac_nonexistent.h>
2848 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2849 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2851 grep -v '^ *+' conftest.er1
>conftest.err
2853 cat conftest.err
>&5
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); } >/dev
/null
; then
2856 if test -s conftest.err
; then
2857 ac_cpp_err
=$ac_c_preproc_warn_flag
2858 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2865 if test -z "$ac_cpp_err"; then
2866 # Broken: success on invalid input.
2869 echo "$as_me: failed program was:" >&5
2870 sed 's/^/| /' conftest.
$ac_ext >&5
2872 # Passes both tests.
2876 rm -f conftest.err conftest.
$ac_ext
2879 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2880 rm -f conftest.err conftest.
$ac_ext
2881 if $ac_preproc_ok; then
2893 echo "$as_me:$LINENO: result: $CPP" >&5
2894 echo "${ECHO_T}$CPP" >&6
2896 for ac_c_preproc_warn_flag
in '' yes
2898 # Use a header file that comes with gcc, so configuring glibc
2899 # with a fresh cross-compiler works.
2900 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2901 # <limits.h> exists even on freestanding compilers.
2902 # On the NeXT, cc -E runs the code through the compiler's parser,
2903 # not just through cpp. "Syntax error" is here to catch this case.
2904 cat >conftest.
$ac_ext <<_ACEOF
2907 cat confdefs.h
>>conftest.
$ac_ext
2908 cat >>conftest.
$ac_ext <<_ACEOF
2909 /* end confdefs.h. */
2911 # include <limits.h>
2913 # include <assert.h>
2917 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2918 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2920 grep -v '^ *+' conftest.er1
>conftest.err
2922 cat conftest.err
>&5
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); } >/dev
/null
; then
2925 if test -s conftest.err
; then
2926 ac_cpp_err
=$ac_c_preproc_warn_flag
2927 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2934 if test -z "$ac_cpp_err"; then
2937 echo "$as_me: failed program was:" >&5
2938 sed 's/^/| /' conftest.
$ac_ext >&5
2940 # Broken: fails on valid input.
2943 rm -f conftest.err conftest.
$ac_ext
2945 # OK, works on sane cases. Now check whether non-existent headers
2946 # can be detected and how.
2947 cat >conftest.
$ac_ext <<_ACEOF
2950 cat confdefs.h
>>conftest.
$ac_ext
2951 cat >>conftest.
$ac_ext <<_ACEOF
2952 /* end confdefs.h. */
2953 #include <ac_nonexistent.h>
2955 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2956 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2958 grep -v '^ *+' conftest.er1
>conftest.err
2960 cat conftest.err
>&5
2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962 (exit $ac_status); } >/dev
/null
; then
2963 if test -s conftest.err
; then
2964 ac_cpp_err
=$ac_c_preproc_warn_flag
2965 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2972 if test -z "$ac_cpp_err"; then
2973 # Broken: success on invalid input.
2976 echo "$as_me: failed program was:" >&5
2977 sed 's/^/| /' conftest.
$ac_ext >&5
2979 # Passes both tests.
2983 rm -f conftest.err conftest.
$ac_ext
2986 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2987 rm -f conftest.err conftest.
$ac_ext
2988 if $ac_preproc_ok; then
2991 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2992 See \`config.log' for more details." >&5
2993 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2994 See \`config.log' for more details." >&2;}
2995 { (exit 1); exit 1; }; }
2999 ac_cpp
='$CPP $CPPFLAGS'
3000 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3001 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3002 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3005 echo "$as_me:$LINENO: checking for egrep" >&5
3006 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3007 if test "${ac_cv_prog_egrep+set}" = set; then
3008 echo $ECHO_N "(cached) $ECHO_C" >&6
3010 if echo a
| (grep -E '(a|b)') >/dev
/null
2>&1
3011 then ac_cv_prog_egrep
='grep -E'
3012 else ac_cv_prog_egrep
='egrep'
3015 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3016 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3017 EGREP
=$ac_cv_prog_egrep
3020 if test $ac_cv_c_compiler_gnu = yes; then
3021 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3022 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3023 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3024 echo $ECHO_N "(cached) $ECHO_C" >&6
3026 ac_pattern
="Autoconf.*'x'"
3027 cat >conftest.
$ac_ext <<_ACEOF
3030 cat confdefs.h
>>conftest.
$ac_ext
3031 cat >>conftest.
$ac_ext <<_ACEOF
3032 /* end confdefs.h. */
3036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3037 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
3038 ac_cv_prog_gcc_traditional
=yes
3040 ac_cv_prog_gcc_traditional
=no
3045 if test $ac_cv_prog_gcc_traditional = no
; then
3046 cat >conftest.
$ac_ext <<_ACEOF
3049 cat confdefs.h
>>conftest.
$ac_ext
3050 cat >>conftest.
$ac_ext <<_ACEOF
3051 /* end confdefs.h. */
3055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3056 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
3057 ac_cv_prog_gcc_traditional
=yes
3063 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3064 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3065 if test $ac_cv_prog_gcc_traditional = yes; then
3066 CC
="$CC -traditional"
3070 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3071 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3072 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
3073 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3074 echo $ECHO_N "(cached) $ECHO_C" >&6
3076 cat >conftest.
make <<\_ACEOF
3078 @
echo 'ac_maketemp="$(MAKE)"'
3080 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3081 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3082 if test -n "$ac_maketemp"; then
3083 eval ac_cv_prog_make_
${ac_make}_set
=yes
3085 eval ac_cv_prog_make_
${ac_make}_set
=no
3089 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3090 echo "$as_me:$LINENO: result: yes" >&5
3091 echo "${ECHO_T}yes" >&6
3094 echo "$as_me:$LINENO: result: no" >&5
3095 echo "${ECHO_T}no" >&6
3096 SET_MAKE
="MAKE=${MAKE-make}"
3100 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
3101 if test -f $ac_dir/install-sh; then
3103 ac_install_sh
="$ac_aux_dir/install-sh -c"
3105 elif test -f $ac_dir/install.sh
; then
3107 ac_install_sh
="$ac_aux_dir/install.sh -c"
3109 elif test -f $ac_dir/shtool
; then
3111 ac_install_sh
="$ac_aux_dir/shtool install -c"
3115 if test -z "$ac_aux_dir"; then
3116 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3117 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3118 { (exit 1); exit 1; }; }
3120 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
3121 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
3122 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3124 # Find a good install program. We prefer a C program (faster),
3125 # so one script is as good as another. But avoid the broken or
3126 # incompatible versions:
3127 # SysV /etc/install, /usr/sbin/install
3128 # SunOS /usr/etc/install
3129 # IRIX /sbin/install
3131 # AmigaOS /C/install, which installs bootblocks on floppy discs
3132 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3133 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3134 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3135 # OS/2's system install, which has a completely different semantic
3136 # ./install, which can be erroneously created by make from ./install.sh.
3137 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3138 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3139 if test -z "$INSTALL"; then
3140 if test "${ac_cv_path_install+set}" = set; then
3141 echo $ECHO_N "(cached) $ECHO_C" >&6
3143 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3147 test -z "$as_dir" && as_dir
=.
3148 # Account for people who put trailing slashes in PATH elements.
3150 .
/ | .
// | /cC
/* | \
3151 /etc
/* | /usr
/sbin
/* | /usr
/etc
/* | /sbin
/* | /usr
/afsws
/bin
/* | \
3152 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3155 # OSF1 and SCO ODT 3.0 have their own names for install.
3156 # Don't use installbsd from OSF since it installs stuff as root
3158 for ac_prog
in ginstall scoinst
install; do
3159 for ac_exec_ext
in '' $ac_executable_extensions; do
3160 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3161 if test $ac_prog = install &&
3162 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3163 # AIX install. It has an incompatible calling convention.
3165 elif test $ac_prog = install &&
3166 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3167 # program-specific install script used by HP pwplus--don't use.
3170 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3182 if test "${ac_cv_path_install+set}" = set; then
3183 INSTALL
=$ac_cv_path_install
3185 # As a last resort, use the slow shell script. We don't cache a
3186 # path for INSTALL within a source directory, because that will
3187 # break other packages using the cache if that directory is
3188 # removed, or if the path is relative.
3189 INSTALL
=$ac_install_sh
3192 echo "$as_me:$LINENO: result: $INSTALL" >&5
3193 echo "${ECHO_T}$INSTALL" >&6
3195 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3196 # It thinks the first close brace ends the variable substitution.
3197 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3199 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3201 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3203 # Extract the first word of "rm", so it can be a program name with args.
3204 set dummy
rm; ac_word
=$2
3205 echo "$as_me:$LINENO: checking for $ac_word" >&5
3206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3207 if test "${ac_cv_path_RM+set}" = set; then
3208 echo $ECHO_N "(cached) $ECHO_C" >&6
3212 ac_cv_path_RM
="$RM" # Let the user override the test with a path.
3215 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3219 test -z "$as_dir" && as_dir
=.
3220 for ac_exec_ext
in '' $ac_executable_extensions; do
3221 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3222 ac_cv_path_RM
="$as_dir/$ac_word$ac_exec_ext"
3223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3234 if test -n "$RM"; then
3235 echo "$as_me:$LINENO: result: $RM" >&5
3236 echo "${ECHO_T}$RM" >&6
3238 echo "$as_me:$LINENO: result: no" >&5
3239 echo "${ECHO_T}no" >&6
3242 # Extract the first word of "cp", so it can be a program name with args.
3243 set dummy
cp; ac_word
=$2
3244 echo "$as_me:$LINENO: checking for $ac_word" >&5
3245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3246 if test "${ac_cv_path_CP+set}" = set; then
3247 echo $ECHO_N "(cached) $ECHO_C" >&6
3251 ac_cv_path_CP
="$CP" # Let the user override the test with a path.
3254 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3258 test -z "$as_dir" && as_dir
=.
3259 for ac_exec_ext
in '' $ac_executable_extensions; do
3260 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3261 ac_cv_path_CP
="$as_dir/$ac_word$ac_exec_ext"
3262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3273 if test -n "$CP"; then
3274 echo "$as_me:$LINENO: result: $CP" >&5
3275 echo "${ECHO_T}$CP" >&6
3277 echo "$as_me:$LINENO: result: no" >&5
3278 echo "${ECHO_T}no" >&6
3281 # Extract the first word of "mv", so it can be a program name with args.
3282 set dummy
mv; ac_word
=$2
3283 echo "$as_me:$LINENO: checking for $ac_word" >&5
3284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3285 if test "${ac_cv_path_MV+set}" = set; then
3286 echo $ECHO_N "(cached) $ECHO_C" >&6
3290 ac_cv_path_MV
="$MV" # Let the user override the test with a path.
3293 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3297 test -z "$as_dir" && as_dir
=.
3298 for ac_exec_ext
in '' $ac_executable_extensions; do
3299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3300 ac_cv_path_MV
="$as_dir/$ac_word$ac_exec_ext"
3301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3312 if test -n "$MV"; then
3313 echo "$as_me:$LINENO: result: $MV" >&5
3314 echo "${ECHO_T}$MV" >&6
3316 echo "$as_me:$LINENO: result: no" >&5
3317 echo "${ECHO_T}no" >&6
3320 # Extract the first word of "ln", so it can be a program name with args.
3321 set dummy
ln; ac_word
=$2
3322 echo "$as_me:$LINENO: checking for $ac_word" >&5
3323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3324 if test "${ac_cv_path_LN+set}" = set; then
3325 echo $ECHO_N "(cached) $ECHO_C" >&6
3329 ac_cv_path_LN
="$LN" # Let the user override the test with a path.
3332 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3336 test -z "$as_dir" && as_dir
=.
3337 for ac_exec_ext
in '' $ac_executable_extensions; do
3338 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3339 ac_cv_path_LN
="$as_dir/$ac_word$ac_exec_ext"
3340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3351 if test -n "$LN"; then
3352 echo "$as_me:$LINENO: result: $LN" >&5
3353 echo "${ECHO_T}$LN" >&6
3355 echo "$as_me:$LINENO: result: no" >&5
3356 echo "${ECHO_T}no" >&6
3359 # Extract the first word of "sed", so it can be a program name with args.
3360 set dummy
sed; ac_word
=$2
3361 echo "$as_me:$LINENO: checking for $ac_word" >&5
3362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3363 if test "${ac_cv_path_SED+set}" = set; then
3364 echo $ECHO_N "(cached) $ECHO_C" >&6
3368 ac_cv_path_SED
="$SED" # Let the user override the test with a path.
3371 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3375 test -z "$as_dir" && as_dir
=.
3376 for ac_exec_ext
in '' $ac_executable_extensions; do
3377 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3378 ac_cv_path_SED
="$as_dir/$ac_word$ac_exec_ext"
3379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3390 if test -n "$SED"; then
3391 echo "$as_me:$LINENO: result: $SED" >&5
3392 echo "${ECHO_T}$SED" >&6
3394 echo "$as_me:$LINENO: result: no" >&5
3395 echo "${ECHO_T}no" >&6
3398 # Extract the first word of "ar", so it can be a program name with args.
3399 set dummy
ar; ac_word
=$2
3400 echo "$as_me:$LINENO: checking for $ac_word" >&5
3401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3402 if test "${ac_cv_path_AR+set}" = set; then
3403 echo $ECHO_N "(cached) $ECHO_C" >&6
3407 ac_cv_path_AR
="$AR" # Let the user override the test with a path.
3410 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3414 test -z "$as_dir" && as_dir
=.
3415 for ac_exec_ext
in '' $ac_executable_extensions; do
3416 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3417 ac_cv_path_AR
="$as_dir/$ac_word$ac_exec_ext"
3418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3429 if test -n "$AR"; then
3430 echo "$as_me:$LINENO: result: $AR" >&5
3431 echo "${ECHO_T}$AR" >&6
3433 echo "$as_me:$LINENO: result: no" >&5
3434 echo "${ECHO_T}no" >&6
3437 # Extract the first word of "ld", so it can be a program name with args.
3438 set dummy ld
; ac_word
=$2
3439 echo "$as_me:$LINENO: checking for $ac_word" >&5
3440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3441 if test "${ac_cv_path_LD+set}" = set; then
3442 echo $ECHO_N "(cached) $ECHO_C" >&6
3446 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
3449 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3453 test -z "$as_dir" && as_dir
=.
3454 for ac_exec_ext
in '' $ac_executable_extensions; do
3455 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3456 ac_cv_path_LD
="$as_dir/$ac_word$ac_exec_ext"
3457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3468 if test -n "$LD"; then
3469 echo "$as_me:$LINENO: result: $LD" >&5
3470 echo "${ECHO_T}$LD" >&6
3472 echo "$as_me:$LINENO: result: no" >&5
3473 echo "${ECHO_T}no" >&6
3476 # Extract the first word of "ranlib", so it can be a program name with args.
3477 set dummy ranlib
; ac_word
=$2
3478 echo "$as_me:$LINENO: checking for $ac_word" >&5
3479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3480 if test "${ac_cv_path_RANLIB+set}" = set; then
3481 echo $ECHO_N "(cached) $ECHO_C" >&6
3485 ac_cv_path_RANLIB
="$RANLIB" # Let the user override the test with a path.
3488 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3492 test -z "$as_dir" && as_dir
=.
3493 for ac_exec_ext
in '' $ac_executable_extensions; do
3494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3495 ac_cv_path_RANLIB
="$as_dir/$ac_word$ac_exec_ext"
3496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3505 RANLIB
=$ac_cv_path_RANLIB
3507 if test -n "$RANLIB"; then
3508 echo "$as_me:$LINENO: result: $RANLIB" >&5
3509 echo "${ECHO_T}$RANLIB" >&6
3511 echo "$as_me:$LINENO: result: no" >&5
3512 echo "${ECHO_T}no" >&6
3515 # Extract the first word of "touch", so it can be a program name with args.
3516 set dummy
touch; ac_word
=$2
3517 echo "$as_me:$LINENO: checking for $ac_word" >&5
3518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3519 if test "${ac_cv_path_TOUCH+set}" = set; then
3520 echo $ECHO_N "(cached) $ECHO_C" >&6
3524 ac_cv_path_TOUCH
="$TOUCH" # Let the user override the test with a path.
3527 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3531 test -z "$as_dir" && as_dir
=.
3532 for ac_exec_ext
in '' $ac_executable_extensions; do
3533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3534 ac_cv_path_TOUCH
="$as_dir/$ac_word$ac_exec_ext"
3535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3544 TOUCH
=$ac_cv_path_TOUCH
3546 if test -n "$TOUCH"; then
3547 echo "$as_me:$LINENO: result: $TOUCH" >&5
3548 echo "${ECHO_T}$TOUCH" >&6
3550 echo "$as_me:$LINENO: result: no" >&5
3551 echo "${ECHO_T}no" >&6
3555 for ac_prog
in 'bison -y' byacc
3557 # Extract the first word of "$ac_prog", so it can be a program name with args.
3558 set dummy
$ac_prog; ac_word
=$2
3559 echo "$as_me:$LINENO: checking for $ac_word" >&5
3560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3561 if test "${ac_cv_prog_YACC+set}" = set; then
3562 echo $ECHO_N "(cached) $ECHO_C" >&6
3564 if test -n "$YACC"; then
3565 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
3567 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3571 test -z "$as_dir" && as_dir
=.
3572 for ac_exec_ext
in '' $ac_executable_extensions; do
3573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3574 ac_cv_prog_YACC
="$ac_prog"
3575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3583 YACC
=$ac_cv_prog_YACC
3584 if test -n "$YACC"; then
3585 echo "$as_me:$LINENO: result: $YACC" >&5
3586 echo "${ECHO_T}$YACC" >&6
3588 echo "$as_me:$LINENO: result: no" >&5
3589 echo "${ECHO_T}no" >&6
3592 test -n "$YACC" && break
3594 test -n "$YACC" || YACC
="yacc"
3597 if test "$YACC" = "yacc" -a -z "`which $YACC 2>/dev/null`"; then
3598 { { echo "$as_me:$LINENO: error: could not locate a suitable parser generator; install bison, yacc, or byacc" >&5
3599 echo "$as_me: error: could not locate a suitable parser generator; install bison, yacc, or byacc" >&2;}
3600 { (exit 1); exit 1; }; }
3603 for ac_prog
in flex
lex
3605 # Extract the first word of "$ac_prog", so it can be a program name with args.
3606 set dummy
$ac_prog; ac_word
=$2
3607 echo "$as_me:$LINENO: checking for $ac_word" >&5
3608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3609 if test "${ac_cv_prog_LEX+set}" = set; then
3610 echo $ECHO_N "(cached) $ECHO_C" >&6
3612 if test -n "$LEX"; then
3613 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
3615 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3619 test -z "$as_dir" && as_dir
=.
3620 for ac_exec_ext
in '' $ac_executable_extensions; do
3621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3622 ac_cv_prog_LEX
="$ac_prog"
3623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3632 if test -n "$LEX"; then
3633 echo "$as_me:$LINENO: result: $LEX" >&5
3634 echo "${ECHO_T}$LEX" >&6
3636 echo "$as_me:$LINENO: result: no" >&5
3637 echo "${ECHO_T}no" >&6
3640 test -n "$LEX" && break
3642 test -n "$LEX" || LEX
=":"
3644 if test -z "$LEXLIB"
3646 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3647 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3648 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3649 echo $ECHO_N "(cached) $ECHO_C" >&6
3651 ac_check_lib_save_LIBS
=$LIBS
3653 cat >conftest.
$ac_ext <<_ACEOF
3656 cat confdefs.h
>>conftest.
$ac_ext
3657 cat >>conftest.
$ac_ext <<_ACEOF
3658 /* end confdefs.h. */
3660 /* Override any gcc2 internal prototype to avoid an error. */
3664 /* We use char because int might match the return type of a gcc2
3665 builtin and then its argument prototype would still apply. */
3675 rm -f conftest.
$ac_objext conftest
$ac_exeext
3676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3677 (eval $ac_link) 2>conftest.er1
3679 grep -v '^ *+' conftest.er1
>conftest.err
3681 cat conftest.err
>&5
3682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683 (exit $ac_status); } &&
3684 { ac_try
='test -z "$ac_c_werror_flag"
3685 || test ! -s conftest.err'
3686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690 (exit $ac_status); }; } &&
3691 { ac_try
='test -s conftest$ac_exeext'
3692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); }; }; then
3697 ac_cv_lib_fl_yywrap
=yes
3699 echo "$as_me: failed program was:" >&5
3700 sed 's/^/| /' conftest.
$ac_ext >&5
3702 ac_cv_lib_fl_yywrap
=no
3704 rm -f conftest.err conftest.
$ac_objext \
3705 conftest
$ac_exeext conftest.
$ac_ext
3706 LIBS
=$ac_check_lib_save_LIBS
3708 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3709 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3710 if test $ac_cv_lib_fl_yywrap = yes; then
3713 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3714 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3715 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3716 echo $ECHO_N "(cached) $ECHO_C" >&6
3718 ac_check_lib_save_LIBS
=$LIBS
3720 cat >conftest.
$ac_ext <<_ACEOF
3723 cat confdefs.h
>>conftest.
$ac_ext
3724 cat >>conftest.
$ac_ext <<_ACEOF
3725 /* end confdefs.h. */
3727 /* Override any gcc2 internal prototype to avoid an error. */
3731 /* We use char because int might match the return type of a gcc2
3732 builtin and then its argument prototype would still apply. */
3742 rm -f conftest.
$ac_objext conftest
$ac_exeext
3743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3744 (eval $ac_link) 2>conftest.er1
3746 grep -v '^ *+' conftest.er1
>conftest.err
3748 cat conftest.err
>&5
3749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750 (exit $ac_status); } &&
3751 { ac_try
='test -z "$ac_c_werror_flag"
3752 || test ! -s conftest.err'
3753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757 (exit $ac_status); }; } &&
3758 { ac_try
='test -s conftest$ac_exeext'
3759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763 (exit $ac_status); }; }; then
3764 ac_cv_lib_l_yywrap
=yes
3766 echo "$as_me: failed program was:" >&5
3767 sed 's/^/| /' conftest.
$ac_ext >&5
3769 ac_cv_lib_l_yywrap
=no
3771 rm -f conftest.err conftest.
$ac_objext \
3772 conftest
$ac_exeext conftest.
$ac_ext
3773 LIBS
=$ac_check_lib_save_LIBS
3775 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3776 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3777 if test $ac_cv_lib_l_yywrap = yes; then
3785 if test "x$LEX" != "x:"; then
3786 echo "$as_me:$LINENO: checking lex output file root" >&5
3787 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3788 if test "${ac_cv_prog_lex_root+set}" = set; then
3789 echo $ECHO_N "(cached) $ECHO_C" >&6
3791 # The minimal lex program is just a single line: %%. But some broken lexes
3792 # (Solaris, I think it was) want two %% lines, so accommodate them.
3793 cat >conftest.l
<<_ACEOF
3797 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3798 (eval $LEX conftest.l
) 2>&5
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); }
3802 if test -f lex.yy.c
; then
3803 ac_cv_prog_lex_root
=lex.yy
3804 elif test -f lexyy.c
; then
3805 ac_cv_prog_lex_root
=lexyy
3807 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3808 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3809 { (exit 1); exit 1; }; }
3812 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3813 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3815 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
3817 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3818 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3819 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3820 echo $ECHO_N "(cached) $ECHO_C" >&6
3822 # POSIX says lex can declare yytext either as a pointer or an array; the
3823 # default is implementation-dependent. Figure out which it is, since
3824 # not all implementations provide the %pointer and %array declarations.
3825 ac_cv_prog_lex_yytext_pointer
=no
3826 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3828 LIBS
="$LIBS $LEXLIB"
3829 cat >conftest.
$ac_ext <<_ACEOF
3830 `cat $LEX_OUTPUT_ROOT.c`
3832 rm -f conftest.
$ac_objext conftest
$ac_exeext
3833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3834 (eval $ac_link) 2>conftest.er1
3836 grep -v '^ *+' conftest.er1
>conftest.err
3838 cat conftest.err
>&5
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); } &&
3841 { ac_try
='test -z "$ac_c_werror_flag"
3842 || test ! -s conftest.err'
3843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847 (exit $ac_status); }; } &&
3848 { ac_try
='test -s conftest$ac_exeext'
3849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); }; }; then
3854 ac_cv_prog_lex_yytext_pointer
=yes
3856 echo "$as_me: failed program was:" >&5
3857 sed 's/^/| /' conftest.
$ac_ext >&5
3860 rm -f conftest.err conftest.
$ac_objext \
3861 conftest
$ac_exeext conftest.
$ac_ext
3863 rm -f "${LEX_OUTPUT_ROOT}.c"
3866 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3867 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3868 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3870 cat >>confdefs.h
<<\_ACEOF
3871 #define YYTEXT_POINTER 1
3878 if test "$LEX" = ":"; then
3879 { { echo "$as_me:$LINENO: error: could not locate a suitable lexical generator, install flex or lex." >&5
3880 echo "$as_me: error: could not locate a suitable lexical generator, install flex or lex." >&2;}
3881 { (exit 1); exit 1; }; }
3884 if test "$libexecdir" = '${exec_prefix}/libexec' &&
3885 test "$localstatedir" = '${prefix}/var'; then
3886 libexecdir
='${bindir}'
3887 localstatedir
='${prefix}'
3890 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3891 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3892 if test "${ac_cv_header_stdc+set}" = set; then
3893 echo $ECHO_N "(cached) $ECHO_C" >&6
3895 cat >conftest.
$ac_ext <<_ACEOF
3898 cat confdefs.h
>>conftest.
$ac_ext
3899 cat >>conftest.
$ac_ext <<_ACEOF
3900 /* end confdefs.h. */
3914 rm -f conftest.
$ac_objext
3915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3916 (eval $ac_compile) 2>conftest.er1
3918 grep -v '^ *+' conftest.er1
>conftest.err
3920 cat conftest.err
>&5
3921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922 (exit $ac_status); } &&
3923 { ac_try
='test -z "$ac_c_werror_flag"
3924 || test ! -s conftest.err'
3925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929 (exit $ac_status); }; } &&
3930 { ac_try
='test -s conftest.$ac_objext'
3931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); }; }; then
3936 ac_cv_header_stdc
=yes
3938 echo "$as_me: failed program was:" >&5
3939 sed 's/^/| /' conftest.
$ac_ext >&5
3941 ac_cv_header_stdc
=no
3943 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3945 if test $ac_cv_header_stdc = yes; then
3946 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3947 cat >conftest.
$ac_ext <<_ACEOF
3950 cat confdefs.h
>>conftest.
$ac_ext
3951 cat >>conftest.
$ac_ext <<_ACEOF
3952 /* end confdefs.h. */
3956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3957 $EGREP "memchr" >/dev
/null
2>&1; then
3960 ac_cv_header_stdc
=no
3966 if test $ac_cv_header_stdc = yes; then
3967 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3968 cat >conftest.
$ac_ext <<_ACEOF
3971 cat confdefs.h
>>conftest.
$ac_ext
3972 cat >>conftest.
$ac_ext <<_ACEOF
3973 /* end confdefs.h. */
3977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3978 $EGREP "free" >/dev
/null
2>&1; then
3981 ac_cv_header_stdc
=no
3987 if test $ac_cv_header_stdc = yes; then
3988 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3989 if test "$cross_compiling" = yes; then
3992 cat >conftest.
$ac_ext <<_ACEOF
3995 cat confdefs.h
>>conftest.
$ac_ext
3996 cat >>conftest.
$ac_ext <<_ACEOF
3997 /* end confdefs.h. */
3999 #if ((' ' & 0x0FF) == 0x020)
4000 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4001 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4003 # define ISLOWER(c) \
4004 (('a' <= (c) && (c) <= 'i') \
4005 || ('j' <= (c) && (c) <= 'r') \
4006 || ('s' <= (c) && (c) <= 'z'))
4007 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4010 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4015 for (i = 0; i < 256; i++)
4016 if (XOR (islower (i), ISLOWER (i))
4017 || toupper (i) != TOUPPER (i))
4022 rm -f conftest
$ac_exeext
4023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4024 (eval $ac_link) 2>&5
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); }; }; then
4035 echo "$as_me: program exited with status $ac_status" >&5
4036 echo "$as_me: failed program was:" >&5
4037 sed 's/^/| /' conftest.
$ac_ext >&5
4040 ac_cv_header_stdc
=no
4042 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4046 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4047 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4048 if test $ac_cv_header_stdc = yes; then
4050 cat >>confdefs.h
<<\_ACEOF
4051 #define STDC_HEADERS 1
4057 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4067 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4068 inttypes.h stdint.h unistd.h
4070 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4071 echo "$as_me:$LINENO: checking for $ac_header" >&5
4072 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4073 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4074 echo $ECHO_N "(cached) $ECHO_C" >&6
4076 cat >conftest.
$ac_ext <<_ACEOF
4079 cat confdefs.h
>>conftest.
$ac_ext
4080 cat >>conftest.
$ac_ext <<_ACEOF
4081 /* end confdefs.h. */
4082 $ac_includes_default
4084 #include <$ac_header>
4086 rm -f conftest.
$ac_objext
4087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4088 (eval $ac_compile) 2>conftest.er1
4090 grep -v '^ *+' conftest.er1
>conftest.err
4092 cat conftest.err
>&5
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094 (exit $ac_status); } &&
4095 { ac_try
='test -z "$ac_c_werror_flag"
4096 || test ! -s conftest.err'
4097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); }; } &&
4102 { ac_try
='test -s conftest.$ac_objext'
4103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); }; }; then
4108 eval "$as_ac_Header=yes"
4110 echo "$as_me: failed program was:" >&5
4111 sed 's/^/| /' conftest.
$ac_ext >&5
4113 eval "$as_ac_Header=no"
4115 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4117 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4118 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4119 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4120 cat >>confdefs.h
<<_ACEOF
4121 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4140 for ac_header
in crypt.h sys
/resource.h sys
/param.h errno.h sys
/syslog.h stddef.h sys
/wait.h
wait.h sys
/epoll.h sys
/uio.h machine
/endian.h
4142 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4143 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4144 echo "$as_me:$LINENO: checking for $ac_header" >&5
4145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4146 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4147 echo $ECHO_N "(cached) $ECHO_C" >&6
4149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4150 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4152 # Is the header compilable?
4153 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4154 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4155 cat >conftest.
$ac_ext <<_ACEOF
4158 cat confdefs.h
>>conftest.
$ac_ext
4159 cat >>conftest.
$ac_ext <<_ACEOF
4160 /* end confdefs.h. */
4161 $ac_includes_default
4162 #include <$ac_header>
4164 rm -f conftest.
$ac_objext
4165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4166 (eval $ac_compile) 2>conftest.er1
4168 grep -v '^ *+' conftest.er1
>conftest.err
4170 cat conftest.err
>&5
4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); } &&
4173 { ac_try
='test -z "$ac_c_werror_flag"
4174 || test ! -s conftest.err'
4175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); }; } &&
4180 { ac_try
='test -s conftest.$ac_objext'
4181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185 (exit $ac_status); }; }; then
4186 ac_header_compiler
=yes
4188 echo "$as_me: failed program was:" >&5
4189 sed 's/^/| /' conftest.
$ac_ext >&5
4191 ac_header_compiler
=no
4193 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4194 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4195 echo "${ECHO_T}$ac_header_compiler" >&6
4197 # Is the header present?
4198 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4199 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4200 cat >conftest.
$ac_ext <<_ACEOF
4203 cat confdefs.h
>>conftest.
$ac_ext
4204 cat >>conftest.
$ac_ext <<_ACEOF
4205 /* end confdefs.h. */
4206 #include <$ac_header>
4208 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4209 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4211 grep -v '^ *+' conftest.er1
>conftest.err
4213 cat conftest.err
>&5
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); } >/dev
/null
; then
4216 if test -s conftest.err
; then
4217 ac_cpp_err
=$ac_c_preproc_warn_flag
4218 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4225 if test -z "$ac_cpp_err"; then
4226 ac_header_preproc
=yes
4228 echo "$as_me: failed program was:" >&5
4229 sed 's/^/| /' conftest.
$ac_ext >&5
4231 ac_header_preproc
=no
4233 rm -f conftest.err conftest.
$ac_ext
4234 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4235 echo "${ECHO_T}$ac_header_preproc" >&6
4237 # So? What about this header?
4238 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4240 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4241 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4243 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4244 ac_header_preproc
=yes
4247 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4248 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4249 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4250 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4251 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4252 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4253 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4254 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4256 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4257 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4258 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4261 ## ------------------------------------ ##
4262 ## Report this to the charybdis lists. ##
4263 ## ------------------------------------ ##
4266 sed "s/^/$as_me: WARNING: /" >&2
4269 echo "$as_me:$LINENO: checking for $ac_header" >&5
4270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4271 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4272 echo $ECHO_N "(cached) $ECHO_C" >&6
4274 eval "$as_ac_Header=\$ac_header_preproc"
4276 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4277 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4280 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4281 cat >>confdefs.h
<<_ACEOF
4282 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4291 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4292 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4293 if test "${ac_cv_c_const+set}" = set; then
4294 echo $ECHO_N "(cached) $ECHO_C" >&6
4296 cat >conftest.
$ac_ext <<_ACEOF
4299 cat confdefs.h
>>conftest.
$ac_ext
4300 cat >>conftest.
$ac_ext <<_ACEOF
4301 /* end confdefs.h. */
4306 /* FIXME: Include the comments suggested by Paul. */
4308 /* Ultrix mips cc rejects this. */
4309 typedef int charset[2];
4311 /* SunOS 4.1.1 cc rejects this. */
4312 char const *const *ccp;
4314 /* NEC SVR4.0.2 mips cc rejects this. */
4315 struct point {int x, y;};
4316 static struct point const zero = {0,0};
4317 /* AIX XL C 1.02.0.0 rejects this.
4318 It does not let you subtract one const X* pointer from another in
4319 an arm of an if-expression whose if-part is not a constant
4321 const char *g = "string";
4322 ccp = &g + (g ? g-g : 0);
4323 /* HPUX 7.0 cc rejects these. */
4326 ccp = (char const *const *) p;
4327 { /* SCO 3.2v4 cc rejects this. */
4329 char const *s = 0 ? (char *) 0 : (char const *) 0;
4333 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4335 const int *foo = &x[0];
4338 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4339 typedef const int *iptr;
4343 { /* AIX XL C 1.02.0.0 rejects this saying
4344 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4345 struct s { int j; const int *ap[3]; };
4346 struct s *b; b->j = 5;
4348 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4357 rm -f conftest.
$ac_objext
4358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4359 (eval $ac_compile) 2>conftest.er1
4361 grep -v '^ *+' conftest.er1
>conftest.err
4363 cat conftest.err
>&5
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); } &&
4366 { ac_try
='test -z "$ac_c_werror_flag"
4367 || test ! -s conftest.err'
4368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); }; } &&
4373 { ac_try
='test -s conftest.$ac_objext'
4374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); }; }; then
4381 echo "$as_me: failed program was:" >&5
4382 sed 's/^/| /' conftest.
$ac_ext >&5
4386 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4388 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4389 echo "${ECHO_T}$ac_cv_c_const" >&6
4390 if test $ac_cv_c_const = no
; then
4392 cat >>confdefs.h
<<\_ACEOF
4398 if test "$ac_cv_header_machine_endian_h" = "no" ; then
4399 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4400 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4401 if test "${ac_cv_c_bigendian+set}" = set; then
4402 echo $ECHO_N "(cached) $ECHO_C" >&6
4404 # See if sys/param.h defines the BYTE_ORDER macro.
4405 cat >conftest.
$ac_ext <<_ACEOF
4408 cat confdefs.h
>>conftest.
$ac_ext
4409 cat >>conftest.
$ac_ext <<_ACEOF
4410 /* end confdefs.h. */
4411 #include <sys/types.h>
4412 #include <sys/param.h>
4417 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4425 rm -f conftest.
$ac_objext
4426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4427 (eval $ac_compile) 2>conftest.er1
4429 grep -v '^ *+' conftest.er1
>conftest.err
4431 cat conftest.err
>&5
4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433 (exit $ac_status); } &&
4434 { ac_try
='test -z "$ac_c_werror_flag"
4435 || test ! -s conftest.err'
4436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); }; } &&
4441 { ac_try
='test -s conftest.$ac_objext'
4442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); }; }; then
4447 # It does; now see whether it defined to BIG_ENDIAN or not.
4448 cat >conftest.
$ac_ext <<_ACEOF
4451 cat confdefs.h
>>conftest.
$ac_ext
4452 cat >>conftest.
$ac_ext <<_ACEOF
4453 /* end confdefs.h. */
4454 #include <sys/types.h>
4455 #include <sys/param.h>
4460 #if BYTE_ORDER != BIG_ENDIAN
4468 rm -f conftest.
$ac_objext
4469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4470 (eval $ac_compile) 2>conftest.er1
4472 grep -v '^ *+' conftest.er1
>conftest.err
4474 cat conftest.err
>&5
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); } &&
4477 { ac_try
='test -z "$ac_c_werror_flag"
4478 || test ! -s conftest.err'
4479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); }; } &&
4484 { ac_try
='test -s conftest.$ac_objext'
4485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); }; }; then
4490 ac_cv_c_bigendian
=yes
4492 echo "$as_me: failed program was:" >&5
4493 sed 's/^/| /' conftest.
$ac_ext >&5
4495 ac_cv_c_bigendian
=no
4497 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4499 echo "$as_me: failed program was:" >&5
4500 sed 's/^/| /' conftest.
$ac_ext >&5
4502 # It does not; compile a test program.
4503 if test "$cross_compiling" = yes; then
4504 # try to guess the endianness by grepping values into an object file
4505 ac_cv_c_bigendian
=unknown
4506 cat >conftest.
$ac_ext <<_ACEOF
4509 cat confdefs.h
>>conftest.
$ac_ext
4510 cat >>conftest.
$ac_ext <<_ACEOF
4511 /* end confdefs.h. */
4512 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4513 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4514 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4515 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4516 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4517 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4521 _ascii (); _ebcdic ();
4526 rm -f conftest.
$ac_objext
4527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4528 (eval $ac_compile) 2>conftest.er1
4530 grep -v '^ *+' conftest.er1
>conftest.err
4532 cat conftest.err
>&5
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); } &&
4535 { ac_try
='test -z "$ac_c_werror_flag"
4536 || test ! -s conftest.err'
4537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541 (exit $ac_status); }; } &&
4542 { ac_try
='test -s conftest.$ac_objext'
4543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); }; }; then
4548 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
4549 ac_cv_c_bigendian
=yes
4551 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
4552 if test "$ac_cv_c_bigendian" = unknown
; then
4553 ac_cv_c_bigendian
=no
4555 # finding both strings is unlikely to happen, but who knows?
4556 ac_cv_c_bigendian
=unknown
4560 echo "$as_me: failed program was:" >&5
4561 sed 's/^/| /' conftest.
$ac_ext >&5
4564 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4566 cat >conftest.
$ac_ext <<_ACEOF
4569 cat confdefs.h
>>conftest.
$ac_ext
4570 cat >>conftest.
$ac_ext <<_ACEOF
4571 /* end confdefs.h. */
4575 /* Are we little or big endian? From Harbison&Steele. */
4579 char c[sizeof (long)];
4582 exit (u.c[sizeof (long) - 1] == 1);
4585 rm -f conftest
$ac_exeext
4586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4587 (eval $ac_link) 2>&5
4589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); }; }; then
4596 ac_cv_c_bigendian
=no
4598 echo "$as_me: program exited with status $ac_status" >&5
4599 echo "$as_me: failed program was:" >&5
4600 sed 's/^/| /' conftest.
$ac_ext >&5
4603 ac_cv_c_bigendian
=yes
4605 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4608 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4610 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4611 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4612 case $ac_cv_c_bigendian in
4615 cat >>confdefs.h
<<\_ACEOF
4616 #define WORDS_BIGENDIAN 1
4622 { { echo "$as_me:$LINENO: error: unknown endianness
4623 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4624 echo "$as_me: error: unknown endianness
4625 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4626 { (exit 1); exit 1; }; } ;;
4630 echo "$as_me:$LINENO: checking for pid_t" >&5
4631 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4632 if test "${ac_cv_type_pid_t+set}" = set; then
4633 echo $ECHO_N "(cached) $ECHO_C" >&6
4635 cat >conftest.
$ac_ext <<_ACEOF
4638 cat confdefs.h
>>conftest.
$ac_ext
4639 cat >>conftest.
$ac_ext <<_ACEOF
4640 /* end confdefs.h. */
4641 $ac_includes_default
4653 rm -f conftest.
$ac_objext
4654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4655 (eval $ac_compile) 2>conftest.er1
4657 grep -v '^ *+' conftest.er1
>conftest.err
4659 cat conftest.err
>&5
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); } &&
4662 { ac_try
='test -z "$ac_c_werror_flag"
4663 || test ! -s conftest.err'
4664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); }; } &&
4669 { ac_try
='test -s conftest.$ac_objext'
4670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); }; }; then
4675 ac_cv_type_pid_t
=yes
4677 echo "$as_me: failed program was:" >&5
4678 sed 's/^/| /' conftest.
$ac_ext >&5
4682 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4684 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4685 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
4686 if test $ac_cv_type_pid_t = yes; then
4690 cat >>confdefs.h
<<_ACEOF
4696 echo "$as_me:$LINENO: checking for size_t" >&5
4697 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4698 if test "${ac_cv_type_size_t+set}" = set; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
4701 cat >conftest.
$ac_ext <<_ACEOF
4704 cat confdefs.h
>>conftest.
$ac_ext
4705 cat >>conftest.
$ac_ext <<_ACEOF
4706 /* end confdefs.h. */
4707 $ac_includes_default
4713 if (sizeof (size_t))
4719 rm -f conftest.
$ac_objext
4720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4721 (eval $ac_compile) 2>conftest.er1
4723 grep -v '^ *+' conftest.er1
>conftest.err
4725 cat conftest.err
>&5
4726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727 (exit $ac_status); } &&
4728 { ac_try
='test -z "$ac_c_werror_flag"
4729 || test ! -s conftest.err'
4730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734 (exit $ac_status); }; } &&
4735 { ac_try
='test -s conftest.$ac_objext'
4736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740 (exit $ac_status); }; }; then
4741 ac_cv_type_size_t
=yes
4743 echo "$as_me: failed program was:" >&5
4744 sed 's/^/| /' conftest.
$ac_ext >&5
4746 ac_cv_type_size_t
=no
4748 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4750 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4751 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4752 if test $ac_cv_type_size_t = yes; then
4756 cat >>confdefs.h
<<_ACEOF
4757 #define size_t unsigned
4762 echo "$as_me:$LINENO: checking for short" >&5
4763 echo $ECHO_N "checking for short... $ECHO_C" >&6
4764 if test "${ac_cv_type_short+set}" = set; then
4765 echo $ECHO_N "(cached) $ECHO_C" >&6
4767 cat >conftest.
$ac_ext <<_ACEOF
4770 cat confdefs.h
>>conftest.
$ac_ext
4771 cat >>conftest.
$ac_ext <<_ACEOF
4772 /* end confdefs.h. */
4773 $ac_includes_default
4785 rm -f conftest.
$ac_objext
4786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4787 (eval $ac_compile) 2>conftest.er1
4789 grep -v '^ *+' conftest.er1
>conftest.err
4791 cat conftest.err
>&5
4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); } &&
4794 { ac_try
='test -z "$ac_c_werror_flag"
4795 || test ! -s conftest.err'
4796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); }; } &&
4801 { ac_try
='test -s conftest.$ac_objext'
4802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); }; }; then
4807 ac_cv_type_short
=yes
4809 echo "$as_me: failed program was:" >&5
4810 sed 's/^/| /' conftest.
$ac_ext >&5
4814 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4816 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4817 echo "${ECHO_T}$ac_cv_type_short" >&6
4819 echo "$as_me:$LINENO: checking size of short" >&5
4820 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4821 if test "${ac_cv_sizeof_short+set}" = set; then
4822 echo $ECHO_N "(cached) $ECHO_C" >&6
4824 if test "$ac_cv_type_short" = yes; then
4825 # The cast to unsigned long works around a bug in the HP C Compiler
4826 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4827 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4828 # This bug is HP SR number 8606223364.
4829 if test "$cross_compiling" = yes; then
4830 # Depending upon the size, compute the lo and hi bounds.
4831 cat >conftest.
$ac_ext <<_ACEOF
4834 cat confdefs.h
>>conftest.
$ac_ext
4835 cat >>conftest.
$ac_ext <<_ACEOF
4836 /* end confdefs.h. */
4837 $ac_includes_default
4841 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4848 rm -f conftest.
$ac_objext
4849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4850 (eval $ac_compile) 2>conftest.er1
4852 grep -v '^ *+' conftest.er1
>conftest.err
4854 cat conftest.err
>&5
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); } &&
4857 { ac_try
='test -z "$ac_c_werror_flag"
4858 || test ! -s conftest.err'
4859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); }; } &&
4864 { ac_try
='test -s conftest.$ac_objext'
4865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); }; }; then
4872 cat >conftest.
$ac_ext <<_ACEOF
4875 cat confdefs.h
>>conftest.
$ac_ext
4876 cat >>conftest.
$ac_ext <<_ACEOF
4877 /* end confdefs.h. */
4878 $ac_includes_default
4882 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4889 rm -f conftest.
$ac_objext
4890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4891 (eval $ac_compile) 2>conftest.er1
4893 grep -v '^ *+' conftest.er1
>conftest.err
4895 cat conftest.err
>&5
4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); } &&
4898 { ac_try
='test -z "$ac_c_werror_flag"
4899 || test ! -s conftest.err'
4900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904 (exit $ac_status); }; } &&
4905 { ac_try
='test -s conftest.$ac_objext'
4906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); }; }; then
4911 ac_hi
=$ac_mid; break
4913 echo "$as_me: failed program was:" >&5
4914 sed 's/^/| /' conftest.
$ac_ext >&5
4916 ac_lo
=`expr $ac_mid + 1`
4917 if test $ac_lo -le $ac_mid; then
4921 ac_mid
=`expr 2 '*' $ac_mid + 1`
4923 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4926 echo "$as_me: failed program was:" >&5
4927 sed 's/^/| /' conftest.
$ac_ext >&5
4929 cat >conftest.
$ac_ext <<_ACEOF
4932 cat confdefs.h
>>conftest.
$ac_ext
4933 cat >>conftest.
$ac_ext <<_ACEOF
4934 /* end confdefs.h. */
4935 $ac_includes_default
4939 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4946 rm -f conftest.
$ac_objext
4947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4948 (eval $ac_compile) 2>conftest.er1
4950 grep -v '^ *+' conftest.er1
>conftest.err
4952 cat conftest.err
>&5
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); } &&
4955 { ac_try
='test -z "$ac_c_werror_flag"
4956 || test ! -s conftest.err'
4957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); }; } &&
4962 { ac_try
='test -s conftest.$ac_objext'
4963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); }; }; then
4970 cat >conftest.
$ac_ext <<_ACEOF
4973 cat confdefs.h
>>conftest.
$ac_ext
4974 cat >>conftest.
$ac_ext <<_ACEOF
4975 /* end confdefs.h. */
4976 $ac_includes_default
4980 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4987 rm -f conftest.
$ac_objext
4988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4989 (eval $ac_compile) 2>conftest.er1
4991 grep -v '^ *+' conftest.er1
>conftest.err
4993 cat conftest.err
>&5
4994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995 (exit $ac_status); } &&
4996 { ac_try
='test -z "$ac_c_werror_flag"
4997 || test ! -s conftest.err'
4998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002 (exit $ac_status); }; } &&
5003 { ac_try
='test -s conftest.$ac_objext'
5004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); }; }; then
5009 ac_lo
=$ac_mid; break
5011 echo "$as_me: failed program was:" >&5
5012 sed 's/^/| /' conftest.
$ac_ext >&5
5014 ac_hi
=`expr '(' $ac_mid ')' - 1`
5015 if test $ac_mid -le $ac_hi; then
5019 ac_mid
=`expr 2 '*' $ac_mid`
5021 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5024 echo "$as_me: failed program was:" >&5
5025 sed 's/^/| /' conftest.
$ac_ext >&5
5029 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5031 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5032 # Binary search between lo and hi bounds.
5033 while test "x$ac_lo" != "x$ac_hi"; do
5034 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5035 cat >conftest.
$ac_ext <<_ACEOF
5038 cat confdefs.h
>>conftest.
$ac_ext
5039 cat >>conftest.
$ac_ext <<_ACEOF
5040 /* end confdefs.h. */
5041 $ac_includes_default
5045 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5052 rm -f conftest.
$ac_objext
5053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5054 (eval $ac_compile) 2>conftest.er1
5056 grep -v '^ *+' conftest.er1
>conftest.err
5058 cat conftest.err
>&5
5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060 (exit $ac_status); } &&
5061 { ac_try
='test -z "$ac_c_werror_flag"
5062 || test ! -s conftest.err'
5063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); }; } &&
5068 { ac_try
='test -s conftest.$ac_objext'
5069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); }; }; then
5076 echo "$as_me: failed program was:" >&5
5077 sed 's/^/| /' conftest.
$ac_ext >&5
5079 ac_lo
=`expr '(' $ac_mid ')' + 1`
5081 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5084 ?
*) ac_cv_sizeof_short
=$ac_lo;;
5085 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5086 See \`config.log' for more details." >&5
5087 echo "$as_me: error: cannot compute sizeof (short), 77
5088 See \`config.log' for more details." >&2;}
5089 { (exit 1); exit 1; }; } ;;
5092 if test "$cross_compiling" = yes; then
5093 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5094 See \`config.log' for more details." >&5
5095 echo "$as_me: error: cannot run test program while cross compiling
5096 See \`config.log' for more details." >&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 (short)); }
5107 unsigned long ulongval () { return (long) (sizeof (short)); }
5114 FILE *f = fopen ("conftest.val", "w");
5117 if (((long) (sizeof (short))) < 0)
5119 long i = longval ();
5120 if (i != ((long) (sizeof (short))))
5122 fprintf (f, "%ld\n", i);
5126 unsigned long i = ulongval ();
5127 if (i != ((long) (sizeof (short))))
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_short
=`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 (short), 77
5156 See \`config.log' for more details." >&5
5157 echo "$as_me: error: cannot compute sizeof (short), 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
5166 ac_cv_sizeof_short
=0
5169 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5170 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5171 cat >>confdefs.h
<<_ACEOF
5172 #define SIZEOF_SHORT $ac_cv_sizeof_short
5176 echo "$as_me:$LINENO: checking for int" >&5
5177 echo $ECHO_N "checking for int... $ECHO_C" >&6
5178 if test "${ac_cv_type_int+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"
5209 || test ! -s conftest.err'
5210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214 (exit $ac_status); }; } &&
5215 { ac_try
='test -s conftest.$ac_objext'
5216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220 (exit $ac_status); }; }; then
5223 echo "$as_me: failed program was:" >&5
5224 sed 's/^/| /' conftest.
$ac_ext >&5
5228 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5230 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5231 echo "${ECHO_T}$ac_cv_type_int" >&6
5233 echo "$as_me:$LINENO: checking size of int" >&5
5234 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5235 if test "${ac_cv_sizeof_int+set}" = set; then
5236 echo $ECHO_N "(cached) $ECHO_C" >&6
5238 if test "$ac_cv_type_int" = yes; then
5239 # The cast to unsigned long works around a bug in the HP C Compiler
5240 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5241 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5242 # This bug is HP SR number 8606223364.
5243 if test "$cross_compiling" = yes; then
5244 # Depending upon the size, compute the lo and hi bounds.
5245 cat >conftest.
$ac_ext <<_ACEOF
5248 cat confdefs.h
>>conftest.
$ac_ext
5249 cat >>conftest.
$ac_ext <<_ACEOF
5250 /* end confdefs.h. */
5251 $ac_includes_default
5255 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5262 rm -f conftest.
$ac_objext
5263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5264 (eval $ac_compile) 2>conftest.er1
5266 grep -v '^ *+' conftest.er1
>conftest.err
5268 cat conftest.err
>&5
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); } &&
5271 { ac_try
='test -z "$ac_c_werror_flag"
5272 || test ! -s conftest.err'
5273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277 (exit $ac_status); }; } &&
5278 { ac_try
='test -s conftest.$ac_objext'
5279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283 (exit $ac_status); }; }; then
5286 cat >conftest.
$ac_ext <<_ACEOF
5289 cat confdefs.h
>>conftest.
$ac_ext
5290 cat >>conftest.
$ac_ext <<_ACEOF
5291 /* end confdefs.h. */
5292 $ac_includes_default
5296 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5303 rm -f conftest.
$ac_objext
5304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5305 (eval $ac_compile) 2>conftest.er1
5307 grep -v '^ *+' conftest.er1
>conftest.err
5309 cat conftest.err
>&5
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); } &&
5312 { ac_try
='test -z "$ac_c_werror_flag"
5313 || test ! -s conftest.err'
5314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); }; } &&
5319 { ac_try
='test -s conftest.$ac_objext'
5320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324 (exit $ac_status); }; }; then
5325 ac_hi
=$ac_mid; break
5327 echo "$as_me: failed program was:" >&5
5328 sed 's/^/| /' conftest.
$ac_ext >&5
5330 ac_lo
=`expr $ac_mid + 1`
5331 if test $ac_lo -le $ac_mid; then
5335 ac_mid
=`expr 2 '*' $ac_mid + 1`
5337 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5340 echo "$as_me: failed program was:" >&5
5341 sed 's/^/| /' conftest.
$ac_ext >&5
5343 cat >conftest.
$ac_ext <<_ACEOF
5346 cat confdefs.h
>>conftest.
$ac_ext
5347 cat >>conftest.
$ac_ext <<_ACEOF
5348 /* end confdefs.h. */
5349 $ac_includes_default
5353 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5360 rm -f conftest.
$ac_objext
5361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5362 (eval $ac_compile) 2>conftest.er1
5364 grep -v '^ *+' conftest.er1
>conftest.err
5366 cat conftest.err
>&5
5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); } &&
5369 { ac_try
='test -z "$ac_c_werror_flag"
5370 || test ! -s conftest.err'
5371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375 (exit $ac_status); }; } &&
5376 { ac_try
='test -s conftest.$ac_objext'
5377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381 (exit $ac_status); }; }; then
5384 cat >conftest.
$ac_ext <<_ACEOF
5387 cat confdefs.h
>>conftest.
$ac_ext
5388 cat >>conftest.
$ac_ext <<_ACEOF
5389 /* end confdefs.h. */
5390 $ac_includes_default
5394 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5401 rm -f conftest.
$ac_objext
5402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5403 (eval $ac_compile) 2>conftest.er1
5405 grep -v '^ *+' conftest.er1
>conftest.err
5407 cat conftest.err
>&5
5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409 (exit $ac_status); } &&
5410 { ac_try
='test -z "$ac_c_werror_flag"
5411 || test ! -s conftest.err'
5412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); }; } &&
5417 { ac_try
='test -s conftest.$ac_objext'
5418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422 (exit $ac_status); }; }; then
5423 ac_lo
=$ac_mid; break
5425 echo "$as_me: failed program was:" >&5
5426 sed 's/^/| /' conftest.
$ac_ext >&5
5428 ac_hi
=`expr '(' $ac_mid ')' - 1`
5429 if test $ac_mid -le $ac_hi; then
5433 ac_mid
=`expr 2 '*' $ac_mid`
5435 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5438 echo "$as_me: failed program was:" >&5
5439 sed 's/^/| /' conftest.
$ac_ext >&5
5443 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5445 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5446 # Binary search between lo and hi bounds.
5447 while test "x$ac_lo" != "x$ac_hi"; do
5448 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5449 cat >conftest.
$ac_ext <<_ACEOF
5452 cat confdefs.h
>>conftest.
$ac_ext
5453 cat >>conftest.
$ac_ext <<_ACEOF
5454 /* end confdefs.h. */
5455 $ac_includes_default
5459 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5466 rm -f conftest.
$ac_objext
5467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5468 (eval $ac_compile) 2>conftest.er1
5470 grep -v '^ *+' conftest.er1
>conftest.err
5472 cat conftest.err
>&5
5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); } &&
5475 { ac_try
='test -z "$ac_c_werror_flag"
5476 || test ! -s conftest.err'
5477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481 (exit $ac_status); }; } &&
5482 { ac_try
='test -s conftest.$ac_objext'
5483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487 (exit $ac_status); }; }; then
5490 echo "$as_me: failed program was:" >&5
5491 sed 's/^/| /' conftest.
$ac_ext >&5
5493 ac_lo
=`expr '(' $ac_mid ')' + 1`
5495 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5498 ?
*) ac_cv_sizeof_int
=$ac_lo;;
5499 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5500 See \`config.log' for more details." >&5
5501 echo "$as_me: error: cannot compute sizeof (int), 77
5502 See \`config.log' for more details." >&2;}
5503 { (exit 1); exit 1; }; } ;;
5506 if test "$cross_compiling" = yes; then
5507 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5508 See \`config.log' for more details." >&5
5509 echo "$as_me: error: cannot run test program while cross compiling
5510 See \`config.log' for more details." >&2;}
5511 { (exit 1); exit 1; }; }
5513 cat >conftest.
$ac_ext <<_ACEOF
5516 cat confdefs.h
>>conftest.
$ac_ext
5517 cat >>conftest.
$ac_ext <<_ACEOF
5518 /* end confdefs.h. */
5519 $ac_includes_default
5520 long longval () { return (long) (sizeof (int)); }
5521 unsigned long ulongval () { return (long) (sizeof (int)); }
5528 FILE *f = fopen ("conftest.val", "w");
5531 if (((long) (sizeof (int))) < 0)
5533 long i = longval ();
5534 if (i != ((long) (sizeof (int))))
5536 fprintf (f, "%ld\n", i);
5540 unsigned long i = ulongval ();
5541 if (i != ((long) (sizeof (int))))
5543 fprintf (f, "%lu\n", i);
5545 exit (ferror (f) || fclose (f) != 0);
5551 rm -f conftest
$ac_exeext
5552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5553 (eval $ac_link) 2>&5
5555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561 (exit $ac_status); }; }; then
5562 ac_cv_sizeof_int
=`cat conftest.val`
5564 echo "$as_me: program exited with status $ac_status" >&5
5565 echo "$as_me: failed program was:" >&5
5566 sed 's/^/| /' conftest.
$ac_ext >&5
5569 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5570 See \`config.log' for more details." >&5
5571 echo "$as_me: error: cannot compute sizeof (int), 77
5572 See \`config.log' for more details." >&2;}
5573 { (exit 1); exit 1; }; }
5575 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5583 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5584 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5585 cat >>confdefs.h
<<_ACEOF
5586 #define SIZEOF_INT $ac_cv_sizeof_int
5590 echo "$as_me:$LINENO: checking for long" >&5
5591 echo $ECHO_N "checking for long... $ECHO_C" >&6
5592 if test "${ac_cv_type_long+set}" = set; then
5593 echo $ECHO_N "(cached) $ECHO_C" >&6
5595 cat >conftest.
$ac_ext <<_ACEOF
5598 cat confdefs.h
>>conftest.
$ac_ext
5599 cat >>conftest.
$ac_ext <<_ACEOF
5600 /* end confdefs.h. */
5601 $ac_includes_default
5613 rm -f conftest.
$ac_objext
5614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5615 (eval $ac_compile) 2>conftest.er1
5617 grep -v '^ *+' conftest.er1
>conftest.err
5619 cat conftest.err
>&5
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); } &&
5622 { ac_try
='test -z "$ac_c_werror_flag"
5623 || test ! -s conftest.err'
5624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); }; } &&
5629 { ac_try
='test -s conftest.$ac_objext'
5630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); }; }; then
5637 echo "$as_me: failed program was:" >&5
5638 sed 's/^/| /' conftest.
$ac_ext >&5
5642 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5644 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5645 echo "${ECHO_T}$ac_cv_type_long" >&6
5647 echo "$as_me:$LINENO: checking size of long" >&5
5648 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5649 if test "${ac_cv_sizeof_long+set}" = set; then
5650 echo $ECHO_N "(cached) $ECHO_C" >&6
5652 if test "$ac_cv_type_long" = yes; then
5653 # The cast to unsigned long works around a bug in the HP C Compiler
5654 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5655 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5656 # This bug is HP SR number 8606223364.
5657 if test "$cross_compiling" = yes; then
5658 # Depending upon the size, compute the lo and hi bounds.
5659 cat >conftest.
$ac_ext <<_ACEOF
5662 cat confdefs.h
>>conftest.
$ac_ext
5663 cat >>conftest.
$ac_ext <<_ACEOF
5664 /* end confdefs.h. */
5665 $ac_includes_default
5669 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5676 rm -f conftest.
$ac_objext
5677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5678 (eval $ac_compile) 2>conftest.er1
5680 grep -v '^ *+' conftest.er1
>conftest.err
5682 cat conftest.err
>&5
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); } &&
5685 { ac_try
='test -z "$ac_c_werror_flag"
5686 || test ! -s conftest.err'
5687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); }; } &&
5692 { ac_try
='test -s conftest.$ac_objext'
5693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697 (exit $ac_status); }; }; then
5700 cat >conftest.
$ac_ext <<_ACEOF
5703 cat confdefs.h
>>conftest.
$ac_ext
5704 cat >>conftest.
$ac_ext <<_ACEOF
5705 /* end confdefs.h. */
5706 $ac_includes_default
5710 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5717 rm -f conftest.
$ac_objext
5718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5719 (eval $ac_compile) 2>conftest.er1
5721 grep -v '^ *+' conftest.er1
>conftest.err
5723 cat conftest.err
>&5
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); } &&
5726 { ac_try
='test -z "$ac_c_werror_flag"
5727 || test ! -s conftest.err'
5728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); }; } &&
5733 { ac_try
='test -s conftest.$ac_objext'
5734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); }; }; then
5739 ac_hi
=$ac_mid; break
5741 echo "$as_me: failed program was:" >&5
5742 sed 's/^/| /' conftest.
$ac_ext >&5
5744 ac_lo
=`expr $ac_mid + 1`
5745 if test $ac_lo -le $ac_mid; then
5749 ac_mid
=`expr 2 '*' $ac_mid + 1`
5751 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5754 echo "$as_me: failed program was:" >&5
5755 sed 's/^/| /' conftest.
$ac_ext >&5
5757 cat >conftest.
$ac_ext <<_ACEOF
5760 cat confdefs.h
>>conftest.
$ac_ext
5761 cat >>conftest.
$ac_ext <<_ACEOF
5762 /* end confdefs.h. */
5763 $ac_includes_default
5767 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5774 rm -f conftest.
$ac_objext
5775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5776 (eval $ac_compile) 2>conftest.er1
5778 grep -v '^ *+' conftest.er1
>conftest.err
5780 cat conftest.err
>&5
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); } &&
5783 { ac_try
='test -z "$ac_c_werror_flag"
5784 || test ! -s conftest.err'
5785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); }; } &&
5790 { ac_try
='test -s conftest.$ac_objext'
5791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795 (exit $ac_status); }; }; then
5798 cat >conftest.
$ac_ext <<_ACEOF
5801 cat confdefs.h
>>conftest.
$ac_ext
5802 cat >>conftest.
$ac_ext <<_ACEOF
5803 /* end confdefs.h. */
5804 $ac_includes_default
5808 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5815 rm -f conftest.
$ac_objext
5816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5817 (eval $ac_compile) 2>conftest.er1
5819 grep -v '^ *+' conftest.er1
>conftest.err
5821 cat conftest.err
>&5
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); } &&
5824 { ac_try
='test -z "$ac_c_werror_flag"
5825 || test ! -s conftest.err'
5826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); }; } &&
5831 { ac_try
='test -s conftest.$ac_objext'
5832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); }; }; then
5837 ac_lo
=$ac_mid; break
5839 echo "$as_me: failed program was:" >&5
5840 sed 's/^/| /' conftest.
$ac_ext >&5
5842 ac_hi
=`expr '(' $ac_mid ')' - 1`
5843 if test $ac_mid -le $ac_hi; then
5847 ac_mid
=`expr 2 '*' $ac_mid`
5849 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5852 echo "$as_me: failed program was:" >&5
5853 sed 's/^/| /' conftest.
$ac_ext >&5
5857 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5859 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5860 # Binary search between lo and hi bounds.
5861 while test "x$ac_lo" != "x$ac_hi"; do
5862 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5863 cat >conftest.
$ac_ext <<_ACEOF
5866 cat confdefs.h
>>conftest.
$ac_ext
5867 cat >>conftest.
$ac_ext <<_ACEOF
5868 /* end confdefs.h. */
5869 $ac_includes_default
5873 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5880 rm -f conftest.
$ac_objext
5881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5882 (eval $ac_compile) 2>conftest.er1
5884 grep -v '^ *+' conftest.er1
>conftest.err
5886 cat conftest.err
>&5
5887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888 (exit $ac_status); } &&
5889 { ac_try
='test -z "$ac_c_werror_flag"
5890 || test ! -s conftest.err'
5891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); }; } &&
5896 { ac_try
='test -s conftest.$ac_objext'
5897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); }; }; then
5904 echo "$as_me: failed program was:" >&5
5905 sed 's/^/| /' conftest.
$ac_ext >&5
5907 ac_lo
=`expr '(' $ac_mid ')' + 1`
5909 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5912 ?
*) ac_cv_sizeof_long
=$ac_lo;;
5913 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5914 See \`config.log' for more details." >&5
5915 echo "$as_me: error: cannot compute sizeof (long), 77
5916 See \`config.log' for more details." >&2;}
5917 { (exit 1); exit 1; }; } ;;
5920 if test "$cross_compiling" = yes; then
5921 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5922 See \`config.log' for more details." >&5
5923 echo "$as_me: error: cannot run test program while cross compiling
5924 See \`config.log' for more details." >&2;}
5925 { (exit 1); exit 1; }; }
5927 cat >conftest.
$ac_ext <<_ACEOF
5930 cat confdefs.h
>>conftest.
$ac_ext
5931 cat >>conftest.
$ac_ext <<_ACEOF
5932 /* end confdefs.h. */
5933 $ac_includes_default
5934 long longval () { return (long) (sizeof (long)); }
5935 unsigned long ulongval () { return (long) (sizeof (long)); }
5942 FILE *f = fopen ("conftest.val", "w");
5945 if (((long) (sizeof (long))) < 0)
5947 long i = longval ();
5948 if (i != ((long) (sizeof (long))))
5950 fprintf (f, "%ld\n", i);
5954 unsigned long i = ulongval ();
5955 if (i != ((long) (sizeof (long))))
5957 fprintf (f, "%lu\n", i);
5959 exit (ferror (f) || fclose (f) != 0);
5965 rm -f conftest
$ac_exeext
5966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5967 (eval $ac_link) 2>&5
5969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); }; }; then
5976 ac_cv_sizeof_long
=`cat conftest.val`
5978 echo "$as_me: program exited with status $ac_status" >&5
5979 echo "$as_me: failed program was:" >&5
5980 sed 's/^/| /' conftest.
$ac_ext >&5
5983 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5984 See \`config.log' for more details." >&5
5985 echo "$as_me: error: cannot compute sizeof (long), 77
5986 See \`config.log' for more details." >&2;}
5987 { (exit 1); exit 1; }; }
5989 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5997 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5998 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5999 cat >>confdefs.h
<<_ACEOF
6000 #define SIZEOF_LONG $ac_cv_sizeof_long
6004 echo "$as_me:$LINENO: checking for long long" >&5
6005 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6006 if test "${ac_cv_type_long_long+set}" = set; then
6007 echo $ECHO_N "(cached) $ECHO_C" >&6
6009 cat >conftest.
$ac_ext <<_ACEOF
6012 cat confdefs.h
>>conftest.
$ac_ext
6013 cat >>conftest.
$ac_ext <<_ACEOF
6014 /* end confdefs.h. */
6015 $ac_includes_default
6019 if ((long long *) 0)
6021 if (sizeof (long long))
6027 rm -f conftest.
$ac_objext
6028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6029 (eval $ac_compile) 2>conftest.er1
6031 grep -v '^ *+' conftest.er1
>conftest.err
6033 cat conftest.err
>&5
6034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035 (exit $ac_status); } &&
6036 { ac_try
='test -z "$ac_c_werror_flag"
6037 || test ! -s conftest.err'
6038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042 (exit $ac_status); }; } &&
6043 { ac_try
='test -s conftest.$ac_objext'
6044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); }; }; then
6049 ac_cv_type_long_long
=yes
6051 echo "$as_me: failed program was:" >&5
6052 sed 's/^/| /' conftest.
$ac_ext >&5
6054 ac_cv_type_long_long
=no
6056 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6058 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6059 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6061 echo "$as_me:$LINENO: checking size of long long" >&5
6062 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
6063 if test "${ac_cv_sizeof_long_long+set}" = set; then
6064 echo $ECHO_N "(cached) $ECHO_C" >&6
6066 if test "$ac_cv_type_long_long" = yes; then
6067 # The cast to unsigned long works around a bug in the HP C Compiler
6068 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6069 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6070 # This bug is HP SR number 8606223364.
6071 if test "$cross_compiling" = yes; then
6072 # Depending upon the size, compute the lo and hi bounds.
6073 cat >conftest.
$ac_ext <<_ACEOF
6076 cat confdefs.h
>>conftest.
$ac_ext
6077 cat >>conftest.
$ac_ext <<_ACEOF
6078 /* end confdefs.h. */
6079 $ac_includes_default
6083 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6090 rm -f conftest.
$ac_objext
6091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6092 (eval $ac_compile) 2>conftest.er1
6094 grep -v '^ *+' conftest.er1
>conftest.err
6096 cat conftest.err
>&5
6097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098 (exit $ac_status); } &&
6099 { ac_try
='test -z "$ac_c_werror_flag"
6100 || test ! -s conftest.err'
6101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); }; } &&
6106 { ac_try
='test -s conftest.$ac_objext'
6107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); }; }; then
6114 cat >conftest.
$ac_ext <<_ACEOF
6117 cat confdefs.h
>>conftest.
$ac_ext
6118 cat >>conftest.
$ac_ext <<_ACEOF
6119 /* end confdefs.h. */
6120 $ac_includes_default
6124 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6131 rm -f conftest.
$ac_objext
6132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6133 (eval $ac_compile) 2>conftest.er1
6135 grep -v '^ *+' conftest.er1
>conftest.err
6137 cat conftest.err
>&5
6138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139 (exit $ac_status); } &&
6140 { ac_try
='test -z "$ac_c_werror_flag"
6141 || test ! -s conftest.err'
6142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); }; } &&
6147 { ac_try
='test -s conftest.$ac_objext'
6148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); }; }; then
6153 ac_hi
=$ac_mid; break
6155 echo "$as_me: failed program was:" >&5
6156 sed 's/^/| /' conftest.
$ac_ext >&5
6158 ac_lo
=`expr $ac_mid + 1`
6159 if test $ac_lo -le $ac_mid; then
6163 ac_mid
=`expr 2 '*' $ac_mid + 1`
6165 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6168 echo "$as_me: failed program was:" >&5
6169 sed 's/^/| /' conftest.
$ac_ext >&5
6171 cat >conftest.
$ac_ext <<_ACEOF
6174 cat confdefs.h
>>conftest.
$ac_ext
6175 cat >>conftest.
$ac_ext <<_ACEOF
6176 /* end confdefs.h. */
6177 $ac_includes_default
6181 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6188 rm -f conftest.
$ac_objext
6189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6190 (eval $ac_compile) 2>conftest.er1
6192 grep -v '^ *+' conftest.er1
>conftest.err
6194 cat conftest.err
>&5
6195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196 (exit $ac_status); } &&
6197 { ac_try
='test -z "$ac_c_werror_flag"
6198 || test ! -s conftest.err'
6199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); }; } &&
6204 { ac_try
='test -s conftest.$ac_objext'
6205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209 (exit $ac_status); }; }; then
6212 cat >conftest.
$ac_ext <<_ACEOF
6215 cat confdefs.h
>>conftest.
$ac_ext
6216 cat >>conftest.
$ac_ext <<_ACEOF
6217 /* end confdefs.h. */
6218 $ac_includes_default
6222 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6229 rm -f conftest.
$ac_objext
6230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6231 (eval $ac_compile) 2>conftest.er1
6233 grep -v '^ *+' conftest.er1
>conftest.err
6235 cat conftest.err
>&5
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); } &&
6238 { ac_try
='test -z "$ac_c_werror_flag"
6239 || test ! -s conftest.err'
6240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); }; } &&
6245 { ac_try
='test -s conftest.$ac_objext'
6246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); }; }; then
6251 ac_lo
=$ac_mid; break
6253 echo "$as_me: failed program was:" >&5
6254 sed 's/^/| /' conftest.
$ac_ext >&5
6256 ac_hi
=`expr '(' $ac_mid ')' - 1`
6257 if test $ac_mid -le $ac_hi; then
6261 ac_mid
=`expr 2 '*' $ac_mid`
6263 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6266 echo "$as_me: failed program was:" >&5
6267 sed 's/^/| /' conftest.
$ac_ext >&5
6271 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6273 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6274 # Binary search between lo and hi bounds.
6275 while test "x$ac_lo" != "x$ac_hi"; do
6276 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6277 cat >conftest.
$ac_ext <<_ACEOF
6280 cat confdefs.h
>>conftest.
$ac_ext
6281 cat >>conftest.
$ac_ext <<_ACEOF
6282 /* end confdefs.h. */
6283 $ac_includes_default
6287 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6294 rm -f conftest.
$ac_objext
6295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6296 (eval $ac_compile) 2>conftest.er1
6298 grep -v '^ *+' conftest.er1
>conftest.err
6300 cat conftest.err
>&5
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); } &&
6303 { ac_try
='test -z "$ac_c_werror_flag"
6304 || test ! -s conftest.err'
6305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309 (exit $ac_status); }; } &&
6310 { ac_try
='test -s conftest.$ac_objext'
6311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315 (exit $ac_status); }; }; then
6318 echo "$as_me: failed program was:" >&5
6319 sed 's/^/| /' conftest.
$ac_ext >&5
6321 ac_lo
=`expr '(' $ac_mid ')' + 1`
6323 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6326 ?
*) ac_cv_sizeof_long_long
=$ac_lo;;
6327 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6328 See \`config.log' for more details." >&5
6329 echo "$as_me: error: cannot compute sizeof (long long), 77
6330 See \`config.log' for more details." >&2;}
6331 { (exit 1); exit 1; }; } ;;
6334 if test "$cross_compiling" = yes; then
6335 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6336 See \`config.log' for more details." >&5
6337 echo "$as_me: error: cannot run test program while cross compiling
6338 See \`config.log' for more details." >&2;}
6339 { (exit 1); exit 1; }; }
6341 cat >conftest.
$ac_ext <<_ACEOF
6344 cat confdefs.h
>>conftest.
$ac_ext
6345 cat >>conftest.
$ac_ext <<_ACEOF
6346 /* end confdefs.h. */
6347 $ac_includes_default
6348 long longval () { return (long) (sizeof (long long)); }
6349 unsigned long ulongval () { return (long) (sizeof (long long)); }
6356 FILE *f = fopen ("conftest.val", "w");
6359 if (((long) (sizeof (long long))) < 0)
6361 long i = longval ();
6362 if (i != ((long) (sizeof (long long))))
6364 fprintf (f, "%ld\n", i);
6368 unsigned long i = ulongval ();
6369 if (i != ((long) (sizeof (long long))))
6371 fprintf (f, "%lu\n", i);
6373 exit (ferror (f) || fclose (f) != 0);
6379 rm -f conftest
$ac_exeext
6380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6381 (eval $ac_link) 2>&5
6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389 (exit $ac_status); }; }; then
6390 ac_cv_sizeof_long_long
=`cat conftest.val`
6392 echo "$as_me: program exited with status $ac_status" >&5
6393 echo "$as_me: failed program was:" >&5
6394 sed 's/^/| /' conftest.
$ac_ext >&5
6397 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6398 See \`config.log' for more details." >&5
6399 echo "$as_me: error: cannot compute sizeof (long long), 77
6400 See \`config.log' for more details." >&2;}
6401 { (exit 1); exit 1; }; }
6403 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6408 ac_cv_sizeof_long_long
=0
6411 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6412 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6413 cat >>confdefs.h
<<_ACEOF
6414 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6420 echo "$as_me:$LINENO: checking the system's memory page size" >&5
6421 echo $ECHO_N "checking the system's memory page size... $ECHO_C" >&6
6423 if test "$cross_compiling" = yes; then
6424 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6425 See \`config.log' for more details." >&5
6426 echo "$as_me: error: cannot run test program while cross compiling
6427 See \`config.log' for more details." >&2;}
6428 { (exit 1); exit 1; }; }
6430 cat >conftest.
$ac_ext <<_ACEOF
6433 cat confdefs.h
>>conftest.
$ac_ext
6434 cat >>conftest.
$ac_ext <<_ACEOF
6435 /* end confdefs.h. */
6439 # include <unistd.h>
6443 FILE *fp = fopen("conftest.malloc", "w");
6446 fprintf(fp, "%d\n", getpagesize());
6453 rm -f conftest
$ac_exeext
6454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6455 (eval $ac_link) 2>&5
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); }; }; then
6465 if test -f "conftest.malloc" ; then
6466 pagesize
=`cat conftest.malloc`
6470 echo "$as_me: program exited with status $ac_status" >&5
6471 echo "$as_me: failed program was:" >&5
6472 sed 's/^/| /' conftest.
$ac_ext >&5
6475 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6477 if test "$pagesize" != "no" ; then
6478 echo "$as_me:$LINENO: result: $pagesize" >&5
6479 echo "${ECHO_T}$pagesize" >&6
6481 if test "$ac_cv_sizeof_int" = "4" ; then
6486 echo "$as_me:$LINENO: result: $pagesize (guessing)" >&5
6487 echo "${ECHO_T}$pagesize (guessing)" >&6
6490 cat >>confdefs.h
<<_ACEOF
6491 #define MALLOC_PAGESIZE $pagesize
6496 echo "$as_me:$LINENO: checking for library containing socket" >&5
6497 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
6498 if test "${ac_cv_search_socket+set}" = set; then
6499 echo $ECHO_N "(cached) $ECHO_C" >&6
6501 ac_func_search_save_LIBS
=$LIBS
6502 ac_cv_search_socket
=no
6503 cat >conftest.
$ac_ext <<_ACEOF
6506 cat confdefs.h
>>conftest.
$ac_ext
6507 cat >>conftest.
$ac_ext <<_ACEOF
6508 /* end confdefs.h. */
6510 /* Override any gcc2 internal prototype to avoid an error. */
6514 /* We use char because int might match the return type of a gcc2
6515 builtin and then its argument prototype would still apply. */
6525 rm -f conftest.
$ac_objext conftest
$ac_exeext
6526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6527 (eval $ac_link) 2>conftest.er1
6529 grep -v '^ *+' conftest.er1
>conftest.err
6531 cat conftest.err
>&5
6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533 (exit $ac_status); } &&
6534 { ac_try
='test -z "$ac_c_werror_flag"
6535 || test ! -s conftest.err'
6536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540 (exit $ac_status); }; } &&
6541 { ac_try
='test -s conftest$ac_exeext'
6542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546 (exit $ac_status); }; }; then
6547 ac_cv_search_socket
="none required"
6549 echo "$as_me: failed program was:" >&5
6550 sed 's/^/| /' conftest.
$ac_ext >&5
6553 rm -f conftest.err conftest.
$ac_objext \
6554 conftest
$ac_exeext conftest.
$ac_ext
6555 if test "$ac_cv_search_socket" = no
; then
6556 for ac_lib
in socket
; do
6557 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6558 cat >conftest.
$ac_ext <<_ACEOF
6561 cat confdefs.h
>>conftest.
$ac_ext
6562 cat >>conftest.
$ac_ext <<_ACEOF
6563 /* end confdefs.h. */
6565 /* Override any gcc2 internal prototype to avoid an error. */
6569 /* We use char because int might match the return type of a gcc2
6570 builtin and then its argument prototype would still apply. */
6580 rm -f conftest.
$ac_objext conftest
$ac_exeext
6581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6582 (eval $ac_link) 2>conftest.er1
6584 grep -v '^ *+' conftest.er1
>conftest.err
6586 cat conftest.err
>&5
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); } &&
6589 { ac_try
='test -z "$ac_c_werror_flag"
6590 || test ! -s conftest.err'
6591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); }; } &&
6596 { ac_try
='test -s conftest$ac_exeext'
6597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); }; }; then
6602 ac_cv_search_socket
="-l$ac_lib"
6605 echo "$as_me: failed program was:" >&5
6606 sed 's/^/| /' conftest.
$ac_ext >&5
6609 rm -f conftest.err conftest.
$ac_objext \
6610 conftest
$ac_exeext conftest.
$ac_ext
6613 LIBS
=$ac_func_search_save_LIBS
6615 echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
6616 echo "${ECHO_T}$ac_cv_search_socket" >&6
6617 if test "$ac_cv_search_socket" != no
; then
6618 test "$ac_cv_search_socket" = "none required" || LIBS
="$ac_cv_search_socket $LIBS"
6621 { { echo "$as_me:$LINENO: error: You have no socket()! Aborting." >&5
6622 echo "$as_me: error: You have no socket()! Aborting." >&2;}
6623 { (exit 1); exit 1; }; }
6627 if test x
"$SUN" = xyes
; then
6628 echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5
6629 echo $ECHO_N "checking for library containing inet_ntoa... $ECHO_C" >&6
6630 if test "${ac_cv_search_inet_ntoa+set}" = set; then
6631 echo $ECHO_N "(cached) $ECHO_C" >&6
6633 ac_func_search_save_LIBS
=$LIBS
6634 ac_cv_search_inet_ntoa
=no
6635 cat >conftest.
$ac_ext <<_ACEOF
6638 cat confdefs.h
>>conftest.
$ac_ext
6639 cat >>conftest.
$ac_ext <<_ACEOF
6640 /* end confdefs.h. */
6642 /* Override any gcc2 internal prototype to avoid an error. */
6646 /* We use char because int might match the return type of a gcc2
6647 builtin and then its argument prototype would still apply. */
6657 rm -f conftest.
$ac_objext conftest
$ac_exeext
6658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6659 (eval $ac_link) 2>conftest.er1
6661 grep -v '^ *+' conftest.er1
>conftest.err
6663 cat conftest.err
>&5
6664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665 (exit $ac_status); } &&
6666 { ac_try
='test -z "$ac_c_werror_flag"
6667 || test ! -s conftest.err'
6668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672 (exit $ac_status); }; } &&
6673 { ac_try
='test -s conftest$ac_exeext'
6674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678 (exit $ac_status); }; }; then
6679 ac_cv_search_inet_ntoa
="none required"
6681 echo "$as_me: failed program was:" >&5
6682 sed 's/^/| /' conftest.
$ac_ext >&5
6685 rm -f conftest.err conftest.
$ac_objext \
6686 conftest
$ac_exeext conftest.
$ac_ext
6687 if test "$ac_cv_search_inet_ntoa" = no
; then
6688 for ac_lib
in nsl
; do
6689 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6690 cat >conftest.
$ac_ext <<_ACEOF
6693 cat confdefs.h
>>conftest.
$ac_ext
6694 cat >>conftest.
$ac_ext <<_ACEOF
6695 /* end confdefs.h. */
6697 /* Override any gcc2 internal prototype to avoid an error. */
6701 /* We use char because int might match the return type of a gcc2
6702 builtin and then its argument prototype would still apply. */
6712 rm -f conftest.
$ac_objext conftest
$ac_exeext
6713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6714 (eval $ac_link) 2>conftest.er1
6716 grep -v '^ *+' conftest.er1
>conftest.err
6718 cat conftest.err
>&5
6719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720 (exit $ac_status); } &&
6721 { ac_try
='test -z "$ac_c_werror_flag"
6722 || test ! -s conftest.err'
6723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727 (exit $ac_status); }; } &&
6728 { ac_try
='test -s conftest$ac_exeext'
6729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733 (exit $ac_status); }; }; then
6734 ac_cv_search_inet_ntoa
="-l$ac_lib"
6737 echo "$as_me: failed program was:" >&5
6738 sed 's/^/| /' conftest.
$ac_ext >&5
6741 rm -f conftest.err conftest.
$ac_objext \
6742 conftest
$ac_exeext conftest.
$ac_ext
6745 LIBS
=$ac_func_search_save_LIBS
6747 echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5
6748 echo "${ECHO_T}$ac_cv_search_inet_ntoa" >&6
6749 if test "$ac_cv_search_inet_ntoa" != no
; then
6750 test "$ac_cv_search_inet_ntoa" = "none required" || LIBS
="$ac_cv_search_inet_ntoa $LIBS"
6753 { { echo "$as_me:$LINENO: error: libnsl not found! Aborting." >&5
6754 echo "$as_me: error: libnsl not found! Aborting." >&2;}
6755 { (exit 1); exit 1; }; }
6760 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
6761 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
6762 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
6763 echo $ECHO_N "(cached) $ECHO_C" >&6
6765 cat >conftest.
$ac_ext <<_ACEOF
6768 cat confdefs.h
>>conftest.
$ac_ext
6769 cat >>conftest.
$ac_ext <<_ACEOF
6770 /* end confdefs.h. */
6771 #include <sys/types.h>
6772 #include <sys/socket.h>
6778 static struct sockaddr ac_aggr;
6785 rm -f conftest.
$ac_objext
6786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6787 (eval $ac_compile) 2>conftest.er1
6789 grep -v '^ *+' conftest.er1
>conftest.err
6791 cat conftest.err
>&5
6792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793 (exit $ac_status); } &&
6794 { ac_try
='test -z "$ac_c_werror_flag"
6795 || test ! -s conftest.err'
6796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800 (exit $ac_status); }; } &&
6801 { ac_try
='test -s conftest.$ac_objext'
6802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806 (exit $ac_status); }; }; then
6807 ac_cv_member_struct_sockaddr_sa_len
=yes
6809 echo "$as_me: failed program was:" >&5
6810 sed 's/^/| /' conftest.
$ac_ext >&5
6812 cat >conftest.
$ac_ext <<_ACEOF
6815 cat confdefs.h
>>conftest.
$ac_ext
6816 cat >>conftest.
$ac_ext <<_ACEOF
6817 /* end confdefs.h. */
6818 #include <sys/types.h>
6819 #include <sys/socket.h>
6825 static struct sockaddr ac_aggr;
6826 if (sizeof ac_aggr.sa_len)
6832 rm -f conftest.
$ac_objext
6833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6834 (eval $ac_compile) 2>conftest.er1
6836 grep -v '^ *+' conftest.er1
>conftest.err
6838 cat conftest.err
>&5
6839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6840 (exit $ac_status); } &&
6841 { ac_try
='test -z "$ac_c_werror_flag"
6842 || test ! -s conftest.err'
6843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847 (exit $ac_status); }; } &&
6848 { ac_try
='test -s conftest.$ac_objext'
6849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853 (exit $ac_status); }; }; then
6854 ac_cv_member_struct_sockaddr_sa_len
=yes
6856 echo "$as_me: failed program was:" >&5
6857 sed 's/^/| /' conftest.
$ac_ext >&5
6859 ac_cv_member_struct_sockaddr_sa_len
=no
6861 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6863 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6865 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
6866 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
6867 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
6869 cat >>confdefs.h
<<\_ACEOF
6870 #define SOCKADDR_IN_HAS_LEN 1
6876 echo "$as_me:$LINENO: checking for socklen_t" >&5
6877 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
6878 if test "${ac_cv_type_socklen_t+set}" = set; then
6879 echo $ECHO_N "(cached) $ECHO_C" >&6
6881 cat >conftest.
$ac_ext <<_ACEOF
6884 cat confdefs.h
>>conftest.
$ac_ext
6885 cat >>conftest.
$ac_ext <<_ACEOF
6886 /* end confdefs.h. */
6887 #include <sys/types.h>
6888 #include <sys/socket.h>
6893 if ((socklen_t *) 0)
6895 if (sizeof (socklen_t))
6901 rm -f conftest.
$ac_objext
6902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6903 (eval $ac_compile) 2>conftest.er1
6905 grep -v '^ *+' conftest.er1
>conftest.err
6907 cat conftest.err
>&5
6908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909 (exit $ac_status); } &&
6910 { ac_try
='test -z "$ac_c_werror_flag"
6911 || test ! -s conftest.err'
6912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916 (exit $ac_status); }; } &&
6917 { ac_try
='test -s conftest.$ac_objext'
6918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922 (exit $ac_status); }; }; then
6923 ac_cv_type_socklen_t
=yes
6925 echo "$as_me: failed program was:" >&5
6926 sed 's/^/| /' conftest.
$ac_ext >&5
6928 ac_cv_type_socklen_t
=no
6930 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6932 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
6933 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
6934 if test $ac_cv_type_socklen_t = yes; then
6938 cat >>confdefs.h
<<\_ACEOF
6939 #define socklen_t unsigned int
6945 # Check whether --enable-ipv6 or --disable-ipv6 was given.
6946 if test "${enable_ipv6+set}" = set; then
6947 enableval
="$enable_ipv6"
6953 if test $ipv6 != yes; then
6956 echo "$as_me:$LINENO: checking for core IPv6 support" >&5
6957 echo $ECHO_N "checking for core IPv6 support... $ECHO_C" >&6
6959 cat >conftest.
$ac_ext <<_ACEOF
6962 cat confdefs.h
>>conftest.
$ac_ext
6963 cat >>conftest.
$ac_ext <<_ACEOF
6964 /* end confdefs.h. */
6966 #include <sys/types.h>
6967 #include <sys/socket.h>
6968 #include <netinet/in.h>
6972 struct sockaddr_in6 s;
6979 rm -f conftest.
$ac_objext
6980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6981 (eval $ac_compile) 2>conftest.er1
6983 grep -v '^ *+' conftest.er1
>conftest.err
6985 cat conftest.err
>&5
6986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987 (exit $ac_status); } &&
6988 { ac_try
='test -z "$ac_c_werror_flag"
6989 || test ! -s conftest.err'
6990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6994 (exit $ac_status); }; } &&
6995 { ac_try
='test -s conftest.$ac_objext'
6996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000 (exit $ac_status); }; }; then
7002 if test "$CYGWIN" = "yes"; then
7003 echo "$as_me:$LINENO: result: no, Cygwin's IPv6 is incomplete" >&5
7004 echo "${ECHO_T}no, Cygwin's IPv6 is incomplete" >&6
7009 cat >>confdefs.h
<<\_ACEOF
7013 echo "$as_me:$LINENO: result: yes" >&5
7014 echo "${ECHO_T}yes" >&6
7015 echo "$as_me:$LINENO: checking for struct in6addr_any" >&5
7016 echo $ECHO_N "checking for struct in6addr_any... $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. */
7024 #include <sys/types.h>
7025 #include <sys/socket.h>
7026 #include <netinet/in.h>
7030 struct in6_addr a = in6addr_any;
7036 rm -f conftest.
$ac_objext
7037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7038 (eval $ac_compile) 2>conftest.er1
7040 grep -v '^ *+' conftest.er1
>conftest.err
7042 cat conftest.err
>&5
7043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044 (exit $ac_status); } &&
7045 { ac_try
='test -z "$ac_c_werror_flag"
7046 || test ! -s conftest.err'
7047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051 (exit $ac_status); }; } &&
7052 { ac_try
='test -s conftest.$ac_objext'
7053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057 (exit $ac_status); }; }; then
7058 echo "$as_me:$LINENO: result: yes" >&5
7059 echo "${ECHO_T}yes" >&6
7061 echo "$as_me: failed program was:" >&5
7062 sed 's/^/| /' conftest.
$ac_ext >&5
7065 echo "$as_me:$LINENO: result: no" >&5
7066 echo "${ECHO_T}no" >&6
7068 cat >>confdefs.h
<<\_ACEOF
7069 #define NO_IN6ADDR_ANY 1
7076 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7080 echo "$as_me: failed program was:" >&5
7081 sed 's/^/| /' conftest.
$ac_ext >&5
7083 echo "$as_me:$LINENO: result: no" >&5
7084 echo "${ECHO_T}no" >&6
7087 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7090 echo "$as_me:$LINENO: checking for library containing crypt" >&5
7091 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
7092 if test "${ac_cv_search_crypt+set}" = set; then
7093 echo $ECHO_N "(cached) $ECHO_C" >&6
7095 ac_func_search_save_LIBS
=$LIBS
7096 ac_cv_search_crypt
=no
7097 cat >conftest.
$ac_ext <<_ACEOF
7100 cat confdefs.h
>>conftest.
$ac_ext
7101 cat >>conftest.
$ac_ext <<_ACEOF
7102 /* end confdefs.h. */
7104 /* Override any gcc2 internal prototype to avoid an error. */
7108 /* We use char because int might match the return type of a gcc2
7109 builtin and then its argument prototype would still apply. */
7119 rm -f conftest.
$ac_objext conftest
$ac_exeext
7120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7121 (eval $ac_link) 2>conftest.er1
7123 grep -v '^ *+' conftest.er1
>conftest.err
7125 cat conftest.err
>&5
7126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); } &&
7128 { ac_try
='test -z "$ac_c_werror_flag"
7129 || test ! -s conftest.err'
7130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7134 (exit $ac_status); }; } &&
7135 { ac_try
='test -s conftest$ac_exeext'
7136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140 (exit $ac_status); }; }; then
7141 ac_cv_search_crypt
="none required"
7143 echo "$as_me: failed program was:" >&5
7144 sed 's/^/| /' conftest.
$ac_ext >&5
7147 rm -f conftest.err conftest.
$ac_objext \
7148 conftest
$ac_exeext conftest.
$ac_ext
7149 if test "$ac_cv_search_crypt" = no
; then
7150 for ac_lib
in crypt descrypt
; do
7151 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7152 cat >conftest.
$ac_ext <<_ACEOF
7155 cat confdefs.h
>>conftest.
$ac_ext
7156 cat >>conftest.
$ac_ext <<_ACEOF
7157 /* end confdefs.h. */
7159 /* Override any gcc2 internal prototype to avoid an error. */
7163 /* We use char because int might match the return type of a gcc2
7164 builtin and then its argument prototype would still apply. */
7174 rm -f conftest.
$ac_objext conftest
$ac_exeext
7175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7176 (eval $ac_link) 2>conftest.er1
7178 grep -v '^ *+' conftest.er1
>conftest.err
7180 cat conftest.err
>&5
7181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182 (exit $ac_status); } &&
7183 { ac_try
='test -z "$ac_c_werror_flag"
7184 || test ! -s conftest.err'
7185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189 (exit $ac_status); }; } &&
7190 { ac_try
='test -s conftest$ac_exeext'
7191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195 (exit $ac_status); }; }; then
7196 ac_cv_search_crypt
="-l$ac_lib"
7199 echo "$as_me: failed program was:" >&5
7200 sed 's/^/| /' conftest.
$ac_ext >&5
7203 rm -f conftest.err conftest.
$ac_objext \
7204 conftest
$ac_exeext conftest.
$ac_ext
7207 LIBS
=$ac_func_search_save_LIBS
7209 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
7210 echo "${ECHO_T}$ac_cv_search_crypt" >&6
7211 if test "$ac_cv_search_crypt" != no
; then
7212 test "$ac_cv_search_crypt" = "none required" || LIBS
="$ac_cv_search_crypt $LIBS"
7217 CRYPT_LIB
=$ac_cv_search_crypt
7219 if test "$CRYPT_LIB" = "none required"; then
7221 elif test "$CRYPT_LIB" = no
; then
7227 if test "$ac_cv_header_sys_wait_h" = yes -o "$ac_cv_header_wait_h" = yes; then
7235 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
7236 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
7237 if test "${gcc_cv_header_string+set}" = set; then
7238 echo $ECHO_N "(cached) $ECHO_C" >&6
7241 cat >conftest.
$ac_ext <<_ACEOF
7243 #include <strings.h>
7245 rm -f conftest.
$ac_objext
7246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7247 (eval $ac_compile) 2>conftest.er1
7249 grep -v '^ *+' conftest.er1
>conftest.err
7251 cat conftest.err
>&5
7252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253 (exit $ac_status); } &&
7254 { ac_try
='test -z "$ac_c_werror_flag"
7255 || test ! -s conftest.err'
7256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260 (exit $ac_status); }; } &&
7261 { ac_try
='test -s conftest.$ac_objext'
7262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266 (exit $ac_status); }; }; then
7267 gcc_cv_header_string
=yes
7269 echo "$as_me: failed program was:" >&5
7270 sed 's/^/| /' conftest.
$ac_ext >&5
7272 gcc_cv_header_string
=no
7274 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7277 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
7278 echo "${ECHO_T}$gcc_cv_header_string" >&6
7280 if test "$gcc_cv_header_string" = "yes"; then
7282 cat >>confdefs.h
<<\_ACEOF
7283 #define STRING_WITH_STRINGS 1
7288 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7289 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7290 if test "${ac_cv_c_bigendian+set}" = set; then
7291 echo $ECHO_N "(cached) $ECHO_C" >&6
7293 # See if sys/param.h defines the BYTE_ORDER macro.
7294 cat >conftest.
$ac_ext <<_ACEOF
7297 cat confdefs.h
>>conftest.
$ac_ext
7298 cat >>conftest.
$ac_ext <<_ACEOF
7299 /* end confdefs.h. */
7300 #include <sys/types.h>
7301 #include <sys/param.h>
7306 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7314 rm -f conftest.
$ac_objext
7315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7316 (eval $ac_compile) 2>conftest.er1
7318 grep -v '^ *+' conftest.er1
>conftest.err
7320 cat conftest.err
>&5
7321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322 (exit $ac_status); } &&
7323 { ac_try
='test -z "$ac_c_werror_flag"
7324 || test ! -s conftest.err'
7325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329 (exit $ac_status); }; } &&
7330 { ac_try
='test -s conftest.$ac_objext'
7331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7335 (exit $ac_status); }; }; then
7336 # It does; now see whether it defined to BIG_ENDIAN or not.
7337 cat >conftest.
$ac_ext <<_ACEOF
7340 cat confdefs.h
>>conftest.
$ac_ext
7341 cat >>conftest.
$ac_ext <<_ACEOF
7342 /* end confdefs.h. */
7343 #include <sys/types.h>
7344 #include <sys/param.h>
7349 #if BYTE_ORDER != BIG_ENDIAN
7357 rm -f conftest.
$ac_objext
7358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7359 (eval $ac_compile) 2>conftest.er1
7361 grep -v '^ *+' conftest.er1
>conftest.err
7363 cat conftest.err
>&5
7364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365 (exit $ac_status); } &&
7366 { ac_try
='test -z "$ac_c_werror_flag"
7367 || test ! -s conftest.err'
7368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7372 (exit $ac_status); }; } &&
7373 { ac_try
='test -s conftest.$ac_objext'
7374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7378 (exit $ac_status); }; }; then
7379 ac_cv_c_bigendian
=yes
7381 echo "$as_me: failed program was:" >&5
7382 sed 's/^/| /' conftest.
$ac_ext >&5
7384 ac_cv_c_bigendian
=no
7386 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7388 echo "$as_me: failed program was:" >&5
7389 sed 's/^/| /' conftest.
$ac_ext >&5
7391 # It does not; compile a test program.
7392 if test "$cross_compiling" = yes; then
7393 # try to guess the endianness by grepping values into an object file
7394 ac_cv_c_bigendian
=unknown
7395 cat >conftest.
$ac_ext <<_ACEOF
7398 cat confdefs.h
>>conftest.
$ac_ext
7399 cat >>conftest.
$ac_ext <<_ACEOF
7400 /* end confdefs.h. */
7401 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7402 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7403 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7404 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7405 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7406 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7410 _ascii (); _ebcdic ();
7415 rm -f conftest.
$ac_objext
7416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7417 (eval $ac_compile) 2>conftest.er1
7419 grep -v '^ *+' conftest.er1
>conftest.err
7421 cat conftest.err
>&5
7422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423 (exit $ac_status); } &&
7424 { ac_try
='test -z "$ac_c_werror_flag"
7425 || test ! -s conftest.err'
7426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430 (exit $ac_status); }; } &&
7431 { ac_try
='test -s conftest.$ac_objext'
7432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7436 (exit $ac_status); }; }; then
7437 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
7438 ac_cv_c_bigendian
=yes
7440 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
7441 if test "$ac_cv_c_bigendian" = unknown
; then
7442 ac_cv_c_bigendian
=no
7444 # finding both strings is unlikely to happen, but who knows?
7445 ac_cv_c_bigendian
=unknown
7449 echo "$as_me: failed program was:" >&5
7450 sed 's/^/| /' conftest.
$ac_ext >&5
7453 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7455 cat >conftest.
$ac_ext <<_ACEOF
7458 cat confdefs.h
>>conftest.
$ac_ext
7459 cat >>conftest.
$ac_ext <<_ACEOF
7460 /* end confdefs.h. */
7464 /* Are we little or big endian? From Harbison&Steele. */
7468 char c[sizeof (long)];
7471 exit (u.c[sizeof (long) - 1] == 1);
7474 rm -f conftest
$ac_exeext
7475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7476 (eval $ac_link) 2>&5
7478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7484 (exit $ac_status); }; }; then
7485 ac_cv_c_bigendian
=no
7487 echo "$as_me: program exited with status $ac_status" >&5
7488 echo "$as_me: failed program was:" >&5
7489 sed 's/^/| /' conftest.
$ac_ext >&5
7492 ac_cv_c_bigendian
=yes
7494 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7497 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7499 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7500 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7501 case $ac_cv_c_bigendian in
7504 cat >>confdefs.h
<<\_ACEOF
7505 #define WORDS_BIGENDIAN 1
7511 { { echo "$as_me:$LINENO: error: unknown endianness
7512 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7513 echo "$as_me: error: unknown endianness
7514 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7515 { (exit 1); exit 1; }; } ;;
7519 if test "${ac_cv_header_stdarg_h+set}" = set; then
7520 echo "$as_me:$LINENO: checking for stdarg.h" >&5
7521 echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
7522 if test "${ac_cv_header_stdarg_h+set}" = set; then
7523 echo $ECHO_N "(cached) $ECHO_C" >&6
7525 echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
7526 echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
7528 # Is the header compilable?
7529 echo "$as_me:$LINENO: checking stdarg.h usability" >&5
7530 echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6
7531 cat >conftest.
$ac_ext <<_ACEOF
7534 cat confdefs.h
>>conftest.
$ac_ext
7535 cat >>conftest.
$ac_ext <<_ACEOF
7536 /* end confdefs.h. */
7537 $ac_includes_default
7540 rm -f conftest.
$ac_objext
7541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7542 (eval $ac_compile) 2>conftest.er1
7544 grep -v '^ *+' conftest.er1
>conftest.err
7546 cat conftest.err
>&5
7547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548 (exit $ac_status); } &&
7549 { ac_try
='test -z "$ac_c_werror_flag"
7550 || test ! -s conftest.err'
7551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555 (exit $ac_status); }; } &&
7556 { ac_try
='test -s conftest.$ac_objext'
7557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561 (exit $ac_status); }; }; then
7562 ac_header_compiler
=yes
7564 echo "$as_me: failed program was:" >&5
7565 sed 's/^/| /' conftest.
$ac_ext >&5
7567 ac_header_compiler
=no
7569 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7570 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7571 echo "${ECHO_T}$ac_header_compiler" >&6
7573 # Is the header present?
7574 echo "$as_me:$LINENO: checking stdarg.h presence" >&5
7575 echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6
7576 cat >conftest.
$ac_ext <<_ACEOF
7579 cat confdefs.h
>>conftest.
$ac_ext
7580 cat >>conftest.
$ac_ext <<_ACEOF
7581 /* end confdefs.h. */
7584 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7585 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7587 grep -v '^ *+' conftest.er1
>conftest.err
7589 cat conftest.err
>&5
7590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591 (exit $ac_status); } >/dev
/null
; then
7592 if test -s conftest.err
; then
7593 ac_cpp_err
=$ac_c_preproc_warn_flag
7594 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7601 if test -z "$ac_cpp_err"; then
7602 ac_header_preproc
=yes
7604 echo "$as_me: failed program was:" >&5
7605 sed 's/^/| /' conftest.
$ac_ext >&5
7607 ac_header_preproc
=no
7609 rm -f conftest.err conftest.
$ac_ext
7610 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7611 echo "${ECHO_T}$ac_header_preproc" >&6
7613 # So? What about this header?
7614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7616 { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5
7617 echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7618 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5
7619 echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;}
7620 ac_header_preproc
=yes
7623 { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5
7624 echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;}
7625 { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5
7626 echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;}
7627 { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5
7628 echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;}
7629 { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5
7630 echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;}
7631 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
7632 echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
7633 { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5
7634 echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;}
7637 ## ------------------------------------ ##
7638 ## Report this to the charybdis lists. ##
7639 ## ------------------------------------ ##
7642 sed "s/^/$as_me: WARNING: /" >&2
7645 echo "$as_me:$LINENO: checking for stdarg.h" >&5
7646 echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
7647 if test "${ac_cv_header_stdarg_h+set}" = set; then
7648 echo $ECHO_N "(cached) $ECHO_C" >&6
7650 ac_cv_header_stdarg_h
=$ac_header_preproc
7652 echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
7653 echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
7656 if test $ac_cv_header_stdarg_h = yes; then
7659 { { echo "$as_me:$LINENO: error: ** stdarg.h could not be found - ircd-ratbox will not compile without it **" >&5
7660 echo "$as_me: error: ** stdarg.h could not be found - ircd-ratbox will not compile without it **" >&2;}
7661 { (exit 1); exit 1; }; }
7667 if test "$ac_cv_c_compiler_gnu" = yes; then
7669 echo "$as_me:$LINENO: checking for strlcpy" >&5
7670 echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6
7672 CFLAGS
="$CFLAGS -Wimplicit -Werror"
7674 cat >conftest.
$ac_ext <<_ACEOF
7677 cat confdefs.h
>>conftest.
$ac_ext
7678 cat >>conftest.
$ac_ext <<_ACEOF
7679 /* end confdefs.h. */
7685 char *a = malloc(6);
7686 strlcpy(a, "hello", 6);
7692 rm -f conftest.
$ac_objext conftest
$ac_exeext
7693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7694 (eval $ac_link) 2>conftest.er1
7696 grep -v '^ *+' conftest.er1
>conftest.err
7698 cat conftest.err
>&5
7699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700 (exit $ac_status); } &&
7701 { ac_try
='test -z "$ac_c_werror_flag"
7702 || test ! -s conftest.err'
7703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7707 (exit $ac_status); }; } &&
7708 { ac_try
='test -s conftest$ac_exeext'
7709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); }; }; then
7714 echo "$as_me:$LINENO: result: yes" >&5
7715 echo "${ECHO_T}yes" >&6
7717 cat >>confdefs.h
<<\_ACEOF
7718 #define HAVE_STRLCPY 1
7722 echo "$as_me: failed program was:" >&5
7723 sed 's/^/| /' conftest.
$ac_ext >&5
7725 echo "$as_me:$LINENO: result: no" >&5
7726 echo "${ECHO_T}no" >&6
7729 rm -f conftest.err conftest.
$ac_objext \
7730 conftest
$ac_exeext conftest.
$ac_ext
7732 echo "$as_me:$LINENO: checking for strlcat" >&5
7733 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
7734 cat >conftest.
$ac_ext <<_ACEOF
7737 cat confdefs.h
>>conftest.
$ac_ext
7738 cat >>conftest.
$ac_ext <<_ACEOF
7739 /* end confdefs.h. */
7745 char *a = malloc(6);
7747 strlcat(a, "hello", 6);
7753 rm -f conftest.
$ac_objext conftest
$ac_exeext
7754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7755 (eval $ac_link) 2>conftest.er1
7757 grep -v '^ *+' conftest.er1
>conftest.err
7759 cat conftest.err
>&5
7760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); } &&
7762 { ac_try
='test -z "$ac_c_werror_flag"
7763 || test ! -s conftest.err'
7764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 (exit $ac_status); }; } &&
7769 { ac_try
='test -s conftest$ac_exeext'
7770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774 (exit $ac_status); }; }; then
7775 echo "$as_me:$LINENO: result: yes" >&5
7776 echo "${ECHO_T}yes" >&6
7778 cat >>confdefs.h
<<\_ACEOF
7779 #define HAVE_STRLCAT 1
7783 echo "$as_me: failed program was:" >&5
7784 sed 's/^/| /' conftest.
$ac_ext >&5
7786 echo "$as_me:$LINENO: result: no" >&5
7787 echo "${ECHO_T}no" >&6
7790 rm -f conftest.err conftest.
$ac_objext \
7791 conftest
$ac_exeext conftest.
$ac_ext
7800 for ac_func
in strlcat strlcpy
7802 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7803 echo "$as_me:$LINENO: checking for $ac_func" >&5
7804 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7805 if eval "test \"\${$as_ac_var+set}\" = set"; then
7806 echo $ECHO_N "(cached) $ECHO_C" >&6
7808 cat >conftest.
$ac_ext <<_ACEOF
7811 cat confdefs.h
>>conftest.
$ac_ext
7812 cat >>conftest.
$ac_ext <<_ACEOF
7813 /* end confdefs.h. */
7814 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7815 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7816 #define $ac_func innocuous_$ac_func
7818 /* System header to define __stub macros and hopefully few prototypes,
7819 which can conflict with char $ac_func (); below.
7820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7821 <limits.h> exists even on freestanding compilers. */
7824 # include <limits.h>
7826 # include <assert.h>
7831 /* Override any gcc2 internal prototype to avoid an error. */
7836 /* We use char because int might match the return type of a gcc2
7837 builtin and then its argument prototype would still apply. */
7839 /* The GNU C library defines this for functions which it implements
7840 to always fail with ENOSYS. Some functions are actually named
7841 something starting with __ and the normal name is an alias. */
7842 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7845 char (*f) () = $ac_func;
7854 return f != $ac_func;
7859 rm -f conftest.
$ac_objext conftest
$ac_exeext
7860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7861 (eval $ac_link) 2>conftest.er1
7863 grep -v '^ *+' conftest.er1
>conftest.err
7865 cat conftest.err
>&5
7866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867 (exit $ac_status); } &&
7868 { ac_try
='test -z "$ac_c_werror_flag"
7869 || test ! -s conftest.err'
7870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874 (exit $ac_status); }; } &&
7875 { ac_try
='test -s conftest$ac_exeext'
7876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880 (exit $ac_status); }; }; then
7881 eval "$as_ac_var=yes"
7883 echo "$as_me: failed program was:" >&5
7884 sed 's/^/| /' conftest.
$ac_ext >&5
7886 eval "$as_ac_var=no"
7888 rm -f conftest.err conftest.
$ac_objext \
7889 conftest
$ac_exeext conftest.
$ac_ext
7891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7892 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7893 if test `eval echo '${'$as_ac_var'}'` = yes; then
7894 cat >>confdefs.h
<<_ACEOF
7895 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7904 echo "$as_me:$LINENO: checking for u_int32_t" >&5
7905 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
7906 if test "${ac_cv_type_u_int32_t+set}" = set; then
7907 echo $ECHO_N "(cached) $ECHO_C" >&6
7909 cat >conftest.
$ac_ext <<_ACEOF
7912 cat confdefs.h
>>conftest.
$ac_ext
7913 cat >>conftest.
$ac_ext <<_ACEOF
7914 /* end confdefs.h. */
7915 $ac_includes_default
7919 if ((u_int32_t *) 0)
7921 if (sizeof (u_int32_t))
7927 rm -f conftest.
$ac_objext
7928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7929 (eval $ac_compile) 2>conftest.er1
7931 grep -v '^ *+' conftest.er1
>conftest.err
7933 cat conftest.err
>&5
7934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935 (exit $ac_status); } &&
7936 { ac_try
='test -z "$ac_c_werror_flag"
7937 || test ! -s conftest.err'
7938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942 (exit $ac_status); }; } &&
7943 { ac_try
='test -s conftest.$ac_objext'
7944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948 (exit $ac_status); }; }; then
7949 ac_cv_type_u_int32_t
=yes
7951 echo "$as_me: failed program was:" >&5
7952 sed 's/^/| /' conftest.
$ac_ext >&5
7954 ac_cv_type_u_int32_t
=no
7956 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7958 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
7959 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
7960 if test $ac_cv_type_u_int32_t = yes; then
7964 echo "$as_me:$LINENO: checking for uint32_t" >&5
7965 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
7966 if test "${ac_cv_type_uint32_t+set}" = set; then
7967 echo $ECHO_N "(cached) $ECHO_C" >&6
7969 cat >conftest.
$ac_ext <<_ACEOF
7972 cat confdefs.h
>>conftest.
$ac_ext
7973 cat >>conftest.
$ac_ext <<_ACEOF
7974 /* end confdefs.h. */
7975 $ac_includes_default
7981 if (sizeof (uint32_t))
7987 rm -f conftest.
$ac_objext
7988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7989 (eval $ac_compile) 2>conftest.er1
7991 grep -v '^ *+' conftest.er1
>conftest.err
7993 cat conftest.err
>&5
7994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7995 (exit $ac_status); } &&
7996 { ac_try
='test -z "$ac_c_werror_flag"
7997 || test ! -s conftest.err'
7998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8002 (exit $ac_status); }; } &&
8003 { ac_try
='test -s conftest.$ac_objext'
8004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8008 (exit $ac_status); }; }; then
8009 ac_cv_type_uint32_t
=yes
8011 echo "$as_me: failed program was:" >&5
8012 sed 's/^/| /' conftest.
$ac_ext >&5
8014 ac_cv_type_uint32_t
=no
8016 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8018 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
8019 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
8020 if test $ac_cv_type_uint32_t = yes; then
8023 cat >>confdefs.h
<<\_ACEOF
8024 #define u_int32_t uint32_t
8030 { echo "$as_me:$LINENO: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&5
8031 echo "$as_me: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&2;}
8033 cat >>confdefs.h
<<\_ACEOF
8034 #define u_int32_t unsigned long int
8044 echo "$as_me:$LINENO: checking for u_int16_t" >&5
8045 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
8046 if test "${ac_cv_type_u_int16_t+set}" = set; then
8047 echo $ECHO_N "(cached) $ECHO_C" >&6
8049 cat >conftest.
$ac_ext <<_ACEOF
8052 cat confdefs.h
>>conftest.
$ac_ext
8053 cat >>conftest.
$ac_ext <<_ACEOF
8054 /* end confdefs.h. */
8055 $ac_includes_default
8059 if ((u_int16_t *) 0)
8061 if (sizeof (u_int16_t))
8067 rm -f conftest.
$ac_objext
8068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8069 (eval $ac_compile) 2>conftest.er1
8071 grep -v '^ *+' conftest.er1
>conftest.err
8073 cat conftest.err
>&5
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); } &&
8076 { ac_try
='test -z "$ac_c_werror_flag"
8077 || test ! -s conftest.err'
8078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); }; } &&
8083 { ac_try
='test -s conftest.$ac_objext'
8084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088 (exit $ac_status); }; }; then
8089 ac_cv_type_u_int16_t
=yes
8091 echo "$as_me: failed program was:" >&5
8092 sed 's/^/| /' conftest.
$ac_ext >&5
8094 ac_cv_type_u_int16_t
=no
8096 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8098 echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
8099 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
8100 if test $ac_cv_type_u_int16_t = yes; then
8104 echo "$as_me:$LINENO: checking for uint16_t" >&5
8105 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
8106 if test "${ac_cv_type_uint16_t+set}" = set; then
8107 echo $ECHO_N "(cached) $ECHO_C" >&6
8109 cat >conftest.
$ac_ext <<_ACEOF
8112 cat confdefs.h
>>conftest.
$ac_ext
8113 cat >>conftest.
$ac_ext <<_ACEOF
8114 /* end confdefs.h. */
8115 $ac_includes_default
8121 if (sizeof (uint16_t))
8127 rm -f conftest.
$ac_objext
8128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8129 (eval $ac_compile) 2>conftest.er1
8131 grep -v '^ *+' conftest.er1
>conftest.err
8133 cat conftest.err
>&5
8134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135 (exit $ac_status); } &&
8136 { ac_try
='test -z "$ac_c_werror_flag"
8137 || test ! -s conftest.err'
8138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8142 (exit $ac_status); }; } &&
8143 { ac_try
='test -s conftest.$ac_objext'
8144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); }; }; then
8149 ac_cv_type_uint16_t
=yes
8151 echo "$as_me: failed program was:" >&5
8152 sed 's/^/| /' conftest.
$ac_ext >&5
8154 ac_cv_type_uint16_t
=no
8156 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8158 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
8159 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
8160 if test $ac_cv_type_uint16_t = yes; then
8163 cat >>confdefs.h
<<\_ACEOF
8164 #define u_int16_t uint16_t
8170 { echo "$as_me:$LINENO: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&5
8171 echo "$as_me: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&2;}
8173 cat >>confdefs.h
<<\_ACEOF
8174 #define u_int16_t unsigned short int
8184 echo "$as_me:$LINENO: checking for in_port_t" >&5
8185 echo $ECHO_N "checking for in_port_t... $ECHO_C" >&6
8186 if test "${ac_cv_type_in_port_t+set}" = set; then
8187 echo $ECHO_N "(cached) $ECHO_C" >&6
8189 cat >conftest.
$ac_ext <<_ACEOF
8192 cat confdefs.h
>>conftest.
$ac_ext
8193 cat >>conftest.
$ac_ext <<_ACEOF
8194 /* end confdefs.h. */
8195 #include <sys/types.h>
8196 #include <netinet/in.h>
8201 if ((in_port_t *) 0)
8203 if (sizeof (in_port_t))
8209 rm -f conftest.
$ac_objext
8210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8211 (eval $ac_compile) 2>conftest.er1
8213 grep -v '^ *+' conftest.er1
>conftest.err
8215 cat conftest.err
>&5
8216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217 (exit $ac_status); } &&
8218 { ac_try
='test -z "$ac_c_werror_flag"
8219 || test ! -s conftest.err'
8220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224 (exit $ac_status); }; } &&
8225 { ac_try
='test -s conftest.$ac_objext'
8226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230 (exit $ac_status); }; }; then
8231 ac_cv_type_in_port_t
=yes
8233 echo "$as_me: failed program was:" >&5
8234 sed 's/^/| /' conftest.
$ac_ext >&5
8236 ac_cv_type_in_port_t
=no
8238 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8240 echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5
8241 echo "${ECHO_T}$ac_cv_type_in_port_t" >&6
8242 if test $ac_cv_type_in_port_t = yes; then
8246 cat >>confdefs.h
<<\_ACEOF
8247 #define in_port_t u_int16_t
8253 echo "$as_me:$LINENO: checking for sa_family_t" >&5
8254 echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
8255 if test "${ac_cv_type_sa_family_t+set}" = set; then
8256 echo $ECHO_N "(cached) $ECHO_C" >&6
8258 cat >conftest.
$ac_ext <<_ACEOF
8261 cat confdefs.h
>>conftest.
$ac_ext
8262 cat >>conftest.
$ac_ext <<_ACEOF
8263 /* end confdefs.h. */
8264 #include <sys/types.h>
8265 #include <sys/socket.h>
8270 if ((sa_family_t *) 0)
8272 if (sizeof (sa_family_t))
8278 rm -f conftest.
$ac_objext
8279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8280 (eval $ac_compile) 2>conftest.er1
8282 grep -v '^ *+' conftest.er1
>conftest.err
8284 cat conftest.err
>&5
8285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286 (exit $ac_status); } &&
8287 { ac_try
='test -z "$ac_c_werror_flag"
8288 || test ! -s conftest.err'
8289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); }; } &&
8294 { ac_try
='test -s conftest.$ac_objext'
8295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 (exit $ac_status); }; }; then
8300 ac_cv_type_sa_family_t
=yes
8302 echo "$as_me: failed program was:" >&5
8303 sed 's/^/| /' conftest.
$ac_ext >&5
8305 ac_cv_type_sa_family_t
=no
8307 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8309 echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
8310 echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6
8311 if test $ac_cv_type_sa_family_t = yes; then
8315 cat >>confdefs.h
<<\_ACEOF
8316 #define sa_family_t u_int16_t
8322 echo "$as_me:$LINENO: checking for uintptr_t" >&5
8323 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
8324 if test "${ac_cv_type_uintptr_t+set}" = set; then
8325 echo $ECHO_N "(cached) $ECHO_C" >&6
8327 cat >conftest.
$ac_ext <<_ACEOF
8330 cat confdefs.h
>>conftest.
$ac_ext
8331 cat >>conftest.
$ac_ext <<_ACEOF
8332 /* end confdefs.h. */
8333 $ac_includes_default
8337 if ((uintptr_t *) 0)
8339 if (sizeof (uintptr_t))
8345 rm -f conftest.
$ac_objext
8346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8347 (eval $ac_compile) 2>conftest.er1
8349 grep -v '^ *+' conftest.er1
>conftest.err
8351 cat conftest.err
>&5
8352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353 (exit $ac_status); } &&
8354 { ac_try
='test -z "$ac_c_werror_flag"
8355 || test ! -s conftest.err'
8356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360 (exit $ac_status); }; } &&
8361 { ac_try
='test -s conftest.$ac_objext'
8362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 (exit $ac_status); }; }; then
8367 ac_cv_type_uintptr_t
=yes
8369 echo "$as_me: failed program was:" >&5
8370 sed 's/^/| /' conftest.
$ac_ext >&5
8372 ac_cv_type_uintptr_t
=no
8374 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8376 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
8377 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
8378 if test $ac_cv_type_uintptr_t = yes; then
8380 cat >>confdefs.h
<<_ACEOF
8381 #define HAVE_UINTPTR_T 1
8394 for ac_func
in socketpair vsnprintf mmap gettimeofday strdup strndup
8396 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8397 echo "$as_me:$LINENO: checking for $ac_func" >&5
8398 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8399 if eval "test \"\${$as_ac_var+set}\" = set"; then
8400 echo $ECHO_N "(cached) $ECHO_C" >&6
8402 cat >conftest.
$ac_ext <<_ACEOF
8405 cat confdefs.h
>>conftest.
$ac_ext
8406 cat >>conftest.
$ac_ext <<_ACEOF
8407 /* end confdefs.h. */
8408 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8409 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8410 #define $ac_func innocuous_$ac_func
8412 /* System header to define __stub macros and hopefully few prototypes,
8413 which can conflict with char $ac_func (); below.
8414 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8415 <limits.h> exists even on freestanding compilers. */
8418 # include <limits.h>
8420 # include <assert.h>
8425 /* Override any gcc2 internal prototype to avoid an error. */
8430 /* We use char because int might match the return type of a gcc2
8431 builtin and then its argument prototype would still apply. */
8433 /* The GNU C library defines this for functions which it implements
8434 to always fail with ENOSYS. Some functions are actually named
8435 something starting with __ and the normal name is an alias. */
8436 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8439 char (*f) () = $ac_func;
8448 return f != $ac_func;
8453 rm -f conftest.
$ac_objext conftest
$ac_exeext
8454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8455 (eval $ac_link) 2>conftest.er1
8457 grep -v '^ *+' conftest.er1
>conftest.err
8459 cat conftest.err
>&5
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); } &&
8462 { ac_try
='test -z "$ac_c_werror_flag"
8463 || test ! -s conftest.err'
8464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); }; } &&
8469 { ac_try
='test -s conftest$ac_exeext'
8470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474 (exit $ac_status); }; }; then
8475 eval "$as_ac_var=yes"
8477 echo "$as_me: failed program was:" >&5
8478 sed 's/^/| /' conftest.
$ac_ext >&5
8480 eval "$as_ac_var=no"
8482 rm -f conftest.err conftest.
$ac_objext \
8483 conftest
$ac_exeext conftest.
$ac_ext
8485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8486 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8487 if test `eval echo '${'$as_ac_var'}'` = yes; then
8488 cat >>confdefs.h
<<_ACEOF
8489 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8496 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8497 # for constant arguments. Useless!
8498 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8499 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8500 if test "${ac_cv_working_alloca_h+set}" = set; then
8501 echo $ECHO_N "(cached) $ECHO_C" >&6
8503 cat >conftest.
$ac_ext <<_ACEOF
8506 cat confdefs.h
>>conftest.
$ac_ext
8507 cat >>conftest.
$ac_ext <<_ACEOF
8508 /* end confdefs.h. */
8513 char *p = (char *) alloca (2 * sizeof (int));
8518 rm -f conftest.
$ac_objext conftest
$ac_exeext
8519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8520 (eval $ac_link) 2>conftest.er1
8522 grep -v '^ *+' conftest.er1
>conftest.err
8524 cat conftest.err
>&5
8525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526 (exit $ac_status); } &&
8527 { ac_try
='test -z "$ac_c_werror_flag"
8528 || test ! -s conftest.err'
8529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); }; } &&
8534 { ac_try
='test -s conftest$ac_exeext'
8535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539 (exit $ac_status); }; }; then
8540 ac_cv_working_alloca_h
=yes
8542 echo "$as_me: failed program was:" >&5
8543 sed 's/^/| /' conftest.
$ac_ext >&5
8545 ac_cv_working_alloca_h
=no
8547 rm -f conftest.err conftest.
$ac_objext \
8548 conftest
$ac_exeext conftest.
$ac_ext
8550 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8551 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8552 if test $ac_cv_working_alloca_h = yes; then
8554 cat >>confdefs.h
<<\_ACEOF
8555 #define HAVE_ALLOCA_H 1
8560 echo "$as_me:$LINENO: checking for alloca" >&5
8561 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8562 if test "${ac_cv_func_alloca_works+set}" = set; then
8563 echo $ECHO_N "(cached) $ECHO_C" >&6
8565 cat >conftest.
$ac_ext <<_ACEOF
8568 cat confdefs.h
>>conftest.
$ac_ext
8569 cat >>conftest.
$ac_ext <<_ACEOF
8570 /* end confdefs.h. */
8572 # define alloca __builtin_alloca
8575 # include <malloc.h>
8576 # define alloca _alloca
8579 # include <alloca.h>
8584 # ifndef alloca /* predefined by HP cc +Olibcalls */
8595 char *p = (char *) alloca (1);
8600 rm -f conftest.
$ac_objext conftest
$ac_exeext
8601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8602 (eval $ac_link) 2>conftest.er1
8604 grep -v '^ *+' conftest.er1
>conftest.err
8606 cat conftest.err
>&5
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); } &&
8609 { ac_try
='test -z "$ac_c_werror_flag"
8610 || test ! -s conftest.err'
8611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 (exit $ac_status); }; } &&
8616 { ac_try
='test -s conftest$ac_exeext'
8617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621 (exit $ac_status); }; }; then
8622 ac_cv_func_alloca_works
=yes
8624 echo "$as_me: failed program was:" >&5
8625 sed 's/^/| /' conftest.
$ac_ext >&5
8627 ac_cv_func_alloca_works
=no
8629 rm -f conftest.err conftest.
$ac_objext \
8630 conftest
$ac_exeext conftest.
$ac_ext
8632 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8633 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8635 if test $ac_cv_func_alloca_works = yes; then
8637 cat >>confdefs.h
<<\_ACEOF
8638 #define HAVE_ALLOCA 1
8642 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8643 # that cause trouble. Some versions do not even contain alloca or
8644 # contain a buggy version. If you still want to use their alloca,
8645 # use ar to extract alloca.o from them instead of compiling alloca.c.
8647 ALLOCA
=alloca.
$ac_objext
8649 cat >>confdefs.h
<<\_ACEOF
8654 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8655 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8656 if test "${ac_cv_os_cray+set}" = set; then
8657 echo $ECHO_N "(cached) $ECHO_C" >&6
8659 cat >conftest.
$ac_ext <<_ACEOF
8662 cat confdefs.h
>>conftest.
$ac_ext
8663 cat >>conftest.
$ac_ext <<_ACEOF
8664 /* end confdefs.h. */
8665 #if defined(CRAY) && ! defined(CRAY2)
8672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8673 $EGREP "webecray" >/dev
/null
2>&1; then
8681 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8682 echo "${ECHO_T}$ac_cv_os_cray" >&6
8683 if test $ac_cv_os_cray = yes; then
8684 for ac_func
in _getb67 GETB67 getb67
; do
8685 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8686 echo "$as_me:$LINENO: checking for $ac_func" >&5
8687 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8688 if eval "test \"\${$as_ac_var+set}\" = set"; then
8689 echo $ECHO_N "(cached) $ECHO_C" >&6
8691 cat >conftest.
$ac_ext <<_ACEOF
8694 cat confdefs.h
>>conftest.
$ac_ext
8695 cat >>conftest.
$ac_ext <<_ACEOF
8696 /* end confdefs.h. */
8697 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8698 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8699 #define $ac_func innocuous_$ac_func
8701 /* System header to define __stub macros and hopefully few prototypes,
8702 which can conflict with char $ac_func (); below.
8703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8704 <limits.h> exists even on freestanding compilers. */
8707 # include <limits.h>
8709 # include <assert.h>
8714 /* Override any gcc2 internal prototype to avoid an error. */
8719 /* We use char because int might match the return type of a gcc2
8720 builtin and then its argument prototype would still apply. */
8722 /* The GNU C library defines this for functions which it implements
8723 to always fail with ENOSYS. Some functions are actually named
8724 something starting with __ and the normal name is an alias. */
8725 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8728 char (*f) () = $ac_func;
8737 return f != $ac_func;
8742 rm -f conftest.
$ac_objext conftest
$ac_exeext
8743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8744 (eval $ac_link) 2>conftest.er1
8746 grep -v '^ *+' conftest.er1
>conftest.err
8748 cat conftest.err
>&5
8749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750 (exit $ac_status); } &&
8751 { ac_try
='test -z "$ac_c_werror_flag"
8752 || test ! -s conftest.err'
8753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757 (exit $ac_status); }; } &&
8758 { ac_try
='test -s conftest$ac_exeext'
8759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); }; }; then
8764 eval "$as_ac_var=yes"
8766 echo "$as_me: failed program was:" >&5
8767 sed 's/^/| /' conftest.
$ac_ext >&5
8769 eval "$as_ac_var=no"
8771 rm -f conftest.err conftest.
$ac_objext \
8772 conftest
$ac_exeext conftest.
$ac_ext
8774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8775 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8776 if test `eval echo '${'$as_ac_var'}'` = yes; then
8778 cat >>confdefs.h
<<_ACEOF
8779 #define CRAY_STACKSEG_END $ac_func
8788 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8789 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8790 if test "${ac_cv_c_stack_direction+set}" = set; then
8791 echo $ECHO_N "(cached) $ECHO_C" >&6
8793 if test "$cross_compiling" = yes; then
8794 ac_cv_c_stack_direction
=0
8796 cat >conftest.
$ac_ext <<_ACEOF
8799 cat confdefs.h
>>conftest.
$ac_ext
8800 cat >>conftest.
$ac_ext <<_ACEOF
8801 /* end confdefs.h. */
8803 find_stack_direction ()
8805 static char *addr = 0;
8810 return find_stack_direction ();
8813 return (&dummy > addr) ? 1 : -1;
8819 exit (find_stack_direction () < 0);
8822 rm -f conftest
$ac_exeext
8823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8824 (eval $ac_link) 2>&5
8826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832 (exit $ac_status); }; }; then
8833 ac_cv_c_stack_direction
=1
8835 echo "$as_me: program exited with status $ac_status" >&5
8836 echo "$as_me: failed program was:" >&5
8837 sed 's/^/| /' conftest.
$ac_ext >&5
8840 ac_cv_c_stack_direction
=-1
8842 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8845 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8846 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8848 cat >>confdefs.h
<<_ACEOF
8849 #define STACK_DIRECTION $ac_cv_c_stack_direction
8857 echo "$as_me:$LINENO: checking for nanosleep" >&5
8858 echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6
8859 if test "${ac_cv_func_nanosleep+set}" = set; then
8860 echo $ECHO_N "(cached) $ECHO_C" >&6
8862 cat >conftest.
$ac_ext <<_ACEOF
8865 cat confdefs.h
>>conftest.
$ac_ext
8866 cat >>conftest.
$ac_ext <<_ACEOF
8867 /* end confdefs.h. */
8868 /* Define nanosleep to an innocuous variant, in case <limits.h> declares nanosleep.
8869 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8870 #define nanosleep innocuous_nanosleep
8872 /* System header to define __stub macros and hopefully few prototypes,
8873 which can conflict with char nanosleep (); below.
8874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8875 <limits.h> exists even on freestanding compilers. */
8878 # include <limits.h>
8880 # include <assert.h>
8885 /* Override any gcc2 internal prototype to avoid an error. */
8890 /* We use char because int might match the return type of a gcc2
8891 builtin and then its argument prototype would still apply. */
8893 /* The GNU C library defines this for functions which it implements
8894 to always fail with ENOSYS. Some functions are actually named
8895 something starting with __ and the normal name is an alias. */
8896 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
8899 char (*f) () = nanosleep;
8908 return f != nanosleep;
8913 rm -f conftest.
$ac_objext conftest
$ac_exeext
8914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8915 (eval $ac_link) 2>conftest.er1
8917 grep -v '^ *+' conftest.er1
>conftest.err
8919 cat conftest.err
>&5
8920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921 (exit $ac_status); } &&
8922 { ac_try
='test -z "$ac_c_werror_flag"
8923 || test ! -s conftest.err'
8924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 (exit $ac_status); }; } &&
8929 { ac_try
='test -s conftest$ac_exeext'
8930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934 (exit $ac_status); }; }; then
8935 ac_cv_func_nanosleep
=yes
8937 echo "$as_me: failed program was:" >&5
8938 sed 's/^/| /' conftest.
$ac_ext >&5
8940 ac_cv_func_nanosleep
=no
8942 rm -f conftest.err conftest.
$ac_objext \
8943 conftest
$ac_exeext conftest.
$ac_ext
8945 echo "$as_me:$LINENO: result: $ac_cv_func_nanosleep" >&5
8946 echo "${ECHO_T}$ac_cv_func_nanosleep" >&6
8947 if test $ac_cv_func_nanosleep = yes; then
8950 echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5
8951 echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6
8952 if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
8953 echo $ECHO_N "(cached) $ECHO_C" >&6
8955 ac_check_lib_save_LIBS
=$LIBS
8957 cat >conftest.
$ac_ext <<_ACEOF
8960 cat confdefs.h
>>conftest.
$ac_ext
8961 cat >>conftest.
$ac_ext <<_ACEOF
8962 /* end confdefs.h. */
8964 /* Override any gcc2 internal prototype to avoid an error. */
8968 /* We use char because int might match the return type of a gcc2
8969 builtin and then its argument prototype would still apply. */
8979 rm -f conftest.
$ac_objext conftest
$ac_exeext
8980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8981 (eval $ac_link) 2>conftest.er1
8983 grep -v '^ *+' conftest.er1
>conftest.err
8985 cat conftest.err
>&5
8986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987 (exit $ac_status); } &&
8988 { ac_try
='test -z "$ac_c_werror_flag"
8989 || test ! -s conftest.err'
8990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994 (exit $ac_status); }; } &&
8995 { ac_try
='test -s conftest$ac_exeext'
8996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000 (exit $ac_status); }; }; then
9001 ac_cv_lib_rt_nanosleep
=yes
9003 echo "$as_me: failed program was:" >&5
9004 sed 's/^/| /' conftest.
$ac_ext >&5
9006 ac_cv_lib_rt_nanosleep
=no
9008 rm -f conftest.err conftest.
$ac_objext \
9009 conftest
$ac_exeext conftest.
$ac_ext
9010 LIBS
=$ac_check_lib_save_LIBS
9012 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5
9013 echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6
9014 if test $ac_cv_lib_rt_nanosleep = yes; then
9017 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
9018 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
9019 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
9020 echo $ECHO_N "(cached) $ECHO_C" >&6
9022 ac_check_lib_save_LIBS
=$LIBS
9023 LIBS
="-lposix4 $LIBS"
9024 cat >conftest.
$ac_ext <<_ACEOF
9027 cat confdefs.h
>>conftest.
$ac_ext
9028 cat >>conftest.
$ac_ext <<_ACEOF
9029 /* end confdefs.h. */
9031 /* Override any gcc2 internal prototype to avoid an error. */
9035 /* We use char because int might match the return type of a gcc2
9036 builtin and then its argument prototype would still apply. */
9046 rm -f conftest.
$ac_objext conftest
$ac_exeext
9047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9048 (eval $ac_link) 2>conftest.er1
9050 grep -v '^ *+' conftest.er1
>conftest.err
9052 cat conftest.err
>&5
9053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9054 (exit $ac_status); } &&
9055 { ac_try
='test -z "$ac_c_werror_flag"
9056 || test ! -s conftest.err'
9057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061 (exit $ac_status); }; } &&
9062 { ac_try
='test -s conftest$ac_exeext'
9063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); }; }; then
9068 ac_cv_lib_posix4_nanosleep
=yes
9070 echo "$as_me: failed program was:" >&5
9071 sed 's/^/| /' conftest.
$ac_ext >&5
9073 ac_cv_lib_posix4_nanosleep
=no
9075 rm -f conftest.err conftest.
$ac_objext \
9076 conftest
$ac_exeext conftest.
$ac_ext
9077 LIBS
=$ac_check_lib_save_LIBS
9079 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
9080 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
9081 if test $ac_cv_lib_posix4_nanosleep = yes; then
9082 LIBS
="${LIBS} -lposix4"
9090 if test x
$ac_cv_func_nanosleep = xno
&& test x
$ac_cv_lib_posix4_nanosleep = xno
&& test x
$ac_cv_lib_rt_nanosleep = xno
9092 echo "$as_me:$LINENO: result: \"nanosleep not found..using select for delay\"" >&5
9093 echo "${ECHO_T}\"nanosleep not found..using select for delay\"" >&6
9096 cat >>confdefs.h
<<\_ACEOF
9097 #define HAVE_NANOSLEEP 1
9102 echo "$as_me:$LINENO: checking for OpenSSL" >&5
9103 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
9104 # Check whether --enable-openssl or --disable-openssl was given.
9105 if test "${enable_openssl+set}" = set; then
9106 enableval
="$enable_openssl"
9107 cf_enable_openssl
=$enableval
9109 cf_enable_openssl
="auto"
9112 if test "$cf_enable_openssl" != "no" ; then
9113 cf_openssl_basedir
=""
9114 if test "$cf_enable_openssl" != "auto" &&
9115 test "$cf_enable_openssl" != "yes" ; then
9116 cf_openssl_basedir
="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
9118 for dirs in /usr
/local
/ssl
/usr
/pkg
/usr
/local \
9119 /usr
/local
/openssl
; do
9120 if test -f "${dirs}/include/openssl/opensslv.h" ; then
9121 cf_openssl_basedir
="${dirs}"
9127 if test ! -z "$cf_openssl_basedir"; then
9128 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
9129 SSL_INCLUDES
="-I${cf_openssl_basedir}/include"
9130 SSL_LIBS
="-L${cf_openssl_basedir}/lib"
9132 cf_openssl_basedir
=""
9135 if test -f "/usr/include/openssl/opensslv.h" ; then
9136 cf_openssl_basedir
="/usr"
9140 if test ! -z "$cf_openssl_basedir"; then
9141 echo "$as_me:$LINENO: result: $cf_openssl_basedir" >&5
9142 echo "${ECHO_T}$cf_openssl_basedir" >&6
9143 cf_enable_openssl
="yes"
9145 echo "$as_me:$LINENO: result: not found. Specify a correct path?" >&5
9146 echo "${ECHO_T}not found. Specify a correct path?" >&6
9147 cf_enable_openssl
="no"
9149 unset cf_openssl_basedir
9151 echo "$as_me:$LINENO: result: disabled" >&5
9152 echo "${ECHO_T}disabled" >&6
9155 save_CPPFLAGS
="$CPPFLAGS"
9156 CPPFLAGS
="$CPPFLAGS $SSL_INCLUDES"
9158 LIBS
="$LIBS $SSL_LIBS"
9159 if test "$cf_enable_openssl" != no
; then
9160 echo "$as_me:$LINENO: checking for OpenSSL 0.9.6 or above" >&5
9161 echo $ECHO_N "checking for OpenSSL 0.9.6 or above... $ECHO_C" >&6
9162 if test "$cross_compiling" = yes; then
9163 cf_openssl_version_ok
=no
9165 cat >conftest.
$ac_ext <<_ACEOF
9168 cat confdefs.h
>>conftest.
$ac_ext
9169 cat >>conftest.
$ac_ext <<_ACEOF
9170 /* end confdefs.h. */
9171 #include <openssl/opensslv.h>
9176 if ( OPENSSL_VERSION_NUMBER >= 0x00906000)
9177 exit(0); else exit(1);
9182 rm -f conftest
$ac_exeext
9183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9184 (eval $ac_link) 2>&5
9186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); }; }; then
9193 cf_openssl_version_ok
=yes
9195 echo "$as_me: program exited with status $ac_status" >&5
9196 echo "$as_me: failed program was:" >&5
9197 sed 's/^/| /' conftest.
$ac_ext >&5
9200 cf_openssl_version_ok
=no
9202 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9205 if test "$cf_openssl_version_ok" = yes; then
9206 echo "$as_me:$LINENO: result: found" >&5
9207 echo "${ECHO_T}found" >&6
9212 CPPFLAGS
="$CPPFLAGS $SSL_LIBS"
9214 echo "$as_me:$LINENO: checking for RSA_free in -lcrypto" >&5
9215 echo $ECHO_N "checking for RSA_free in -lcrypto... $ECHO_C" >&6
9216 if test "${ac_cv_lib_crypto_RSA_free+set}" = set; then
9217 echo $ECHO_N "(cached) $ECHO_C" >&6
9219 ac_check_lib_save_LIBS
=$LIBS
9220 LIBS
="-lcrypto $LIBS"
9221 cat >conftest.
$ac_ext <<_ACEOF
9224 cat confdefs.h
>>conftest.
$ac_ext
9225 cat >>conftest.
$ac_ext <<_ACEOF
9226 /* end confdefs.h. */
9228 /* Override any gcc2 internal prototype to avoid an error. */
9232 /* We use char because int might match the return type of a gcc2
9233 builtin and then its argument prototype would still apply. */
9243 rm -f conftest.
$ac_objext conftest
$ac_exeext
9244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9245 (eval $ac_link) 2>conftest.er1
9247 grep -v '^ *+' conftest.er1
>conftest.err
9249 cat conftest.err
>&5
9250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251 (exit $ac_status); } &&
9252 { ac_try
='test -z "$ac_c_werror_flag"
9253 || test ! -s conftest.err'
9254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258 (exit $ac_status); }; } &&
9259 { ac_try
='test -s conftest$ac_exeext'
9260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264 (exit $ac_status); }; }; then
9265 ac_cv_lib_crypto_RSA_free
=yes
9267 echo "$as_me: failed program was:" >&5
9268 sed 's/^/| /' conftest.
$ac_ext >&5
9270 ac_cv_lib_crypto_RSA_free
=no
9272 rm -f conftest.err conftest.
$ac_objext \
9273 conftest
$ac_exeext conftest.
$ac_ext
9274 LIBS
=$ac_check_lib_save_LIBS
9276 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_RSA_free" >&5
9277 echo "${ECHO_T}$ac_cv_lib_crypto_RSA_free" >&6
9278 if test $ac_cv_lib_crypto_RSA_free = yes; then
9279 cat >>confdefs.h
<<_ACEOF
9280 #define HAVE_LIBCRYPTO 1
9283 LIBS
="-lcrypto $LIBS"
9287 SSL_LIBS
="$SSL_LIBS -lcrypto"
9288 SSL_SRCS_ENABLE
='$(SSL_SRCS)'
9290 echo "$as_me:$LINENO: result: no - OpenSSL support disabled" >&5
9291 echo "${ECHO_T}no - OpenSSL support disabled" >&6
9295 CPPFLAGS
="$save_CPPFLAGS"
9302 # Check whether --with-zlib-path or --without-zlib-path was given.
9303 if test "${with_zlib_path+set}" = set; then
9304 withval
="$with_zlib_path"
9305 LIBS
="$LIBS -L$withval"
9308 # Check whether --enable-zlib or --disable-zlib was given.
9309 if test "${enable_zlib+set}" = set; then
9310 enableval
="$enable_zlib"
9316 if test "$zlib" = yes; then
9318 if test "${ac_cv_header_zlib_h+set}" = set; then
9319 echo "$as_me:$LINENO: checking for zlib.h" >&5
9320 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
9321 if test "${ac_cv_header_zlib_h+set}" = set; then
9322 echo $ECHO_N "(cached) $ECHO_C" >&6
9324 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9325 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
9327 # Is the header compilable?
9328 echo "$as_me:$LINENO: checking zlib.h usability" >&5
9329 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
9330 cat >conftest.
$ac_ext <<_ACEOF
9333 cat confdefs.h
>>conftest.
$ac_ext
9334 cat >>conftest.
$ac_ext <<_ACEOF
9335 /* end confdefs.h. */
9336 $ac_includes_default
9339 rm -f conftest.
$ac_objext
9340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9341 (eval $ac_compile) 2>conftest.er1
9343 grep -v '^ *+' conftest.er1
>conftest.err
9345 cat conftest.err
>&5
9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347 (exit $ac_status); } &&
9348 { ac_try
='test -z "$ac_c_werror_flag"
9349 || test ! -s conftest.err'
9350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354 (exit $ac_status); }; } &&
9355 { ac_try
='test -s conftest.$ac_objext'
9356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360 (exit $ac_status); }; }; then
9361 ac_header_compiler
=yes
9363 echo "$as_me: failed program was:" >&5
9364 sed 's/^/| /' conftest.
$ac_ext >&5
9366 ac_header_compiler
=no
9368 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9369 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9370 echo "${ECHO_T}$ac_header_compiler" >&6
9372 # Is the header present?
9373 echo "$as_me:$LINENO: checking zlib.h presence" >&5
9374 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
9375 cat >conftest.
$ac_ext <<_ACEOF
9378 cat confdefs.h
>>conftest.
$ac_ext
9379 cat >>conftest.
$ac_ext <<_ACEOF
9380 /* end confdefs.h. */
9383 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9384 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9386 grep -v '^ *+' conftest.er1
>conftest.err
9388 cat conftest.err
>&5
9389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390 (exit $ac_status); } >/dev
/null
; then
9391 if test -s conftest.err
; then
9392 ac_cpp_err
=$ac_c_preproc_warn_flag
9393 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9400 if test -z "$ac_cpp_err"; then
9401 ac_header_preproc
=yes
9403 echo "$as_me: failed program was:" >&5
9404 sed 's/^/| /' conftest.
$ac_ext >&5
9406 ac_header_preproc
=no
9408 rm -f conftest.err conftest.
$ac_ext
9409 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9410 echo "${ECHO_T}$ac_header_preproc" >&6
9412 # So? What about this header?
9413 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9415 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9416 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9417 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
9418 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
9419 ac_header_preproc
=yes
9422 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
9423 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
9424 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
9425 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
9426 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
9427 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
9428 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
9429 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
9430 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
9431 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
9432 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
9433 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
9436 ## ------------------------------------ ##
9437 ## Report this to the charybdis lists. ##
9438 ## ------------------------------------ ##
9441 sed "s/^/$as_me: WARNING: /" >&2
9444 echo "$as_me:$LINENO: checking for zlib.h" >&5
9445 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
9446 if test "${ac_cv_header_zlib_h+set}" = set; then
9447 echo $ECHO_N "(cached) $ECHO_C" >&6
9449 ac_cv_header_zlib_h
=$ac_header_preproc
9451 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9452 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
9455 if test $ac_cv_header_zlib_h = yes; then
9457 echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
9458 echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6
9459 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
9460 echo $ECHO_N "(cached) $ECHO_C" >&6
9462 ac_check_lib_save_LIBS
=$LIBS
9464 cat >conftest.
$ac_ext <<_ACEOF
9467 cat confdefs.h
>>conftest.
$ac_ext
9468 cat >>conftest.
$ac_ext <<_ACEOF
9469 /* end confdefs.h. */
9471 /* Override any gcc2 internal prototype to avoid an error. */
9475 /* We use char because int might match the return type of a gcc2
9476 builtin and then its argument prototype would still apply. */
9477 char zlibVersion ();
9486 rm -f conftest.
$ac_objext conftest
$ac_exeext
9487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9488 (eval $ac_link) 2>conftest.er1
9490 grep -v '^ *+' conftest.er1
>conftest.err
9492 cat conftest.err
>&5
9493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494 (exit $ac_status); } &&
9495 { ac_try
='test -z "$ac_c_werror_flag"
9496 || test ! -s conftest.err'
9497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 (exit $ac_status); }; } &&
9502 { ac_try
='test -s conftest$ac_exeext'
9503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); }; }; then
9508 ac_cv_lib_z_zlibVersion
=yes
9510 echo "$as_me: failed program was:" >&5
9511 sed 's/^/| /' conftest.
$ac_ext >&5
9513 ac_cv_lib_z_zlibVersion
=no
9515 rm -f conftest.err conftest.
$ac_objext \
9516 conftest
$ac_exeext conftest.
$ac_ext
9517 LIBS
=$ac_check_lib_save_LIBS
9519 echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
9520 echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6
9521 if test $ac_cv_lib_z_zlibVersion = yes; then
9526 cat >>confdefs.h
<<\_ACEOF
9545 # Check whether --enable-poll or --disable-poll was given.
9546 if test "${enable_poll+set}" = set; then
9547 enableval
="$enable_poll"
9548 if test $enableval = yes; then
9549 SELECT_TYPE_EXPLICIT
="poll"
9556 # Check whether --enable-select or --disable-select was given.
9557 if test "${enable_select+set}" = set; then
9558 enableval
="$enable_select"
9559 if test $enableval = yes; then
9560 SELECT_TYPE_EXPLICIT
="select"
9567 # Check whether --enable-kqueue or --disable-kqueue was given.
9568 if test "${enable_kqueue+set}" = set; then
9569 enableval
="$enable_kqueue"
9570 if test $enableval = yes; then
9571 SELECT_TYPE_EXPLICIT
="kqueue"
9578 # Check whether --enable-devpoll or --disable-devpoll was given.
9579 if test "${enable_devpoll+set}" = set; then
9580 enableval
="$enable_devpoll"
9581 if test $enableval = yes; then
9582 SELECT_TYPE_EXPLICIT
="devpoll"
9585 for ac_header
in sys
/devpoll.h devpoll.h
9587 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9588 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9589 echo "$as_me:$LINENO: checking for $ac_header" >&5
9590 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9591 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9592 echo $ECHO_N "(cached) $ECHO_C" >&6
9594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9595 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9597 # Is the header compilable?
9598 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9599 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9600 cat >conftest.
$ac_ext <<_ACEOF
9603 cat confdefs.h
>>conftest.
$ac_ext
9604 cat >>conftest.
$ac_ext <<_ACEOF
9605 /* end confdefs.h. */
9606 $ac_includes_default
9607 #include <$ac_header>
9609 rm -f conftest.
$ac_objext
9610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9611 (eval $ac_compile) 2>conftest.er1
9613 grep -v '^ *+' conftest.er1
>conftest.err
9615 cat conftest.err
>&5
9616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617 (exit $ac_status); } &&
9618 { ac_try
='test -z "$ac_c_werror_flag"
9619 || test ! -s conftest.err'
9620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624 (exit $ac_status); }; } &&
9625 { ac_try
='test -s conftest.$ac_objext'
9626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); }; }; then
9631 ac_header_compiler
=yes
9633 echo "$as_me: failed program was:" >&5
9634 sed 's/^/| /' conftest.
$ac_ext >&5
9636 ac_header_compiler
=no
9638 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9639 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9640 echo "${ECHO_T}$ac_header_compiler" >&6
9642 # Is the header present?
9643 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9644 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9645 cat >conftest.
$ac_ext <<_ACEOF
9648 cat confdefs.h
>>conftest.
$ac_ext
9649 cat >>conftest.
$ac_ext <<_ACEOF
9650 /* end confdefs.h. */
9651 #include <$ac_header>
9653 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9654 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9656 grep -v '^ *+' conftest.er1
>conftest.err
9658 cat conftest.err
>&5
9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); } >/dev
/null
; then
9661 if test -s conftest.err
; then
9662 ac_cpp_err
=$ac_c_preproc_warn_flag
9663 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9670 if test -z "$ac_cpp_err"; then
9671 ac_header_preproc
=yes
9673 echo "$as_me: failed program was:" >&5
9674 sed 's/^/| /' conftest.
$ac_ext >&5
9676 ac_header_preproc
=no
9678 rm -f conftest.err conftest.
$ac_ext
9679 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9680 echo "${ECHO_T}$ac_header_preproc" >&6
9682 # So? What about this header?
9683 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9685 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9686 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9687 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9688 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9689 ac_header_preproc
=yes
9692 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9693 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9694 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9695 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9696 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9697 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9698 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9699 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9701 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9702 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9703 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9706 ## ------------------------------------ ##
9707 ## Report this to the charybdis lists. ##
9708 ## ------------------------------------ ##
9711 sed "s/^/$as_me: WARNING: /" >&2
9714 echo "$as_me:$LINENO: checking for $ac_header" >&5
9715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9717 echo $ECHO_N "(cached) $ECHO_C" >&6
9719 eval "$as_ac_Header=\$ac_header_preproc"
9721 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9722 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9725 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9726 cat >>confdefs.h
<<_ACEOF
9727 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9740 # Check whether --enable-epoll or --disable-epoll was given.
9741 if test "${enable_epoll+set}" = set; then
9742 enableval
="$enable_epoll"
9743 if test $enableval = yes; then
9744 SELECT_TYPE_EXPLICIT
="epoll"
9752 echo "$as_me:$LINENO: checking whether to modify confdir" >&5
9753 echo $ECHO_N "checking whether to modify confdir... $ECHO_C" >&6
9755 # Check whether --with-confdir or --without-confdir was given.
9756 if test "${with_confdir+set}" = set; then
9757 withval
="$with_confdir"
9758 confdir
=`echo $withval | sed 's/\/$//'`
9759 echo "$as_me:$LINENO: result: yes" >&5
9760 echo "${ECHO_T}yes" >&6
9762 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
9763 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9764 ac_define_dir
=`eval echo $confdir`
9765 ac_define_dir
=`eval echo $ac_define_dir`
9766 ETC_DIR
="$ac_define_dir"
9769 cat >>confdefs.h
<<_ACEOF
9770 #define ETC_DIR "$ac_define_dir"
9777 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9778 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
9779 eval echo \""$confdir"\"
9784 confdir
='${prefix}/etc'
9785 echo "$as_me:$LINENO: result: no" >&5
9786 echo "${ECHO_T}no" >&6
9788 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
9789 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9790 ac_define_dir
=`eval echo $confdir`
9791 ac_define_dir
=`eval echo $ac_define_dir`
9792 ETC_DIR
="$ac_define_dir"
9795 cat >>confdefs.h
<<_ACEOF
9796 #define ETC_DIR "$ac_define_dir"
9803 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9804 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
9805 eval echo \""$confdir"\"
9813 echo "$as_me:$LINENO: checking whether to modify logdir" >&5
9814 echo $ECHO_N "checking whether to modify logdir... $ECHO_C" >&6
9816 # Check whether --with-logdir or --without-logdir was given.
9817 if test "${with_logdir+set}" = set; then
9818 withval
="$with_logdir"
9819 logdir
=`echo $withval | sed 's/\/$//'`
9820 echo "$as_me:$LINENO: result: yes" >&5
9821 echo "${ECHO_T}yes" >&6
9823 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
9824 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9825 ac_define_dir
=`eval echo $logdir`
9826 ac_define_dir
=`eval echo $ac_define_dir`
9827 LOG_DIR
="$ac_define_dir"
9830 cat >>confdefs.h
<<_ACEOF
9831 #define LOG_DIR "$ac_define_dir"
9838 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9839 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
9840 eval echo \""$logdir"\"
9845 logdir
='${prefix}/logs'
9846 echo "$as_me:$LINENO: result: no" >&5
9847 echo "${ECHO_T}no" >&6
9849 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
9850 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9851 ac_define_dir
=`eval echo $logdir`
9852 ac_define_dir
=`eval echo $ac_define_dir`
9853 LOG_DIR
="$ac_define_dir"
9856 cat >>confdefs.h
<<_ACEOF
9857 #define LOG_DIR "$ac_define_dir"
9864 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9865 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
9866 eval echo \""$logdir"\"
9874 echo "$as_me:$LINENO: checking whether to modify helpdir" >&5
9875 echo $ECHO_N "checking whether to modify helpdir... $ECHO_C" >&6
9877 # Check whether --with-helpdir or --without-helpdir was given.
9878 if test "${with_helpdir+set}" = set; then
9879 withval
="$with_helpdir"
9880 helpdir
=`echo $withval | sed 's/\/$//'`
9881 echo "$as_me:$LINENO: result: yes" >&5
9882 echo "${ECHO_T}yes" >&6
9884 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
9885 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9886 ac_define_dir
=`eval echo $helpdir`
9887 ac_define_dir
=`eval echo $ac_define_dir`
9888 HELP_DIR
="$ac_define_dir"
9891 cat >>confdefs.h
<<_ACEOF
9892 #define HELP_DIR "$ac_define_dir"
9899 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9900 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
9901 eval echo \""$helpdir"\"
9906 helpdir
='${prefix}/help'
9907 echo "$as_me:$LINENO: result: no" >&5
9908 echo "${ECHO_T}no" >&6
9910 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
9911 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9912 ac_define_dir
=`eval echo $helpdir`
9913 ac_define_dir
=`eval echo $ac_define_dir`
9914 HELP_DIR
="$ac_define_dir"
9917 cat >>confdefs.h
<<_ACEOF
9918 #define HELP_DIR "$ac_define_dir"
9925 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9926 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
9927 eval echo \""$helpdir"\"
9935 echo "$as_me:$LINENO: checking whether to modify moduledir" >&5
9936 echo $ECHO_N "checking whether to modify moduledir... $ECHO_C" >&6
9938 # Check whether --with-moduledir or --without-moduledir was given.
9939 if test "${with_moduledir+set}" = set; then
9940 withval
="$with_moduledir"
9941 moduledir
=`echo $withval | sed 's/\/$//'`
9942 echo "$as_me:$LINENO: result: yes" >&5
9943 echo "${ECHO_T}yes" >&6
9945 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
9946 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9947 ac_define_dir
=`eval echo $moduledir`
9948 ac_define_dir
=`eval echo $ac_define_dir`
9949 MODULE_DIR
="$ac_define_dir"
9952 cat >>confdefs.h
<<_ACEOF
9953 #define MODULE_DIR "$ac_define_dir"
9960 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9961 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
9962 eval echo \""$moduledir"\"
9967 moduledir
='${prefix}/modules'
9968 echo "$as_me:$LINENO: result: no" >&5
9969 echo "${ECHO_T}no" >&6
9971 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
9972 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9973 ac_define_dir
=`eval echo $moduledir`
9974 ac_define_dir
=`eval echo $ac_define_dir`
9975 MODULE_DIR
="$ac_define_dir"
9978 cat >>confdefs.h
<<_ACEOF
9979 #define MODULE_DIR "$ac_define_dir"
9986 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9987 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
9988 eval echo \""$moduledir"\"
9995 if test ! -z "$SELECT_TYPE_EXPLICIT"; then
9996 SELECT_TYPE
="$SELECT_TYPE_EXPLICIT";
9997 echo "Forcing $SELECT_TYPE to be enabled"
10000 if test ! "x$use_select" = "xno"; then
10002 for ac_func
in select
10004 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10005 echo "$as_me:$LINENO: checking for $ac_func" >&5
10006 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10007 if eval "test \"\${$as_ac_var+set}\" = set"; then
10008 echo $ECHO_N "(cached) $ECHO_C" >&6
10010 cat >conftest.
$ac_ext <<_ACEOF
10013 cat confdefs.h
>>conftest.
$ac_ext
10014 cat >>conftest.
$ac_ext <<_ACEOF
10015 /* end confdefs.h. */
10016 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10017 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10018 #define $ac_func innocuous_$ac_func
10020 /* System header to define __stub macros and hopefully few prototypes,
10021 which can conflict with char $ac_func (); below.
10022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10023 <limits.h> exists even on freestanding compilers. */
10026 # include <limits.h>
10028 # include <assert.h>
10033 /* Override any gcc2 internal prototype to avoid an error. */
10038 /* We use char because int might match the return type of a gcc2
10039 builtin and then its argument prototype would still apply. */
10041 /* The GNU C library defines this for functions which it implements
10042 to always fail with ENOSYS. Some functions are actually named
10043 something starting with __ and the normal name is an alias. */
10044 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10047 char (*f) () = $ac_func;
10056 return f != $ac_func;
10061 rm -f conftest.
$ac_objext conftest
$ac_exeext
10062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10063 (eval $ac_link) 2>conftest.er1
10065 grep -v '^ *+' conftest.er1
>conftest.err
10067 cat conftest.err
>&5
10068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069 (exit $ac_status); } &&
10070 { ac_try
='test -z "$ac_c_werror_flag"
10071 || test ! -s conftest.err'
10072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10073 (eval $ac_try) 2>&5
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); }; } &&
10077 { ac_try
='test -s conftest$ac_exeext'
10078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10079 (eval $ac_try) 2>&5
10081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082 (exit $ac_status); }; }; then
10083 eval "$as_ac_var=yes"
10085 echo "$as_me: failed program was:" >&5
10086 sed 's/^/| /' conftest.
$ac_ext >&5
10088 eval "$as_ac_var=no"
10090 rm -f conftest.err conftest.
$ac_objext \
10091 conftest
$ac_exeext conftest.
$ac_ext
10093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10094 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10095 if test `eval echo '${'$as_ac_var'}'` = yes; then
10096 cat >>confdefs.h
<<_ACEOF
10097 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10105 if test "x$haveselect" = "xyes" ; then
10106 SELECT_TYPE
="select"
10110 if test ! "x$use_poll" = "xno"; then
10112 for ac_func
in poll
10114 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10115 echo "$as_me:$LINENO: checking for $ac_func" >&5
10116 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10117 if eval "test \"\${$as_ac_var+set}\" = set"; then
10118 echo $ECHO_N "(cached) $ECHO_C" >&6
10120 cat >conftest.
$ac_ext <<_ACEOF
10123 cat confdefs.h
>>conftest.
$ac_ext
10124 cat >>conftest.
$ac_ext <<_ACEOF
10125 /* end confdefs.h. */
10126 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10127 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10128 #define $ac_func innocuous_$ac_func
10130 /* System header to define __stub macros and hopefully few prototypes,
10131 which can conflict with char $ac_func (); below.
10132 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10133 <limits.h> exists even on freestanding compilers. */
10136 # include <limits.h>
10138 # include <assert.h>
10143 /* Override any gcc2 internal prototype to avoid an error. */
10148 /* We use char because int might match the return type of a gcc2
10149 builtin and then its argument prototype would still apply. */
10151 /* The GNU C library defines this for functions which it implements
10152 to always fail with ENOSYS. Some functions are actually named
10153 something starting with __ and the normal name is an alias. */
10154 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10157 char (*f) () = $ac_func;
10166 return f != $ac_func;
10171 rm -f conftest.
$ac_objext conftest
$ac_exeext
10172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10173 (eval $ac_link) 2>conftest.er1
10175 grep -v '^ *+' conftest.er1
>conftest.err
10177 cat conftest.err
>&5
10178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179 (exit $ac_status); } &&
10180 { ac_try
='test -z "$ac_c_werror_flag"
10181 || test ! -s conftest.err'
10182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10183 (eval $ac_try) 2>&5
10185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186 (exit $ac_status); }; } &&
10187 { ac_try
='test -s conftest$ac_exeext'
10188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10189 (eval $ac_try) 2>&5
10191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192 (exit $ac_status); }; }; then
10193 eval "$as_ac_var=yes"
10195 echo "$as_me: failed program was:" >&5
10196 sed 's/^/| /' conftest.
$ac_ext >&5
10198 eval "$as_ac_var=no"
10200 rm -f conftest.err conftest.
$ac_objext \
10201 conftest
$ac_exeext conftest.
$ac_ext
10203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10204 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10205 if test `eval echo '${'$as_ac_var'}'` = yes; then
10206 cat >>confdefs.h
<<_ACEOF
10207 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10215 if test "x$havepoll" = "xyes" ; then
10220 if test ! "x$use_devpoll" = "xno"; then
10221 echo "$as_me:$LINENO: checking for /dev/poll" >&5
10222 echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6
10223 if test -c "/dev/poll"; then
10224 echo "$as_me:$LINENO: result: yes" >&5
10225 echo "${ECHO_T}yes" >&6
10228 for ac_header
in devpoll.h sys
/devpoll.h
10230 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10232 echo "$as_me:$LINENO: checking for $ac_header" >&5
10233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10235 echo $ECHO_N "(cached) $ECHO_C" >&6
10237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10238 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10240 # Is the header compilable?
10241 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10242 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10243 cat >conftest.
$ac_ext <<_ACEOF
10246 cat confdefs.h
>>conftest.
$ac_ext
10247 cat >>conftest.
$ac_ext <<_ACEOF
10248 /* end confdefs.h. */
10249 $ac_includes_default
10250 #include <$ac_header>
10252 rm -f conftest.
$ac_objext
10253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10254 (eval $ac_compile) 2>conftest.er1
10256 grep -v '^ *+' conftest.er1
>conftest.err
10258 cat conftest.err
>&5
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); } &&
10261 { ac_try
='test -z "$ac_c_werror_flag"
10262 || test ! -s conftest.err'
10263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10264 (eval $ac_try) 2>&5
10266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267 (exit $ac_status); }; } &&
10268 { ac_try
='test -s conftest.$ac_objext'
10269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10270 (eval $ac_try) 2>&5
10272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273 (exit $ac_status); }; }; then
10274 ac_header_compiler
=yes
10276 echo "$as_me: failed program was:" >&5
10277 sed 's/^/| /' conftest.
$ac_ext >&5
10279 ac_header_compiler
=no
10281 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10282 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10283 echo "${ECHO_T}$ac_header_compiler" >&6
10285 # Is the header present?
10286 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10287 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10288 cat >conftest.
$ac_ext <<_ACEOF
10291 cat confdefs.h
>>conftest.
$ac_ext
10292 cat >>conftest.
$ac_ext <<_ACEOF
10293 /* end confdefs.h. */
10294 #include <$ac_header>
10296 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10297 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10299 grep -v '^ *+' conftest.er1
>conftest.err
10301 cat conftest.err
>&5
10302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303 (exit $ac_status); } >/dev
/null
; then
10304 if test -s conftest.err
; then
10305 ac_cpp_err
=$ac_c_preproc_warn_flag
10306 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10313 if test -z "$ac_cpp_err"; then
10314 ac_header_preproc
=yes
10316 echo "$as_me: failed program was:" >&5
10317 sed 's/^/| /' conftest.
$ac_ext >&5
10319 ac_header_preproc
=no
10321 rm -f conftest.err conftest.
$ac_ext
10322 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10323 echo "${ECHO_T}$ac_header_preproc" >&6
10325 # So? What about this header?
10326 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10328 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10329 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10330 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10331 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10332 ac_header_preproc
=yes
10335 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10336 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10337 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10338 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10339 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10340 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10341 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10342 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10343 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10344 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10345 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10346 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10349 ## ------------------------------------ ##
10350 ## Report this to the charybdis lists. ##
10351 ## ------------------------------------ ##
10354 sed "s/^/$as_me: WARNING: /" >&2
10357 echo "$as_me:$LINENO: checking for $ac_header" >&5
10358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10359 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10360 echo $ECHO_N "(cached) $ECHO_C" >&6
10362 eval "$as_ac_Header=\$ac_header_preproc"
10364 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10365 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10368 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10369 cat >>confdefs.h
<<_ACEOF
10370 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10377 SELECT_TYPE
="devpoll"
10379 echo "$as_me:$LINENO: result: no" >&5
10380 echo "${ECHO_T}no" >&6
10384 if test ! "x$use_kqueue" = "xno"; then
10386 for ac_func
in kevent
10388 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10389 echo "$as_me:$LINENO: checking for $ac_func" >&5
10390 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10391 if eval "test \"\${$as_ac_var+set}\" = set"; then
10392 echo $ECHO_N "(cached) $ECHO_C" >&6
10394 cat >conftest.
$ac_ext <<_ACEOF
10397 cat confdefs.h
>>conftest.
$ac_ext
10398 cat >>conftest.
$ac_ext <<_ACEOF
10399 /* end confdefs.h. */
10400 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10402 #define $ac_func innocuous_$ac_func
10404 /* System header to define __stub macros and hopefully few prototypes,
10405 which can conflict with char $ac_func (); below.
10406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10407 <limits.h> exists even on freestanding compilers. */
10410 # include <limits.h>
10412 # include <assert.h>
10417 /* Override any gcc2 internal prototype to avoid an error. */
10422 /* We use char because int might match the return type of a gcc2
10423 builtin and then its argument prototype would still apply. */
10425 /* The GNU C library defines this for functions which it implements
10426 to always fail with ENOSYS. Some functions are actually named
10427 something starting with __ and the normal name is an alias. */
10428 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10431 char (*f) () = $ac_func;
10440 return f != $ac_func;
10445 rm -f conftest.
$ac_objext conftest
$ac_exeext
10446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10447 (eval $ac_link) 2>conftest.er1
10449 grep -v '^ *+' conftest.er1
>conftest.err
10451 cat conftest.err
>&5
10452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453 (exit $ac_status); } &&
10454 { ac_try
='test -z "$ac_c_werror_flag"
10455 || test ! -s conftest.err'
10456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10457 (eval $ac_try) 2>&5
10459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460 (exit $ac_status); }; } &&
10461 { ac_try
='test -s conftest$ac_exeext'
10462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10463 (eval $ac_try) 2>&5
10465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10466 (exit $ac_status); }; }; then
10467 eval "$as_ac_var=yes"
10469 echo "$as_me: failed program was:" >&5
10470 sed 's/^/| /' conftest.
$ac_ext >&5
10472 eval "$as_ac_var=no"
10474 rm -f conftest.err conftest.
$ac_objext \
10475 conftest
$ac_exeext conftest.
$ac_ext
10477 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10478 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10479 if test `eval echo '${'$as_ac_var'}'` = yes; then
10480 cat >>confdefs.h
<<_ACEOF
10481 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10489 if test "x$havekqueue" = "xyes" ; then
10490 SELECT_TYPE
="kqueue"
10494 if test ! "x$use_epoll" = "xno"; then
10496 for ac_func
in epoll_ctl
10498 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10499 echo "$as_me:$LINENO: checking for $ac_func" >&5
10500 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10501 if eval "test \"\${$as_ac_var+set}\" = set"; then
10502 echo $ECHO_N "(cached) $ECHO_C" >&6
10504 cat >conftest.
$ac_ext <<_ACEOF
10507 cat confdefs.h
>>conftest.
$ac_ext
10508 cat >>conftest.
$ac_ext <<_ACEOF
10509 /* end confdefs.h. */
10510 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10511 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10512 #define $ac_func innocuous_$ac_func
10514 /* System header to define __stub macros and hopefully few prototypes,
10515 which can conflict with char $ac_func (); below.
10516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10517 <limits.h> exists even on freestanding compilers. */
10520 # include <limits.h>
10522 # include <assert.h>
10527 /* Override any gcc2 internal prototype to avoid an error. */
10532 /* We use char because int might match the return type of a gcc2
10533 builtin and then its argument prototype would still apply. */
10535 /* The GNU C library defines this for functions which it implements
10536 to always fail with ENOSYS. Some functions are actually named
10537 something starting with __ and the normal name is an alias. */
10538 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10541 char (*f) () = $ac_func;
10550 return f != $ac_func;
10555 rm -f conftest.
$ac_objext conftest
$ac_exeext
10556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10557 (eval $ac_link) 2>conftest.er1
10559 grep -v '^ *+' conftest.er1
>conftest.err
10561 cat conftest.err
>&5
10562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563 (exit $ac_status); } &&
10564 { ac_try
='test -z "$ac_c_werror_flag"
10565 || test ! -s conftest.err'
10566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10567 (eval $ac_try) 2>&5
10569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570 (exit $ac_status); }; } &&
10571 { ac_try
='test -s conftest$ac_exeext'
10572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10573 (eval $ac_try) 2>&5
10575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576 (exit $ac_status); }; }; then
10577 eval "$as_ac_var=yes"
10579 echo "$as_me: failed program was:" >&5
10580 sed 's/^/| /' conftest.
$ac_ext >&5
10582 eval "$as_ac_var=no"
10584 rm -f conftest.err conftest.
$ac_objext \
10585 conftest
$ac_exeext conftest.
$ac_ext
10587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10588 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10589 if test `eval echo '${'$as_ac_var'}'` = yes; then
10590 cat >>confdefs.h
<<_ACEOF
10591 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10599 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
10600 if test "x$haveepoll" = "xyes" ; then
10601 echo "$as_me:$LINENO: checking for epoll support in kernel" >&5
10602 echo $ECHO_N "checking for epoll support in kernel... $ECHO_C" >&6
10603 if test "$cross_compiling" = yes; then
10604 echo "$as_me:$LINENO: result: no" >&5
10605 echo "${ECHO_T}no" >&6
10607 cat >conftest.
$ac_ext <<_ACEOF
10610 cat confdefs.h
>>conftest.
$ac_ext
10611 cat >>conftest.
$ac_ext <<_ACEOF
10612 /* end confdefs.h. */
10613 #include <stdint.h>
10614 #include <sys/param.h>
10615 #include <sys/types.h>
10616 #include <sys/epoll.h>
10617 #include <sys/syscall.h>
10618 #include <unistd.h>
10621 main(int argc, char **argv)
10625 epfd = epoll_create(256);
10626 exit (epfd == -1 ? 1 : 0);
10629 rm -f conftest
$ac_exeext
10630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10631 (eval $ac_link) 2>&5
10633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10636 (eval $ac_try) 2>&5
10638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639 (exit $ac_status); }; }; then
10640 echo "$as_me:$LINENO: result: yes" >&5
10641 echo "${ECHO_T}yes" >&6
10643 cat >>confdefs.h
<<\_ACEOF
10644 #define HAVE_EPOLL 1
10647 SELECT_TYPE
="epoll"
10649 echo "$as_me: program exited with status $ac_status" >&5
10650 echo "$as_me: failed program was:" >&5
10651 sed 's/^/| /' conftest.
$ac_ext >&5
10653 ( exit $ac_status )
10654 echo "$as_me:$LINENO: result: no" >&5
10655 echo "${ECHO_T}no" >&6
10657 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10662 haveepollsyscall
=no
10664 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
10665 if test "x$haveepoll" = "xno" ; then
10666 echo "$as_me:$LINENO: checking for epoll system call" >&5
10667 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
10668 if test "$cross_compiling" = yes; then
10669 echo "$as_me:$LINENO: result: no" >&5
10670 echo "${ECHO_T}no" >&6
10672 cat >conftest.
$ac_ext <<_ACEOF
10675 cat confdefs.h
>>conftest.
$ac_ext
10676 cat >>conftest.
$ac_ext <<_ACEOF
10677 /* end confdefs.h. */
10678 #include <stdint.h>
10679 #include <sys/param.h>
10680 #include <sys/types.h>
10681 #include <sys/epoll.h>
10682 #include <sys/syscall.h>
10683 #include <unistd.h>
10686 epoll_create(int size)
10688 return (syscall(__NR_epoll_create, size));
10692 main(int argc, char **argv)
10696 epfd = epoll_create(256);
10697 exit (epfd == -1 ? 1 : 0);
10700 rm -f conftest
$ac_exeext
10701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10702 (eval $ac_link) 2>&5
10704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10707 (eval $ac_try) 2>&5
10709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710 (exit $ac_status); }; }; then
10711 echo "$as_me:$LINENO: result: yes" >&5
10712 echo "${ECHO_T}yes" >&6
10714 cat >>confdefs.h
<<\_ACEOF
10715 #define HAVE_EPOLL 1
10718 SELECT_TYPE
="epoll"
10720 echo "$as_me: program exited with status $ac_status" >&5
10721 echo "$as_me: failed program was:" >&5
10722 sed 's/^/| /' conftest.
$ac_ext >&5
10724 ( exit $ac_status )
10725 echo "$as_me:$LINENO: result: no" >&5
10726 echo "${ECHO_T}no" >&6
10728 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10737 if test -z "$SELECT_TYPE"; then
10738 { { echo "$as_me:$LINENO: error: Unable to find a usable IO interface" >&5
10739 echo "$as_me: error: Unable to find a usable IO interface" >&2;}
10740 { (exit 1); exit 1; }; }
10743 echo "Using $SELECT_TYPE for select loop."
10746 cat >>confdefs.h
<<_ACEOF
10747 #define SELECT_TYPE "$SELECT_TYPE"
10754 # Check whether --enable-assert or --disable-assert was given.
10755 if test "${enable_assert+set}" = set; then
10756 enableval
="$enable_assert"
10762 if test "$assert" = no
; then
10764 cat >>confdefs.h
<<\_ACEOF
10768 elif test "$assert" = soft
; then
10770 cat >>confdefs.h
<<\_ACEOF
10771 #define SOFT_ASSERT 1
10775 cat >>confdefs.h
<<\_ACEOF
10779 elif test "$assert" = yes; then
10783 echo "$as_me:$LINENO: checking if you want IO Debugging hooks" >&5
10784 echo $ECHO_N "checking if you want IO Debugging hooks... $ECHO_C" >&6
10785 # Check whether --enable-iodebug or --disable-iodebug was given.
10786 if test "${enable_iodebug+set}" = set; then
10787 enableval
="$enable_iodebug"
10793 if test "$iodebug" = yes; then
10795 cat >>confdefs.h
<<\_ACEOF
10796 #define USE_IODEBUG_HOOKS 1
10799 echo "$as_me:$LINENO: result: yes" >&5
10800 echo "${ECHO_T}yes" >&6
10802 echo "$as_me:$LINENO: result: no" >&5
10803 echo "${ECHO_T}no" >&6
10807 echo "$as_me:$LINENO: checking if you want to do a profile build" >&5
10808 echo $ECHO_N "checking if you want to do a profile build... $ECHO_C" >&6
10809 # Check whether --enable-profile or --disable-profile was given.
10810 if test "${enable_profile+set}" = set; then
10811 enableval
="$enable_profile"
10817 if test "$profile" = yes; then
10818 if test "$ac_cv_c_compiler_gnu" = yes; then
10819 IRC_CFLAGS
="$IRC_CFLAGS -pg"
10820 echo "$as_me:$LINENO: result: yes, adding -pg" >&5
10821 echo "${ECHO_T}yes, adding -pg" >&6
10823 cat >>confdefs.h
<<\_ACEOF
10824 #define CHARYBDIS_PROFILE 1
10828 echo "$as_me:$LINENO: result: no, profile builds only work with gcc" >&5
10829 echo "${ECHO_T}no, profile builds only work with gcc" >&6
10832 echo "$as_me:$LINENO: result: no" >&5
10833 echo "${ECHO_T}no" >&6
10836 # Check whether --enable-balloc or --disable-balloc was given.
10837 if test "${enable_balloc+set}" = set; then
10838 enableval
="$enable_balloc"
10844 if test "$balloc" = no
; then
10846 cat >>confdefs.h
<<\_ACEOF
10852 # Check whether --enable-ricer-hashing or --disable-ricer-hashing was given.
10853 if test "${enable_ricer_hashing+set}" = set; then
10854 enableval
="$enable_ricer_hashing"
10855 ricer_hashing
=$enableval
10862 if test "$ricer_hashing" = "yes"; then
10864 cat >>confdefs.h
<<\_ACEOF
10865 #define RICER_HASHING 1
10868 FNVHASH_S
="fnvhash.s"
10873 # Check whether --enable-small-net or --disable-small-net was given.
10874 if test "${enable_small_net+set}" = set; then
10875 enableval
="$enable_small_net"
10876 small_net
=$enableval
10881 if test "$small_net" = yes; then
10883 cat >>confdefs.h
<<\_ACEOF
10884 #define NICKNAMEHISTORYLENGTH 1500
10888 cat >>confdefs.h
<<\_ACEOF
10889 #define CHANNEL_HEAP_SIZE 256
10893 cat >>confdefs.h
<<\_ACEOF
10894 #define BAN_HEAP_SIZE 128
10898 cat >>confdefs.h
<<\_ACEOF
10899 #define CLIENT_HEAP_SIZE 256
10903 cat >>confdefs.h
<<\_ACEOF
10904 #define LCLIENT_HEAP_SIZE 128
10908 cat >>confdefs.h
<<\_ACEOF
10909 #define PCLIENT_HEAP_SIZE 32
10913 cat >>confdefs.h
<<\_ACEOF
10914 #define USER_HEAP_SIZE 128
10918 cat >>confdefs.h
<<\_ACEOF
10919 #define DNODE_HEAP_SIZE 256
10923 cat >>confdefs.h
<<\_ACEOF
10924 #define TOPIC_HEAP_SIZE 256
10928 cat >>confdefs.h
<<\_ACEOF
10929 #define LINEBUF_HEAP_SIZE 128
10933 cat >>confdefs.h
<<\_ACEOF
10934 #define MEMBER_HEAP_SIZE 256
10938 cat >>confdefs.h
<<\_ACEOF
10939 #define ND_HEAP_SIZE 128
10943 cat >>confdefs.h
<<\_ACEOF
10944 #define CONFITEM_HEAP_SIZE 128
10948 cat >>confdefs.h
<<\_ACEOF
10949 #define MONITOR_HEAP_SIZE 128
10954 cat >>confdefs.h
<<\_ACEOF
10955 #define NICKNAMEHISTORYLENGTH 15000
10959 cat >>confdefs.h
<<\_ACEOF
10960 #define CHANNEL_HEAP_SIZE 8192
10964 cat >>confdefs.h
<<\_ACEOF
10965 #define BAN_HEAP_SIZE 4096
10969 cat >>confdefs.h
<<\_ACEOF
10970 #define CLIENT_HEAP_SIZE 8192
10974 cat >>confdefs.h
<<\_ACEOF
10975 #define LCLIENT_HEAP_SIZE 1024
10979 cat >>confdefs.h
<<\_ACEOF
10980 #define PCLIENT_HEAP_SIZE 256
10984 cat >>confdefs.h
<<\_ACEOF
10985 #define USER_HEAP_SIZE 8192
10989 cat >>confdefs.h
<<\_ACEOF
10990 #define DNODE_HEAP_SIZE 8192
10994 cat >>confdefs.h
<<\_ACEOF
10995 #define TOPIC_HEAP_SIZE 4096
10999 cat >>confdefs.h
<<\_ACEOF
11000 #define LINEBUF_HEAP_SIZE 2048
11004 cat >>confdefs.h
<<\_ACEOF
11005 #define MEMBER_HEAP_SIZE 32768
11009 cat >>confdefs.h
<<\_ACEOF
11010 #define ND_HEAP_SIZE 512
11014 cat >>confdefs.h
<<\_ACEOF
11015 #define CONFITEM_HEAP_SIZE 256
11019 cat >>confdefs.h
<<\_ACEOF
11020 #define MONITOR_HEAP_SIZE 1024
11026 # Check whether --with-nicklen or --without-nicklen was given.
11027 if test "${with_nicklen+set}" = set; then
11028 withval
="$with_nicklen"
11030 if test $withval -ge 50; then
11032 { echo "$as_me:$LINENO: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&5
11033 echo "$as_me: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&2;}
11043 # Check whether --with-topiclen or --without-topiclen was given.
11044 if test "${with_topiclen+set}" = set; then
11045 withval
="$with_topiclen"
11047 if test $withval -ge 390; then
11049 { echo "$as_me:$LINENO: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&5
11050 echo "$as_me: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&2;}
11060 # Check whether --with-maxclients or --without-maxclients was given.
11061 if test "${with_maxclients+set}" = set; then
11062 withval
="$with_maxclients"
11063 MAX_CLIENTS
="$withval"
11069 if test "$MAX_CLIENTS" = yes; then
11073 if test $MAX_CLIENTS -gt 65536; then
11075 { echo "$as_me:$LINENO: WARNING: Max connections cannot be larger than 65536!" >&5
11076 echo "$as_me: WARNING: Max connections cannot be larger than 65536!" >&2;}
11080 cat >>confdefs.h
<<_ACEOF
11081 #define TOPICLEN ${TOPICLEN}
11085 cat >>confdefs.h
<<_ACEOF
11086 #define NICKLEN (${NICKLEN}+1)
11090 cat >>confdefs.h
<<_ACEOF
11091 #define MAX_CLIENTS ${MAX_CLIENTS}
11095 # Check whether --enable-shared-modules or --disable-shared-modules was given.
11096 if test "${enable_shared_modules+set}" = set; then
11097 enableval
="$enable_shared_modules"
11098 shared_modules
=$enableval
11100 shared_modules
="yes"
11103 if test "$shared_modules" = yes; then
11105 if test "$CYGWIN" = yes; then
11106 { echo "$as_me:$LINENO: WARNING: disabling shared modules; Cygwin is at present unable to build them." >&5
11107 echo "$as_me: WARNING: disabling shared modules; Cygwin is at present unable to build them." >&2;}
11108 shared_modules
="no"
11111 if test "$CC" = tcc
-a "$TenDRA" = "no"; then
11112 { echo "$as_me:$LINENO: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&5
11113 echo "$as_me: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&2;}
11114 shared_modules
="no"
11118 if test "$shared_modules" = yes; then
11119 DYNLINK_C
=dynlink.c
11121 for ac_header
in dlfcn.h
11123 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11125 echo "$as_me:$LINENO: checking for $ac_header" >&5
11126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11127 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11128 echo $ECHO_N "(cached) $ECHO_C" >&6
11130 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11131 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11133 # Is the header compilable?
11134 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11135 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11136 cat >conftest.
$ac_ext <<_ACEOF
11139 cat confdefs.h
>>conftest.
$ac_ext
11140 cat >>conftest.
$ac_ext <<_ACEOF
11141 /* end confdefs.h. */
11142 $ac_includes_default
11143 #include <$ac_header>
11145 rm -f conftest.
$ac_objext
11146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11147 (eval $ac_compile) 2>conftest.er1
11149 grep -v '^ *+' conftest.er1
>conftest.err
11151 cat conftest.err
>&5
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); } &&
11154 { ac_try
='test -z "$ac_c_werror_flag"
11155 || test ! -s conftest.err'
11156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11157 (eval $ac_try) 2>&5
11159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11160 (exit $ac_status); }; } &&
11161 { ac_try
='test -s conftest.$ac_objext'
11162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11163 (eval $ac_try) 2>&5
11165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166 (exit $ac_status); }; }; then
11167 ac_header_compiler
=yes
11169 echo "$as_me: failed program was:" >&5
11170 sed 's/^/| /' conftest.
$ac_ext >&5
11172 ac_header_compiler
=no
11174 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11175 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11176 echo "${ECHO_T}$ac_header_compiler" >&6
11178 # Is the header present?
11179 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11180 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11181 cat >conftest.
$ac_ext <<_ACEOF
11184 cat confdefs.h
>>conftest.
$ac_ext
11185 cat >>conftest.
$ac_ext <<_ACEOF
11186 /* end confdefs.h. */
11187 #include <$ac_header>
11189 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11190 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11192 grep -v '^ *+' conftest.er1
>conftest.err
11194 cat conftest.err
>&5
11195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196 (exit $ac_status); } >/dev
/null
; then
11197 if test -s conftest.err
; then
11198 ac_cpp_err
=$ac_c_preproc_warn_flag
11199 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11206 if test -z "$ac_cpp_err"; then
11207 ac_header_preproc
=yes
11209 echo "$as_me: failed program was:" >&5
11210 sed 's/^/| /' conftest.
$ac_ext >&5
11212 ac_header_preproc
=no
11214 rm -f conftest.err conftest.
$ac_ext
11215 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11216 echo "${ECHO_T}$ac_header_preproc" >&6
11218 # So? What about this header?
11219 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11221 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11222 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11223 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11224 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11225 ac_header_preproc
=yes
11228 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11229 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11230 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11231 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11232 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11233 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11234 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11235 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11236 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11237 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11238 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11239 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11242 ## ------------------------------------ ##
11243 ## Report this to the charybdis lists. ##
11244 ## ------------------------------------ ##
11247 sed "s/^/$as_me: WARNING: /" >&2
11250 echo "$as_me:$LINENO: checking for $ac_header" >&5
11251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11252 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11253 echo $ECHO_N "(cached) $ECHO_C" >&6
11255 eval "$as_ac_Header=\$ac_header_preproc"
11257 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11258 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11261 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11262 cat >>confdefs.h
<<_ACEOF
11263 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11270 echo "$as_me:$LINENO: checking for library containing shl_load" >&5
11271 echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6
11272 if test "${ac_cv_search_shl_load+set}" = set; then
11273 echo $ECHO_N "(cached) $ECHO_C" >&6
11275 ac_func_search_save_LIBS
=$LIBS
11276 ac_cv_search_shl_load
=no
11277 cat >conftest.
$ac_ext <<_ACEOF
11280 cat confdefs.h
>>conftest.
$ac_ext
11281 cat >>conftest.
$ac_ext <<_ACEOF
11282 /* end confdefs.h. */
11284 /* Override any gcc2 internal prototype to avoid an error. */
11288 /* We use char because int might match the return type of a gcc2
11289 builtin and then its argument prototype would still apply. */
11299 rm -f conftest.
$ac_objext conftest
$ac_exeext
11300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11301 (eval $ac_link) 2>conftest.er1
11303 grep -v '^ *+' conftest.er1
>conftest.err
11305 cat conftest.err
>&5
11306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307 (exit $ac_status); } &&
11308 { ac_try
='test -z "$ac_c_werror_flag"
11309 || test ! -s conftest.err'
11310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11311 (eval $ac_try) 2>&5
11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); }; } &&
11315 { ac_try
='test -s conftest$ac_exeext'
11316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11317 (eval $ac_try) 2>&5
11319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320 (exit $ac_status); }; }; then
11321 ac_cv_search_shl_load
="none required"
11323 echo "$as_me: failed program was:" >&5
11324 sed 's/^/| /' conftest.
$ac_ext >&5
11327 rm -f conftest.err conftest.
$ac_objext \
11328 conftest
$ac_exeext conftest.
$ac_ext
11329 if test "$ac_cv_search_shl_load" = no
; then
11330 for ac_lib
in dld
; do
11331 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11332 cat >conftest.
$ac_ext <<_ACEOF
11335 cat confdefs.h
>>conftest.
$ac_ext
11336 cat >>conftest.
$ac_ext <<_ACEOF
11337 /* end confdefs.h. */
11339 /* Override any gcc2 internal prototype to avoid an error. */
11343 /* We use char because int might match the return type of a gcc2
11344 builtin and then its argument prototype would still apply. */
11354 rm -f conftest.
$ac_objext conftest
$ac_exeext
11355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11356 (eval $ac_link) 2>conftest.er1
11358 grep -v '^ *+' conftest.er1
>conftest.err
11360 cat conftest.err
>&5
11361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362 (exit $ac_status); } &&
11363 { ac_try
='test -z "$ac_c_werror_flag"
11364 || test ! -s conftest.err'
11365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11366 (eval $ac_try) 2>&5
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); }; } &&
11370 { ac_try
='test -s conftest$ac_exeext'
11371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11372 (eval $ac_try) 2>&5
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); }; }; then
11376 ac_cv_search_shl_load
="-l$ac_lib"
11379 echo "$as_me: failed program was:" >&5
11380 sed 's/^/| /' conftest.
$ac_ext >&5
11383 rm -f conftest.err conftest.
$ac_objext \
11384 conftest
$ac_exeext conftest.
$ac_ext
11387 LIBS
=$ac_func_search_save_LIBS
11389 echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
11390 echo "${ECHO_T}$ac_cv_search_shl_load" >&6
11391 if test "$ac_cv_search_shl_load" != no
; then
11392 test "$ac_cv_search_shl_load" = "none required" || LIBS
="$ac_cv_search_shl_load $LIBS"
11395 cat >>confdefs.h
<<\_ACEOF
11396 #define HAVE_SHL_LOAD 1
11400 MOD_TARGET
=hpux_shared
11401 SEDOBJ
="s/\.o/.sl/g"
11405 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
11406 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
11407 if test "${ac_cv_search_dlopen+set}" = set; then
11408 echo $ECHO_N "(cached) $ECHO_C" >&6
11410 ac_func_search_save_LIBS
=$LIBS
11411 ac_cv_search_dlopen
=no
11412 cat >conftest.
$ac_ext <<_ACEOF
11415 cat confdefs.h
>>conftest.
$ac_ext
11416 cat >>conftest.
$ac_ext <<_ACEOF
11417 /* end confdefs.h. */
11419 /* Override any gcc2 internal prototype to avoid an error. */
11423 /* We use char because int might match the return type of a gcc2
11424 builtin and then its argument prototype would still apply. */
11434 rm -f conftest.
$ac_objext conftest
$ac_exeext
11435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11436 (eval $ac_link) 2>conftest.er1
11438 grep -v '^ *+' conftest.er1
>conftest.err
11440 cat conftest.err
>&5
11441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442 (exit $ac_status); } &&
11443 { ac_try
='test -z "$ac_c_werror_flag"
11444 || test ! -s conftest.err'
11445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11446 (eval $ac_try) 2>&5
11448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449 (exit $ac_status); }; } &&
11450 { ac_try
='test -s conftest$ac_exeext'
11451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11452 (eval $ac_try) 2>&5
11454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455 (exit $ac_status); }; }; then
11456 ac_cv_search_dlopen
="none required"
11458 echo "$as_me: failed program was:" >&5
11459 sed 's/^/| /' conftest.
$ac_ext >&5
11462 rm -f conftest.err conftest.
$ac_objext \
11463 conftest
$ac_exeext conftest.
$ac_ext
11464 if test "$ac_cv_search_dlopen" = no
; then
11465 for ac_lib
in dl c_r
; do
11466 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11467 cat >conftest.
$ac_ext <<_ACEOF
11470 cat confdefs.h
>>conftest.
$ac_ext
11471 cat >>conftest.
$ac_ext <<_ACEOF
11472 /* end confdefs.h. */
11474 /* Override any gcc2 internal prototype to avoid an error. */
11478 /* We use char because int might match the return type of a gcc2
11479 builtin and then its argument prototype would still apply. */
11489 rm -f conftest.
$ac_objext conftest
$ac_exeext
11490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11491 (eval $ac_link) 2>conftest.er1
11493 grep -v '^ *+' conftest.er1
>conftest.err
11495 cat conftest.err
>&5
11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); } &&
11498 { ac_try
='test -z "$ac_c_werror_flag"
11499 || test ! -s conftest.err'
11500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11501 (eval $ac_try) 2>&5
11503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504 (exit $ac_status); }; } &&
11505 { ac_try
='test -s conftest$ac_exeext'
11506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11507 (eval $ac_try) 2>&5
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); }; }; then
11511 ac_cv_search_dlopen
="-l$ac_lib"
11514 echo "$as_me: failed program was:" >&5
11515 sed 's/^/| /' conftest.
$ac_ext >&5
11518 rm -f conftest.err conftest.
$ac_objext \
11519 conftest
$ac_exeext conftest.
$ac_ext
11522 LIBS
=$ac_func_search_save_LIBS
11524 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
11525 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
11526 if test "$ac_cv_search_dlopen" != no
; then
11527 test "$ac_cv_search_dlopen" = "none required" || LIBS
="$ac_cv_search_dlopen $LIBS"
11530 cat >>confdefs.h
<<\_ACEOF
11531 #define HAVE_DLOPEN 1
11535 MOD_TARGET
=shared_modules
11536 SEDOBJ
="s/\.o/.so/g"
11537 if test "$AppleGCC" = yes; then
11539 for ac_header
in mach
-o/dyld.h
11541 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11542 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11543 echo "$as_me:$LINENO: checking for $ac_header" >&5
11544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11546 echo $ECHO_N "(cached) $ECHO_C" >&6
11548 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11549 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11551 # Is the header compilable?
11552 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11553 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11554 cat >conftest.
$ac_ext <<_ACEOF
11557 cat confdefs.h
>>conftest.
$ac_ext
11558 cat >>conftest.
$ac_ext <<_ACEOF
11559 /* end confdefs.h. */
11560 $ac_includes_default
11561 #include <$ac_header>
11563 rm -f conftest.
$ac_objext
11564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11565 (eval $ac_compile) 2>conftest.er1
11567 grep -v '^ *+' conftest.er1
>conftest.err
11569 cat conftest.err
>&5
11570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571 (exit $ac_status); } &&
11572 { ac_try
='test -z "$ac_c_werror_flag"
11573 || test ! -s conftest.err'
11574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11575 (eval $ac_try) 2>&5
11577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578 (exit $ac_status); }; } &&
11579 { ac_try
='test -s conftest.$ac_objext'
11580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11581 (eval $ac_try) 2>&5
11583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11584 (exit $ac_status); }; }; then
11585 ac_header_compiler
=yes
11587 echo "$as_me: failed program was:" >&5
11588 sed 's/^/| /' conftest.
$ac_ext >&5
11590 ac_header_compiler
=no
11592 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11593 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11594 echo "${ECHO_T}$ac_header_compiler" >&6
11596 # Is the header present?
11597 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11598 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11599 cat >conftest.
$ac_ext <<_ACEOF
11602 cat confdefs.h
>>conftest.
$ac_ext
11603 cat >>conftest.
$ac_ext <<_ACEOF
11604 /* end confdefs.h. */
11605 #include <$ac_header>
11607 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11608 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11610 grep -v '^ *+' conftest.er1
>conftest.err
11612 cat conftest.err
>&5
11613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11614 (exit $ac_status); } >/dev
/null
; then
11615 if test -s conftest.err
; then
11616 ac_cpp_err
=$ac_c_preproc_warn_flag
11617 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11624 if test -z "$ac_cpp_err"; then
11625 ac_header_preproc
=yes
11627 echo "$as_me: failed program was:" >&5
11628 sed 's/^/| /' conftest.
$ac_ext >&5
11630 ac_header_preproc
=no
11632 rm -f conftest.err conftest.
$ac_ext
11633 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11634 echo "${ECHO_T}$ac_header_preproc" >&6
11636 # So? What about this header?
11637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11639 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11640 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11641 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11642 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11643 ac_header_preproc
=yes
11646 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11647 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11648 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11649 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11650 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11651 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11652 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11653 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11654 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11655 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11656 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11657 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11660 ## ------------------------------------ ##
11661 ## Report this to the charybdis lists. ##
11662 ## ------------------------------------ ##
11665 sed "s/^/$as_me: WARNING: /" >&2
11668 echo "$as_me:$LINENO: checking for $ac_header" >&5
11669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11670 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11671 echo $ECHO_N "(cached) $ECHO_C" >&6
11673 eval "$as_ac_Header=\$ac_header_preproc"
11675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11676 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11679 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11680 cat >>confdefs.h
<<_ACEOF
11681 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11689 echo "$as_me:$LINENO: checking for dlsym" >&5
11690 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
11691 if test "${ac_cv_func_dlsym+set}" = set; then
11692 echo $ECHO_N "(cached) $ECHO_C" >&6
11694 cat >conftest.
$ac_ext <<_ACEOF
11697 cat confdefs.h
>>conftest.
$ac_ext
11698 cat >>conftest.
$ac_ext <<_ACEOF
11699 /* end confdefs.h. */
11700 /* Define dlsym to an innocuous variant, in case <limits.h> declares dlsym.
11701 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11702 #define dlsym innocuous_dlsym
11704 /* System header to define __stub macros and hopefully few prototypes,
11705 which can conflict with char dlsym (); below.
11706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11707 <limits.h> exists even on freestanding compilers. */
11710 # include <limits.h>
11712 # include <assert.h>
11717 /* Override any gcc2 internal prototype to avoid an error. */
11722 /* We use char because int might match the return type of a gcc2
11723 builtin and then its argument prototype would still apply. */
11725 /* The GNU C library defines this for functions which it implements
11726 to always fail with ENOSYS. Some functions are actually named
11727 something starting with __ and the normal name is an alias. */
11728 #if defined (__stub_dlsym) || defined (__stub___dlsym)
11731 char (*f) () = dlsym;
11745 rm -f conftest.
$ac_objext conftest
$ac_exeext
11746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11747 (eval $ac_link) 2>conftest.er1
11749 grep -v '^ *+' conftest.er1
>conftest.err
11751 cat conftest.err
>&5
11752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753 (exit $ac_status); } &&
11754 { ac_try
='test -z "$ac_c_werror_flag"
11755 || test ! -s conftest.err'
11756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11757 (eval $ac_try) 2>&5
11759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760 (exit $ac_status); }; } &&
11761 { ac_try
='test -s conftest$ac_exeext'
11762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11763 (eval $ac_try) 2>&5
11765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766 (exit $ac_status); }; }; then
11767 ac_cv_func_dlsym
=yes
11769 echo "$as_me: failed program was:" >&5
11770 sed 's/^/| /' conftest.
$ac_ext >&5
11772 ac_cv_func_dlsym
=no
11774 rm -f conftest.err conftest.
$ac_objext \
11775 conftest
$ac_exeext conftest.
$ac_ext
11777 echo "$as_me:$LINENO: result: $ac_cv_func_dlsym" >&5
11778 echo "${ECHO_T}$ac_cv_func_dlsym" >&6
11779 if test $ac_cv_func_dlsym = yes; then
11783 { echo "$as_me:$LINENO: WARNING: dlsym is not available, shared modules disabled" >&5
11784 echo "$as_me: WARNING: dlsym is not available, shared modules disabled" >&2;}
11790 for ac_func
in dlfunc
11792 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11793 echo "$as_me:$LINENO: checking for $ac_func" >&5
11794 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11795 if eval "test \"\${$as_ac_var+set}\" = set"; then
11796 echo $ECHO_N "(cached) $ECHO_C" >&6
11798 cat >conftest.
$ac_ext <<_ACEOF
11801 cat confdefs.h
>>conftest.
$ac_ext
11802 cat >>conftest.
$ac_ext <<_ACEOF
11803 /* end confdefs.h. */
11804 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11806 #define $ac_func innocuous_$ac_func
11808 /* System header to define __stub macros and hopefully few prototypes,
11809 which can conflict with char $ac_func (); below.
11810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11811 <limits.h> exists even on freestanding compilers. */
11814 # include <limits.h>
11816 # include <assert.h>
11821 /* Override any gcc2 internal prototype to avoid an error. */
11826 /* We use char because int might match the return type of a gcc2
11827 builtin and then its argument prototype would still apply. */
11829 /* The GNU C library defines this for functions which it implements
11830 to always fail with ENOSYS. Some functions are actually named
11831 something starting with __ and the normal name is an alias. */
11832 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11835 char (*f) () = $ac_func;
11844 return f != $ac_func;
11849 rm -f conftest.
$ac_objext conftest
$ac_exeext
11850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11851 (eval $ac_link) 2>conftest.er1
11853 grep -v '^ *+' conftest.er1
>conftest.err
11855 cat conftest.err
>&5
11856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857 (exit $ac_status); } &&
11858 { ac_try
='test -z "$ac_c_werror_flag"
11859 || test ! -s conftest.err'
11860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11861 (eval $ac_try) 2>&5
11863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864 (exit $ac_status); }; } &&
11865 { ac_try
='test -s conftest$ac_exeext'
11866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11867 (eval $ac_try) 2>&5
11869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870 (exit $ac_status); }; }; then
11871 eval "$as_ac_var=yes"
11873 echo "$as_me: failed program was:" >&5
11874 sed 's/^/| /' conftest.
$ac_ext >&5
11876 eval "$as_ac_var=no"
11878 rm -f conftest.err conftest.
$ac_objext \
11879 conftest
$ac_exeext conftest.
$ac_ext
11881 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11882 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11883 if test `eval echo '${'$as_ac_var'}'` = yes; then
11884 cat >>confdefs.h
<<_ACEOF
11885 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11904 cat >>confdefs.h
<<_ACEOF
11905 #define SHARED_SUFFIX "$SUFFIX"
11909 if test "$shared_modules" = yes; then
11910 # The GNU linker requires the -export-dynamic option to make
11911 # all symbols visible in the dynamic symbol table.
11912 hold_ldflags
=$LDFLAGS
11913 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
11914 echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
11915 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic -Werror"
11916 cat >conftest.
$ac_ext <<_ACEOF
11919 cat confdefs.h
>>conftest.
$ac_ext
11920 cat >>conftest.
$ac_ext <<_ACEOF
11921 /* end confdefs.h. */
11931 rm -f conftest.
$ac_objext conftest
$ac_exeext
11932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11933 (eval $ac_link) 2>conftest.er1
11935 grep -v '^ *+' conftest.er1
>conftest.err
11937 cat conftest.err
>&5
11938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939 (exit $ac_status); } &&
11940 { ac_try
='test -z "$ac_c_werror_flag"
11941 || test ! -s conftest.err'
11942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11943 (eval $ac_try) 2>&5
11945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); }; } &&
11947 { ac_try
='test -s conftest$ac_exeext'
11948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11949 (eval $ac_try) 2>&5
11951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952 (exit $ac_status); }; }; then
11955 echo "$as_me: failed program was:" >&5
11956 sed 's/^/| /' conftest.
$ac_ext >&5
11960 rm -f conftest.err conftest.
$ac_objext \
11961 conftest
$ac_exeext conftest.
$ac_ext
11962 LDFLAGS
=$hold_ldflags
11964 if expr "`uname -s`" : ^IRIX
>/dev
/null
2>&1; then
11965 found
="no, IRIX ld uses -B,dynamic"
11966 LDFLAGS
="${LDFLAGS} -Wl,-B,dynamic"
11969 if expr "`uname -s`" : ^AIX
>/dev
/null
2>&1; then
11970 found
="no, AIX ld uses -G -brtl"
11971 LDFLAGS
="${LDFLAGS} -Wl,-G,-brtl"
11974 echo "$as_me:$LINENO: result: $found" >&5
11975 echo "${ECHO_T}$found" >&6
11977 if test "$found" = yes; then
11978 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic"
11981 echo "$as_me:$LINENO: checking for compiler option to produce PIC" >&5
11982 echo $ECHO_N "checking for compiler option to produce PIC... $ECHO_C" >&6
11983 if test "$SGS" = "yes"; then
11984 echo "$as_me:$LINENO: result: SVR4 SGS interfaces: -KPIC -DPIC -G" >&5
11985 echo "${ECHO_T}SVR4 SGS interfaces: -KPIC -DPIC -G" >&6
11986 PICFLAGS
="-KPIC -DPIC -G"
11989 if test "$AppleGCC" = "yes"; then
11990 echo "$as_me:$LINENO: result: Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&5
11991 echo "${ECHO_T}Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&6
11992 PICFLAGS
="-fno-common -bundle -flat_namespace -undefined suppress"
11994 if test "$HPUX" = "yes" -a "$CC" != gcc
; then
11995 echo "$as_me:$LINENO: result: HP-UX cc: +z -r -q -n" >&5
11996 echo "${ECHO_T}HP-UX cc: +z -r -q -n" >&6
11997 PICFLAGS
="+z -r -q -n -c"
11998 echo "$as_me:$LINENO: checking if +ESfic is required on this platform" >&5
11999 echo $ECHO_N "checking if +ESfic is required on this platform... $ECHO_C" >&6
12001 if expr "`$CC +ESfic 2>&1`" : ".*neither supported.*" >/dev
/null
; then
12002 echo "$as_me:$LINENO: result: no" >&5
12003 echo "${ECHO_T}no" >&6
12005 echo "$as_me:$LINENO: result: yes" >&5
12006 echo "${ECHO_T}yes" >&6
12007 PICFLAGS
="$PICFLAGS +ESfic"
12010 LDFLAGS
="${LDFLAGS} -Wl,-E"
12012 if test "$Tru" = yes -a "$CC" != gcc
; then
12013 echo "$as_me:$LINENO: result: Tru64: -shared -expect_unresolved '*'" >&5
12014 echo "${ECHO_T}Tru64: -shared -expect_unresolved '*'" >&6
12015 PICFLAGS
="-shared -expect_unresolved '*' "
12016 LDFLAGS
="-call_shared"
12018 if test -z "$PICFLAGS"; then
12019 if test "$ac_cv_c_compiler_gnu" = "yes"; then
12020 echo "$as_me:$LINENO: result: gcc: -fPIC -DPIC -shared" >&5
12021 echo "${ECHO_T}gcc: -fPIC -DPIC -shared" >&6
12022 PICFLAGS
="-fPIC -DPIC -shared"
12024 echo "$as_me:$LINENO: result: no" >&5
12025 echo "${ECHO_T}no" >&6
12031 # This must be down here, or it will mess up checks like the ones
12032 # for -Wl,-export-dynamic
12034 # Check whether --enable-warnings or --disable-warnings was given.
12035 if test "${enable_warnings+set}" = set; then
12036 enableval
="$enable_warnings"
12038 IRC_CFLAGS
="$IRC_CFLAGS -O0"
12039 CFLAGS
="$IRC_CFLAGS"
12042 echo "$as_me:$LINENO: checking GCC flag(s) -Wall" >&5
12043 echo $ECHO_N "checking GCC flag(s) -Wall... $ECHO_C" >&6
12044 if test "${GCC-no}" = yes
12046 if test "${charybdis_cv_c_gcc_w_all+set}" = set; then
12047 echo $ECHO_N "(cached) $ECHO_C" >&6
12050 oldcflags
="${CFLAGS-}"
12051 CFLAGS
="${CFLAGS-} ${CWARNS} -Wall -Werror"
12052 cat >conftest.
$ac_ext <<_ACEOF
12055 cat confdefs.h
>>conftest.
$ac_ext
12056 cat >>conftest.
$ac_ext <<_ACEOF
12057 /* end confdefs.h. */
12059 #include <string.h>
12067 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12073 rm -f conftest.
$ac_objext
12074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12075 (eval $ac_compile) 2>conftest.er1
12077 grep -v '^ *+' conftest.er1
>conftest.err
12079 cat conftest.err
>&5
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); } &&
12082 { ac_try
='test -z "$ac_c_werror_flag"
12083 || test ! -s conftest.err'
12084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12085 (eval $ac_try) 2>&5
12087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088 (exit $ac_status); }; } &&
12089 { ac_try
='test -s conftest.$ac_objext'
12090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12091 (eval $ac_try) 2>&5
12093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); }; }; then
12095 charybdis_cv_c_gcc_w_all
=yes
12097 echo "$as_me: failed program was:" >&5
12098 sed 's/^/| /' conftest.
$ac_ext >&5
12100 charybdis_cv_c_gcc_w_all
=no
12102 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12103 CFLAGS
="${oldcflags}"
12106 if test "x$charybdis_cv_c_gcc_w_all" = xyes
; then
12107 CWARNS
="${CWARNS}-Wall "
12108 echo "$as_me:$LINENO: result: ok" >&5
12109 echo "${ECHO_T}ok" >&6
12111 charybdis_cv_c_gcc_w_all
=''
12112 echo "$as_me:$LINENO: result: no" >&5
12113 echo "${ECHO_T}no" >&6
12116 echo "$as_me:$LINENO: result: no" >&5
12117 echo "${ECHO_T}no" >&6
12121 echo "$as_me:$LINENO: checking GCC flag(s) -Wpointer-arith" >&5
12122 echo $ECHO_N "checking GCC flag(s) -Wpointer-arith... $ECHO_C" >&6
12123 if test "${GCC-no}" = yes
12125 if test "${charybdis_cv_c_gcc_w_pointer_arith+set}" = set; then
12126 echo $ECHO_N "(cached) $ECHO_C" >&6
12129 oldcflags
="${CFLAGS-}"
12130 CFLAGS
="${CFLAGS-} ${CWARNS} -Wpointer-arith -Werror"
12131 cat >conftest.
$ac_ext <<_ACEOF
12134 cat confdefs.h
>>conftest.
$ac_ext
12135 cat >>conftest.
$ac_ext <<_ACEOF
12136 /* end confdefs.h. */
12138 #include <string.h>
12146 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12152 rm -f conftest.
$ac_objext
12153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12154 (eval $ac_compile) 2>conftest.er1
12156 grep -v '^ *+' conftest.er1
>conftest.err
12158 cat conftest.err
>&5
12159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12160 (exit $ac_status); } &&
12161 { ac_try
='test -z "$ac_c_werror_flag"
12162 || test ! -s conftest.err'
12163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12164 (eval $ac_try) 2>&5
12166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167 (exit $ac_status); }; } &&
12168 { ac_try
='test -s conftest.$ac_objext'
12169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12170 (eval $ac_try) 2>&5
12172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173 (exit $ac_status); }; }; then
12174 charybdis_cv_c_gcc_w_pointer_arith
=yes
12176 echo "$as_me: failed program was:" >&5
12177 sed 's/^/| /' conftest.
$ac_ext >&5
12179 charybdis_cv_c_gcc_w_pointer_arith
=no
12181 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12182 CFLAGS
="${oldcflags}"
12185 if test "x$charybdis_cv_c_gcc_w_pointer_arith" = xyes
; then
12186 CWARNS
="${CWARNS}-Wpointer-arith "
12187 echo "$as_me:$LINENO: result: ok" >&5
12188 echo "${ECHO_T}ok" >&6
12190 charybdis_cv_c_gcc_w_pointer_arith
=''
12191 echo "$as_me:$LINENO: result: no" >&5
12192 echo "${ECHO_T}no" >&6
12195 echo "$as_me:$LINENO: result: no" >&5
12196 echo "${ECHO_T}no" >&6
12200 echo "$as_me:$LINENO: checking GCC flag(s) -Wimplicit -Wnested-externs" >&5
12201 echo $ECHO_N "checking GCC flag(s) -Wimplicit -Wnested-externs... $ECHO_C" >&6
12202 if test "${GCC-no}" = yes
12204 if test "${charybdis_cv_c_gcc_w_implicit+set}" = set; then
12205 echo $ECHO_N "(cached) $ECHO_C" >&6
12208 oldcflags
="${CFLAGS-}"
12209 CFLAGS
="${CFLAGS-} ${CWARNS} -Wimplicit -Wnested-externs -Werror"
12210 cat >conftest.
$ac_ext <<_ACEOF
12213 cat confdefs.h
>>conftest.
$ac_ext
12214 cat >>conftest.
$ac_ext <<_ACEOF
12215 /* end confdefs.h. */
12217 #include <string.h>
12225 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12231 rm -f conftest.
$ac_objext
12232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12233 (eval $ac_compile) 2>conftest.er1
12235 grep -v '^ *+' conftest.er1
>conftest.err
12237 cat conftest.err
>&5
12238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239 (exit $ac_status); } &&
12240 { ac_try
='test -z "$ac_c_werror_flag"
12241 || test ! -s conftest.err'
12242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12243 (eval $ac_try) 2>&5
12245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246 (exit $ac_status); }; } &&
12247 { ac_try
='test -s conftest.$ac_objext'
12248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12249 (eval $ac_try) 2>&5
12251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12252 (exit $ac_status); }; }; then
12253 charybdis_cv_c_gcc_w_implicit
=yes
12255 echo "$as_me: failed program was:" >&5
12256 sed 's/^/| /' conftest.
$ac_ext >&5
12258 charybdis_cv_c_gcc_w_implicit
=no
12260 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12261 CFLAGS
="${oldcflags}"
12264 if test "x$charybdis_cv_c_gcc_w_implicit" = xyes
; then
12265 CWARNS
="${CWARNS}-Wimplicit -Wnested-externs "
12266 echo "$as_me:$LINENO: result: ok" >&5
12267 echo "${ECHO_T}ok" >&6
12269 charybdis_cv_c_gcc_w_implicit
=''
12270 echo "$as_me:$LINENO: result: no" >&5
12271 echo "${ECHO_T}no" >&6
12274 echo "$as_me:$LINENO: result: no" >&5
12275 echo "${ECHO_T}no" >&6
12279 echo "$as_me:$LINENO: checking GCC flag(s) -Wcast-align" >&5
12280 echo $ECHO_N "checking GCC flag(s) -Wcast-align... $ECHO_C" >&6
12281 if test "${GCC-no}" = yes
12283 if test "${charybdis_cv_c_gcc_w_cast_align+set}" = set; then
12284 echo $ECHO_N "(cached) $ECHO_C" >&6
12287 oldcflags
="${CFLAGS-}"
12288 CFLAGS
="${CFLAGS-} ${CWARNS} -Wcast-align -Werror"
12289 cat >conftest.
$ac_ext <<_ACEOF
12292 cat confdefs.h
>>conftest.
$ac_ext
12293 cat >>conftest.
$ac_ext <<_ACEOF
12294 /* end confdefs.h. */
12296 #include <string.h>
12304 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12310 rm -f conftest.
$ac_objext
12311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12312 (eval $ac_compile) 2>conftest.er1
12314 grep -v '^ *+' conftest.er1
>conftest.err
12316 cat conftest.err
>&5
12317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 (exit $ac_status); } &&
12319 { ac_try
='test -z "$ac_c_werror_flag"
12320 || test ! -s conftest.err'
12321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12322 (eval $ac_try) 2>&5
12324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325 (exit $ac_status); }; } &&
12326 { ac_try
='test -s conftest.$ac_objext'
12327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12328 (eval $ac_try) 2>&5
12330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331 (exit $ac_status); }; }; then
12332 charybdis_cv_c_gcc_w_cast_align
=yes
12334 echo "$as_me: failed program was:" >&5
12335 sed 's/^/| /' conftest.
$ac_ext >&5
12337 charybdis_cv_c_gcc_w_cast_align
=no
12339 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12340 CFLAGS
="${oldcflags}"
12343 if test "x$charybdis_cv_c_gcc_w_cast_align" = xyes
; then
12344 CWARNS
="${CWARNS}-Wcast-align "
12345 echo "$as_me:$LINENO: result: ok" >&5
12346 echo "${ECHO_T}ok" >&6
12348 charybdis_cv_c_gcc_w_cast_align
=''
12349 echo "$as_me:$LINENO: result: no" >&5
12350 echo "${ECHO_T}no" >&6
12353 echo "$as_me:$LINENO: result: no" >&5
12354 echo "${ECHO_T}no" >&6
12358 echo "$as_me:$LINENO: checking GCC flag(s) -Wcast-qual" >&5
12359 echo $ECHO_N "checking GCC flag(s) -Wcast-qual... $ECHO_C" >&6
12360 if test "${GCC-no}" = yes
12362 if test "${charybdis_cv_c_gcc_w_cast_qual+set}" = set; then
12363 echo $ECHO_N "(cached) $ECHO_C" >&6
12366 oldcflags
="${CFLAGS-}"
12367 CFLAGS
="${CFLAGS-} ${CWARNS} -Wcast-qual -Werror"
12368 cat >conftest.
$ac_ext <<_ACEOF
12371 cat confdefs.h
>>conftest.
$ac_ext
12372 cat >>conftest.
$ac_ext <<_ACEOF
12373 /* end confdefs.h. */
12375 #include <string.h>
12383 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12389 rm -f conftest.
$ac_objext
12390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12391 (eval $ac_compile) 2>conftest.er1
12393 grep -v '^ *+' conftest.er1
>conftest.err
12395 cat conftest.err
>&5
12396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397 (exit $ac_status); } &&
12398 { ac_try
='test -z "$ac_c_werror_flag"
12399 || test ! -s conftest.err'
12400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12401 (eval $ac_try) 2>&5
12403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404 (exit $ac_status); }; } &&
12405 { ac_try
='test -s conftest.$ac_objext'
12406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12407 (eval $ac_try) 2>&5
12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); }; }; then
12411 charybdis_cv_c_gcc_w_cast_qual
=yes
12413 echo "$as_me: failed program was:" >&5
12414 sed 's/^/| /' conftest.
$ac_ext >&5
12416 charybdis_cv_c_gcc_w_cast_qual
=no
12418 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12419 CFLAGS
="${oldcflags}"
12422 if test "x$charybdis_cv_c_gcc_w_cast_qual" = xyes
; then
12423 CWARNS
="${CWARNS}-Wcast-qual "
12424 echo "$as_me:$LINENO: result: ok" >&5
12425 echo "${ECHO_T}ok" >&6
12427 charybdis_cv_c_gcc_w_cast_qual
=''
12428 echo "$as_me:$LINENO: result: no" >&5
12429 echo "${ECHO_T}no" >&6
12432 echo "$as_me:$LINENO: result: no" >&5
12433 echo "${ECHO_T}no" >&6
12437 echo "$as_me:$LINENO: checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations" >&5
12438 echo $ECHO_N "checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations... $ECHO_C" >&6
12439 if test "${GCC-no}" = yes
12441 if test "${charybdis_cv_c_gcc_prototypes+set}" = set; then
12442 echo $ECHO_N "(cached) $ECHO_C" >&6
12445 oldcflags
="${CFLAGS-}"
12446 CFLAGS
="${CFLAGS-} ${CWARNS} -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Werror"
12447 cat >conftest.
$ac_ext <<_ACEOF
12450 cat confdefs.h
>>conftest.
$ac_ext
12451 cat >>conftest.
$ac_ext <<_ACEOF
12452 /* end confdefs.h. */
12454 #include <string.h>
12462 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12468 rm -f conftest.
$ac_objext
12469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12470 (eval $ac_compile) 2>conftest.er1
12472 grep -v '^ *+' conftest.er1
>conftest.err
12474 cat conftest.err
>&5
12475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476 (exit $ac_status); } &&
12477 { ac_try
='test -z "$ac_c_werror_flag"
12478 || test ! -s conftest.err'
12479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12480 (eval $ac_try) 2>&5
12482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483 (exit $ac_status); }; } &&
12484 { ac_try
='test -s conftest.$ac_objext'
12485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12486 (eval $ac_try) 2>&5
12488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489 (exit $ac_status); }; }; then
12490 charybdis_cv_c_gcc_prototypes
=yes
12492 echo "$as_me: failed program was:" >&5
12493 sed 's/^/| /' conftest.
$ac_ext >&5
12495 charybdis_cv_c_gcc_prototypes
=no
12497 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12498 CFLAGS
="${oldcflags}"
12501 if test "x$charybdis_cv_c_gcc_prototypes" = xyes
; then
12502 CWARNS
="${CWARNS}-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations "
12503 echo "$as_me:$LINENO: result: ok" >&5
12504 echo "${ECHO_T}ok" >&6
12506 charybdis_cv_c_gcc_prototypes
=''
12507 echo "$as_me:$LINENO: result: no" >&5
12508 echo "${ECHO_T}no" >&6
12511 echo "$as_me:$LINENO: result: no" >&5
12512 echo "${ECHO_T}no" >&6
12516 echo "$as_me:$LINENO: checking GCC flag(s) -Wparenthesis" >&5
12517 echo $ECHO_N "checking GCC flag(s) -Wparenthesis... $ECHO_C" >&6
12518 if test "${GCC-no}" = yes
12520 if test "${charybdis_cv_c_gcc_parenthesis+set}" = set; then
12521 echo $ECHO_N "(cached) $ECHO_C" >&6
12524 oldcflags
="${CFLAGS-}"
12525 CFLAGS
="${CFLAGS-} ${CWARNS} -Wparenthesis -Werror"
12526 cat >conftest.
$ac_ext <<_ACEOF
12529 cat confdefs.h
>>conftest.
$ac_ext
12530 cat >>conftest.
$ac_ext <<_ACEOF
12531 /* end confdefs.h. */
12533 #include <string.h>
12541 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12547 rm -f conftest.
$ac_objext
12548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12549 (eval $ac_compile) 2>conftest.er1
12551 grep -v '^ *+' conftest.er1
>conftest.err
12553 cat conftest.err
>&5
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); } &&
12556 { ac_try
='test -z "$ac_c_werror_flag"
12557 || test ! -s conftest.err'
12558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12559 (eval $ac_try) 2>&5
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); }; } &&
12563 { ac_try
='test -s conftest.$ac_objext'
12564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12565 (eval $ac_try) 2>&5
12567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568 (exit $ac_status); }; }; then
12569 charybdis_cv_c_gcc_parenthesis
=yes
12571 echo "$as_me: failed program was:" >&5
12572 sed 's/^/| /' conftest.
$ac_ext >&5
12574 charybdis_cv_c_gcc_parenthesis
=no
12576 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12577 CFLAGS
="${oldcflags}"
12580 if test "x$charybdis_cv_c_gcc_parenthesis" = xyes
; then
12581 CWARNS
="${CWARNS}-Wparenthesis "
12582 echo "$as_me:$LINENO: result: ok" >&5
12583 echo "${ECHO_T}ok" >&6
12585 charybdis_cv_c_gcc_parenthesis
=''
12586 echo "$as_me:$LINENO: result: no" >&5
12587 echo "${ECHO_T}no" >&6
12590 echo "$as_me:$LINENO: result: no" >&5
12591 echo "${ECHO_T}no" >&6
12595 echo "$as_me:$LINENO: checking GCC flag(s) -W -Wno-unused" >&5
12596 echo $ECHO_N "checking GCC flag(s) -W -Wno-unused... $ECHO_C" >&6
12597 if test "${GCC-no}" = yes
12599 if test "${charybdis_cv_c_gcc_w+set}" = set; then
12600 echo $ECHO_N "(cached) $ECHO_C" >&6
12603 oldcflags
="${CFLAGS-}"
12604 CFLAGS
="${CFLAGS-} ${CWARNS} -W -Wno-unused -Werror"
12605 cat >conftest.
$ac_ext <<_ACEOF
12608 cat confdefs.h
>>conftest.
$ac_ext
12609 cat >>conftest.
$ac_ext <<_ACEOF
12610 /* end confdefs.h. */
12612 #include <string.h>
12620 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12626 rm -f conftest.
$ac_objext
12627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12628 (eval $ac_compile) 2>conftest.er1
12630 grep -v '^ *+' conftest.er1
>conftest.err
12632 cat conftest.err
>&5
12633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634 (exit $ac_status); } &&
12635 { ac_try
='test -z "$ac_c_werror_flag"
12636 || test ! -s conftest.err'
12637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12638 (eval $ac_try) 2>&5
12640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641 (exit $ac_status); }; } &&
12642 { ac_try
='test -s conftest.$ac_objext'
12643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12644 (eval $ac_try) 2>&5
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); }; }; then
12648 charybdis_cv_c_gcc_w
=yes
12650 echo "$as_me: failed program was:" >&5
12651 sed 's/^/| /' conftest.
$ac_ext >&5
12653 charybdis_cv_c_gcc_w
=no
12655 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12656 CFLAGS
="${oldcflags}"
12659 if test "x$charybdis_cv_c_gcc_w" = xyes
; then
12660 CWARNS
="${CWARNS}-W -Wno-unused "
12661 echo "$as_me:$LINENO: result: ok" >&5
12662 echo "${ECHO_T}ok" >&6
12664 charybdis_cv_c_gcc_w
=''
12665 echo "$as_me:$LINENO: result: no" >&5
12666 echo "${ECHO_T}no" >&6
12669 echo "$as_me:$LINENO: result: no" >&5
12670 echo "${ECHO_T}no" >&6
12674 echo "$as_me:$LINENO: checking GCC flag(s) -Wextra" >&5
12675 echo $ECHO_N "checking GCC flag(s) -Wextra... $ECHO_C" >&6
12676 if test "${GCC-no}" = yes
12678 if test "${charybdis_cv_c_gcc_w_extra+set}" = set; then
12679 echo $ECHO_N "(cached) $ECHO_C" >&6
12682 oldcflags
="${CFLAGS-}"
12683 CFLAGS
="${CFLAGS-} ${CWARNS} -Wextra -Werror"
12684 cat >conftest.
$ac_ext <<_ACEOF
12687 cat confdefs.h
>>conftest.
$ac_ext
12688 cat >>conftest.
$ac_ext <<_ACEOF
12689 /* end confdefs.h. */
12691 #include <string.h>
12699 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12705 rm -f conftest.
$ac_objext
12706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12707 (eval $ac_compile) 2>conftest.er1
12709 grep -v '^ *+' conftest.er1
>conftest.err
12711 cat conftest.err
>&5
12712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713 (exit $ac_status); } &&
12714 { ac_try
='test -z "$ac_c_werror_flag"
12715 || test ! -s conftest.err'
12716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12717 (eval $ac_try) 2>&5
12719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720 (exit $ac_status); }; } &&
12721 { ac_try
='test -s conftest.$ac_objext'
12722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12723 (eval $ac_try) 2>&5
12725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726 (exit $ac_status); }; }; then
12727 charybdis_cv_c_gcc_w_extra
=yes
12729 echo "$as_me: failed program was:" >&5
12730 sed 's/^/| /' conftest.
$ac_ext >&5
12732 charybdis_cv_c_gcc_w_extra
=no
12734 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12735 CFLAGS
="${oldcflags}"
12738 if test "x$charybdis_cv_c_gcc_w_extra" = xyes
; then
12739 CWARNS
="${CWARNS}-Wextra "
12740 echo "$as_me:$LINENO: result: ok" >&5
12741 echo "${ECHO_T}ok" >&6
12743 charybdis_cv_c_gcc_w_extra
=''
12744 echo "$as_me:$LINENO: result: no" >&5
12745 echo "${ECHO_T}no" >&6
12748 echo "$as_me:$LINENO: result: no" >&5
12749 echo "${ECHO_T}no" >&6
12753 echo "$as_me:$LINENO: checking GCC flag(s) -Wshadow" >&5
12754 echo $ECHO_N "checking GCC flag(s) -Wshadow... $ECHO_C" >&6
12755 if test "${GCC-no}" = yes
12757 if test "${charybdis_cv_c_gcc_w_shadow+set}" = set; then
12758 echo $ECHO_N "(cached) $ECHO_C" >&6
12761 oldcflags
="${CFLAGS-}"
12762 CFLAGS
="${CFLAGS-} ${CWARNS} -Wshadow -Werror"
12763 cat >conftest.
$ac_ext <<_ACEOF
12766 cat confdefs.h
>>conftest.
$ac_ext
12767 cat >>conftest.
$ac_ext <<_ACEOF
12768 /* end confdefs.h. */
12770 #include <string.h>
12778 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12784 rm -f conftest.
$ac_objext
12785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12786 (eval $ac_compile) 2>conftest.er1
12788 grep -v '^ *+' conftest.er1
>conftest.err
12790 cat conftest.err
>&5
12791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 (exit $ac_status); } &&
12793 { ac_try
='test -z "$ac_c_werror_flag"
12794 || test ! -s conftest.err'
12795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12796 (eval $ac_try) 2>&5
12798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799 (exit $ac_status); }; } &&
12800 { ac_try
='test -s conftest.$ac_objext'
12801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12802 (eval $ac_try) 2>&5
12804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805 (exit $ac_status); }; }; then
12806 charybdis_cv_c_gcc_w_shadow
=yes
12808 echo "$as_me: failed program was:" >&5
12809 sed 's/^/| /' conftest.
$ac_ext >&5
12811 charybdis_cv_c_gcc_w_shadow
=no
12813 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12814 CFLAGS
="${oldcflags}"
12817 if test "x$charybdis_cv_c_gcc_w_shadow" = xyes
; then
12818 CWARNS
="${CWARNS}-Wshadow "
12819 echo "$as_me:$LINENO: result: ok" >&5
12820 echo "${ECHO_T}ok" >&6
12822 charybdis_cv_c_gcc_w_shadow
=''
12823 echo "$as_me:$LINENO: result: no" >&5
12824 echo "${ECHO_T}no" >&6
12827 echo "$as_me:$LINENO: result: no" >&5
12828 echo "${ECHO_T}no" >&6
12832 echo "$as_me:$LINENO: checking GCC flag(s) -Wmissing-noreturn" >&5
12833 echo $ECHO_N "checking GCC flag(s) -Wmissing-noreturn... $ECHO_C" >&6
12834 if test "${GCC-no}" = yes
12836 if test "${charybdis_cv_c_gcc_w_missing_noreturn+set}" = set; then
12837 echo $ECHO_N "(cached) $ECHO_C" >&6
12840 oldcflags
="${CFLAGS-}"
12841 CFLAGS
="${CFLAGS-} ${CWARNS} -Wmissing-noreturn -Werror"
12842 cat >conftest.
$ac_ext <<_ACEOF
12845 cat confdefs.h
>>conftest.
$ac_ext
12846 cat >>conftest.
$ac_ext <<_ACEOF
12847 /* end confdefs.h. */
12849 #include <string.h>
12857 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12863 rm -f conftest.
$ac_objext
12864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12865 (eval $ac_compile) 2>conftest.er1
12867 grep -v '^ *+' conftest.er1
>conftest.err
12869 cat conftest.err
>&5
12870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871 (exit $ac_status); } &&
12872 { ac_try
='test -z "$ac_c_werror_flag"
12873 || test ! -s conftest.err'
12874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12875 (eval $ac_try) 2>&5
12877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12878 (exit $ac_status); }; } &&
12879 { ac_try
='test -s conftest.$ac_objext'
12880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12881 (eval $ac_try) 2>&5
12883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884 (exit $ac_status); }; }; then
12885 charybdis_cv_c_gcc_w_missing_noreturn
=yes
12887 echo "$as_me: failed program was:" >&5
12888 sed 's/^/| /' conftest.
$ac_ext >&5
12890 charybdis_cv_c_gcc_w_missing_noreturn
=no
12892 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12893 CFLAGS
="${oldcflags}"
12896 if test "x$charybdis_cv_c_gcc_w_missing_noreturn" = xyes
; then
12897 CWARNS
="${CWARNS}-Wmissing-noreturn "
12898 echo "$as_me:$LINENO: result: ok" >&5
12899 echo "${ECHO_T}ok" >&6
12901 charybdis_cv_c_gcc_w_missing_noreturn
=''
12902 echo "$as_me:$LINENO: result: no" >&5
12903 echo "${ECHO_T}no" >&6
12906 echo "$as_me:$LINENO: result: no" >&5
12907 echo "${ECHO_T}no" >&6
12911 echo "$as_me:$LINENO: checking GCC flag(s) -Wundef" >&5
12912 echo $ECHO_N "checking GCC flag(s) -Wundef... $ECHO_C" >&6
12913 if test "${GCC-no}" = yes
12915 if test "${charybdis_cv_c_gcc_w_undef+set}" = set; then
12916 echo $ECHO_N "(cached) $ECHO_C" >&6
12919 oldcflags
="${CFLAGS-}"
12920 CFLAGS
="${CFLAGS-} ${CWARNS} -Wundef -Werror"
12921 cat >conftest.
$ac_ext <<_ACEOF
12924 cat confdefs.h
>>conftest.
$ac_ext
12925 cat >>conftest.
$ac_ext <<_ACEOF
12926 /* end confdefs.h. */
12928 #include <string.h>
12936 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12942 rm -f conftest.
$ac_objext
12943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12944 (eval $ac_compile) 2>conftest.er1
12946 grep -v '^ *+' conftest.er1
>conftest.err
12948 cat conftest.err
>&5
12949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950 (exit $ac_status); } &&
12951 { ac_try
='test -z "$ac_c_werror_flag"
12952 || test ! -s conftest.err'
12953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12954 (eval $ac_try) 2>&5
12956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957 (exit $ac_status); }; } &&
12958 { ac_try
='test -s conftest.$ac_objext'
12959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12960 (eval $ac_try) 2>&5
12962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963 (exit $ac_status); }; }; then
12964 charybdis_cv_c_gcc_w_undef
=yes
12966 echo "$as_me: failed program was:" >&5
12967 sed 's/^/| /' conftest.
$ac_ext >&5
12969 charybdis_cv_c_gcc_w_undef
=no
12971 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12972 CFLAGS
="${oldcflags}"
12975 if test "x$charybdis_cv_c_gcc_w_undef" = xyes
; then
12976 CWARNS
="${CWARNS}-Wundef "
12977 echo "$as_me:$LINENO: result: ok" >&5
12978 echo "${ECHO_T}ok" >&6
12980 charybdis_cv_c_gcc_w_undef
=''
12981 echo "$as_me:$LINENO: result: no" >&5
12982 echo "${ECHO_T}no" >&6
12985 echo "$as_me:$LINENO: result: no" >&5
12986 echo "${ECHO_T}no" >&6
12990 echo "$as_me:$LINENO: checking GCC flag(s) -Wpacked" >&5
12991 echo $ECHO_N "checking GCC flag(s) -Wpacked... $ECHO_C" >&6
12992 if test "${GCC-no}" = yes
12994 if test "${charybdis_cv_c_gcc_w_packed+set}" = set; then
12995 echo $ECHO_N "(cached) $ECHO_C" >&6
12998 oldcflags
="${CFLAGS-}"
12999 CFLAGS
="${CFLAGS-} ${CWARNS} -Wpacked -Werror"
13000 cat >conftest.
$ac_ext <<_ACEOF
13003 cat confdefs.h
>>conftest.
$ac_ext
13004 cat >>conftest.
$ac_ext <<_ACEOF
13005 /* end confdefs.h. */
13007 #include <string.h>
13015 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
13021 rm -f conftest.
$ac_objext
13022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13023 (eval $ac_compile) 2>conftest.er1
13025 grep -v '^ *+' conftest.er1
>conftest.err
13027 cat conftest.err
>&5
13028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029 (exit $ac_status); } &&
13030 { ac_try
='test -z "$ac_c_werror_flag"
13031 || test ! -s conftest.err'
13032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13033 (eval $ac_try) 2>&5
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); }; } &&
13037 { ac_try
='test -s conftest.$ac_objext'
13038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13039 (eval $ac_try) 2>&5
13041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 (exit $ac_status); }; }; then
13043 charybdis_cv_c_gcc_w_packed
=yes
13045 echo "$as_me: failed program was:" >&5
13046 sed 's/^/| /' conftest.
$ac_ext >&5
13048 charybdis_cv_c_gcc_w_packed
=no
13050 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13051 CFLAGS
="${oldcflags}"
13054 if test "x$charybdis_cv_c_gcc_w_packed" = xyes
; then
13055 CWARNS
="${CWARNS}-Wpacked "
13056 echo "$as_me:$LINENO: result: ok" >&5
13057 echo "${ECHO_T}ok" >&6
13059 charybdis_cv_c_gcc_w_packed
=''
13060 echo "$as_me:$LINENO: result: no" >&5
13061 echo "${ECHO_T}no" >&6
13064 echo "$as_me:$LINENO: result: no" >&5
13065 echo "${ECHO_T}no" >&6
13069 echo "$as_me:$LINENO: checking GCC flag(s) -Wnested-externs" >&5
13070 echo $ECHO_N "checking GCC flag(s) -Wnested-externs... $ECHO_C" >&6
13071 if test "${GCC-no}" = yes
13073 if test "${charybdis_cv_c_gcc_w_nested_externs+set}" = set; then
13074 echo $ECHO_N "(cached) $ECHO_C" >&6
13077 oldcflags
="${CFLAGS-}"
13078 CFLAGS
="${CFLAGS-} ${CWARNS} -Wnested-externs -Werror"
13079 cat >conftest.
$ac_ext <<_ACEOF
13082 cat confdefs.h
>>conftest.
$ac_ext
13083 cat >>conftest.
$ac_ext <<_ACEOF
13084 /* end confdefs.h. */
13086 #include <string.h>
13094 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
13100 rm -f conftest.
$ac_objext
13101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13102 (eval $ac_compile) 2>conftest.er1
13104 grep -v '^ *+' conftest.er1
>conftest.err
13106 cat conftest.err
>&5
13107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108 (exit $ac_status); } &&
13109 { ac_try
='test -z "$ac_c_werror_flag"
13110 || test ! -s conftest.err'
13111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13112 (eval $ac_try) 2>&5
13114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115 (exit $ac_status); }; } &&
13116 { ac_try
='test -s conftest.$ac_objext'
13117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13118 (eval $ac_try) 2>&5
13120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121 (exit $ac_status); }; }; then
13122 charybdis_cv_c_gcc_w_nested_externs
=yes
13124 echo "$as_me: failed program was:" >&5
13125 sed 's/^/| /' conftest.
$ac_ext >&5
13127 charybdis_cv_c_gcc_w_nested_externs
=no
13129 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13130 CFLAGS
="${oldcflags}"
13133 if test "x$charybdis_cv_c_gcc_w_nested_externs" = xyes
; then
13134 CWARNS
="${CWARNS}-Wnested-externs "
13135 echo "$as_me:$LINENO: result: ok" >&5
13136 echo "${ECHO_T}ok" >&6
13138 charybdis_cv_c_gcc_w_nested_externs
=''
13139 echo "$as_me:$LINENO: result: no" >&5
13140 echo "${ECHO_T}no" >&6
13143 echo "$as_me:$LINENO: result: no" >&5
13144 echo "${ECHO_T}no" >&6
13148 echo "$as_me:$LINENO: checking GCC flag(s) -Wbad-function-cast" >&5
13149 echo $ECHO_N "checking GCC flag(s) -Wbad-function-cast... $ECHO_C" >&6
13150 if test "${GCC-no}" = yes
13152 if test "${charybdis_cv_c_gcc_w_bad_function_cast+set}" = set; then
13153 echo $ECHO_N "(cached) $ECHO_C" >&6
13156 oldcflags
="${CFLAGS-}"
13157 CFLAGS
="${CFLAGS-} ${CWARNS} -Wbad-function-cast -Werror"
13158 cat >conftest.
$ac_ext <<_ACEOF
13161 cat confdefs.h
>>conftest.
$ac_ext
13162 cat >>conftest.
$ac_ext <<_ACEOF
13163 /* end confdefs.h. */
13165 #include <string.h>
13173 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
13179 rm -f conftest.
$ac_objext
13180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13181 (eval $ac_compile) 2>conftest.er1
13183 grep -v '^ *+' conftest.er1
>conftest.err
13185 cat conftest.err
>&5
13186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187 (exit $ac_status); } &&
13188 { ac_try
='test -z "$ac_c_werror_flag"
13189 || test ! -s conftest.err'
13190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13191 (eval $ac_try) 2>&5
13193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194 (exit $ac_status); }; } &&
13195 { ac_try
='test -s conftest.$ac_objext'
13196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13197 (eval $ac_try) 2>&5
13199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200 (exit $ac_status); }; }; then
13201 charybdis_cv_c_gcc_w_bad_function_cast
=yes
13203 echo "$as_me: failed program was:" >&5
13204 sed 's/^/| /' conftest.
$ac_ext >&5
13206 charybdis_cv_c_gcc_w_bad_function_cast
=no
13208 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13209 CFLAGS
="${oldcflags}"
13212 if test "x$charybdis_cv_c_gcc_w_bad_function_cast" = xyes
; then
13213 CWARNS
="${CWARNS}-Wbad-function-cast "
13214 echo "$as_me:$LINENO: result: ok" >&5
13215 echo "${ECHO_T}ok" >&6
13217 charybdis_cv_c_gcc_w_bad_function_cast
=''
13218 echo "$as_me:$LINENO: result: no" >&5
13219 echo "${ECHO_T}no" >&6
13222 echo "$as_me:$LINENO: result: no" >&5
13223 echo "${ECHO_T}no" >&6
13227 echo "$as_me:$LINENO: checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable" >&5
13228 echo $ECHO_N "checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable... $ECHO_C" >&6
13229 if test "${GCC-no}" = yes
13231 if test "${charybdis_cv_c_gcc_w_unused+set}" = set; then
13232 echo $ECHO_N "(cached) $ECHO_C" >&6
13235 oldcflags
="${CFLAGS-}"
13236 CFLAGS
="${CFLAGS-} ${CWARNS} -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Werror"
13237 cat >conftest.
$ac_ext <<_ACEOF
13240 cat confdefs.h
>>conftest.
$ac_ext
13241 cat >>conftest.
$ac_ext <<_ACEOF
13242 /* end confdefs.h. */
13244 #include <string.h>
13252 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
13258 rm -f conftest.
$ac_objext
13259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13260 (eval $ac_compile) 2>conftest.er1
13262 grep -v '^ *+' conftest.er1
>conftest.err
13264 cat conftest.err
>&5
13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 (exit $ac_status); } &&
13267 { ac_try
='test -z "$ac_c_werror_flag"
13268 || test ! -s conftest.err'
13269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13270 (eval $ac_try) 2>&5
13272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273 (exit $ac_status); }; } &&
13274 { ac_try
='test -s conftest.$ac_objext'
13275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13276 (eval $ac_try) 2>&5
13278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279 (exit $ac_status); }; }; then
13280 charybdis_cv_c_gcc_w_unused
=yes
13282 echo "$as_me: failed program was:" >&5
13283 sed 's/^/| /' conftest.
$ac_ext >&5
13285 charybdis_cv_c_gcc_w_unused
=no
13287 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13288 CFLAGS
="${oldcflags}"
13291 if test "x$charybdis_cv_c_gcc_w_unused" = xyes
; then
13292 CWARNS
="${CWARNS}-Wunused-function -Wunused-label -Wunused-value -Wunused-variable "
13293 echo "$as_me:$LINENO: result: ok" >&5
13294 echo "${ECHO_T}ok" >&6
13296 charybdis_cv_c_gcc_w_unused
=''
13297 echo "$as_me:$LINENO: result: no" >&5
13298 echo "${ECHO_T}no" >&6
13301 echo "$as_me:$LINENO: result: no" >&5
13302 echo "${ECHO_T}no" >&6
13306 echo "$as_me:$LINENO: checking GCC flag(s) -Wredundant-decls" >&5
13307 echo $ECHO_N "checking GCC flag(s) -Wredundant-decls... $ECHO_C" >&6
13308 if test "${GCC-no}" = yes
13310 if test "${charybdis_cv_c_gcc_w_redundant_decls+set}" = set; then
13311 echo $ECHO_N "(cached) $ECHO_C" >&6
13314 oldcflags
="${CFLAGS-}"
13315 CFLAGS
="${CFLAGS-} ${CWARNS} -Wredundant-decls -Werror"
13316 cat >conftest.
$ac_ext <<_ACEOF
13319 cat confdefs.h
>>conftest.
$ac_ext
13320 cat >>conftest.
$ac_ext <<_ACEOF
13321 /* end confdefs.h. */
13323 #include <string.h>
13331 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
13337 rm -f conftest.
$ac_objext
13338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13339 (eval $ac_compile) 2>conftest.er1
13341 grep -v '^ *+' conftest.er1
>conftest.err
13343 cat conftest.err
>&5
13344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 (exit $ac_status); } &&
13346 { ac_try
='test -z "$ac_c_werror_flag"
13347 || test ! -s conftest.err'
13348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13349 (eval $ac_try) 2>&5
13351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352 (exit $ac_status); }; } &&
13353 { ac_try
='test -s conftest.$ac_objext'
13354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13355 (eval $ac_try) 2>&5
13357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13358 (exit $ac_status); }; }; then
13359 charybdis_cv_c_gcc_w_redundant_decls
=yes
13361 echo "$as_me: failed program was:" >&5
13362 sed 's/^/| /' conftest.
$ac_ext >&5
13364 charybdis_cv_c_gcc_w_redundant_decls
=no
13366 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13367 CFLAGS
="${oldcflags}"
13370 if test "x$charybdis_cv_c_gcc_w_redundant_decls" = xyes
; then
13371 CWARNS
="${CWARNS}-Wredundant-decls "
13372 echo "$as_me:$LINENO: result: ok" >&5
13373 echo "${ECHO_T}ok" >&6
13375 charybdis_cv_c_gcc_w_redundant_decls
=''
13376 echo "$as_me:$LINENO: result: no" >&5
13377 echo "${ECHO_T}no" >&6
13380 echo "$as_me:$LINENO: result: no" >&5
13381 echo "${ECHO_T}no" >&6
13385 echo "$as_me:$LINENO: checking GCC flag(s) -Wfloat-equal" >&5
13386 echo $ECHO_N "checking GCC flag(s) -Wfloat-equal... $ECHO_C" >&6
13387 if test "${GCC-no}" = yes
13389 if test "${charybdis_cv_c_gcc_w_float_equal+set}" = set; then
13390 echo $ECHO_N "(cached) $ECHO_C" >&6
13393 oldcflags
="${CFLAGS-}"
13394 CFLAGS
="${CFLAGS-} ${CWARNS} -Wfloat-equal -Werror"
13395 cat >conftest.
$ac_ext <<_ACEOF
13398 cat confdefs.h
>>conftest.
$ac_ext
13399 cat >>conftest.
$ac_ext <<_ACEOF
13400 /* end confdefs.h. */
13402 #include <string.h>
13410 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
13416 rm -f conftest.
$ac_objext
13417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13418 (eval $ac_compile) 2>conftest.er1
13420 grep -v '^ *+' conftest.er1
>conftest.err
13422 cat conftest.err
>&5
13423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424 (exit $ac_status); } &&
13425 { ac_try
='test -z "$ac_c_werror_flag"
13426 || test ! -s conftest.err'
13427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13428 (eval $ac_try) 2>&5
13430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431 (exit $ac_status); }; } &&
13432 { ac_try
='test -s conftest.$ac_objext'
13433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13434 (eval $ac_try) 2>&5
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); }; }; then
13438 charybdis_cv_c_gcc_w_float_equal
=yes
13440 echo "$as_me: failed program was:" >&5
13441 sed 's/^/| /' conftest.
$ac_ext >&5
13443 charybdis_cv_c_gcc_w_float_equal
=no
13445 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13446 CFLAGS
="${oldcflags}"
13449 if test "x$charybdis_cv_c_gcc_w_float_equal" = xyes
; then
13450 CWARNS
="${CWARNS}-Wfloat-equal "
13451 echo "$as_me:$LINENO: result: ok" >&5
13452 echo "${ECHO_T}ok" >&6
13454 charybdis_cv_c_gcc_w_float_equal
=''
13455 echo "$as_me:$LINENO: result: no" >&5
13456 echo "${ECHO_T}no" >&6
13459 echo "$as_me:$LINENO: result: no" >&5
13460 echo "${ECHO_T}no" >&6
13464 echo "$as_me:$LINENO: checking GCC flag(s) -Wformat=2" >&5
13465 echo $ECHO_N "checking GCC flag(s) -Wformat=2... $ECHO_C" >&6
13466 if test "${GCC-no}" = yes
13468 if test "${charybdis_cv_c_gcc_w_format+set}" = set; then
13469 echo $ECHO_N "(cached) $ECHO_C" >&6
13472 oldcflags
="${CFLAGS-}"
13473 CFLAGS
="${CFLAGS-} ${CWARNS} -Wformat=2 -Werror"
13474 cat >conftest.
$ac_ext <<_ACEOF
13477 cat confdefs.h
>>conftest.
$ac_ext
13478 cat >>conftest.
$ac_ext <<_ACEOF
13479 /* end confdefs.h. */
13481 #include <string.h>
13489 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
13495 rm -f conftest.
$ac_objext
13496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13497 (eval $ac_compile) 2>conftest.er1
13499 grep -v '^ *+' conftest.er1
>conftest.err
13501 cat conftest.err
>&5
13502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503 (exit $ac_status); } &&
13504 { ac_try
='test -z "$ac_c_werror_flag"
13505 || test ! -s conftest.err'
13506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13507 (eval $ac_try) 2>&5
13509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510 (exit $ac_status); }; } &&
13511 { ac_try
='test -s conftest.$ac_objext'
13512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13513 (eval $ac_try) 2>&5
13515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); }; }; then
13517 charybdis_cv_c_gcc_w_format
=yes
13519 echo "$as_me: failed program was:" >&5
13520 sed 's/^/| /' conftest.
$ac_ext >&5
13522 charybdis_cv_c_gcc_w_format
=no
13524 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13525 CFLAGS
="${oldcflags}"
13528 if test "x$charybdis_cv_c_gcc_w_format" = xyes
; then
13529 CWARNS
="${CWARNS}-Wformat=2 "
13530 echo "$as_me:$LINENO: result: ok" >&5
13531 echo "${ECHO_T}ok" >&6
13533 charybdis_cv_c_gcc_w_format
=''
13534 echo "$as_me:$LINENO: result: no" >&5
13535 echo "${ECHO_T}no" >&6
13538 echo "$as_me:$LINENO: result: no" >&5
13539 echo "${ECHO_T}no" >&6
13543 echo "$as_me:$LINENO: checking GCC flag(s) -pedantic" >&5
13544 echo $ECHO_N "checking GCC flag(s) -pedantic... $ECHO_C" >&6
13545 if test "${GCC-no}" = yes
13547 if test "${charybdis_cv_c_gcc_pedantic+set}" = set; then
13548 echo $ECHO_N "(cached) $ECHO_C" >&6
13551 oldcflags
="${CFLAGS-}"
13552 CFLAGS
="${CFLAGS-} ${CWARNS} -pedantic -Werror"
13553 cat >conftest.
$ac_ext <<_ACEOF
13556 cat confdefs.h
>>conftest.
$ac_ext
13557 cat >>conftest.
$ac_ext <<_ACEOF
13558 /* end confdefs.h. */
13560 #include <string.h>
13568 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
13574 rm -f conftest.
$ac_objext
13575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13576 (eval $ac_compile) 2>conftest.er1
13578 grep -v '^ *+' conftest.er1
>conftest.err
13580 cat conftest.err
>&5
13581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582 (exit $ac_status); } &&
13583 { ac_try
='test -z "$ac_c_werror_flag"
13584 || test ! -s conftest.err'
13585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13586 (eval $ac_try) 2>&5
13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); }; } &&
13590 { ac_try
='test -s conftest.$ac_objext'
13591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13592 (eval $ac_try) 2>&5
13594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13595 (exit $ac_status); }; }; then
13596 charybdis_cv_c_gcc_pedantic
=yes
13598 echo "$as_me: failed program was:" >&5
13599 sed 's/^/| /' conftest.
$ac_ext >&5
13601 charybdis_cv_c_gcc_pedantic
=no
13603 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13604 CFLAGS
="${oldcflags}"
13607 if test "x$charybdis_cv_c_gcc_pedantic" = xyes
; then
13608 CWARNS
="${CWARNS}-pedantic "
13609 echo "$as_me:$LINENO: result: ok" >&5
13610 echo "${ECHO_T}ok" >&6
13612 charybdis_cv_c_gcc_pedantic
=''
13613 echo "$as_me:$LINENO: result: no" >&5
13614 echo "${ECHO_T}no" >&6
13617 echo "$as_me:$LINENO: result: no" >&5
13618 echo "${ECHO_T}no" >&6
13622 IRC_CFLAGS
="$CFLAGS"
13626 if test "$shared_modules" = no
; then
13628 MOD_TARGET
="libmodules.a"
13629 MODULES_LIBS
="../modules/libmodules.a"
13632 cat >>confdefs.h
<<\_ACEOF
13633 #define STATIC_MODULES 1
13636 { echo "$as_me:$LINENO: WARNING: shared module support has been disabled!" >&5
13637 echo "$as_me: WARNING: shared module support has been disabled!" >&2;}
13640 if test "$shared_modules" = yes; then
13642 echo "$as_me:$LINENO: checking for nlist" >&5
13643 echo $ECHO_N "checking for nlist... $ECHO_C" >&6
13644 if test "${ac_cv_func_nlist+set}" = set; then
13645 echo $ECHO_N "(cached) $ECHO_C" >&6
13647 cat >conftest.
$ac_ext <<_ACEOF
13650 cat confdefs.h
>>conftest.
$ac_ext
13651 cat >>conftest.
$ac_ext <<_ACEOF
13652 /* end confdefs.h. */
13653 /* Define nlist to an innocuous variant, in case <limits.h> declares nlist.
13654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13655 #define nlist innocuous_nlist
13657 /* System header to define __stub macros and hopefully few prototypes,
13658 which can conflict with char nlist (); below.
13659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13660 <limits.h> exists even on freestanding compilers. */
13663 # include <limits.h>
13665 # include <assert.h>
13670 /* Override any gcc2 internal prototype to avoid an error. */
13675 /* We use char because int might match the return type of a gcc2
13676 builtin and then its argument prototype would still apply. */
13678 /* The GNU C library defines this for functions which it implements
13679 to always fail with ENOSYS. Some functions are actually named
13680 something starting with __ and the normal name is an alias. */
13681 #if defined (__stub_nlist) || defined (__stub___nlist)
13684 char (*f) () = nlist;
13698 rm -f conftest.
$ac_objext conftest
$ac_exeext
13699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13700 (eval $ac_link) 2>conftest.er1
13702 grep -v '^ *+' conftest.er1
>conftest.err
13704 cat conftest.err
>&5
13705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706 (exit $ac_status); } &&
13707 { ac_try
='test -z "$ac_c_werror_flag"
13708 || test ! -s conftest.err'
13709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13710 (eval $ac_try) 2>&5
13712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713 (exit $ac_status); }; } &&
13714 { ac_try
='test -s conftest$ac_exeext'
13715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13716 (eval $ac_try) 2>&5
13718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719 (exit $ac_status); }; }; then
13720 ac_cv_func_nlist
=yes
13722 echo "$as_me: failed program was:" >&5
13723 sed 's/^/| /' conftest.
$ac_ext >&5
13725 ac_cv_func_nlist
=no
13727 rm -f conftest.err conftest.
$ac_objext \
13728 conftest
$ac_exeext conftest.
$ac_ext
13730 echo "$as_me:$LINENO: result: $ac_cv_func_nlist" >&5
13731 echo "${ECHO_T}$ac_cv_func_nlist" >&6
13732 if test $ac_cv_func_nlist = yes; then
13735 echo "$as_me:$LINENO: checking for nlist in -ldl" >&5
13736 echo $ECHO_N "checking for nlist in -ldl... $ECHO_C" >&6
13737 if test "${ac_cv_lib_dl_nlist+set}" = set; then
13738 echo $ECHO_N "(cached) $ECHO_C" >&6
13740 ac_check_lib_save_LIBS
=$LIBS
13742 cat >conftest.
$ac_ext <<_ACEOF
13745 cat confdefs.h
>>conftest.
$ac_ext
13746 cat >>conftest.
$ac_ext <<_ACEOF
13747 /* end confdefs.h. */
13749 /* Override any gcc2 internal prototype to avoid an error. */
13753 /* We use char because int might match the return type of a gcc2
13754 builtin and then its argument prototype would still apply. */
13764 rm -f conftest.
$ac_objext conftest
$ac_exeext
13765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13766 (eval $ac_link) 2>conftest.er1
13768 grep -v '^ *+' conftest.er1
>conftest.err
13770 cat conftest.err
>&5
13771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772 (exit $ac_status); } &&
13773 { ac_try
='test -z "$ac_c_werror_flag"
13774 || test ! -s conftest.err'
13775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13776 (eval $ac_try) 2>&5
13778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779 (exit $ac_status); }; } &&
13780 { ac_try
='test -s conftest$ac_exeext'
13781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13782 (eval $ac_try) 2>&5
13784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785 (exit $ac_status); }; }; then
13786 ac_cv_lib_dl_nlist
=yes
13788 echo "$as_me: failed program was:" >&5
13789 sed 's/^/| /' conftest.
$ac_ext >&5
13791 ac_cv_lib_dl_nlist
=no
13793 rm -f conftest.err conftest.
$ac_objext \
13794 conftest
$ac_exeext conftest.
$ac_ext
13795 LIBS
=$ac_check_lib_save_LIBS
13797 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_nlist" >&5
13798 echo "${ECHO_T}$ac_cv_lib_dl_nlist" >&6
13799 if test $ac_cv_lib_dl_nlist = yes; then
13802 echo "$as_me:$LINENO: checking for nlist in -lelf" >&5
13803 echo $ECHO_N "checking for nlist in -lelf... $ECHO_C" >&6
13804 if test "${ac_cv_lib_elf_nlist+set}" = set; then
13805 echo $ECHO_N "(cached) $ECHO_C" >&6
13807 ac_check_lib_save_LIBS
=$LIBS
13809 cat >conftest.
$ac_ext <<_ACEOF
13812 cat confdefs.h
>>conftest.
$ac_ext
13813 cat >>conftest.
$ac_ext <<_ACEOF
13814 /* end confdefs.h. */
13816 /* Override any gcc2 internal prototype to avoid an error. */
13820 /* We use char because int might match the return type of a gcc2
13821 builtin and then its argument prototype would still apply. */
13831 rm -f conftest.
$ac_objext conftest
$ac_exeext
13832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13833 (eval $ac_link) 2>conftest.er1
13835 grep -v '^ *+' conftest.er1
>conftest.err
13837 cat conftest.err
>&5
13838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839 (exit $ac_status); } &&
13840 { ac_try
='test -z "$ac_c_werror_flag"
13841 || test ! -s conftest.err'
13842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13843 (eval $ac_try) 2>&5
13845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13846 (exit $ac_status); }; } &&
13847 { ac_try
='test -s conftest$ac_exeext'
13848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13849 (eval $ac_try) 2>&5
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); }; }; then
13853 ac_cv_lib_elf_nlist
=yes
13855 echo "$as_me: failed program was:" >&5
13856 sed 's/^/| /' conftest.
$ac_ext >&5
13858 ac_cv_lib_elf_nlist
=no
13860 rm -f conftest.err conftest.
$ac_objext \
13861 conftest
$ac_exeext conftest.
$ac_ext
13862 LIBS
=$ac_check_lib_save_LIBS
13864 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_nlist" >&5
13865 echo "${ECHO_T}$ac_cv_lib_elf_nlist" >&6
13866 if test $ac_cv_lib_elf_nlist = yes; then
13877 if test "${ac_cv_header_libelf_nlist_h+set}" = set; then
13878 echo "$as_me:$LINENO: checking for libelf/nlist.h" >&5
13879 echo $ECHO_N "checking for libelf/nlist.h... $ECHO_C" >&6
13880 if test "${ac_cv_header_libelf_nlist_h+set}" = set; then
13881 echo $ECHO_N "(cached) $ECHO_C" >&6
13883 echo "$as_me:$LINENO: result: $ac_cv_header_libelf_nlist_h" >&5
13884 echo "${ECHO_T}$ac_cv_header_libelf_nlist_h" >&6
13886 # Is the header compilable?
13887 echo "$as_me:$LINENO: checking libelf/nlist.h usability" >&5
13888 echo $ECHO_N "checking libelf/nlist.h usability... $ECHO_C" >&6
13889 cat >conftest.
$ac_ext <<_ACEOF
13892 cat confdefs.h
>>conftest.
$ac_ext
13893 cat >>conftest.
$ac_ext <<_ACEOF
13894 /* end confdefs.h. */
13895 $ac_includes_default
13896 #include <libelf/nlist.h>
13898 rm -f conftest.
$ac_objext
13899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13900 (eval $ac_compile) 2>conftest.er1
13902 grep -v '^ *+' conftest.er1
>conftest.err
13904 cat conftest.err
>&5
13905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906 (exit $ac_status); } &&
13907 { ac_try
='test -z "$ac_c_werror_flag"
13908 || test ! -s conftest.err'
13909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13910 (eval $ac_try) 2>&5
13912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913 (exit $ac_status); }; } &&
13914 { ac_try
='test -s conftest.$ac_objext'
13915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13916 (eval $ac_try) 2>&5
13918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13919 (exit $ac_status); }; }; then
13920 ac_header_compiler
=yes
13922 echo "$as_me: failed program was:" >&5
13923 sed 's/^/| /' conftest.
$ac_ext >&5
13925 ac_header_compiler
=no
13927 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13928 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13929 echo "${ECHO_T}$ac_header_compiler" >&6
13931 # Is the header present?
13932 echo "$as_me:$LINENO: checking libelf/nlist.h presence" >&5
13933 echo $ECHO_N "checking libelf/nlist.h presence... $ECHO_C" >&6
13934 cat >conftest.
$ac_ext <<_ACEOF
13937 cat confdefs.h
>>conftest.
$ac_ext
13938 cat >>conftest.
$ac_ext <<_ACEOF
13939 /* end confdefs.h. */
13940 #include <libelf/nlist.h>
13942 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13943 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13945 grep -v '^ *+' conftest.er1
>conftest.err
13947 cat conftest.err
>&5
13948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949 (exit $ac_status); } >/dev
/null
; then
13950 if test -s conftest.err
; then
13951 ac_cpp_err
=$ac_c_preproc_warn_flag
13952 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13959 if test -z "$ac_cpp_err"; then
13960 ac_header_preproc
=yes
13962 echo "$as_me: failed program was:" >&5
13963 sed 's/^/| /' conftest.
$ac_ext >&5
13965 ac_header_preproc
=no
13967 rm -f conftest.err conftest.
$ac_ext
13968 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13969 echo "${ECHO_T}$ac_header_preproc" >&6
13971 # So? What about this header?
13972 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13974 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5
13975 echo "$as_me: WARNING: libelf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13976 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: proceeding with the compiler's result" >&5
13977 echo "$as_me: WARNING: libelf/nlist.h: proceeding with the compiler's result" >&2;}
13978 ac_header_preproc
=yes
13981 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: present but cannot be compiled" >&5
13982 echo "$as_me: WARNING: libelf/nlist.h: present but cannot be compiled" >&2;}
13983 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: check for missing prerequisite headers?" >&5
13984 echo "$as_me: WARNING: libelf/nlist.h: check for missing prerequisite headers?" >&2;}
13985 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: see the Autoconf documentation" >&5
13986 echo "$as_me: WARNING: libelf/nlist.h: see the Autoconf documentation" >&2;}
13987 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: section \"Present But Cannot Be Compiled\"" >&5
13988 echo "$as_me: WARNING: libelf/nlist.h: section \"Present But Cannot Be Compiled\"" >&2;}
13989 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: proceeding with the preprocessor's result" >&5
13990 echo "$as_me: WARNING: libelf/nlist.h: proceeding with the preprocessor's result" >&2;}
13991 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: in the future, the compiler will take precedence" >&5
13992 echo "$as_me: WARNING: libelf/nlist.h: in the future, the compiler will take precedence" >&2;}
13995 ## ------------------------------------ ##
13996 ## Report this to the charybdis lists. ##
13997 ## ------------------------------------ ##
14000 sed "s/^/$as_me: WARNING: /" >&2
14003 echo "$as_me:$LINENO: checking for libelf/nlist.h" >&5
14004 echo $ECHO_N "checking for libelf/nlist.h... $ECHO_C" >&6
14005 if test "${ac_cv_header_libelf_nlist_h+set}" = set; then
14006 echo $ECHO_N "(cached) $ECHO_C" >&6
14008 ac_cv_header_libelf_nlist_h
=$ac_header_preproc
14010 echo "$as_me:$LINENO: result: $ac_cv_header_libelf_nlist_h" >&5
14011 echo "${ECHO_T}$ac_cv_header_libelf_nlist_h" >&6
14014 if test $ac_cv_header_libelf_nlist_h = yes; then
14015 nlist_h
="libelf/nlist.h"
14019 if test "${ac_cv_header_elf_nlist_h+set}" = set; then
14020 echo "$as_me:$LINENO: checking for elf/nlist.h" >&5
14021 echo $ECHO_N "checking for elf/nlist.h... $ECHO_C" >&6
14022 if test "${ac_cv_header_elf_nlist_h+set}" = set; then
14023 echo $ECHO_N "(cached) $ECHO_C" >&6
14025 echo "$as_me:$LINENO: result: $ac_cv_header_elf_nlist_h" >&5
14026 echo "${ECHO_T}$ac_cv_header_elf_nlist_h" >&6
14028 # Is the header compilable?
14029 echo "$as_me:$LINENO: checking elf/nlist.h usability" >&5
14030 echo $ECHO_N "checking elf/nlist.h usability... $ECHO_C" >&6
14031 cat >conftest.
$ac_ext <<_ACEOF
14034 cat confdefs.h
>>conftest.
$ac_ext
14035 cat >>conftest.
$ac_ext <<_ACEOF
14036 /* end confdefs.h. */
14037 $ac_includes_default
14038 #include <elf/nlist.h>
14040 rm -f conftest.
$ac_objext
14041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14042 (eval $ac_compile) 2>conftest.er1
14044 grep -v '^ *+' conftest.er1
>conftest.err
14046 cat conftest.err
>&5
14047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14048 (exit $ac_status); } &&
14049 { ac_try
='test -z "$ac_c_werror_flag"
14050 || test ! -s conftest.err'
14051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14052 (eval $ac_try) 2>&5
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); }; } &&
14056 { ac_try
='test -s conftest.$ac_objext'
14057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14058 (eval $ac_try) 2>&5
14060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061 (exit $ac_status); }; }; then
14062 ac_header_compiler
=yes
14064 echo "$as_me: failed program was:" >&5
14065 sed 's/^/| /' conftest.
$ac_ext >&5
14067 ac_header_compiler
=no
14069 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14070 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14071 echo "${ECHO_T}$ac_header_compiler" >&6
14073 # Is the header present?
14074 echo "$as_me:$LINENO: checking elf/nlist.h presence" >&5
14075 echo $ECHO_N "checking elf/nlist.h presence... $ECHO_C" >&6
14076 cat >conftest.
$ac_ext <<_ACEOF
14079 cat confdefs.h
>>conftest.
$ac_ext
14080 cat >>conftest.
$ac_ext <<_ACEOF
14081 /* end confdefs.h. */
14082 #include <elf/nlist.h>
14084 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14085 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14087 grep -v '^ *+' conftest.er1
>conftest.err
14089 cat conftest.err
>&5
14090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091 (exit $ac_status); } >/dev
/null
; then
14092 if test -s conftest.err
; then
14093 ac_cpp_err
=$ac_c_preproc_warn_flag
14094 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14101 if test -z "$ac_cpp_err"; then
14102 ac_header_preproc
=yes
14104 echo "$as_me: failed program was:" >&5
14105 sed 's/^/| /' conftest.
$ac_ext >&5
14107 ac_header_preproc
=no
14109 rm -f conftest.err conftest.
$ac_ext
14110 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14111 echo "${ECHO_T}$ac_header_preproc" >&6
14113 # So? What about this header?
14114 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14116 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5
14117 echo "$as_me: WARNING: elf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14118 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: proceeding with the compiler's result" >&5
14119 echo "$as_me: WARNING: elf/nlist.h: proceeding with the compiler's result" >&2;}
14120 ac_header_preproc
=yes
14123 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: present but cannot be compiled" >&5
14124 echo "$as_me: WARNING: elf/nlist.h: present but cannot be compiled" >&2;}
14125 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: check for missing prerequisite headers?" >&5
14126 echo "$as_me: WARNING: elf/nlist.h: check for missing prerequisite headers?" >&2;}
14127 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: see the Autoconf documentation" >&5
14128 echo "$as_me: WARNING: elf/nlist.h: see the Autoconf documentation" >&2;}
14129 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: section \"Present But Cannot Be Compiled\"" >&5
14130 echo "$as_me: WARNING: elf/nlist.h: section \"Present But Cannot Be Compiled\"" >&2;}
14131 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: proceeding with the preprocessor's result" >&5
14132 echo "$as_me: WARNING: elf/nlist.h: proceeding with the preprocessor's result" >&2;}
14133 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: in the future, the compiler will take precedence" >&5
14134 echo "$as_me: WARNING: elf/nlist.h: in the future, the compiler will take precedence" >&2;}
14137 ## ------------------------------------ ##
14138 ## Report this to the charybdis lists. ##
14139 ## ------------------------------------ ##
14142 sed "s/^/$as_me: WARNING: /" >&2
14145 echo "$as_me:$LINENO: checking for elf/nlist.h" >&5
14146 echo $ECHO_N "checking for elf/nlist.h... $ECHO_C" >&6
14147 if test "${ac_cv_header_elf_nlist_h+set}" = set; then
14148 echo $ECHO_N "(cached) $ECHO_C" >&6
14150 ac_cv_header_elf_nlist_h
=$ac_header_preproc
14152 echo "$as_me:$LINENO: result: $ac_cv_header_elf_nlist_h" >&5
14153 echo "${ECHO_T}$ac_cv_header_elf_nlist_h" >&6
14156 if test $ac_cv_header_elf_nlist_h = yes; then
14157 nlist_h
="elf/nlist.h"
14161 if test "${ac_cv_header_nlist_h+set}" = set; then
14162 echo "$as_me:$LINENO: checking for nlist.h" >&5
14163 echo $ECHO_N "checking for nlist.h... $ECHO_C" >&6
14164 if test "${ac_cv_header_nlist_h+set}" = set; then
14165 echo $ECHO_N "(cached) $ECHO_C" >&6
14167 echo "$as_me:$LINENO: result: $ac_cv_header_nlist_h" >&5
14168 echo "${ECHO_T}$ac_cv_header_nlist_h" >&6
14170 # Is the header compilable?
14171 echo "$as_me:$LINENO: checking nlist.h usability" >&5
14172 echo $ECHO_N "checking nlist.h usability... $ECHO_C" >&6
14173 cat >conftest.
$ac_ext <<_ACEOF
14176 cat confdefs.h
>>conftest.
$ac_ext
14177 cat >>conftest.
$ac_ext <<_ACEOF
14178 /* end confdefs.h. */
14179 $ac_includes_default
14182 rm -f conftest.
$ac_objext
14183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14184 (eval $ac_compile) 2>conftest.er1
14186 grep -v '^ *+' conftest.er1
>conftest.err
14188 cat conftest.err
>&5
14189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190 (exit $ac_status); } &&
14191 { ac_try
='test -z "$ac_c_werror_flag"
14192 || test ! -s conftest.err'
14193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14194 (eval $ac_try) 2>&5
14196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197 (exit $ac_status); }; } &&
14198 { ac_try
='test -s conftest.$ac_objext'
14199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14200 (eval $ac_try) 2>&5
14202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203 (exit $ac_status); }; }; then
14204 ac_header_compiler
=yes
14206 echo "$as_me: failed program was:" >&5
14207 sed 's/^/| /' conftest.
$ac_ext >&5
14209 ac_header_compiler
=no
14211 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14212 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14213 echo "${ECHO_T}$ac_header_compiler" >&6
14215 # Is the header present?
14216 echo "$as_me:$LINENO: checking nlist.h presence" >&5
14217 echo $ECHO_N "checking nlist.h presence... $ECHO_C" >&6
14218 cat >conftest.
$ac_ext <<_ACEOF
14221 cat confdefs.h
>>conftest.
$ac_ext
14222 cat >>conftest.
$ac_ext <<_ACEOF
14223 /* end confdefs.h. */
14226 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14227 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14229 grep -v '^ *+' conftest.er1
>conftest.err
14231 cat conftest.err
>&5
14232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233 (exit $ac_status); } >/dev
/null
; then
14234 if test -s conftest.err
; then
14235 ac_cpp_err
=$ac_c_preproc_warn_flag
14236 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14243 if test -z "$ac_cpp_err"; then
14244 ac_header_preproc
=yes
14246 echo "$as_me: failed program was:" >&5
14247 sed 's/^/| /' conftest.
$ac_ext >&5
14249 ac_header_preproc
=no
14251 rm -f conftest.err conftest.
$ac_ext
14252 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14253 echo "${ECHO_T}$ac_header_preproc" >&6
14255 # So? What about this header?
14256 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14258 { echo "$as_me:$LINENO: WARNING: nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5
14259 echo "$as_me: WARNING: nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14260 { echo "$as_me:$LINENO: WARNING: nlist.h: proceeding with the compiler's result" >&5
14261 echo "$as_me: WARNING: nlist.h: proceeding with the compiler's result" >&2;}
14262 ac_header_preproc
=yes
14265 { echo "$as_me:$LINENO: WARNING: nlist.h: present but cannot be compiled" >&5
14266 echo "$as_me: WARNING: nlist.h: present but cannot be compiled" >&2;}
14267 { echo "$as_me:$LINENO: WARNING: nlist.h: check for missing prerequisite headers?" >&5
14268 echo "$as_me: WARNING: nlist.h: check for missing prerequisite headers?" >&2;}
14269 { echo "$as_me:$LINENO: WARNING: nlist.h: see the Autoconf documentation" >&5
14270 echo "$as_me: WARNING: nlist.h: see the Autoconf documentation" >&2;}
14271 { echo "$as_me:$LINENO: WARNING: nlist.h: section \"Present But Cannot Be Compiled\"" >&5
14272 echo "$as_me: WARNING: nlist.h: section \"Present But Cannot Be Compiled\"" >&2;}
14273 { echo "$as_me:$LINENO: WARNING: nlist.h: proceeding with the preprocessor's result" >&5
14274 echo "$as_me: WARNING: nlist.h: proceeding with the preprocessor's result" >&2;}
14275 { echo "$as_me:$LINENO: WARNING: nlist.h: in the future, the compiler will take precedence" >&5
14276 echo "$as_me: WARNING: nlist.h: in the future, the compiler will take precedence" >&2;}
14279 ## ------------------------------------ ##
14280 ## Report this to the charybdis lists. ##
14281 ## ------------------------------------ ##
14284 sed "s/^/$as_me: WARNING: /" >&2
14287 echo "$as_me:$LINENO: checking for nlist.h" >&5
14288 echo $ECHO_N "checking for nlist.h... $ECHO_C" >&6
14289 if test "${ac_cv_header_nlist_h+set}" = set; then
14290 echo $ECHO_N "(cached) $ECHO_C" >&6
14292 ac_cv_header_nlist_h
=$ac_header_preproc
14294 echo "$as_me:$LINENO: result: $ac_cv_header_nlist_h" >&5
14295 echo "${ECHO_T}$ac_cv_header_nlist_h" >&6
14298 if test $ac_cv_header_nlist_h = yes; then
14303 if test x
"$nlist_h" = "x"; then
14305 cat >>confdefs.h
<<_ACEOF
14306 #define SYMBOL_PREFIX ""
14310 echo "$as_me:$LINENO: checking for extra underscores prepended to symbol names" >&5
14311 echo $ECHO_N "checking for extra underscores prepended to symbol names... $ECHO_C" >&6
14312 if test "${symbol_underscores+set}" = set; then
14313 echo $ECHO_N "(cached) $ECHO_C" >&6
14316 cat << EOF > conftest.c
14317 #include <$nlist_h>
14319 #include <stdlib.h>
14320 void _modinit(void);
14321 int main(int argc, char *argv[]) {
14323 struct nlist nl[5];
14325 /* fill the names in this way, so it'll work almost everywhere */
14326 nl[0].n_name = "_modinit";
14327 nl[1].n_name = "__modinit";
14328 nl[2].n_name = "___modinit";
14329 nl[3].n_name = "____modinit";
14330 nl[0].n_value = nl[1].n_value = nl[2].n_value = nl[3].n_value = nl[4].n_name = NULL;
14332 if(argc < 2 || (nlist(argv[1], nl)) == -1) exit(-1);
14333 for(i = 0; i < 4; i++) {
14334 if(nl[i].n_value != NULL)
14337 for(j = 0; j < i; j++)
14344 void _modinit(void) { return; }
14346 $CC $CPPFLAGS $IRC_CFLAGS -o conftest conftest.c
$nlist_lib >/dev
/null
2>&1
14347 symbol_underscores
=`./conftest conftest`
14348 echo "$as_me:$LINENO: result: $symbol_underscores" >&5
14349 echo "${ECHO_T}$symbol_underscores" >&6
14350 $RM -f conftest conftest.c
14355 cat >>confdefs.h
<<_ACEOF
14356 #define SYMBOL_PREFIX "${symbol_underscores}"
14375 if test "$prefix" = "NONE"; then
14377 cat >>confdefs.h
<<_ACEOF
14378 #define IRCD_PREFIX "$ac_default_prefix"
14385 prefix
=`echo $prefix | sed 's/\/$//'`
14387 cat >>confdefs.h
<<_ACEOF
14388 #define IRCD_PREFIX "$prefix"
14394 ac_config_files
="$ac_config_files Makefile libcharybdis/Makefile servlink/Makefile extensions/Makefile unsupported/Makefile src/Makefile modules/Makefile tools/Makefile doc/Makefile help/Makefile"
14397 cat >confcache
<<\_ACEOF
14398 # This file is a shell script that caches the results of configure
14399 # tests run on this system so they can be shared between configure
14400 # scripts and configure runs, see configure's option --config-cache.
14401 # It is not useful on other systems. If it contains results you don't
14402 # want to keep, you may remove or edit it.
14404 # config.status only pays attention to the cache file if you give it
14405 # the --recheck option to rerun configure.
14407 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14408 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14409 # following values.
14413 # The following way of writing the cache mishandles newlines in values,
14414 # but we know of no workaround that is simple, portable, and efficient.
14415 # So, don't put newlines in cache variables' values.
14416 # Ultrix sh set writes to stderr and can't be redirected directly,
14417 # and sets the high bit in the cache file unless we assign to the vars.
14420 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14422 # `set' does not quote correctly, so add quotes (double-quote
14423 # substitution turns \\\\ into \\, and sed turns \\ into \).
14426 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14429 # `set' quotes correctly as required by POSIX, so do not add quotes.
14431 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14438 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14440 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14442 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
14443 if test -w $cache_file; then
14444 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14445 cat confcache
>$cache_file
14447 echo "not updating unwritable cache $cache_file"
14452 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
14453 # Let make expand exec_prefix.
14454 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
14456 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14457 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14458 # trailing colons and then remove the whole line if VPATH becomes empty
14459 # (actually we leave an empty line to preserve line numbers).
14460 if test "x$srcdir" = x.
; then
14461 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
14462 s/:*\$(srcdir):*/:/;
14463 s/:*\${srcdir}:*/:/;
14465 s/^\([^=]*=[ ]*\):*/\1/;
14471 DEFS
=-DHAVE_CONFIG_H
14475 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
14476 # 1. Remove the extension, and $U if already installed.
14477 ac_i
=`echo "$ac_i" |
14478 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
14480 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
14481 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
14483 LIBOBJS
=$ac_libobjs
14485 LTLIBOBJS
=$ac_ltlibobjs
14489 : ${CONFIG_STATUS=./config.status}
14490 ac_clean_files_save
=$ac_clean_files
14491 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
14492 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14493 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14494 cat >$CONFIG_STATUS <<_ACEOF
14496 # Generated by $as_me.
14497 # Run this file to recreate the current configuration.
14498 # Compiler output produced by configure, useful for debugging
14499 # configure, is in config.log if it exists.
14502 ac_cs_recheck=false
14504 SHELL=\${CONFIG_SHELL-$SHELL}
14507 cat >>$CONFIG_STATUS <<\_ACEOF
14508 ## --------------------- ##
14509 ## M4sh Initialization. ##
14510 ## --------------------- ##
14512 # Be Bourne compatible
14513 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
14516 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14517 # is contrary to our usage. Disable this feature.
14518 alias -g '${1+"$@"}'='"$@"'
14519 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
14522 DUALCASE
=1; export DUALCASE
# for MKS sh
14524 # Support unset when possible.
14525 if ( (MAIL
=60; unset MAIL
) || exit) >/dev
/null
2>&1; then
14532 # Work around bugs in pre-3.0 UWIN ksh.
14533 $as_unset ENV MAIL MAILPATH
14540 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14541 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14542 LC_TELEPHONE LC_TIME
14544 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14545 eval $as_var=C
; export $as_var
14551 # Required to use basename.
14552 if expr a
: '\(a\)' >/dev
/null
2>&1; then
14558 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
14559 as_basename
=basename
14565 # Name of the executable.
14566 as_me
=`$as_basename "$0" ||
14567 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14568 X"$0" : 'X\(//\)$' \| \
14569 X"$0" : 'X\(/\)$' \| \
14570 . : '\(.\)' 2>/dev/null ||
14572 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14573 /^X\/\(\/\/\)$/{ s//\1/; q; }
14574 /^X\/\(\/\).*/{ s//\1/; q; }
14578 # PATH needs CR, and LINENO needs CR and PATH.
14579 # Avoid depending upon Character Ranges.
14580 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
14581 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14582 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
14583 as_cr_digits
='0123456789'
14584 as_cr_alnum
=$as_cr_Letters$as_cr_digits
14586 # The user is always right.
14587 if test "${PATH_SEPARATOR+set}" != set; then
14588 echo "#! /bin/sh" >conf$$.sh
14589 echo "exit 0" >>conf$$.sh
14591 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
14600 as_lineno_1
=$LINENO
14601 as_lineno_2
=$LINENO
14602 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
14603 test "x$as_lineno_1" != "x$as_lineno_2" &&
14604 test "x$as_lineno_3" = "x$as_lineno_2" || {
14605 # Find who we are. Look in the path if we contain no path at all
14608 *[\\/]* ) as_myself
=$0 ;;
14609 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14610 for as_dir
in $PATH
14613 test -z "$as_dir" && as_dir
=.
14614 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
14619 # We did not find ourselves, most probably we were run as `sh COMMAND'
14620 # in which case we are not to be found in the path.
14621 if test "x$as_myself" = x
; then
14624 if test ! -f "$as_myself"; then
14625 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14626 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14627 { (exit 1); exit 1; }; }
14629 case $CONFIG_SHELL in
14631 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14632 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
14635 test -z "$as_dir" && as_dir
=.
14636 for as_base
in sh bash ksh sh5
; do
14639 if ("$as_dir/$as_base" -c '
14640 as_lineno_1=$LINENO
14641 as_lineno_2=$LINENO
14642 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14643 test "x$as_lineno_1" != "x$as_lineno_2" &&
14644 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
14645 $as_unset BASH_ENV
|| test "${BASH_ENV+set}" != set || { BASH_ENV
=; export BASH_ENV
; }
14646 $as_unset ENV
|| test "${ENV+set}" != set || { ENV
=; export ENV
; }
14647 CONFIG_SHELL
=$as_dir/$as_base
14648 export CONFIG_SHELL
14649 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14657 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14658 # uniformly replaced by the line number. The first 'sed' inserts a
14659 # line-number line before each line; the second 'sed' does the real
14660 # work. The second script uses 'N' to pair each line-number line
14661 # with the numbered line, and appends trailing '-' during
14662 # substitution so that $LINENO is not a special case at line end.
14663 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14664 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
14665 sed '=' <$as_myself |
14670 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14673 s,^['$as_cr_digits']*\n,,
14674 ' >$as_me.lineno
&&
14675 chmod +x
$as_me.lineno
||
14676 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14677 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14678 { (exit 1); exit 1; }; }
14680 # Don't try to exec as it changes $[0], causing all sort of problems
14681 # (the dirname of $[0] is not the place where we might find the
14682 # original and so on. Autoconf is especially sensible to this).
14684 # Exit status is that of the last command.
14689 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14690 *c
*,-n*) ECHO_N
= ECHO_C
='
14692 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
14693 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
14696 if expr a
: '\(a\)' >/dev
/null
2>&1; then
14702 rm -f conf$$ conf$$.exe conf$$.
file
14704 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
14705 # We could just check for DJGPP; but this test a) works b) is more generic
14706 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14707 if test -f conf$$.exe
; then
14708 # Don't use ln at all; we don't have any links
14713 elif ln conf$$.
file conf$$
2>/dev
/null
; then
14718 rm -f conf$$ conf$$.exe conf$$.
file
14720 if mkdir -p .
2>/dev
/null
; then
14723 test -d .
/-p && rmdir .
/-p
14727 as_executable_p
="test -f"
14729 # Sed expression to map a string onto a valid CPP name.
14730 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14732 # Sed expression to map a string onto a valid variable name.
14733 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14737 # We need space, tab and new line, in precisely that order.
14747 # Open the log real soon, to keep \$[0] and so on meaningful, and to
14748 # report actual input values of CONFIG_FILES etc. instead of their
14749 # values after options handling. Logging --version etc. is OK.
14753 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14754 ## Running $as_me. ##
14759 This file was extended by charybdis $as_me 2.2.0, which was
14760 generated by GNU Autoconf 2.59. Invocation command line was
14762 CONFIG_FILES = $CONFIG_FILES
14763 CONFIG_HEADERS = $CONFIG_HEADERS
14764 CONFIG_LINKS = $CONFIG_LINKS
14765 CONFIG_COMMANDS = $CONFIG_COMMANDS
14769 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14773 # Files that config.status was made for.
14774 if test -n "$ac_config_files"; then
14775 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14778 if test -n "$ac_config_headers"; then
14779 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14782 if test -n "$ac_config_links"; then
14783 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14786 if test -n "$ac_config_commands"; then
14787 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14790 cat >>$CONFIG_STATUS <<\_ACEOF
14793 \`$as_me' instantiates files from templates according to the
14794 current configuration.
14796 Usage: $0 [OPTIONS] [FILE]...
14798 -h, --help print this help, then exit
14799 -V, --version print version number, then exit
14800 -q, --quiet do not print progress messages
14801 -d, --debug don't remove temporary files
14802 --recheck update $as_me by reconfiguring in the same conditions
14803 --file=FILE[:TEMPLATE]
14804 instantiate the configuration file FILE
14805 --header=FILE[:TEMPLATE]
14806 instantiate the configuration header FILE
14808 Configuration files:
14811 Configuration headers:
14814 Report bugs to <bug-autoconf@gnu.org>."
14817 cat >>$CONFIG_STATUS <<_ACEOF
14819 charybdis config.status 2.2.0
14820 configured by $0, generated by GNU Autoconf 2.59,
14821 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14823 Copyright (C) 2003 Free Software Foundation, Inc.
14824 This config.status script is free software; the Free Software Foundation
14825 gives unlimited permission to copy, distribute and modify it."
14830 cat >>$CONFIG_STATUS <<\_ACEOF
14831 # If no file are specified by the user, then we need to provide default
14832 # value. By we need to know if files were specified by the user.
14838 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
14839 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
14847 *) # This is not an option, so the user has probably given explicit
14850 ac_need_defaults
=false
;;
14854 # Handling of the options.
14856 cat >>$CONFIG_STATUS <<\_ACEOF
14857 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14859 --version | --vers* | -V )
14860 echo "$ac_cs_version"; exit 0 ;;
14862 # Conflict between --help and --header
14863 { { echo "$as_me:$LINENO: error: ambiguous option: $1
14864 Try \`$0 --help' for more information." >&5
14865 echo "$as_me: error: ambiguous option: $1
14866 Try \`$0 --help' for more information." >&2;}
14867 { (exit 1); exit 1; }; };;
14868 --help | --hel | -h )
14869 echo "$ac_cs_usage"; exit 0 ;;
14870 --debug | --d* | -d )
14872 --file | --fil | --fi | --f )
14874 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
14875 ac_need_defaults
=false
;;
14876 --header | --heade | --head | --hea )
14878 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
14879 ac_need_defaults
=false
;;
14880 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14881 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14884 # This is an error.
14885 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14886 Try \`$0 --help' for more information." >&5
14887 echo "$as_me: error: unrecognized option: $1
14888 Try \`$0 --help' for more information." >&2;}
14889 { (exit 1); exit 1; }; } ;;
14891 *) ac_config_targets
="$ac_config_targets $1" ;;
14897 ac_configure_extra_args
=
14899 if $ac_cs_silent; then
14901 ac_configure_extra_args
="$ac_configure_extra_args --silent"
14905 cat >>$CONFIG_STATUS <<_ACEOF
14906 if \$ac_cs_recheck; then
14907 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14908 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14917 cat >>$CONFIG_STATUS <<\_ACEOF
14918 for ac_config_target
in $ac_config_targets
14920 case "$ac_config_target" in
14921 # Handling of arguments.
14922 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
14923 "libcharybdis/Makefile" ) CONFIG_FILES
="$CONFIG_FILES libcharybdis/Makefile" ;;
14924 "servlink/Makefile" ) CONFIG_FILES
="$CONFIG_FILES servlink/Makefile" ;;
14925 "extensions/Makefile" ) CONFIG_FILES
="$CONFIG_FILES extensions/Makefile" ;;
14926 "unsupported/Makefile" ) CONFIG_FILES
="$CONFIG_FILES unsupported/Makefile" ;;
14927 "src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
14928 "modules/Makefile" ) CONFIG_FILES
="$CONFIG_FILES modules/Makefile" ;;
14929 "tools/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tools/Makefile" ;;
14930 "doc/Makefile" ) CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
14931 "help/Makefile" ) CONFIG_FILES
="$CONFIG_FILES help/Makefile" ;;
14932 "include/setup.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS include/setup.h" ;;
14933 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14934 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14935 { (exit 1); exit 1; }; };;
14939 # If the user did not use the arguments to specify the items to instantiate,
14940 # then the envvar interface is used. Set only those that are not.
14941 # We use the long form for the default assignment because of an extremely
14942 # bizarre bug on SunOS 4.1.3.
14943 if $ac_need_defaults; then
14944 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
14945 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
14948 # Have a temporary directory for convenience. Make it in the build tree
14949 # simply because there is no reason to put it here, and in addition,
14950 # creating and moving files from /tmp can sometimes cause problems.
14951 # Create a temporary directory, and hook for its removal unless debugging.
14954 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14955 trap '{ (exit 1); exit 1; }' 1 2 13 15
14958 # Create a (secure) tmp directory for tmp files.
14961 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
14962 test -n "$tmp" && test -d "$tmp"
14965 tmp
=.
/confstat$$
-$RANDOM
14966 (umask 077 && mkdir $tmp)
14969 echo "$me: cannot create a temporary directory in ." >&2
14970 { (exit 1); exit 1; }
14975 cat >>$CONFIG_STATUS <<_ACEOF
14978 # CONFIG_FILES section.
14981 # No need to generate the scripts if there are no CONFIG_FILES.
14982 # This happens for instance when ./config.status config.h
14983 if test -n "\$CONFIG_FILES"; then
14984 # Protect against being on the right side of a sed subst in config.status.
14985 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14986 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14987 s,@SHELL@,$SHELL,;t t
14988 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14989 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14990 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14991 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14992 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14993 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14994 s,@exec_prefix@,$exec_prefix,;t t
14995 s,@prefix@,$prefix,;t t
14996 s,@program_transform_name@,$program_transform_name,;t t
14997 s,@bindir@,$bindir,;t t
14998 s,@sbindir@,$sbindir,;t t
14999 s,@libexecdir@,$libexecdir,;t t
15000 s,@datadir@,$datadir,;t t
15001 s,@sysconfdir@,$sysconfdir,;t t
15002 s,@sharedstatedir@,$sharedstatedir,;t t
15003 s,@localstatedir@,$localstatedir,;t t
15004 s,@libdir@,$libdir,;t t
15005 s,@includedir@,$includedir,;t t
15006 s,@oldincludedir@,$oldincludedir,;t t
15007 s,@infodir@,$infodir,;t t
15008 s,@mandir@,$mandir,;t t
15009 s,@build_alias@,$build_alias,;t t
15010 s,@host_alias@,$host_alias,;t t
15011 s,@target_alias@,$target_alias,;t t
15012 s,@DEFS@,$DEFS,;t t
15013 s,@ECHO_C@,$ECHO_C,;t t
15014 s,@ECHO_N@,$ECHO_N,;t t
15015 s,@ECHO_T@,$ECHO_T,;t t
15016 s,@LIBS@,$LIBS,;t t
15018 s,@CFLAGS@,$CFLAGS,;t t
15019 s,@LDFLAGS@,$LDFLAGS,;t t
15020 s,@CPPFLAGS@,$CPPFLAGS,;t t
15021 s,@ac_ct_CC@,$ac_ct_CC,;t t
15022 s,@EXEEXT@,$EXEEXT,;t t
15023 s,@OBJEXT@,$OBJEXT,;t t
15024 s,@MKDEP@,$MKDEP,;t t
15025 s,@MAKEDEPEND@,$MAKEDEPEND,;t t
15026 s,@STDOUT@,$STDOUT,;t t
15028 s,@EGREP@,$EGREP,;t t
15029 s,@SET_MAKE@,$SET_MAKE,;t t
15030 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15031 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15032 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15040 s,@RANLIB@,$RANLIB,;t t
15041 s,@TOUCH@,$TOUCH,;t t
15042 s,@YACC@,$YACC,;t t
15044 s,@LEXLIB@,$LEXLIB,;t t
15045 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
15046 s,@CRYPT_LIB@,$CRYPT_LIB,;t t
15047 s,@VICONF@,$VICONF,;t t
15048 s,@ALLOCA@,$ALLOCA,;t t
15049 s,@ENCSPEED@,$ENCSPEED,;t t
15050 s,@ZLIB_LD@,$ZLIB_LD,;t t
15051 s,@ETC_DIR@,$ETC_DIR,;t t
15052 s,@confdir@,$confdir,;t t
15053 s,@LOG_DIR@,$LOG_DIR,;t t
15054 s,@logdir@,$logdir,;t t
15055 s,@HELP_DIR@,$HELP_DIR,;t t
15056 s,@helpdir@,$helpdir,;t t
15057 s,@MODULE_DIR@,$MODULE_DIR,;t t
15058 s,@moduledir@,$moduledir,;t t
15059 s,@SELECT_TYPE@,$SELECT_TYPE,;t t
15060 s,@FNVHASH_S@,$FNVHASH_S,;t t
15061 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
15062 s,@MOD_TARGET@,$MOD_TARGET,;t t
15063 s,@SSL_SRCS_ENABLE@,$SSL_SRCS_ENABLE,;t t
15064 s,@SSL_INCLUDES@,$SSL_INCLUDES,;t t
15065 s,@SSL_LIBS@,$SSL_LIBS,;t t
15066 s,@PICFLAGS@,$PICFLAGS,;t t
15067 s,@IRC_CFLAGS@,$IRC_CFLAGS,;t t
15068 s,@SEDOBJ@,$SEDOBJ,;t t
15069 s,@LIBOBJS@,$LIBOBJS,;t t
15070 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
15075 cat >>$CONFIG_STATUS <<\_ACEOF
15076 # Split the substitutions into bite-sized pieces for seds with
15077 # small command number limits, like on Digital OSF/1 and HP-UX.
15078 ac_max_sed_lines
=48
15079 ac_sed_frag
=1 # Number of current file.
15080 ac_beg
=1 # First line for current file.
15081 ac_end
=$ac_max_sed_lines # Line after last line for current file.
15084 while $ac_more_lines; do
15085 if test $ac_beg -gt 1; then
15086 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
15088 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
15090 if test ! -s $tmp/subs.frag
; then
15091 ac_more_lines
=false
15093 # The purpose of the label and of the branching condition is to
15094 # speed up the sed processing (if there are no `@' at all, there
15095 # is no need to browse any of the substitutions).
15096 # These are the two extra sed commands mentioned above.
15098 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs
-$ac_sed_frag.
sed
15099 if test -z "$ac_sed_cmds"; then
15100 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
15102 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15104 ac_sed_frag
=`expr $ac_sed_frag + 1`
15106 ac_end
=`expr $ac_end + $ac_max_sed_lines`
15109 if test -z "$ac_sed_cmds"; then
15112 fi # test -n "$CONFIG_FILES"
15115 cat >>$CONFIG_STATUS <<\_ACEOF
15116 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
15117 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15119 - | *:- | *:-:* ) # input from stdin
15121 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
15122 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
15123 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
15124 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
15125 * ) ac_file_in
=$ac_file.
in ;;
15128 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15129 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
15130 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15131 X"$ac_file" : 'X\(//\)[^/]' \| \
15132 X"$ac_file" : 'X\(//\)$' \| \
15133 X"$ac_file" : 'X\(/\)' \| \
15134 . : '\(.\)' 2>/dev/null ||
15136 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15137 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15138 /^X\(\/\/\)$/{ s//\1/; q; }
15139 /^X\(\/\).*/{ s//\1/; q; }
15141 { if $as_mkdir_p; then
15146 while test ! -d "$as_dir"; do
15147 as_dirs
="$as_dir $as_dirs"
15148 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
15149 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15150 X"$as_dir" : 'X\(//\)[^/]' \| \
15151 X"$as_dir" : 'X\(//\)$' \| \
15152 X"$as_dir" : 'X\(/\)' \| \
15153 . : '\(.\)' 2>/dev/null ||
15155 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15156 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15157 /^X\(\/\/\)$/{ s//\1/; q; }
15158 /^X\(\/\).*/{ s//\1/; q; }
15161 test ! -n "$as_dirs" || mkdir $as_dirs
15162 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15163 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15164 { (exit 1); exit 1; }; }; }
15168 if test "$ac_dir" != .
; then
15169 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15170 # A "../" for each directory in $ac_dir_suffix.
15171 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15173 ac_dir_suffix
= ac_top_builddir
=
15177 .
) # No --srcdir option. We are building in place.
15179 if test -z "$ac_top_builddir"; then
15182 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
15184 [\\/]* | ?
:[\\/]* ) # Absolute path.
15185 ac_srcdir
=$srcdir$ac_dir_suffix;
15186 ac_top_srcdir
=$srcdir ;;
15187 *) # Relative path.
15188 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
15189 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
15192 # Do not use `cd foo && pwd` to compute absolute paths, because
15193 # the directories may not exist.
15195 .
) ac_abs_builddir
="$ac_dir";;
15198 .
) ac_abs_builddir
=`pwd`;;
15199 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
15200 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
15203 case $ac_abs_builddir in
15204 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
15206 case ${ac_top_builddir}.
in
15207 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
15208 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
15209 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
15212 case $ac_abs_builddir in
15213 .
) ac_abs_srcdir
=$ac_srcdir;;
15216 .
) ac_abs_srcdir
=$ac_abs_builddir;;
15217 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
15218 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
15221 case $ac_abs_builddir in
15222 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
15224 case $ac_top_srcdir in
15225 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
15226 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
15227 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
15233 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
15234 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
15237 if test x
"$ac_file" != x
-; then
15238 { echo "$as_me:$LINENO: creating $ac_file" >&5
15239 echo "$as_me: creating $ac_file" >&6;}
15242 # Let's still pretend it is `configure' which instantiates (i.e., don't
15243 # use $as_me), people would be surprised to read:
15244 # /* config.h. Generated by config.status. */
15245 if test x
"$ac_file" = x
-; then
15248 configure_input
="$ac_file. "
15250 configure_input
=$configure_input"Generated from `echo $ac_file_in |
15251 sed 's,.*/,,'` by configure."
15253 # First look for the input files in the build tree, otherwise in the
15255 ac_file_inputs
=`IFS=:
15256 for f in $ac_file_in; do
15258 -) echo $tmp/stdin ;;
15260 # Absolute (can't be DOS-style, as IFS=:)
15261 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15262 echo "$as_me: error: cannot find input file: $f" >&2;}
15263 { (exit 1); exit 1; }; }
15266 if test -f "$f"; then
15269 elif test -f "$srcdir/$f"; then
15274 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15275 echo "$as_me: error: cannot find input file: $f" >&2;}
15276 { (exit 1); exit 1; }; }
15279 done` || { (exit 1); exit 1; }
15281 cat >>$CONFIG_STATUS <<_ACEOF
15285 cat >>$CONFIG_STATUS <<\_ACEOF
15287 /@
[a
-zA-Z_][a
-zA-Z_0-9]*@
/!b
15288 s
,@configure_input@
,$configure_input,;t t
15289 s
,@srcdir@
,$ac_srcdir,;t t
15290 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
15291 s
,@top_srcdir@
,$ac_top_srcdir,;t t
15292 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
15293 s
,@builddir@
,$ac_builddir,;t t
15294 s
,@abs_builddir@
,$ac_abs_builddir,;t t
15295 s
,@top_builddir@
,$ac_top_builddir,;t t
15296 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
15297 s
,@INSTALL@
,$ac_INSTALL,;t t
15298 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15300 if test x"$ac_file" != x-; then
15301 mv $tmp/out $ac_file
15309 cat >>$CONFIG_STATUS <<\_ACEOF
15312 # CONFIG_HEADER section.
15315 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
15316 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15318 # ac_d sets the value in "#define NAME VALUE" lines.
15319 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15320 ac_dB
='[ ].*$,\1#\2'
15323 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15324 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15325 ac_uB
='$,\1#\2define\3'
15329 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
15330 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15332 - | *:- | *:-:* ) # input from stdin
15334 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
15335 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
15336 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
15337 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
15338 * ) ac_file_in
=$ac_file.
in ;;
15341 test x
"$ac_file" != x
- && { echo "$as_me:$LINENO: creating $ac_file" >&5
15342 echo "$as_me: creating $ac_file" >&6;}
15344 # First look for the input files in the build tree, otherwise in the
15346 ac_file_inputs
=`IFS=:
15347 for f in $ac_file_in; do
15349 -) echo $tmp/stdin ;;
15351 # Absolute (can't be DOS-style, as IFS=:)
15352 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15353 echo "$as_me: error: cannot find input file: $f" >&2;}
15354 { (exit 1); exit 1; }; }
15355 # Do quote $f, to prevent DOS paths from being IFS'd.
15358 if test -f "$f"; then
15361 elif test -f "$srcdir/$f"; then
15366 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15367 echo "$as_me: error: cannot find input file: $f" >&2;}
15368 { (exit 1); exit 1; }; }
15371 done` || { (exit 1); exit 1; }
15372 # Remove the trailing spaces.
15373 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
15377 # Transform confdefs.h into two sed scripts, `conftest.defines' and
15378 # `conftest.undefs', that substitutes the proper values into
15379 # config.h.in to produce config.h. The first handles `#define'
15380 # templates, and the second `#undef' templates.
15381 # And first: Protect against being on the right side of a sed subst in
15382 # config.status. Protect against being in an unquoted here document
15383 # in config.status.
15384 rm -f conftest.defines conftest.undefs
15385 # Using a here document instead of a string reduces the quoting nightmare.
15386 # Putting comments in sed scripts is not portable.
15388 # `end' is used to avoid that the second main sed command (meant for
15389 # 0-ary CPP macros) applies to n-ary macro definitions.
15390 # See the Autoconf documentation for `clear'.
15391 cat >confdef2sed.
sed <<\_ACEOF
15396 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
15398 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
15401 # If some macros were called several times there might be several times
15402 # the same #defines, which is useless. Nevertheless, we may not want to
15403 # sort them, since we want the *last* AC-DEFINE to be honored.
15404 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15405 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15406 rm -f confdef2sed.sed
15408 # This sed command replaces #undef with comments. This is necessary, for
15409 # example, in the case of _POSIX_SOURCE, which is predefined and required
15410 # on some systems where configure will not decide to define it.
15411 cat >>conftest.undefs <<\_ACEOF
15412 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
15415 # Break up conftest.defines because some shells have a limit on the size
15416 # of here documents, and old seds have small limits too (100 cmds).
15417 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
15418 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
15419 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15420 echo ' :' >>$CONFIG_STATUS
15421 rm -f conftest.tail
15422 while grep . conftest.defines >/dev/null
15424 # Write a limited-size here document to $tmp/defines.sed.
15425 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15426 # Speed up: don't consider the non `#define' lines.
15427 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
15428 # Work around the forget-to-reset-the-flag bug.
15429 echo 't clr' >>$CONFIG_STATUS
15430 echo ': clr' >>$CONFIG_STATUS
15431 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
15433 sed -f $tmp/defines.sed $tmp/in >$tmp/out
15435 mv $tmp/out $tmp/in
15437 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
15438 rm -f conftest.defines
15439 mv conftest.
tail conftest.defines
15441 rm -f conftest.defines
15442 echo ' fi # grep' >>$CONFIG_STATUS
15443 echo >>$CONFIG_STATUS
15445 # Break up conftest.undefs because some shells have a limit on the size
15446 # of here documents, and old seds have small limits too (100 cmds).
15447 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
15448 rm -f conftest.
tail
15449 while grep . conftest.undefs
>/dev
/null
15451 # Write a limited-size here document to $tmp/undefs.sed.
15452 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15453 # Speed up: don't consider the non
`#undef'
15454 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
15455 # Work around the forget-to-reset-the-flag bug.
15456 echo 't clr' >>$CONFIG_STATUS
15457 echo ': clr' >>$CONFIG_STATUS
15458 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
15460 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15462 mv $tmp/out $tmp/in
15464 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15465 rm -f conftest.undefs
15466 mv conftest.tail conftest.undefs
15468 rm -f conftest.undefs
15470 cat >>$CONFIG_STATUS <<\_ACEOF
15471 # Let's still pretend it is `configure
' which instantiates (i.e., don't
15472 # use $as_me), people would be surprised to read:
15473 # /* config.h. Generated by config.status. */
15474 if test x
"$ac_file" = x
-; then
15475 echo "/* Generated by configure. */" >$tmp/config.h
15477 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
15479 cat $tmp/in >>$tmp/config.h
15481 if test x
"$ac_file" != x
-; then
15482 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
15483 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15484 echo "$as_me: $ac_file is unchanged" >&6;}
15486 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
15487 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15488 X"$ac_file" : 'X\(//\)[^/]' \| \
15489 X"$ac_file" : 'X\(//\)$' \| \
15490 X"$ac_file" : 'X\(/\)' \| \
15491 . : '\(.\)' 2>/dev/null ||
15493 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15494 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15495 /^X\(\/\/\)$/{ s//\1/; q; }
15496 /^X\(\/\).*/{ s//\1/; q; }
15498 { if $as_mkdir_p; then
15503 while test ! -d "$as_dir"; do
15504 as_dirs
="$as_dir $as_dirs"
15505 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
15506 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15507 X"$as_dir" : 'X\(//\)[^/]' \| \
15508 X"$as_dir" : 'X\(//\)$' \| \
15509 X"$as_dir" : 'X\(/\)' \| \
15510 . : '\(.\)' 2>/dev/null ||
15512 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15513 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15514 /^X\(\/\/\)$/{ s//\1/; q; }
15515 /^X\(\/\).*/{ s//\1/; q; }
15518 test ! -n "$as_dirs" || mkdir $as_dirs
15519 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15520 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15521 { (exit 1); exit 1; }; }; }
15524 mv $tmp/config.h
$ac_file
15528 rm -f $tmp/config.h
15533 cat >>$CONFIG_STATUS <<\_ACEOF
15535 { (exit 0); exit 0; }
15537 chmod +x
$CONFIG_STATUS
15538 ac_clean_files
=$ac_clean_files_save
15541 # configure is writing to config.log, and then calls config.status.
15542 # config.status does its own redirection, appending to config.log.
15543 # Unfortunately, on DOS this fails, as config.log is still kept open
15544 # by configure, so config.status won't be able to write to it; its
15545 # output is simply discarded. So we exec the FD to /dev/null,
15546 # effectively closing config.log, so it can be properly (re)opened and
15547 # appended to by config.status. When coming back to configure, we
15548 # need to make the FD available again.
15549 if test "$no_create" != yes; then
15551 ac_config_status_args
=
15552 test "$silent" = yes &&
15553 ac_config_status_args
="$ac_config_status_args --quiet"
15555 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
15557 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15558 # would make configure fail if this is the last instruction.
15559 $ac_cs_success || { (exit 1); exit 1; }
15563 if test "$cf_openssl_version_ok" = yes; then
15569 if test "$shared_modules" = yes; then
15577 Install directory : $prefix
15582 IPv6 support : $have_v6
15583 Socket Engine : $SELECT_TYPE
15584 Small network : $small_net
15585 Block allocator : $balloc
15586 ASM hashing code : $ricer_hashing
15588 Nickname length : $NICKLEN
15589 Topic length : $TOPICLEN
15591 Use make to compile Charybdis, then make install to install it.