2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for charybdis 2.2.0.
5 # $Id: configure 3364 2007-04-03 09:50:56Z nenolod $
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix
*) set -o posix
;;
35 # Avoid depending upon Character Ranges.
36 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits
='0123456789'
40 as_cr_alnum
=$as_cr_Letters$as_cr_digits
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
47 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
55 # Support unset when possible.
56 if ( (MAIL
=60; unset MAIL
) || exit) >/dev
/null
2>&1; then
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
72 # Find who we are. Look in the path if we contain no directory separator.
74 *[\\/]* ) as_myself
=$0 ;;
75 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
79 test -z "$as_dir" && as_dir
=.
80 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x
; then
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var
in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C
; export $as_var
113 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
117 # Required to use basename.
118 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
125 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
132 # Name of the executable.
133 as_me
=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 if test "x$CONFIG_SHELL" = x
; then
157 if (eval ":") 2>/dev
/null
; then
163 if test $as_have_required = yes && (eval ":
173 as_func_ret_success () {
176 as_func_ret_failure () {
181 if as_func_success; then
185 echo as_func_success failed.
188 if as_func_failure; then
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev
/null
; then
223 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
224 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
227 test -z "$as_dir" && as_dir
=.
230 for as_base
in sh bash ksh sh5
; do
231 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
238 for as_shell
in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
250 case `(set -o) 2>/dev/null` in
251 *posix
*) set -o posix
;;
260 CONFIG_SHELL
=$as_shell
262 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
271 case `(set -o) 2>/dev/null` in
272 *posix
*) set -o posix
;;
288 as_func_ret_success
() {
291 as_func_ret_failure
() {
296 if as_func_success
; then
300 echo as_func_success failed.
303 if as_func_failure
; then
305 echo as_func_failure succeeded.
308 if as_func_ret_success
; then
312 echo as_func_ret_success failed.
315 if as_func_ret_failure
; then
317 echo as_func_ret_failure succeeded.
320 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
344 if test "x$CONFIG_SHELL" != x
; then
345 for as_var
in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no
; then
354 echo This
script requires a shell
more modern than all the
355 echo shells that I found on your system. Please
install a
356 echo modern shell
, or manually run the
script under such a
357 echo shell
if you
do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
377 as_func_ret_success () {
380 as_func_ret_failure () {
385 if as_func_success; then
389 echo as_func_success failed.
392 if as_func_failure; then
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413 echo positional parameters were not saved.
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system
,
419 echo including any error possibly output before this
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455 chmod +x
"$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
463 # Exit status is that of the last command.
468 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
474 ECHO_C
= ECHO_N
= ECHO_T
=
478 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
485 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
492 rm -f conf$$ conf$$.exe conf$$.
file
493 if test -d conf$$.dir
; then
494 rm -f conf$$.dir
/conf$$.
file
500 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe
||
508 elif ln conf$$.
file conf$$
2>/dev
/null
; then
513 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
514 rmdir conf$$.dir
2>/dev
/null
516 if mkdir -p .
2>/dev
/null
; then
519 test -d .
/-p && rmdir .
/-p
523 if test -x / >/dev
/null
2>&1; then
526 if ls -dL / >/dev
/null
2>&1; then
533 if test -d "$1"; then
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
544 as_executable_p
=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
554 exec 7<&0 </dev
/null
6>&1
557 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558 # so uname gets run too.
559 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
564 ac_default_prefix
=/usr
/local
566 ac_config_libobj_dir
=.
572 SHELL
=${CONFIG_SHELL-/bin/sh}
574 # Identity of this package.
575 PACKAGE_NAME
='charybdis'
576 PACKAGE_TARNAME
='charybdis'
577 PACKAGE_VERSION
='2.2.0'
578 PACKAGE_STRING
='charybdis 2.2.0'
581 ac_default_prefix
=$HOME/ircd
582 # Factoring default headers for most tests.
583 ac_includes_default
="\
585 #ifdef HAVE_SYS_TYPES_H
586 # include <sys/types.h>
588 #ifdef HAVE_SYS_STAT_H
589 # include <sys/stat.h>
595 # ifdef HAVE_STDLIB_H
600 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 #ifdef HAVE_STRINGS_H
606 # include <strings.h>
608 #ifdef HAVE_INTTYPES_H
609 # include <inttypes.h>
627 program_transform_name
711 ac_precious_vars
='build_alias
724 # Initialize some variables set by options.
726 ac_init_version
=false
727 # The variables have the same names as the options, with
728 # dashes changed to underlines.
736 program_transform_name
=s
,x
,x
,
744 # Installation directory options.
745 # These are left unexpanded so users can "make install exec_prefix=/foo"
746 # and all the variables that are supposed to be based on exec_prefix
747 # by default will actually change.
748 # Use braces instead of parens because sh, perl, etc. also accept them.
749 # (The list follows the same order as the GNU Coding Standards.)
750 bindir
='${exec_prefix}/bin'
751 sbindir
='${exec_prefix}/sbin'
752 libexecdir
='${exec_prefix}/libexec'
753 datarootdir
='${prefix}/share'
754 datadir
='${datarootdir}'
755 sysconfdir
='${prefix}/etc'
756 sharedstatedir
='${prefix}/com'
757 localstatedir
='${prefix}/var'
758 includedir
='${prefix}/include'
759 oldincludedir
='/usr/include'
760 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
761 infodir
='${datarootdir}/info'
766 libdir
='${exec_prefix}/lib'
767 localedir
='${datarootdir}/locale'
768 mandir
='${datarootdir}/man'
774 # If the previous option needs an argument, assign it.
775 if test -n "$ac_prev"; then
776 eval $ac_prev=\
$ac_option
782 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
786 # Accept the important Cygnus configure options, so we can diagnose typos.
788 case $ac_dashdash$ac_option in
792 -bindir | --bindir | --bindi | --bind | --bin | --bi)
794 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
797 -build | --build | --buil | --bui | --bu)
798 ac_prev
=build_alias
;;
799 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
800 build_alias
=$ac_optarg ;;
802 -cache-file | --cache-file | --cache-fil | --cache-fi \
803 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
804 ac_prev
=cache_file
;;
805 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
806 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
807 cache_file
=$ac_optarg ;;
810 cache_file
=config.cache
;;
812 -datadir | --datadir | --datadi | --datad)
814 -datadir=* | --datadir=* | --datadi=* | --datad=*)
815 datadir
=$ac_optarg ;;
817 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
818 | --dataroo | --dataro | --datar)
819 ac_prev
=datarootdir
;;
820 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
821 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
822 datarootdir
=$ac_optarg ;;
824 -disable-* | --disable-*)
825 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
826 # Reject names that are not valid shell variable names.
827 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
828 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
829 { (exit 1); exit 1; }; }
830 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
831 eval enable_
$ac_feature=no
;;
833 -docdir | --docdir | --docdi | --doc | --do)
835 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
838 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
840 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
843 -enable-* | --enable-*)
844 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
845 # Reject names that are not valid shell variable names.
846 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
847 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
848 { (exit 1); exit 1; }; }
849 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
850 eval enable_
$ac_feature=\
$ac_optarg ;;
852 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
853 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
854 | --exec | --exe | --ex)
855 ac_prev
=exec_prefix
;;
856 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
857 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
858 | --exec=* | --exe=* | --ex=*)
859 exec_prefix
=$ac_optarg ;;
861 -gas | --gas | --ga | --g)
862 # Obsolete; use --with-gas.
865 -help | --help | --hel | --he | -h)
867 -help=r
* | --help=r
* | --hel=r
* | --he=r
* | -hr*)
868 ac_init_help
=recursive
;;
869 -help=s
* | --help=s
* | --hel=s
* | --he=s
* | -hs*)
870 ac_init_help
=short
;;
872 -host | --host | --hos | --ho)
873 ac_prev
=host_alias
;;
874 -host=* | --host=* | --hos=* | --ho=*)
875 host_alias
=$ac_optarg ;;
877 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
879 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
881 htmldir
=$ac_optarg ;;
883 -includedir | --includedir | --includedi | --included | --include \
884 | --includ | --inclu | --incl | --inc)
885 ac_prev
=includedir
;;
886 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
887 | --includ=* | --inclu=* | --incl=* | --inc=*)
888 includedir
=$ac_optarg ;;
890 -infodir | --infodir | --infodi | --infod | --info | --inf)
892 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
893 infodir
=$ac_optarg ;;
895 -libdir | --libdir | --libdi | --libd)
897 -libdir=* | --libdir=* | --libdi=* | --libd=*)
900 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
901 | --libexe | --libex | --libe)
902 ac_prev
=libexecdir
;;
903 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
904 | --libexe=* | --libex=* | --libe=*)
905 libexecdir
=$ac_optarg ;;
907 -localedir | --localedir | --localedi | --localed | --locale)
909 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
910 localedir
=$ac_optarg ;;
912 -localstatedir | --localstatedir | --localstatedi | --localstated \
913 | --localstate | --localstat | --localsta | --localst | --locals)
914 ac_prev
=localstatedir
;;
915 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
916 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
917 localstatedir
=$ac_optarg ;;
919 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
921 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
925 # Obsolete; use --without-fp.
928 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
929 | --no-cr | --no-c | -n)
932 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
933 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
936 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
937 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
938 | --oldin | --oldi | --old | --ol | --o)
939 ac_prev
=oldincludedir
;;
940 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
941 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
942 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
943 oldincludedir
=$ac_optarg ;;
945 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
947 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
950 -program-prefix | --program-prefix | --program-prefi | --program-pref \
951 | --program-pre | --program-pr | --program-p)
952 ac_prev
=program_prefix
;;
953 -program-prefix=* | --program-prefix=* | --program-prefi=* \
954 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
955 program_prefix
=$ac_optarg ;;
957 -program-suffix | --program-suffix | --program-suffi | --program-suff \
958 | --program-suf | --program-su | --program-s)
959 ac_prev
=program_suffix
;;
960 -program-suffix=* | --program-suffix=* | --program-suffi=* \
961 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
962 program_suffix
=$ac_optarg ;;
964 -program-transform-name | --program-transform-name \
965 | --program-transform-nam | --program-transform-na \
966 | --program-transform-n | --program-transform- \
967 | --program-transform | --program-transfor \
968 | --program-transfo | --program-transf \
969 | --program-trans | --program-tran \
970 | --progr-tra | --program-tr | --program-t)
971 ac_prev
=program_transform_name
;;
972 -program-transform-name=* | --program-transform-name=* \
973 | --program-transform-nam=* | --program-transform-na=* \
974 | --program-transform-n=* | --program-transform-=* \
975 | --program-transform=* | --program-transfor=* \
976 | --program-transfo=* | --program-transf=* \
977 | --program-trans=* | --program-tran=* \
978 | --progr-tra=* | --program-tr=* | --program-t=*)
979 program_transform_name
=$ac_optarg ;;
981 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
983 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
986 -psdir | --psdir | --psdi | --psd | --ps)
988 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
991 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
992 | -silent | --silent | --silen | --sile | --sil)
995 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
997 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
999 sbindir
=$ac_optarg ;;
1001 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1002 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1003 | --sharedst | --shareds | --shared | --share | --shar \
1005 ac_prev
=sharedstatedir
;;
1006 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1007 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1008 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1010 sharedstatedir
=$ac_optarg ;;
1012 -site | --site | --sit)
1014 -site=* | --site=* | --sit=*)
1017 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1019 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1020 srcdir
=$ac_optarg ;;
1022 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1023 | --syscon | --sysco | --sysc | --sys | --sy)
1024 ac_prev
=sysconfdir
;;
1025 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1026 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1027 sysconfdir
=$ac_optarg ;;
1029 -target | --target | --targe | --targ | --tar | --ta | --t)
1030 ac_prev
=target_alias
;;
1031 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1032 target_alias
=$ac_optarg ;;
1034 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1037 -version | --version | --versio | --versi | --vers | -V)
1038 ac_init_version
=: ;;
1041 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1042 # Reject names that are not valid shell variable names.
1043 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1044 { echo "$as_me: error: invalid package name: $ac_package" >&2
1045 { (exit 1); exit 1; }; }
1046 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1047 eval with_
$ac_package=\
$ac_optarg ;;
1049 -without-* | --without-*)
1050 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1051 # Reject names that are not valid shell variable names.
1052 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1053 { echo "$as_me: error: invalid package name: $ac_package" >&2
1054 { (exit 1); exit 1; }; }
1055 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1056 eval with_
$ac_package=no
;;
1059 # Obsolete; use --with-x.
1062 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1063 | --x-incl | --x-inc | --x-in | --x-i)
1064 ac_prev
=x_includes
;;
1065 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1066 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1067 x_includes
=$ac_optarg ;;
1069 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1070 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1071 ac_prev
=x_libraries
;;
1072 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1073 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1074 x_libraries
=$ac_optarg ;;
1076 -*) { echo "$as_me: error: unrecognized option: $ac_option
1077 Try \`$0 --help' for more information." >&2
1078 { (exit 1); exit 1; }; }
1082 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1083 # Reject names that are not valid shell variable names.
1084 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1085 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1086 { (exit 1); exit 1; }; }
1087 eval $ac_envvar=\
$ac_optarg
1088 export $ac_envvar ;;
1091 # FIXME: should be removed in autoconf 3.0.
1092 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1093 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1094 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1095 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1101 if test -n "$ac_prev"; then
1102 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1103 { echo "$as_me: error: missing argument to $ac_option" >&2
1104 { (exit 1); exit 1; }; }
1107 # Be sure to have absolute directory names.
1108 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1109 datadir sysconfdir sharedstatedir localstatedir includedir \
1110 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1111 libdir localedir mandir
1113 eval ac_val
=\$
$ac_var
1115 [\\/$
]* | ?
:[\\/]* ) continue;;
1116 NONE
| '' ) case $ac_var in *prefix
) continue;; esac;;
1118 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1119 { (exit 1); exit 1; }; }
1122 # There might be people who depend on the old broken behavior: `$host'
1123 # used to hold the argument of --host etc.
1124 # FIXME: To remove some day.
1127 target
=$target_alias
1129 # FIXME: To remove some day.
1130 if test "x$host_alias" != x
; then
1131 if test "x$build_alias" = x
; then
1132 cross_compiling
=maybe
1133 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1134 If a cross compiler is detected then cross compile mode will be used." >&2
1135 elif test "x$build_alias" != "x$host_alias"; then
1141 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1143 test "$silent" = yes && exec 6>/dev
/null
1146 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1147 ac_ls_di
=`ls -di .` &&
1148 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1149 { echo "$as_me: error: Working directory cannot be determined" >&2
1150 { (exit 1); exit 1; }; }
1151 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1152 { echo "$as_me: error: pwd does not report name of working directory" >&2
1153 { (exit 1); exit 1; }; }
1156 # Find the source files, if location was not specified.
1157 if test -z "$srcdir"; then
1158 ac_srcdir_defaulted
=yes
1159 # Try the directory containing this script, then the parent directory.
1160 ac_confdir
=`$as_dirname -- "$0" ||
1161 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1162 X"$0" : 'X\(//\)[^/]' \| \
1163 X"$0" : 'X\(//\)$' \| \
1164 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1166 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1184 if test ! -r "$srcdir/$ac_unique_file"; then
1188 ac_srcdir_defaulted
=no
1190 if test ! -r "$srcdir/$ac_unique_file"; then
1191 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1192 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1193 { (exit 1); exit 1; }; }
1195 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1197 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1198 { (exit 1); exit 1; }; }
1200 # When building in place, set srcdir=.
1201 if test "$ac_abs_confdir" = "$ac_pwd"; then
1204 # Remove unnecessary trailing slashes from srcdir.
1205 # Double slashes in file names in object file debugging info
1206 # mess up M-x gdb in Emacs.
1208 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1210 for ac_var
in $ac_precious_vars; do
1211 eval ac_env_
${ac_var}_set
=\
${${ac_var}+set}
1212 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1213 eval ac_cv_env_
${ac_var}_set
=\
${${ac_var}+set}
1214 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1218 # Report the --help message.
1220 if test "$ac_init_help" = "long"; then
1221 # Omit some internal or obsolete options to make the list less imposing.
1222 # This message is too long to be a string in the A/UX 3.1 sh.
1224 \`configure' configures charybdis 2.2.0 to adapt to many kinds of systems.
1226 Usage: $0 [OPTION]... [VAR=VALUE]...
1228 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1229 VAR=VALUE. See below for descriptions of some of the useful variables.
1231 Defaults for the options are specified in brackets.
1234 -h, --help display this help and exit
1235 --help=short display options specific to this package
1236 --help=recursive display the short help of all the included packages
1237 -V, --version display version information and exit
1238 -q, --quiet, --silent do not print \`checking...' messages
1239 --cache-file=FILE cache test results in FILE [disabled]
1240 -C, --config-cache alias for \`--cache-file=config.cache'
1241 -n, --no-create do not create output files
1242 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1244 Installation directories:
1245 --prefix=PREFIX install architecture-independent files in PREFIX
1246 [$ac_default_prefix]
1247 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1250 By default, \`make install' will install all the files in
1251 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1252 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1253 for instance \`--prefix=\$HOME'.
1255 For better control, use the options below.
1257 Fine tuning of the installation directories:
1258 --bindir=DIR user executables [EPREFIX/bin]
1259 --sbindir=DIR system admin executables [EPREFIX/sbin]
1260 --libexecdir=DIR program executables [EPREFIX/libexec]
1261 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1262 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1263 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1264 --libdir=DIR object code libraries [EPREFIX/lib]
1265 --includedir=DIR C header files [PREFIX/include]
1266 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1267 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1268 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1269 --infodir=DIR info documentation [DATAROOTDIR/info]
1270 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1271 --mandir=DIR man documentation [DATAROOTDIR/man]
1272 --docdir=DIR documentation root [DATAROOTDIR/doc/charybdis]
1273 --htmldir=DIR html documentation [DOCDIR]
1274 --dvidir=DIR dvi documentation [DOCDIR]
1275 --pdfdir=DIR pdf documentation [DOCDIR]
1276 --psdir=DIR ps documentation [DOCDIR]
1283 if test -n "$ac_init_help"; then
1284 case $ac_init_help in
1285 short
| recursive
) echo "Configuration of charybdis 2.2.0:";;
1290 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1291 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1292 --enable-ipv6 Enable IPv6 support
1293 --enable-openssl=DIR Enable OpenSSL support
(DIR optional
).
1294 --disable-openssl Disable OpenSSL support.
1295 --disable-zlib Disable ziplinks support
1296 --enable-poll Force poll
() usage.
1297 --enable-select Force
select() usage.
1298 --enable-kqueue Force kqueue
() usage.
1299 --enable-epoll Force sys_epoll usage
(Linux only
).
1300 --enable-assert Enable assert
(). Choose between soft
(warnings
) and
1301 hard
(aborts the daemon
)
1302 --enable-iodebug Enable IO Debugging hooks
1303 --enable-profile Enable profiling
1304 --disable-balloc Disable the block allocator.
1305 --enable-small-net Enable small network support.
1306 --disable-shared-modules
1307 Disable shared modules.
1308 --enable-warnings Enable all sorts of warnings
for debugging.
1311 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1312 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1313 --with-zlib-path=DIR Path to libz.so
for ziplinks support.
1314 --with-confdir=DIR Directory to
install config files.
1315 --with-logdir=DIR Directory where to
write logfiles.
1316 --with-helpdir=DIR Directory to
install help files.
1317 --with-moduledir=DIR Directory to
install modules.
1318 --with-nicklen=LENGTH Set the nick length to LENGTH
(default
15, max
50)
1319 --with-topiclen=NUMBER Set the max topic length to NUMBER
(default
390, max
1322 Some influential environment variables
:
1323 CC C compiler
command
1324 CFLAGS C compiler flags
1325 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1326 nonstandard directory
<lib dir
>
1327 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1328 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1329 you have headers
in a nonstandard directory
<include dir
>
1331 YACC The
`Yet Another C Compiler' implementation to use. Defaults to
1332 the first program found out of: `bison
-y', `byacc', `yacc'.
1333 YFLAGS The list of arguments that will be passed by default to $YACC.
1334 This script will default YFLAGS to the empty string to avoid a
1335 default value of `-d' given by some make applications.
1337 Use these variables to override the choices made by `configure' or to
help
1338 it to
find libraries and programs with nonstandard names
/locations.
1344 if test "$ac_init_help" = "recursive"; then
1345 # If there are subdirs, report their specific --help.
1346 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1347 test -d "$ac_dir" || continue
1351 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1353 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1354 # A ".." for each directory in $ac_dir_suffix.
1355 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1356 case $ac_top_builddir_sub in
1357 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1358 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1361 ac_abs_top_builddir
=$ac_pwd
1362 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1363 # for backward compatibility:
1364 ac_top_builddir
=$ac_top_build_prefix
1367 .
) # We are building in place.
1369 ac_top_srcdir
=$ac_top_builddir_sub
1370 ac_abs_top_srcdir
=$ac_pwd ;;
1371 [\\/]* | ?
:[\\/]* ) # Absolute name.
1372 ac_srcdir
=$srcdir$ac_dir_suffix;
1373 ac_top_srcdir
=$srcdir
1374 ac_abs_top_srcdir
=$srcdir ;;
1376 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1377 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1378 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1380 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1382 cd "$ac_dir" || { ac_status
=$?
; continue; }
1383 # Check for guested configure.
1384 if test -f "$ac_srcdir/configure.gnu"; then
1386 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1387 elif test -f "$ac_srcdir/configure"; then
1389 $SHELL "$ac_srcdir/configure" --help=recursive
1391 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1393 cd "$ac_pwd" || { ac_status
=$?
; break; }
1397 test -n "$ac_init_help" && exit $ac_status
1398 if $ac_init_version; then
1400 charybdis configure
2.2.0
1401 generated by GNU Autoconf
2.61
1403 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1404 2002, 2003, 2004, 2005, 2006 Free Software Foundation
, Inc.
1405 This configure
script is free software
; the Free Software Foundation
1406 gives unlimited permission to copy
, distribute and modify it.
1408 $Id: configure
3364 2007-04-03 09:50:56Z nenolod $
1412 cat >config.log
<<_ACEOF
1413 This file contains any messages produced by compilers while
1414 running configure, to aid debugging if configure makes a mistake.
1416 It was created by charybdis $as_me 2.2.0, which was
1417 generated by GNU Autoconf 2.61. Invocation command line was
1429 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1430 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1431 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1432 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1433 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1435 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1436 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1438 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1439 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1440 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1441 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1442 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1443 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1444 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1448 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1452 test -z "$as_dir" && as_dir
=.
1453 echo "PATH: $as_dir"
1469 # Keep a trace of the command line.
1470 # Strip out --no-create and --no-recursion so they do not pile up.
1471 # Strip out --silent because we don't want to record it for future runs.
1472 # Also quote any args containing shell meta-characters.
1473 # Make two passes to allow for proper duplicate-argument suppression.
1477 ac_must_keep_next
=false
1483 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1484 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1485 | -silent | --silent | --silen | --sile | --sil)
1488 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1491 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1493 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1494 if test $ac_must_keep_next = true
; then
1495 ac_must_keep_next
=false
# Got value, back to normal.
1498 *=* | --config-cache | -C | -disable-* | --disable-* \
1499 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1500 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1501 | -with-* | --with-* | -without-* | --without-* | --x)
1502 case "$ac_configure_args0 " in
1503 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1506 -* ) ac_must_keep_next
=true
;;
1509 ac_configure_args
="$ac_configure_args '$ac_arg'"
1514 $as_unset ac_configure_args0
|| test "${ac_configure_args0+set}" != set || { ac_configure_args0
=; export ac_configure_args0
; }
1515 $as_unset ac_configure_args1
|| test "${ac_configure_args1+set}" != set || { ac_configure_args1
=; export ac_configure_args1
; }
1517 # When interrupted or exit'd, cleanup temporary files, and complete
1518 # config.log. We remove comments because anyway the quotes in there
1519 # would cause problems or look ugly.
1520 # WARNING: Use '\'' to represent an apostrophe within the trap.
1521 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1522 trap 'exit_status=$?
1523 # Save into config.log some information that might help in debugging.
1528 ## ---------------- ##
1529 ## Cache variables. ##
1530 ## ---------------- ##
1533 # The following way of writing the cache mishandles newlines in values,
1535 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1536 eval ac_val=\$$ac_var
1540 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1541 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1544 _ | IFS | as_nl) ;; #(
1545 *) $as_unset $ac_var ;;
1550 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1551 *${as_nl}ac_space=\ *)
1553 "s/'\''/'\''\\\\'\'''\''/g;
1554 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1557 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1565 ## ----------------- ##
1566 ## Output variables. ##
1567 ## ----------------- ##
1570 for ac_var in $ac_subst_vars
1572 eval ac_val=\$$ac_var
1574 *\'\''*) ac_val
=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1576 echo "$ac_var='\''$ac_val'\''"
1580 if test -n "$ac_subst_files"; then
1582 ## ------------------- ##
1583 ## File substitutions. ##
1584 ## ------------------- ##
1587 for ac_var
in $ac_subst_files
1589 eval ac_val
=\$
$ac_var
1591 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1593 echo "$ac_var='\''$ac_val'\''"
1598 if test -s confdefs.h; then
1608 test "$ac_signal" != 0 &&
1609 echo "$as_me: caught signal $ac_signal"
1610 echo "$as_me: exit $exit_status"
1612 rm -f core *.core core.conftest.* &&
1613 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1616 for ac_signal
in 1 2 13 15; do
1617 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1621 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1622 rm -f -r conftest
* confdefs.h
1624 # Predefined preprocessor variables.
1626 cat >>confdefs.h
<<_ACEOF
1627 #define PACKAGE_NAME "$PACKAGE_NAME"
1631 cat >>confdefs.h
<<_ACEOF
1632 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1636 cat >>confdefs.h
<<_ACEOF
1637 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1641 cat >>confdefs.h
<<_ACEOF
1642 #define PACKAGE_STRING "$PACKAGE_STRING"
1646 cat >>confdefs.h
<<_ACEOF
1647 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1651 # Let the site file select an alternate cache file if it wants to.
1652 # Prefer explicitly selected file to automatically selected ones.
1653 if test -n "$CONFIG_SITE"; then
1654 set x
"$CONFIG_SITE"
1655 elif test "x$prefix" != xNONE
; then
1656 set x
"$prefix/share/config.site" "$prefix/etc/config.site"
1658 set x
"$ac_default_prefix/share/config.site" \
1659 "$ac_default_prefix/etc/config.site"
1664 if test -r "$ac_site_file"; then
1665 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1666 echo "$as_me: loading site script $ac_site_file" >&6;}
1667 sed 's/^/| /' "$ac_site_file" >&5
1672 if test -r "$cache_file"; then
1673 # Some versions of bash will fail to source /dev/null (special
1674 # files actually), so we avoid doing that.
1675 if test -f "$cache_file"; then
1676 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1677 echo "$as_me: loading cache $cache_file" >&6;}
1679 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1680 *) .
"./$cache_file";;
1684 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1685 echo "$as_me: creating cache $cache_file" >&6;}
1689 # Check that the precious variables saved in the cache have kept the same
1691 ac_cache_corrupted
=false
1692 for ac_var
in $ac_precious_vars; do
1693 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1694 eval ac_new_set
=\
$ac_env_${ac_var}_set
1695 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1696 eval ac_new_val
=\
$ac_env_${ac_var}_value
1697 case $ac_old_set,$ac_new_set in
1699 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1700 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1701 ac_cache_corrupted
=: ;;
1703 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1704 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1705 ac_cache_corrupted
=: ;;
1708 if test "x$ac_old_val" != "x$ac_new_val"; then
1709 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1710 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1711 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1712 echo "$as_me: former value: $ac_old_val" >&2;}
1713 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1714 echo "$as_me: current value: $ac_new_val" >&2;}
1715 ac_cache_corrupted
=:
1718 # Pass precious variables to config.status.
1719 if test "$ac_new_set" = set; then
1721 *\'*) ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1722 *) ac_arg
=$ac_var=$ac_new_val ;;
1724 case " $ac_configure_args " in
1725 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1726 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1730 if $ac_cache_corrupted; then
1731 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1732 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1733 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1734 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1735 { (exit 1); exit 1; }; }
1763 ac_cpp
='$CPP $CPPFLAGS'
1764 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1765 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1766 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1770 ac_config_headers
="$ac_config_headers include/setup.h"
1776 cat >>confdefs.h
<<\_ACEOF
1777 #define _GNU_SOURCE 1
1782 OLD_CFLAGS
="$CFLAGS"
1784 ac_cpp
='$CPP $CPPFLAGS'
1785 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1786 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1787 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1788 if test -n "$ac_tool_prefix"; then
1789 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1790 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1791 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1793 if test "${ac_cv_prog_CC+set}" = set; then
1794 echo $ECHO_N "(cached) $ECHO_C" >&6
1796 if test -n "$CC"; then
1797 ac_cv_prog_CC
="$CC" # Let the user override the test.
1799 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1803 test -z "$as_dir" && as_dir
=.
1804 for ac_exec_ext
in '' $ac_executable_extensions; do
1805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1806 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1817 if test -n "$CC"; then
1818 { echo "$as_me:$LINENO: result: $CC" >&5
1819 echo "${ECHO_T}$CC" >&6; }
1821 { echo "$as_me:$LINENO: result: no" >&5
1822 echo "${ECHO_T}no" >&6; }
1827 if test -z "$ac_cv_prog_CC"; then
1829 # Extract the first word of "gcc", so it can be a program name with args.
1830 set dummy gcc
; ac_word
=$2
1831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1833 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1834 echo $ECHO_N "(cached) $ECHO_C" >&6
1836 if test -n "$ac_ct_CC"; then
1837 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1839 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1843 test -z "$as_dir" && as_dir
=.
1844 for ac_exec_ext
in '' $ac_executable_extensions; do
1845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1846 ac_cv_prog_ac_ct_CC
="gcc"
1847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1856 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1857 if test -n "$ac_ct_CC"; then
1858 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1859 echo "${ECHO_T}$ac_ct_CC" >&6; }
1861 { echo "$as_me:$LINENO: result: no" >&5
1862 echo "${ECHO_T}no" >&6; }
1865 if test "x$ac_ct_CC" = x
; then
1868 case $cross_compiling:$ac_tool_warned in
1870 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1871 whose name does not start with the host triplet. If you think this
1872 configuration is useful to you, please write to autoconf@gnu.org." >&5
1873 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1874 whose name does not start with the host triplet. If you think this
1875 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1876 ac_tool_warned
=yes ;;
1884 if test -z "$CC"; then
1885 if test -n "$ac_tool_prefix"; then
1886 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1887 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1890 if test "${ac_cv_prog_CC+set}" = set; then
1891 echo $ECHO_N "(cached) $ECHO_C" >&6
1893 if test -n "$CC"; then
1894 ac_cv_prog_CC
="$CC" # Let the user override the test.
1896 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1900 test -z "$as_dir" && as_dir
=.
1901 for ac_exec_ext
in '' $ac_executable_extensions; do
1902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1903 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1914 if test -n "$CC"; then
1915 { echo "$as_me:$LINENO: result: $CC" >&5
1916 echo "${ECHO_T}$CC" >&6; }
1918 { echo "$as_me:$LINENO: result: no" >&5
1919 echo "${ECHO_T}no" >&6; }
1925 if test -z "$CC"; then
1926 # Extract the first word of "cc", so it can be a program name with args.
1927 set dummy cc
; ac_word
=$2
1928 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1930 if test "${ac_cv_prog_CC+set}" = set; then
1931 echo $ECHO_N "(cached) $ECHO_C" >&6
1933 if test -n "$CC"; then
1934 ac_cv_prog_CC
="$CC" # Let the user override the test.
1937 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1941 test -z "$as_dir" && as_dir
=.
1942 for ac_exec_ext
in '' $ac_executable_extensions; do
1943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1944 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1945 ac_prog_rejected
=yes
1949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1956 if test $ac_prog_rejected = yes; then
1957 # We found a bogon in the path, so make sure we never use it.
1958 set dummy
$ac_cv_prog_CC
1960 if test $# != 0; then
1961 # We chose a different compiler from the bogus one.
1962 # However, it has the same basename, so the bogon will be chosen
1963 # first if we set CC to just the basename; use the full file name.
1965 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1971 if test -n "$CC"; then
1972 { echo "$as_me:$LINENO: result: $CC" >&5
1973 echo "${ECHO_T}$CC" >&6; }
1975 { echo "$as_me:$LINENO: result: no" >&5
1976 echo "${ECHO_T}no" >&6; }
1981 if test -z "$CC"; then
1982 if test -n "$ac_tool_prefix"; then
1983 for ac_prog
in cl.exe
1985 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1986 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1987 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1989 if test "${ac_cv_prog_CC+set}" = set; then
1990 echo $ECHO_N "(cached) $ECHO_C" >&6
1992 if test -n "$CC"; then
1993 ac_cv_prog_CC
="$CC" # Let the user override the test.
1995 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1999 test -z "$as_dir" && as_dir
=.
2000 for ac_exec_ext
in '' $ac_executable_extensions; do
2001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2002 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2013 if test -n "$CC"; then
2014 { echo "$as_me:$LINENO: result: $CC" >&5
2015 echo "${ECHO_T}$CC" >&6; }
2017 { echo "$as_me:$LINENO: result: no" >&5
2018 echo "${ECHO_T}no" >&6; }
2022 test -n "$CC" && break
2025 if test -z "$CC"; then
2027 for ac_prog
in cl.exe
2029 # Extract the first word of "$ac_prog", so it can be a program name with args.
2030 set dummy
$ac_prog; ac_word
=$2
2031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2033 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2034 echo $ECHO_N "(cached) $ECHO_C" >&6
2036 if test -n "$ac_ct_CC"; then
2037 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2039 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2043 test -z "$as_dir" && as_dir
=.
2044 for ac_exec_ext
in '' $ac_executable_extensions; do
2045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2046 ac_cv_prog_ac_ct_CC
="$ac_prog"
2047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2056 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2057 if test -n "$ac_ct_CC"; then
2058 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2059 echo "${ECHO_T}$ac_ct_CC" >&6; }
2061 { echo "$as_me:$LINENO: result: no" >&5
2062 echo "${ECHO_T}no" >&6; }
2066 test -n "$ac_ct_CC" && break
2069 if test "x$ac_ct_CC" = x
; then
2072 case $cross_compiling:$ac_tool_warned in
2074 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2075 whose name does not start with the host triplet. If you think this
2076 configuration is useful to you, please write to autoconf@gnu.org." >&5
2077 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2078 whose name does not start with the host triplet. If you think this
2079 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2080 ac_tool_warned
=yes ;;
2089 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2090 See \`config.log' for more details." >&5
2091 echo "$as_me: error: no acceptable C compiler found in \$PATH
2092 See \`config.log' for more details." >&2;}
2093 { (exit 1); exit 1; }; }
2095 # Provide some information about the compiler.
2096 echo "$as_me:$LINENO: checking for C compiler version" >&5
2097 ac_compiler
=`set X $ac_compile; echo $2`
2098 { (ac_try
="$ac_compiler --version >&5"
2100 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
2101 *) ac_try_echo=$ac_try;;
2103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2104 (eval "$ac_compiler --version >&5") 2>&5
2106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107 (exit $ac_status); }
2108 { (ac_try="$ac_compiler -v >&5"
2110 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
2111 *) ac_try_echo
=$ac_try;;
2113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2114 (eval "$ac_compiler -v >&5") 2>&5
2116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117 (exit $ac_status); }
2118 { (ac_try
="$ac_compiler -V >&5"
2120 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
2121 *) ac_try_echo=$ac_try;;
2123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2124 (eval "$ac_compiler -V >&5") 2>&5
2126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127 (exit $ac_status); }
2129 cat >conftest.$ac_ext <<_ACEOF
2132 cat confdefs.h >>conftest.$ac_ext
2133 cat >>conftest.$ac_ext <<_ACEOF
2134 /* end confdefs.h. */
2144 ac_clean_files_save=$ac_clean_files
2145 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2146 # Try to create an executable without -o first, disregard a.out.
2147 # It will help us diagnose broken compilers, and finding out an intuition
2149 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2150 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2151 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2153 # List of possible output files, starting from the most likely.
2154 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
2155 # only as a last resort. b.out is created by i960 compilers.
2156 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
2158 # The IRIX 6 linker writes into existing files which may not be
2159 # executable, retaining their permissions. Remove them first so a
2160 # subsequent execution test works.
2162 for ac_file in $ac_files
2165 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2166 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2171 if { (ac_try="$ac_link_default"
2173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2174 *) ac_try_echo=$ac_try;;
2176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2177 (eval "$ac_link_default") 2>&5
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); }; then
2181 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2182 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2183 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2184 # so that the user can short-circuit this test for compilers unknown to
2186 for ac_file
in $ac_files ''
2188 test -f "$ac_file" || continue
2190 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.map
| *.inf
| *.o
| *.obj
)
2193 # We found the default executable, but exeext='' is most
2197 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2199 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2201 # We set ac_cv_exeext here because the later test for it is not
2202 # safe: cross compilers may not add the suffix if given an `-o'
2203 # argument, so we may need to know it at that point already.
2204 # Even if this section looks crufty: it has the advantage of
2211 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2217 { echo "$as_me:$LINENO: result: $ac_file" >&5
2218 echo "${ECHO_T}$ac_file" >&6; }
2219 if test -z "$ac_file"; then
2220 echo "$as_me: failed program was:" >&5
2221 sed 's/^/| /' conftest.
$ac_ext >&5
2223 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2224 See \`config.log' for more details." >&5
2225 echo "$as_me: error: C compiler cannot create executables
2226 See \`config.log' for more details." >&2;}
2227 { (exit 77); exit 77; }; }
2230 ac_exeext
=$ac_cv_exeext
2232 # Check that the compiler produces executables we can run. If not, either
2233 # the compiler is broken, or we cross compile.
2234 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2235 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2236 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2237 # If not cross compiling, check that we can run a simple program.
2238 if test "$cross_compiling" != yes; then
2239 if { ac_try
='./$ac_file'
2240 { (case "(($ac_try" in
2241 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
2242 *) ac_try_echo=$ac_try;;
2244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2245 (eval "$ac_try") 2>&5
2247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248 (exit $ac_status); }; }; then
2251 if test "$cross_compiling" = maybe; then
2254 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2255 If you meant to cross compile, use \`--host'.
2256 See \`config.log' for more details.
" >&5
2257 echo "$as_me: error
: cannot run C compiled programs.
2258 If you meant to cross compile
, use \
`--host'.
2259 See \`config.log
' for more details." >&2;}
2260 { (exit 1); exit 1; }; }
2264 { echo "$as_me:$LINENO: result: yes" >&5
2265 echo "${ECHO_T}yes" >&6; }
2267 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2268 ac_clean_files=$ac_clean_files_save
2269 # Check that the compiler produces executables we can run. If not, either
2270 # the compiler is broken, or we cross compile.
2271 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2272 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2273 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2274 echo "${ECHO_T}$cross_compiling" >&6; }
2276 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2277 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2278 if { (ac_try="$ac_link"
2280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2281 *) ac_try_echo=$ac_try;;
2283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2284 (eval "$ac_link") 2>&5
2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 (exit $ac_status); }; then
2288 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2289 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2290 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2292 for ac_file
in conftest.exe conftest conftest.
*; do
2293 test -f "$ac_file" || continue
2295 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.map
| *.inf
| *.o
| *.obj
) ;;
2296 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2302 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2303 See \`config.log' for more details." >&5
2304 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2305 See \`config.log' for more details." >&2;}
2306 { (exit 1); exit 1; }; }
2309 rm -f conftest
$ac_cv_exeext
2310 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2311 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2313 rm -f conftest.
$ac_ext
2314 EXEEXT
=$ac_cv_exeext
2316 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2317 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2318 if test "${ac_cv_objext+set}" = set; then
2319 echo $ECHO_N "(cached) $ECHO_C" >&6
2321 cat >conftest.
$ac_ext <<_ACEOF
2324 cat confdefs.h
>>conftest.
$ac_ext
2325 cat >>conftest.
$ac_ext <<_ACEOF
2326 /* end confdefs.h. */
2336 rm -f conftest.o conftest.obj
2337 if { (ac_try
="$ac_compile"
2339 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
2340 *) ac_try_echo=$ac_try;;
2342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2343 (eval "$ac_compile") 2>&5
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); }; then
2347 for ac_file in conftest.o conftest.obj conftest.*; do
2348 test -f "$ac_file" || continue;
2350 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2351 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2356 echo "$as_me: failed program was:" >&5
2357 sed 's/^/| /' conftest.$ac_ext >&5
2359 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2360 See \`config.log
' for more details." >&5
2361 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2362 See \`config.log' for more details.
" >&2;}
2363 { (exit 1); exit 1; }; }
2366 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2368 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
2369 echo "${ECHO_T}$ac_cv_objext" >&6; }
2370 OBJEXT=$ac_cv_objext
2372 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
2373 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
2374 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2375 echo $ECHO_N "(cached
) $ECHO_C" >&6
2377 cat >conftest.$ac_ext <<_ACEOF
2380 cat confdefs.h >>conftest.$ac_ext
2381 cat >>conftest.$ac_ext <<_ACEOF
2382 /* end confdefs.h. */
2395 rm -f conftest.$ac_objext
2396 if { (ac_try="$ac_compile"
2398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2399 *) ac_try_echo=$ac_try;;
2401 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2402 (eval "$ac_compile") 2>conftest.er1
2404 grep -v '^ *+' conftest.er1 >conftest.err
2406 cat conftest.err >&5
2407 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2408 (exit $ac_status); } && {
2409 test -z "$ac_c_werror_flag" ||
2410 test ! -s conftest.err
2411 } && test -s conftest.$ac_objext; then
2414 echo "$as_me: failed program was
:" >&5
2415 sed 's/^/| /' conftest.$ac_ext >&5
2420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2421 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2424 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
2425 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2426 GCC=`test $ac_compiler_gnu = yes && echo yes`
2427 ac_test_CFLAGS=${CFLAGS+set}
2428 ac_save_CFLAGS=$CFLAGS
2429 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
2430 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
2431 if test "${ac_cv_prog_cc_g+set}" = set; then
2432 echo $ECHO_N "(cached
) $ECHO_C" >&6
2434 ac_save_c_werror_flag=$ac_c_werror_flag
2435 ac_c_werror_flag=yes
2438 cat >conftest.$ac_ext <<_ACEOF
2441 cat confdefs.h >>conftest.$ac_ext
2442 cat >>conftest.$ac_ext <<_ACEOF
2443 /* end confdefs.h. */
2453 rm -f conftest.$ac_objext
2454 if { (ac_try="$ac_compile"
2456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2457 *) ac_try_echo=$ac_try;;
2459 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2460 (eval "$ac_compile") 2>conftest.er1
2462 grep -v '^ *+' conftest.er1 >conftest.err
2464 cat conftest.err >&5
2465 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2466 (exit $ac_status); } && {
2467 test -z "$ac_c_werror_flag" ||
2468 test ! -s conftest.err
2469 } && test -s conftest.$ac_objext; then
2472 echo "$as_me: failed program was
:" >&5
2473 sed 's/^/| /' conftest.$ac_ext >&5
2476 cat >conftest.$ac_ext <<_ACEOF
2479 cat confdefs.h >>conftest.$ac_ext
2480 cat >>conftest.$ac_ext <<_ACEOF
2481 /* end confdefs.h. */
2491 rm -f conftest.$ac_objext
2492 if { (ac_try="$ac_compile"
2494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2495 *) ac_try_echo=$ac_try;;
2497 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2498 (eval "$ac_compile") 2>conftest.er1
2500 grep -v '^ *+' conftest.er1 >conftest.err
2502 cat conftest.err >&5
2503 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2504 (exit $ac_status); } && {
2505 test -z "$ac_c_werror_flag" ||
2506 test ! -s conftest.err
2507 } && test -s conftest.$ac_objext; then
2510 echo "$as_me: failed program was
:" >&5
2511 sed 's/^/| /' conftest.$ac_ext >&5
2513 ac_c_werror_flag=$ac_save_c_werror_flag
2515 cat >conftest.$ac_ext <<_ACEOF
2518 cat confdefs.h >>conftest.$ac_ext
2519 cat >>conftest.$ac_ext <<_ACEOF
2520 /* end confdefs.h. */
2530 rm -f conftest.$ac_objext
2531 if { (ac_try="$ac_compile"
2533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2534 *) ac_try_echo=$ac_try;;
2536 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2537 (eval "$ac_compile") 2>conftest.er1
2539 grep -v '^ *+' conftest.er1 >conftest.err
2541 cat conftest.err >&5
2542 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2543 (exit $ac_status); } && {
2544 test -z "$ac_c_werror_flag" ||
2545 test ! -s conftest.err
2546 } && test -s conftest.$ac_objext; then
2549 echo "$as_me: failed program was
:" >&5
2550 sed 's/^/| /' conftest.$ac_ext >&5
2555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2562 ac_c_werror_flag=$ac_save_c_werror_flag
2564 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
2565 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2566 if test "$ac_test_CFLAGS" = set; then
2567 CFLAGS=$ac_save_CFLAGS
2568 elif test $ac_cv_prog_cc_g = yes; then
2569 if test "$GCC" = yes; then
2575 if test "$GCC" = yes; then
2581 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
2582 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
2583 if test "${ac_cv_prog_cc_c89+set}" = set; then
2584 echo $ECHO_N "(cached
) $ECHO_C" >&6
2586 ac_cv_prog_cc_c89=no
2588 cat >conftest.$ac_ext <<_ACEOF
2591 cat confdefs.h >>conftest.$ac_ext
2592 cat >>conftest.$ac_ext <<_ACEOF
2593 /* end confdefs.h. */
2596 #include <sys/types.h>
2597 #include <sys/stat.h>
2598 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2599 struct buf { int x; };
2600 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2601 static char *e (p, i)
2607 static char *f (char * (*g) (char **, int), char **p, ...)
2612 s = g (p, va_arg (v,int));
2617 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2618 function prototypes and stuff, but not '\xHH' hex character constants.
2619 These don't provoke an error unfortunately, instead are silently treated
2620 as 'x'. The following induces an error, until -std is added to get
2621 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2622 array size at least. It's necessary to write '\x00'==0 to get something
2623 that's true only with -std. */
2624 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2626 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2627 inside strings and character constants. */
2629 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2631 int test (int i, double x);
2632 struct s1 {int (*f) (int a);};
2633 struct s2 {int (*f) (double a);};
2634 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2640 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2645 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2646 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2648 CC="$ac_save_CC $ac_arg"
2649 rm -f conftest.$ac_objext
2650 if { (ac_try="$ac_compile"
2652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2653 *) ac_try_echo=$ac_try;;
2655 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2656 (eval "$ac_compile") 2>conftest.er1
2658 grep -v '^ *+' conftest.er1 >conftest.err
2660 cat conftest.err >&5
2661 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2662 (exit $ac_status); } && {
2663 test -z "$ac_c_werror_flag" ||
2664 test ! -s conftest.err
2665 } && test -s conftest.$ac_objext; then
2666 ac_cv_prog_cc_c89=$ac_arg
2668 echo "$as_me: failed program was
:" >&5
2669 sed 's/^/| /' conftest.$ac_ext >&5
2674 rm -f core conftest.err conftest.$ac_objext
2675 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
2677 rm -f conftest.$ac_ext
2682 case "x
$ac_cv_prog_cc_c89" in
2684 { echo "$as_me:$LINENO: result
: none needed
" >&5
2685 echo "${ECHO_T}none needed
" >&6; } ;;
2687 { echo "$as_me:$LINENO: result
: unsupported
" >&5
2688 echo "${ECHO_T}unsupported
" >&6; } ;;
2690 CC="$CC $ac_cv_prog_cc_c89"
2691 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
2692 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2697 ac_cpp='$CPP $CPPFLAGS'
2698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2703 ac_cpp='$CPP $CPPFLAGS'
2704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2709 CFLAGS="$OLD_CFLAGS"
2712 if test "$ac_cv_c_compiler_gnu" != yes; then
2715 { echo "$as_me:$LINENO: checking
$CC -version for TenDRA or MIPSpro
" >&5
2716 echo $ECHO_N "checking
$CC -version for TenDRA or MIPSpro...
$ECHO_C" >&6; }
2717 case `$CC -version 2>&1` in
2719 { echo "$as_me:$LINENO: result
: yes, TenDRA
" >&5
2720 echo "${ECHO_T}yes, TenDRA
" >&6; }
2722 CPPFLAGS="$CPPFLAGS -Ylonglong -Yansi -I/usr
/include
"
2727 { echo "$as_me:$LINENO: result
: yes, MIPSpro
" >&5
2728 echo "${ECHO_T}yes, MIPSpro
" >&6; }
2733 { echo "$as_me:$LINENO: result
: no
" >&5
2734 echo "${ECHO_T}no
" >&6; }
2740 { echo "$as_me:$LINENO: checking
$CC -V for Sun Workshop
, Forte
, HPUX or Tru64 cc
" >&5
2741 echo $ECHO_N "checking
$CC -V for Sun Workshop
, Forte
, HPUX or Tru64 cc...
$ECHO_C" >&6; }
2742 case `$CC -V 2>&1` in
2743 *Sun*WorkShop* | *Forte*Developer*)
2744 { echo "$as_me:$LINENO: result
: Sun Workshop
/Forte
" >&5
2745 echo "${ECHO_T}Sun Workshop
/Forte
" >&6; }
2746 IRC_CFLAGS="-fast -xinline=dlinkAdd
,dlinkAddBefore
,dlinkAddTail
,dlinkDelete
,dlink_list_length
,dlink_node
,dlinkMoveList
,_MyMalloc
,_MyRealloc
,_MyFree
,_DupString
"
2751 { echo "$as_me:$LINENO: result
: Tru64 cc
" >&5
2752 echo "${ECHO_T}Tru64 cc
" >&6; }
2754 CPPFLAGS="-I/usr
/local
/include
"
2758 { echo "$as_me:$LINENO: result
: HPUX cc
" >&5
2759 echo "${ECHO_T}HPUX cc
" >&6; }
2764 { echo "$as_me:$LINENO: result
: no
" >&5
2765 echo "${ECHO_T}no
" >&6; }
2771 { echo "$as_me:$LINENO: checking uname
-s for Cygwin
, Solaris
, AIX or HPUX
" >&5
2772 echo $ECHO_N "checking uname
-s for Cygwin
, Solaris
, AIX or HPUX...
$ECHO_C" >&6; }
2777 if test "$HPUX" != yes -a "$ac_cv_c_compiler_gnu" = no; then
2778 { echo "$as_me:$LINENO: result
: assuming old HPUX with its own cc
" >&5
2779 echo "${ECHO_T}assuming old HPUX with its own cc
" >&6; }
2780 IRC_CFLAGS="$IRC_CFLAGS +e
"
2783 { echo "$as_me:$LINENO: result
: already using newer HPUX
" >&5
2784 echo "${ECHO_T}already using newer HPUX
" >&6; }
2788 { echo "$as_me:$LINENO: result
: Cygwin
" >&5
2789 echo "${ECHO_T}Cygwin
" >&6; }
2793 { echo "$as_me:$LINENO: result
: SunOS or Solaris
" >&5
2794 echo "${ECHO_T}SunOS or Solaris
" >&6; }
2796 cat >>confdefs.h <<\_ACEOF
2797 #define __EXTENSIONS__ 1
2803 { echo "$as_me:$LINENO: result
: AIX
- Sorry you poor bastard..really we are
" >&5
2804 echo "${ECHO_T}AIX
- Sorry you poor bastard..really we are
" >&6; }
2805 IRC_CFLAGS="$IRC_CFLAGS -Wl,-brtl -Wl,-G"
2808 { echo "$as_me:$LINENO: result
: no
" >&5
2809 echo "${ECHO_T}no
" >&6; }
2813 if test "$ac_cv_c_compiler_gnu" = yes; then
2814 { echo "$as_me:$LINENO: checking
if $CC is Apple GCC
" >&5
2815 echo $ECHO_N "checking
if $CC is Apple GCC...
$ECHO_C" >&6; }
2817 case `$CC -v 2>&1 | tail -n 1` in
2819 { echo "$as_me:$LINENO: result
: yes" >&5
2820 echo "${ECHO_T}yes" >&6; }
2824 { echo "$as_me:$LINENO: result
: no
" >&5
2825 echo "${ECHO_T}no
" >&6; }
2830 IRC_CFLAGS="$IRC_CFLAGS -O0 -Wall"
2833 if test "$ac_cv_prog_cc_g" = yes; then
2834 if test "$Tru" = yes; then
2835 IRC_CFLAGS="$IRC_CFLAGS -g3"
2837 IRC_CFLAGS="$IRC_CFLAGS -g"
2841 { echo "$as_me:$LINENO: checking
if $CC supports the SVR4 SGS interfaces
" >&5
2842 echo $ECHO_N "checking
if $CC supports the SVR4 SGS interfaces...
$ECHO_C" >&6; }
2843 if test "$SGS" = "yes"; then
2844 { echo "$as_me:$LINENO: result
: yes" >&5
2845 echo "${ECHO_T}yes" >&6; }
2847 { echo "$as_me:$LINENO: result
: no
" >&5
2848 echo "${ECHO_T}no
" >&6; }
2851 # Extract the first word of "mkdep
", so it can be a program name with args.
2852 set dummy mkdep; ac_word=$2
2853 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
2854 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
2855 if test "${ac_cv_path_MKDEP+set}" = set; then
2856 echo $ECHO_N "(cached
) $ECHO_C" >&6
2860 ac_cv_path_MKDEP="$MKDEP" # Let the user override the test with a path.
2863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867 test -z "$as_dir" && as_dir=.
2868 for ac_exec_ext in '' $ac_executable_extensions; do
2869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2870 ac_cv_path_MKDEP="$as_dir/$ac_word$ac_exec_ext"
2871 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2881 MKDEP=$ac_cv_path_MKDEP
2882 if test -n "$MKDEP"; then
2883 { echo "$as_me:$LINENO: result
: $MKDEP" >&5
2884 echo "${ECHO_T}$MKDEP" >&6; }
2886 { echo "$as_me:$LINENO: result
: no
" >&5
2887 echo "${ECHO_T}no
" >&6; }
2891 # Extract the first word of "makedepend
", so it can be a program name with args.
2892 set dummy makedepend; ac_word=$2
2893 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
2894 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
2895 if test "${ac_cv_path_MAKEDEPEND+set}" = set; then
2896 echo $ECHO_N "(cached
) $ECHO_C" >&6
2900 ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path.
2903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907 test -z "$as_dir" && as_dir=.
2908 for ac_exec_ext in '' $ac_executable_extensions; do
2909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2910 ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext"
2911 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2921 MAKEDEPEND=$ac_cv_path_MAKEDEPEND
2922 if test -n "$MAKEDEPEND"; then
2923 { echo "$as_me:$LINENO: result
: $MAKEDEPEND" >&5
2924 echo "${ECHO_T}$MAKEDEPEND" >&6; }
2926 { echo "$as_me:$LINENO: result
: no
" >&5
2927 echo "${ECHO_T}no
" >&6; }
2932 { echo "$as_me:$LINENO: checking how to generate dependency info
" >&5
2933 echo $ECHO_N "checking how to generate dependency info...
$ECHO_C" >&6; }
2937 if test "$ac_cv_c_compiler_gnu" = yes; then
2938 { echo "$as_me:$LINENO: result
: gcc
-MM" >&5
2939 echo "${ECHO_T}gcc
-MM" >&6; }
2941 elif test ! -z "$MKDEP"; then
2942 { echo "$as_me:$LINENO: result
: mkdep
" >&5
2943 echo "${ECHO_T}mkdep
" >&6; }
2945 if test -z "$Tru"; then
2948 STDOUT=" 2> /dev
/null
"
2950 elif test "$SunWorkShop" = yes; then
2951 { echo "$as_me:$LINENO: result
: $CC -xM" >&5
2952 echo "${ECHO_T}$CC -xM" >&6; }
2954 STDOUT="> .depend
2> /dev
/null
"
2955 elif test ! -z "$MAKEDEPEND"; then
2956 { echo "$as_me:$LINENO: result
: makedepend
" >&5
2957 echo "${ECHO_T}makedepend
" >&6; }
2958 MKDEP="$MAKEDEPEND -f-"
2960 { echo "$as_me:$LINENO: result
: nothing suitable.. forget it
!" >&5
2961 echo "${ECHO_T}nothing suitable.. forget it
!" >&6; }
2968 { echo "$as_me:$LINENO: checking
for /dev
/null
" >&5
2969 echo $ECHO_N "checking
for /dev
/null...
$ECHO_C" >&6; }
2970 if test -c /dev/null ; then
2972 cat >>confdefs.h <<\_ACEOF
2973 #define PATH_DEVNULL "/dev
/null
"
2976 { echo "$as_me:$LINENO: result
: yes" >&5
2977 echo "${ECHO_T}yes" >&6; }
2980 cat >>confdefs.h <<\_ACEOF
2981 #define PATH_DEVNULL "devnull.log
"
2984 { echo "$as_me:$LINENO: result
: no
- using devnull.log
" >&5
2985 echo "${ECHO_T}no
- using devnull.log
" >&6; }
2988 if test ! -z "$CFLAGS"; then
2989 IRC_CFLAGS="$IRC_CFLAGS $CFLAGS"
2993 { echo "$as_me:$LINENO: checking
for library containing strerror
" >&5
2994 echo $ECHO_N "checking
for library containing strerror...
$ECHO_C" >&6; }
2995 if test "${ac_cv_search_strerror+set}" = set; then
2996 echo $ECHO_N "(cached
) $ECHO_C" >&6
2998 ac_func_search_save_LIBS=$LIBS
2999 cat >conftest.$ac_ext <<_ACEOF
3002 cat confdefs.h >>conftest.$ac_ext
3003 cat >>conftest.$ac_ext <<_ACEOF
3004 /* end confdefs.h. */
3006 /* Override any GCC internal prototype to avoid an error.
3007 Use char because int might match the return type of a GCC
3008 builtin and then its argument prototype would still apply. */
3021 for ac_lib in '' cposix; do
3022 if test -z "$ac_lib"; then
3023 ac_res="none required
"
3026 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3028 rm -f conftest.$ac_objext conftest$ac_exeext
3029 if { (ac_try="$ac_link"
3031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032 *) ac_try_echo=$ac_try;;
3034 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3035 (eval "$ac_link") 2>conftest.er1
3037 grep -v '^ *+' conftest.er1 >conftest.err
3039 cat conftest.err >&5
3040 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3041 (exit $ac_status); } && {
3042 test -z "$ac_c_werror_flag" ||
3043 test ! -s conftest.err
3044 } && test -s conftest$ac_exeext &&
3045 $as_test_x conftest$ac_exeext; then
3046 ac_cv_search_strerror=$ac_res
3048 echo "$as_me: failed program was
:" >&5
3049 sed 's/^/| /' conftest.$ac_ext >&5
3054 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3056 if test "${ac_cv_search_strerror+set}" = set; then
3060 if test "${ac_cv_search_strerror+set}" = set; then
3063 ac_cv_search_strerror=no
3066 LIBS=$ac_func_search_save_LIBS
3068 { echo "$as_me:$LINENO: result
: $ac_cv_search_strerror" >&5
3069 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3070 ac_res=$ac_cv_search_strerror
3071 if test "$ac_res" != no; then
3072 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
3076 { echo "$as_me:$LINENO: checking
for inline
" >&5
3077 echo $ECHO_N "checking
for inline...
$ECHO_C" >&6; }
3078 if test "${ac_cv_c_inline+set}" = set; then
3079 echo $ECHO_N "(cached
) $ECHO_C" >&6
3082 for ac_kw in inline __inline__ __inline; do
3083 cat >conftest.$ac_ext <<_ACEOF
3086 cat confdefs.h >>conftest.$ac_ext
3087 cat >>conftest.$ac_ext <<_ACEOF
3088 /* end confdefs.h. */
3091 static $ac_kw foo_t static_foo () {return 0; }
3092 $ac_kw foo_t foo () {return 0; }
3096 rm -f conftest.$ac_objext
3097 if { (ac_try="$ac_compile"
3099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100 *) ac_try_echo=$ac_try;;
3102 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3103 (eval "$ac_compile") 2>conftest.er1
3105 grep -v '^ *+' conftest.er1 >conftest.err
3107 cat conftest.err >&5
3108 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3109 (exit $ac_status); } && {
3110 test -z "$ac_c_werror_flag" ||
3111 test ! -s conftest.err
3112 } && test -s conftest.$ac_objext; then
3113 ac_cv_c_inline=$ac_kw
3115 echo "$as_me: failed program was
:" >&5
3116 sed 's/^/| /' conftest.$ac_ext >&5
3121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3122 test "$ac_cv_c_inline" != no && break
3126 { echo "$as_me:$LINENO: result
: $ac_cv_c_inline" >&5
3127 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
3130 case $ac_cv_c_inline in
3133 case $ac_cv_c_inline in
3135 *) ac_val=$ac_cv_c_inline;;
3137 cat >>confdefs.h <<_ACEOF
3139 #define inline $ac_val
3146 ac_cpp='$CPP $CPPFLAGS'
3147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3150 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3151 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3152 # On Suns, sometimes $CPP names a directory.
3153 if test -n "$CPP" && test -d "$CPP"; then
3156 if test -z "$CPP"; then
3157 if test "${ac_cv_prog_CPP+set}" = set; then
3158 echo $ECHO_N "(cached
) $ECHO_C" >&6
3160 # Double quotes because CPP needs to be expanded
3161 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3164 for ac_c_preproc_warn_flag in '' yes
3166 # Use a header file that comes with gcc, so configuring glibc
3167 # with a fresh cross-compiler works.
3168 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3169 # <limits.h> exists even on freestanding compilers.
3170 # On the NeXT, cc -E runs the code through the compiler's parser,
3171 # not just through cpp. "Syntax error
" is here to catch this case.
3172 cat >conftest.$ac_ext <<_ACEOF
3175 cat confdefs.h >>conftest.$ac_ext
3176 cat >>conftest.$ac_ext <<_ACEOF
3177 /* end confdefs.h. */
3179 # include <limits.h>
3181 # include <assert.h>
3185 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3188 *) ac_try_echo=$ac_try;;
3190 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3191 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3193 grep -v '^ *+' conftest.er1 >conftest.err
3195 cat conftest.err >&5
3196 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3197 (exit $ac_status); } >/dev/null && {
3198 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3199 test ! -s conftest.err
3203 echo "$as_me: failed program was
:" >&5
3204 sed 's/^/| /' conftest.$ac_ext >&5
3206 # Broken: fails on valid input.
3210 rm -f conftest.err conftest.$ac_ext
3212 # OK, works on sane cases. Now check whether nonexistent headers
3213 # can be detected and how.
3214 cat >conftest.$ac_ext <<_ACEOF
3217 cat confdefs.h >>conftest.$ac_ext
3218 cat >>conftest.$ac_ext <<_ACEOF
3219 /* end confdefs.h. */
3220 #include <ac_nonexistent.h>
3222 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225 *) ac_try_echo=$ac_try;;
3227 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3228 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3230 grep -v '^ *+' conftest.er1 >conftest.err
3232 cat conftest.err >&5
3233 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3234 (exit $ac_status); } >/dev/null && {
3235 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3236 test ! -s conftest.err
3238 # Broken: success on invalid input.
3241 echo "$as_me: failed program was
:" >&5
3242 sed 's/^/| /' conftest.$ac_ext >&5
3244 # Passes both tests.
3249 rm -f conftest.err conftest.$ac_ext
3252 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3253 rm -f conftest.err conftest.$ac_ext
3254 if $ac_preproc_ok; then
3266 { echo "$as_me:$LINENO: result
: $CPP" >&5
3267 echo "${ECHO_T}$CPP" >&6; }
3269 for ac_c_preproc_warn_flag in '' yes
3271 # Use a header file that comes with gcc, so configuring glibc
3272 # with a fresh cross-compiler works.
3273 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3274 # <limits.h> exists even on freestanding compilers.
3275 # On the NeXT, cc -E runs the code through the compiler's parser,
3276 # not just through cpp. "Syntax error
" is here to catch this case.
3277 cat >conftest.$ac_ext <<_ACEOF
3280 cat confdefs.h >>conftest.$ac_ext
3281 cat >>conftest.$ac_ext <<_ACEOF
3282 /* end confdefs.h. */
3284 # include <limits.h>
3286 # include <assert.h>
3290 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293 *) ac_try_echo=$ac_try;;
3295 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3296 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3298 grep -v '^ *+' conftest.er1 >conftest.err
3300 cat conftest.err >&5
3301 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3302 (exit $ac_status); } >/dev/null && {
3303 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3304 test ! -s conftest.err
3308 echo "$as_me: failed program was
:" >&5
3309 sed 's/^/| /' conftest.$ac_ext >&5
3311 # Broken: fails on valid input.
3315 rm -f conftest.err conftest.$ac_ext
3317 # OK, works on sane cases. Now check whether nonexistent headers
3318 # can be detected and how.
3319 cat >conftest.$ac_ext <<_ACEOF
3322 cat confdefs.h >>conftest.$ac_ext
3323 cat >>conftest.$ac_ext <<_ACEOF
3324 /* end confdefs.h. */
3325 #include <ac_nonexistent.h>
3327 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3330 *) ac_try_echo=$ac_try;;
3332 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3333 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3335 grep -v '^ *+' conftest.er1 >conftest.err
3337 cat conftest.err >&5
3338 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3339 (exit $ac_status); } >/dev/null && {
3340 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3341 test ! -s conftest.err
3343 # Broken: success on invalid input.
3346 echo "$as_me: failed program was
:" >&5
3347 sed 's/^/| /' conftest.$ac_ext >&5
3349 # Passes both tests.
3354 rm -f conftest.err conftest.$ac_ext
3357 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3358 rm -f conftest.err conftest.$ac_ext
3359 if $ac_preproc_ok; then
3362 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
3363 See \
`config.log' for more details." >&5
3364 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3365 See \`config.log
' for more details." >&2;}
3366 { (exit 1); exit 1; }; }
3370 ac_cpp='$CPP $CPPFLAGS'
3371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3372 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3376 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3377 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3378 if test "${ac_cv_path_GREP+set}" = set; then
3379 echo $ECHO_N "(cached) $ECHO_C" >&6
3381 # Extract the first word of "grep ggrep" to use in msg output
3382 if test -z "$GREP"; then
3383 set dummy grep ggrep; ac_prog_name=$2
3384 if test "${ac_cv_path_GREP+set}" = set; then
3385 echo $ECHO_N "(cached) $ECHO_C" >&6
3387 ac_path_GREP_found=false
3388 # Loop through the user's path and
test for each of PROGNAME
-LIST
3389 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3390 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3393 test -z "$as_dir" && as_dir
=.
3394 for ac_prog
in grep ggrep
; do
3395 for ac_exec_ext
in '' $ac_executable_extensions; do
3396 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3397 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3398 # Check for GNU ac_path_GREP and select it if it is found.
3399 # Check for GNU $ac_path_GREP
3400 case `"$ac_path_GREP" --version 2>&1` in
3402 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3405 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3408 cat "conftest.in" "conftest.in" >"conftest.tmp"
3409 mv "conftest.tmp" "conftest.in"
3410 cp "conftest.in" "conftest.nl"
3411 echo 'GREP' >> "conftest.nl"
3412 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
3413 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
3414 ac_count
=`expr $ac_count + 1`
3415 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3416 # Best one so far, save it but keep looking for a better one
3417 ac_cv_path_GREP
="$ac_path_GREP"
3418 ac_path_GREP_max
=$ac_count
3420 # 10*(2^10) chars as input seems more than enough
3421 test $ac_count -gt 10 && break
3423 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3427 $ac_path_GREP_found && break 3
3437 GREP
="$ac_cv_path_GREP"
3438 if test -z "$GREP"; then
3439 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3440 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3441 { (exit 1); exit 1; }; }
3445 ac_cv_path_GREP
=$GREP
3450 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3451 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3452 GREP
="$ac_cv_path_GREP"
3455 { echo "$as_me:$LINENO: checking for egrep" >&5
3456 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3457 if test "${ac_cv_path_EGREP+set}" = set; then
3458 echo $ECHO_N "(cached) $ECHO_C" >&6
3460 if echo a
| $GREP -E '(a|b)' >/dev
/null
2>&1
3461 then ac_cv_path_EGREP
="$GREP -E"
3463 # Extract the first word of "egrep" to use in msg output
3464 if test -z "$EGREP"; then
3465 set dummy
egrep; ac_prog_name
=$2
3466 if test "${ac_cv_path_EGREP+set}" = set; then
3467 echo $ECHO_N "(cached) $ECHO_C" >&6
3469 ac_path_EGREP_found
=false
3470 # Loop through the user's path and test for each of PROGNAME-LIST
3471 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3472 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3475 test -z "$as_dir" && as_dir
=.
3476 for ac_prog
in egrep; do
3477 for ac_exec_ext
in '' $ac_executable_extensions; do
3478 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3479 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3480 # Check for GNU ac_path_EGREP and select it if it is found.
3481 # Check for GNU $ac_path_EGREP
3482 case `"$ac_path_EGREP" --version 2>&1` in
3484 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3487 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3490 cat "conftest.in" "conftest.in" >"conftest.tmp"
3491 mv "conftest.tmp" "conftest.in"
3492 cp "conftest.in" "conftest.nl"
3493 echo 'EGREP' >> "conftest.nl"
3494 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
3495 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
3496 ac_count
=`expr $ac_count + 1`
3497 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3498 # Best one so far, save it but keep looking for a better one
3499 ac_cv_path_EGREP
="$ac_path_EGREP"
3500 ac_path_EGREP_max
=$ac_count
3502 # 10*(2^10) chars as input seems more than enough
3503 test $ac_count -gt 10 && break
3505 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3509 $ac_path_EGREP_found && break 3
3519 EGREP
="$ac_cv_path_EGREP"
3520 if test -z "$EGREP"; then
3521 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3522 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3523 { (exit 1); exit 1; }; }
3527 ac_cv_path_EGREP
=$EGREP
3533 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3534 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3535 EGREP
="$ac_cv_path_EGREP"
3538 if test $ac_cv_c_compiler_gnu = yes; then
3539 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3540 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3541 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3542 echo $ECHO_N "(cached) $ECHO_C" >&6
3544 ac_pattern
="Autoconf.*'x'"
3545 cat >conftest.
$ac_ext <<_ACEOF
3548 cat confdefs.h
>>conftest.
$ac_ext
3549 cat >>conftest.
$ac_ext <<_ACEOF
3550 /* end confdefs.h. */
3554 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3555 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
3556 ac_cv_prog_gcc_traditional
=yes
3558 ac_cv_prog_gcc_traditional
=no
3563 if test $ac_cv_prog_gcc_traditional = no
; then
3564 cat >conftest.
$ac_ext <<_ACEOF
3567 cat confdefs.h
>>conftest.
$ac_ext
3568 cat >>conftest.
$ac_ext <<_ACEOF
3569 /* end confdefs.h. */
3573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3574 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
3575 ac_cv_prog_gcc_traditional
=yes
3581 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3582 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3583 if test $ac_cv_prog_gcc_traditional = yes; then
3584 CC
="$CC -traditional"
3588 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3589 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3590 set x
${MAKE-make}; ac_make
=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3591 if { as_var
=ac_cv_prog_make_
${ac_make}_set
; eval "test \"\${$as_var+set}\" = set"; }; then
3592 echo $ECHO_N "(cached) $ECHO_C" >&6
3594 cat >conftest.
make <<\_ACEOF
3597 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3599 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3600 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3602 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3604 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3608 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3609 { echo "$as_me:$LINENO: result: yes" >&5
3610 echo "${ECHO_T}yes" >&6; }
3613 { echo "$as_me:$LINENO: result: no" >&5
3614 echo "${ECHO_T}no" >&6; }
3615 SET_MAKE
="MAKE=${MAKE-make}"
3619 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3620 if test -f "$ac_dir/install-sh"; then
3622 ac_install_sh
="$ac_aux_dir/install-sh -c"
3624 elif test -f "$ac_dir/install.sh"; then
3626 ac_install_sh
="$ac_aux_dir/install.sh -c"
3628 elif test -f "$ac_dir/shtool"; then
3630 ac_install_sh
="$ac_aux_dir/shtool install -c"
3634 if test -z "$ac_aux_dir"; then
3635 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
3636 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
3637 { (exit 1); exit 1; }; }
3640 # These three variables are undocumented and unsupported,
3641 # and are intended to be withdrawn in a future Autoconf release.
3642 # They can cause serious problems if a builder's source tree is in a directory
3643 # whose full name contains unusual characters.
3644 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3645 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3646 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3649 # Find a good install program. We prefer a C program (faster),
3650 # so one script is as good as another. But avoid the broken or
3651 # incompatible versions:
3652 # SysV /etc/install, /usr/sbin/install
3653 # SunOS /usr/etc/install
3654 # IRIX /sbin/install
3656 # AmigaOS /C/install, which installs bootblocks on floppy discs
3657 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3658 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3659 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3660 # OS/2's system install, which has a completely different semantic
3661 # ./install, which can be erroneously created by make from ./install.sh.
3662 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3663 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3664 if test -z "$INSTALL"; then
3665 if test "${ac_cv_path_install+set}" = set; then
3666 echo $ECHO_N "(cached) $ECHO_C" >&6
3668 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3672 test -z "$as_dir" && as_dir
=.
3673 # Account for people who put trailing slashes in PATH elements.
3675 .
/ | .
// | /cC
/* | \
3676 /etc
/* | /usr
/sbin
/* | /usr
/etc
/* | /sbin
/* | /usr
/afsws
/bin
/* | \
3677 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3680 # OSF1 and SCO ODT 3.0 have their own names for install.
3681 # Don't use installbsd from OSF since it installs stuff as root
3683 for ac_prog
in ginstall scoinst
install; do
3684 for ac_exec_ext
in '' $ac_executable_extensions; do
3685 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3686 if test $ac_prog = install &&
3687 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3688 # AIX install. It has an incompatible calling convention.
3690 elif test $ac_prog = install &&
3691 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3692 # program-specific install script used by HP pwplus--don't use.
3695 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3708 if test "${ac_cv_path_install+set}" = set; then
3709 INSTALL
=$ac_cv_path_install
3711 # As a last resort, use the slow shell script. Don't cache a
3712 # value for INSTALL within a source directory, because that will
3713 # break other packages using the cache if that directory is
3714 # removed, or if the value is a relative name.
3715 INSTALL
=$ac_install_sh
3718 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3719 echo "${ECHO_T}$INSTALL" >&6; }
3721 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3722 # It thinks the first close brace ends the variable substitution.
3723 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3725 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3727 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3729 # Extract the first word of "rm", so it can be a program name with args.
3730 set dummy
rm; ac_word
=$2
3731 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3733 if test "${ac_cv_path_RM+set}" = set; then
3734 echo $ECHO_N "(cached) $ECHO_C" >&6
3738 ac_cv_path_RM
="$RM" # Let the user override the test with a path.
3741 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3745 test -z "$as_dir" && as_dir
=.
3746 for ac_exec_ext
in '' $ac_executable_extensions; do
3747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3748 ac_cv_path_RM
="$as_dir/$ac_word$ac_exec_ext"
3749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3760 if test -n "$RM"; then
3761 { echo "$as_me:$LINENO: result: $RM" >&5
3762 echo "${ECHO_T}$RM" >&6; }
3764 { echo "$as_me:$LINENO: result: no" >&5
3765 echo "${ECHO_T}no" >&6; }
3769 # Extract the first word of "cp", so it can be a program name with args.
3770 set dummy
cp; ac_word
=$2
3771 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3773 if test "${ac_cv_path_CP+set}" = set; then
3774 echo $ECHO_N "(cached) $ECHO_C" >&6
3778 ac_cv_path_CP
="$CP" # Let the user override the test with a path.
3781 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3785 test -z "$as_dir" && as_dir
=.
3786 for ac_exec_ext
in '' $ac_executable_extensions; do
3787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3788 ac_cv_path_CP
="$as_dir/$ac_word$ac_exec_ext"
3789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3800 if test -n "$CP"; then
3801 { echo "$as_me:$LINENO: result: $CP" >&5
3802 echo "${ECHO_T}$CP" >&6; }
3804 { echo "$as_me:$LINENO: result: no" >&5
3805 echo "${ECHO_T}no" >&6; }
3809 # Extract the first word of "mv", so it can be a program name with args.
3810 set dummy
mv; ac_word
=$2
3811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3813 if test "${ac_cv_path_MV+set}" = set; then
3814 echo $ECHO_N "(cached) $ECHO_C" >&6
3818 ac_cv_path_MV
="$MV" # Let the user override the test with a path.
3821 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3825 test -z "$as_dir" && as_dir
=.
3826 for ac_exec_ext
in '' $ac_executable_extensions; do
3827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3828 ac_cv_path_MV
="$as_dir/$ac_word$ac_exec_ext"
3829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3840 if test -n "$MV"; then
3841 { echo "$as_me:$LINENO: result: $MV" >&5
3842 echo "${ECHO_T}$MV" >&6; }
3844 { echo "$as_me:$LINENO: result: no" >&5
3845 echo "${ECHO_T}no" >&6; }
3849 # Extract the first word of "ln", so it can be a program name with args.
3850 set dummy
ln; ac_word
=$2
3851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3853 if test "${ac_cv_path_LN+set}" = set; then
3854 echo $ECHO_N "(cached) $ECHO_C" >&6
3858 ac_cv_path_LN
="$LN" # Let the user override the test with a path.
3861 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3865 test -z "$as_dir" && as_dir
=.
3866 for ac_exec_ext
in '' $ac_executable_extensions; do
3867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3868 ac_cv_path_LN
="$as_dir/$ac_word$ac_exec_ext"
3869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3880 if test -n "$LN"; then
3881 { echo "$as_me:$LINENO: result: $LN" >&5
3882 echo "${ECHO_T}$LN" >&6; }
3884 { echo "$as_me:$LINENO: result: no" >&5
3885 echo "${ECHO_T}no" >&6; }
3889 # Extract the first word of "sed", so it can be a program name with args.
3890 set dummy
sed; ac_word
=$2
3891 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3893 if test "${ac_cv_path_SED+set}" = set; then
3894 echo $ECHO_N "(cached) $ECHO_C" >&6
3898 ac_cv_path_SED
="$SED" # Let the user override the test with a path.
3901 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3905 test -z "$as_dir" && as_dir
=.
3906 for ac_exec_ext
in '' $ac_executable_extensions; do
3907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3908 ac_cv_path_SED
="$as_dir/$ac_word$ac_exec_ext"
3909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3920 if test -n "$SED"; then
3921 { echo "$as_me:$LINENO: result: $SED" >&5
3922 echo "${ECHO_T}$SED" >&6; }
3924 { echo "$as_me:$LINENO: result: no" >&5
3925 echo "${ECHO_T}no" >&6; }
3929 # Extract the first word of "ar", so it can be a program name with args.
3930 set dummy
ar; ac_word
=$2
3931 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3933 if test "${ac_cv_path_AR+set}" = set; then
3934 echo $ECHO_N "(cached) $ECHO_C" >&6
3938 ac_cv_path_AR
="$AR" # Let the user override the test with a path.
3941 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3945 test -z "$as_dir" && as_dir
=.
3946 for ac_exec_ext
in '' $ac_executable_extensions; do
3947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3948 ac_cv_path_AR
="$as_dir/$ac_word$ac_exec_ext"
3949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3960 if test -n "$AR"; then
3961 { echo "$as_me:$LINENO: result: $AR" >&5
3962 echo "${ECHO_T}$AR" >&6; }
3964 { echo "$as_me:$LINENO: result: no" >&5
3965 echo "${ECHO_T}no" >&6; }
3969 # Extract the first word of "ld", so it can be a program name with args.
3970 set dummy ld
; ac_word
=$2
3971 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3973 if test "${ac_cv_path_LD+set}" = set; then
3974 echo $ECHO_N "(cached) $ECHO_C" >&6
3978 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
3981 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3985 test -z "$as_dir" && as_dir
=.
3986 for ac_exec_ext
in '' $ac_executable_extensions; do
3987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3988 ac_cv_path_LD
="$as_dir/$ac_word$ac_exec_ext"
3989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4000 if test -n "$LD"; then
4001 { echo "$as_me:$LINENO: result: $LD" >&5
4002 echo "${ECHO_T}$LD" >&6; }
4004 { echo "$as_me:$LINENO: result: no" >&5
4005 echo "${ECHO_T}no" >&6; }
4009 # Extract the first word of "ranlib", so it can be a program name with args.
4010 set dummy ranlib
; ac_word
=$2
4011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4013 if test "${ac_cv_path_RANLIB+set}" = set; then
4014 echo $ECHO_N "(cached) $ECHO_C" >&6
4018 ac_cv_path_RANLIB
="$RANLIB" # Let the user override the test with a path.
4021 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4025 test -z "$as_dir" && as_dir
=.
4026 for ac_exec_ext
in '' $ac_executable_extensions; do
4027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4028 ac_cv_path_RANLIB
="$as_dir/$ac_word$ac_exec_ext"
4029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4039 RANLIB
=$ac_cv_path_RANLIB
4040 if test -n "$RANLIB"; then
4041 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4042 echo "${ECHO_T}$RANLIB" >&6; }
4044 { echo "$as_me:$LINENO: result: no" >&5
4045 echo "${ECHO_T}no" >&6; }
4049 # Extract the first word of "touch", so it can be a program name with args.
4050 set dummy
touch; ac_word
=$2
4051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4053 if test "${ac_cv_path_TOUCH+set}" = set; then
4054 echo $ECHO_N "(cached) $ECHO_C" >&6
4058 ac_cv_path_TOUCH
="$TOUCH" # Let the user override the test with a path.
4061 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4065 test -z "$as_dir" && as_dir
=.
4066 for ac_exec_ext
in '' $ac_executable_extensions; do
4067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4068 ac_cv_path_TOUCH
="$as_dir/$ac_word$ac_exec_ext"
4069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4079 TOUCH
=$ac_cv_path_TOUCH
4080 if test -n "$TOUCH"; then
4081 { echo "$as_me:$LINENO: result: $TOUCH" >&5
4082 echo "${ECHO_T}$TOUCH" >&6; }
4084 { echo "$as_me:$LINENO: result: no" >&5
4085 echo "${ECHO_T}no" >&6; }
4090 for ac_prog
in 'bison -y' byacc
4092 # Extract the first word of "$ac_prog", so it can be a program name with args.
4093 set dummy
$ac_prog; ac_word
=$2
4094 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4096 if test "${ac_cv_prog_YACC+set}" = set; then
4097 echo $ECHO_N "(cached) $ECHO_C" >&6
4099 if test -n "$YACC"; then
4100 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
4102 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4106 test -z "$as_dir" && as_dir
=.
4107 for ac_exec_ext
in '' $ac_executable_extensions; do
4108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4109 ac_cv_prog_YACC
="$ac_prog"
4110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4119 YACC
=$ac_cv_prog_YACC
4120 if test -n "$YACC"; then
4121 { echo "$as_me:$LINENO: result: $YACC" >&5
4122 echo "${ECHO_T}$YACC" >&6; }
4124 { echo "$as_me:$LINENO: result: no" >&5
4125 echo "${ECHO_T}no" >&6; }
4129 test -n "$YACC" && break
4131 test -n "$YACC" || YACC
="yacc"
4134 if test "$YACC" = "yacc" -a -z "`which $YACC 2>/dev/null`"; then
4135 { { echo "$as_me:$LINENO: error: could not locate a suitable parser generator; install bison, yacc, or byacc" >&5
4136 echo "$as_me: error: could not locate a suitable parser generator; install bison, yacc, or byacc" >&2;}
4137 { (exit 1); exit 1; }; }
4140 for ac_prog
in flex
lex
4142 # Extract the first word of "$ac_prog", so it can be a program name with args.
4143 set dummy
$ac_prog; ac_word
=$2
4144 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4146 if test "${ac_cv_prog_LEX+set}" = set; then
4147 echo $ECHO_N "(cached) $ECHO_C" >&6
4149 if test -n "$LEX"; then
4150 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
4152 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4156 test -z "$as_dir" && as_dir
=.
4157 for ac_exec_ext
in '' $ac_executable_extensions; do
4158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4159 ac_cv_prog_LEX
="$ac_prog"
4160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4170 if test -n "$LEX"; then
4171 { echo "$as_me:$LINENO: result: $LEX" >&5
4172 echo "${ECHO_T}$LEX" >&6; }
4174 { echo "$as_me:$LINENO: result: no" >&5
4175 echo "${ECHO_T}no" >&6; }
4179 test -n "$LEX" && break
4181 test -n "$LEX" || LEX
=":"
4183 if test "x$LEX" != "x:"; then
4184 cat >conftest.l
<<_ACEOF
4190 e { yyless (input () != 0); }
4191 f { unput (yytext[0]); }
4192 . { BEGIN INITIAL; }
4194 #ifdef YYTEXT_POINTER
4195 extern char *yytext;
4200 return ! yylex () + ! yywrap ();
4203 { (ac_try
="$LEX conftest.l"
4205 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
4206 *) ac_try_echo=$ac_try;;
4208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4209 (eval "$LEX conftest.l") 2>&5
4211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212 (exit $ac_status); }
4213 { echo "$as_me:$LINENO: checking lex output file root" >&5
4214 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
4215 if test "${ac_cv_prog_lex_root+set}" = set; then
4216 echo $ECHO_N "(cached) $ECHO_C" >&6
4219 if test -f lex.yy.c; then
4220 ac_cv_prog_lex_root=lex.yy
4221 elif test -f lexyy.c; then
4222 ac_cv_prog_lex_root=lexyy
4224 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4225 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4226 { (exit 1); exit 1; }; }
4229 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4230 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
4231 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4233 if test -z "${LEXLIB+set}"; then
4234 { echo "$as_me:$LINENO: checking lex library" >&5
4235 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
4236 if test "${ac_cv_lib_lex+set}" = set; then
4237 echo $ECHO_N "(cached) $ECHO_C" >&6
4241 ac_cv_lib_lex='none needed'
4242 for ac_lib in '' -lfl -ll; do
4243 LIBS="$ac_lib $ac_save_LIBS"
4244 cat >conftest.$ac_ext <<_ACEOF
4245 `cat $LEX_OUTPUT_ROOT.c
`
4247 rm -f conftest.$ac_objext conftest$ac_exeext
4248 if { (ac_try="$ac_link"
4250 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
4251 *) ac_try_echo
=$ac_try;;
4253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4254 (eval "$ac_link") 2>conftest.er1
4256 grep -v '^ *+' conftest.er1
>conftest.err
4258 cat conftest.err
>&5
4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260 (exit $ac_status); } && {
4261 test -z "$ac_c_werror_flag" ||
4262 test ! -s conftest.err
4263 } && test -s conftest
$ac_exeext &&
4264 $as_test_x conftest
$ac_exeext; then
4265 ac_cv_lib_lex
=$ac_lib
4267 echo "$as_me: failed program was:" >&5
4268 sed 's/^/| /' conftest.
$ac_ext >&5
4273 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4274 conftest
$ac_exeext conftest.
$ac_ext
4275 test "$ac_cv_lib_lex" != 'none needed' && break
4280 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
4281 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
4282 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB
=$ac_cv_lib_lex
4286 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4287 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
4288 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4289 echo $ECHO_N "(cached) $ECHO_C" >&6
4291 # POSIX says lex can declare yytext either as a pointer or an array; the
4292 # default is implementation-dependent. Figure out which it is, since
4293 # not all implementations provide the %pointer and %array declarations.
4294 ac_cv_prog_lex_yytext_pointer
=no
4296 LIBS
="$LEXLIB $ac_save_LIBS"
4297 cat >conftest.
$ac_ext <<_ACEOF
4298 #define YYTEXT_POINTER 1
4299 `cat $LEX_OUTPUT_ROOT.c`
4301 rm -f conftest.
$ac_objext conftest
$ac_exeext
4302 if { (ac_try
="$ac_link"
4304 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
4305 *) ac_try_echo=$ac_try;;
4307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4308 (eval "$ac_link") 2>conftest.er1
4310 grep -v '^ *+' conftest.er1 >conftest.err
4312 cat conftest.err >&5
4313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314 (exit $ac_status); } && {
4315 test -z "$ac_c_werror_flag" ||
4316 test ! -s conftest.err
4317 } && test -s conftest$ac_exeext &&
4318 $as_test_x conftest$ac_exeext; then
4319 ac_cv_prog_lex_yytext_pointer=yes
4321 echo "$as_me: failed program was:" >&5
4322 sed 's/^/| /' conftest.$ac_ext >&5
4327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4328 conftest$ac_exeext conftest.$ac_ext
4332 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4333 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
4334 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4336 cat >>confdefs.h <<\_ACEOF
4337 #define YYTEXT_POINTER 1
4341 rm -f conftest.l $LEX_OUTPUT_ROOT.c
4345 if test "$LEX" = ":"; then
4346 { { echo "$as_me:$LINENO: error: could not locate a suitable lexical generator, install flex or lex." >&5
4347 echo "$as_me: error: could not locate a suitable lexical generator, install flex or lex." >&2;}
4348 { (exit 1); exit 1; }; }
4351 if test "$libexecdir" = '${exec_prefix}/libexec' &&
4352 test "$localstatedir" = '${prefix}/var'; then
4353 libexecdir='${bindir}'
4354 localstatedir='${prefix}'
4357 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4358 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4359 if test "${ac_cv_header_stdc+set}" = set; then
4360 echo $ECHO_N "(cached) $ECHO_C" >&6
4362 cat >conftest.$ac_ext <<_ACEOF
4365 cat confdefs.h >>conftest.$ac_ext
4366 cat >>conftest.$ac_ext <<_ACEOF
4367 /* end confdefs.h. */
4381 rm -f conftest.$ac_objext
4382 if { (ac_try="$ac_compile"
4384 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
4385 *) ac_try_echo
=$ac_try;;
4387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4388 (eval "$ac_compile") 2>conftest.er1
4390 grep -v '^ *+' conftest.er1
>conftest.err
4392 cat conftest.err
>&5
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); } && {
4395 test -z "$ac_c_werror_flag" ||
4396 test ! -s conftest.err
4397 } && test -s conftest.
$ac_objext; then
4398 ac_cv_header_stdc
=yes
4400 echo "$as_me: failed program was:" >&5
4401 sed 's/^/| /' conftest.
$ac_ext >&5
4403 ac_cv_header_stdc
=no
4406 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4408 if test $ac_cv_header_stdc = yes; then
4409 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4410 cat >conftest.
$ac_ext <<_ACEOF
4413 cat confdefs.h
>>conftest.
$ac_ext
4414 cat >>conftest.
$ac_ext <<_ACEOF
4415 /* end confdefs.h. */
4419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4420 $EGREP "memchr" >/dev
/null
2>&1; then
4423 ac_cv_header_stdc
=no
4429 if test $ac_cv_header_stdc = yes; then
4430 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4431 cat >conftest.
$ac_ext <<_ACEOF
4434 cat confdefs.h
>>conftest.
$ac_ext
4435 cat >>conftest.
$ac_ext <<_ACEOF
4436 /* end confdefs.h. */
4440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4441 $EGREP "free" >/dev
/null
2>&1; then
4444 ac_cv_header_stdc
=no
4450 if test $ac_cv_header_stdc = yes; then
4451 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4452 if test "$cross_compiling" = yes; then
4455 cat >conftest.
$ac_ext <<_ACEOF
4458 cat confdefs.h
>>conftest.
$ac_ext
4459 cat >>conftest.
$ac_ext <<_ACEOF
4460 /* end confdefs.h. */
4463 #if ((' ' & 0x0FF) == 0x020)
4464 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4465 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4467 # define ISLOWER(c) \
4468 (('a' <= (c) && (c) <= 'i') \
4469 || ('j' <= (c) && (c) <= 'r') \
4470 || ('s' <= (c) && (c) <= 'z'))
4471 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4474 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4479 for (i = 0; i < 256; i++)
4480 if (XOR (islower (i), ISLOWER (i))
4481 || toupper (i) != TOUPPER (i))
4486 rm -f conftest
$ac_exeext
4487 if { (ac_try
="$ac_link"
4489 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
4490 *) ac_try_echo=$ac_try;;
4492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4493 (eval "$ac_link") 2>&5
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4497 { (case "(($ac_try" in
4498 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
4499 *) ac_try_echo
=$ac_try;;
4501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4502 (eval "$ac_try") 2>&5
4504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505 (exit $ac_status); }; }; then
4508 echo "$as_me: program exited with status $ac_status" >&5
4509 echo "$as_me: failed program was:" >&5
4510 sed 's/^/| /' conftest.
$ac_ext >&5
4513 ac_cv_header_stdc
=no
4515 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4521 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4522 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4523 if test $ac_cv_header_stdc = yes; then
4525 cat >>confdefs.h
<<\_ACEOF
4526 #define STDC_HEADERS 1
4532 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4542 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4543 inttypes.h stdint.h unistd.h
4545 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4546 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4548 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4549 echo $ECHO_N "(cached) $ECHO_C" >&6
4551 cat >conftest.
$ac_ext <<_ACEOF
4554 cat confdefs.h
>>conftest.
$ac_ext
4555 cat >>conftest.
$ac_ext <<_ACEOF
4556 /* end confdefs.h. */
4557 $ac_includes_default
4559 #include <$ac_header>
4561 rm -f conftest.
$ac_objext
4562 if { (ac_try
="$ac_compile"
4564 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
4565 *) ac_try_echo=$ac_try;;
4567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4568 (eval "$ac_compile") 2>conftest.er1
4570 grep -v '^ *+' conftest.er1 >conftest.err
4572 cat conftest.err >&5
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); } && {
4575 test -z "$ac_c_werror_flag" ||
4576 test ! -s conftest.err
4577 } && test -s conftest.$ac_objext; then
4578 eval "$as_ac_Header=yes"
4580 echo "$as_me: failed program was:" >&5
4581 sed 's/^/| /' conftest.$ac_ext >&5
4583 eval "$as_ac_Header=no"
4586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4588 ac_res=`eval echo '${'$as_ac_Header'}'`
4589 { echo "$as_me:$LINENO: result: $ac_res" >&5
4590 echo "${ECHO_T}$ac_res" >&6; }
4591 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4592 cat >>confdefs.h <<_ACEOF
4593 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4612 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
4614 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4615 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4616 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4618 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4619 echo $ECHO_N "(cached) $ECHO_C" >&6
4621 ac_res=`eval echo '${'$as_ac_Header'}'`
4622 { echo "$as_me:$LINENO: result: $ac_res" >&5
4623 echo "${ECHO_T}$ac_res" >&6; }
4625 # Is the header compilable?
4626 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4627 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4628 cat >conftest.$ac_ext <<_ACEOF
4631 cat confdefs.h >>conftest.$ac_ext
4632 cat >>conftest.$ac_ext <<_ACEOF
4633 /* end confdefs.h. */
4634 $ac_includes_default
4635 #include <$ac_header>
4637 rm -f conftest.$ac_objext
4638 if { (ac_try="$ac_compile"
4640 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
4641 *) ac_try_echo
=$ac_try;;
4643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4644 (eval "$ac_compile") 2>conftest.er1
4646 grep -v '^ *+' conftest.er1
>conftest.err
4648 cat conftest.err
>&5
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); } && {
4651 test -z "$ac_c_werror_flag" ||
4652 test ! -s conftest.err
4653 } && test -s conftest.
$ac_objext; then
4654 ac_header_compiler
=yes
4656 echo "$as_me: failed program was:" >&5
4657 sed 's/^/| /' conftest.
$ac_ext >&5
4659 ac_header_compiler
=no
4662 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4663 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4664 echo "${ECHO_T}$ac_header_compiler" >&6; }
4666 # Is the header present?
4667 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4668 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4669 cat >conftest.
$ac_ext <<_ACEOF
4672 cat confdefs.h
>>conftest.
$ac_ext
4673 cat >>conftest.
$ac_ext <<_ACEOF
4674 /* end confdefs.h. */
4675 #include <$ac_header>
4677 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4679 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
4680 *) ac_try_echo=$ac_try;;
4682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4683 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4685 grep -v '^ *+' conftest.er1 >conftest.err
4687 cat conftest.err >&5
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); } >/dev/null && {
4690 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4691 test ! -s conftest.err
4693 ac_header_preproc=yes
4695 echo "$as_me: failed program was:" >&5
4696 sed 's/^/| /' conftest.$ac_ext >&5
4698 ac_header_preproc=no
4701 rm -f conftest.err conftest.$ac_ext
4702 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4703 echo "${ECHO_T}$ac_header_preproc" >&6; }
4705 # So? What about this header?
4706 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4708 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4709 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4710 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4711 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4712 ac_header_preproc=yes
4715 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4716 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4717 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4718 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4719 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4720 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4721 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4722 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4723 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4724 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4725 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4726 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4730 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4733 echo $ECHO_N "(cached) $ECHO_C" >&6
4735 eval "$as_ac_Header=\$ac_header_preproc"
4737 ac_res=`eval echo '${'$as_ac_Header'}'`
4738 { echo "$as_me:$LINENO: result: $ac_res" >&5
4739 echo "${ECHO_T}$ac_res" >&6; }
4742 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4743 cat >>confdefs.h <<_ACEOF
4744 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4753 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4754 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4755 if test "${ac_cv_c_const+set}" = set; then
4756 echo $ECHO_N "(cached) $ECHO_C" >&6
4758 cat >conftest.$ac_ext <<_ACEOF
4761 cat confdefs.h >>conftest.$ac_ext
4762 cat >>conftest.$ac_ext <<_ACEOF
4763 /* end confdefs.h. */
4768 /* FIXME: Include the comments suggested by Paul. */
4770 /* Ultrix mips cc rejects this. */
4771 typedef int charset[2];
4773 /* SunOS 4.1.1 cc rejects this. */
4774 char const *const *pcpcc;
4776 /* NEC SVR4.0.2 mips cc rejects this. */
4777 struct point {int x, y;};
4778 static struct point const zero = {0,0};
4779 /* AIX XL C 1.02.0.0 rejects this.
4780 It does not let you subtract one const X* pointer from another in
4781 an arm of an if-expression whose if-part is not a constant
4783 const char *g = "string";
4784 pcpcc = &g + (g ? g-g : 0);
4785 /* HPUX 7.0 cc rejects these. */
4787 ppc = (char**) pcpcc;
4788 pcpcc = (char const *const *) ppc;
4789 { /* SCO 3.2v4 cc rejects this. */
4791 char const *s = 0 ? (char *) 0 : (char const *) 0;
4796 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4798 const int *foo = &x[0];
4801 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4802 typedef const int *iptr;
4806 { /* AIX XL C 1.02.0.0 rejects this saying
4807 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4808 struct s { int j; const int *ap[3]; };
4809 struct s *b; b->j = 5;
4811 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4815 return !cs[0] && !zero.x;
4822 rm -f conftest.$ac_objext
4823 if { (ac_try="$ac_compile"
4825 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
4826 *) ac_try_echo
=$ac_try;;
4828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4829 (eval "$ac_compile") 2>conftest.er1
4831 grep -v '^ *+' conftest.er1
>conftest.err
4833 cat conftest.err
>&5
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); } && {
4836 test -z "$ac_c_werror_flag" ||
4837 test ! -s conftest.err
4838 } && test -s conftest.
$ac_objext; then
4841 echo "$as_me: failed program was:" >&5
4842 sed 's/^/| /' conftest.
$ac_ext >&5
4847 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4849 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4850 echo "${ECHO_T}$ac_cv_c_const" >&6; }
4851 if test $ac_cv_c_const = no
; then
4853 cat >>confdefs.h
<<\_ACEOF
4859 if test "$ac_cv_header_machine_endian_h" = "no" ; then
4860 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4861 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4862 if test "${ac_cv_c_bigendian+set}" = set; then
4863 echo $ECHO_N "(cached) $ECHO_C" >&6
4865 # See if sys/param.h defines the BYTE_ORDER macro.
4866 cat >conftest.
$ac_ext <<_ACEOF
4869 cat confdefs.h
>>conftest.
$ac_ext
4870 cat >>conftest.
$ac_ext <<_ACEOF
4871 /* end confdefs.h. */
4872 #include <sys/types.h>
4873 #include <sys/param.h>
4878 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4879 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4887 rm -f conftest.
$ac_objext
4888 if { (ac_try
="$ac_compile"
4890 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
4891 *) ac_try_echo=$ac_try;;
4893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4894 (eval "$ac_compile") 2>conftest.er1
4896 grep -v '^ *+' conftest.er1 >conftest.err
4898 cat conftest.err >&5
4899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900 (exit $ac_status); } && {
4901 test -z "$ac_c_werror_flag" ||
4902 test ! -s conftest.err
4903 } && test -s conftest.$ac_objext; then
4904 # It does; now see whether it defined to BIG_ENDIAN or not.
4905 cat >conftest.$ac_ext <<_ACEOF
4908 cat confdefs.h >>conftest.$ac_ext
4909 cat >>conftest.$ac_ext <<_ACEOF
4910 /* end confdefs.h. */
4911 #include <sys/types.h>
4912 #include <sys/param.h>
4917 #if BYTE_ORDER != BIG_ENDIAN
4925 rm -f conftest.$ac_objext
4926 if { (ac_try="$ac_compile"
4928 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
4929 *) ac_try_echo
=$ac_try;;
4931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4932 (eval "$ac_compile") 2>conftest.er1
4934 grep -v '^ *+' conftest.er1
>conftest.err
4936 cat conftest.err
>&5
4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 (exit $ac_status); } && {
4939 test -z "$ac_c_werror_flag" ||
4940 test ! -s conftest.err
4941 } && test -s conftest.
$ac_objext; then
4942 ac_cv_c_bigendian
=yes
4944 echo "$as_me: failed program was:" >&5
4945 sed 's/^/| /' conftest.
$ac_ext >&5
4947 ac_cv_c_bigendian
=no
4950 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4952 echo "$as_me: failed program was:" >&5
4953 sed 's/^/| /' conftest.
$ac_ext >&5
4955 # It does not; compile a test program.
4956 if test "$cross_compiling" = yes; then
4957 # try to guess the endianness by grepping values into an object file
4958 ac_cv_c_bigendian
=unknown
4959 cat >conftest.
$ac_ext <<_ACEOF
4962 cat confdefs.h
>>conftest.
$ac_ext
4963 cat >>conftest.
$ac_ext <<_ACEOF
4964 /* end confdefs.h. */
4965 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4966 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4967 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4968 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4969 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4970 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4974 _ascii (); _ebcdic ();
4979 rm -f conftest.
$ac_objext
4980 if { (ac_try
="$ac_compile"
4982 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
4983 *) ac_try_echo=$ac_try;;
4985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4986 (eval "$ac_compile") 2>conftest.er1
4988 grep -v '^ *+' conftest.er1 >conftest.err
4990 cat conftest.err >&5
4991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992 (exit $ac_status); } && {
4993 test -z "$ac_c_werror_flag" ||
4994 test ! -s conftest.err
4995 } && test -s conftest.$ac_objext; then
4996 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4997 ac_cv_c_bigendian=yes
4999 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5000 if test "$ac_cv_c_bigendian" = unknown; then
5001 ac_cv_c_bigendian=no
5003 # finding both strings is unlikely to happen, but who knows?
5004 ac_cv_c_bigendian=unknown
5008 echo "$as_me: failed program was:" >&5
5009 sed 's/^/| /' conftest.$ac_ext >&5
5014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5016 cat >conftest.$ac_ext <<_ACEOF
5019 cat confdefs.h >>conftest.$ac_ext
5020 cat >>conftest.$ac_ext <<_ACEOF
5021 /* end confdefs.h. */
5022 $ac_includes_default
5027 /* Are we little or big endian? From Harbison&Steele. */
5031 char c[sizeof (long int)];
5034 return u.c[sizeof (long int) - 1] == 1;
5040 rm -f conftest$ac_exeext
5041 if { (ac_try="$ac_link"
5043 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
5044 *) ac_try_echo
=$ac_try;;
5046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5047 (eval "$ac_link") 2>&5
5049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5051 { (case "(($ac_try" in
5052 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
5053 *) ac_try_echo=$ac_try;;
5055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5056 (eval "$ac_try") 2>&5
5058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059 (exit $ac_status); }; }; then
5060 ac_cv_c_bigendian=no
5062 echo "$as_me: program exited with status $ac_status" >&5
5063 echo "$as_me: failed program was:" >&5
5064 sed 's/^/| /' conftest.$ac_ext >&5
5067 ac_cv_c_bigendian=yes
5069 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5077 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5078 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
5079 case $ac_cv_c_bigendian in
5082 cat >>confdefs.h <<\_ACEOF
5083 #define WORDS_BIGENDIAN 1
5089 { { echo "$as_me:$LINENO: error: unknown endianness
5090 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
5091 echo "$as_me: error: unknown endianness
5092 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
5093 { (exit 1); exit 1; }; } ;;
5097 { echo "$as_me:$LINENO: checking for pid_t" >&5
5098 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
5099 if test "${ac_cv_type_pid_t+set}" = set; then
5100 echo $ECHO_N "(cached) $ECHO_C" >&6
5102 cat >conftest.$ac_ext <<_ACEOF
5105 cat confdefs.h >>conftest.$ac_ext
5106 cat >>conftest.$ac_ext <<_ACEOF
5107 /* end confdefs.h. */
5108 $ac_includes_default
5109 typedef pid_t ac__type_new_;
5113 if ((ac__type_new_ *) 0)
5115 if (sizeof (ac__type_new_))
5121 rm -f conftest.$ac_objext
5122 if { (ac_try="$ac_compile"
5124 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
5125 *) ac_try_echo
=$ac_try;;
5127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5128 (eval "$ac_compile") 2>conftest.er1
5130 grep -v '^ *+' conftest.er1
>conftest.err
5132 cat conftest.err
>&5
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); } && {
5135 test -z "$ac_c_werror_flag" ||
5136 test ! -s conftest.err
5137 } && test -s conftest.
$ac_objext; then
5138 ac_cv_type_pid_t
=yes
5140 echo "$as_me: failed program was:" >&5
5141 sed 's/^/| /' conftest.
$ac_ext >&5
5146 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5148 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5149 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
5150 if test $ac_cv_type_pid_t = yes; then
5154 cat >>confdefs.h
<<_ACEOF
5160 { echo "$as_me:$LINENO: checking for size_t" >&5
5161 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5162 if test "${ac_cv_type_size_t+set}" = set; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5165 cat >conftest.
$ac_ext <<_ACEOF
5168 cat confdefs.h
>>conftest.
$ac_ext
5169 cat >>conftest.
$ac_ext <<_ACEOF
5170 /* end confdefs.h. */
5171 $ac_includes_default
5172 typedef size_t ac__type_new_;
5176 if ((ac__type_new_ *) 0)
5178 if (sizeof (ac__type_new_))
5184 rm -f conftest.
$ac_objext
5185 if { (ac_try
="$ac_compile"
5187 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
5188 *) ac_try_echo=$ac_try;;
5190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5191 (eval "$ac_compile") 2>conftest.er1
5193 grep -v '^ *+' conftest.er1 >conftest.err
5195 cat conftest.err >&5
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); } && {
5198 test -z "$ac_c_werror_flag" ||
5199 test ! -s conftest.err
5200 } && test -s conftest.$ac_objext; then
5201 ac_cv_type_size_t=yes
5203 echo "$as_me: failed program was:" >&5
5204 sed 's/^/| /' conftest.$ac_ext >&5
5206 ac_cv_type_size_t=no
5209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5211 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5212 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5213 if test $ac_cv_type_size_t = yes; then
5217 cat >>confdefs.h <<_ACEOF
5218 #define size_t unsigned int
5223 { echo "$as_me:$LINENO: checking for short" >&5
5224 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
5225 if test "${ac_cv_type_short+set}" = set; then
5226 echo $ECHO_N "(cached) $ECHO_C" >&6
5228 cat >conftest.$ac_ext <<_ACEOF
5231 cat confdefs.h >>conftest.$ac_ext
5232 cat >>conftest.$ac_ext <<_ACEOF
5233 /* end confdefs.h. */
5234 $ac_includes_default
5235 typedef short ac__type_new_;
5239 if ((ac__type_new_ *) 0)
5241 if (sizeof (ac__type_new_))
5247 rm -f conftest.$ac_objext
5248 if { (ac_try="$ac_compile"
5250 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
5251 *) ac_try_echo
=$ac_try;;
5253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5254 (eval "$ac_compile") 2>conftest.er1
5256 grep -v '^ *+' conftest.er1
>conftest.err
5258 cat conftest.err
>&5
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); } && {
5261 test -z "$ac_c_werror_flag" ||
5262 test ! -s conftest.err
5263 } && test -s conftest.
$ac_objext; then
5264 ac_cv_type_short
=yes
5266 echo "$as_me: failed program was:" >&5
5267 sed 's/^/| /' conftest.
$ac_ext >&5
5272 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5274 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5275 echo "${ECHO_T}$ac_cv_type_short" >&6; }
5277 # The cast to long int works around a bug in the HP C Compiler
5278 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5279 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5280 # This bug is HP SR number 8606223364.
5281 { echo "$as_me:$LINENO: checking size of short" >&5
5282 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
5283 if test "${ac_cv_sizeof_short+set}" = set; then
5284 echo $ECHO_N "(cached) $ECHO_C" >&6
5286 if test "$cross_compiling" = yes; then
5287 # Depending upon the size, compute the lo and hi bounds.
5288 cat >conftest.
$ac_ext <<_ACEOF
5291 cat confdefs.h
>>conftest.
$ac_ext
5292 cat >>conftest.
$ac_ext <<_ACEOF
5293 /* end confdefs.h. */
5294 $ac_includes_default
5295 typedef short ac__type_sizeof_;
5299 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5306 rm -f conftest.
$ac_objext
5307 if { (ac_try
="$ac_compile"
5309 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
5310 *) ac_try_echo=$ac_try;;
5312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5313 (eval "$ac_compile") 2>conftest.er1
5315 grep -v '^ *+' conftest.er1 >conftest.err
5317 cat conftest.err >&5
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); } && {
5320 test -z "$ac_c_werror_flag" ||
5321 test ! -s conftest.err
5322 } && test -s conftest.$ac_objext; then
5325 cat >conftest.$ac_ext <<_ACEOF
5328 cat confdefs.h >>conftest.$ac_ext
5329 cat >>conftest.$ac_ext <<_ACEOF
5330 /* end confdefs.h. */
5331 $ac_includes_default
5332 typedef short ac__type_sizeof_;
5336 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5343 rm -f conftest.$ac_objext
5344 if { (ac_try="$ac_compile"
5346 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
5347 *) ac_try_echo
=$ac_try;;
5349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5350 (eval "$ac_compile") 2>conftest.er1
5352 grep -v '^ *+' conftest.er1
>conftest.err
5354 cat conftest.err
>&5
5355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356 (exit $ac_status); } && {
5357 test -z "$ac_c_werror_flag" ||
5358 test ! -s conftest.err
5359 } && test -s conftest.
$ac_objext; then
5360 ac_hi
=$ac_mid; break
5362 echo "$as_me: failed program was:" >&5
5363 sed 's/^/| /' conftest.
$ac_ext >&5
5365 ac_lo
=`expr $ac_mid + 1`
5366 if test $ac_lo -le $ac_mid; then
5370 ac_mid
=`expr 2 '*' $ac_mid + 1`
5373 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5376 echo "$as_me: failed program was:" >&5
5377 sed 's/^/| /' conftest.
$ac_ext >&5
5379 cat >conftest.
$ac_ext <<_ACEOF
5382 cat confdefs.h
>>conftest.
$ac_ext
5383 cat >>conftest.
$ac_ext <<_ACEOF
5384 /* end confdefs.h. */
5385 $ac_includes_default
5386 typedef short ac__type_sizeof_;
5390 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5397 rm -f conftest.
$ac_objext
5398 if { (ac_try
="$ac_compile"
5400 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
5401 *) ac_try_echo=$ac_try;;
5403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5404 (eval "$ac_compile") 2>conftest.er1
5406 grep -v '^ *+' conftest.er1 >conftest.err
5408 cat conftest.err >&5
5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); } && {
5411 test -z "$ac_c_werror_flag" ||
5412 test ! -s conftest.err
5413 } && test -s conftest.$ac_objext; then
5416 cat >conftest.$ac_ext <<_ACEOF
5419 cat confdefs.h >>conftest.$ac_ext
5420 cat >>conftest.$ac_ext <<_ACEOF
5421 /* end confdefs.h. */
5422 $ac_includes_default
5423 typedef short ac__type_sizeof_;
5427 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5434 rm -f conftest.$ac_objext
5435 if { (ac_try="$ac_compile"
5437 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
5438 *) ac_try_echo
=$ac_try;;
5440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5441 (eval "$ac_compile") 2>conftest.er1
5443 grep -v '^ *+' conftest.er1
>conftest.err
5445 cat conftest.err
>&5
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); } && {
5448 test -z "$ac_c_werror_flag" ||
5449 test ! -s conftest.err
5450 } && test -s conftest.
$ac_objext; then
5451 ac_lo
=$ac_mid; break
5453 echo "$as_me: failed program was:" >&5
5454 sed 's/^/| /' conftest.
$ac_ext >&5
5456 ac_hi
=`expr '(' $ac_mid ')' - 1`
5457 if test $ac_mid -le $ac_hi; then
5461 ac_mid
=`expr 2 '*' $ac_mid`
5464 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5467 echo "$as_me: failed program was:" >&5
5468 sed 's/^/| /' conftest.
$ac_ext >&5
5473 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5476 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5477 # Binary search between lo and hi bounds.
5478 while test "x$ac_lo" != "x$ac_hi"; do
5479 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5480 cat >conftest.
$ac_ext <<_ACEOF
5483 cat confdefs.h
>>conftest.
$ac_ext
5484 cat >>conftest.
$ac_ext <<_ACEOF
5485 /* end confdefs.h. */
5486 $ac_includes_default
5487 typedef short ac__type_sizeof_;
5491 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5498 rm -f conftest.
$ac_objext
5499 if { (ac_try
="$ac_compile"
5501 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
5502 *) ac_try_echo=$ac_try;;
5504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5505 (eval "$ac_compile") 2>conftest.er1
5507 grep -v '^ *+' conftest.er1 >conftest.err
5509 cat conftest.err >&5
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); } && {
5512 test -z "$ac_c_werror_flag" ||
5513 test ! -s conftest.err
5514 } && test -s conftest.$ac_objext; then
5517 echo "$as_me: failed program was:" >&5
5518 sed 's/^/| /' conftest.$ac_ext >&5
5520 ac_lo=`expr '(' $ac_mid ')' + 1`
5523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5526 ?*) ac_cv_sizeof_short=$ac_lo;;
5527 '') if test "$ac_cv_type_short" = yes; then
5528 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
5529 See \`config.log
' for more details." >&5
5530 echo "$as_me: error: cannot compute sizeof (short)
5531 See \`config.log' for more details.
" >&2;}
5532 { (exit 77); exit 77; }; }
5534 ac_cv_sizeof_short=0
5538 cat >conftest.$ac_ext <<_ACEOF
5541 cat confdefs.h >>conftest.$ac_ext
5542 cat >>conftest.$ac_ext <<_ACEOF
5543 /* end confdefs.h. */
5544 $ac_includes_default
5545 typedef short ac__type_sizeof_;
5546 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5547 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5554 FILE *f = fopen ("conftest.val
", "w
");
5557 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5559 long int i = longval ();
5560 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5562 fprintf (f, "%ld
\n", i);
5566 unsigned long int i = ulongval ();
5567 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5569 fprintf (f, "%lu
\n", i);
5571 return ferror (f) || fclose (f) != 0;
5577 rm -f conftest$ac_exeext
5578 if { (ac_try="$ac_link"
5580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5581 *) ac_try_echo=$ac_try;;
5583 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5584 (eval "$ac_link") 2>&5
5586 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5587 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5588 { (case "(($ac_try" in
5589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5590 *) ac_try_echo=$ac_try;;
5592 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5593 (eval "$ac_try") 2>&5
5595 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5596 (exit $ac_status); }; }; then
5597 ac_cv_sizeof_short=`cat conftest.val`
5599 echo "$as_me: program exited with status
$ac_status" >&5
5600 echo "$as_me: failed program was
:" >&5
5601 sed 's/^/| /' conftest.$ac_ext >&5
5604 if test "$ac_cv_type_short" = yes; then
5605 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(short
)
5606 See \
`config.log' for more details." >&5
5607 echo "$as_me: error: cannot compute sizeof (short)
5608 See \`config.log
' for more details." >&2;}
5609 { (exit 77); exit 77; }; }
5611 ac_cv_sizeof_short=0
5614 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5618 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5619 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
5623 cat >>confdefs.h <<_ACEOF
5624 #define SIZEOF_SHORT $ac_cv_sizeof_short
5628 { echo "$as_me:$LINENO: checking for int" >&5
5629 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
5630 if test "${ac_cv_type_int+set}" = set; then
5631 echo $ECHO_N "(cached) $ECHO_C" >&6
5633 cat >conftest.$ac_ext <<_ACEOF
5636 cat confdefs.h >>conftest.$ac_ext
5637 cat >>conftest.$ac_ext <<_ACEOF
5638 /* end confdefs.h. */
5639 $ac_includes_default
5640 typedef int ac__type_new_;
5644 if ((ac__type_new_ *) 0)
5646 if (sizeof (ac__type_new_))
5652 rm -f conftest.$ac_objext
5653 if { (ac_try="$ac_compile"
5655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5656 *) ac_try_echo=$ac_try;;
5658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5659 (eval "$ac_compile") 2>conftest.er1
5661 grep -v '^
*+' conftest.er1 >conftest.err
5663 cat conftest.err >&5
5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665 (exit $ac_status); } && {
5666 test -z "$ac_c_werror_flag" ||
5667 test ! -s conftest.err
5668 } && test -s conftest.$ac_objext; then
5671 echo "$as_me: failed program was:" >&5
5672 sed 's
/^
/| /' conftest.$ac_ext >&5
5677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5679 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5680 echo "${ECHO_T}$ac_cv_type_int" >&6; }
5682 # The cast to long int works around a bug in the HP C Compiler
5683 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5684 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5685 # This bug is HP SR number 8606223364.
5686 { echo "$as_me:$LINENO: checking size of int" >&5
5687 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
5688 if test "${ac_cv_sizeof_int+set}" = set; then
5689 echo $ECHO_N "(cached) $ECHO_C" >&6
5691 if test "$cross_compiling" = yes; then
5692 # Depending upon the size, compute the lo and hi bounds.
5693 cat >conftest.
$ac_ext <<_ACEOF
5696 cat confdefs.h
>>conftest.
$ac_ext
5697 cat >>conftest.
$ac_ext <<_ACEOF
5698 /* end confdefs.h. */
5699 $ac_includes_default
5700 typedef int ac__type_sizeof_;
5704 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5711 rm -f conftest.
$ac_objext
5712 if { (ac_try
="$ac_compile"
5714 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
5715 *) ac_try_echo=$ac_try;;
5717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5718 (eval "$ac_compile") 2>conftest.er1
5720 grep -v '^ *+' conftest.er1 >conftest.err
5722 cat conftest.err >&5
5723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724 (exit $ac_status); } && {
5725 test -z "$ac_c_werror_flag" ||
5726 test ! -s conftest.err
5727 } && test -s conftest.$ac_objext; then
5730 cat >conftest.$ac_ext <<_ACEOF
5733 cat confdefs.h >>conftest.$ac_ext
5734 cat >>conftest.$ac_ext <<_ACEOF
5735 /* end confdefs.h. */
5736 $ac_includes_default
5737 typedef int ac__type_sizeof_;
5741 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5748 rm -f conftest.$ac_objext
5749 if { (ac_try="$ac_compile"
5751 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
5752 *) ac_try_echo
=$ac_try;;
5754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5755 (eval "$ac_compile") 2>conftest.er1
5757 grep -v '^ *+' conftest.er1
>conftest.err
5759 cat conftest.err
>&5
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); } && {
5762 test -z "$ac_c_werror_flag" ||
5763 test ! -s conftest.err
5764 } && test -s conftest.
$ac_objext; then
5765 ac_hi
=$ac_mid; break
5767 echo "$as_me: failed program was:" >&5
5768 sed 's/^/| /' conftest.
$ac_ext >&5
5770 ac_lo
=`expr $ac_mid + 1`
5771 if test $ac_lo -le $ac_mid; then
5775 ac_mid
=`expr 2 '*' $ac_mid + 1`
5778 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5781 echo "$as_me: failed program was:" >&5
5782 sed 's/^/| /' conftest.
$ac_ext >&5
5784 cat >conftest.
$ac_ext <<_ACEOF
5787 cat confdefs.h
>>conftest.
$ac_ext
5788 cat >>conftest.
$ac_ext <<_ACEOF
5789 /* end confdefs.h. */
5790 $ac_includes_default
5791 typedef int ac__type_sizeof_;
5795 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5802 rm -f conftest.
$ac_objext
5803 if { (ac_try
="$ac_compile"
5805 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
5806 *) ac_try_echo=$ac_try;;
5808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5809 (eval "$ac_compile") 2>conftest.er1
5811 grep -v '^ *+' conftest.er1 >conftest.err
5813 cat conftest.err >&5
5814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815 (exit $ac_status); } && {
5816 test -z "$ac_c_werror_flag" ||
5817 test ! -s conftest.err
5818 } && test -s conftest.$ac_objext; then
5821 cat >conftest.$ac_ext <<_ACEOF
5824 cat confdefs.h >>conftest.$ac_ext
5825 cat >>conftest.$ac_ext <<_ACEOF
5826 /* end confdefs.h. */
5827 $ac_includes_default
5828 typedef int ac__type_sizeof_;
5832 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5839 rm -f conftest.$ac_objext
5840 if { (ac_try="$ac_compile"
5842 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
5843 *) ac_try_echo
=$ac_try;;
5845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5846 (eval "$ac_compile") 2>conftest.er1
5848 grep -v '^ *+' conftest.er1
>conftest.err
5850 cat conftest.err
>&5
5851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852 (exit $ac_status); } && {
5853 test -z "$ac_c_werror_flag" ||
5854 test ! -s conftest.err
5855 } && test -s conftest.
$ac_objext; then
5856 ac_lo
=$ac_mid; break
5858 echo "$as_me: failed program was:" >&5
5859 sed 's/^/| /' conftest.
$ac_ext >&5
5861 ac_hi
=`expr '(' $ac_mid ')' - 1`
5862 if test $ac_mid -le $ac_hi; then
5866 ac_mid
=`expr 2 '*' $ac_mid`
5869 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5872 echo "$as_me: failed program was:" >&5
5873 sed 's/^/| /' conftest.
$ac_ext >&5
5878 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5881 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5882 # Binary search between lo and hi bounds.
5883 while test "x$ac_lo" != "x$ac_hi"; do
5884 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5885 cat >conftest.
$ac_ext <<_ACEOF
5888 cat confdefs.h
>>conftest.
$ac_ext
5889 cat >>conftest.
$ac_ext <<_ACEOF
5890 /* end confdefs.h. */
5891 $ac_includes_default
5892 typedef int ac__type_sizeof_;
5896 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5903 rm -f conftest.
$ac_objext
5904 if { (ac_try
="$ac_compile"
5906 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
5907 *) ac_try_echo=$ac_try;;
5909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5910 (eval "$ac_compile") 2>conftest.er1
5912 grep -v '^ *+' conftest.er1 >conftest.err
5914 cat conftest.err >&5
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); } && {
5917 test -z "$ac_c_werror_flag" ||
5918 test ! -s conftest.err
5919 } && test -s conftest.$ac_objext; then
5922 echo "$as_me: failed program was:" >&5
5923 sed 's/^/| /' conftest.$ac_ext >&5
5925 ac_lo=`expr '(' $ac_mid ')' + 1`
5928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5931 ?*) ac_cv_sizeof_int=$ac_lo;;
5932 '') if test "$ac_cv_type_int" = yes; then
5933 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
5934 See \`config.log
' for more details." >&5
5935 echo "$as_me: error: cannot compute sizeof (int)
5936 See \`config.log' for more details.
" >&2;}
5937 { (exit 77); exit 77; }; }
5943 cat >conftest.$ac_ext <<_ACEOF
5946 cat confdefs.h >>conftest.$ac_ext
5947 cat >>conftest.$ac_ext <<_ACEOF
5948 /* end confdefs.h. */
5949 $ac_includes_default
5950 typedef int ac__type_sizeof_;
5951 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5952 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5959 FILE *f = fopen ("conftest.val
", "w
");
5962 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5964 long int i = longval ();
5965 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5967 fprintf (f, "%ld
\n", i);
5971 unsigned long int i = ulongval ();
5972 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5974 fprintf (f, "%lu
\n", i);
5976 return ferror (f) || fclose (f) != 0;
5982 rm -f conftest$ac_exeext
5983 if { (ac_try="$ac_link"
5985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5986 *) ac_try_echo=$ac_try;;
5988 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5989 (eval "$ac_link") 2>&5
5991 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5992 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5993 { (case "(($ac_try" in
5994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5995 *) ac_try_echo=$ac_try;;
5997 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5998 (eval "$ac_try") 2>&5
6000 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6001 (exit $ac_status); }; }; then
6002 ac_cv_sizeof_int=`cat conftest.val`
6004 echo "$as_me: program exited with status
$ac_status" >&5
6005 echo "$as_me: failed program was
:" >&5
6006 sed 's/^/| /' conftest.$ac_ext >&5
6009 if test "$ac_cv_type_int" = yes; then
6010 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(int
)
6011 See \
`config.log' for more details." >&5
6012 echo "$as_me: error: cannot compute sizeof (int)
6013 See \`config.log
' for more details." >&2;}
6014 { (exit 77); exit 77; }; }
6019 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6023 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6024 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
6028 cat >>confdefs.h <<_ACEOF
6029 #define SIZEOF_INT $ac_cv_sizeof_int
6033 { echo "$as_me:$LINENO: checking for long" >&5
6034 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
6035 if test "${ac_cv_type_long+set}" = set; then
6036 echo $ECHO_N "(cached) $ECHO_C" >&6
6038 cat >conftest.$ac_ext <<_ACEOF
6041 cat confdefs.h >>conftest.$ac_ext
6042 cat >>conftest.$ac_ext <<_ACEOF
6043 /* end confdefs.h. */
6044 $ac_includes_default
6045 typedef long ac__type_new_;
6049 if ((ac__type_new_ *) 0)
6051 if (sizeof (ac__type_new_))
6057 rm -f conftest.$ac_objext
6058 if { (ac_try="$ac_compile"
6060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6061 *) ac_try_echo=$ac_try;;
6063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6064 (eval "$ac_compile") 2>conftest.er1
6066 grep -v '^
*+' conftest.er1 >conftest.err
6068 cat conftest.err >&5
6069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070 (exit $ac_status); } && {
6071 test -z "$ac_c_werror_flag" ||
6072 test ! -s conftest.err
6073 } && test -s conftest.$ac_objext; then
6076 echo "$as_me: failed program was:" >&5
6077 sed 's
/^
/| /' conftest.$ac_ext >&5
6082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6084 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6085 echo "${ECHO_T}$ac_cv_type_long" >&6; }
6087 # The cast to long int works around a bug in the HP C Compiler
6088 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6089 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6090 # This bug is HP SR number 8606223364.
6091 { echo "$as_me:$LINENO: checking size of long" >&5
6092 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
6093 if test "${ac_cv_sizeof_long+set}" = set; then
6094 echo $ECHO_N "(cached) $ECHO_C" >&6
6096 if test "$cross_compiling" = yes; then
6097 # Depending upon the size, compute the lo and hi bounds.
6098 cat >conftest.
$ac_ext <<_ACEOF
6101 cat confdefs.h
>>conftest.
$ac_ext
6102 cat >>conftest.
$ac_ext <<_ACEOF
6103 /* end confdefs.h. */
6104 $ac_includes_default
6105 typedef long ac__type_sizeof_;
6109 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6116 rm -f conftest.
$ac_objext
6117 if { (ac_try
="$ac_compile"
6119 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
6120 *) ac_try_echo=$ac_try;;
6122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6123 (eval "$ac_compile") 2>conftest.er1
6125 grep -v '^ *+' conftest.er1 >conftest.err
6127 cat conftest.err >&5
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); } && {
6130 test -z "$ac_c_werror_flag" ||
6131 test ! -s conftest.err
6132 } && test -s conftest.$ac_objext; then
6135 cat >conftest.$ac_ext <<_ACEOF
6138 cat confdefs.h >>conftest.$ac_ext
6139 cat >>conftest.$ac_ext <<_ACEOF
6140 /* end confdefs.h. */
6141 $ac_includes_default
6142 typedef long ac__type_sizeof_;
6146 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6153 rm -f conftest.$ac_objext
6154 if { (ac_try="$ac_compile"
6156 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
6157 *) ac_try_echo
=$ac_try;;
6159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6160 (eval "$ac_compile") 2>conftest.er1
6162 grep -v '^ *+' conftest.er1
>conftest.err
6164 cat conftest.err
>&5
6165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166 (exit $ac_status); } && {
6167 test -z "$ac_c_werror_flag" ||
6168 test ! -s conftest.err
6169 } && test -s conftest.
$ac_objext; then
6170 ac_hi
=$ac_mid; break
6172 echo "$as_me: failed program was:" >&5
6173 sed 's/^/| /' conftest.
$ac_ext >&5
6175 ac_lo
=`expr $ac_mid + 1`
6176 if test $ac_lo -le $ac_mid; then
6180 ac_mid
=`expr 2 '*' $ac_mid + 1`
6183 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6186 echo "$as_me: failed program was:" >&5
6187 sed 's/^/| /' conftest.
$ac_ext >&5
6189 cat >conftest.
$ac_ext <<_ACEOF
6192 cat confdefs.h
>>conftest.
$ac_ext
6193 cat >>conftest.
$ac_ext <<_ACEOF
6194 /* end confdefs.h. */
6195 $ac_includes_default
6196 typedef long ac__type_sizeof_;
6200 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6207 rm -f conftest.
$ac_objext
6208 if { (ac_try
="$ac_compile"
6210 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
6211 *) ac_try_echo=$ac_try;;
6213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6214 (eval "$ac_compile") 2>conftest.er1
6216 grep -v '^ *+' conftest.er1 >conftest.err
6218 cat conftest.err >&5
6219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220 (exit $ac_status); } && {
6221 test -z "$ac_c_werror_flag" ||
6222 test ! -s conftest.err
6223 } && test -s conftest.$ac_objext; then
6226 cat >conftest.$ac_ext <<_ACEOF
6229 cat confdefs.h >>conftest.$ac_ext
6230 cat >>conftest.$ac_ext <<_ACEOF
6231 /* end confdefs.h. */
6232 $ac_includes_default
6233 typedef long ac__type_sizeof_;
6237 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6244 rm -f conftest.$ac_objext
6245 if { (ac_try="$ac_compile"
6247 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
6248 *) ac_try_echo
=$ac_try;;
6250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6251 (eval "$ac_compile") 2>conftest.er1
6253 grep -v '^ *+' conftest.er1
>conftest.err
6255 cat conftest.err
>&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); } && {
6258 test -z "$ac_c_werror_flag" ||
6259 test ! -s conftest.err
6260 } && test -s conftest.
$ac_objext; then
6261 ac_lo
=$ac_mid; break
6263 echo "$as_me: failed program was:" >&5
6264 sed 's/^/| /' conftest.
$ac_ext >&5
6266 ac_hi
=`expr '(' $ac_mid ')' - 1`
6267 if test $ac_mid -le $ac_hi; then
6271 ac_mid
=`expr 2 '*' $ac_mid`
6274 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6277 echo "$as_me: failed program was:" >&5
6278 sed 's/^/| /' conftest.
$ac_ext >&5
6283 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6286 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6287 # Binary search between lo and hi bounds.
6288 while test "x$ac_lo" != "x$ac_hi"; do
6289 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6290 cat >conftest.
$ac_ext <<_ACEOF
6293 cat confdefs.h
>>conftest.
$ac_ext
6294 cat >>conftest.
$ac_ext <<_ACEOF
6295 /* end confdefs.h. */
6296 $ac_includes_default
6297 typedef long ac__type_sizeof_;
6301 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6308 rm -f conftest.
$ac_objext
6309 if { (ac_try
="$ac_compile"
6311 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
6312 *) ac_try_echo=$ac_try;;
6314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6315 (eval "$ac_compile") 2>conftest.er1
6317 grep -v '^ *+' conftest.er1 >conftest.err
6319 cat conftest.err >&5
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); } && {
6322 test -z "$ac_c_werror_flag" ||
6323 test ! -s conftest.err
6324 } && test -s conftest.$ac_objext; then
6327 echo "$as_me: failed program was:" >&5
6328 sed 's/^/| /' conftest.$ac_ext >&5
6330 ac_lo=`expr '(' $ac_mid ')' + 1`
6333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6336 ?*) ac_cv_sizeof_long=$ac_lo;;
6337 '') if test "$ac_cv_type_long" = yes; then
6338 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6339 See \`config.log
' for more details." >&5
6340 echo "$as_me: error: cannot compute sizeof (long)
6341 See \`config.log' for more details.
" >&2;}
6342 { (exit 77); exit 77; }; }
6348 cat >conftest.$ac_ext <<_ACEOF
6351 cat confdefs.h >>conftest.$ac_ext
6352 cat >>conftest.$ac_ext <<_ACEOF
6353 /* end confdefs.h. */
6354 $ac_includes_default
6355 typedef long ac__type_sizeof_;
6356 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6357 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6364 FILE *f = fopen ("conftest.val
", "w
");
6367 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6369 long int i = longval ();
6370 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6372 fprintf (f, "%ld
\n", i);
6376 unsigned long int i = ulongval ();
6377 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6379 fprintf (f, "%lu
\n", i);
6381 return ferror (f) || fclose (f) != 0;
6387 rm -f conftest$ac_exeext
6388 if { (ac_try="$ac_link"
6390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6391 *) ac_try_echo=$ac_try;;
6393 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6394 (eval "$ac_link") 2>&5
6396 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6397 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6398 { (case "(($ac_try" in
6399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6400 *) ac_try_echo=$ac_try;;
6402 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6403 (eval "$ac_try") 2>&5
6405 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6406 (exit $ac_status); }; }; then
6407 ac_cv_sizeof_long=`cat conftest.val`
6409 echo "$as_me: program exited with status
$ac_status" >&5
6410 echo "$as_me: failed program was
:" >&5
6411 sed 's/^/| /' conftest.$ac_ext >&5
6414 if test "$ac_cv_type_long" = yes; then
6415 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long
)
6416 See \
`config.log' for more details." >&5
6417 echo "$as_me: error: cannot compute sizeof (long)
6418 See \`config.log
' for more details." >&2;}
6419 { (exit 77); exit 77; }; }
6424 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6428 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6429 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
6433 cat >>confdefs.h <<_ACEOF
6434 #define SIZEOF_LONG $ac_cv_sizeof_long
6438 { echo "$as_me:$LINENO: checking for long long" >&5
6439 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
6440 if test "${ac_cv_type_long_long+set}" = set; then
6441 echo $ECHO_N "(cached) $ECHO_C" >&6
6443 cat >conftest.$ac_ext <<_ACEOF
6446 cat confdefs.h >>conftest.$ac_ext
6447 cat >>conftest.$ac_ext <<_ACEOF
6448 /* end confdefs.h. */
6449 $ac_includes_default
6450 typedef long long ac__type_new_;
6454 if ((ac__type_new_ *) 0)
6456 if (sizeof (ac__type_new_))
6462 rm -f conftest.$ac_objext
6463 if { (ac_try="$ac_compile"
6465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6466 *) ac_try_echo=$ac_try;;
6468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6469 (eval "$ac_compile") 2>conftest.er1
6471 grep -v '^
*+' conftest.er1 >conftest.err
6473 cat conftest.err >&5
6474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475 (exit $ac_status); } && {
6476 test -z "$ac_c_werror_flag" ||
6477 test ! -s conftest.err
6478 } && test -s conftest.$ac_objext; then
6479 ac_cv_type_long_long=yes
6481 echo "$as_me: failed program was:" >&5
6482 sed 's
/^
/| /' conftest.$ac_ext >&5
6484 ac_cv_type_long_long=no
6487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6489 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6490 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
6492 # The cast to long int works around a bug in the HP C Compiler
6493 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6494 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6495 # This bug is HP SR number 8606223364.
6496 { echo "$as_me:$LINENO: checking size of long long" >&5
6497 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
6498 if test "${ac_cv_sizeof_long_long+set}" = set; then
6499 echo $ECHO_N "(cached) $ECHO_C" >&6
6501 if test "$cross_compiling" = yes; then
6502 # Depending upon the size, compute the lo and hi bounds.
6503 cat >conftest.
$ac_ext <<_ACEOF
6506 cat confdefs.h
>>conftest.
$ac_ext
6507 cat >>conftest.
$ac_ext <<_ACEOF
6508 /* end confdefs.h. */
6509 $ac_includes_default
6510 typedef long long ac__type_sizeof_;
6514 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6521 rm -f conftest.
$ac_objext
6522 if { (ac_try
="$ac_compile"
6524 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
6525 *) ac_try_echo=$ac_try;;
6527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6528 (eval "$ac_compile") 2>conftest.er1
6530 grep -v '^ *+' conftest.er1 >conftest.err
6532 cat conftest.err >&5
6533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534 (exit $ac_status); } && {
6535 test -z "$ac_c_werror_flag" ||
6536 test ! -s conftest.err
6537 } && test -s conftest.$ac_objext; then
6540 cat >conftest.$ac_ext <<_ACEOF
6543 cat confdefs.h >>conftest.$ac_ext
6544 cat >>conftest.$ac_ext <<_ACEOF
6545 /* end confdefs.h. */
6546 $ac_includes_default
6547 typedef long long ac__type_sizeof_;
6551 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6558 rm -f conftest.$ac_objext
6559 if { (ac_try="$ac_compile"
6561 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
6562 *) ac_try_echo
=$ac_try;;
6564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6565 (eval "$ac_compile") 2>conftest.er1
6567 grep -v '^ *+' conftest.er1
>conftest.err
6569 cat conftest.err
>&5
6570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571 (exit $ac_status); } && {
6572 test -z "$ac_c_werror_flag" ||
6573 test ! -s conftest.err
6574 } && test -s conftest.
$ac_objext; then
6575 ac_hi
=$ac_mid; break
6577 echo "$as_me: failed program was:" >&5
6578 sed 's/^/| /' conftest.
$ac_ext >&5
6580 ac_lo
=`expr $ac_mid + 1`
6581 if test $ac_lo -le $ac_mid; then
6585 ac_mid
=`expr 2 '*' $ac_mid + 1`
6588 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6591 echo "$as_me: failed program was:" >&5
6592 sed 's/^/| /' conftest.
$ac_ext >&5
6594 cat >conftest.
$ac_ext <<_ACEOF
6597 cat confdefs.h
>>conftest.
$ac_ext
6598 cat >>conftest.
$ac_ext <<_ACEOF
6599 /* end confdefs.h. */
6600 $ac_includes_default
6601 typedef long long ac__type_sizeof_;
6605 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6612 rm -f conftest.
$ac_objext
6613 if { (ac_try
="$ac_compile"
6615 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
6616 *) ac_try_echo=$ac_try;;
6618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6619 (eval "$ac_compile") 2>conftest.er1
6621 grep -v '^ *+' conftest.er1 >conftest.err
6623 cat conftest.err >&5
6624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625 (exit $ac_status); } && {
6626 test -z "$ac_c_werror_flag" ||
6627 test ! -s conftest.err
6628 } && test -s conftest.$ac_objext; then
6631 cat >conftest.$ac_ext <<_ACEOF
6634 cat confdefs.h >>conftest.$ac_ext
6635 cat >>conftest.$ac_ext <<_ACEOF
6636 /* end confdefs.h. */
6637 $ac_includes_default
6638 typedef long long ac__type_sizeof_;
6642 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6649 rm -f conftest.$ac_objext
6650 if { (ac_try="$ac_compile"
6652 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
6653 *) ac_try_echo
=$ac_try;;
6655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6656 (eval "$ac_compile") 2>conftest.er1
6658 grep -v '^ *+' conftest.er1
>conftest.err
6660 cat conftest.err
>&5
6661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662 (exit $ac_status); } && {
6663 test -z "$ac_c_werror_flag" ||
6664 test ! -s conftest.err
6665 } && test -s conftest.
$ac_objext; then
6666 ac_lo
=$ac_mid; break
6668 echo "$as_me: failed program was:" >&5
6669 sed 's/^/| /' conftest.
$ac_ext >&5
6671 ac_hi
=`expr '(' $ac_mid ')' - 1`
6672 if test $ac_mid -le $ac_hi; then
6676 ac_mid
=`expr 2 '*' $ac_mid`
6679 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6682 echo "$as_me: failed program was:" >&5
6683 sed 's/^/| /' conftest.
$ac_ext >&5
6688 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6691 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6692 # Binary search between lo and hi bounds.
6693 while test "x$ac_lo" != "x$ac_hi"; do
6694 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6695 cat >conftest.
$ac_ext <<_ACEOF
6698 cat confdefs.h
>>conftest.
$ac_ext
6699 cat >>conftest.
$ac_ext <<_ACEOF
6700 /* end confdefs.h. */
6701 $ac_includes_default
6702 typedef long long ac__type_sizeof_;
6706 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6713 rm -f conftest.
$ac_objext
6714 if { (ac_try
="$ac_compile"
6716 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
6717 *) ac_try_echo=$ac_try;;
6719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6720 (eval "$ac_compile") 2>conftest.er1
6722 grep -v '^ *+' conftest.er1 >conftest.err
6724 cat conftest.err >&5
6725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726 (exit $ac_status); } && {
6727 test -z "$ac_c_werror_flag" ||
6728 test ! -s conftest.err
6729 } && test -s conftest.$ac_objext; then
6732 echo "$as_me: failed program was:" >&5
6733 sed 's/^/| /' conftest.$ac_ext >&5
6735 ac_lo=`expr '(' $ac_mid ')' + 1`
6738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6741 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6742 '') if test "$ac_cv_type_long_long" = yes; then
6743 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
6744 See \`config.log
' for more details." >&5
6745 echo "$as_me: error: cannot compute sizeof (long long)
6746 See \`config.log' for more details.
" >&2;}
6747 { (exit 77); exit 77; }; }
6749 ac_cv_sizeof_long_long=0
6753 cat >conftest.$ac_ext <<_ACEOF
6756 cat confdefs.h >>conftest.$ac_ext
6757 cat >>conftest.$ac_ext <<_ACEOF
6758 /* end confdefs.h. */
6759 $ac_includes_default
6760 typedef long long ac__type_sizeof_;
6761 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6762 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6769 FILE *f = fopen ("conftest.val
", "w
");
6772 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6774 long int i = longval ();
6775 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6777 fprintf (f, "%ld
\n", i);
6781 unsigned long int i = ulongval ();
6782 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6784 fprintf (f, "%lu
\n", i);
6786 return ferror (f) || fclose (f) != 0;
6792 rm -f conftest$ac_exeext
6793 if { (ac_try="$ac_link"
6795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6796 *) ac_try_echo=$ac_try;;
6798 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6799 (eval "$ac_link") 2>&5
6801 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6802 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6803 { (case "(($ac_try" in
6804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6805 *) ac_try_echo=$ac_try;;
6807 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6808 (eval "$ac_try") 2>&5
6810 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6811 (exit $ac_status); }; }; then
6812 ac_cv_sizeof_long_long=`cat conftest.val`
6814 echo "$as_me: program exited with status
$ac_status" >&5
6815 echo "$as_me: failed program was
:" >&5
6816 sed 's/^/| /' conftest.$ac_ext >&5
6819 if test "$ac_cv_type_long_long" = yes; then
6820 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long long
)
6821 See \
`config.log' for more details." >&5
6822 echo "$as_me: error: cannot compute sizeof (long long)
6823 See \`config.log
' for more details." >&2;}
6824 { (exit 77); exit 77; }; }
6826 ac_cv_sizeof_long_long=0
6829 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6833 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6834 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
6838 cat >>confdefs.h <<_ACEOF
6839 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6845 { echo "$as_me:$LINENO: checking the system's memory page size
" >&5
6846 echo $ECHO_N "checking the system
's memory page size... $ECHO_C" >&6; }
6848 if test "$cross_compiling" = yes; then
6849 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6850 See \`config.log' for more details.
" >&5
6851 echo "$as_me: error
: cannot run
test program
while cross compiling
6852 See \
`config.log' for more details." >&2;}
6853 { (exit 1); exit 1; }; }
6855 cat >conftest.$ac_ext <<_ACEOF
6858 cat confdefs.h >>conftest.$ac_ext
6859 cat >>conftest.$ac_ext <<_ACEOF
6860 /* end confdefs.h. */
6864 # include <unistd.h>
6868 FILE *fp = fopen("conftest.malloc", "w");
6871 fprintf(fp, "%d\n", getpagesize());
6878 rm -f conftest$ac_exeext
6879 if { (ac_try="$ac_link"
6881 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
6882 *) ac_try_echo
=$ac_try;;
6884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6885 (eval "$ac_link") 2>&5
6887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6889 { (case "(($ac_try" in
6890 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
6891 *) ac_try_echo=$ac_try;;
6893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6894 (eval "$ac_try") 2>&5
6896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897 (exit $ac_status); }; }; then
6899 if test -f "conftest.malloc" ; then
6900 pagesize=`cat conftest.malloc
`
6904 echo "$as_me: program exited with status $ac_status" >&5
6905 echo "$as_me: failed program was:" >&5
6906 sed 's/^/| /' conftest.$ac_ext >&5
6909 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6913 if test "$pagesize" != "no" ; then
6914 { echo "$as_me:$LINENO: result: $pagesize" >&5
6915 echo "${ECHO_T}$pagesize" >&6; }
6917 if test "$ac_cv_sizeof_int" = "4" ; then
6922 { echo "$as_me:$LINENO: result: $pagesize (guessing)" >&5
6923 echo "${ECHO_T}$pagesize (guessing)" >&6; }
6926 cat >>confdefs.h <<_ACEOF
6927 #define MALLOC_PAGESIZE $pagesize
6932 { echo "$as_me:$LINENO: checking for library containing socket" >&5
6933 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
6934 if test "${ac_cv_search_socket+set}" = set; then
6935 echo $ECHO_N "(cached) $ECHO_C" >&6
6937 ac_func_search_save_LIBS=$LIBS
6938 cat >conftest.$ac_ext <<_ACEOF
6941 cat confdefs.h >>conftest.$ac_ext
6942 cat >>conftest.$ac_ext <<_ACEOF
6943 /* end confdefs.h. */
6945 /* Override any GCC internal prototype to avoid an error.
6946 Use char because int might match the return type of a GCC
6947 builtin and then its argument prototype would still apply. */
6960 for ac_lib in '' socket; do
6961 if test -z "$ac_lib"; then
6962 ac_res="none required"
6965 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6967 rm -f conftest.$ac_objext conftest$ac_exeext
6968 if { (ac_try="$ac_link"
6970 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
6971 *) ac_try_echo
=$ac_try;;
6973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6974 (eval "$ac_link") 2>conftest.er1
6976 grep -v '^ *+' conftest.er1
>conftest.err
6978 cat conftest.err
>&5
6979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980 (exit $ac_status); } && {
6981 test -z "$ac_c_werror_flag" ||
6982 test ! -s conftest.err
6983 } && test -s conftest
$ac_exeext &&
6984 $as_test_x conftest
$ac_exeext; then
6985 ac_cv_search_socket
=$ac_res
6987 echo "$as_me: failed program was:" >&5
6988 sed 's/^/| /' conftest.
$ac_ext >&5
6993 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6995 if test "${ac_cv_search_socket+set}" = set; then
6999 if test "${ac_cv_search_socket+set}" = set; then
7002 ac_cv_search_socket
=no
7005 LIBS
=$ac_func_search_save_LIBS
7007 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7008 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
7009 ac_res
=$ac_cv_search_socket
7010 if test "$ac_res" != no
; then
7011 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7014 { { echo "$as_me:$LINENO: error: You have no socket()! Aborting." >&5
7015 echo "$as_me: error: You have no socket()! Aborting." >&2;}
7016 { (exit 1); exit 1; }; }
7020 if test x
"$SUN" = xyes
; then
7021 { echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5
7022 echo $ECHO_N "checking for library containing inet_ntoa... $ECHO_C" >&6; }
7023 if test "${ac_cv_search_inet_ntoa+set}" = set; then
7024 echo $ECHO_N "(cached) $ECHO_C" >&6
7026 ac_func_search_save_LIBS
=$LIBS
7027 cat >conftest.
$ac_ext <<_ACEOF
7030 cat confdefs.h
>>conftest.
$ac_ext
7031 cat >>conftest.
$ac_ext <<_ACEOF
7032 /* end confdefs.h. */
7034 /* Override any GCC internal prototype to avoid an error.
7035 Use char because int might match the return type of a GCC
7036 builtin and then its argument prototype would still apply. */
7044 return inet_ntoa ();
7049 for ac_lib
in '' nsl
; do
7050 if test -z "$ac_lib"; then
7051 ac_res
="none required"
7054 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7056 rm -f conftest.
$ac_objext conftest
$ac_exeext
7057 if { (ac_try
="$ac_link"
7059 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
7060 *) ac_try_echo=$ac_try;;
7062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7063 (eval "$ac_link") 2>conftest.er1
7065 grep -v '^ *+' conftest.er1 >conftest.err
7067 cat conftest.err >&5
7068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069 (exit $ac_status); } && {
7070 test -z "$ac_c_werror_flag" ||
7071 test ! -s conftest.err
7072 } && test -s conftest$ac_exeext &&
7073 $as_test_x conftest$ac_exeext; then
7074 ac_cv_search_inet_ntoa=$ac_res
7076 echo "$as_me: failed program was:" >&5
7077 sed 's/^/| /' conftest.$ac_ext >&5
7082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7084 if test "${ac_cv_search_inet_ntoa+set}" = set; then
7088 if test "${ac_cv_search_inet_ntoa+set}" = set; then
7091 ac_cv_search_inet_ntoa=no
7094 LIBS=$ac_func_search_save_LIBS
7096 { echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5
7097 echo "${ECHO_T}$ac_cv_search_inet_ntoa" >&6; }
7098 ac_res=$ac_cv_search_inet_ntoa
7099 if test "$ac_res" != no; then
7100 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7103 { { echo "$as_me:$LINENO: error: libnsl not found! Aborting." >&5
7104 echo "$as_me: error: libnsl not found! Aborting." >&2;}
7105 { (exit 1); exit 1; }; }
7110 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
7111 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
7112 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
7113 echo $ECHO_N "(cached) $ECHO_C" >&6
7115 cat >conftest.$ac_ext <<_ACEOF
7118 cat confdefs.h >>conftest.$ac_ext
7119 cat >>conftest.$ac_ext <<_ACEOF
7120 /* end confdefs.h. */
7121 #include <sys/types.h>
7122 #include <sys/socket.h>
7128 static struct sockaddr ac_aggr;
7135 rm -f conftest.$ac_objext
7136 if { (ac_try="$ac_compile"
7138 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
7139 *) ac_try_echo
=$ac_try;;
7141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7142 (eval "$ac_compile") 2>conftest.er1
7144 grep -v '^ *+' conftest.er1
>conftest.err
7146 cat conftest.err
>&5
7147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7148 (exit $ac_status); } && {
7149 test -z "$ac_c_werror_flag" ||
7150 test ! -s conftest.err
7151 } && test -s conftest.
$ac_objext; then
7152 ac_cv_member_struct_sockaddr_sa_len
=yes
7154 echo "$as_me: failed program was:" >&5
7155 sed 's/^/| /' conftest.
$ac_ext >&5
7157 cat >conftest.
$ac_ext <<_ACEOF
7160 cat confdefs.h
>>conftest.
$ac_ext
7161 cat >>conftest.
$ac_ext <<_ACEOF
7162 /* end confdefs.h. */
7163 #include <sys/types.h>
7164 #include <sys/socket.h>
7170 static struct sockaddr ac_aggr;
7171 if (sizeof ac_aggr.sa_len)
7177 rm -f conftest.
$ac_objext
7178 if { (ac_try
="$ac_compile"
7180 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
7181 *) ac_try_echo=$ac_try;;
7183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7184 (eval "$ac_compile") 2>conftest.er1
7186 grep -v '^ *+' conftest.er1 >conftest.err
7188 cat conftest.err >&5
7189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190 (exit $ac_status); } && {
7191 test -z "$ac_c_werror_flag" ||
7192 test ! -s conftest.err
7193 } && test -s conftest.$ac_objext; then
7194 ac_cv_member_struct_sockaddr_sa_len=yes
7196 echo "$as_me: failed program was:" >&5
7197 sed 's/^/| /' conftest.$ac_ext >&5
7199 ac_cv_member_struct_sockaddr_sa_len=no
7202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7207 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
7208 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
7209 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
7211 cat >>confdefs.h <<\_ACEOF
7212 #define SOCKADDR_IN_HAS_LEN 1
7218 { echo "$as_me:$LINENO: checking for socklen_t" >&5
7219 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
7220 if test "${ac_cv_type_socklen_t+set}" = set; then
7221 echo $ECHO_N "(cached) $ECHO_C" >&6
7223 cat >conftest.$ac_ext <<_ACEOF
7226 cat confdefs.h >>conftest.$ac_ext
7227 cat >>conftest.$ac_ext <<_ACEOF
7228 /* end confdefs.h. */
7229 #include <sys/types.h>
7230 #include <sys/socket.h>
7232 typedef socklen_t ac__type_new_;
7236 if ((ac__type_new_ *) 0)
7238 if (sizeof (ac__type_new_))
7244 rm -f conftest.$ac_objext
7245 if { (ac_try="$ac_compile"
7247 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
7248 *) ac_try_echo
=$ac_try;;
7250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7251 (eval "$ac_compile") 2>conftest.er1
7253 grep -v '^ *+' conftest.er1
>conftest.err
7255 cat conftest.err
>&5
7256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257 (exit $ac_status); } && {
7258 test -z "$ac_c_werror_flag" ||
7259 test ! -s conftest.err
7260 } && test -s conftest.
$ac_objext; then
7261 ac_cv_type_socklen_t
=yes
7263 echo "$as_me: failed program was:" >&5
7264 sed 's/^/| /' conftest.
$ac_ext >&5
7266 ac_cv_type_socklen_t
=no
7269 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7271 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
7272 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
7273 if test $ac_cv_type_socklen_t = yes; then
7277 cat >>confdefs.h
<<\_ACEOF
7278 #define socklen_t unsigned int
7284 # Check whether --enable-ipv6 was given.
7285 if test "${enable_ipv6+set}" = set; then
7286 enableval
=$enable_ipv6; ipv6
=$enableval
7292 if test $ipv6 != yes; then
7295 { echo "$as_me:$LINENO: checking for core IPv6 support" >&5
7296 echo $ECHO_N "checking for core IPv6 support... $ECHO_C" >&6; }
7298 cat >conftest.
$ac_ext <<_ACEOF
7301 cat confdefs.h
>>conftest.
$ac_ext
7302 cat >>conftest.
$ac_ext <<_ACEOF
7303 /* end confdefs.h. */
7305 #include <sys/types.h>
7306 #include <sys/socket.h>
7307 #include <netinet/in.h>
7311 struct sockaddr_in6 s;
7318 rm -f conftest.
$ac_objext
7319 if { (ac_try
="$ac_compile"
7321 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
7322 *) ac_try_echo=$ac_try;;
7324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7325 (eval "$ac_compile") 2>conftest.er1
7327 grep -v '^ *+' conftest.er1 >conftest.err
7329 cat conftest.err >&5
7330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331 (exit $ac_status); } && {
7332 test -z "$ac_c_werror_flag" ||
7333 test ! -s conftest.err
7334 } && test -s conftest.$ac_objext; then
7336 if test "$CYGWIN" = "yes"; then
7337 { echo "$as_me:$LINENO: result: no, Cygwin's IPv6 is incomplete" >&5
7338 echo "${ECHO_T}no, Cygwin's IPv6 is incomplete" >&6; }
7343 cat >>confdefs.h <<\_ACEOF
7347 { echo "$as_me:$LINENO: result: yes" >&5
7348 echo "${ECHO_T}yes" >&6; }
7349 { echo "$as_me:$LINENO: checking for struct in6addr_any" >&5
7350 echo $ECHO_N "checking for struct in6addr_any... $ECHO_C" >&6; }
7351 cat >conftest.$ac_ext <<_ACEOF
7354 cat confdefs.h >>conftest.$ac_ext
7355 cat >>conftest.$ac_ext <<_ACEOF
7356 /* end confdefs.h. */
7358 #include <sys/types.h>
7359 #include <sys/socket.h>
7360 #include <netinet/in.h>
7364 struct in6_addr a = in6addr_any;
7370 rm -f conftest.$ac_objext
7371 if { (ac_try="$ac_compile"
7373 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
7374 *) ac_try_echo
=$ac_try;;
7376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7377 (eval "$ac_compile") 2>conftest.er1
7379 grep -v '^ *+' conftest.er1
>conftest.err
7381 cat conftest.err
>&5
7382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383 (exit $ac_status); } && {
7384 test -z "$ac_c_werror_flag" ||
7385 test ! -s conftest.err
7386 } && test -s conftest.
$ac_objext; then
7387 { echo "$as_me:$LINENO: result: yes" >&5
7388 echo "${ECHO_T}yes" >&6; }
7390 echo "$as_me: failed program was:" >&5
7391 sed 's/^/| /' conftest.
$ac_ext >&5
7394 { echo "$as_me:$LINENO: result: no" >&5
7395 echo "${ECHO_T}no" >&6; }
7397 cat >>confdefs.h
<<\_ACEOF
7398 #define NO_IN6ADDR_ANY 1
7406 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7410 echo "$as_me: failed program was:" >&5
7411 sed 's/^/| /' conftest.
$ac_ext >&5
7413 { echo "$as_me:$LINENO: result: no" >&5
7414 echo "${ECHO_T}no" >&6; }
7418 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7421 { echo "$as_me:$LINENO: checking for library containing crypt" >&5
7422 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
7423 if test "${ac_cv_search_crypt+set}" = set; then
7424 echo $ECHO_N "(cached) $ECHO_C" >&6
7426 ac_func_search_save_LIBS
=$LIBS
7427 cat >conftest.
$ac_ext <<_ACEOF
7430 cat confdefs.h
>>conftest.
$ac_ext
7431 cat >>conftest.
$ac_ext <<_ACEOF
7432 /* end confdefs.h. */
7434 /* Override any GCC internal prototype to avoid an error.
7435 Use char because int might match the return type of a GCC
7436 builtin and then its argument prototype would still apply. */
7449 for ac_lib
in '' crypt descrypt
; do
7450 if test -z "$ac_lib"; then
7451 ac_res
="none required"
7454 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7456 rm -f conftest.
$ac_objext conftest
$ac_exeext
7457 if { (ac_try
="$ac_link"
7459 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
7460 *) ac_try_echo=$ac_try;;
7462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7463 (eval "$ac_link") 2>conftest.er1
7465 grep -v '^ *+' conftest.er1 >conftest.err
7467 cat conftest.err >&5
7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); } && {
7470 test -z "$ac_c_werror_flag" ||
7471 test ! -s conftest.err
7472 } && test -s conftest$ac_exeext &&
7473 $as_test_x conftest$ac_exeext; then
7474 ac_cv_search_crypt=$ac_res
7476 echo "$as_me: failed program was:" >&5
7477 sed 's/^/| /' conftest.$ac_ext >&5
7482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7484 if test "${ac_cv_search_crypt+set}" = set; then
7488 if test "${ac_cv_search_crypt+set}" = set; then
7491 ac_cv_search_crypt=no
7494 LIBS=$ac_func_search_save_LIBS
7496 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
7497 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
7498 ac_res=$ac_cv_search_crypt
7499 if test "$ac_res" != no; then
7500 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7505 CRYPT_LIB=$ac_cv_search_crypt
7507 if test "$CRYPT_LIB" = "none required"; then
7509 elif test "$CRYPT_LIB" = no; then
7515 if test "$ac_cv_header_sys_wait_h" = yes -o "$ac_cv_header_wait_h" = yes; then
7523 { echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
7524 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6; }
7525 if test "${gcc_cv_header_string+set}" = set; then
7526 echo $ECHO_N "(cached) $ECHO_C" >&6
7529 cat >conftest.$ac_ext <<_ACEOF
7531 #include <strings.h>
7533 rm -f conftest.$ac_objext
7534 if { (ac_try="$ac_compile"
7536 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
7537 *) ac_try_echo
=$ac_try;;
7539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7540 (eval "$ac_compile") 2>conftest.er1
7542 grep -v '^ *+' conftest.er1
>conftest.err
7544 cat conftest.err
>&5
7545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546 (exit $ac_status); } && {
7547 test -z "$ac_c_werror_flag" ||
7548 test ! -s conftest.err
7549 } && test -s conftest.
$ac_objext; then
7550 gcc_cv_header_string
=yes
7552 echo "$as_me: failed program was:" >&5
7553 sed 's/^/| /' conftest.
$ac_ext >&5
7555 gcc_cv_header_string
=no
7558 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7561 { echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
7562 echo "${ECHO_T}$gcc_cv_header_string" >&6; }
7564 if test "$gcc_cv_header_string" = "yes"; then
7566 cat >>confdefs.h
<<\_ACEOF
7567 #define STRING_WITH_STRINGS 1
7572 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7573 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
7574 if test "${ac_cv_c_bigendian+set}" = set; then
7575 echo $ECHO_N "(cached) $ECHO_C" >&6
7577 # See if sys/param.h defines the BYTE_ORDER macro.
7578 cat >conftest.
$ac_ext <<_ACEOF
7581 cat confdefs.h
>>conftest.
$ac_ext
7582 cat >>conftest.
$ac_ext <<_ACEOF
7583 /* end confdefs.h. */
7584 #include <sys/types.h>
7585 #include <sys/param.h>
7590 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
7591 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
7599 rm -f conftest.
$ac_objext
7600 if { (ac_try
="$ac_compile"
7602 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
7603 *) ac_try_echo=$ac_try;;
7605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7606 (eval "$ac_compile") 2>conftest.er1
7608 grep -v '^ *+' conftest.er1 >conftest.err
7610 cat conftest.err >&5
7611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612 (exit $ac_status); } && {
7613 test -z "$ac_c_werror_flag" ||
7614 test ! -s conftest.err
7615 } && test -s conftest.$ac_objext; then
7616 # It does; now see whether it defined to BIG_ENDIAN or not.
7617 cat >conftest.$ac_ext <<_ACEOF
7620 cat confdefs.h >>conftest.$ac_ext
7621 cat >>conftest.$ac_ext <<_ACEOF
7622 /* end confdefs.h. */
7623 #include <sys/types.h>
7624 #include <sys/param.h>
7629 #if BYTE_ORDER != BIG_ENDIAN
7637 rm -f conftest.$ac_objext
7638 if { (ac_try="$ac_compile"
7640 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
7641 *) ac_try_echo
=$ac_try;;
7643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7644 (eval "$ac_compile") 2>conftest.er1
7646 grep -v '^ *+' conftest.er1
>conftest.err
7648 cat conftest.err
>&5
7649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650 (exit $ac_status); } && {
7651 test -z "$ac_c_werror_flag" ||
7652 test ! -s conftest.err
7653 } && test -s conftest.
$ac_objext; then
7654 ac_cv_c_bigendian
=yes
7656 echo "$as_me: failed program was:" >&5
7657 sed 's/^/| /' conftest.
$ac_ext >&5
7659 ac_cv_c_bigendian
=no
7662 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7664 echo "$as_me: failed program was:" >&5
7665 sed 's/^/| /' conftest.
$ac_ext >&5
7667 # It does not; compile a test program.
7668 if test "$cross_compiling" = yes; then
7669 # try to guess the endianness by grepping values into an object file
7670 ac_cv_c_bigendian
=unknown
7671 cat >conftest.
$ac_ext <<_ACEOF
7674 cat confdefs.h
>>conftest.
$ac_ext
7675 cat >>conftest.
$ac_ext <<_ACEOF
7676 /* end confdefs.h. */
7677 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7678 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7679 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7680 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7681 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7682 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7686 _ascii (); _ebcdic ();
7691 rm -f conftest.
$ac_objext
7692 if { (ac_try
="$ac_compile"
7694 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
7695 *) ac_try_echo=$ac_try;;
7697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7698 (eval "$ac_compile") 2>conftest.er1
7700 grep -v '^ *+' conftest.er1 >conftest.err
7702 cat conftest.err >&5
7703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704 (exit $ac_status); } && {
7705 test -z "$ac_c_werror_flag" ||
7706 test ! -s conftest.err
7707 } && test -s conftest.$ac_objext; then
7708 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7709 ac_cv_c_bigendian=yes
7711 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7712 if test "$ac_cv_c_bigendian" = unknown; then
7713 ac_cv_c_bigendian=no
7715 # finding both strings is unlikely to happen, but who knows?
7716 ac_cv_c_bigendian=unknown
7720 echo "$as_me: failed program was:" >&5
7721 sed 's/^/| /' conftest.$ac_ext >&5
7726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7728 cat >conftest.$ac_ext <<_ACEOF
7731 cat confdefs.h >>conftest.$ac_ext
7732 cat >>conftest.$ac_ext <<_ACEOF
7733 /* end confdefs.h. */
7734 $ac_includes_default
7739 /* Are we little or big endian? From Harbison&Steele. */
7743 char c[sizeof (long int)];
7746 return u.c[sizeof (long int) - 1] == 1;
7752 rm -f conftest$ac_exeext
7753 if { (ac_try="$ac_link"
7755 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
7756 *) ac_try_echo
=$ac_try;;
7758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7759 (eval "$ac_link") 2>&5
7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7763 { (case "(($ac_try" in
7764 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
7765 *) ac_try_echo=$ac_try;;
7767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7768 (eval "$ac_try") 2>&5
7770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771 (exit $ac_status); }; }; then
7772 ac_cv_c_bigendian=no
7774 echo "$as_me: program exited with status $ac_status" >&5
7775 echo "$as_me: failed program was:" >&5
7776 sed 's/^/| /' conftest.$ac_ext >&5
7779 ac_cv_c_bigendian=yes
7781 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7789 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7790 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
7791 case $ac_cv_c_bigendian in
7794 cat >>confdefs.h <<\_ACEOF
7795 #define WORDS_BIGENDIAN 1
7801 { { echo "$as_me:$LINENO: error: unknown endianness
7802 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7803 echo "$as_me: error: unknown endianness
7804 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7805 { (exit 1); exit 1; }; } ;;
7809 if test "${ac_cv_header_stdarg_h+set}" = set; then
7810 { echo "$as_me:$LINENO: checking for stdarg.h" >&5
7811 echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; }
7812 if test "${ac_cv_header_stdarg_h+set}" = set; then
7813 echo $ECHO_N "(cached) $ECHO_C" >&6
7815 { echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
7816 echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; }
7818 # Is the header compilable?
7819 { echo "$as_me:$LINENO: checking stdarg.h usability" >&5
7820 echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6; }
7821 cat >conftest.$ac_ext <<_ACEOF
7824 cat confdefs.h >>conftest.$ac_ext
7825 cat >>conftest.$ac_ext <<_ACEOF
7826 /* end confdefs.h. */
7827 $ac_includes_default
7830 rm -f conftest.$ac_objext
7831 if { (ac_try="$ac_compile"
7833 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
7834 *) ac_try_echo
=$ac_try;;
7836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7837 (eval "$ac_compile") 2>conftest.er1
7839 grep -v '^ *+' conftest.er1
>conftest.err
7841 cat conftest.err
>&5
7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); } && {
7844 test -z "$ac_c_werror_flag" ||
7845 test ! -s conftest.err
7846 } && test -s conftest.
$ac_objext; then
7847 ac_header_compiler
=yes
7849 echo "$as_me: failed program was:" >&5
7850 sed 's/^/| /' conftest.
$ac_ext >&5
7852 ac_header_compiler
=no
7855 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7856 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7857 echo "${ECHO_T}$ac_header_compiler" >&6; }
7859 # Is the header present?
7860 { echo "$as_me:$LINENO: checking stdarg.h presence" >&5
7861 echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6; }
7862 cat >conftest.
$ac_ext <<_ACEOF
7865 cat confdefs.h
>>conftest.
$ac_ext
7866 cat >>conftest.
$ac_ext <<_ACEOF
7867 /* end confdefs.h. */
7870 if { (ac_try
="$ac_cpp conftest.$ac_ext"
7872 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
7873 *) ac_try_echo=$ac_try;;
7875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7878 grep -v '^ *+' conftest.er1 >conftest.err
7880 cat conftest.err >&5
7881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882 (exit $ac_status); } >/dev/null && {
7883 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7884 test ! -s conftest.err
7886 ac_header_preproc=yes
7888 echo "$as_me: failed program was:" >&5
7889 sed 's/^/| /' conftest.$ac_ext >&5
7891 ac_header_preproc=no
7894 rm -f conftest.err conftest.$ac_ext
7895 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7896 echo "${ECHO_T}$ac_header_preproc" >&6; }
7898 # So? What about this header?
7899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7901 { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5
7902 echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7903 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5
7904 echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;}
7905 ac_header_preproc=yes
7908 { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5
7909 echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;}
7910 { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5
7911 echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;}
7912 { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5
7913 echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;}
7914 { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5
7915 echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;}
7916 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
7917 echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
7918 { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5
7919 echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;}
7923 { echo "$as_me:$LINENO: checking for stdarg.h" >&5
7924 echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; }
7925 if test "${ac_cv_header_stdarg_h+set}" = set; then
7926 echo $ECHO_N "(cached) $ECHO_C" >&6
7928 ac_cv_header_stdarg_h=$ac_header_preproc
7930 { echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
7931 echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; }
7934 if test $ac_cv_header_stdarg_h = yes; then
7937 { { echo "$as_me:$LINENO: error: ** stdarg.h could not be found - ircd-ratbox will not compile without it **" >&5
7938 echo "$as_me: error: ** stdarg.h could not be found - ircd-ratbox will not compile without it **" >&2;}
7939 { (exit 1); exit 1; }; }
7945 if test "$ac_cv_c_compiler_gnu" = yes; then
7947 { echo "$as_me:$LINENO: checking for strlcpy" >&5
7948 echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6; }
7950 CFLAGS="$CFLAGS -Wimplicit -Werror"
7952 cat >conftest.$ac_ext <<_ACEOF
7955 cat confdefs.h >>conftest.$ac_ext
7956 cat >>conftest.$ac_ext <<_ACEOF
7957 /* end confdefs.h. */
7963 char *a = malloc(6);
7964 strlcpy(a, "hello", 6);
7970 rm -f conftest.$ac_objext conftest$ac_exeext
7971 if { (ac_try="$ac_link"
7973 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
7974 *) ac_try_echo
=$ac_try;;
7976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7977 (eval "$ac_link") 2>conftest.er1
7979 grep -v '^ *+' conftest.er1
>conftest.err
7981 cat conftest.err
>&5
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); } && {
7984 test -z "$ac_c_werror_flag" ||
7985 test ! -s conftest.err
7986 } && test -s conftest
$ac_exeext &&
7987 $as_test_x conftest
$ac_exeext; then
7988 { echo "$as_me:$LINENO: result: yes" >&5
7989 echo "${ECHO_T}yes" >&6; }
7991 cat >>confdefs.h
<<\_ACEOF
7992 #define HAVE_STRLCPY 1
7996 echo "$as_me: failed program was:" >&5
7997 sed 's/^/| /' conftest.
$ac_ext >&5
7999 { echo "$as_me:$LINENO: result: no" >&5
8000 echo "${ECHO_T}no" >&6; }
8004 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8005 conftest
$ac_exeext conftest.
$ac_ext
8007 { echo "$as_me:$LINENO: checking for strlcat" >&5
8008 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6; }
8009 cat >conftest.
$ac_ext <<_ACEOF
8012 cat confdefs.h
>>conftest.
$ac_ext
8013 cat >>conftest.
$ac_ext <<_ACEOF
8014 /* end confdefs.h. */
8020 char *a = malloc(6);
8022 strlcat(a, "hello", 6);
8028 rm -f conftest.
$ac_objext conftest
$ac_exeext
8029 if { (ac_try
="$ac_link"
8031 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
8032 *) ac_try_echo=$ac_try;;
8034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8035 (eval "$ac_link") 2>conftest.er1
8037 grep -v '^ *+' conftest.er1 >conftest.err
8039 cat conftest.err >&5
8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 (exit $ac_status); } && {
8042 test -z "$ac_c_werror_flag" ||
8043 test ! -s conftest.err
8044 } && test -s conftest$ac_exeext &&
8045 $as_test_x conftest$ac_exeext; then
8046 { echo "$as_me:$LINENO: result: yes" >&5
8047 echo "${ECHO_T}yes" >&6; }
8049 cat >>confdefs.h <<\_ACEOF
8050 #define HAVE_STRLCAT 1
8054 echo "$as_me: failed program was:" >&5
8055 sed 's/^/| /' conftest.$ac_ext >&5
8057 { echo "$as_me:$LINENO: result: no" >&5
8058 echo "${ECHO_T}no" >&6; }
8062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8063 conftest$ac_exeext conftest.$ac_ext
8072 for ac_func in strlcat strlcpy
8074 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8075 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8076 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8077 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8078 echo $ECHO_N "(cached) $ECHO_C" >&6
8080 cat >conftest.$ac_ext <<_ACEOF
8083 cat confdefs.h >>conftest.$ac_ext
8084 cat >>conftest.$ac_ext <<_ACEOF
8085 /* end confdefs.h. */
8086 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8087 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8088 #define $ac_func innocuous_$ac_func
8090 /* System header to define __stub macros and hopefully few prototypes,
8091 which can conflict with char $ac_func (); below.
8092 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8093 <limits.h> exists even on freestanding compilers. */
8096 # include <limits.h>
8098 # include <assert.h>
8103 /* Override any GCC internal prototype to avoid an error.
8104 Use char because int might match the return type of a GCC
8105 builtin and then its argument prototype would still apply. */
8110 /* The GNU C library defines this for functions which it implements
8111 to always fail with ENOSYS. Some functions are actually named
8112 something starting with __ and the normal name is an alias. */
8113 #if defined __stub_$ac_func || defined __stub___$ac_func
8125 rm -f conftest.$ac_objext conftest$ac_exeext
8126 if { (ac_try="$ac_link"
8128 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
8129 *) ac_try_echo
=$ac_try;;
8131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8132 (eval "$ac_link") 2>conftest.er1
8134 grep -v '^ *+' conftest.er1
>conftest.err
8136 cat conftest.err
>&5
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); } && {
8139 test -z "$ac_c_werror_flag" ||
8140 test ! -s conftest.err
8141 } && test -s conftest
$ac_exeext &&
8142 $as_test_x conftest
$ac_exeext; then
8143 eval "$as_ac_var=yes"
8145 echo "$as_me: failed program was:" >&5
8146 sed 's/^/| /' conftest.
$ac_ext >&5
8148 eval "$as_ac_var=no"
8151 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8152 conftest
$ac_exeext conftest.
$ac_ext
8154 ac_res
=`eval echo '${'$as_ac_var'}'`
8155 { echo "$as_me:$LINENO: result: $ac_res" >&5
8156 echo "${ECHO_T}$ac_res" >&6; }
8157 if test `eval echo '${'$as_ac_var'}'` = yes; then
8158 cat >>confdefs.h
<<_ACEOF
8159 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8168 { echo "$as_me:$LINENO: checking for u_int32_t" >&5
8169 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
8170 if test "${ac_cv_type_u_int32_t+set}" = set; then
8171 echo $ECHO_N "(cached) $ECHO_C" >&6
8173 cat >conftest.
$ac_ext <<_ACEOF
8176 cat confdefs.h
>>conftest.
$ac_ext
8177 cat >>conftest.
$ac_ext <<_ACEOF
8178 /* end confdefs.h. */
8179 $ac_includes_default
8180 typedef u_int32_t ac__type_new_;
8184 if ((ac__type_new_ *) 0)
8186 if (sizeof (ac__type_new_))
8192 rm -f conftest.
$ac_objext
8193 if { (ac_try
="$ac_compile"
8195 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
8196 *) ac_try_echo=$ac_try;;
8198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8199 (eval "$ac_compile") 2>conftest.er1
8201 grep -v '^ *+' conftest.er1 >conftest.err
8203 cat conftest.err >&5
8204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205 (exit $ac_status); } && {
8206 test -z "$ac_c_werror_flag" ||
8207 test ! -s conftest.err
8208 } && test -s conftest.$ac_objext; then
8209 ac_cv_type_u_int32_t=yes
8211 echo "$as_me: failed program was:" >&5
8212 sed 's/^/| /' conftest.$ac_ext >&5
8214 ac_cv_type_u_int32_t=no
8217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8219 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
8220 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
8221 if test $ac_cv_type_u_int32_t = yes; then
8225 { echo "$as_me:$LINENO: checking for uint32_t" >&5
8226 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
8227 if test "${ac_cv_type_uint32_t+set}" = set; then
8228 echo $ECHO_N "(cached) $ECHO_C" >&6
8230 cat >conftest.$ac_ext <<_ACEOF
8233 cat confdefs.h >>conftest.$ac_ext
8234 cat >>conftest.$ac_ext <<_ACEOF
8235 /* end confdefs.h. */
8236 $ac_includes_default
8237 typedef uint32_t ac__type_new_;
8241 if ((ac__type_new_ *) 0)
8243 if (sizeof (ac__type_new_))
8249 rm -f conftest.$ac_objext
8250 if { (ac_try="$ac_compile"
8252 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
8253 *) ac_try_echo
=$ac_try;;
8255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8256 (eval "$ac_compile") 2>conftest.er1
8258 grep -v '^ *+' conftest.er1
>conftest.err
8260 cat conftest.err
>&5
8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262 (exit $ac_status); } && {
8263 test -z "$ac_c_werror_flag" ||
8264 test ! -s conftest.err
8265 } && test -s conftest.
$ac_objext; then
8266 ac_cv_type_uint32_t
=yes
8268 echo "$as_me: failed program was:" >&5
8269 sed 's/^/| /' conftest.
$ac_ext >&5
8271 ac_cv_type_uint32_t
=no
8274 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8276 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
8277 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
8278 if test $ac_cv_type_uint32_t = yes; then
8281 cat >>confdefs.h
<<\_ACEOF
8282 #define u_int32_t uint32_t
8288 { echo "$as_me:$LINENO: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&5
8289 echo "$as_me: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&2;}
8291 cat >>confdefs.h
<<\_ACEOF
8292 #define u_int32_t unsigned long int
8302 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
8303 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
8304 if test "${ac_cv_type_u_int16_t+set}" = set; then
8305 echo $ECHO_N "(cached) $ECHO_C" >&6
8307 cat >conftest.
$ac_ext <<_ACEOF
8310 cat confdefs.h
>>conftest.
$ac_ext
8311 cat >>conftest.
$ac_ext <<_ACEOF
8312 /* end confdefs.h. */
8313 $ac_includes_default
8314 typedef u_int16_t ac__type_new_;
8318 if ((ac__type_new_ *) 0)
8320 if (sizeof (ac__type_new_))
8326 rm -f conftest.
$ac_objext
8327 if { (ac_try
="$ac_compile"
8329 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
8330 *) ac_try_echo=$ac_try;;
8332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8333 (eval "$ac_compile") 2>conftest.er1
8335 grep -v '^ *+' conftest.er1 >conftest.err
8337 cat conftest.err >&5
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); } && {
8340 test -z "$ac_c_werror_flag" ||
8341 test ! -s conftest.err
8342 } && test -s conftest.$ac_objext; then
8343 ac_cv_type_u_int16_t=yes
8345 echo "$as_me: failed program was:" >&5
8346 sed 's/^/| /' conftest.$ac_ext >&5
8348 ac_cv_type_u_int16_t=no
8351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8353 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
8354 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
8355 if test $ac_cv_type_u_int16_t = yes; then
8359 { echo "$as_me:$LINENO: checking for uint16_t" >&5
8360 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
8361 if test "${ac_cv_type_uint16_t+set}" = set; then
8362 echo $ECHO_N "(cached) $ECHO_C" >&6
8364 cat >conftest.$ac_ext <<_ACEOF
8367 cat confdefs.h >>conftest.$ac_ext
8368 cat >>conftest.$ac_ext <<_ACEOF
8369 /* end confdefs.h. */
8370 $ac_includes_default
8371 typedef uint16_t ac__type_new_;
8375 if ((ac__type_new_ *) 0)
8377 if (sizeof (ac__type_new_))
8383 rm -f conftest.$ac_objext
8384 if { (ac_try="$ac_compile"
8386 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
8387 *) ac_try_echo
=$ac_try;;
8389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8390 (eval "$ac_compile") 2>conftest.er1
8392 grep -v '^ *+' conftest.er1
>conftest.err
8394 cat conftest.err
>&5
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); } && {
8397 test -z "$ac_c_werror_flag" ||
8398 test ! -s conftest.err
8399 } && test -s conftest.
$ac_objext; then
8400 ac_cv_type_uint16_t
=yes
8402 echo "$as_me: failed program was:" >&5
8403 sed 's/^/| /' conftest.
$ac_ext >&5
8405 ac_cv_type_uint16_t
=no
8408 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8410 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
8411 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
8412 if test $ac_cv_type_uint16_t = yes; then
8415 cat >>confdefs.h
<<\_ACEOF
8416 #define u_int16_t uint16_t
8422 { echo "$as_me:$LINENO: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&5
8423 echo "$as_me: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&2;}
8425 cat >>confdefs.h
<<\_ACEOF
8426 #define u_int16_t unsigned short int
8436 { echo "$as_me:$LINENO: checking for in_port_t" >&5
8437 echo $ECHO_N "checking for in_port_t... $ECHO_C" >&6; }
8438 if test "${ac_cv_type_in_port_t+set}" = set; then
8439 echo $ECHO_N "(cached) $ECHO_C" >&6
8441 cat >conftest.
$ac_ext <<_ACEOF
8444 cat confdefs.h
>>conftest.
$ac_ext
8445 cat >>conftest.
$ac_ext <<_ACEOF
8446 /* end confdefs.h. */
8447 #include <sys/types.h>
8448 #include <netinet/in.h>
8450 typedef in_port_t ac__type_new_;
8454 if ((ac__type_new_ *) 0)
8456 if (sizeof (ac__type_new_))
8462 rm -f conftest.
$ac_objext
8463 if { (ac_try
="$ac_compile"
8465 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
8466 *) ac_try_echo=$ac_try;;
8468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8469 (eval "$ac_compile") 2>conftest.er1
8471 grep -v '^ *+' conftest.er1 >conftest.err
8473 cat conftest.err >&5
8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475 (exit $ac_status); } && {
8476 test -z "$ac_c_werror_flag" ||
8477 test ! -s conftest.err
8478 } && test -s conftest.$ac_objext; then
8479 ac_cv_type_in_port_t=yes
8481 echo "$as_me: failed program was:" >&5
8482 sed 's/^/| /' conftest.$ac_ext >&5
8484 ac_cv_type_in_port_t=no
8487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8489 { echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5
8490 echo "${ECHO_T}$ac_cv_type_in_port_t" >&6; }
8491 if test $ac_cv_type_in_port_t = yes; then
8495 cat >>confdefs.h <<\_ACEOF
8496 #define in_port_t u_int16_t
8502 { echo "$as_me:$LINENO: checking for sa_family_t" >&5
8503 echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; }
8504 if test "${ac_cv_type_sa_family_t+set}" = set; then
8505 echo $ECHO_N "(cached) $ECHO_C" >&6
8507 cat >conftest.$ac_ext <<_ACEOF
8510 cat confdefs.h >>conftest.$ac_ext
8511 cat >>conftest.$ac_ext <<_ACEOF
8512 /* end confdefs.h. */
8513 #include <sys/types.h>
8514 #include <sys/socket.h>
8516 typedef sa_family_t ac__type_new_;
8520 if ((ac__type_new_ *) 0)
8522 if (sizeof (ac__type_new_))
8528 rm -f conftest.$ac_objext
8529 if { (ac_try="$ac_compile"
8531 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
8532 *) ac_try_echo
=$ac_try;;
8534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8535 (eval "$ac_compile") 2>conftest.er1
8537 grep -v '^ *+' conftest.er1
>conftest.err
8539 cat conftest.err
>&5
8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541 (exit $ac_status); } && {
8542 test -z "$ac_c_werror_flag" ||
8543 test ! -s conftest.err
8544 } && test -s conftest.
$ac_objext; then
8545 ac_cv_type_sa_family_t
=yes
8547 echo "$as_me: failed program was:" >&5
8548 sed 's/^/| /' conftest.
$ac_ext >&5
8550 ac_cv_type_sa_family_t
=no
8553 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8555 { echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
8556 echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6; }
8557 if test $ac_cv_type_sa_family_t = yes; then
8561 cat >>confdefs.h
<<\_ACEOF
8562 #define sa_family_t u_int16_t
8568 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
8569 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
8570 if test "${ac_cv_type_uintptr_t+set}" = set; then
8571 echo $ECHO_N "(cached) $ECHO_C" >&6
8573 cat >conftest.
$ac_ext <<_ACEOF
8576 cat confdefs.h
>>conftest.
$ac_ext
8577 cat >>conftest.
$ac_ext <<_ACEOF
8578 /* end confdefs.h. */
8579 $ac_includes_default
8580 typedef uintptr_t ac__type_new_;
8584 if ((ac__type_new_ *) 0)
8586 if (sizeof (ac__type_new_))
8592 rm -f conftest.
$ac_objext
8593 if { (ac_try
="$ac_compile"
8595 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
8596 *) ac_try_echo=$ac_try;;
8598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8599 (eval "$ac_compile") 2>conftest.er1
8601 grep -v '^ *+' conftest.er1 >conftest.err
8603 cat conftest.err >&5
8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605 (exit $ac_status); } && {
8606 test -z "$ac_c_werror_flag" ||
8607 test ! -s conftest.err
8608 } && test -s conftest.$ac_objext; then
8609 ac_cv_type_uintptr_t=yes
8611 echo "$as_me: failed program was:" >&5
8612 sed 's/^/| /' conftest.$ac_ext >&5
8614 ac_cv_type_uintptr_t=no
8617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8619 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
8620 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
8621 if test $ac_cv_type_uintptr_t = yes; then
8623 cat >>confdefs.h <<_ACEOF
8624 #define HAVE_UINTPTR_T 1
8637 for ac_func in socketpair vsnprintf mmap gettimeofday strdup strndup
8639 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8640 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8641 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8642 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8643 echo $ECHO_N "(cached) $ECHO_C" >&6
8645 cat >conftest.$ac_ext <<_ACEOF
8648 cat confdefs.h >>conftest.$ac_ext
8649 cat >>conftest.$ac_ext <<_ACEOF
8650 /* end confdefs.h. */
8651 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8652 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8653 #define $ac_func innocuous_$ac_func
8655 /* System header to define __stub macros and hopefully few prototypes,
8656 which can conflict with char $ac_func (); below.
8657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8658 <limits.h> exists even on freestanding compilers. */
8661 # include <limits.h>
8663 # include <assert.h>
8668 /* Override any GCC internal prototype to avoid an error.
8669 Use char because int might match the return type of a GCC
8670 builtin and then its argument prototype would still apply. */
8675 /* The GNU C library defines this for functions which it implements
8676 to always fail with ENOSYS. Some functions are actually named
8677 something starting with __ and the normal name is an alias. */
8678 #if defined __stub_$ac_func || defined __stub___$ac_func
8690 rm -f conftest.$ac_objext conftest$ac_exeext
8691 if { (ac_try="$ac_link"
8693 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
8694 *) ac_try_echo
=$ac_try;;
8696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8697 (eval "$ac_link") 2>conftest.er1
8699 grep -v '^ *+' conftest.er1
>conftest.err
8701 cat conftest.err
>&5
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 (exit $ac_status); } && {
8704 test -z "$ac_c_werror_flag" ||
8705 test ! -s conftest.err
8706 } && test -s conftest
$ac_exeext &&
8707 $as_test_x conftest
$ac_exeext; then
8708 eval "$as_ac_var=yes"
8710 echo "$as_me: failed program was:" >&5
8711 sed 's/^/| /' conftest.
$ac_ext >&5
8713 eval "$as_ac_var=no"
8716 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8717 conftest
$ac_exeext conftest.
$ac_ext
8719 ac_res
=`eval echo '${'$as_ac_var'}'`
8720 { echo "$as_me:$LINENO: result: $ac_res" >&5
8721 echo "${ECHO_T}$ac_res" >&6; }
8722 if test `eval echo '${'$as_ac_var'}'` = yes; then
8723 cat >>confdefs.h
<<_ACEOF
8724 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8731 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8732 # for constant arguments. Useless!
8733 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8734 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8735 if test "${ac_cv_working_alloca_h+set}" = set; then
8736 echo $ECHO_N "(cached) $ECHO_C" >&6
8738 cat >conftest.
$ac_ext <<_ACEOF
8741 cat confdefs.h
>>conftest.
$ac_ext
8742 cat >>conftest.
$ac_ext <<_ACEOF
8743 /* end confdefs.h. */
8748 char *p = (char *) alloca (2 * sizeof (int));
8754 rm -f conftest.
$ac_objext conftest
$ac_exeext
8755 if { (ac_try
="$ac_link"
8757 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
8758 *) ac_try_echo=$ac_try;;
8760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8761 (eval "$ac_link") 2>conftest.er1
8763 grep -v '^ *+' conftest.er1 >conftest.err
8765 cat conftest.err >&5
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); } && {
8768 test -z "$ac_c_werror_flag" ||
8769 test ! -s conftest.err
8770 } && test -s conftest$ac_exeext &&
8771 $as_test_x conftest$ac_exeext; then
8772 ac_cv_working_alloca_h=yes
8774 echo "$as_me: failed program was:" >&5
8775 sed 's/^/| /' conftest.$ac_ext >&5
8777 ac_cv_working_alloca_h=no
8780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8781 conftest$ac_exeext conftest.$ac_ext
8783 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8784 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
8785 if test $ac_cv_working_alloca_h = yes; then
8787 cat >>confdefs.h <<\_ACEOF
8788 #define HAVE_ALLOCA_H 1
8793 { echo "$as_me:$LINENO: checking for alloca" >&5
8794 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
8795 if test "${ac_cv_func_alloca_works+set}" = set; then
8796 echo $ECHO_N "(cached) $ECHO_C" >&6
8798 cat >conftest.$ac_ext <<_ACEOF
8801 cat confdefs.h >>conftest.$ac_ext
8802 cat >>conftest.$ac_ext <<_ACEOF
8803 /* end confdefs.h. */
8805 # define alloca __builtin_alloca
8808 # include <malloc.h>
8809 # define alloca _alloca
8811 # ifdef HAVE_ALLOCA_H
8812 # include <alloca.h>
8817 # ifndef alloca /* predefined by HP cc +Olibcalls */
8828 char *p = (char *) alloca (1);
8834 rm -f conftest.$ac_objext conftest$ac_exeext
8835 if { (ac_try="$ac_link"
8837 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
8838 *) ac_try_echo
=$ac_try;;
8840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8841 (eval "$ac_link") 2>conftest.er1
8843 grep -v '^ *+' conftest.er1
>conftest.err
8845 cat conftest.err
>&5
8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847 (exit $ac_status); } && {
8848 test -z "$ac_c_werror_flag" ||
8849 test ! -s conftest.err
8850 } && test -s conftest
$ac_exeext &&
8851 $as_test_x conftest
$ac_exeext; then
8852 ac_cv_func_alloca_works
=yes
8854 echo "$as_me: failed program was:" >&5
8855 sed 's/^/| /' conftest.
$ac_ext >&5
8857 ac_cv_func_alloca_works
=no
8860 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8861 conftest
$ac_exeext conftest.
$ac_ext
8863 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8864 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
8866 if test $ac_cv_func_alloca_works = yes; then
8868 cat >>confdefs.h
<<\_ACEOF
8869 #define HAVE_ALLOCA 1
8873 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8874 # that cause trouble. Some versions do not even contain alloca or
8875 # contain a buggy version. If you still want to use their alloca,
8876 # use ar to extract alloca.o from them instead of compiling alloca.c.
8878 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
8880 cat >>confdefs.h
<<\_ACEOF
8885 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8886 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
8887 if test "${ac_cv_os_cray+set}" = set; then
8888 echo $ECHO_N "(cached) $ECHO_C" >&6
8890 cat >conftest.
$ac_ext <<_ACEOF
8893 cat confdefs.h
>>conftest.
$ac_ext
8894 cat >>conftest.
$ac_ext <<_ACEOF
8895 /* end confdefs.h. */
8896 #if defined CRAY && ! defined CRAY2
8903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8904 $EGREP "webecray" >/dev
/null
2>&1; then
8912 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8913 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
8914 if test $ac_cv_os_cray = yes; then
8915 for ac_func
in _getb67 GETB67 getb67
; do
8916 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8917 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8918 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8919 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8920 echo $ECHO_N "(cached) $ECHO_C" >&6
8922 cat >conftest.
$ac_ext <<_ACEOF
8925 cat confdefs.h
>>conftest.
$ac_ext
8926 cat >>conftest.
$ac_ext <<_ACEOF
8927 /* end confdefs.h. */
8928 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8929 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8930 #define $ac_func innocuous_$ac_func
8932 /* System header to define __stub macros and hopefully few prototypes,
8933 which can conflict with char $ac_func (); below.
8934 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8935 <limits.h> exists even on freestanding compilers. */
8938 # include <limits.h>
8940 # include <assert.h>
8945 /* Override any GCC internal prototype to avoid an error.
8946 Use char because int might match the return type of a GCC
8947 builtin and then its argument prototype would still apply. */
8952 /* The GNU C library defines this for functions which it implements
8953 to always fail with ENOSYS. Some functions are actually named
8954 something starting with __ and the normal name is an alias. */
8955 #if defined __stub_$ac_func || defined __stub___$ac_func
8967 rm -f conftest.
$ac_objext conftest
$ac_exeext
8968 if { (ac_try
="$ac_link"
8970 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
8971 *) ac_try_echo=$ac_try;;
8973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8974 (eval "$ac_link") 2>conftest.er1
8976 grep -v '^ *+' conftest.er1 >conftest.err
8978 cat conftest.err >&5
8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980 (exit $ac_status); } && {
8981 test -z "$ac_c_werror_flag" ||
8982 test ! -s conftest.err
8983 } && test -s conftest$ac_exeext &&
8984 $as_test_x conftest$ac_exeext; then
8985 eval "$as_ac_var=yes"
8987 echo "$as_me: failed program was:" >&5
8988 sed 's/^/| /' conftest.$ac_ext >&5
8990 eval "$as_ac_var=no"
8993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8994 conftest$ac_exeext conftest.$ac_ext
8996 ac_res=`eval echo '${'$as_ac_var'}'`
8997 { echo "$as_me:$LINENO: result: $ac_res" >&5
8998 echo "${ECHO_T}$ac_res" >&6; }
8999 if test `eval echo '${'$as_ac_var'}'` = yes; then
9001 cat >>confdefs.h <<_ACEOF
9002 #define CRAY_STACKSEG_END $ac_func
9011 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9012 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9013 if test "${ac_cv_c_stack_direction+set}" = set; then
9014 echo $ECHO_N "(cached) $ECHO_C" >&6
9016 if test "$cross_compiling" = yes; then
9017 ac_cv_c_stack_direction=0
9019 cat >conftest.$ac_ext <<_ACEOF
9022 cat confdefs.h >>conftest.$ac_ext
9023 cat >>conftest.$ac_ext <<_ACEOF
9024 /* end confdefs.h. */
9025 $ac_includes_default
9027 find_stack_direction ()
9029 static char *addr = 0;
9034 return find_stack_direction ();
9037 return (&dummy > addr) ? 1 : -1;
9043 return find_stack_direction () < 0;
9046 rm -f conftest$ac_exeext
9047 if { (ac_try="$ac_link"
9049 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
9050 *) ac_try_echo
=$ac_try;;
9052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9053 (eval "$ac_link") 2>&5
9055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9057 { (case "(($ac_try" in
9058 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
9059 *) ac_try_echo=$ac_try;;
9061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9062 (eval "$ac_try") 2>&5
9064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065 (exit $ac_status); }; }; then
9066 ac_cv_c_stack_direction=1
9068 echo "$as_me: program exited with status $ac_status" >&5
9069 echo "$as_me: failed program was:" >&5
9070 sed 's/^/| /' conftest.$ac_ext >&5
9073 ac_cv_c_stack_direction=-1
9075 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9080 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9081 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9083 cat >>confdefs.h <<_ACEOF
9084 #define STACK_DIRECTION $ac_cv_c_stack_direction
9092 { echo "$as_me:$LINENO: checking for nanosleep" >&5
9093 echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6; }
9094 if test "${ac_cv_func_nanosleep+set}" = set; then
9095 echo $ECHO_N "(cached) $ECHO_C" >&6
9097 cat >conftest.$ac_ext <<_ACEOF
9100 cat confdefs.h >>conftest.$ac_ext
9101 cat >>conftest.$ac_ext <<_ACEOF
9102 /* end confdefs.h. */
9103 /* Define nanosleep to an innocuous variant, in case <limits.h> declares nanosleep.
9104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9105 #define nanosleep innocuous_nanosleep
9107 /* System header to define __stub macros and hopefully few prototypes,
9108 which can conflict with char nanosleep (); below.
9109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9110 <limits.h> exists even on freestanding compilers. */
9113 # include <limits.h>
9115 # include <assert.h>
9120 /* Override any GCC internal prototype to avoid an error.
9121 Use char because int might match the return type of a GCC
9122 builtin and then its argument prototype would still apply. */
9127 /* The GNU C library defines this for functions which it implements
9128 to always fail with ENOSYS. Some functions are actually named
9129 something starting with __ and the normal name is an alias. */
9130 #if defined __stub_nanosleep || defined __stub___nanosleep
9137 return nanosleep ();
9142 rm -f conftest.$ac_objext conftest$ac_exeext
9143 if { (ac_try="$ac_link"
9145 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
9146 *) ac_try_echo
=$ac_try;;
9148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9149 (eval "$ac_link") 2>conftest.er1
9151 grep -v '^ *+' conftest.er1
>conftest.err
9153 cat conftest.err
>&5
9154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155 (exit $ac_status); } && {
9156 test -z "$ac_c_werror_flag" ||
9157 test ! -s conftest.err
9158 } && test -s conftest
$ac_exeext &&
9159 $as_test_x conftest
$ac_exeext; then
9160 ac_cv_func_nanosleep
=yes
9162 echo "$as_me: failed program was:" >&5
9163 sed 's/^/| /' conftest.
$ac_ext >&5
9165 ac_cv_func_nanosleep
=no
9168 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9169 conftest
$ac_exeext conftest.
$ac_ext
9171 { echo "$as_me:$LINENO: result: $ac_cv_func_nanosleep" >&5
9172 echo "${ECHO_T}$ac_cv_func_nanosleep" >&6; }
9173 if test $ac_cv_func_nanosleep = yes; then
9176 { echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5
9177 echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6; }
9178 if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
9179 echo $ECHO_N "(cached) $ECHO_C" >&6
9181 ac_check_lib_save_LIBS
=$LIBS
9183 cat >conftest.
$ac_ext <<_ACEOF
9186 cat confdefs.h
>>conftest.
$ac_ext
9187 cat >>conftest.
$ac_ext <<_ACEOF
9188 /* end confdefs.h. */
9190 /* Override any GCC internal prototype to avoid an error.
9191 Use char because int might match the return type of a GCC
9192 builtin and then its argument prototype would still apply. */
9200 return nanosleep ();
9205 rm -f conftest.
$ac_objext conftest
$ac_exeext
9206 if { (ac_try
="$ac_link"
9208 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
9209 *) ac_try_echo=$ac_try;;
9211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9212 (eval "$ac_link") 2>conftest.er1
9214 grep -v '^ *+' conftest.er1 >conftest.err
9216 cat conftest.err >&5
9217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218 (exit $ac_status); } && {
9219 test -z "$ac_c_werror_flag" ||
9220 test ! -s conftest.err
9221 } && test -s conftest$ac_exeext &&
9222 $as_test_x conftest$ac_exeext; then
9223 ac_cv_lib_rt_nanosleep=yes
9225 echo "$as_me: failed program was:" >&5
9226 sed 's/^/| /' conftest.$ac_ext >&5
9228 ac_cv_lib_rt_nanosleep=no
9231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9232 conftest$ac_exeext conftest.$ac_ext
9233 LIBS=$ac_check_lib_save_LIBS
9235 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5
9236 echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6; }
9237 if test $ac_cv_lib_rt_nanosleep = yes; then
9240 { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
9241 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; }
9242 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
9243 echo $ECHO_N "(cached) $ECHO_C" >&6
9245 ac_check_lib_save_LIBS=$LIBS
9246 LIBS="-lposix4 $LIBS"
9247 cat >conftest.$ac_ext <<_ACEOF
9250 cat confdefs.h >>conftest.$ac_ext
9251 cat >>conftest.$ac_ext <<_ACEOF
9252 /* end confdefs.h. */
9254 /* Override any GCC internal prototype to avoid an error.
9255 Use char because int might match the return type of a GCC
9256 builtin and then its argument prototype would still apply. */
9264 return nanosleep ();
9269 rm -f conftest.$ac_objext conftest$ac_exeext
9270 if { (ac_try="$ac_link"
9272 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
9273 *) ac_try_echo
=$ac_try;;
9275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9276 (eval "$ac_link") 2>conftest.er1
9278 grep -v '^ *+' conftest.er1
>conftest.err
9280 cat conftest.err
>&5
9281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282 (exit $ac_status); } && {
9283 test -z "$ac_c_werror_flag" ||
9284 test ! -s conftest.err
9285 } && test -s conftest
$ac_exeext &&
9286 $as_test_x conftest
$ac_exeext; then
9287 ac_cv_lib_posix4_nanosleep
=yes
9289 echo "$as_me: failed program was:" >&5
9290 sed 's/^/| /' conftest.
$ac_ext >&5
9292 ac_cv_lib_posix4_nanosleep
=no
9295 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9296 conftest
$ac_exeext conftest.
$ac_ext
9297 LIBS
=$ac_check_lib_save_LIBS
9299 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
9300 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; }
9301 if test $ac_cv_lib_posix4_nanosleep = yes; then
9302 LIBS
="${LIBS} -lposix4"
9310 if test x
$ac_cv_func_nanosleep = xno
&& test x
$ac_cv_lib_posix4_nanosleep = xno
&& test x
$ac_cv_lib_rt_nanosleep = xno
9312 { echo "$as_me:$LINENO: result: \"nanosleep not found..using select for delay\"" >&5
9313 echo "${ECHO_T}\"nanosleep not found..using select for delay\"" >&6; }
9316 cat >>confdefs.h
<<\_ACEOF
9317 #define HAVE_NANOSLEEP 1
9322 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
9323 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
9324 # Check whether --enable-openssl was given.
9325 if test "${enable_openssl+set}" = set; then
9326 enableval
=$enable_openssl; cf_enable_openssl
=$enableval
9328 cf_enable_openssl
="auto"
9332 if test "$cf_enable_openssl" != "no" ; then
9333 cf_openssl_basedir
=""
9334 if test "$cf_enable_openssl" != "auto" &&
9335 test "$cf_enable_openssl" != "yes" ; then
9336 cf_openssl_basedir
="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
9338 for dirs in /usr
/local
/ssl
/usr
/pkg
/usr
/local \
9339 /usr
/local
/openssl
; do
9340 if test -f "${dirs}/include/openssl/opensslv.h" ; then
9341 cf_openssl_basedir
="${dirs}"
9347 if test ! -z "$cf_openssl_basedir"; then
9348 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
9349 SSL_INCLUDES
="-I${cf_openssl_basedir}/include"
9350 SSL_LIBS
="-L${cf_openssl_basedir}/lib"
9352 cf_openssl_basedir
=""
9355 if test -f "/usr/include/openssl/opensslv.h" ; then
9356 cf_openssl_basedir
="/usr"
9360 if test ! -z "$cf_openssl_basedir"; then
9361 { echo "$as_me:$LINENO: result: $cf_openssl_basedir" >&5
9362 echo "${ECHO_T}$cf_openssl_basedir" >&6; }
9363 cf_enable_openssl
="yes"
9365 { echo "$as_me:$LINENO: result: not found. Specify a correct path?" >&5
9366 echo "${ECHO_T}not found. Specify a correct path?" >&6; }
9367 cf_enable_openssl
="no"
9369 unset cf_openssl_basedir
9371 { echo "$as_me:$LINENO: result: disabled" >&5
9372 echo "${ECHO_T}disabled" >&6; }
9375 save_CPPFLAGS
="$CPPFLAGS"
9376 CPPFLAGS
="$CPPFLAGS $SSL_INCLUDES"
9378 LIBS
="$LIBS $SSL_LIBS"
9379 if test "$cf_enable_openssl" != no
; then
9380 { echo "$as_me:$LINENO: checking for OpenSSL 0.9.6 or above" >&5
9381 echo $ECHO_N "checking for OpenSSL 0.9.6 or above... $ECHO_C" >&6; }
9382 if test "$cross_compiling" = yes; then
9383 cf_openssl_version_ok
=no
9385 cat >conftest.
$ac_ext <<_ACEOF
9388 cat confdefs.h
>>conftest.
$ac_ext
9389 cat >>conftest.
$ac_ext <<_ACEOF
9390 /* end confdefs.h. */
9391 #include <openssl/opensslv.h>
9396 if ( OPENSSL_VERSION_NUMBER >= 0x00906000)
9397 exit(0); else exit(1);
9402 rm -f conftest
$ac_exeext
9403 if { (ac_try
="$ac_link"
9405 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
9406 *) ac_try_echo=$ac_try;;
9408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9409 (eval "$ac_link") 2>&5
9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9413 { (case "(($ac_try" in
9414 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
9415 *) ac_try_echo
=$ac_try;;
9417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9418 (eval "$ac_try") 2>&5
9420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421 (exit $ac_status); }; }; then
9422 cf_openssl_version_ok
=yes
9424 echo "$as_me: program exited with status $ac_status" >&5
9425 echo "$as_me: failed program was:" >&5
9426 sed 's/^/| /' conftest.
$ac_ext >&5
9429 cf_openssl_version_ok
=no
9431 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9436 if test "$cf_openssl_version_ok" = yes; then
9437 { echo "$as_me:$LINENO: result: found" >&5
9438 echo "${ECHO_T}found" >&6; }
9443 CPPFLAGS
="$CPPFLAGS $SSL_LIBS"
9445 { echo "$as_me:$LINENO: checking for RSA_free in -lcrypto" >&5
9446 echo $ECHO_N "checking for RSA_free in -lcrypto... $ECHO_C" >&6; }
9447 if test "${ac_cv_lib_crypto_RSA_free+set}" = set; then
9448 echo $ECHO_N "(cached) $ECHO_C" >&6
9450 ac_check_lib_save_LIBS
=$LIBS
9451 LIBS
="-lcrypto $LIBS"
9452 cat >conftest.
$ac_ext <<_ACEOF
9455 cat confdefs.h
>>conftest.
$ac_ext
9456 cat >>conftest.
$ac_ext <<_ACEOF
9457 /* end confdefs.h. */
9459 /* Override any GCC internal prototype to avoid an error.
9460 Use char because int might match the return type of a GCC
9461 builtin and then its argument prototype would still apply. */
9474 rm -f conftest.
$ac_objext conftest
$ac_exeext
9475 if { (ac_try
="$ac_link"
9477 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
9478 *) ac_try_echo=$ac_try;;
9480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9481 (eval "$ac_link") 2>conftest.er1
9483 grep -v '^ *+' conftest.er1 >conftest.err
9485 cat conftest.err >&5
9486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487 (exit $ac_status); } && {
9488 test -z "$ac_c_werror_flag" ||
9489 test ! -s conftest.err
9490 } && test -s conftest$ac_exeext &&
9491 $as_test_x conftest$ac_exeext; then
9492 ac_cv_lib_crypto_RSA_free=yes
9494 echo "$as_me: failed program was:" >&5
9495 sed 's/^/| /' conftest.$ac_ext >&5
9497 ac_cv_lib_crypto_RSA_free=no
9500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9501 conftest$ac_exeext conftest.$ac_ext
9502 LIBS=$ac_check_lib_save_LIBS
9504 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_RSA_free" >&5
9505 echo "${ECHO_T}$ac_cv_lib_crypto_RSA_free" >&6; }
9506 if test $ac_cv_lib_crypto_RSA_free = yes; then
9507 cat >>confdefs.h <<_ACEOF
9508 #define HAVE_LIBCRYPTO 1
9511 LIBS="-lcrypto $LIBS"
9515 SSL_LIBS="$SSL_LIBS -lcrypto"
9516 SSL_SRCS_ENABLE='$(SSL_SRCS)'
9518 { echo "$as_me:$LINENO: result: no - OpenSSL support disabled" >&5
9519 echo "${ECHO_T}no - OpenSSL support disabled" >&6; }
9523 CPPFLAGS="$save_CPPFLAGS"
9530 # Check whether --with-zlib-path was given.
9531 if test "${with_zlib_path+set}" = set; then
9532 withval=$with_zlib_path; LIBS="$LIBS -L$withval"
9536 # Check whether --enable-zlib was given.
9537 if test "${enable_zlib+set}" = set; then
9538 enableval=$enable_zlib; zlib=$enableval
9544 if test "$zlib" = yes; then
9546 if test "${ac_cv_header_zlib_h+set}" = set; then
9547 { echo "$as_me:$LINENO: checking for zlib.h" >&5
9548 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
9549 if test "${ac_cv_header_zlib_h+set}" = set; then
9550 echo $ECHO_N "(cached) $ECHO_C" >&6
9552 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9553 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
9555 # Is the header compilable?
9556 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
9557 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
9558 cat >conftest.$ac_ext <<_ACEOF
9561 cat confdefs.h >>conftest.$ac_ext
9562 cat >>conftest.$ac_ext <<_ACEOF
9563 /* end confdefs.h. */
9564 $ac_includes_default
9567 rm -f conftest.$ac_objext
9568 if { (ac_try="$ac_compile"
9570 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
9571 *) ac_try_echo
=$ac_try;;
9573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9574 (eval "$ac_compile") 2>conftest.er1
9576 grep -v '^ *+' conftest.er1
>conftest.err
9578 cat conftest.err
>&5
9579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9580 (exit $ac_status); } && {
9581 test -z "$ac_c_werror_flag" ||
9582 test ! -s conftest.err
9583 } && test -s conftest.
$ac_objext; then
9584 ac_header_compiler
=yes
9586 echo "$as_me: failed program was:" >&5
9587 sed 's/^/| /' conftest.
$ac_ext >&5
9589 ac_header_compiler
=no
9592 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9593 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9594 echo "${ECHO_T}$ac_header_compiler" >&6; }
9596 # Is the header present?
9597 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
9598 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
9599 cat >conftest.
$ac_ext <<_ACEOF
9602 cat confdefs.h
>>conftest.
$ac_ext
9603 cat >>conftest.
$ac_ext <<_ACEOF
9604 /* end confdefs.h. */
9607 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9609 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
9610 *) ac_try_echo=$ac_try;;
9612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9615 grep -v '^ *+' conftest.er1 >conftest.err
9617 cat conftest.err >&5
9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619 (exit $ac_status); } >/dev/null && {
9620 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9621 test ! -s conftest.err
9623 ac_header_preproc=yes
9625 echo "$as_me: failed program was:" >&5
9626 sed 's/^/| /' conftest.$ac_ext >&5
9628 ac_header_preproc=no
9631 rm -f conftest.err conftest.$ac_ext
9632 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9633 echo "${ECHO_T}$ac_header_preproc" >&6; }
9635 # So? What about this header?
9636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9638 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9639 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9640 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
9641 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
9642 ac_header_preproc=yes
9645 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
9646 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
9647 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
9648 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
9649 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
9650 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
9651 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
9652 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
9653 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
9654 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
9655 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
9656 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
9660 { echo "$as_me:$LINENO: checking for zlib.h" >&5
9661 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
9662 if test "${ac_cv_header_zlib_h+set}" = set; then
9663 echo $ECHO_N "(cached) $ECHO_C" >&6
9665 ac_cv_header_zlib_h=$ac_header_preproc
9667 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9668 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
9671 if test $ac_cv_header_zlib_h = yes; then
9673 { echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
9674 echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6; }
9675 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
9676 echo $ECHO_N "(cached) $ECHO_C" >&6
9678 ac_check_lib_save_LIBS=$LIBS
9680 cat >conftest.$ac_ext <<_ACEOF
9683 cat confdefs.h >>conftest.$ac_ext
9684 cat >>conftest.$ac_ext <<_ACEOF
9685 /* end confdefs.h. */
9687 /* Override any GCC internal prototype to avoid an error.
9688 Use char because int might match the return type of a GCC
9689 builtin and then its argument prototype would still apply. */
9693 char zlibVersion ();
9697 return zlibVersion ();
9702 rm -f conftest.$ac_objext conftest$ac_exeext
9703 if { (ac_try="$ac_link"
9705 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
9706 *) ac_try_echo
=$ac_try;;
9708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9709 (eval "$ac_link") 2>conftest.er1
9711 grep -v '^ *+' conftest.er1
>conftest.err
9713 cat conftest.err
>&5
9714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715 (exit $ac_status); } && {
9716 test -z "$ac_c_werror_flag" ||
9717 test ! -s conftest.err
9718 } && test -s conftest
$ac_exeext &&
9719 $as_test_x conftest
$ac_exeext; then
9720 ac_cv_lib_z_zlibVersion
=yes
9722 echo "$as_me: failed program was:" >&5
9723 sed 's/^/| /' conftest.
$ac_ext >&5
9725 ac_cv_lib_z_zlibVersion
=no
9728 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9729 conftest
$ac_exeext conftest.
$ac_ext
9730 LIBS
=$ac_check_lib_save_LIBS
9732 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
9733 echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6; }
9734 if test $ac_cv_lib_z_zlibVersion = yes; then
9739 cat >>confdefs.h
<<\_ACEOF
9758 # Check whether --enable-poll was given.
9759 if test "${enable_poll+set}" = set; then
9760 enableval
=$enable_poll; if test $enableval = yes; then
9761 SELECT_TYPE_EXPLICIT
="poll"
9769 # Check whether --enable-select was given.
9770 if test "${enable_select+set}" = set; then
9771 enableval
=$enable_select; if test $enableval = yes; then
9772 SELECT_TYPE_EXPLICIT
="select"
9780 # Check whether --enable-kqueue was given.
9781 if test "${enable_kqueue+set}" = set; then
9782 enableval
=$enable_kqueue; if test $enableval = yes; then
9783 SELECT_TYPE_EXPLICIT
="kqueue"
9791 # Check whether --enable-epoll was given.
9792 if test "${enable_epoll+set}" = set; then
9793 enableval
=$enable_epoll; if test $enableval = yes; then
9794 SELECT_TYPE_EXPLICIT
="epoll"
9796 for ac_func
in epoll_ctl
9798 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9799 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9801 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9802 echo $ECHO_N "(cached) $ECHO_C" >&6
9804 cat >conftest.
$ac_ext <<_ACEOF
9807 cat confdefs.h
>>conftest.
$ac_ext
9808 cat >>conftest.
$ac_ext <<_ACEOF
9809 /* end confdefs.h. */
9810 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9812 #define $ac_func innocuous_$ac_func
9814 /* System header to define __stub macros and hopefully few prototypes,
9815 which can conflict with char $ac_func (); below.
9816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9817 <limits.h> exists even on freestanding compilers. */
9820 # include <limits.h>
9822 # include <assert.h>
9827 /* Override any GCC internal prototype to avoid an error.
9828 Use char because int might match the return type of a GCC
9829 builtin and then its argument prototype would still apply. */
9834 /* The GNU C library defines this for functions which it implements
9835 to always fail with ENOSYS. Some functions are actually named
9836 something starting with __ and the normal name is an alias. */
9837 #if defined __stub_$ac_func || defined __stub___$ac_func
9849 rm -f conftest.
$ac_objext conftest
$ac_exeext
9850 if { (ac_try
="$ac_link"
9852 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
9853 *) ac_try_echo=$ac_try;;
9855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9856 (eval "$ac_link") 2>conftest.er1
9858 grep -v '^ *+' conftest.er1 >conftest.err
9860 cat conftest.err >&5
9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); } && {
9863 test -z "$ac_c_werror_flag" ||
9864 test ! -s conftest.err
9865 } && test -s conftest$ac_exeext &&
9866 $as_test_x conftest$ac_exeext; then
9867 eval "$as_ac_var=yes"
9869 echo "$as_me: failed program was:" >&5
9870 sed 's/^/| /' conftest.$ac_ext >&5
9872 eval "$as_ac_var=no"
9875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9876 conftest$ac_exeext conftest.$ac_ext
9878 ac_res=`eval echo '${'$as_ac_var'}'`
9879 { echo "$as_me:$LINENO: result: $ac_res" >&5
9880 echo "${ECHO_T}$ac_res" >&6; }
9881 if test `eval echo '${'$as_ac_var'}'` = yes; then
9882 cat >>confdefs.h <<_ACEOF
9883 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9899 { echo "$as_me:$LINENO: checking whether to modify confdir" >&5
9900 echo $ECHO_N "checking whether to modify confdir... $ECHO_C" >&6; }
9902 # Check whether --with-confdir was given.
9903 if test "${with_confdir+set}" = set; then
9904 withval=$with_confdir; confdir=`echo $withval | sed 's/\/$//'`
9905 { echo "$as_me:$LINENO: result: yes" >&5
9906 echo "${ECHO_T}yes" >&6; }
9908 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9909 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9910 ac_define_dir=`eval echo $confdir`
9911 ac_define_dir=`eval echo $ac_define_dir`
9912 ETC_DIR="$ac_define_dir"
9915 cat >>confdefs.h <<_ACEOF
9916 #define ETC_DIR "$ac_define_dir"
9923 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
9924 test "x$exec_prefix" = xNONE
&& exec_prefix
="${prefix}"
9925 eval echo \""$confdir"\"
9930 confdir='${prefix}/etc'
9931 { echo "$as_me:$LINENO: result: no" >&5
9932 echo "${ECHO_T}no" >&6; }
9934 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9935 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9936 ac_define_dir=`eval echo $confdir`
9937 ac_define_dir=`eval echo $ac_define_dir`
9938 ETC_DIR="$ac_define_dir"
9941 cat >>confdefs.h <<_ACEOF
9942 #define ETC_DIR "$ac_define_dir"
9949 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
9950 test "x$exec_prefix" = xNONE
&& exec_prefix
="${prefix}"
9951 eval echo \""$confdir"\"
9960 { echo "$as_me:$LINENO: checking whether to modify logdir" >&5
9961 echo $ECHO_N "checking whether to modify logdir... $ECHO_C" >&6; }
9963 # Check whether --with-logdir was given.
9964 if test "${with_logdir+set}" = set; then
9965 withval=$with_logdir; logdir=`echo $withval | sed 's/\/$//'`
9966 { echo "$as_me:$LINENO: result: yes" >&5
9967 echo "${ECHO_T}yes" >&6; }
9969 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9970 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9971 ac_define_dir=`eval echo $logdir`
9972 ac_define_dir=`eval echo $ac_define_dir`
9973 LOG_DIR="$ac_define_dir"
9976 cat >>confdefs.h <<_ACEOF
9977 #define LOG_DIR "$ac_define_dir"
9984 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
9985 test "x$exec_prefix" = xNONE
&& exec_prefix
="${prefix}"
9986 eval echo \""$logdir"\"
9991 logdir='${prefix}/logs'
9992 { echo "$as_me:$LINENO: result: no" >&5
9993 echo "${ECHO_T}no" >&6; }
9995 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9996 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9997 ac_define_dir=`eval echo $logdir`
9998 ac_define_dir=`eval echo $ac_define_dir`
9999 LOG_DIR="$ac_define_dir"
10002 cat >>confdefs.h <<_ACEOF
10003 #define LOG_DIR "$ac_define_dir"
10010 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
10011 test "x$exec_prefix" = xNONE
&& exec_prefix
="${prefix}"
10012 eval echo \""$logdir"\"
10021 { echo "$as_me:$LINENO: checking whether to modify helpdir" >&5
10022 echo $ECHO_N "checking whether to modify helpdir... $ECHO_C" >&6; }
10024 # Check whether --with-helpdir was given.
10025 if test "${with_helpdir+set}" = set; then
10026 withval=$with_helpdir; helpdir=`echo $withval | sed 's/\/$//'`
10027 { echo "$as_me:$LINENO: result: yes" >&5
10028 echo "${ECHO_T}yes" >&6; }
10030 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
10031 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10032 ac_define_dir=`eval echo $helpdir`
10033 ac_define_dir=`eval echo $ac_define_dir`
10034 HELP_DIR="$ac_define_dir"
10037 cat >>confdefs.h <<_ACEOF
10038 #define HELP_DIR "$ac_define_dir"
10045 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
10046 test "x$exec_prefix" = xNONE
&& exec_prefix
="${prefix}"
10047 eval echo \""$helpdir"\"
10052 helpdir='${prefix}/help'
10053 { echo "$as_me:$LINENO: result: no" >&5
10054 echo "${ECHO_T}no" >&6; }
10056 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
10057 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10058 ac_define_dir=`eval echo $helpdir`
10059 ac_define_dir=`eval echo $ac_define_dir`
10060 HELP_DIR="$ac_define_dir"
10063 cat >>confdefs.h <<_ACEOF
10064 #define HELP_DIR "$ac_define_dir"
10071 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
10072 test "x$exec_prefix" = xNONE
&& exec_prefix
="${prefix}"
10073 eval echo \""$helpdir"\"
10082 { echo "$as_me:$LINENO: checking whether to modify moduledir" >&5
10083 echo $ECHO_N "checking whether to modify moduledir... $ECHO_C" >&6; }
10085 # Check whether --with-moduledir was given.
10086 if test "${with_moduledir+set}" = set; then
10087 withval=$with_moduledir; moduledir=`echo $withval | sed 's/\/$//'`
10088 { echo "$as_me:$LINENO: result: yes" >&5
10089 echo "${ECHO_T}yes" >&6; }
10091 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
10092 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10093 ac_define_dir=`eval echo $moduledir`
10094 ac_define_dir=`eval echo $ac_define_dir`
10095 MODULE_DIR="$ac_define_dir"
10098 cat >>confdefs.h <<_ACEOF
10099 #define MODULE_DIR "$ac_define_dir"
10106 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
10107 test "x$exec_prefix" = xNONE
&& exec_prefix
="${prefix}"
10108 eval echo \""$moduledir"\"
10113 moduledir='${prefix}/modules'
10114 { echo "$as_me:$LINENO: result: no" >&5
10115 echo "${ECHO_T}no" >&6; }
10117 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
10118 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10119 ac_define_dir=`eval echo $moduledir`
10120 ac_define_dir=`eval echo $ac_define_dir`
10121 MODULE_DIR="$ac_define_dir"
10124 cat >>confdefs.h <<_ACEOF
10125 #define MODULE_DIR "$ac_define_dir"
10132 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
10133 test "x$exec_prefix" = xNONE
&& exec_prefix
="${prefix}"
10134 eval echo \""$moduledir"\"
10142 if test ! -z "$SELECT_TYPE_EXPLICIT"; then
10143 SELECT_TYPE="$SELECT_TYPE_EXPLICIT";
10144 echo "Forcing $SELECT_TYPE to be enabled"
10147 if test ! "x$use_select" = "xno"; then
10149 for ac_func in select
10151 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10152 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10153 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10154 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10155 echo $ECHO_N "(cached) $ECHO_C" >&6
10157 cat >conftest.$ac_ext <<_ACEOF
10160 cat confdefs.h >>conftest.$ac_ext
10161 cat >>conftest.$ac_ext <<_ACEOF
10162 /* end confdefs.h. */
10163 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10164 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10165 #define $ac_func innocuous_$ac_func
10167 /* System header to define __stub macros and hopefully few prototypes,
10168 which can conflict with char $ac_func (); below.
10169 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10170 <limits.h> exists even on freestanding compilers. */
10173 # include <limits.h>
10175 # include <assert.h>
10180 /* Override any GCC internal prototype to avoid an error.
10181 Use char because int might match the return type of a GCC
10182 builtin and then its argument prototype would still apply. */
10187 /* The GNU C library defines this for functions which it implements
10188 to always fail with ENOSYS. Some functions are actually named
10189 something starting with __ and the normal name is an alias. */
10190 #if defined __stub_$ac_func || defined __stub___$ac_func
10197 return $ac_func ();
10202 rm -f conftest.$ac_objext conftest$ac_exeext
10203 if { (ac_try="$ac_link"
10204 case "(($ac_try" in
10205 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
10206 *) ac_try_echo
=$ac_try;;
10208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10209 (eval "$ac_link") 2>conftest.er1
10211 grep -v '^ *+' conftest.er1
>conftest.err
10213 cat conftest.err
>&5
10214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215 (exit $ac_status); } && {
10216 test -z "$ac_c_werror_flag" ||
10217 test ! -s conftest.err
10218 } && test -s conftest
$ac_exeext &&
10219 $as_test_x conftest
$ac_exeext; then
10220 eval "$as_ac_var=yes"
10222 echo "$as_me: failed program was:" >&5
10223 sed 's/^/| /' conftest.
$ac_ext >&5
10225 eval "$as_ac_var=no"
10228 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10229 conftest
$ac_exeext conftest.
$ac_ext
10231 ac_res
=`eval echo '${'$as_ac_var'}'`
10232 { echo "$as_me:$LINENO: result: $ac_res" >&5
10233 echo "${ECHO_T}$ac_res" >&6; }
10234 if test `eval echo '${'$as_ac_var'}'` = yes; then
10235 cat >>confdefs.h
<<_ACEOF
10236 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10244 if test "x$haveselect" = "xyes" ; then
10245 SELECT_TYPE
="select"
10249 if test ! "x$use_poll" = "xno"; then
10251 for ac_func
in poll
10253 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10254 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10255 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10256 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10257 echo $ECHO_N "(cached) $ECHO_C" >&6
10259 cat >conftest.
$ac_ext <<_ACEOF
10262 cat confdefs.h
>>conftest.
$ac_ext
10263 cat >>conftest.
$ac_ext <<_ACEOF
10264 /* end confdefs.h. */
10265 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10266 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10267 #define $ac_func innocuous_$ac_func
10269 /* System header to define __stub macros and hopefully few prototypes,
10270 which can conflict with char $ac_func (); below.
10271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10272 <limits.h> exists even on freestanding compilers. */
10275 # include <limits.h>
10277 # include <assert.h>
10282 /* Override any GCC internal prototype to avoid an error.
10283 Use char because int might match the return type of a GCC
10284 builtin and then its argument prototype would still apply. */
10289 /* The GNU C library defines this for functions which it implements
10290 to always fail with ENOSYS. Some functions are actually named
10291 something starting with __ and the normal name is an alias. */
10292 #if defined __stub_$ac_func || defined __stub___$ac_func
10299 return $ac_func ();
10304 rm -f conftest.
$ac_objext conftest
$ac_exeext
10305 if { (ac_try
="$ac_link"
10306 case "(($ac_try" in
10307 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
10308 *) ac_try_echo=$ac_try;;
10310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10311 (eval "$ac_link") 2>conftest.er1
10313 grep -v '^ *+' conftest.er1 >conftest.err
10315 cat conftest.err >&5
10316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); } && {
10318 test -z "$ac_c_werror_flag" ||
10319 test ! -s conftest.err
10320 } && test -s conftest$ac_exeext &&
10321 $as_test_x conftest$ac_exeext; then
10322 eval "$as_ac_var=yes"
10324 echo "$as_me: failed program was:" >&5
10325 sed 's/^/| /' conftest.$ac_ext >&5
10327 eval "$as_ac_var=no"
10330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10331 conftest$ac_exeext conftest.$ac_ext
10333 ac_res=`eval echo '${'$as_ac_var'}'`
10334 { echo "$as_me:$LINENO: result: $ac_res" >&5
10335 echo "${ECHO_T}$ac_res" >&6; }
10336 if test `eval echo '${'$as_ac_var'}'` = yes; then
10337 cat >>confdefs.h <<_ACEOF
10338 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10346 if test "x$havepoll" = "xyes" ; then
10351 if test ! "x$use_kqueue" = "xno"; then
10353 for ac_func in kevent
10355 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10356 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10357 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10358 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10359 echo $ECHO_N "(cached) $ECHO_C" >&6
10361 cat >conftest.$ac_ext <<_ACEOF
10364 cat confdefs.h >>conftest.$ac_ext
10365 cat >>conftest.$ac_ext <<_ACEOF
10366 /* end confdefs.h. */
10367 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10369 #define $ac_func innocuous_$ac_func
10371 /* System header to define __stub macros and hopefully few prototypes,
10372 which can conflict with char $ac_func (); below.
10373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10374 <limits.h> exists even on freestanding compilers. */
10377 # include <limits.h>
10379 # include <assert.h>
10384 /* Override any GCC internal prototype to avoid an error.
10385 Use char because int might match the return type of a GCC
10386 builtin and then its argument prototype would still apply. */
10391 /* The GNU C library defines this for functions which it implements
10392 to always fail with ENOSYS. Some functions are actually named
10393 something starting with __ and the normal name is an alias. */
10394 #if defined __stub_$ac_func || defined __stub___$ac_func
10401 return $ac_func ();
10406 rm -f conftest.$ac_objext conftest$ac_exeext
10407 if { (ac_try="$ac_link"
10408 case "(($ac_try" in
10409 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
10410 *) ac_try_echo
=$ac_try;;
10412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10413 (eval "$ac_link") 2>conftest.er1
10415 grep -v '^ *+' conftest.er1
>conftest.err
10417 cat conftest.err
>&5
10418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419 (exit $ac_status); } && {
10420 test -z "$ac_c_werror_flag" ||
10421 test ! -s conftest.err
10422 } && test -s conftest
$ac_exeext &&
10423 $as_test_x conftest
$ac_exeext; then
10424 eval "$as_ac_var=yes"
10426 echo "$as_me: failed program was:" >&5
10427 sed 's/^/| /' conftest.
$ac_ext >&5
10429 eval "$as_ac_var=no"
10432 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10433 conftest
$ac_exeext conftest.
$ac_ext
10435 ac_res
=`eval echo '${'$as_ac_var'}'`
10436 { echo "$as_me:$LINENO: result: $ac_res" >&5
10437 echo "${ECHO_T}$ac_res" >&6; }
10438 if test `eval echo '${'$as_ac_var'}'` = yes; then
10439 cat >>confdefs.h
<<_ACEOF
10440 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10448 if test "x$havekqueue" = "xyes" ; then
10449 SELECT_TYPE
="kqueue"
10453 if test ! "x$use_epoll" = "xno"; then
10455 for ac_func
in epoll_ctl
10457 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10458 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10459 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10460 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10461 echo $ECHO_N "(cached) $ECHO_C" >&6
10463 cat >conftest.
$ac_ext <<_ACEOF
10466 cat confdefs.h
>>conftest.
$ac_ext
10467 cat >>conftest.
$ac_ext <<_ACEOF
10468 /* end confdefs.h. */
10469 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10470 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10471 #define $ac_func innocuous_$ac_func
10473 /* System header to define __stub macros and hopefully few prototypes,
10474 which can conflict with char $ac_func (); below.
10475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10476 <limits.h> exists even on freestanding compilers. */
10479 # include <limits.h>
10481 # include <assert.h>
10486 /* Override any GCC internal prototype to avoid an error.
10487 Use char because int might match the return type of a GCC
10488 builtin and then its argument prototype would still apply. */
10493 /* The GNU C library defines this for functions which it implements
10494 to always fail with ENOSYS. Some functions are actually named
10495 something starting with __ and the normal name is an alias. */
10496 #if defined __stub_$ac_func || defined __stub___$ac_func
10503 return $ac_func ();
10508 rm -f conftest.
$ac_objext conftest
$ac_exeext
10509 if { (ac_try
="$ac_link"
10510 case "(($ac_try" in
10511 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
10512 *) ac_try_echo=$ac_try;;
10514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10515 (eval "$ac_link") 2>conftest.er1
10517 grep -v '^ *+' conftest.er1 >conftest.err
10519 cat conftest.err >&5
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); } && {
10522 test -z "$ac_c_werror_flag" ||
10523 test ! -s conftest.err
10524 } && test -s conftest$ac_exeext &&
10525 $as_test_x conftest$ac_exeext; then
10526 eval "$as_ac_var=yes"
10528 echo "$as_me: failed program was:" >&5
10529 sed 's/^/| /' conftest.$ac_ext >&5
10531 eval "$as_ac_var=no"
10534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10535 conftest$ac_exeext conftest.$ac_ext
10537 ac_res=`eval echo '${'$as_ac_var'}'`
10538 { echo "$as_me:$LINENO: result: $ac_res" >&5
10539 echo "${ECHO_T}$ac_res" >&6; }
10540 if test `eval echo '${'$as_ac_var'}'` = yes; then
10541 cat >>confdefs.h <<_ACEOF
10542 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10550 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
10551 if test "x$haveepoll" = "xyes" ; then
10552 { echo "$as_me:$LINENO: checking for epoll support in kernel" >&5
10553 echo $ECHO_N "checking for epoll support in kernel... $ECHO_C" >&6; }
10554 if test "$cross_compiling" = yes; then
10555 { echo "$as_me:$LINENO: result: no" >&5
10556 echo "${ECHO_T}no" >&6; }
10558 cat >conftest.$ac_ext <<_ACEOF
10561 cat confdefs.h >>conftest.$ac_ext
10562 cat >>conftest.$ac_ext <<_ACEOF
10563 /* end confdefs.h. */
10564 #include <stdint.h>
10565 #include <sys/param.h>
10566 #include <sys/types.h>
10567 #include <sys/epoll.h>
10568 #include <sys/syscall.h>
10569 #include <unistd.h>
10572 main(int argc, char **argv)
10576 epfd = epoll_create(256);
10577 exit (epfd == -1 ? 1 : 0);
10580 rm -f conftest$ac_exeext
10581 if { (ac_try="$ac_link"
10582 case "(($ac_try" in
10583 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
10584 *) ac_try_echo
=$ac_try;;
10586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10587 (eval "$ac_link") 2>&5
10589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10591 { (case "(($ac_try" in
10592 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
10593 *) ac_try_echo=$ac_try;;
10595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10596 (eval "$ac_try") 2>&5
10598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599 (exit $ac_status); }; }; then
10600 { echo "$as_me:$LINENO: result: yes" >&5
10601 echo "${ECHO_T}yes" >&6; }
10603 cat >>confdefs.h <<\_ACEOF
10604 #define HAVE_EPOLL 1
10607 SELECT_TYPE="epoll"
10609 echo "$as_me: program exited with status $ac_status" >&5
10610 echo "$as_me: failed program was:" >&5
10611 sed 's/^/| /' conftest.$ac_ext >&5
10613 ( exit $ac_status )
10614 { echo "$as_me:$LINENO: result: no" >&5
10615 echo "${ECHO_T}no" >&6; }
10617 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10624 haveepollsyscall=no
10626 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
10627 if test "x$haveepoll" = "xno" ; then
10628 { echo "$as_me:$LINENO: checking for epoll system call" >&5
10629 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6; }
10630 if test "$cross_compiling" = yes; then
10631 { echo "$as_me:$LINENO: result: no" >&5
10632 echo "${ECHO_T}no" >&6; }
10634 cat >conftest.$ac_ext <<_ACEOF
10637 cat confdefs.h >>conftest.$ac_ext
10638 cat >>conftest.$ac_ext <<_ACEOF
10639 /* end confdefs.h. */
10640 #include <stdint.h>
10641 #include <sys/param.h>
10642 #include <sys/types.h>
10643 #include <sys/epoll.h>
10644 #include <sys/syscall.h>
10645 #include <unistd.h>
10648 epoll_create(int size)
10650 return (syscall(__NR_epoll_create, size));
10654 main(int argc, char **argv)
10658 epfd = epoll_create(256);
10659 exit (epfd == -1 ? 1 : 0);
10662 rm -f conftest$ac_exeext
10663 if { (ac_try="$ac_link"
10664 case "(($ac_try" in
10665 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
10666 *) ac_try_echo
=$ac_try;;
10668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10669 (eval "$ac_link") 2>&5
10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10673 { (case "(($ac_try" in
10674 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
10675 *) ac_try_echo=$ac_try;;
10677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10678 (eval "$ac_try") 2>&5
10680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681 (exit $ac_status); }; }; then
10682 { echo "$as_me:$LINENO: result: yes" >&5
10683 echo "${ECHO_T}yes" >&6; }
10685 cat >>confdefs.h <<\_ACEOF
10686 #define HAVE_EPOLL 1
10689 SELECT_TYPE="epoll"
10691 echo "$as_me: program exited with status $ac_status" >&5
10692 echo "$as_me: failed program was:" >&5
10693 sed 's/^/| /' conftest.$ac_ext >&5
10695 ( exit $ac_status )
10696 { echo "$as_me:$LINENO: result: no" >&5
10697 echo "${ECHO_T}no" >&6; }
10699 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10710 if test -z "$SELECT_TYPE"; then
10711 { { echo "$as_me:$LINENO: error: Unable to find a usable IO interface" >&5
10712 echo "$as_me: error: Unable to find a usable IO interface" >&2;}
10713 { (exit 1); exit 1; }; }
10716 echo "Using $SELECT_TYPE for select loop."
10719 cat >>confdefs.h <<_ACEOF
10720 #define SELECT_TYPE "$SELECT_TYPE"
10727 # Check whether --enable-assert was given.
10728 if test "${enable_assert+set}" = set; then
10729 enableval=$enable_assert; assert=$enableval
10735 if test "$assert" = no; then
10737 cat >>confdefs.h <<\_ACEOF
10741 elif test "$assert" = soft; then
10743 cat >>confdefs.h <<\_ACEOF
10744 #define SOFT_ASSERT 1
10748 cat >>confdefs.h <<\_ACEOF
10752 elif test "$assert" = yes; then
10756 { echo "$as_me:$LINENO: checking if you want IO Debugging hooks" >&5
10757 echo $ECHO_N "checking if you want IO Debugging hooks... $ECHO_C" >&6; }
10758 # Check whether --enable-iodebug was given.
10759 if test "${enable_iodebug+set}" = set; then
10760 enableval=$enable_iodebug; iodebug=$enableval
10766 if test "$iodebug" = yes; then
10768 cat >>confdefs.h <<\_ACEOF
10769 #define USE_IODEBUG_HOOKS 1
10772 { echo "$as_me:$LINENO: result: yes" >&5
10773 echo "${ECHO_T}yes" >&6; }
10775 { echo "$as_me:$LINENO: result: no" >&5
10776 echo "${ECHO_T}no" >&6; }
10780 { echo "$as_me:$LINENO: checking if you want to do a profile build" >&5
10781 echo $ECHO_N "checking if you want to do a profile build... $ECHO_C" >&6; }
10782 # Check whether --enable-profile was given.
10783 if test "${enable_profile+set}" = set; then
10784 enableval=$enable_profile; profile=$enableval
10790 if test "$profile" = yes; then
10791 if test "$ac_cv_c_compiler_gnu" = yes; then
10792 IRC_CFLAGS="$IRC_CFLAGS -pg"
10793 { echo "$as_me:$LINENO: result: yes, adding -pg" >&5
10794 echo "${ECHO_T}yes, adding -pg" >&6; }
10796 cat >>confdefs.h <<\_ACEOF
10797 #define CHARYBDIS_PROFILE 1
10801 { echo "$as_me:$LINENO: result: no, profile builds only work with gcc" >&5
10802 echo "${ECHO_T}no, profile builds only work with gcc" >&6; }
10805 { echo "$as_me:$LINENO: result: no" >&5
10806 echo "${ECHO_T}no" >&6; }
10809 # Check whether --enable-balloc was given.
10810 if test "${enable_balloc+set}" = set; then
10811 enableval=$enable_balloc; balloc=$enableval
10817 if test "$balloc" = no; then
10819 cat >>confdefs.h <<\_ACEOF
10825 # Check whether --enable-small-net was given.
10826 if test "${enable_small_net+set}" = set; then
10827 enableval=$enable_small_net; small_net=$enableval
10833 if test "$small_net" = yes; then
10835 cat >>confdefs.h <<\_ACEOF
10836 #define NICKNAMEHISTORYLENGTH 1500
10840 cat >>confdefs.h <<\_ACEOF
10841 #define CHANNEL_HEAP_SIZE 256
10845 cat >>confdefs.h <<\_ACEOF
10846 #define BAN_HEAP_SIZE 128
10850 cat >>confdefs.h <<\_ACEOF
10851 #define CLIENT_HEAP_SIZE 256
10855 cat >>confdefs.h <<\_ACEOF
10856 #define LCLIENT_HEAP_SIZE 128
10860 cat >>confdefs.h <<\_ACEOF
10861 #define PCLIENT_HEAP_SIZE 32
10865 cat >>confdefs.h <<\_ACEOF
10866 #define USER_HEAP_SIZE 128
10870 cat >>confdefs.h <<\_ACEOF
10871 #define DNODE_HEAP_SIZE 256
10875 cat >>confdefs.h <<\_ACEOF
10876 #define TOPIC_HEAP_SIZE 256
10880 cat >>confdefs.h <<\_ACEOF
10881 #define LINEBUF_HEAP_SIZE 128
10885 cat >>confdefs.h <<\_ACEOF
10886 #define MEMBER_HEAP_SIZE 256
10890 cat >>confdefs.h <<\_ACEOF
10891 #define ND_HEAP_SIZE 128
10895 cat >>confdefs.h <<\_ACEOF
10896 #define CONFITEM_HEAP_SIZE 128
10900 cat >>confdefs.h <<\_ACEOF
10901 #define MONITOR_HEAP_SIZE 128
10906 cat >>confdefs.h <<\_ACEOF
10907 #define NICKNAMEHISTORYLENGTH 15000
10911 cat >>confdefs.h <<\_ACEOF
10912 #define CHANNEL_HEAP_SIZE 8192
10916 cat >>confdefs.h <<\_ACEOF
10917 #define BAN_HEAP_SIZE 4096
10921 cat >>confdefs.h <<\_ACEOF
10922 #define CLIENT_HEAP_SIZE 8192
10926 cat >>confdefs.h <<\_ACEOF
10927 #define LCLIENT_HEAP_SIZE 1024
10931 cat >>confdefs.h <<\_ACEOF
10932 #define PCLIENT_HEAP_SIZE 256
10936 cat >>confdefs.h <<\_ACEOF
10937 #define USER_HEAP_SIZE 8192
10941 cat >>confdefs.h <<\_ACEOF
10942 #define DNODE_HEAP_SIZE 8192
10946 cat >>confdefs.h <<\_ACEOF
10947 #define TOPIC_HEAP_SIZE 4096
10951 cat >>confdefs.h <<\_ACEOF
10952 #define LINEBUF_HEAP_SIZE 2048
10956 cat >>confdefs.h <<\_ACEOF
10957 #define MEMBER_HEAP_SIZE 32768
10961 cat >>confdefs.h <<\_ACEOF
10962 #define ND_HEAP_SIZE 512
10966 cat >>confdefs.h <<\_ACEOF
10967 #define CONFITEM_HEAP_SIZE 256
10971 cat >>confdefs.h <<\_ACEOF
10972 #define MONITOR_HEAP_SIZE 1024
10978 # Check whether --with-nicklen was given.
10979 if test "${with_nicklen+set}" = set; then
10980 withval=$with_nicklen;
10981 if test $withval -ge 50; then
10983 { echo "$as_me:$LINENO: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&5
10984 echo "$as_me: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&2;}
10995 # Check whether --with-topiclen was given.
10996 if test "${with_topiclen+set}" = set; then
10997 withval=$with_topiclen;
10998 if test $withval -ge 390; then
11000 { echo "$as_me:$LINENO: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&5
11001 echo "$as_me: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&2;}
11012 cat >>confdefs.h <<_ACEOF
11013 #define TOPICLEN ${TOPICLEN}
11017 cat >>confdefs.h <<_ACEOF
11018 #define NICKLEN (${NICKLEN}+1)
11022 # Check whether --enable-shared-modules was given.
11023 if test "${enable_shared_modules+set}" = set; then
11024 enableval=$enable_shared_modules; shared_modules=$enableval
11026 shared_modules="yes"
11030 if test "$shared_modules" = yes; then
11032 if test "$CYGWIN" = yes; then
11033 { echo "$as_me:$LINENO: WARNING: disabling shared modules; Cygwin is at present unable to build them." >&5
11034 echo "$as_me: WARNING: disabling shared modules; Cygwin is at present unable to build them." >&2;}
11035 shared_modules="no"
11038 if test "$CC" = tcc -a "$TenDRA" = "no"; then
11039 { echo "$as_me:$LINENO: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&5
11040 echo "$as_me: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&2;}
11041 shared_modules="no"
11045 if test "$shared_modules" = yes; then
11046 DYNLINK_C=dynlink.c
11048 for ac_header in dlfcn.h
11050 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11052 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11055 echo $ECHO_N "(cached) $ECHO_C" >&6
11057 ac_res=`eval echo '${'$as_ac_Header'}'`
11058 { echo "$as_me:$LINENO: result: $ac_res" >&5
11059 echo "${ECHO_T}$ac_res" >&6; }
11061 # Is the header compilable?
11062 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11063 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11064 cat >conftest.$ac_ext <<_ACEOF
11067 cat confdefs.h >>conftest.$ac_ext
11068 cat >>conftest.$ac_ext <<_ACEOF
11069 /* end confdefs.h. */
11070 $ac_includes_default
11071 #include <$ac_header>
11073 rm -f conftest.$ac_objext
11074 if { (ac_try="$ac_compile"
11075 case "(($ac_try" in
11076 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
11077 *) ac_try_echo
=$ac_try;;
11079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11080 (eval "$ac_compile") 2>conftest.er1
11082 grep -v '^ *+' conftest.er1
>conftest.err
11084 cat conftest.err
>&5
11085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11086 (exit $ac_status); } && {
11087 test -z "$ac_c_werror_flag" ||
11088 test ! -s conftest.err
11089 } && test -s conftest.
$ac_objext; then
11090 ac_header_compiler
=yes
11092 echo "$as_me: failed program was:" >&5
11093 sed 's/^/| /' conftest.
$ac_ext >&5
11095 ac_header_compiler
=no
11098 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11099 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11100 echo "${ECHO_T}$ac_header_compiler" >&6; }
11102 # Is the header present?
11103 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11104 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11105 cat >conftest.
$ac_ext <<_ACEOF
11108 cat confdefs.h
>>conftest.
$ac_ext
11109 cat >>conftest.
$ac_ext <<_ACEOF
11110 /* end confdefs.h. */
11111 #include <$ac_header>
11113 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11114 case "(($ac_try" in
11115 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
11116 *) ac_try_echo=$ac_try;;
11118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11119 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11121 grep -v '^ *+' conftest.er1 >conftest.err
11123 cat conftest.err >&5
11124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11125 (exit $ac_status); } >/dev/null && {
11126 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11127 test ! -s conftest.err
11129 ac_header_preproc=yes
11131 echo "$as_me: failed program was:" >&5
11132 sed 's/^/| /' conftest.$ac_ext >&5
11134 ac_header_preproc=no
11137 rm -f conftest.err conftest.$ac_ext
11138 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11139 echo "${ECHO_T}$ac_header_preproc" >&6; }
11141 # So? What about this header?
11142 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11144 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11145 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11146 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11147 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11148 ac_header_preproc=yes
11151 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11152 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11153 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11154 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11155 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11156 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11157 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11158 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11159 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11160 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11161 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11162 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11166 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11167 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11168 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11169 echo $ECHO_N "(cached) $ECHO_C" >&6
11171 eval "$as_ac_Header=\$ac_header_preproc"
11173 ac_res=`eval echo '${'$as_ac_Header'}'`
11174 { echo "$as_me:$LINENO: result: $ac_res" >&5
11175 echo "${ECHO_T}$ac_res" >&6; }
11178 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11179 cat >>confdefs.h <<_ACEOF
11180 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11187 { echo "$as_me:$LINENO: checking for library containing shl_load" >&5
11188 echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6; }
11189 if test "${ac_cv_search_shl_load+set}" = set; then
11190 echo $ECHO_N "(cached) $ECHO_C" >&6
11192 ac_func_search_save_LIBS=$LIBS
11193 cat >conftest.$ac_ext <<_ACEOF
11196 cat confdefs.h >>conftest.$ac_ext
11197 cat >>conftest.$ac_ext <<_ACEOF
11198 /* end confdefs.h. */
11200 /* Override any GCC internal prototype to avoid an error.
11201 Use char because int might match the return type of a GCC
11202 builtin and then its argument prototype would still apply. */
11210 return shl_load ();
11215 for ac_lib in '' dld; do
11216 if test -z "$ac_lib"; then
11217 ac_res="none required"
11220 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11222 rm -f conftest.$ac_objext conftest$ac_exeext
11223 if { (ac_try="$ac_link"
11224 case "(($ac_try" in
11225 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
11226 *) ac_try_echo
=$ac_try;;
11228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11229 (eval "$ac_link") 2>conftest.er1
11231 grep -v '^ *+' conftest.er1
>conftest.err
11233 cat conftest.err
>&5
11234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235 (exit $ac_status); } && {
11236 test -z "$ac_c_werror_flag" ||
11237 test ! -s conftest.err
11238 } && test -s conftest
$ac_exeext &&
11239 $as_test_x conftest
$ac_exeext; then
11240 ac_cv_search_shl_load
=$ac_res
11242 echo "$as_me: failed program was:" >&5
11243 sed 's/^/| /' conftest.
$ac_ext >&5
11248 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11250 if test "${ac_cv_search_shl_load+set}" = set; then
11254 if test "${ac_cv_search_shl_load+set}" = set; then
11257 ac_cv_search_shl_load
=no
11259 rm conftest.
$ac_ext
11260 LIBS
=$ac_func_search_save_LIBS
11262 { echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
11263 echo "${ECHO_T}$ac_cv_search_shl_load" >&6; }
11264 ac_res
=$ac_cv_search_shl_load
11265 if test "$ac_res" != no
; then
11266 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11269 cat >>confdefs.h
<<\_ACEOF
11270 #define HAVE_SHL_LOAD 1
11274 MOD_TARGET
=hpux_shared
11275 SEDOBJ
="s/\.o/.sl/g"
11279 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
11280 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
11281 if test "${ac_cv_search_dlopen+set}" = set; then
11282 echo $ECHO_N "(cached) $ECHO_C" >&6
11284 ac_func_search_save_LIBS
=$LIBS
11285 cat >conftest.
$ac_ext <<_ACEOF
11288 cat confdefs.h
>>conftest.
$ac_ext
11289 cat >>conftest.
$ac_ext <<_ACEOF
11290 /* end confdefs.h. */
11292 /* Override any GCC internal prototype to avoid an error.
11293 Use char because int might match the return type of a GCC
11294 builtin and then its argument prototype would still apply. */
11307 for ac_lib
in '' dl c_r
; do
11308 if test -z "$ac_lib"; then
11309 ac_res
="none required"
11312 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11314 rm -f conftest.
$ac_objext conftest
$ac_exeext
11315 if { (ac_try
="$ac_link"
11316 case "(($ac_try" in
11317 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
11318 *) ac_try_echo=$ac_try;;
11320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11321 (eval "$ac_link") 2>conftest.er1
11323 grep -v '^ *+' conftest.er1 >conftest.err
11325 cat conftest.err >&5
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); } && {
11328 test -z "$ac_c_werror_flag" ||
11329 test ! -s conftest.err
11330 } && test -s conftest$ac_exeext &&
11331 $as_test_x conftest$ac_exeext; then
11332 ac_cv_search_dlopen=$ac_res
11334 echo "$as_me: failed program was:" >&5
11335 sed 's/^/| /' conftest.$ac_ext >&5
11340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11342 if test "${ac_cv_search_dlopen+set}" = set; then
11346 if test "${ac_cv_search_dlopen+set}" = set; then
11349 ac_cv_search_dlopen=no
11351 rm conftest.$ac_ext
11352 LIBS=$ac_func_search_save_LIBS
11354 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
11355 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
11356 ac_res=$ac_cv_search_dlopen
11357 if test "$ac_res" != no; then
11358 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11361 cat >>confdefs.h <<\_ACEOF
11362 #define HAVE_DLOPEN 1
11366 MOD_TARGET=shared_modules
11367 SEDOBJ="s/\.o/.so/g"
11368 if test "$AppleGCC" = yes; then
11370 for ac_header in mach-o/dyld.h
11372 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11374 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11377 echo $ECHO_N "(cached) $ECHO_C" >&6
11379 ac_res=`eval echo '${'$as_ac_Header'}'`
11380 { echo "$as_me:$LINENO: result: $ac_res" >&5
11381 echo "${ECHO_T}$ac_res" >&6; }
11383 # Is the header compilable?
11384 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11385 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11386 cat >conftest.$ac_ext <<_ACEOF
11389 cat confdefs.h >>conftest.$ac_ext
11390 cat >>conftest.$ac_ext <<_ACEOF
11391 /* end confdefs.h. */
11392 $ac_includes_default
11393 #include <$ac_header>
11395 rm -f conftest.$ac_objext
11396 if { (ac_try="$ac_compile"
11397 case "(($ac_try" in
11398 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
11399 *) ac_try_echo
=$ac_try;;
11401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11402 (eval "$ac_compile") 2>conftest.er1
11404 grep -v '^ *+' conftest.er1
>conftest.err
11406 cat conftest.err
>&5
11407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408 (exit $ac_status); } && {
11409 test -z "$ac_c_werror_flag" ||
11410 test ! -s conftest.err
11411 } && test -s conftest.
$ac_objext; then
11412 ac_header_compiler
=yes
11414 echo "$as_me: failed program was:" >&5
11415 sed 's/^/| /' conftest.
$ac_ext >&5
11417 ac_header_compiler
=no
11420 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11421 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11422 echo "${ECHO_T}$ac_header_compiler" >&6; }
11424 # Is the header present?
11425 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11426 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11427 cat >conftest.
$ac_ext <<_ACEOF
11430 cat confdefs.h
>>conftest.
$ac_ext
11431 cat >>conftest.
$ac_ext <<_ACEOF
11432 /* end confdefs.h. */
11433 #include <$ac_header>
11435 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11436 case "(($ac_try" in
11437 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
11438 *) ac_try_echo=$ac_try;;
11440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11441 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11443 grep -v '^ *+' conftest.er1 >conftest.err
11445 cat conftest.err >&5
11446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447 (exit $ac_status); } >/dev/null && {
11448 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11449 test ! -s conftest.err
11451 ac_header_preproc=yes
11453 echo "$as_me: failed program was:" >&5
11454 sed 's/^/| /' conftest.$ac_ext >&5
11456 ac_header_preproc=no
11459 rm -f conftest.err conftest.$ac_ext
11460 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11461 echo "${ECHO_T}$ac_header_preproc" >&6; }
11463 # So? What about this header?
11464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11469 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11470 ac_header_preproc=yes
11473 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11475 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11476 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11477 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11478 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11479 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11480 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11483 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11484 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11488 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11490 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11491 echo $ECHO_N "(cached) $ECHO_C" >&6
11493 eval "$as_ac_Header=\$ac_header_preproc"
11495 ac_res=`eval echo '${'$as_ac_Header'}'`
11496 { echo "$as_me:$LINENO: result: $ac_res" >&5
11497 echo "${ECHO_T}$ac_res" >&6; }
11500 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11501 cat >>confdefs.h <<_ACEOF
11502 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11510 { echo "$as_me:$LINENO: checking for dlsym" >&5
11511 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6; }
11512 if test "${ac_cv_func_dlsym+set}" = set; then
11513 echo $ECHO_N "(cached) $ECHO_C" >&6
11515 cat >conftest.$ac_ext <<_ACEOF
11518 cat confdefs.h >>conftest.$ac_ext
11519 cat >>conftest.$ac_ext <<_ACEOF
11520 /* end confdefs.h. */
11521 /* Define dlsym to an innocuous variant, in case <limits.h> declares dlsym.
11522 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11523 #define dlsym innocuous_dlsym
11525 /* System header to define __stub macros and hopefully few prototypes,
11526 which can conflict with char dlsym (); below.
11527 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11528 <limits.h> exists even on freestanding compilers. */
11531 # include <limits.h>
11533 # include <assert.h>
11538 /* Override any GCC internal prototype to avoid an error.
11539 Use char because int might match the return type of a GCC
11540 builtin and then its argument prototype would still apply. */
11545 /* The GNU C library defines this for functions which it implements
11546 to always fail with ENOSYS. Some functions are actually named
11547 something starting with __ and the normal name is an alias. */
11548 #if defined __stub_dlsym || defined __stub___dlsym
11560 rm -f conftest.$ac_objext conftest$ac_exeext
11561 if { (ac_try="$ac_link"
11562 case "(($ac_try" in
11563 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
11564 *) ac_try_echo
=$ac_try;;
11566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11567 (eval "$ac_link") 2>conftest.er1
11569 grep -v '^ *+' conftest.er1
>conftest.err
11571 cat conftest.err
>&5
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); } && {
11574 test -z "$ac_c_werror_flag" ||
11575 test ! -s conftest.err
11576 } && test -s conftest
$ac_exeext &&
11577 $as_test_x conftest
$ac_exeext; then
11578 ac_cv_func_dlsym
=yes
11580 echo "$as_me: failed program was:" >&5
11581 sed 's/^/| /' conftest.
$ac_ext >&5
11583 ac_cv_func_dlsym
=no
11586 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11587 conftest
$ac_exeext conftest.
$ac_ext
11589 { echo "$as_me:$LINENO: result: $ac_cv_func_dlsym" >&5
11590 echo "${ECHO_T}$ac_cv_func_dlsym" >&6; }
11591 if test $ac_cv_func_dlsym = yes; then
11595 { echo "$as_me:$LINENO: WARNING: dlsym is not available, shared modules disabled" >&5
11596 echo "$as_me: WARNING: dlsym is not available, shared modules disabled" >&2;}
11602 for ac_func
in dlfunc
11604 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11605 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11606 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11607 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11608 echo $ECHO_N "(cached) $ECHO_C" >&6
11610 cat >conftest.
$ac_ext <<_ACEOF
11613 cat confdefs.h
>>conftest.
$ac_ext
11614 cat >>conftest.
$ac_ext <<_ACEOF
11615 /* end confdefs.h. */
11616 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11617 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11618 #define $ac_func innocuous_$ac_func
11620 /* System header to define __stub macros and hopefully few prototypes,
11621 which can conflict with char $ac_func (); below.
11622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11623 <limits.h> exists even on freestanding compilers. */
11626 # include <limits.h>
11628 # include <assert.h>
11633 /* Override any GCC internal prototype to avoid an error.
11634 Use char because int might match the return type of a GCC
11635 builtin and then its argument prototype would still apply. */
11640 /* The GNU C library defines this for functions which it implements
11641 to always fail with ENOSYS. Some functions are actually named
11642 something starting with __ and the normal name is an alias. */
11643 #if defined __stub_$ac_func || defined __stub___$ac_func
11650 return $ac_func ();
11655 rm -f conftest.
$ac_objext conftest
$ac_exeext
11656 if { (ac_try
="$ac_link"
11657 case "(($ac_try" in
11658 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
11659 *) ac_try_echo=$ac_try;;
11661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11662 (eval "$ac_link") 2>conftest.er1
11664 grep -v '^ *+' conftest.er1 >conftest.err
11666 cat conftest.err >&5
11667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668 (exit $ac_status); } && {
11669 test -z "$ac_c_werror_flag" ||
11670 test ! -s conftest.err
11671 } && test -s conftest$ac_exeext &&
11672 $as_test_x conftest$ac_exeext; then
11673 eval "$as_ac_var=yes"
11675 echo "$as_me: failed program was:" >&5
11676 sed 's/^/| /' conftest.$ac_ext >&5
11678 eval "$as_ac_var=no"
11681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11682 conftest$ac_exeext conftest.$ac_ext
11684 ac_res=`eval echo '${'$as_ac_var'}'`
11685 { echo "$as_me:$LINENO: result: $ac_res" >&5
11686 echo "${ECHO_T}$ac_res" >&6; }
11687 if test `eval echo '${'$as_ac_var'}'` = yes; then
11688 cat >>confdefs.h <<_ACEOF
11689 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11708 cat >>confdefs.h <<_ACEOF
11709 #define SHARED_SUFFIX "$SUFFIX"
11713 if test "$shared_modules" = yes; then
11714 # The GNU linker requires the -export-dynamic option to make
11715 # all symbols visible in the dynamic symbol table.
11716 hold_ldflags=$LDFLAGS
11717 { echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
11718 echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6; }
11719 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic -Werror"
11720 cat >conftest.$ac_ext <<_ACEOF
11723 cat confdefs.h >>conftest.$ac_ext
11724 cat >>conftest.$ac_ext <<_ACEOF
11725 /* end confdefs.h. */
11735 rm -f conftest.$ac_objext conftest$ac_exeext
11736 if { (ac_try="$ac_link"
11737 case "(($ac_try" in
11738 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
11739 *) ac_try_echo
=$ac_try;;
11741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11742 (eval "$ac_link") 2>conftest.er1
11744 grep -v '^ *+' conftest.er1
>conftest.err
11746 cat conftest.err
>&5
11747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748 (exit $ac_status); } && {
11749 test -z "$ac_c_werror_flag" ||
11750 test ! -s conftest.err
11751 } && test -s conftest
$ac_exeext &&
11752 $as_test_x conftest
$ac_exeext; then
11755 echo "$as_me: failed program was:" >&5
11756 sed 's/^/| /' conftest.
$ac_ext >&5
11761 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11762 conftest
$ac_exeext conftest.
$ac_ext
11763 LDFLAGS
=$hold_ldflags
11765 if expr "`uname -s`" : ^IRIX
>/dev
/null
2>&1; then
11766 found
="no, IRIX ld uses -B,dynamic"
11767 LDFLAGS
="${LDFLAGS} -Wl,-B,dynamic"
11770 if expr "`uname -s`" : ^AIX
>/dev
/null
2>&1; then
11771 found
="no, AIX ld uses -G -brtl"
11772 LDFLAGS
="${LDFLAGS} -Wl,-G,-brtl"
11775 { echo "$as_me:$LINENO: result: $found" >&5
11776 echo "${ECHO_T}$found" >&6; }
11778 if test "$found" = yes; then
11779 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic"
11782 { echo "$as_me:$LINENO: checking for compiler option to produce PIC" >&5
11783 echo $ECHO_N "checking for compiler option to produce PIC... $ECHO_C" >&6; }
11784 if test "$SGS" = "yes"; then
11785 { echo "$as_me:$LINENO: result: SVR4 SGS interfaces: -KPIC -DPIC -G" >&5
11786 echo "${ECHO_T}SVR4 SGS interfaces: -KPIC -DPIC -G" >&6; }
11787 PICFLAGS
="-KPIC -DPIC -G"
11790 if test "$AppleGCC" = "yes"; then
11791 { echo "$as_me:$LINENO: result: Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&5
11792 echo "${ECHO_T}Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&6; }
11793 PICFLAGS
="-fno-common -bundle -flat_namespace -undefined suppress"
11795 if test "$HPUX" = "yes" -a "$CC" != gcc
; then
11796 { echo "$as_me:$LINENO: result: HP-UX cc: +z -r -q -n" >&5
11797 echo "${ECHO_T}HP-UX cc: +z -r -q -n" >&6; }
11798 PICFLAGS
="+z -r -q -n -c"
11799 { echo "$as_me:$LINENO: checking if +ESfic is required on this platform" >&5
11800 echo $ECHO_N "checking if +ESfic is required on this platform... $ECHO_C" >&6; }
11802 if expr "`$CC +ESfic 2>&1`" : ".*neither supported.*" >/dev
/null
; then
11803 { echo "$as_me:$LINENO: result: no" >&5
11804 echo "${ECHO_T}no" >&6; }
11806 { echo "$as_me:$LINENO: result: yes" >&5
11807 echo "${ECHO_T}yes" >&6; }
11808 PICFLAGS
="$PICFLAGS +ESfic"
11811 LDFLAGS
="${LDFLAGS} -Wl,-E"
11813 if test "$Tru" = yes -a "$CC" != gcc
; then
11814 { echo "$as_me:$LINENO: result: Tru64: -shared -expect_unresolved '*'" >&5
11815 echo "${ECHO_T}Tru64: -shared -expect_unresolved '*'" >&6; }
11816 PICFLAGS
="-shared -expect_unresolved '*' "
11817 LDFLAGS
="-call_shared"
11819 if test -z "$PICFLAGS"; then
11820 if test "$ac_cv_c_compiler_gnu" = "yes"; then
11821 { echo "$as_me:$LINENO: result: gcc: -fPIC -DPIC -shared" >&5
11822 echo "${ECHO_T}gcc: -fPIC -DPIC -shared" >&6; }
11823 PICFLAGS
="-fPIC -DPIC -shared"
11825 { echo "$as_me:$LINENO: result: no" >&5
11826 echo "${ECHO_T}no" >&6; }
11832 # This must be down here, or it will mess up checks like the ones
11833 # for -Wl,-export-dynamic
11835 # Check whether --enable-warnings was given.
11836 if test "${enable_warnings+set}" = set; then
11837 enableval
=$enable_warnings;
11838 IRC_CFLAGS
="$IRC_CFLAGS -O0"
11839 CFLAGS
="$IRC_CFLAGS"
11842 { echo "$as_me:$LINENO: checking GCC flag(s) -Wall" >&5
11843 echo $ECHO_N "checking GCC flag(s) -Wall... $ECHO_C" >&6; }
11844 if test "${GCC-no}" = yes
11846 if test "${charybdis_cv_c_gcc_w_all+set}" = set; then
11847 echo $ECHO_N "(cached) $ECHO_C" >&6
11850 oldcflags
="${CFLAGS-}"
11851 CFLAGS
="${CFLAGS-} ${CWARNS} -Wall -Werror"
11852 cat >conftest.
$ac_ext <<_ACEOF
11855 cat confdefs.h
>>conftest.
$ac_ext
11856 cat >>conftest.
$ac_ext <<_ACEOF
11857 /* end confdefs.h. */
11859 #include <string.h>
11867 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
11873 rm -f conftest.
$ac_objext
11874 if { (ac_try
="$ac_compile"
11875 case "(($ac_try" in
11876 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
11877 *) ac_try_echo=$ac_try;;
11879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11880 (eval "$ac_compile") 2>conftest.er1
11882 grep -v '^ *+' conftest.er1 >conftest.err
11884 cat conftest.err >&5
11885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886 (exit $ac_status); } && {
11887 test -z "$ac_c_werror_flag" ||
11888 test ! -s conftest.err
11889 } && test -s conftest.$ac_objext; then
11890 charybdis_cv_c_gcc_w_all=yes
11892 echo "$as_me: failed program was:" >&5
11893 sed 's/^/| /' conftest.$ac_ext >&5
11895 charybdis_cv_c_gcc_w_all=no
11898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11899 CFLAGS="${oldcflags}"
11902 if test "x$charybdis_cv_c_gcc_w_all" = xyes; then
11903 CWARNS="${CWARNS}-Wall "
11904 { echo "$as_me:$LINENO: result: ok" >&5
11905 echo "${ECHO_T}ok" >&6; }
11907 charybdis_cv_c_gcc_w_all=''
11908 { echo "$as_me:$LINENO: result: no" >&5
11909 echo "${ECHO_T}no" >&6; }
11912 { echo "$as_me:$LINENO: result: no" >&5
11913 echo "${ECHO_T}no" >&6; }
11917 { echo "$as_me:$LINENO: checking GCC flag(s) -Wpointer-arith" >&5
11918 echo $ECHO_N "checking GCC flag(s) -Wpointer-arith... $ECHO_C" >&6; }
11919 if test "${GCC-no}" = yes
11921 if test "${charybdis_cv_c_gcc_w_pointer_arith+set}" = set; then
11922 echo $ECHO_N "(cached) $ECHO_C" >&6
11925 oldcflags="${CFLAGS-}"
11926 CFLAGS="${CFLAGS-} ${CWARNS} -Wpointer-arith -Werror"
11927 cat >conftest.$ac_ext <<_ACEOF
11930 cat confdefs.h >>conftest.$ac_ext
11931 cat >>conftest.$ac_ext <<_ACEOF
11932 /* end confdefs.h. */
11934 #include <string.h>
11942 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
11948 rm -f conftest.$ac_objext
11949 if { (ac_try="$ac_compile"
11950 case "(($ac_try" in
11951 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
11952 *) ac_try_echo
=$ac_try;;
11954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11955 (eval "$ac_compile") 2>conftest.er1
11957 grep -v '^ *+' conftest.er1
>conftest.err
11959 cat conftest.err
>&5
11960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961 (exit $ac_status); } && {
11962 test -z "$ac_c_werror_flag" ||
11963 test ! -s conftest.err
11964 } && test -s conftest.
$ac_objext; then
11965 charybdis_cv_c_gcc_w_pointer_arith
=yes
11967 echo "$as_me: failed program was:" >&5
11968 sed 's/^/| /' conftest.
$ac_ext >&5
11970 charybdis_cv_c_gcc_w_pointer_arith
=no
11973 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11974 CFLAGS
="${oldcflags}"
11977 if test "x$charybdis_cv_c_gcc_w_pointer_arith" = xyes
; then
11978 CWARNS
="${CWARNS}-Wpointer-arith "
11979 { echo "$as_me:$LINENO: result: ok" >&5
11980 echo "${ECHO_T}ok" >&6; }
11982 charybdis_cv_c_gcc_w_pointer_arith
=''
11983 { echo "$as_me:$LINENO: result: no" >&5
11984 echo "${ECHO_T}no" >&6; }
11987 { echo "$as_me:$LINENO: result: no" >&5
11988 echo "${ECHO_T}no" >&6; }
11992 { echo "$as_me:$LINENO: checking GCC flag(s) -Wimplicit -Wnested-externs" >&5
11993 echo $ECHO_N "checking GCC flag(s) -Wimplicit -Wnested-externs... $ECHO_C" >&6; }
11994 if test "${GCC-no}" = yes
11996 if test "${charybdis_cv_c_gcc_w_implicit+set}" = set; then
11997 echo $ECHO_N "(cached) $ECHO_C" >&6
12000 oldcflags
="${CFLAGS-}"
12001 CFLAGS
="${CFLAGS-} ${CWARNS} -Wimplicit -Wnested-externs -Werror"
12002 cat >conftest.
$ac_ext <<_ACEOF
12005 cat confdefs.h
>>conftest.
$ac_ext
12006 cat >>conftest.
$ac_ext <<_ACEOF
12007 /* end confdefs.h. */
12009 #include <string.h>
12017 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12023 rm -f conftest.
$ac_objext
12024 if { (ac_try
="$ac_compile"
12025 case "(($ac_try" in
12026 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
12027 *) ac_try_echo=$ac_try;;
12029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12030 (eval "$ac_compile") 2>conftest.er1
12032 grep -v '^ *+' conftest.er1 >conftest.err
12034 cat conftest.err >&5
12035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036 (exit $ac_status); } && {
12037 test -z "$ac_c_werror_flag" ||
12038 test ! -s conftest.err
12039 } && test -s conftest.$ac_objext; then
12040 charybdis_cv_c_gcc_w_implicit=yes
12042 echo "$as_me: failed program was:" >&5
12043 sed 's/^/| /' conftest.$ac_ext >&5
12045 charybdis_cv_c_gcc_w_implicit=no
12048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12049 CFLAGS="${oldcflags}"
12052 if test "x$charybdis_cv_c_gcc_w_implicit" = xyes; then
12053 CWARNS="${CWARNS}-Wimplicit -Wnested-externs "
12054 { echo "$as_me:$LINENO: result: ok" >&5
12055 echo "${ECHO_T}ok" >&6; }
12057 charybdis_cv_c_gcc_w_implicit=''
12058 { echo "$as_me:$LINENO: result: no" >&5
12059 echo "${ECHO_T}no" >&6; }
12062 { echo "$as_me:$LINENO: result: no" >&5
12063 echo "${ECHO_T}no" >&6; }
12067 { echo "$as_me:$LINENO: checking GCC flag(s) -Wcast-align" >&5
12068 echo $ECHO_N "checking GCC flag(s) -Wcast-align... $ECHO_C" >&6; }
12069 if test "${GCC-no}" = yes
12071 if test "${charybdis_cv_c_gcc_w_cast_align+set}" = set; then
12072 echo $ECHO_N "(cached) $ECHO_C" >&6
12075 oldcflags="${CFLAGS-}"
12076 CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-align -Werror"
12077 cat >conftest.$ac_ext <<_ACEOF
12080 cat confdefs.h >>conftest.$ac_ext
12081 cat >>conftest.$ac_ext <<_ACEOF
12082 /* end confdefs.h. */
12084 #include <string.h>
12092 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12098 rm -f conftest.$ac_objext
12099 if { (ac_try="$ac_compile"
12100 case "(($ac_try" in
12101 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
12102 *) ac_try_echo
=$ac_try;;
12104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12105 (eval "$ac_compile") 2>conftest.er1
12107 grep -v '^ *+' conftest.er1
>conftest.err
12109 cat conftest.err
>&5
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); } && {
12112 test -z "$ac_c_werror_flag" ||
12113 test ! -s conftest.err
12114 } && test -s conftest.
$ac_objext; then
12115 charybdis_cv_c_gcc_w_cast_align
=yes
12117 echo "$as_me: failed program was:" >&5
12118 sed 's/^/| /' conftest.
$ac_ext >&5
12120 charybdis_cv_c_gcc_w_cast_align
=no
12123 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12124 CFLAGS
="${oldcflags}"
12127 if test "x$charybdis_cv_c_gcc_w_cast_align" = xyes
; then
12128 CWARNS
="${CWARNS}-Wcast-align "
12129 { echo "$as_me:$LINENO: result: ok" >&5
12130 echo "${ECHO_T}ok" >&6; }
12132 charybdis_cv_c_gcc_w_cast_align
=''
12133 { echo "$as_me:$LINENO: result: no" >&5
12134 echo "${ECHO_T}no" >&6; }
12137 { echo "$as_me:$LINENO: result: no" >&5
12138 echo "${ECHO_T}no" >&6; }
12142 { echo "$as_me:$LINENO: checking GCC flag(s) -Wcast-qual" >&5
12143 echo $ECHO_N "checking GCC flag(s) -Wcast-qual... $ECHO_C" >&6; }
12144 if test "${GCC-no}" = yes
12146 if test "${charybdis_cv_c_gcc_w_cast_qual+set}" = set; then
12147 echo $ECHO_N "(cached) $ECHO_C" >&6
12150 oldcflags
="${CFLAGS-}"
12151 CFLAGS
="${CFLAGS-} ${CWARNS} -Wcast-qual -Werror"
12152 cat >conftest.
$ac_ext <<_ACEOF
12155 cat confdefs.h
>>conftest.
$ac_ext
12156 cat >>conftest.
$ac_ext <<_ACEOF
12157 /* end confdefs.h. */
12159 #include <string.h>
12167 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12173 rm -f conftest.
$ac_objext
12174 if { (ac_try
="$ac_compile"
12175 case "(($ac_try" in
12176 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
12177 *) ac_try_echo=$ac_try;;
12179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12180 (eval "$ac_compile") 2>conftest.er1
12182 grep -v '^ *+' conftest.er1 >conftest.err
12184 cat conftest.err >&5
12185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186 (exit $ac_status); } && {
12187 test -z "$ac_c_werror_flag" ||
12188 test ! -s conftest.err
12189 } && test -s conftest.$ac_objext; then
12190 charybdis_cv_c_gcc_w_cast_qual=yes
12192 echo "$as_me: failed program was:" >&5
12193 sed 's/^/| /' conftest.$ac_ext >&5
12195 charybdis_cv_c_gcc_w_cast_qual=no
12198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12199 CFLAGS="${oldcflags}"
12202 if test "x$charybdis_cv_c_gcc_w_cast_qual" = xyes; then
12203 CWARNS="${CWARNS}-Wcast-qual "
12204 { echo "$as_me:$LINENO: result: ok" >&5
12205 echo "${ECHO_T}ok" >&6; }
12207 charybdis_cv_c_gcc_w_cast_qual=''
12208 { echo "$as_me:$LINENO: result: no" >&5
12209 echo "${ECHO_T}no" >&6; }
12212 { echo "$as_me:$LINENO: result: no" >&5
12213 echo "${ECHO_T}no" >&6; }
12217 { echo "$as_me:$LINENO: checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations" >&5
12218 echo $ECHO_N "checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations... $ECHO_C" >&6; }
12219 if test "${GCC-no}" = yes
12221 if test "${charybdis_cv_c_gcc_prototypes+set}" = set; then
12222 echo $ECHO_N "(cached) $ECHO_C" >&6
12225 oldcflags="${CFLAGS-}"
12226 CFLAGS="${CFLAGS-} ${CWARNS} -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Werror"
12227 cat >conftest.$ac_ext <<_ACEOF
12230 cat confdefs.h >>conftest.$ac_ext
12231 cat >>conftest.$ac_ext <<_ACEOF
12232 /* end confdefs.h. */
12234 #include <string.h>
12242 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12248 rm -f conftest.$ac_objext
12249 if { (ac_try="$ac_compile"
12250 case "(($ac_try" in
12251 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
12252 *) ac_try_echo
=$ac_try;;
12254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12255 (eval "$ac_compile") 2>conftest.er1
12257 grep -v '^ *+' conftest.er1
>conftest.err
12259 cat conftest.err
>&5
12260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12261 (exit $ac_status); } && {
12262 test -z "$ac_c_werror_flag" ||
12263 test ! -s conftest.err
12264 } && test -s conftest.
$ac_objext; then
12265 charybdis_cv_c_gcc_prototypes
=yes
12267 echo "$as_me: failed program was:" >&5
12268 sed 's/^/| /' conftest.
$ac_ext >&5
12270 charybdis_cv_c_gcc_prototypes
=no
12273 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12274 CFLAGS
="${oldcflags}"
12277 if test "x$charybdis_cv_c_gcc_prototypes" = xyes
; then
12278 CWARNS
="${CWARNS}-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations "
12279 { echo "$as_me:$LINENO: result: ok" >&5
12280 echo "${ECHO_T}ok" >&6; }
12282 charybdis_cv_c_gcc_prototypes
=''
12283 { echo "$as_me:$LINENO: result: no" >&5
12284 echo "${ECHO_T}no" >&6; }
12287 { echo "$as_me:$LINENO: result: no" >&5
12288 echo "${ECHO_T}no" >&6; }
12292 { echo "$as_me:$LINENO: checking GCC flag(s) -Wparenthesis" >&5
12293 echo $ECHO_N "checking GCC flag(s) -Wparenthesis... $ECHO_C" >&6; }
12294 if test "${GCC-no}" = yes
12296 if test "${charybdis_cv_c_gcc_parenthesis+set}" = set; then
12297 echo $ECHO_N "(cached) $ECHO_C" >&6
12300 oldcflags
="${CFLAGS-}"
12301 CFLAGS
="${CFLAGS-} ${CWARNS} -Wparenthesis -Werror"
12302 cat >conftest.
$ac_ext <<_ACEOF
12305 cat confdefs.h
>>conftest.
$ac_ext
12306 cat >>conftest.
$ac_ext <<_ACEOF
12307 /* end confdefs.h. */
12309 #include <string.h>
12317 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12323 rm -f conftest.
$ac_objext
12324 if { (ac_try
="$ac_compile"
12325 case "(($ac_try" in
12326 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
12327 *) ac_try_echo=$ac_try;;
12329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12330 (eval "$ac_compile") 2>conftest.er1
12332 grep -v '^ *+' conftest.er1 >conftest.err
12334 cat conftest.err >&5
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); } && {
12337 test -z "$ac_c_werror_flag" ||
12338 test ! -s conftest.err
12339 } && test -s conftest.$ac_objext; then
12340 charybdis_cv_c_gcc_parenthesis=yes
12342 echo "$as_me: failed program was:" >&5
12343 sed 's/^/| /' conftest.$ac_ext >&5
12345 charybdis_cv_c_gcc_parenthesis=no
12348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12349 CFLAGS="${oldcflags}"
12352 if test "x$charybdis_cv_c_gcc_parenthesis" = xyes; then
12353 CWARNS="${CWARNS}-Wparenthesis "
12354 { echo "$as_me:$LINENO: result: ok" >&5
12355 echo "${ECHO_T}ok" >&6; }
12357 charybdis_cv_c_gcc_parenthesis=''
12358 { echo "$as_me:$LINENO: result: no" >&5
12359 echo "${ECHO_T}no" >&6; }
12362 { echo "$as_me:$LINENO: result: no" >&5
12363 echo "${ECHO_T}no" >&6; }
12367 { echo "$as_me:$LINENO: checking GCC flag(s) -W -Wno-unused" >&5
12368 echo $ECHO_N "checking GCC flag(s) -W -Wno-unused... $ECHO_C" >&6; }
12369 if test "${GCC-no}" = yes
12371 if test "${charybdis_cv_c_gcc_w+set}" = set; then
12372 echo $ECHO_N "(cached) $ECHO_C" >&6
12375 oldcflags="${CFLAGS-}"
12376 CFLAGS="${CFLAGS-} ${CWARNS} -W -Wno-unused -Werror"
12377 cat >conftest.$ac_ext <<_ACEOF
12380 cat confdefs.h >>conftest.$ac_ext
12381 cat >>conftest.$ac_ext <<_ACEOF
12382 /* end confdefs.h. */
12384 #include <string.h>
12392 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12398 rm -f conftest.$ac_objext
12399 if { (ac_try="$ac_compile"
12400 case "(($ac_try" in
12401 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
12402 *) ac_try_echo
=$ac_try;;
12404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12405 (eval "$ac_compile") 2>conftest.er1
12407 grep -v '^ *+' conftest.er1
>conftest.err
12409 cat conftest.err
>&5
12410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411 (exit $ac_status); } && {
12412 test -z "$ac_c_werror_flag" ||
12413 test ! -s conftest.err
12414 } && test -s conftest.
$ac_objext; then
12415 charybdis_cv_c_gcc_w
=yes
12417 echo "$as_me: failed program was:" >&5
12418 sed 's/^/| /' conftest.
$ac_ext >&5
12420 charybdis_cv_c_gcc_w
=no
12423 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12424 CFLAGS
="${oldcflags}"
12427 if test "x$charybdis_cv_c_gcc_w" = xyes
; then
12428 CWARNS
="${CWARNS}-W -Wno-unused "
12429 { echo "$as_me:$LINENO: result: ok" >&5
12430 echo "${ECHO_T}ok" >&6; }
12432 charybdis_cv_c_gcc_w
=''
12433 { echo "$as_me:$LINENO: result: no" >&5
12434 echo "${ECHO_T}no" >&6; }
12437 { echo "$as_me:$LINENO: result: no" >&5
12438 echo "${ECHO_T}no" >&6; }
12442 { echo "$as_me:$LINENO: checking GCC flag(s) -Wextra" >&5
12443 echo $ECHO_N "checking GCC flag(s) -Wextra... $ECHO_C" >&6; }
12444 if test "${GCC-no}" = yes
12446 if test "${charybdis_cv_c_gcc_w_extra+set}" = set; then
12447 echo $ECHO_N "(cached) $ECHO_C" >&6
12450 oldcflags
="${CFLAGS-}"
12451 CFLAGS
="${CFLAGS-} ${CWARNS} -Wextra -Werror"
12452 cat >conftest.
$ac_ext <<_ACEOF
12455 cat confdefs.h
>>conftest.
$ac_ext
12456 cat >>conftest.
$ac_ext <<_ACEOF
12457 /* end confdefs.h. */
12459 #include <string.h>
12467 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12473 rm -f conftest.
$ac_objext
12474 if { (ac_try
="$ac_compile"
12475 case "(($ac_try" in
12476 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
12477 *) ac_try_echo=$ac_try;;
12479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12480 (eval "$ac_compile") 2>conftest.er1
12482 grep -v '^ *+' conftest.er1 >conftest.err
12484 cat conftest.err >&5
12485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486 (exit $ac_status); } && {
12487 test -z "$ac_c_werror_flag" ||
12488 test ! -s conftest.err
12489 } && test -s conftest.$ac_objext; then
12490 charybdis_cv_c_gcc_w_extra=yes
12492 echo "$as_me: failed program was:" >&5
12493 sed 's/^/| /' conftest.$ac_ext >&5
12495 charybdis_cv_c_gcc_w_extra=no
12498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12499 CFLAGS="${oldcflags}"
12502 if test "x$charybdis_cv_c_gcc_w_extra" = xyes; then
12503 CWARNS="${CWARNS}-Wextra "
12504 { echo "$as_me:$LINENO: result: ok" >&5
12505 echo "${ECHO_T}ok" >&6; }
12507 charybdis_cv_c_gcc_w_extra=''
12508 { echo "$as_me:$LINENO: result: no" >&5
12509 echo "${ECHO_T}no" >&6; }
12512 { echo "$as_me:$LINENO: result: no" >&5
12513 echo "${ECHO_T}no" >&6; }
12517 { echo "$as_me:$LINENO: checking GCC flag(s) -Wshadow" >&5
12518 echo $ECHO_N "checking GCC flag(s) -Wshadow... $ECHO_C" >&6; }
12519 if test "${GCC-no}" = yes
12521 if test "${charybdis_cv_c_gcc_w_shadow+set}" = set; then
12522 echo $ECHO_N "(cached) $ECHO_C" >&6
12525 oldcflags="${CFLAGS-}"
12526 CFLAGS="${CFLAGS-} ${CWARNS} -Wshadow -Werror"
12527 cat >conftest.$ac_ext <<_ACEOF
12530 cat confdefs.h >>conftest.$ac_ext
12531 cat >>conftest.$ac_ext <<_ACEOF
12532 /* end confdefs.h. */
12534 #include <string.h>
12542 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12548 rm -f conftest.$ac_objext
12549 if { (ac_try="$ac_compile"
12550 case "(($ac_try" in
12551 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
12552 *) ac_try_echo
=$ac_try;;
12554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12555 (eval "$ac_compile") 2>conftest.er1
12557 grep -v '^ *+' conftest.er1
>conftest.err
12559 cat conftest.err
>&5
12560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561 (exit $ac_status); } && {
12562 test -z "$ac_c_werror_flag" ||
12563 test ! -s conftest.err
12564 } && test -s conftest.
$ac_objext; then
12565 charybdis_cv_c_gcc_w_shadow
=yes
12567 echo "$as_me: failed program was:" >&5
12568 sed 's/^/| /' conftest.
$ac_ext >&5
12570 charybdis_cv_c_gcc_w_shadow
=no
12573 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12574 CFLAGS
="${oldcflags}"
12577 if test "x$charybdis_cv_c_gcc_w_shadow" = xyes
; then
12578 CWARNS
="${CWARNS}-Wshadow "
12579 { echo "$as_me:$LINENO: result: ok" >&5
12580 echo "${ECHO_T}ok" >&6; }
12582 charybdis_cv_c_gcc_w_shadow
=''
12583 { echo "$as_me:$LINENO: result: no" >&5
12584 echo "${ECHO_T}no" >&6; }
12587 { echo "$as_me:$LINENO: result: no" >&5
12588 echo "${ECHO_T}no" >&6; }
12592 { echo "$as_me:$LINENO: checking GCC flag(s) -Wmissing-noreturn" >&5
12593 echo $ECHO_N "checking GCC flag(s) -Wmissing-noreturn... $ECHO_C" >&6; }
12594 if test "${GCC-no}" = yes
12596 if test "${charybdis_cv_c_gcc_w_missing_noreturn+set}" = set; then
12597 echo $ECHO_N "(cached) $ECHO_C" >&6
12600 oldcflags
="${CFLAGS-}"
12601 CFLAGS
="${CFLAGS-} ${CWARNS} -Wmissing-noreturn -Werror"
12602 cat >conftest.
$ac_ext <<_ACEOF
12605 cat confdefs.h
>>conftest.
$ac_ext
12606 cat >>conftest.
$ac_ext <<_ACEOF
12607 /* end confdefs.h. */
12609 #include <string.h>
12617 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12623 rm -f conftest.
$ac_objext
12624 if { (ac_try
="$ac_compile"
12625 case "(($ac_try" in
12626 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
12627 *) ac_try_echo=$ac_try;;
12629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12630 (eval "$ac_compile") 2>conftest.er1
12632 grep -v '^ *+' conftest.er1 >conftest.err
12634 cat conftest.err >&5
12635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); } && {
12637 test -z "$ac_c_werror_flag" ||
12638 test ! -s conftest.err
12639 } && test -s conftest.$ac_objext; then
12640 charybdis_cv_c_gcc_w_missing_noreturn=yes
12642 echo "$as_me: failed program was:" >&5
12643 sed 's/^/| /' conftest.$ac_ext >&5
12645 charybdis_cv_c_gcc_w_missing_noreturn=no
12648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12649 CFLAGS="${oldcflags}"
12652 if test "x$charybdis_cv_c_gcc_w_missing_noreturn" = xyes; then
12653 CWARNS="${CWARNS}-Wmissing-noreturn "
12654 { echo "$as_me:$LINENO: result: ok" >&5
12655 echo "${ECHO_T}ok" >&6; }
12657 charybdis_cv_c_gcc_w_missing_noreturn=''
12658 { echo "$as_me:$LINENO: result: no" >&5
12659 echo "${ECHO_T}no" >&6; }
12662 { echo "$as_me:$LINENO: result: no" >&5
12663 echo "${ECHO_T}no" >&6; }
12667 { echo "$as_me:$LINENO: checking GCC flag(s) -Wundef" >&5
12668 echo $ECHO_N "checking GCC flag(s) -Wundef... $ECHO_C" >&6; }
12669 if test "${GCC-no}" = yes
12671 if test "${charybdis_cv_c_gcc_w_undef+set}" = set; then
12672 echo $ECHO_N "(cached) $ECHO_C" >&6
12675 oldcflags="${CFLAGS-}"
12676 CFLAGS="${CFLAGS-} ${CWARNS} -Wundef -Werror"
12677 cat >conftest.$ac_ext <<_ACEOF
12680 cat confdefs.h >>conftest.$ac_ext
12681 cat >>conftest.$ac_ext <<_ACEOF
12682 /* end confdefs.h. */
12684 #include <string.h>
12692 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12698 rm -f conftest.$ac_objext
12699 if { (ac_try="$ac_compile"
12700 case "(($ac_try" in
12701 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
12702 *) ac_try_echo
=$ac_try;;
12704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12705 (eval "$ac_compile") 2>conftest.er1
12707 grep -v '^ *+' conftest.er1
>conftest.err
12709 cat conftest.err
>&5
12710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711 (exit $ac_status); } && {
12712 test -z "$ac_c_werror_flag" ||
12713 test ! -s conftest.err
12714 } && test -s conftest.
$ac_objext; then
12715 charybdis_cv_c_gcc_w_undef
=yes
12717 echo "$as_me: failed program was:" >&5
12718 sed 's/^/| /' conftest.
$ac_ext >&5
12720 charybdis_cv_c_gcc_w_undef
=no
12723 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12724 CFLAGS
="${oldcflags}"
12727 if test "x$charybdis_cv_c_gcc_w_undef" = xyes
; then
12728 CWARNS
="${CWARNS}-Wundef "
12729 { echo "$as_me:$LINENO: result: ok" >&5
12730 echo "${ECHO_T}ok" >&6; }
12732 charybdis_cv_c_gcc_w_undef
=''
12733 { echo "$as_me:$LINENO: result: no" >&5
12734 echo "${ECHO_T}no" >&6; }
12737 { echo "$as_me:$LINENO: result: no" >&5
12738 echo "${ECHO_T}no" >&6; }
12742 { echo "$as_me:$LINENO: checking GCC flag(s) -Wpacked" >&5
12743 echo $ECHO_N "checking GCC flag(s) -Wpacked... $ECHO_C" >&6; }
12744 if test "${GCC-no}" = yes
12746 if test "${charybdis_cv_c_gcc_w_packed+set}" = set; then
12747 echo $ECHO_N "(cached) $ECHO_C" >&6
12750 oldcflags
="${CFLAGS-}"
12751 CFLAGS
="${CFLAGS-} ${CWARNS} -Wpacked -Werror"
12752 cat >conftest.
$ac_ext <<_ACEOF
12755 cat confdefs.h
>>conftest.
$ac_ext
12756 cat >>conftest.
$ac_ext <<_ACEOF
12757 /* end confdefs.h. */
12759 #include <string.h>
12767 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12773 rm -f conftest.
$ac_objext
12774 if { (ac_try
="$ac_compile"
12775 case "(($ac_try" in
12776 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
12777 *) ac_try_echo=$ac_try;;
12779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12780 (eval "$ac_compile") 2>conftest.er1
12782 grep -v '^ *+' conftest.er1 >conftest.err
12784 cat conftest.err >&5
12785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786 (exit $ac_status); } && {
12787 test -z "$ac_c_werror_flag" ||
12788 test ! -s conftest.err
12789 } && test -s conftest.$ac_objext; then
12790 charybdis_cv_c_gcc_w_packed=yes
12792 echo "$as_me: failed program was:" >&5
12793 sed 's/^/| /' conftest.$ac_ext >&5
12795 charybdis_cv_c_gcc_w_packed=no
12798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12799 CFLAGS="${oldcflags}"
12802 if test "x$charybdis_cv_c_gcc_w_packed" = xyes; then
12803 CWARNS="${CWARNS}-Wpacked "
12804 { echo "$as_me:$LINENO: result: ok" >&5
12805 echo "${ECHO_T}ok" >&6; }
12807 charybdis_cv_c_gcc_w_packed=''
12808 { echo "$as_me:$LINENO: result: no" >&5
12809 echo "${ECHO_T}no" >&6; }
12812 { echo "$as_me:$LINENO: result: no" >&5
12813 echo "${ECHO_T}no" >&6; }
12817 { echo "$as_me:$LINENO: checking GCC flag(s) -Wnested-externs" >&5
12818 echo $ECHO_N "checking GCC flag(s) -Wnested-externs... $ECHO_C" >&6; }
12819 if test "${GCC-no}" = yes
12821 if test "${charybdis_cv_c_gcc_w_nested_externs+set}" = set; then
12822 echo $ECHO_N "(cached) $ECHO_C" >&6
12825 oldcflags="${CFLAGS-}"
12826 CFLAGS="${CFLAGS-} ${CWARNS} -Wnested-externs -Werror"
12827 cat >conftest.$ac_ext <<_ACEOF
12830 cat confdefs.h >>conftest.$ac_ext
12831 cat >>conftest.$ac_ext <<_ACEOF
12832 /* end confdefs.h. */
12834 #include <string.h>
12842 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12848 rm -f conftest.$ac_objext
12849 if { (ac_try="$ac_compile"
12850 case "(($ac_try" in
12851 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
12852 *) ac_try_echo
=$ac_try;;
12854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12855 (eval "$ac_compile") 2>conftest.er1
12857 grep -v '^ *+' conftest.er1
>conftest.err
12859 cat conftest.err
>&5
12860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861 (exit $ac_status); } && {
12862 test -z "$ac_c_werror_flag" ||
12863 test ! -s conftest.err
12864 } && test -s conftest.
$ac_objext; then
12865 charybdis_cv_c_gcc_w_nested_externs
=yes
12867 echo "$as_me: failed program was:" >&5
12868 sed 's/^/| /' conftest.
$ac_ext >&5
12870 charybdis_cv_c_gcc_w_nested_externs
=no
12873 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12874 CFLAGS
="${oldcflags}"
12877 if test "x$charybdis_cv_c_gcc_w_nested_externs" = xyes
; then
12878 CWARNS
="${CWARNS}-Wnested-externs "
12879 { echo "$as_me:$LINENO: result: ok" >&5
12880 echo "${ECHO_T}ok" >&6; }
12882 charybdis_cv_c_gcc_w_nested_externs
=''
12883 { echo "$as_me:$LINENO: result: no" >&5
12884 echo "${ECHO_T}no" >&6; }
12887 { echo "$as_me:$LINENO: result: no" >&5
12888 echo "${ECHO_T}no" >&6; }
12892 { echo "$as_me:$LINENO: checking GCC flag(s) -Wbad-function-cast" >&5
12893 echo $ECHO_N "checking GCC flag(s) -Wbad-function-cast... $ECHO_C" >&6; }
12894 if test "${GCC-no}" = yes
12896 if test "${charybdis_cv_c_gcc_w_bad_function_cast+set}" = set; then
12897 echo $ECHO_N "(cached) $ECHO_C" >&6
12900 oldcflags
="${CFLAGS-}"
12901 CFLAGS
="${CFLAGS-} ${CWARNS} -Wbad-function-cast -Werror"
12902 cat >conftest.
$ac_ext <<_ACEOF
12905 cat confdefs.h
>>conftest.
$ac_ext
12906 cat >>conftest.
$ac_ext <<_ACEOF
12907 /* end confdefs.h. */
12909 #include <string.h>
12917 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12923 rm -f conftest.
$ac_objext
12924 if { (ac_try
="$ac_compile"
12925 case "(($ac_try" in
12926 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
12927 *) ac_try_echo=$ac_try;;
12929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12930 (eval "$ac_compile") 2>conftest.er1
12932 grep -v '^ *+' conftest.er1 >conftest.err
12934 cat conftest.err >&5
12935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936 (exit $ac_status); } && {
12937 test -z "$ac_c_werror_flag" ||
12938 test ! -s conftest.err
12939 } && test -s conftest.$ac_objext; then
12940 charybdis_cv_c_gcc_w_bad_function_cast=yes
12942 echo "$as_me: failed program was:" >&5
12943 sed 's/^/| /' conftest.$ac_ext >&5
12945 charybdis_cv_c_gcc_w_bad_function_cast=no
12948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12949 CFLAGS="${oldcflags}"
12952 if test "x$charybdis_cv_c_gcc_w_bad_function_cast" = xyes; then
12953 CWARNS="${CWARNS}-Wbad-function-cast "
12954 { echo "$as_me:$LINENO: result: ok" >&5
12955 echo "${ECHO_T}ok" >&6; }
12957 charybdis_cv_c_gcc_w_bad_function_cast=''
12958 { echo "$as_me:$LINENO: result: no" >&5
12959 echo "${ECHO_T}no" >&6; }
12962 { echo "$as_me:$LINENO: result: no" >&5
12963 echo "${ECHO_T}no" >&6; }
12967 { echo "$as_me:$LINENO: checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable" >&5
12968 echo $ECHO_N "checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable... $ECHO_C" >&6; }
12969 if test "${GCC-no}" = yes
12971 if test "${charybdis_cv_c_gcc_w_unused+set}" = set; then
12972 echo $ECHO_N "(cached) $ECHO_C" >&6
12975 oldcflags="${CFLAGS-}"
12976 CFLAGS="${CFLAGS-} ${CWARNS} -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Werror"
12977 cat >conftest.$ac_ext <<_ACEOF
12980 cat confdefs.h >>conftest.$ac_ext
12981 cat >>conftest.$ac_ext <<_ACEOF
12982 /* end confdefs.h. */
12984 #include <string.h>
12992 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12998 rm -f conftest.$ac_objext
12999 if { (ac_try="$ac_compile"
13000 case "(($ac_try" in
13001 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
13002 *) ac_try_echo
=$ac_try;;
13004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13005 (eval "$ac_compile") 2>conftest.er1
13007 grep -v '^ *+' conftest.er1
>conftest.err
13009 cat conftest.err
>&5
13010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011 (exit $ac_status); } && {
13012 test -z "$ac_c_werror_flag" ||
13013 test ! -s conftest.err
13014 } && test -s conftest.
$ac_objext; then
13015 charybdis_cv_c_gcc_w_unused
=yes
13017 echo "$as_me: failed program was:" >&5
13018 sed 's/^/| /' conftest.
$ac_ext >&5
13020 charybdis_cv_c_gcc_w_unused
=no
13023 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13024 CFLAGS
="${oldcflags}"
13027 if test "x$charybdis_cv_c_gcc_w_unused" = xyes
; then
13028 CWARNS
="${CWARNS}-Wunused-function -Wunused-label -Wunused-value -Wunused-variable "
13029 { echo "$as_me:$LINENO: result: ok" >&5
13030 echo "${ECHO_T}ok" >&6; }
13032 charybdis_cv_c_gcc_w_unused
=''
13033 { echo "$as_me:$LINENO: result: no" >&5
13034 echo "${ECHO_T}no" >&6; }
13037 { echo "$as_me:$LINENO: result: no" >&5
13038 echo "${ECHO_T}no" >&6; }
13042 { echo "$as_me:$LINENO: checking GCC flag(s) -Wredundant-decls" >&5
13043 echo $ECHO_N "checking GCC flag(s) -Wredundant-decls... $ECHO_C" >&6; }
13044 if test "${GCC-no}" = yes
13046 if test "${charybdis_cv_c_gcc_w_redundant_decls+set}" = set; then
13047 echo $ECHO_N "(cached) $ECHO_C" >&6
13050 oldcflags
="${CFLAGS-}"
13051 CFLAGS
="${CFLAGS-} ${CWARNS} -Wredundant-decls -Werror"
13052 cat >conftest.
$ac_ext <<_ACEOF
13055 cat confdefs.h
>>conftest.
$ac_ext
13056 cat >>conftest.
$ac_ext <<_ACEOF
13057 /* end confdefs.h. */
13059 #include <string.h>
13067 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
13073 rm -f conftest.
$ac_objext
13074 if { (ac_try
="$ac_compile"
13075 case "(($ac_try" in
13076 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
13077 *) ac_try_echo=$ac_try;;
13079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13080 (eval "$ac_compile") 2>conftest.er1
13082 grep -v '^ *+' conftest.er1 >conftest.err
13084 cat conftest.err >&5
13085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086 (exit $ac_status); } && {
13087 test -z "$ac_c_werror_flag" ||
13088 test ! -s conftest.err
13089 } && test -s conftest.$ac_objext; then
13090 charybdis_cv_c_gcc_w_redundant_decls=yes
13092 echo "$as_me: failed program was:" >&5
13093 sed 's/^/| /' conftest.$ac_ext >&5
13095 charybdis_cv_c_gcc_w_redundant_decls=no
13098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13099 CFLAGS="${oldcflags}"
13102 if test "x$charybdis_cv_c_gcc_w_redundant_decls" = xyes; then
13103 CWARNS="${CWARNS}-Wredundant-decls "
13104 { echo "$as_me:$LINENO: result: ok" >&5
13105 echo "${ECHO_T}ok" >&6; }
13107 charybdis_cv_c_gcc_w_redundant_decls=''
13108 { echo "$as_me:$LINENO: result: no" >&5
13109 echo "${ECHO_T}no" >&6; }
13112 { echo "$as_me:$LINENO: result: no" >&5
13113 echo "${ECHO_T}no" >&6; }
13117 { echo "$as_me:$LINENO: checking GCC flag(s) -Wfloat-equal" >&5
13118 echo $ECHO_N "checking GCC flag(s) -Wfloat-equal... $ECHO_C" >&6; }
13119 if test "${GCC-no}" = yes
13121 if test "${charybdis_cv_c_gcc_w_float_equal+set}" = set; then
13122 echo $ECHO_N "(cached) $ECHO_C" >&6
13125 oldcflags="${CFLAGS-}"
13126 CFLAGS="${CFLAGS-} ${CWARNS} -Wfloat-equal -Werror"
13127 cat >conftest.$ac_ext <<_ACEOF
13130 cat confdefs.h >>conftest.$ac_ext
13131 cat >>conftest.$ac_ext <<_ACEOF
13132 /* end confdefs.h. */
13134 #include <string.h>
13142 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
13148 rm -f conftest.$ac_objext
13149 if { (ac_try="$ac_compile"
13150 case "(($ac_try" in
13151 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
13152 *) ac_try_echo
=$ac_try;;
13154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13155 (eval "$ac_compile") 2>conftest.er1
13157 grep -v '^ *+' conftest.er1
>conftest.err
13159 cat conftest.err
>&5
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); } && {
13162 test -z "$ac_c_werror_flag" ||
13163 test ! -s conftest.err
13164 } && test -s conftest.
$ac_objext; then
13165 charybdis_cv_c_gcc_w_float_equal
=yes
13167 echo "$as_me: failed program was:" >&5
13168 sed 's/^/| /' conftest.
$ac_ext >&5
13170 charybdis_cv_c_gcc_w_float_equal
=no
13173 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13174 CFLAGS
="${oldcflags}"
13177 if test "x$charybdis_cv_c_gcc_w_float_equal" = xyes
; then
13178 CWARNS
="${CWARNS}-Wfloat-equal "
13179 { echo "$as_me:$LINENO: result: ok" >&5
13180 echo "${ECHO_T}ok" >&6; }
13182 charybdis_cv_c_gcc_w_float_equal
=''
13183 { echo "$as_me:$LINENO: result: no" >&5
13184 echo "${ECHO_T}no" >&6; }
13187 { echo "$as_me:$LINENO: result: no" >&5
13188 echo "${ECHO_T}no" >&6; }
13192 { echo "$as_me:$LINENO: checking GCC flag(s) -Wformat=2" >&5
13193 echo $ECHO_N "checking GCC flag(s) -Wformat=2... $ECHO_C" >&6; }
13194 if test "${GCC-no}" = yes
13196 if test "${charybdis_cv_c_gcc_w_format+set}" = set; then
13197 echo $ECHO_N "(cached) $ECHO_C" >&6
13200 oldcflags
="${CFLAGS-}"
13201 CFLAGS
="${CFLAGS-} ${CWARNS} -Wformat=2 -Werror"
13202 cat >conftest.
$ac_ext <<_ACEOF
13205 cat confdefs.h
>>conftest.
$ac_ext
13206 cat >>conftest.
$ac_ext <<_ACEOF
13207 /* end confdefs.h. */
13209 #include <string.h>
13217 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
13223 rm -f conftest.
$ac_objext
13224 if { (ac_try
="$ac_compile"
13225 case "(($ac_try" in
13226 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
13227 *) ac_try_echo=$ac_try;;
13229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13230 (eval "$ac_compile") 2>conftest.er1
13232 grep -v '^ *+' conftest.er1 >conftest.err
13234 cat conftest.err >&5
13235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236 (exit $ac_status); } && {
13237 test -z "$ac_c_werror_flag" ||
13238 test ! -s conftest.err
13239 } && test -s conftest.$ac_objext; then
13240 charybdis_cv_c_gcc_w_format=yes
13242 echo "$as_me: failed program was:" >&5
13243 sed 's/^/| /' conftest.$ac_ext >&5
13245 charybdis_cv_c_gcc_w_format=no
13248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13249 CFLAGS="${oldcflags}"
13252 if test "x$charybdis_cv_c_gcc_w_format" = xyes; then
13253 CWARNS="${CWARNS}-Wformat=2 "
13254 { echo "$as_me:$LINENO: result: ok" >&5
13255 echo "${ECHO_T}ok" >&6; }
13257 charybdis_cv_c_gcc_w_format=''
13258 { echo "$as_me:$LINENO: result: no" >&5
13259 echo "${ECHO_T}no" >&6; }
13262 { echo "$as_me:$LINENO: result: no" >&5
13263 echo "${ECHO_T}no" >&6; }
13267 { echo "$as_me:$LINENO: checking GCC flag(s) -pedantic" >&5
13268 echo $ECHO_N "checking GCC flag(s) -pedantic... $ECHO_C" >&6; }
13269 if test "${GCC-no}" = yes
13271 if test "${charybdis_cv_c_gcc_pedantic+set}" = set; then
13272 echo $ECHO_N "(cached) $ECHO_C" >&6
13275 oldcflags="${CFLAGS-}"
13276 CFLAGS="${CFLAGS-} ${CWARNS} -pedantic -Werror"
13277 cat >conftest.$ac_ext <<_ACEOF
13280 cat confdefs.h >>conftest.$ac_ext
13281 cat >>conftest.$ac_ext <<_ACEOF
13282 /* end confdefs.h. */
13284 #include <string.h>
13292 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
13298 rm -f conftest.$ac_objext
13299 if { (ac_try="$ac_compile"
13300 case "(($ac_try" in
13301 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
13302 *) ac_try_echo
=$ac_try;;
13304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13305 (eval "$ac_compile") 2>conftest.er1
13307 grep -v '^ *+' conftest.er1
>conftest.err
13309 cat conftest.err
>&5
13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 (exit $ac_status); } && {
13312 test -z "$ac_c_werror_flag" ||
13313 test ! -s conftest.err
13314 } && test -s conftest.
$ac_objext; then
13315 charybdis_cv_c_gcc_pedantic
=yes
13317 echo "$as_me: failed program was:" >&5
13318 sed 's/^/| /' conftest.
$ac_ext >&5
13320 charybdis_cv_c_gcc_pedantic
=no
13323 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13324 CFLAGS
="${oldcflags}"
13327 if test "x$charybdis_cv_c_gcc_pedantic" = xyes
; then
13328 CWARNS
="${CWARNS}-pedantic "
13329 { echo "$as_me:$LINENO: result: ok" >&5
13330 echo "${ECHO_T}ok" >&6; }
13332 charybdis_cv_c_gcc_pedantic
=''
13333 { echo "$as_me:$LINENO: result: no" >&5
13334 echo "${ECHO_T}no" >&6; }
13337 { echo "$as_me:$LINENO: result: no" >&5
13338 echo "${ECHO_T}no" >&6; }
13342 IRC_CFLAGS
="$CFLAGS"
13347 if test "$shared_modules" = no
; then
13349 MOD_TARGET
="libmodules.a"
13350 MODULES_LIBS
="../modules/libmodules.a"
13353 cat >>confdefs.h
<<\_ACEOF
13354 #define STATIC_MODULES 1
13357 { echo "$as_me:$LINENO: WARNING: shared module support has been disabled!" >&5
13358 echo "$as_me: WARNING: shared module support has been disabled!" >&2;}
13361 if test "$shared_modules" = yes; then
13363 { echo "$as_me:$LINENO: checking for nlist" >&5
13364 echo $ECHO_N "checking for nlist... $ECHO_C" >&6; }
13365 if test "${ac_cv_func_nlist+set}" = set; then
13366 echo $ECHO_N "(cached) $ECHO_C" >&6
13368 cat >conftest.
$ac_ext <<_ACEOF
13371 cat confdefs.h
>>conftest.
$ac_ext
13372 cat >>conftest.
$ac_ext <<_ACEOF
13373 /* end confdefs.h. */
13374 /* Define nlist to an innocuous variant, in case <limits.h> declares nlist.
13375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13376 #define nlist innocuous_nlist
13378 /* System header to define __stub macros and hopefully few prototypes,
13379 which can conflict with char nlist (); below.
13380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13381 <limits.h> exists even on freestanding compilers. */
13384 # include <limits.h>
13386 # include <assert.h>
13391 /* Override any GCC internal prototype to avoid an error.
13392 Use char because int might match the return type of a GCC
13393 builtin and then its argument prototype would still apply. */
13398 /* The GNU C library defines this for functions which it implements
13399 to always fail with ENOSYS. Some functions are actually named
13400 something starting with __ and the normal name is an alias. */
13401 #if defined __stub_nlist || defined __stub___nlist
13413 rm -f conftest.
$ac_objext conftest
$ac_exeext
13414 if { (ac_try
="$ac_link"
13415 case "(($ac_try" in
13416 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
13417 *) ac_try_echo=$ac_try;;
13419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13420 (eval "$ac_link") 2>conftest.er1
13422 grep -v '^ *+' conftest.er1 >conftest.err
13424 cat conftest.err >&5
13425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426 (exit $ac_status); } && {
13427 test -z "$ac_c_werror_flag" ||
13428 test ! -s conftest.err
13429 } && test -s conftest$ac_exeext &&
13430 $as_test_x conftest$ac_exeext; then
13431 ac_cv_func_nlist=yes
13433 echo "$as_me: failed program was:" >&5
13434 sed 's/^/| /' conftest.$ac_ext >&5
13436 ac_cv_func_nlist=no
13439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13440 conftest$ac_exeext conftest.$ac_ext
13442 { echo "$as_me:$LINENO: result: $ac_cv_func_nlist" >&5
13443 echo "${ECHO_T}$ac_cv_func_nlist" >&6; }
13444 if test $ac_cv_func_nlist = yes; then
13447 { echo "$as_me:$LINENO: checking for nlist in -ldl" >&5
13448 echo $ECHO_N "checking for nlist in -ldl... $ECHO_C" >&6; }
13449 if test "${ac_cv_lib_dl_nlist+set}" = set; then
13450 echo $ECHO_N "(cached) $ECHO_C" >&6
13452 ac_check_lib_save_LIBS=$LIBS
13454 cat >conftest.$ac_ext <<_ACEOF
13457 cat confdefs.h >>conftest.$ac_ext
13458 cat >>conftest.$ac_ext <<_ACEOF
13459 /* end confdefs.h. */
13461 /* Override any GCC internal prototype to avoid an error.
13462 Use char because int might match the return type of a GCC
13463 builtin and then its argument prototype would still apply. */
13476 rm -f conftest.$ac_objext conftest$ac_exeext
13477 if { (ac_try="$ac_link"
13478 case "(($ac_try" in
13479 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
13480 *) ac_try_echo
=$ac_try;;
13482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13483 (eval "$ac_link") 2>conftest.er1
13485 grep -v '^ *+' conftest.er1
>conftest.err
13487 cat conftest.err
>&5
13488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489 (exit $ac_status); } && {
13490 test -z "$ac_c_werror_flag" ||
13491 test ! -s conftest.err
13492 } && test -s conftest
$ac_exeext &&
13493 $as_test_x conftest
$ac_exeext; then
13494 ac_cv_lib_dl_nlist
=yes
13496 echo "$as_me: failed program was:" >&5
13497 sed 's/^/| /' conftest.
$ac_ext >&5
13499 ac_cv_lib_dl_nlist
=no
13502 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13503 conftest
$ac_exeext conftest.
$ac_ext
13504 LIBS
=$ac_check_lib_save_LIBS
13506 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_nlist" >&5
13507 echo "${ECHO_T}$ac_cv_lib_dl_nlist" >&6; }
13508 if test $ac_cv_lib_dl_nlist = yes; then
13511 { echo "$as_me:$LINENO: checking for nlist in -lelf" >&5
13512 echo $ECHO_N "checking for nlist in -lelf... $ECHO_C" >&6; }
13513 if test "${ac_cv_lib_elf_nlist+set}" = set; then
13514 echo $ECHO_N "(cached) $ECHO_C" >&6
13516 ac_check_lib_save_LIBS
=$LIBS
13518 cat >conftest.
$ac_ext <<_ACEOF
13521 cat confdefs.h
>>conftest.
$ac_ext
13522 cat >>conftest.
$ac_ext <<_ACEOF
13523 /* end confdefs.h. */
13525 /* Override any GCC internal prototype to avoid an error.
13526 Use char because int might match the return type of a GCC
13527 builtin and then its argument prototype would still apply. */
13540 rm -f conftest.
$ac_objext conftest
$ac_exeext
13541 if { (ac_try
="$ac_link"
13542 case "(($ac_try" in
13543 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
13544 *) ac_try_echo=$ac_try;;
13546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13547 (eval "$ac_link") 2>conftest.er1
13549 grep -v '^ *+' conftest.er1 >conftest.err
13551 cat conftest.err >&5
13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 (exit $ac_status); } && {
13554 test -z "$ac_c_werror_flag" ||
13555 test ! -s conftest.err
13556 } && test -s conftest$ac_exeext &&
13557 $as_test_x conftest$ac_exeext; then
13558 ac_cv_lib_elf_nlist=yes
13560 echo "$as_me: failed program was:" >&5
13561 sed 's/^/| /' conftest.$ac_ext >&5
13563 ac_cv_lib_elf_nlist=no
13566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13567 conftest$ac_exeext conftest.$ac_ext
13568 LIBS=$ac_check_lib_save_LIBS
13570 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_nlist" >&5
13571 echo "${ECHO_T}$ac_cv_lib_elf_nlist" >&6; }
13572 if test $ac_cv_lib_elf_nlist = yes; then
13583 if test "${ac_cv_header_libelf_nlist_h+set}" = set; then
13584 { echo "$as_me:$LINENO: checking for libelf/nlist.h" >&5
13585 echo $ECHO_N "checking for libelf/nlist.h... $ECHO_C" >&6; }
13586 if test "${ac_cv_header_libelf_nlist_h+set}" = set; then
13587 echo $ECHO_N "(cached) $ECHO_C" >&6
13589 { echo "$as_me:$LINENO: result: $ac_cv_header_libelf_nlist_h" >&5
13590 echo "${ECHO_T}$ac_cv_header_libelf_nlist_h" >&6; }
13592 # Is the header compilable?
13593 { echo "$as_me:$LINENO: checking libelf/nlist.h usability" >&5
13594 echo $ECHO_N "checking libelf/nlist.h usability... $ECHO_C" >&6; }
13595 cat >conftest.$ac_ext <<_ACEOF
13598 cat confdefs.h >>conftest.$ac_ext
13599 cat >>conftest.$ac_ext <<_ACEOF
13600 /* end confdefs.h. */
13601 $ac_includes_default
13602 #include <libelf/nlist.h>
13604 rm -f conftest.$ac_objext
13605 if { (ac_try="$ac_compile"
13606 case "(($ac_try" in
13607 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
13608 *) ac_try_echo
=$ac_try;;
13610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13611 (eval "$ac_compile") 2>conftest.er1
13613 grep -v '^ *+' conftest.er1
>conftest.err
13615 cat conftest.err
>&5
13616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617 (exit $ac_status); } && {
13618 test -z "$ac_c_werror_flag" ||
13619 test ! -s conftest.err
13620 } && test -s conftest.
$ac_objext; then
13621 ac_header_compiler
=yes
13623 echo "$as_me: failed program was:" >&5
13624 sed 's/^/| /' conftest.
$ac_ext >&5
13626 ac_header_compiler
=no
13629 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13630 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13631 echo "${ECHO_T}$ac_header_compiler" >&6; }
13633 # Is the header present?
13634 { echo "$as_me:$LINENO: checking libelf/nlist.h presence" >&5
13635 echo $ECHO_N "checking libelf/nlist.h presence... $ECHO_C" >&6; }
13636 cat >conftest.
$ac_ext <<_ACEOF
13639 cat confdefs.h
>>conftest.
$ac_ext
13640 cat >>conftest.
$ac_ext <<_ACEOF
13641 /* end confdefs.h. */
13642 #include <libelf/nlist.h>
13644 if { (ac_try
="$ac_cpp conftest.$ac_ext"
13645 case "(($ac_try" in
13646 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
13647 *) ac_try_echo=$ac_try;;
13649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13650 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13652 grep -v '^ *+' conftest.er1 >conftest.err
13654 cat conftest.err >&5
13655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656 (exit $ac_status); } >/dev/null && {
13657 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13658 test ! -s conftest.err
13660 ac_header_preproc=yes
13662 echo "$as_me: failed program was:" >&5
13663 sed 's/^/| /' conftest.$ac_ext >&5
13665 ac_header_preproc=no
13668 rm -f conftest.err conftest.$ac_ext
13669 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13670 echo "${ECHO_T}$ac_header_preproc" >&6; }
13672 # So? What about this header?
13673 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13675 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5
13676 echo "$as_me: WARNING: libelf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13677 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: proceeding with the compiler's result" >&5
13678 echo "$as_me: WARNING: libelf/nlist.h: proceeding with the compiler's result" >&2;}
13679 ac_header_preproc=yes
13682 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: present but cannot be compiled" >&5
13683 echo "$as_me: WARNING: libelf/nlist.h: present but cannot be compiled" >&2;}
13684 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: check for missing prerequisite headers?" >&5
13685 echo "$as_me: WARNING: libelf/nlist.h: check for missing prerequisite headers?" >&2;}
13686 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: see the Autoconf documentation" >&5
13687 echo "$as_me: WARNING: libelf/nlist.h: see the Autoconf documentation" >&2;}
13688 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: section \"Present But Cannot Be Compiled\"" >&5
13689 echo "$as_me: WARNING: libelf/nlist.h: section \"Present But Cannot Be Compiled\"" >&2;}
13690 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: proceeding with the preprocessor's result" >&5
13691 echo "$as_me: WARNING: libelf/nlist.h: proceeding with the preprocessor's result" >&2;}
13692 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: in the future, the compiler will take precedence" >&5
13693 echo "$as_me: WARNING: libelf/nlist.h: in the future, the compiler will take precedence" >&2;}
13697 { echo "$as_me:$LINENO: checking for libelf/nlist.h" >&5
13698 echo $ECHO_N "checking for libelf/nlist.h... $ECHO_C" >&6; }
13699 if test "${ac_cv_header_libelf_nlist_h+set}" = set; then
13700 echo $ECHO_N "(cached) $ECHO_C" >&6
13702 ac_cv_header_libelf_nlist_h=$ac_header_preproc
13704 { echo "$as_me:$LINENO: result: $ac_cv_header_libelf_nlist_h" >&5
13705 echo "${ECHO_T}$ac_cv_header_libelf_nlist_h" >&6; }
13708 if test $ac_cv_header_libelf_nlist_h = yes; then
13709 nlist_h="libelf/nlist.h"
13713 if test "${ac_cv_header_elf_nlist_h+set}" = set; then
13714 { echo "$as_me:$LINENO: checking for elf/nlist.h" >&5
13715 echo $ECHO_N "checking for elf/nlist.h... $ECHO_C" >&6; }
13716 if test "${ac_cv_header_elf_nlist_h+set}" = set; then
13717 echo $ECHO_N "(cached) $ECHO_C" >&6
13719 { echo "$as_me:$LINENO: result: $ac_cv_header_elf_nlist_h" >&5
13720 echo "${ECHO_T}$ac_cv_header_elf_nlist_h" >&6; }
13722 # Is the header compilable?
13723 { echo "$as_me:$LINENO: checking elf/nlist.h usability" >&5
13724 echo $ECHO_N "checking elf/nlist.h usability... $ECHO_C" >&6; }
13725 cat >conftest.$ac_ext <<_ACEOF
13728 cat confdefs.h >>conftest.$ac_ext
13729 cat >>conftest.$ac_ext <<_ACEOF
13730 /* end confdefs.h. */
13731 $ac_includes_default
13732 #include <elf/nlist.h>
13734 rm -f conftest.$ac_objext
13735 if { (ac_try="$ac_compile"
13736 case "(($ac_try" in
13737 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
13738 *) ac_try_echo
=$ac_try;;
13740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13741 (eval "$ac_compile") 2>conftest.er1
13743 grep -v '^ *+' conftest.er1
>conftest.err
13745 cat conftest.err
>&5
13746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13747 (exit $ac_status); } && {
13748 test -z "$ac_c_werror_flag" ||
13749 test ! -s conftest.err
13750 } && test -s conftest.
$ac_objext; then
13751 ac_header_compiler
=yes
13753 echo "$as_me: failed program was:" >&5
13754 sed 's/^/| /' conftest.
$ac_ext >&5
13756 ac_header_compiler
=no
13759 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13760 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13761 echo "${ECHO_T}$ac_header_compiler" >&6; }
13763 # Is the header present?
13764 { echo "$as_me:$LINENO: checking elf/nlist.h presence" >&5
13765 echo $ECHO_N "checking elf/nlist.h presence... $ECHO_C" >&6; }
13766 cat >conftest.
$ac_ext <<_ACEOF
13769 cat confdefs.h
>>conftest.
$ac_ext
13770 cat >>conftest.
$ac_ext <<_ACEOF
13771 /* end confdefs.h. */
13772 #include <elf/nlist.h>
13774 if { (ac_try
="$ac_cpp conftest.$ac_ext"
13775 case "(($ac_try" in
13776 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
13777 *) ac_try_echo=$ac_try;;
13779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13780 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13782 grep -v '^ *+' conftest.er1 >conftest.err
13784 cat conftest.err >&5
13785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786 (exit $ac_status); } >/dev/null && {
13787 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13788 test ! -s conftest.err
13790 ac_header_preproc=yes
13792 echo "$as_me: failed program was:" >&5
13793 sed 's/^/| /' conftest.$ac_ext >&5
13795 ac_header_preproc=no
13798 rm -f conftest.err conftest.$ac_ext
13799 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13800 echo "${ECHO_T}$ac_header_preproc" >&6; }
13802 # So? What about this header?
13803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13805 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5
13806 echo "$as_me: WARNING: elf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13807 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: proceeding with the compiler's result" >&5
13808 echo "$as_me: WARNING: elf/nlist.h: proceeding with the compiler's result" >&2;}
13809 ac_header_preproc=yes
13812 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: present but cannot be compiled" >&5
13813 echo "$as_me: WARNING: elf/nlist.h: present but cannot be compiled" >&2;}
13814 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: check for missing prerequisite headers?" >&5
13815 echo "$as_me: WARNING: elf/nlist.h: check for missing prerequisite headers?" >&2;}
13816 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: see the Autoconf documentation" >&5
13817 echo "$as_me: WARNING: elf/nlist.h: see the Autoconf documentation" >&2;}
13818 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: section \"Present But Cannot Be Compiled\"" >&5
13819 echo "$as_me: WARNING: elf/nlist.h: section \"Present But Cannot Be Compiled\"" >&2;}
13820 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: proceeding with the preprocessor's result" >&5
13821 echo "$as_me: WARNING: elf/nlist.h: proceeding with the preprocessor's result" >&2;}
13822 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: in the future, the compiler will take precedence" >&5
13823 echo "$as_me: WARNING: elf/nlist.h: in the future, the compiler will take precedence" >&2;}
13827 { echo "$as_me:$LINENO: checking for elf/nlist.h" >&5
13828 echo $ECHO_N "checking for elf/nlist.h... $ECHO_C" >&6; }
13829 if test "${ac_cv_header_elf_nlist_h+set}" = set; then
13830 echo $ECHO_N "(cached) $ECHO_C" >&6
13832 ac_cv_header_elf_nlist_h=$ac_header_preproc
13834 { echo "$as_me:$LINENO: result: $ac_cv_header_elf_nlist_h" >&5
13835 echo "${ECHO_T}$ac_cv_header_elf_nlist_h" >&6; }
13838 if test $ac_cv_header_elf_nlist_h = yes; then
13839 nlist_h="elf/nlist.h"
13843 if test "${ac_cv_header_nlist_h+set}" = set; then
13844 { echo "$as_me:$LINENO: checking for nlist.h" >&5
13845 echo $ECHO_N "checking for nlist.h... $ECHO_C" >&6; }
13846 if test "${ac_cv_header_nlist_h+set}" = set; then
13847 echo $ECHO_N "(cached) $ECHO_C" >&6
13849 { echo "$as_me:$LINENO: result: $ac_cv_header_nlist_h" >&5
13850 echo "${ECHO_T}$ac_cv_header_nlist_h" >&6; }
13852 # Is the header compilable?
13853 { echo "$as_me:$LINENO: checking nlist.h usability" >&5
13854 echo $ECHO_N "checking nlist.h usability... $ECHO_C" >&6; }
13855 cat >conftest.$ac_ext <<_ACEOF
13858 cat confdefs.h >>conftest.$ac_ext
13859 cat >>conftest.$ac_ext <<_ACEOF
13860 /* end confdefs.h. */
13861 $ac_includes_default
13864 rm -f conftest.$ac_objext
13865 if { (ac_try="$ac_compile"
13866 case "(($ac_try" in
13867 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
13868 *) ac_try_echo
=$ac_try;;
13870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13871 (eval "$ac_compile") 2>conftest.er1
13873 grep -v '^ *+' conftest.er1
>conftest.err
13875 cat conftest.err
>&5
13876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877 (exit $ac_status); } && {
13878 test -z "$ac_c_werror_flag" ||
13879 test ! -s conftest.err
13880 } && test -s conftest.
$ac_objext; then
13881 ac_header_compiler
=yes
13883 echo "$as_me: failed program was:" >&5
13884 sed 's/^/| /' conftest.
$ac_ext >&5
13886 ac_header_compiler
=no
13889 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13890 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13891 echo "${ECHO_T}$ac_header_compiler" >&6; }
13893 # Is the header present?
13894 { echo "$as_me:$LINENO: checking nlist.h presence" >&5
13895 echo $ECHO_N "checking nlist.h presence... $ECHO_C" >&6; }
13896 cat >conftest.
$ac_ext <<_ACEOF
13899 cat confdefs.h
>>conftest.
$ac_ext
13900 cat >>conftest.
$ac_ext <<_ACEOF
13901 /* end confdefs.h. */
13904 if { (ac_try
="$ac_cpp conftest.$ac_ext"
13905 case "(($ac_try" in
13906 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
13907 *) ac_try_echo=$ac_try;;
13909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13910 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13912 grep -v '^ *+' conftest.er1 >conftest.err
13914 cat conftest.err >&5
13915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13916 (exit $ac_status); } >/dev/null && {
13917 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13918 test ! -s conftest.err
13920 ac_header_preproc=yes
13922 echo "$as_me: failed program was:" >&5
13923 sed 's/^/| /' conftest.$ac_ext >&5
13925 ac_header_preproc=no
13928 rm -f conftest.err conftest.$ac_ext
13929 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13930 echo "${ECHO_T}$ac_header_preproc" >&6; }
13932 # So? What about this header?
13933 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13935 { echo "$as_me:$LINENO: WARNING: nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5
13936 echo "$as_me: WARNING: nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13937 { echo "$as_me:$LINENO: WARNING: nlist.h: proceeding with the compiler's result" >&5
13938 echo "$as_me: WARNING: nlist.h: proceeding with the compiler's result" >&2;}
13939 ac_header_preproc=yes
13942 { echo "$as_me:$LINENO: WARNING: nlist.h: present but cannot be compiled" >&5
13943 echo "$as_me: WARNING: nlist.h: present but cannot be compiled" >&2;}
13944 { echo "$as_me:$LINENO: WARNING: nlist.h: check for missing prerequisite headers?" >&5
13945 echo "$as_me: WARNING: nlist.h: check for missing prerequisite headers?" >&2;}
13946 { echo "$as_me:$LINENO: WARNING: nlist.h: see the Autoconf documentation" >&5
13947 echo "$as_me: WARNING: nlist.h: see the Autoconf documentation" >&2;}
13948 { echo "$as_me:$LINENO: WARNING: nlist.h: section \"Present But Cannot Be Compiled\"" >&5
13949 echo "$as_me: WARNING: nlist.h: section \"Present But Cannot Be Compiled\"" >&2;}
13950 { echo "$as_me:$LINENO: WARNING: nlist.h: proceeding with the preprocessor's result" >&5
13951 echo "$as_me: WARNING: nlist.h: proceeding with the preprocessor's result" >&2;}
13952 { echo "$as_me:$LINENO: WARNING: nlist.h: in the future, the compiler will take precedence" >&5
13953 echo "$as_me: WARNING: nlist.h: in the future, the compiler will take precedence" >&2;}
13957 { echo "$as_me:$LINENO: checking for nlist.h" >&5
13958 echo $ECHO_N "checking for nlist.h... $ECHO_C" >&6; }
13959 if test "${ac_cv_header_nlist_h+set}" = set; then
13960 echo $ECHO_N "(cached) $ECHO_C" >&6
13962 ac_cv_header_nlist_h=$ac_header_preproc
13964 { echo "$as_me:$LINENO: result: $ac_cv_header_nlist_h" >&5
13965 echo "${ECHO_T}$ac_cv_header_nlist_h" >&6; }
13968 if test $ac_cv_header_nlist_h = yes; then
13973 if test x"$nlist_h" = "x"; then
13975 cat >>confdefs.h <<_ACEOF
13976 #define SYMBOL_PREFIX ""
13980 { echo "$as_me:$LINENO: checking for extra underscores prepended to symbol names" >&5
13981 echo $ECHO_N "checking for extra underscores prepended to symbol names... $ECHO_C" >&6; }
13982 if test "${symbol_underscores+set}" = set; then
13983 echo $ECHO_N "(cached) $ECHO_C" >&6
13986 cat << EOF > conftest.c
13987 #include <$nlist_h>
13989 #include <stdlib.h>
13990 void _modinit(void);
13991 int main(int argc, char *argv[]) {
13993 struct nlist nl[5];
13995 /* fill the names in this way, so it'll work almost everywhere */
13996 nl[0].n_name = "_modinit";
13997 nl[1].n_name = "__modinit";
13998 nl[2].n_name = "___modinit";
13999 nl[3].n_name = "____modinit";
14000 nl[0].n_value = nl[1].n_value = nl[2].n_value = nl[3].n_value = nl[4].n_name = NULL;
14002 if(argc < 2 || (nlist(argv[1], nl)) == -1) exit(-1);
14003 for(i = 0; i < 4; i++) {
14004 if(nl[i].n_value != NULL)
14007 for(j = 0; j < i; j++)
14014 void _modinit(void) { return; }
14016 $CC $CPPFLAGS $IRC_CFLAGS -o conftest conftest.c $nlist_lib >/dev/null 2>&1
14017 symbol_underscores=`.
/conftest conftest
`
14018 { echo "$as_me:$LINENO: result: $symbol_underscores" >&5
14019 echo "${ECHO_T}$symbol_underscores" >&6; }
14020 $RM -f conftest conftest.c
14025 cat >>confdefs.h <<_ACEOF
14026 #define SYMBOL_PREFIX "${symbol_underscores}"
14045 if test "$prefix" = "NONE"; then
14047 cat >>confdefs.h <<_ACEOF
14048 #define IRCD_PREFIX "$ac_default_prefix"
14055 prefix=`echo $prefix | sed 's/\/$//'`
14057 cat >>confdefs.h <<_ACEOF
14058 #define IRCD_PREFIX "$prefix"
14064 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"
14067 cat >confcache <<\_ACEOF
14068 # This file is a shell script that caches the results of configure
14069 # tests run on this system so they can be shared between configure
14070 # scripts and configure runs, see configure's option --config-cache.
14071 # It is not useful on other systems. If it contains results you don't
14072 # want to keep, you may remove or edit it.
14074 # config.status only pays attention to the cache file if you give it
14075 # the --recheck option to rerun configure.
14077 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
14078 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14079 # following values.
14083 # The following way of writing the cache mishandles newlines in values,
14084 # but we know of no workaround that is simple, portable, and efficient.
14085 # So, we kill variables containing newlines.
14086 # Ultrix sh set writes to stderr and can't be redirected directly,
14087 # and sets the high bit in the cache file unless we assign to the vars.
14089 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14090 eval ac_val
=\$
$ac_var
14094 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
14095 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
14098 _
| IFS
| as_nl
) ;; #(
14099 *) $as_unset $ac_var ;;
14105 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14106 *${as_nl}ac_space
=\
*)
14107 # `set' does not quote correctly, so add quotes (double-quote
14108 # substitution turns \\\\ into \\, and sed turns \\ into \).
14111 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14114 # `set' quotes correctly as required by POSIX, so do not add quotes.
14115 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14124 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14126 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14128 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
14129 if test -w "$cache_file"; then
14130 test "x$cache_file" != "x/dev/null" &&
14131 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
14132 echo "$as_me: updating cache $cache_file" >&6;}
14133 cat confcache
>$cache_file
14135 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14136 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14141 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
14142 # Let make expand exec_prefix.
14143 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
14145 DEFS
=-DHAVE_CONFIG_H
14149 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
14150 # 1. Remove the extension, and $U if already installed.
14151 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
14152 ac_i
=`echo "$ac_i" | sed "$ac_script"`
14153 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14154 # will be set to the directory where LIBOBJS objects are built.
14155 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14156 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
14158 LIBOBJS
=$ac_libobjs
14160 LTLIBOBJS
=$ac_ltlibobjs
14164 : ${CONFIG_STATUS=./config.status}
14165 ac_clean_files_save
=$ac_clean_files
14166 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
14167 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14168 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14169 cat >$CONFIG_STATUS <<_ACEOF
14171 # Generated by $as_me.
14172 # Run this file to recreate the current configuration.
14173 # Compiler output produced by configure, useful for debugging
14174 # configure, is in config.log if it exists.
14177 ac_cs_recheck=false
14179 SHELL=\${CONFIG_SHELL-$SHELL}
14182 cat >>$CONFIG_STATUS <<\_ACEOF
14183 ## --------------------- ##
14184 ## M4sh Initialization. ##
14185 ## --------------------- ##
14187 # Be more Bourne compatible
14188 DUALCASE
=1; export DUALCASE
# for MKS sh
14189 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
14192 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14193 # is contrary to our usage. Disable this feature.
14194 alias -g '${1+"$@"}'='"$@"'
14195 setopt NO_GLOB_SUBST
14197 case `(set -o) 2>/dev/null` in
14198 *posix
*) set -o posix
;;
14207 # Avoid depending upon Character Ranges.
14208 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
14209 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14210 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
14211 as_cr_digits
='0123456789'
14212 as_cr_alnum
=$as_cr_Letters$as_cr_digits
14214 # The user is always right.
14215 if test "${PATH_SEPARATOR+set}" != set; then
14216 echo "#! /bin/sh" >conf$$.sh
14217 echo "exit 0" >>conf$$.sh
14219 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
14227 # Support unset when possible.
14228 if ( (MAIL
=60; unset MAIL
) || exit) >/dev
/null
2>&1; then
14236 # We need space, tab and new line, in precisely that order. Quoting is
14237 # there to prevent editors from complaining about space-tab.
14238 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14239 # splitting by setting IFS to empty value.)
14244 # Find who we are. Look in the path if we contain no directory separator.
14246 *[\\/]* ) as_myself
=$0 ;;
14247 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14248 for as_dir
in $PATH
14251 test -z "$as_dir" && as_dir
=.
14252 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
14258 # We did not find ourselves, most probably we were run as `sh COMMAND'
14259 # in which case we are not to be found in the path.
14260 if test "x$as_myself" = x
; then
14263 if test ! -f "$as_myself"; then
14264 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14265 { (exit 1); exit 1; }
14268 # Work around bugs in pre-3.0 UWIN ksh.
14269 for as_var
in ENV MAIL MAILPATH
14270 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
14278 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14279 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14280 LC_TELEPHONE LC_TIME
14282 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14283 eval $as_var=C
; export $as_var
14285 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
14289 # Required to use basename.
14290 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
14291 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
14297 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14298 as_basename
=basename
14304 # Name of the executable.
14305 as_me
=`$as_basename -- "$0" ||
14306 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14307 X"$0" : 'X\(//\)$' \| \
14308 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14310 sed '/^.*\/\([^/][^/]*\)\/*$/{
14329 as_lineno_1
=$LINENO
14330 as_lineno_2
=$LINENO
14331 test "x$as_lineno_1" != "x$as_lineno_2" &&
14332 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
14334 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14335 # uniformly replaced by the line number. The first 'sed' inserts a
14336 # line-number line after each line using $LINENO; the second 'sed'
14337 # does the real work. The second script uses 'N' to pair each
14338 # line-number line with the line containing $LINENO, and appends
14339 # trailing '-' during substitution so that $LINENO is not a special
14340 # case at line end.
14341 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14342 # scripts with optimization help from Paolo Bonzini. Blame Lee
14343 # E. McMahon (1931-1989) for sed's syntax. :-)
14355 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
14358 ' >$as_me.lineno
&&
14359 chmod +x
"$as_me.lineno" ||
14360 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
14361 { (exit 1); exit 1; }; }
14363 # Don't try to exec as it changes $[0], causing all sort of problems
14364 # (the dirname of $[0] is not the place where we might find the
14365 # original and so on. Autoconf is especially sensitive to this).
14366 .
"./$as_me.lineno"
14367 # Exit status is that of the last command.
14372 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
14378 ECHO_C
= ECHO_N
= ECHO_T
=
14379 case `echo -n x` in
14381 case `echo 'x\c'` in
14382 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
14389 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
14390 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
14396 rm -f conf$$ conf$$.exe conf$$.
file
14397 if test -d conf$$.dir
; then
14398 rm -f conf$$.dir
/conf$$.
file
14404 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
14406 # ... but there are two gotchas:
14407 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14408 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14409 # In both cases, we have to default to `cp -p'.
14410 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe
||
14412 elif ln conf$$.
file conf$$
2>/dev
/null
; then
14417 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
14418 rmdir conf$$.dir
2>/dev
/null
14420 if mkdir -p .
2>/dev
/null
; then
14423 test -d .
/-p && rmdir .
/-p
14427 if test -x / >/dev
/null
2>&1; then
14428 as_test_x
='test -x'
14430 if ls -dL / >/dev
/null
2>&1; then
14437 if test -d "$1"; then
14443 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14444 ???[sx]*):;;*)false;;esac;fi
14448 as_executable_p
=$as_test_x
14450 # Sed expression to map a string onto a valid CPP name.
14451 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14453 # Sed expression to map a string onto a valid variable name.
14454 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14459 # Save the log message, to keep $[0] and so on meaningful, and to
14460 # report actual input values of CONFIG_FILES etc. instead of their
14461 # values after options handling.
14463 This file was extended by charybdis $as_me 2.2.0, which was
14464 generated by GNU Autoconf 2.61. Invocation command line was
14466 CONFIG_FILES = $CONFIG_FILES
14467 CONFIG_HEADERS = $CONFIG_HEADERS
14468 CONFIG_LINKS = $CONFIG_LINKS
14469 CONFIG_COMMANDS = $CONFIG_COMMANDS
14472 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14477 cat >>$CONFIG_STATUS <<_ACEOF
14478 # Files that config.status was made for.
14479 config_files="$ac_config_files"
14480 config_headers="$ac_config_headers"
14484 cat >>$CONFIG_STATUS <<\_ACEOF
14486 \`$as_me' instantiates files from templates according to the
14487 current configuration.
14489 Usage: $0 [OPTIONS] [FILE]...
14491 -h, --help print this help, then exit
14492 -V, --version print version number and configuration settings, then exit
14493 -q, --quiet do not print progress messages
14494 -d, --debug don't remove temporary files
14495 --recheck update $as_me by reconfiguring in the same conditions
14496 --file=FILE[:TEMPLATE]
14497 instantiate the configuration file FILE
14498 --header=FILE[:TEMPLATE]
14499 instantiate the configuration header FILE
14501 Configuration files:
14504 Configuration headers:
14507 Report bugs to <bug-autoconf@gnu.org>."
14510 cat >>$CONFIG_STATUS <<_ACEOF
14512 charybdis config.status 2.2.0
14513 configured by $0, generated by GNU Autoconf 2.61,
14514 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14516 Copyright (C) 2006 Free Software Foundation, Inc.
14517 This config.status script is free software; the Free Software Foundation
14518 gives unlimited permission to copy, distribute and modify it."
14525 cat >>$CONFIG_STATUS <<\_ACEOF
14526 # If no file are specified by the user, then we need to provide default
14527 # value. By we need to know if files were specified by the user.
14533 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
14534 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
14545 # Handling of the options.
14546 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14548 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14549 echo "$ac_cs_version"; exit ;;
14550 --debug | --debu | --deb | --de | --d | -d )
14552 --file | --fil | --fi | --f )
14554 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
14555 ac_need_defaults
=false
;;
14556 --header | --heade | --head | --hea )
14558 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
14559 ac_need_defaults
=false
;;
14561 # Conflict between --help and --header
14562 { echo "$as_me: error: ambiguous option: $1
14563 Try \`$0 --help' for more information." >&2
14564 { (exit 1); exit 1; }; };;
14565 --help | --hel | -h )
14566 echo "$ac_cs_usage"; exit ;;
14567 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14568 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14571 # This is an error.
14572 -*) { echo "$as_me: error: unrecognized option: $1
14573 Try \`$0 --help' for more information." >&2
14574 { (exit 1); exit 1; }; } ;;
14576 *) ac_config_targets
="$ac_config_targets $1"
14577 ac_need_defaults
=false
;;
14583 ac_configure_extra_args
=
14585 if $ac_cs_silent; then
14587 ac_configure_extra_args
="$ac_configure_extra_args --silent"
14591 cat >>$CONFIG_STATUS <<_ACEOF
14592 if \$ac_cs_recheck; then
14593 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14594 CONFIG_SHELL=$SHELL
14595 export CONFIG_SHELL
14596 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14600 cat >>$CONFIG_STATUS <<\_ACEOF
14604 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14605 ## Running $as_me. ##
14611 cat >>$CONFIG_STATUS <<_ACEOF
14614 cat >>$CONFIG_STATUS <<\_ACEOF
14616 # Handling of arguments.
14617 for ac_config_target
in $ac_config_targets
14619 case $ac_config_target in
14620 "include/setup.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/setup.h" ;;
14621 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
14622 "libcharybdis/Makefile") CONFIG_FILES
="$CONFIG_FILES libcharybdis/Makefile" ;;
14623 "servlink/Makefile") CONFIG_FILES
="$CONFIG_FILES servlink/Makefile" ;;
14624 "extensions/Makefile") CONFIG_FILES
="$CONFIG_FILES extensions/Makefile" ;;
14625 "unsupported/Makefile") CONFIG_FILES
="$CONFIG_FILES unsupported/Makefile" ;;
14626 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
14627 "modules/Makefile") CONFIG_FILES
="$CONFIG_FILES modules/Makefile" ;;
14628 "tools/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/Makefile" ;;
14629 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
14630 "help/Makefile") CONFIG_FILES
="$CONFIG_FILES help/Makefile" ;;
14632 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14633 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14634 { (exit 1); exit 1; }; };;
14639 # If the user did not use the arguments to specify the items to instantiate,
14640 # then the envvar interface is used. Set only those that are not.
14641 # We use the long form for the default assignment because of an extremely
14642 # bizarre bug on SunOS 4.1.3.
14643 if $ac_need_defaults; then
14644 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
14645 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
14648 # Have a temporary directory for convenience. Make it in the build tree
14649 # simply because there is no reason against having it here, and in addition,
14650 # creating and moving files from /tmp can sometimes cause problems.
14651 # Hook for its removal unless debugging.
14652 # Note that there is a small window in which the directory will not be cleaned:
14653 # after its creation but before its name has been assigned to `$tmp'.
14657 trap 'exit_status=$?
14658 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14660 trap '{ (exit 1); exit 1; }' 1 2 13 15
14662 # Create a (secure) tmp directory for tmp files.
14665 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14666 test -n "$tmp" && test -d "$tmp"
14669 tmp
=.
/conf$$
-$RANDOM
14670 (umask 077 && mkdir "$tmp")
14673 echo "$me: cannot create a temporary directory in ." >&2
14674 { (exit 1); exit 1; }
14678 # Set up the sed scripts for CONFIG_FILES section.
14681 # No need to generate the scripts if there are no CONFIG_FILES.
14682 # This happens for instance when ./config.status config.h
14683 if test -n "$CONFIG_FILES"; then
14690 for ac_last_try
in false false false false false
:; do
14691 cat >conf$
$subs.
sed <<_ACEOF
14692 SHELL!$SHELL$ac_delim
14693 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
14694 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
14695 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
14696 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
14697 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
14698 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
14699 exec_prefix!$exec_prefix$ac_delim
14700 prefix!$prefix$ac_delim
14701 program_transform_name!$program_transform_name$ac_delim
14702 bindir!$bindir$ac_delim
14703 sbindir!$sbindir$ac_delim
14704 libexecdir!$libexecdir$ac_delim
14705 datarootdir!$datarootdir$ac_delim
14706 datadir!$datadir$ac_delim
14707 sysconfdir!$sysconfdir$ac_delim
14708 sharedstatedir!$sharedstatedir$ac_delim
14709 localstatedir!$localstatedir$ac_delim
14710 includedir!$includedir$ac_delim
14711 oldincludedir!$oldincludedir$ac_delim
14712 docdir!$docdir$ac_delim
14713 infodir!$infodir$ac_delim
14714 htmldir!$htmldir$ac_delim
14715 dvidir!$dvidir$ac_delim
14716 pdfdir!$pdfdir$ac_delim
14717 psdir!$psdir$ac_delim
14718 libdir!$libdir$ac_delim
14719 localedir!$localedir$ac_delim
14720 mandir!$mandir$ac_delim
14721 DEFS!$DEFS$ac_delim
14722 ECHO_C!$ECHO_C$ac_delim
14723 ECHO_N!$ECHO_N$ac_delim
14724 ECHO_T!$ECHO_T$ac_delim
14725 LIBS!$LIBS$ac_delim
14726 build_alias!$build_alias$ac_delim
14727 host_alias!$host_alias$ac_delim
14728 target_alias!$target_alias$ac_delim
14730 CFLAGS!$CFLAGS$ac_delim
14731 LDFLAGS!$LDFLAGS$ac_delim
14732 CPPFLAGS!$CPPFLAGS$ac_delim
14733 ac_ct_CC!$ac_ct_CC$ac_delim
14734 EXEEXT!$EXEEXT$ac_delim
14735 OBJEXT!$OBJEXT$ac_delim
14736 MKDEP!$MKDEP$ac_delim
14737 MAKEDEPEND!$MAKEDEPEND$ac_delim
14738 STDOUT!$STDOUT$ac_delim
14740 GREP!$GREP$ac_delim
14741 EGREP!$EGREP$ac_delim
14742 SET_MAKE!$SET_MAKE$ac_delim
14743 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
14744 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
14745 INSTALL_DATA!$INSTALL_DATA$ac_delim
14753 RANLIB!$RANLIB$ac_delim
14754 TOUCH!$TOUCH$ac_delim
14755 YACC!$YACC$ac_delim
14756 YFLAGS!$YFLAGS$ac_delim
14758 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
14759 LEXLIB!$LEXLIB$ac_delim
14760 CRYPT_LIB!$CRYPT_LIB$ac_delim
14761 VICONF!$VICONF$ac_delim
14762 ALLOCA!$ALLOCA$ac_delim
14763 ENCSPEED!$ENCSPEED$ac_delim
14764 ZLIB_LD!$ZLIB_LD$ac_delim
14765 ETC_DIR!$ETC_DIR$ac_delim
14766 confdir!$confdir$ac_delim
14767 LOG_DIR!$LOG_DIR$ac_delim
14768 logdir!$logdir$ac_delim
14769 HELP_DIR!$HELP_DIR$ac_delim
14770 helpdir!$helpdir$ac_delim
14771 MODULE_DIR!$MODULE_DIR$ac_delim
14772 moduledir!$moduledir$ac_delim
14773 SELECT_TYPE!$SELECT_TYPE$ac_delim
14774 MODULES_LIBS!$MODULES_LIBS$ac_delim
14775 MOD_TARGET!$MOD_TARGET$ac_delim
14776 SSL_SRCS_ENABLE!$SSL_SRCS_ENABLE$ac_delim
14777 SSL_INCLUDES!$SSL_INCLUDES$ac_delim
14778 SSL_LIBS!$SSL_LIBS$ac_delim
14779 PICFLAGS!$PICFLAGS$ac_delim
14780 IRC_CFLAGS!$IRC_CFLAGS$ac_delim
14781 SEDOBJ!$SEDOBJ$ac_delim
14782 LIBOBJS!$LIBOBJS$ac_delim
14783 LTLIBOBJS!$LTLIBOBJS$ac_delim
14786 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
14788 elif $ac_last_try; then
14789 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14790 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14791 { (exit 1); exit 1; }; }
14793 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
14797 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14798 if test -n "$ac_eof"; then
14799 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
14800 ac_eof
=`expr $ac_eof + 1`
14803 cat >>$CONFIG_STATUS <<_ACEOF
14804 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
14805 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
14808 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14809 s/^/s,@/; s/!/@,|#_!!_#|/
14812 s/'"$ac_delim"'$/,g/; t
14814 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14815 ' >>$CONFIG_STATUS <conf$
$subs.
sed
14816 rm -f conf$
$subs.
sed
14817 cat >>$CONFIG_STATUS <<_ACEOF
14824 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14825 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14826 # trailing colons and then remove the whole line if VPATH becomes empty
14827 # (actually we leave an empty line to preserve line numbers).
14828 if test "x$srcdir" = x.
; then
14829 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
14830 s/:*\$(srcdir):*/:/
14831 s/:*\${srcdir}:*/:/
14833 s/^\([^=]*=[ ]*\):*/\1/
14839 cat >>$CONFIG_STATUS <<\_ACEOF
14840 fi # test -n "$CONFIG_FILES"
14843 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
14846 :[FHLC
]) ac_mode
=$ac_tag; continue;;
14848 case $ac_mode$ac_tag in
14850 :L
* | :C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14851 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14852 { (exit 1); exit 1; }; };;
14853 :[FH
]-) ac_tag
=-:-;;
14854 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
14871 -) ac_f
="$tmp/stdin";;
14872 *) # Look for the file first in the build tree, then in the source tree
14873 # (if the path is not absolute). The absolute path cannot be DOS-style,
14874 # because $ac_f cannot contain `:'.
14878 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
14880 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14881 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14882 { (exit 1); exit 1; }; };;
14884 ac_file_inputs
="$ac_file_inputs $ac_f"
14887 # Let's still pretend it is `configure' which instantiates (i.e., don't
14888 # use $as_me), people would be surprised to read:
14889 # /* config.h. Generated by config.status. */
14890 configure_input
="Generated from "`IFS=:
14891 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
14892 if test x
"$ac_file" != x
-; then
14893 configure_input
="$ac_file. $configure_input"
14894 { echo "$as_me:$LINENO: creating $ac_file" >&5
14895 echo "$as_me: creating $ac_file" >&6;}
14899 *:-:* | *:-) cat >"$tmp/stdin";;
14904 ac_dir
=`$as_dirname -- "$ac_file" ||
14905 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14906 X"$ac_file" : 'X\(//\)[^/]' \| \
14907 X"$ac_file" : 'X\(//\)$' \| \
14908 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14910 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14914 /^X\(\/\/\)[^/].*/{
14929 -*) as_dir
=.
/$as_dir;;
14931 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14935 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14936 *) as_qdir
=$as_dir;;
14938 as_dirs
="'$as_qdir' $as_dirs"
14939 as_dir
=`$as_dirname -- "$as_dir" ||
14940 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14941 X"$as_dir" : 'X\(//\)[^/]' \| \
14942 X"$as_dir" : 'X\(//\)$' \| \
14943 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14945 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14949 /^X\(\/\/\)[^/].*/{
14962 test -d "$as_dir" && break
14964 test -z "$as_dirs" || eval "mkdir $as_dirs"
14965 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14966 echo "$as_me: error: cannot create directory $as_dir" >&2;}
14967 { (exit 1); exit 1; }; }; }
14971 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
14973 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14974 # A ".." for each directory in $ac_dir_suffix.
14975 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
14976 case $ac_top_builddir_sub in
14977 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
14978 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
14981 ac_abs_top_builddir
=$ac_pwd
14982 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
14983 # for backward compatibility:
14984 ac_top_builddir
=$ac_top_build_prefix
14987 .
) # We are building in place.
14989 ac_top_srcdir
=$ac_top_builddir_sub
14990 ac_abs_top_srcdir
=$ac_pwd ;;
14991 [\\/]* | ?
:[\\/]* ) # Absolute name.
14992 ac_srcdir
=$srcdir$ac_dir_suffix;
14993 ac_top_srcdir
=$srcdir
14994 ac_abs_top_srcdir
=$srcdir ;;
14995 *) # Relative name.
14996 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
14997 ac_top_srcdir
=$ac_top_build_prefix$srcdir
14998 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
15000 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
15010 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
15011 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
15015 cat >>$CONFIG_STATUS <<\_ACEOF
15016 # If the template does not know about datarootdir, expand it.
15017 # FIXME: This hack should be removed a few years after 2.60.
15018 ac_datarootdir_hack
=; ac_datarootdir_seen
=
15020 case `sed -n '/datarootdir/ {
15029 ' $ac_file_inputs` in
15030 *datarootdir
*) ac_datarootdir_seen
=yes;;
15031 *@datadir@
*|*@docdir@
*|*@infodir@
*|*@localedir@
*|*@mandir@
*)
15032 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15033 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15035 cat >>$CONFIG_STATUS <<_ACEOF
15036 ac_datarootdir_hack='
15037 s&@datadir@&$datadir&g
15038 s&@docdir@&$docdir&g
15039 s&@infodir@&$infodir&g
15040 s&@localedir@&$localedir&g
15041 s&@mandir@&$mandir&g
15042 s&\\\${datarootdir}&$datarootdir&g' ;;
15046 # Neutralize VPATH when `$srcdir' = `.'.
15047 # Shell code in configure.ac might set extrasub.
15048 # FIXME: do we really want to maintain this feature?
15049 cat >>$CONFIG_STATUS <<_ACEOF
15053 cat >>$CONFIG_STATUS <<\_ACEOF
15055 /@
[a
-zA-Z_][a
-zA-Z_0-9]*@
/!b
15056 s
&@configure_input@
&$configure_input&;t t
15057 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
15058 s
&@srcdir@
&$ac_srcdir&;t t
15059 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
15060 s
&@top_srcdir@
&$ac_top_srcdir&;t t
15061 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
15062 s
&@builddir@
&$ac_builddir&;t t
15063 s
&@abs_builddir@
&$ac_abs_builddir&;t t
15064 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
15065 s
&@INSTALL@
&$ac_INSTALL&;t t
15066 $ac_datarootdir_hack
15067 " $ac_file_inputs | sed -f "$tmp/subs
-1.
sed" >$tmp/out
15069 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15070 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
15071 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
15072 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
15073 which seems to be undefined. Please make sure it is defined." >&5
15074 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
15075 which seems to be undefined. Please make sure it is defined." >&2;}
15079 -) cat "$tmp/out"; rm -f "$tmp/out";;
15080 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
15089 # Transform confdefs.h into a sed script `conftest.defines', that
15090 # substitutes the proper values into config.h.in to produce config.h.
15091 rm -f conftest.defines conftest.
tail
15092 # First, append a space to every undef/define line, to ease matching.
15093 echo 's/$/ /' >conftest.defines
15094 # Then, protect against being on the right side of a sed subst, or in
15095 # an unquoted here document, in config.status. If some macros were
15096 # called several times there might be several #defines for the same
15097 # symbol, which is useless. But do not sort them, since the last
15098 # AC_DEFINE must be honored.
15099 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
15100 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
15101 # NAME is the cpp macro being defined, VALUE is the value it is being given.
15102 # PARAMS is the parameter list in the macro definition--in most cases, it's
15103 # just an empty string.
15104 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
15105 ac_dB
='\\)[ (].*,\\1define\\2'
15113 s/^[ ]*#[ ]*define[ ][ ]*//
15118 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
15119 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
15120 ' >>conftest.defines
15122 # Remove the space that was appended to ease matching.
15123 # Then replace #undef with comments. This is necessary, for
15124 # example, in the case of _POSIX_SOURCE, which is predefined and required
15125 # on some systems where configure will not decide to define it.
15126 # (The regexp can be short, since the line contains either #define or #undef.)
15128 s,^[ #]*u.*,/* & */,' >>conftest.defines
15130 # Break up conftest.defines:
15131 ac_max_sed_lines
=50
15133 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
15134 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
15135 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
15137 ac_in
='$ac_file_inputs'
15138 ac_out
='"$tmp/out1"'
15139 ac_nxt
='"$tmp/out2"'
15143 # Write a here document:
15144 cat >>$CONFIG_STATUS <<_ACEOF
15145 # First, check the format of the line:
15146 cat >"\$tmp/defines.sed" <<\\CEOF
15147 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
15148 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
15152 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
15154 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
15155 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
15156 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
15157 grep . conftest.
tail >/dev
/null
|| break
15158 rm -f conftest.defines
15159 mv conftest.
tail conftest.defines
15161 rm -f conftest.defines conftest.
tail
15163 echo "ac_result=$ac_in" >>$CONFIG_STATUS
15164 cat >>$CONFIG_STATUS <<\_ACEOF
15165 if test x
"$ac_file" != x
-; then
15166 echo "/* $configure_input */" >"$tmp/config.h"
15167 cat "$ac_result" >>"$tmp/config.h"
15168 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
15169 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15170 echo "$as_me: $ac_file is unchanged" >&6;}
15173 mv "$tmp/config.h" $ac_file
15176 echo "/* $configure_input */"
15188 { (exit 0); exit 0; }
15190 chmod +x
$CONFIG_STATUS
15191 ac_clean_files
=$ac_clean_files_save
15194 # configure is writing to config.log, and then calls config.status.
15195 # config.status does its own redirection, appending to config.log.
15196 # Unfortunately, on DOS this fails, as config.log is still kept open
15197 # by configure, so config.status won't be able to write to it; its
15198 # output is simply discarded. So we exec the FD to /dev/null,
15199 # effectively closing config.log, so it can be properly (re)opened and
15200 # appended to by config.status. When coming back to configure, we
15201 # need to make the FD available again.
15202 if test "$no_create" != yes; then
15204 ac_config_status_args
=
15205 test "$silent" = yes &&
15206 ac_config_status_args
="$ac_config_status_args --quiet"
15208 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
15210 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15211 # would make configure fail if this is the last instruction.
15212 $ac_cs_success || { (exit 1); exit 1; }
15216 if test "$cf_openssl_version_ok" = yes; then
15222 if test "$shared_modules" = yes; then
15230 Install directory : $prefix
15235 IPv6 support : $have_v6
15236 Socket Engine : $SELECT_TYPE
15237 Small network : $small_net
15238 Block allocator : $balloc
15239 ASM hashing code : $ricer_hashing
15241 Nickname length : $NICKLEN
15242 Topic length : $TOPICLEN
15244 Use make to compile Charybdis, then make install to install it.