2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for charybdis 3.3.
5 # $Id: configure.ac 3516 2007-06-10 16:14:03Z jilles $
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x
; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var
in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\
${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev
/null
2>&1 && unset $as_var || :
134 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x
; then
137 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required
="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev
/null
; then :
180 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
185 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir
=.
192 for as_base
in sh bash ksh sh5
; do
193 # Try only shells that exist, to save several forks.
194 as_shell
=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
197 CONFIG_SHELL
=$as_shell as_have_required
=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
208 CONFIG_SHELL
=$SHELL as_have_required
=yes
213 if test "x$CONFIG_SHELL" != x
; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x
$as_have_required = xno
; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x
${ZSH_VERSION+set} = xset
; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
240 SHELL
=${CONFIG_SHELL-/bin/sh}
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE
= GREP_OPTIONS
=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
251 # Portably unset VAR.
254 { eval $1=; unset $1;}
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 # Create "$as_dir" as a directory, including parents if necessary.
283 -*) as_dir
=.
/$as_dir;;
285 test -d "$as_dir" || eval $as_mkdir_p || {
289 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292 as_dirs
="'$as_qdir' $as_dirs"
293 as_dir
=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 test -d "$as_dir" && break
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
330 eval 'as_fn_append ()
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
354 as_val
=`expr "$@" || test $? -eq 1`
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
366 as_status
=$?
; test $as_status -eq 0 && as_status
=1
368 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit
$as_status
375 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
382 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
394 as_me
=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
413 # Avoid depending upon Character Ranges.
414 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits
='0123456789'
418 as_cr_alnum
=$as_cr_Letters$as_cr_digits
421 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
422 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 chmod +x
"$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
448 # Exit status is that of the last command.
452 ECHO_C
= ECHO_N
= ECHO_T
=
453 case `echo -n x` in #(((((
455 case `echo 'xy\c'` in
456 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
465 rm -f conf$$ conf$$.exe conf$$.
file
466 if test -d conf$$.dir
; then
467 rm -f conf$$.dir
/conf$$.
file
470 mkdir conf$$.dir
2>/dev
/null
472 if (echo >conf$$.
file) 2>/dev
/null
; then
473 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe
||
481 elif ln conf$$.
file conf$$
2>/dev
/null
; then
489 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
490 rmdir conf$$.dir
2>/dev
/null
492 if mkdir -p .
2>/dev
/null
; then
493 as_mkdir_p
='mkdir -p "$as_dir"'
495 test -d .
/-p && rmdir .
/-p
499 if test -x / >/dev
/null
2>&1; then
502 if ls -dL / >/dev
/null
2>&1; then
509 if test -d "$1"; then
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
520 as_executable_p
=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 exec 7<&0 </dev
/null
6>&1
532 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
533 # so uname gets run too.
534 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
539 ac_default_prefix
=/usr
/local
541 ac_config_libobj_dir
=.
548 # Identity of this package.
549 PACKAGE_NAME
='charybdis'
550 PACKAGE_TARNAME
='charybdis'
551 PACKAGE_VERSION
='3.3'
552 PACKAGE_STRING
='charybdis 3.3'
556 ac_default_prefix
=$HOME/ircd
557 # Factoring default headers for most tests.
558 ac_includes_default
="\
560 #ifdef HAVE_SYS_TYPES_H
561 # include <sys/types.h>
563 #ifdef HAVE_SYS_STAT_H
564 # include <sys/stat.h>
570 # ifdef HAVE_STDLIB_H
575 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
580 #ifdef HAVE_STRINGS_H
581 # include <strings.h>
583 #ifdef HAVE_INTTYPES_H
584 # include <inttypes.h>
593 enable_option_checking
=no
594 ac_subst_vars
='LTLIBOBJS
677 program_transform_name
690 enable_option_checking
713 ac_precious_vars
='build_alias
724 ac_subdirs_all
='libratbox'
726 # Initialize some variables set by options.
728 ac_init_version
=false
729 ac_unrecognized_opts
=
731 # The variables have the same names as the options, with
732 # dashes changed to underlines.
740 program_transform_name
=s
,x
,x
,
748 # Installation directory options.
749 # These are left unexpanded so users can "make install exec_prefix=/foo"
750 # and all the variables that are supposed to be based on exec_prefix
751 # by default will actually change.
752 # Use braces instead of parens because sh, perl, etc. also accept them.
753 # (The list follows the same order as the GNU Coding Standards.)
754 bindir
='${exec_prefix}/bin'
755 sbindir
='${exec_prefix}/sbin'
756 libexecdir
='${exec_prefix}/libexec'
757 datarootdir
='${prefix}/share'
758 datadir
='${datarootdir}'
759 sysconfdir
='${prefix}/etc'
760 sharedstatedir
='${prefix}/com'
761 localstatedir
='${prefix}/var'
762 includedir
='${prefix}/include'
763 oldincludedir
='/usr/include'
764 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
765 infodir
='${datarootdir}/info'
770 libdir
='${exec_prefix}/lib'
771 localedir
='${datarootdir}/locale'
772 mandir
='${datarootdir}/man'
778 # If the previous option needs an argument, assign it.
779 if test -n "$ac_prev"; then
780 eval $ac_prev=\
$ac_option
786 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
790 # Accept the important Cygnus configure options, so we can diagnose typos.
792 case $ac_dashdash$ac_option in
796 -bindir | --bindir | --bindi | --bind | --bin | --bi)
798 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
801 -build | --build | --buil | --bui | --bu)
802 ac_prev
=build_alias
;;
803 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
804 build_alias
=$ac_optarg ;;
806 -cache-file | --cache-file | --cache-fil | --cache-fi \
807 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
808 ac_prev
=cache_file
;;
809 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
810 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
811 cache_file
=$ac_optarg ;;
814 cache_file
=config.cache
;;
816 -datadir | --datadir | --datadi | --datad)
818 -datadir=* | --datadir=* | --datadi=* | --datad=*)
819 datadir
=$ac_optarg ;;
821 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
822 | --dataroo | --dataro | --datar)
823 ac_prev
=datarootdir
;;
824 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
825 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
826 datarootdir
=$ac_optarg ;;
828 -disable-* | --disable-*)
829 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
830 # Reject names that are not valid shell variable names.
831 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
832 as_fn_error
"invalid feature name: $ac_useropt"
833 ac_useropt_orig
=$ac_useropt
834 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
835 case $ac_user_opts in
839 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
840 ac_unrecognized_sep
=', ';;
842 eval enable_
$ac_useropt=no
;;
844 -docdir | --docdir | --docdi | --doc | --do)
846 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
849 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
851 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
854 -enable-* | --enable-*)
855 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
856 # Reject names that are not valid shell variable names.
857 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
858 as_fn_error
"invalid feature name: $ac_useropt"
859 ac_useropt_orig
=$ac_useropt
860 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
861 case $ac_user_opts in
865 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
866 ac_unrecognized_sep
=', ';;
868 eval enable_
$ac_useropt=\
$ac_optarg ;;
870 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
871 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
872 | --exec | --exe | --ex)
873 ac_prev
=exec_prefix
;;
874 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
875 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
876 | --exec=* | --exe=* | --ex=*)
877 exec_prefix
=$ac_optarg ;;
879 -gas | --gas | --ga | --g)
880 # Obsolete; use --with-gas.
883 -help | --help | --hel | --he | -h)
885 -help=r
* | --help=r
* | --hel=r
* | --he=r
* | -hr*)
886 ac_init_help
=recursive
;;
887 -help=s
* | --help=s
* | --hel=s
* | --he=s
* | -hs*)
888 ac_init_help
=short
;;
890 -host | --host | --hos | --ho)
891 ac_prev
=host_alias
;;
892 -host=* | --host=* | --hos=* | --ho=*)
893 host_alias
=$ac_optarg ;;
895 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
897 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
899 htmldir
=$ac_optarg ;;
901 -includedir | --includedir | --includedi | --included | --include \
902 | --includ | --inclu | --incl | --inc)
903 ac_prev
=includedir
;;
904 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
905 | --includ=* | --inclu=* | --incl=* | --inc=*)
906 includedir
=$ac_optarg ;;
908 -infodir | --infodir | --infodi | --infod | --info | --inf)
910 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
911 infodir
=$ac_optarg ;;
913 -libdir | --libdir | --libdi | --libd)
915 -libdir=* | --libdir=* | --libdi=* | --libd=*)
918 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
919 | --libexe | --libex | --libe)
920 ac_prev
=libexecdir
;;
921 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
922 | --libexe=* | --libex=* | --libe=*)
923 libexecdir
=$ac_optarg ;;
925 -localedir | --localedir | --localedi | --localed | --locale)
927 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
928 localedir
=$ac_optarg ;;
930 -localstatedir | --localstatedir | --localstatedi | --localstated \
931 | --localstate | --localstat | --localsta | --localst | --locals)
932 ac_prev
=localstatedir
;;
933 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
934 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
935 localstatedir
=$ac_optarg ;;
937 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
939 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
943 # Obsolete; use --without-fp.
946 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
947 | --no-cr | --no-c | -n)
950 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
951 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
954 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
955 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
956 | --oldin | --oldi | --old | --ol | --o)
957 ac_prev
=oldincludedir
;;
958 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
959 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
960 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
961 oldincludedir
=$ac_optarg ;;
963 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
965 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
968 -program-prefix | --program-prefix | --program-prefi | --program-pref \
969 | --program-pre | --program-pr | --program-p)
970 ac_prev
=program_prefix
;;
971 -program-prefix=* | --program-prefix=* | --program-prefi=* \
972 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
973 program_prefix
=$ac_optarg ;;
975 -program-suffix | --program-suffix | --program-suffi | --program-suff \
976 | --program-suf | --program-su | --program-s)
977 ac_prev
=program_suffix
;;
978 -program-suffix=* | --program-suffix=* | --program-suffi=* \
979 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
980 program_suffix
=$ac_optarg ;;
982 -program-transform-name | --program-transform-name \
983 | --program-transform-nam | --program-transform-na \
984 | --program-transform-n | --program-transform- \
985 | --program-transform | --program-transfor \
986 | --program-transfo | --program-transf \
987 | --program-trans | --program-tran \
988 | --progr-tra | --program-tr | --program-t)
989 ac_prev
=program_transform_name
;;
990 -program-transform-name=* | --program-transform-name=* \
991 | --program-transform-nam=* | --program-transform-na=* \
992 | --program-transform-n=* | --program-transform-=* \
993 | --program-transform=* | --program-transfor=* \
994 | --program-transfo=* | --program-transf=* \
995 | --program-trans=* | --program-tran=* \
996 | --progr-tra=* | --program-tr=* | --program-t=*)
997 program_transform_name
=$ac_optarg ;;
999 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1001 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1002 pdfdir
=$ac_optarg ;;
1004 -psdir | --psdir | --psdi | --psd | --ps)
1006 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1009 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1010 | -silent | --silent | --silen | --sile | --sil)
1013 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1015 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1017 sbindir
=$ac_optarg ;;
1019 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1020 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1021 | --sharedst | --shareds | --shared | --share | --shar \
1023 ac_prev
=sharedstatedir
;;
1024 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1025 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1026 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1028 sharedstatedir
=$ac_optarg ;;
1030 -site | --site | --sit)
1032 -site=* | --site=* | --sit=*)
1035 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1037 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1038 srcdir
=$ac_optarg ;;
1040 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1041 | --syscon | --sysco | --sysc | --sys | --sy)
1042 ac_prev
=sysconfdir
;;
1043 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1044 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1045 sysconfdir
=$ac_optarg ;;
1047 -target | --target | --targe | --targ | --tar | --ta | --t)
1048 ac_prev
=target_alias
;;
1049 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1050 target_alias
=$ac_optarg ;;
1052 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1055 -version | --version | --versio | --versi | --vers | -V)
1056 ac_init_version
=: ;;
1059 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1060 # Reject names that are not valid shell variable names.
1061 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1062 as_fn_error
"invalid package name: $ac_useropt"
1063 ac_useropt_orig
=$ac_useropt
1064 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1065 case $ac_user_opts in
1069 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1070 ac_unrecognized_sep
=', ';;
1072 eval with_
$ac_useropt=\
$ac_optarg ;;
1074 -without-* | --without-*)
1075 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1076 # Reject names that are not valid shell variable names.
1077 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1078 as_fn_error
"invalid package name: $ac_useropt"
1079 ac_useropt_orig
=$ac_useropt
1080 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1081 case $ac_user_opts in
1085 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1086 ac_unrecognized_sep
=', ';;
1088 eval with_
$ac_useropt=no
;;
1091 # Obsolete; use --with-x.
1094 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1095 | --x-incl | --x-inc | --x-in | --x-i)
1096 ac_prev
=x_includes
;;
1097 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1098 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1099 x_includes
=$ac_optarg ;;
1101 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1102 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1103 ac_prev
=x_libraries
;;
1104 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1105 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1106 x_libraries
=$ac_optarg ;;
1108 -*) as_fn_error
"unrecognized option: \`$ac_option'
1109 Try \`$0 --help' for more information."
1113 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1114 # Reject names that are not valid shell variable names.
1115 case $ac_envvar in #(
1116 '' | [0-9]* | *[!_$as_cr_alnum]* )
1117 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1119 eval $ac_envvar=\
$ac_optarg
1120 export $ac_envvar ;;
1123 # FIXME: should be removed in autoconf 3.0.
1124 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1125 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1126 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1127 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1133 if test -n "$ac_prev"; then
1134 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1135 as_fn_error
"missing argument to $ac_option"
1138 if test -n "$ac_unrecognized_opts"; then
1139 case $enable_option_checking in
1141 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1142 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1146 # Check all directory arguments for consistency.
1147 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1148 datadir sysconfdir sharedstatedir localstatedir includedir \
1149 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1150 libdir localedir mandir
1152 eval ac_val
=\$
$ac_var
1153 # Remove trailing slashes.
1156 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1157 eval $ac_var=\
$ac_val;;
1159 # Be sure to have absolute directory names.
1161 [\\/$
]* | ?
:[\\/]* ) continue;;
1162 NONE
| '' ) case $ac_var in *prefix
) continue;; esac;;
1164 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1167 # There might be people who depend on the old broken behavior: `$host'
1168 # used to hold the argument of --host etc.
1169 # FIXME: To remove some day.
1172 target
=$target_alias
1174 # FIXME: To remove some day.
1175 if test "x$host_alias" != x
; then
1176 if test "x$build_alias" = x
; then
1177 cross_compiling
=maybe
1178 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1179 If a cross compiler is detected then cross compile mode will be used." >&2
1180 elif test "x$build_alias" != "x$host_alias"; then
1186 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1188 test "$silent" = yes && exec 6>/dev
/null
1191 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1192 ac_ls_di
=`ls -di .` &&
1193 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1194 as_fn_error
"working directory cannot be determined"
1195 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1196 as_fn_error
"pwd does not report name of working directory"
1199 # Find the source files, if location was not specified.
1200 if test -z "$srcdir"; then
1201 ac_srcdir_defaulted
=yes
1202 # Try the directory containing this script, then the parent directory.
1203 ac_confdir
=`$as_dirname -- "$as_myself" ||
1204 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1205 X"$as_myself" : 'X\(//\)[^/]' \| \
1206 X"$as_myself" : 'X\(//\)$' \| \
1207 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1208 $as_echo X"$as_myself" |
1209 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1227 if test ! -r "$srcdir/$ac_unique_file"; then
1231 ac_srcdir_defaulted
=no
1233 if test ! -r "$srcdir/$ac_unique_file"; then
1234 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1235 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1237 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1239 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1241 # When building in place, set srcdir=.
1242 if test "$ac_abs_confdir" = "$ac_pwd"; then
1245 # Remove unnecessary trailing slashes from srcdir.
1246 # Double slashes in file names in object file debugging info
1247 # mess up M-x gdb in Emacs.
1249 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1251 for ac_var
in $ac_precious_vars; do
1252 eval ac_env_
${ac_var}_set
=\
${${ac_var}+set}
1253 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1254 eval ac_cv_env_
${ac_var}_set
=\
${${ac_var}+set}
1255 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1259 # Report the --help message.
1261 if test "$ac_init_help" = "long"; then
1262 # Omit some internal or obsolete options to make the list less imposing.
1263 # This message is too long to be a string in the A/UX 3.1 sh.
1265 \`configure' configures charybdis 3.3 to adapt to many kinds of systems.
1267 Usage: $0 [OPTION]... [VAR=VALUE]...
1269 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1270 VAR=VALUE. See below for descriptions of some of the useful variables.
1272 Defaults for the options are specified in brackets.
1275 -h, --help display this help and exit
1276 --help=short display options specific to this package
1277 --help=recursive display the short help of all the included packages
1278 -V, --version display version information and exit
1279 -q, --quiet, --silent do not print \`checking...' messages
1280 --cache-file=FILE cache test results in FILE [disabled]
1281 -C, --config-cache alias for \`--cache-file=config.cache'
1282 -n, --no-create do not create output files
1283 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1285 Installation directories:
1286 --prefix=PREFIX install architecture-independent files in PREFIX
1287 [$ac_default_prefix]
1288 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1291 By default, \`make install' will install all the files in
1292 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1293 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1294 for instance \`--prefix=\$HOME'.
1296 For better control, use the options below.
1298 Fine tuning of the installation directories:
1299 --bindir=DIR user executables [EPREFIX/bin]
1300 --sbindir=DIR system admin executables [EPREFIX/sbin]
1301 --libexecdir=DIR program executables [EPREFIX/libexec]
1302 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1303 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1304 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1305 --libdir=DIR object code libraries [EPREFIX/lib]
1306 --includedir=DIR C header files [PREFIX/include]
1307 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1308 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1309 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1310 --infodir=DIR info documentation [DATAROOTDIR/info]
1311 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1312 --mandir=DIR man documentation [DATAROOTDIR/man]
1313 --docdir=DIR documentation root [DATAROOTDIR/doc/charybdis]
1314 --htmldir=DIR html documentation [DOCDIR]
1315 --dvidir=DIR dvi documentation [DOCDIR]
1316 --pdfdir=DIR pdf documentation [DOCDIR]
1317 --psdir=DIR ps documentation [DOCDIR]
1324 if test -n "$ac_init_help"; then
1325 case $ac_init_help in
1326 short
| recursive
) echo "Configuration of charybdis 3.3:";;
1331 --disable-option-checking ignore unrecognized
--enable/--with options
1332 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1333 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1334 --enable-ipv6 Enable IPv6 support
1335 --enable-openssl=DIR Enable OpenSSL support
(DIR optional
).
1336 --disable-openssl Disable OpenSSL support.
1337 --disable-zlib Disable ziplinks support
1338 --enable-ports Force solaris I
/O ports subsystem usage.
1339 --enable-poll Force poll
() usage.
1340 --enable-select Force
select() usage.
1341 --enable-kqueue Force kqueue
() usage.
1342 --enable-epoll Force sys_epoll usage
(Linux only
).
1343 --enable-assert Enable assert
(). Choose between soft
(warnings
) and
1344 hard
(aborts the daemon
)
1345 --enable-iodebug Enable IO Debugging hooks
1346 --enable-profile Enable profiling
1347 --disable-balloc Disable the block allocator.
1348 --enable-small-net Enable small network support.
1349 --enable-warnings Enable all sorts of warnings
for debugging.
1352 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1353 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1354 --with-zlib-path=DIR Path to libz.so
for ziplinks support.
1355 --with-confdir=DIR Directory to
install config files.
1356 --with-logdir=DIR Directory where to
write logfiles.
1357 --with-helpdir=DIR Directory to
install help files.
1358 --with-moduledir=DIR Directory to
install modules.
1359 --with-nicklen=LENGTH Set the nick length to LENGTH
(default
15, max
50)
1360 --with-topiclen=NUMBER Set the max topic length to NUMBER
(default
390, max
1363 Some influential environment variables
:
1364 CC C compiler
command
1365 CFLAGS C compiler flags
1366 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1367 nonstandard directory
<lib dir
>
1368 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1369 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1370 you have headers
in a nonstandard directory
<include dir
>
1372 YACC The
`Yet Another C Compiler' implementation to use. Defaults to
1373 the first program found out of: `bison
-y', `byacc', `yacc'.
1374 YFLAGS The list of arguments that will be passed by default to $YACC.
1375 This script will default YFLAGS to the empty string to avoid a
1376 default value of `-d' given by some make applications.
1378 Use these variables to override the choices made by `configure' or to
help
1379 it to
find libraries and programs with nonstandard names
/locations.
1381 Report bugs to the package provider.
1386 if test "$ac_init_help" = "recursive"; then
1387 # If there are subdirs, report their specific --help.
1388 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1389 test -d "$ac_dir" ||
1390 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1395 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1397 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1398 # A ".." for each directory in $ac_dir_suffix.
1399 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1400 case $ac_top_builddir_sub in
1401 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1402 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1405 ac_abs_top_builddir
=$ac_pwd
1406 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1407 # for backward compatibility:
1408 ac_top_builddir
=$ac_top_build_prefix
1411 .
) # We are building in place.
1413 ac_top_srcdir
=$ac_top_builddir_sub
1414 ac_abs_top_srcdir
=$ac_pwd ;;
1415 [\\/]* | ?
:[\\/]* ) # Absolute name.
1416 ac_srcdir
=$srcdir$ac_dir_suffix;
1417 ac_top_srcdir
=$srcdir
1418 ac_abs_top_srcdir
=$srcdir ;;
1420 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1421 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1422 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1424 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1426 cd "$ac_dir" || { ac_status
=$?
; continue; }
1427 # Check for guested configure.
1428 if test -f "$ac_srcdir/configure.gnu"; then
1430 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1431 elif test -f "$ac_srcdir/configure"; then
1433 $SHELL "$ac_srcdir/configure" --help=recursive
1435 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1437 cd "$ac_pwd" || { ac_status
=$?
; break; }
1441 test -n "$ac_init_help" && exit $ac_status
1442 if $ac_init_version; then
1444 charybdis configure
3.3
1445 generated by GNU Autoconf
2.64
1447 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1448 This configure
script is free software
; the Free Software Foundation
1449 gives unlimited permission to copy
, distribute and modify it.
1451 $Id: configure.ac
3516 2007-06-10 16:14:03Z jilles $
1456 ## ------------------------ ##
1457 ## Autoconf initialization. ##
1458 ## ------------------------ ##
1460 # ac_fn_c_try_compile LINENO
1461 # --------------------------
1462 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1463 ac_fn_c_try_compile
()
1465 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1466 rm -f conftest.
$ac_objext
1467 if { { ac_try
="$ac_compile"
1469 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
1470 *) ac_try_echo=$ac_try;;
1472 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1473 $as_echo "$ac_try_echo"; } >&5
1474 (eval "$ac_compile") 2>conftest.err
1476 if test -s conftest.err; then
1477 grep -v '^ *+' conftest.err >conftest.er1
1478 cat conftest.er1 >&5
1479 mv -f conftest.er1 conftest.err
1481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1482 test $ac_status = 0; } && {
1483 test -z "$ac_c_werror_flag" ||
1484 test ! -s conftest.err
1485 } && test -s conftest.$ac_objext; then :
1488 $as_echo "$as_me: failed program was:" >&5
1489 sed 's/^/| /' conftest.$ac_ext >&5
1493 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1496 } # ac_fn_c_try_compile
1498 # ac_fn_c_try_cpp LINENO
1499 # ----------------------
1500 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1503 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1504 if { { ac_try="$ac_cpp conftest.$ac_ext"
1506 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
1507 *) ac_try_echo
=$ac_try;;
1509 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1510 $as_echo "$ac_try_echo"; } >&5
1511 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1513 if test -s conftest.err
; then
1514 grep -v '^ *+' conftest.err
>conftest.er1
1515 cat conftest.er1
>&5
1516 mv -f conftest.er1 conftest.err
1518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1519 test $ac_status = 0; } >/dev
/null
&& {
1520 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1521 test ! -s conftest.err
1525 $as_echo "$as_me: failed program was:" >&5
1526 sed 's/^/| /' conftest.
$ac_ext >&5
1530 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1535 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1536 # -------------------------------------------------------
1537 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1538 # the include files in INCLUDES and setting the cache variable VAR
1540 ac_fn_c_check_header_mongrel
()
1542 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1543 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1545 $as_echo_n "checking for $2... " >&6; }
1546 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1547 $as_echo_n "(cached) " >&6
1550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1551 $as_echo "$ac_res" >&6; }
1553 # Is the header compilable?
1554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1555 $as_echo_n "checking $2 usability... " >&6; }
1556 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1557 /* end confdefs.h. */
1561 if ac_fn_c_try_compile
"$LINENO"; then :
1562 ac_header_compiler
=yes
1564 ac_header_compiler
=no
1566 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1568 $as_echo "$ac_header_compiler" >&6; }
1570 # Is the header present?
1571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1572 $as_echo_n "checking $2 presence... " >&6; }
1573 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1574 /* end confdefs.h. */
1577 if ac_fn_c_try_cpp
"$LINENO"; then :
1578 ac_header_preproc
=yes
1580 ac_header_preproc
=no
1582 rm -f conftest.err conftest.
$ac_ext
1583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1584 $as_echo "$ac_header_preproc" >&6; }
1586 # So? What about this header?
1587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1590 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1592 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1596 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1598 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1600 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1602 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1604 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1608 $as_echo_n "checking for $2... " >&6; }
1609 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1610 $as_echo_n "(cached) " >&6
1612 eval "$3=\$ac_header_compiler"
1615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1616 $as_echo "$ac_res" >&6; }
1618 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1620 } # ac_fn_c_check_header_mongrel
1622 # ac_fn_c_try_run LINENO
1623 # ----------------------
1624 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1625 # that executables *can* be run.
1628 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1629 if { { ac_try
="$ac_link"
1631 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
1632 *) ac_try_echo=$ac_try;;
1634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1635 $as_echo "$ac_try_echo"; } >&5
1636 (eval "$ac_link") 2>&5
1638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1639 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1640 { { case "(($ac_try" in
1641 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
1642 *) ac_try_echo
=$ac_try;;
1644 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1645 $as_echo "$ac_try_echo"; } >&5
1646 (eval "$ac_try") 2>&5
1648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1649 test $ac_status = 0; }; }; then :
1652 $as_echo "$as_me: program exited with status $ac_status" >&5
1653 $as_echo "$as_me: failed program was:" >&5
1654 sed 's/^/| /' conftest.
$ac_ext >&5
1656 ac_retval
=$ac_status
1658 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1659 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1664 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1665 # -------------------------------------------------------
1666 # Tests whether HEADER exists and can be compiled using the include files in
1667 # INCLUDES, setting the cache variable VAR accordingly.
1668 ac_fn_c_check_header_compile
()
1670 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1672 $as_echo_n "checking for $2... " >&6; }
1673 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1674 $as_echo_n "(cached) " >&6
1676 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1677 /* end confdefs.h. */
1681 if ac_fn_c_try_compile
"$LINENO"; then :
1686 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1690 $as_echo "$ac_res" >&6; }
1691 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1693 } # ac_fn_c_check_header_compile
1695 # ac_fn_c_try_link LINENO
1696 # -----------------------
1697 # Try to link conftest.$ac_ext, and return whether this succeeded.
1700 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1701 rm -f conftest.
$ac_objext conftest
$ac_exeext
1702 if { { ac_try
="$ac_link"
1704 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
1705 *) ac_try_echo=$ac_try;;
1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708 $as_echo "$ac_try_echo"; } >&5
1709 (eval "$ac_link") 2>conftest.err
1711 if test -s conftest.err; then
1712 grep -v '^ *+' conftest.err >conftest.er1
1713 cat conftest.er1 >&5
1714 mv -f conftest.er1 conftest.err
1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717 test $ac_status = 0; } && {
1718 test -z "$ac_c_werror_flag" ||
1719 test ! -s conftest.err
1720 } && test -s conftest$ac_exeext && {
1721 test "$cross_compiling" = yes ||
1722 $as_test_x conftest$ac_exeext
1726 $as_echo "$as_me: failed program was:" >&5
1727 sed 's/^/| /' conftest.$ac_ext >&5
1731 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1732 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1733 # interfere with the next link command; also delete a directory that is
1734 # left behind by Apple's compiler. We do this before executing the actions.
1735 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1736 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1739 } # ac_fn_c_try_link
1741 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1742 # -------------------------------------------
1743 # Tests whether TYPE exists after having included INCLUDES, setting cache
1744 # variable VAR accordingly.
1745 ac_fn_c_check_type ()
1747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1749 $as_echo_n "checking for $2... " >&6; }
1750 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1751 $as_echo_n "(cached) " >&6
1754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1755 /* end confdefs.h. */
1766 if ac_fn_c_try_compile "$LINENO"; then :
1767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1768 /* end confdefs.h. */
1779 if ac_fn_c_try_compile "$LINENO"; then :
1784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1790 $as_echo "$ac_res" >&6; }
1791 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1793 } # ac_fn_c_check_type
1795 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1796 # --------------------------------------------
1797 # Tries to find the compile-time value of EXPR in a program that includes
1798 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1800 ac_fn_c_compute_int ()
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 if test "$cross_compiling" = yes; then
1804 # Depending upon the size, compute the lo and hi bounds.
1805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1806 /* end confdefs.h. */
1811 static int test_array [1 - 2 * !(($2) >= 0)];
1818 if ac_fn_c_try_compile "$LINENO"; then :
1821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822 /* end confdefs.h. */
1827 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1834 if ac_fn_c_try_compile "$LINENO"; then :
1835 ac_hi=$ac_mid; break
1837 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1838 if test $ac_lo -le $ac_mid; then
1842 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1848 /* end confdefs.h. */
1853 static int test_array [1 - 2 * !(($2) < 0)];
1860 if ac_fn_c_try_compile "$LINENO"; then :
1863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1864 /* end confdefs.h. */
1869 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1876 if ac_fn_c_try_compile "$LINENO"; then :
1877 ac_lo=$ac_mid; break
1879 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1880 if test $ac_mid -le $ac_hi; then
1884 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1894 # Binary search between lo and hi bounds.
1895 while test "x$ac_lo" != "x$ac_hi"; do
1896 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1898 /* end confdefs.h. */
1903 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1910 if ac_fn_c_try_compile "$LINENO"; then :
1913 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1918 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1923 /* end confdefs.h. */
1925 static long int longval () { return $2; }
1926 static unsigned long int ulongval () { return $2; }
1933 FILE *f = fopen ("conftest.val", "w");
1938 long int i = longval ();
1941 fprintf (f, "%ld", i);
1945 unsigned long int i = ulongval ();
1948 fprintf (f, "%lu", i);
1950 /* Do not output a trailing newline, as this causes \r\n confusion
1951 on some platforms. */
1952 return ferror (f) || fclose (f) != 0;
1958 if ac_fn_c_try_run "$LINENO"; then :
1959 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1963 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1964 conftest.$ac_objext conftest.beam conftest.$ac_ext
1968 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1971 } # ac_fn_c_compute_int
1973 # ac_fn_c_check_func LINENO FUNC VAR
1974 # ----------------------------------
1975 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1976 ac_fn_c_check_func ()
1978 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1980 $as_echo_n "checking for $2... " >&6; }
1981 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1982 $as_echo_n "(cached) " >&6
1984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985 /* end confdefs.h. */
1986 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1988 #define $2 innocuous_$2
1990 /* System header to define __stub macros and hopefully few prototypes,
1991 which can conflict with char $2 (); below.
1992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1993 <limits.h> exists even on freestanding compilers. */
1996 # include <limits.h>
1998 # include <assert.h>
2003 /* Override any GCC internal prototype to avoid an error.
2004 Use char because int might match the return type of a GCC
2005 builtin and then its argument prototype would still apply. */
2010 /* The GNU C library defines this for functions which it implements
2011 to always fail with ENOSYS. Some functions are actually named
2012 something starting with __ and the normal name is an alias. */
2013 #if defined __stub_$2 || defined __stub___$2
2025 if ac_fn_c_try_link "$LINENO"; then :
2030 rm -f core conftest.err conftest.$ac_objext \
2031 conftest$ac_exeext conftest.$ac_ext
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2035 $as_echo "$ac_res" >&6; }
2036 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2038 } # ac_fn_c_check_func
2039 cat >config.log <<_ACEOF
2040 This file contains any messages produced by compilers while
2041 running configure, to aid debugging if configure makes a mistake.
2043 It was created by charybdis $as_me 3.3, which was
2044 generated by GNU Autoconf 2.64. Invocation command line was
2056 hostname = `(hostname
|| uname
-n) 2>/dev
/null
| sed 1q
`
2057 uname -m = `(uname
-m) 2>/dev
/null
|| echo unknown
`
2058 uname -r = `(uname
-r) 2>/dev
/null
|| echo unknown
`
2059 uname -s = `(uname
-s) 2>/dev
/null
|| echo unknown
`
2060 uname -v = `(uname
-v) 2>/dev
/null
|| echo unknown
`
2062 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null
|| echo unknown
`
2063 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null
|| echo unknown
`
2065 /bin/arch = `(/bin
/arch
) 2>/dev
/null
|| echo unknown
`
2066 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null
|| echo unknown
`
2067 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null
|| echo unknown
`
2068 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null
|| echo unknown
`
2069 /bin/machine = `(/bin
/machine
) 2>/dev
/null
|| echo unknown
`
2070 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null
|| echo unknown
`
2071 /bin/universe = `(/bin
/universe
) 2>/dev
/null
|| echo unknown
`
2075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2079 test -z "$as_dir" && as_dir=.
2080 $as_echo "PATH: $as_dir"
2096 # Keep a trace of the command line.
2097 # Strip out --no-create and --no-recursion so they do not pile up.
2098 # Strip out --silent because we don't want to record it for future runs.
2099 # Also quote any args containing shell meta-characters.
2100 # Make two passes to allow for proper duplicate-argument suppression.
2104 ac_must_keep_next=false
2110 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2111 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2112 | -silent | --silent | --silen | --sile | --sil)
2115 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2118 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2120 as_fn_append ac_configure_args1 " '$ac_arg'"
2121 if test $ac_must_keep_next = true; then
2122 ac_must_keep_next=false # Got value, back to normal.
2125 *=* | --config-cache | -C | -disable-* | --disable-* \
2126 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2127 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2128 | -with-* | --with-* | -without-* | --without-* | --x)
2129 case "$ac_configure_args0 " in
2130 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2133 -* ) ac_must_keep_next=true ;;
2136 as_fn_append ac_configure_args " '$ac_arg'"
2141 { ac_configure_args0=; unset ac_configure_args0;}
2142 { ac_configure_args1=; unset ac_configure_args1;}
2144 # When interrupted or exit'd, cleanup temporary files, and complete
2145 # config.log. We remove comments because anyway the quotes in there
2146 # would cause problems or look ugly.
2147 # WARNING: Use '\'' to represent an apostrophe within the trap.
2148 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2149 trap 'exit_status=$?
2150 # Save into config.log some information that might help in debugging.
2155 ## ---------------- ##
2156 ## Cache variables. ##
2157 ## ---------------- ##
2160 # The following way of writing the cache mishandles newlines in values,
2162 for ac_var in `(set) 2>&1 | sed -n '\''s
/^\
([a
-zA-Z_][a
-zA-Z0-9_]*\
)=.
*/\
1/p
'\''`; do
2163 eval ac_val=\$$ac_var
2167 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2168 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2171 _ | IFS | as_nl) ;; #(
2172 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2173 *) { eval $ac_var=; unset $ac_var;} ;;
2178 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2179 *${as_nl}ac_space=\ *)
2181 "s/'\''/'\''\\\\'\'''\''/g;
2182 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2185 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2193 ## ----------------- ##
2194 ## Output variables. ##
2195 ## ----------------- ##
2198 for ac_var in $ac_subst_vars
2200 eval ac_val=\$$ac_var
2202 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2204 $as_echo "$ac_var='\''$ac_val'\''"
2208 if test -n "$ac_subst_files"; then
2210 ## ------------------- ##
2211 ## File substitutions. ##
2212 ## ------------------- ##
2215 for ac_var in $ac_subst_files
2217 eval ac_val=\$$ac_var
2219 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2221 $as_echo "$ac_var='\''$ac_val'\''"
2226 if test -s confdefs.h; then
2236 test "$ac_signal" != 0 &&
2237 $as_echo "$as_me: caught signal $ac_signal"
2238 $as_echo "$as_me: exit $exit_status"
2240 rm -f core *.core core.conftest.* &&
2241 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2244 for ac_signal in 1 2 13 15; do
2245 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2249 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2250 rm -f -r conftest* confdefs.h
2252 $as_echo "/* confdefs.h */" > confdefs.h
2254 # Predefined preprocessor variables.
2256 cat >>confdefs.h <<_ACEOF
2257 #define PACKAGE_NAME "$PACKAGE_NAME"
2260 cat >>confdefs.h <<_ACEOF
2261 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2264 cat >>confdefs.h <<_ACEOF
2265 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2268 cat >>confdefs.h <<_ACEOF
2269 #define PACKAGE_STRING "$PACKAGE_STRING"
2272 cat >>confdefs.h <<_ACEOF
2273 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2276 cat >>confdefs.h <<_ACEOF
2277 #define PACKAGE_URL "$PACKAGE_URL"
2281 # Let the site file select an alternate cache file if it wants to.
2282 # Prefer an explicitly selected file to automatically selected ones.
2285 if test -n "$CONFIG_SITE"; then
2286 ac_site_file1=$CONFIG_SITE
2287 elif test "x$prefix" != xNONE; then
2288 ac_site_file1=$prefix/share/config.site
2289 ac_site_file2=$prefix/etc/config.site
2291 ac_site_file1=$ac_default_prefix/share/config.site
2292 ac_site_file2=$ac_default_prefix/etc/config.site
2294 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2296 test "x$ac_site_file" = xNONE && continue
2297 if test -r "$ac_site_file"; then
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2299 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2300 sed 's/^/| /' "$ac_site_file" >&5
2305 if test -r "$cache_file"; then
2306 # Some versions of bash will fail to source /dev/null (special
2307 # files actually), so we avoid doing that.
2308 if test -f "$cache_file"; then
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2310 $as_echo "$as_me: loading cache $cache_file" >&6;}
2312 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2313 *) . "./$cache_file";;
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2318 $as_echo "$as_me: creating cache $cache_file" >&6;}
2322 # Check that the precious variables saved in the cache have kept the same
2324 ac_cache_corrupted=false
2325 for ac_var in $ac_precious_vars; do
2326 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2327 eval ac_new_set=\$ac_env_${ac_var}_set
2328 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2329 eval ac_new_val=\$ac_env_${ac_var}_value
2330 case $ac_old_set,$ac_new_set in
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2333 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2334 ac_cache_corrupted=: ;;
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2337 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2338 ac_cache_corrupted=: ;;
2341 if test "x$ac_old_val" != "x$ac_new_val"; then
2342 # differences in whitespace do not lead to failure.
2343 ac_old_val_w=`echo x
$ac_old_val`
2344 ac_new_val_w=`echo x
$ac_new_val`
2345 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2347 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2348 ac_cache_corrupted=:
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2351 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2352 eval $ac_var=\$ac_old_val
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2355 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2357 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2360 # Pass precious variables to config.status.
2361 if test "$ac_new_set" = set; then
2363 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2364 *) ac_arg=$ac_var=$ac_new_val ;;
2366 case " $ac_configure_args " in
2367 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2368 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2372 if $ac_cache_corrupted; then
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2374 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2376 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2377 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2379 ## -------------------- ##
2380 ## Main body of script. ##
2381 ## -------------------- ##
2384 ac_cpp='$CPP $CPPFLAGS'
2385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2391 ac_config_headers="$ac_config_headers include/setup.h"
2397 ac_cpp='$CPP $CPPFLAGS'
2398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2401 if test -n "$ac_tool_prefix"; then
2402 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2403 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2405 $as_echo_n "checking for $ac_word... " >&6; }
2406 if test "${ac_cv_prog_CC+set}" = set; then :
2407 $as_echo_n "(cached) " >&6
2409 if test -n "$CC"; then
2410 ac_cv_prog_CC="$CC" # Let the user override the test.
2412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2416 test -z "$as_dir" && as_dir=.
2417 for ac_exec_ext in '' $ac_executable_extensions; do
2418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2419 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2430 if test -n "$CC"; then
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2432 $as_echo "$CC" >&6; }
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2435 $as_echo "no" >&6; }
2440 if test -z "$ac_cv_prog_CC"; then
2442 # Extract the first word of "gcc", so it can be a program name with args.
2443 set dummy gcc; ac_word=$2
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2445 $as_echo_n "checking for $ac_word... " >&6; }
2446 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2447 $as_echo_n "(cached) " >&6
2449 if test -n "$ac_ct_CC"; then
2450 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456 test -z "$as_dir" && as_dir=.
2457 for ac_exec_ext in '' $ac_executable_extensions; do
2458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2459 ac_cv_prog_ac_ct_CC="gcc"
2460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2469 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2470 if test -n "$ac_ct_CC"; then
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2472 $as_echo "$ac_ct_CC" >&6; }
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2475 $as_echo "no" >&6; }
2478 if test "x$ac_ct_CC" = x; then
2481 case $cross_compiling:$ac_tool_warned in
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2485 ac_tool_warned=yes ;;
2493 if test -z "$CC"; then
2494 if test -n "$ac_tool_prefix"; then
2495 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2496 set dummy ${ac_tool_prefix}cc; ac_word=$2
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2498 $as_echo_n "checking for $ac_word... " >&6; }
2499 if test "${ac_cv_prog_CC+set}" = set; then :
2500 $as_echo_n "(cached) " >&6
2502 if test -n "$CC"; then
2503 ac_cv_prog_CC="$CC" # Let the user override the test.
2505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509 test -z "$as_dir" && as_dir=.
2510 for ac_exec_ext in '' $ac_executable_extensions; do
2511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2512 ac_cv_prog_CC="${ac_tool_prefix}cc"
2513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2523 if test -n "$CC"; then
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2525 $as_echo "$CC" >&6; }
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2528 $as_echo "no" >&6; }
2534 if test -z "$CC"; then
2535 # Extract the first word of "cc", so it can be a program name with args.
2536 set dummy cc; ac_word=$2
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2538 $as_echo_n "checking for $ac_word... " >&6; }
2539 if test "${ac_cv_prog_CC+set}" = set; then :
2540 $as_echo_n "(cached) " >&6
2542 if test -n "$CC"; then
2543 ac_cv_prog_CC="$CC" # Let the user override the test.
2546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2550 test -z "$as_dir" && as_dir=.
2551 for ac_exec_ext in '' $ac_executable_extensions; do
2552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2553 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2554 ac_prog_rejected=yes
2558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2565 if test $ac_prog_rejected = yes; then
2566 # We found a bogon in the path, so make sure we never use it.
2567 set dummy $ac_cv_prog_CC
2569 if test $# != 0; then
2570 # We chose a different compiler from the bogus one.
2571 # However, it has the same basename, so the bogon will be chosen
2572 # first if we set CC to just the basename; use the full file name.
2574 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2580 if test -n "$CC"; then
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2582 $as_echo "$CC" >&6; }
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2585 $as_echo "no" >&6; }
2590 if test -z "$CC"; then
2591 if test -n "$ac_tool_prefix"; then
2592 for ac_prog in cl.exe
2594 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2595 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2597 $as_echo_n "checking for $ac_word... " >&6; }
2598 if test "${ac_cv_prog_CC+set}" = set; then :
2599 $as_echo_n "(cached) " >&6
2601 if test -n "$CC"; then
2602 ac_cv_prog_CC="$CC" # Let the user override the test.
2604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2608 test -z "$as_dir" && as_dir=.
2609 for ac_exec_ext in '' $ac_executable_extensions; do
2610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2611 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2622 if test -n "$CC"; then
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2624 $as_echo "$CC" >&6; }
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2627 $as_echo "no" >&6; }
2631 test -n "$CC" && break
2634 if test -z "$CC"; then
2636 for ac_prog in cl.exe
2638 # Extract the first word of "$ac_prog", so it can be a program name with args.
2639 set dummy $ac_prog; ac_word=$2
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2641 $as_echo_n "checking for $ac_word... " >&6; }
2642 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2643 $as_echo_n "(cached) " >&6
2645 if test -n "$ac_ct_CC"; then
2646 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2652 test -z "$as_dir" && as_dir=.
2653 for ac_exec_ext in '' $ac_executable_extensions; do
2654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2655 ac_cv_prog_ac_ct_CC="$ac_prog"
2656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2665 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2666 if test -n "$ac_ct_CC"; then
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2668 $as_echo "$ac_ct_CC" >&6; }
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2671 $as_echo "no" >&6; }
2675 test -n "$ac_ct_CC" && break
2678 if test "x$ac_ct_CC" = x; then
2681 case $cross_compiling:$ac_tool_warned in
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2684 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2685 ac_tool_warned=yes ;;
2694 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2695 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2696 as_fn_error "no acceptable C compiler found
in \
$PATH
2697 See \
`config.log' for more details." "$LINENO" 5; }
2699 # Provide some information about the compiler.
2700 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2703 for ac_option in --version -v -V -qversion; do
2704 { { ac_try="$ac_compiler $ac_option >&5"
2706 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
2707 *) ac_try_echo
=$ac_try;;
2709 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2710 $as_echo "$ac_try_echo"; } >&5
2711 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2713 if test -s conftest.err
; then
2715 ... rest of stderr output deleted ...
2716 10q' conftest.err
>conftest.er1
2717 cat conftest.er1
>&5
2718 rm -f conftest.er1 conftest.err
2720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2721 test $ac_status = 0; }
2724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2725 /* end confdefs.h. */
2730 FILE *f = fopen ("conftest.out", "w");
2731 return ferror (f) || fclose (f) != 0;
2737 ac_clean_files_save
=$ac_clean_files
2738 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2739 # Try to create an executable without -o first, disregard a.out.
2740 # It will help us diagnose broken compilers, and finding out an intuition
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2743 $as_echo_n "checking for C compiler default output file name... " >&6; }
2744 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2746 # The possible output files:
2747 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2750 for ac_file
in $ac_files
2753 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.map
| *.inf
| *.dSYM
| *.o
| *.obj
) ;;
2754 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2759 if { { ac_try
="$ac_link_default"
2761 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
2762 *) ac_try_echo=$ac_try;;
2764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2765 $as_echo "$ac_try_echo"; } >&5
2766 (eval "$ac_link_default") 2>&5
2768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2769 test $ac_status = 0; }; then :
2770 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2771 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2772 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2773 # so that the user can short-circuit this test for compilers unknown to
2775 for ac_file in $ac_files ''
2777 test -f "$ac_file" || continue
2779 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2782 # We found the default executable, but exeext='' is most
2786 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2788 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2790 # We set ac_cv_exeext here because the later test for it is not
2791 # safe: cross compilers may not add the suffix if given an `-o'
2792 # argument, so we may need to know it at that point already.
2793 # Even if this section looks crufty: it has the advantage of
2800 test "$ac_cv_exeext" = no && ac_cv_exeext=
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2806 $as_echo "$ac_file" >&6; }
2807 if test -z "$ac_file"; then :
2808 $as_echo "$as_me: failed program was:" >&5
2809 sed 's
/^
/| /' conftest.$ac_ext >&5
2811 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2812 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2813 { as_fn_set_status 77
2814 as_fn_error "C compiler cannot create executables
2815 See \`config.log
' for more details." "$LINENO" 5; }; }
2817 ac_exeext=$ac_cv_exeext
2819 # Check that the compiler produces executables we can run. If not, either
2820 # the compiler is broken, or we cross compile.
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2822 $as_echo_n "checking whether the C compiler works... " >&6; }
2823 # If not cross compiling, check that we can run a simple program.
2824 if test "$cross_compiling" != yes; then
2825 if { ac_try='.
/$ac_file'
2826 { { case "(($ac_try" in
2827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2828 *) ac_try_echo=$ac_try;;
2830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2831 $as_echo "$ac_try_echo"; } >&5
2832 (eval "$ac_try") 2>&5
2834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2835 test $ac_status = 0; }; }; then
2838 if test "$cross_compiling" = maybe; then
2841 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2842 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2843 as_fn_error "cannot run C compiled programs.
2844 If you meant to cross compile, use \`--host'.
2845 See \`config.log' for more details.
" "$LINENO" 5; }
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
2850 $as_echo "yes" >&6; }
2852 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2853 ac_clean_files=$ac_clean_files_save
2854 # Check that the compiler produces executables we can run. If not, either
2855 # the compiler is broken, or we cross compile.
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling
" >&5
2857 $as_echo_n "checking whether we are cross compiling...
" >&6; }
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $cross_compiling" >&5
2859 $as_echo "$cross_compiling" >&6; }
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of executables
" >&5
2862 $as_echo_n "checking
for suffix of executables...
" >&6; }
2863 if { { ac_try="$ac_link"
2865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2866 *) ac_try_echo=$ac_try;;
2868 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2869 $as_echo "$ac_try_echo"; } >&5
2870 (eval "$ac_link") 2>&5
2872 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
2873 test $ac_status = 0; }; then :
2874 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2875 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2876 # work properly (i.e., refer to `conftest.exe'), while it won't with
2878 for ac_file in conftest.exe conftest conftest.*; do
2879 test -f "$ac_file" || continue
2881 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2882 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2888 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2889 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2890 as_fn_error "cannot compute suffix of executables: cannot compile and link
2891 See \`config.log' for more details.
" "$LINENO" 5; }
2893 rm -f conftest$ac_cv_exeext
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_exeext" >&5
2895 $as_echo "$ac_cv_exeext" >&6; }
2897 rm -f conftest.$ac_ext
2898 EXEEXT=$ac_cv_exeext
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of object files
" >&5
2901 $as_echo_n "checking
for suffix of object files...
" >&6; }
2902 if test "${ac_cv_objext+set}" = set; then :
2903 $as_echo_n "(cached
) " >&6
2905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2906 /* end confdefs.h. */
2916 rm -f conftest.o conftest.obj
2917 if { { ac_try="$ac_compile"
2919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2920 *) ac_try_echo=$ac_try;;
2922 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2923 $as_echo "$ac_try_echo"; } >&5
2924 (eval "$ac_compile") 2>&5
2926 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
2927 test $ac_status = 0; }; then :
2928 for ac_file in conftest.o conftest.obj conftest.*; do
2929 test -f "$ac_file" || continue;
2931 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2932 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2937 $as_echo "$as_me: failed program was
:" >&5
2938 sed 's/^/| /' conftest.$ac_ext >&5
2940 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2941 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2942 as_fn_error "cannot compute suffix of object files: cannot compile
2943 See \`config.log' for more details.
" "$LINENO" 5; }
2945 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_objext" >&5
2948 $as_echo "$ac_cv_objext" >&6; }
2949 OBJEXT=$ac_cv_objext
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler
" >&5
2952 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
2953 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2954 $as_echo_n "(cached
) " >&6
2956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2957 /* end confdefs.h. */
2970 if ac_fn_c_try_compile "$LINENO"; then :
2975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2976 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_c_compiler_gnu" >&5
2980 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2981 if test $ac_compiler_gnu = yes; then
2986 ac_test_CFLAGS=${CFLAGS+set}
2987 ac_save_CFLAGS=$CFLAGS
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CC accepts
-g" >&5
2989 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
2990 if test "${ac_cv_prog_cc_g+set}" = set; then :
2991 $as_echo_n "(cached
) " >&6
2993 ac_save_c_werror_flag=$ac_c_werror_flag
2994 ac_c_werror_flag=yes
2997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2998 /* end confdefs.h. */
3008 if ac_fn_c_try_compile "$LINENO"; then :
3012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3013 /* end confdefs.h. */
3023 if ac_fn_c_try_compile "$LINENO"; then :
3026 ac_c_werror_flag=$ac_save_c_werror_flag
3028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3029 /* end confdefs.h. */
3039 if ac_fn_c_try_compile "$LINENO"; then :
3042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3047 ac_c_werror_flag=$ac_save_c_werror_flag
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_g" >&5
3050 $as_echo "$ac_cv_prog_cc_g" >&6; }
3051 if test "$ac_test_CFLAGS" = set; then
3052 CFLAGS=$ac_save_CFLAGS
3053 elif test $ac_cv_prog_cc_g = yes; then
3054 if test "$GCC" = yes; then
3060 if test "$GCC" = yes; then
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $CC option to accept ISO C89
" >&5
3067 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
3068 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3069 $as_echo_n "(cached
) " >&6
3071 ac_cv_prog_cc_c89=no
3073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3074 /* end confdefs.h. */
3077 #include <sys/types.h>
3078 #include <sys/stat.h>
3079 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3080 struct buf { int x; };
3081 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3082 static char *e (p, i)
3088 static char *f (char * (*g) (char **, int), char **p, ...)
3093 s = g (p, va_arg (v,int));
3098 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3099 function prototypes and stuff, but not '\xHH' hex character constants.
3100 These don't provoke an error unfortunately, instead are silently treated
3101 as 'x'. The following induces an error, until -std is added to get
3102 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3103 array size at least. It's necessary to write '\x00'==0 to get something
3104 that's true only with -std. */
3105 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3107 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3108 inside strings and character constants. */
3110 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3112 int test (int i, double x);
3113 struct s1 {int (*f) (int a);};
3114 struct s2 {int (*f) (double a);};
3115 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3121 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3126 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3127 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3129 CC="$ac_save_CC $ac_arg"
3130 if ac_fn_c_try_compile "$LINENO"; then :
3131 ac_cv_prog_cc_c89=$ac_arg
3133 rm -f core conftest.err conftest.$ac_objext
3134 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3136 rm -f conftest.$ac_ext
3141 case "x
$ac_cv_prog_cc_c89" in
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none needed
" >&5
3144 $as_echo "none needed
" >&6; } ;;
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: unsupported
" >&5
3147 $as_echo "unsupported
" >&6; } ;;
3149 CC="$CC $ac_cv_prog_cc_c89"
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_c89" >&5
3151 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3153 if test "x
$ac_cv_prog_cc_c89" != xno; then :
3158 ac_cpp='$CPP $CPPFLAGS'
3159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3165 ac_cpp='$CPP $CPPFLAGS'
3166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor
" >&5
3170 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
3171 # On Suns, sometimes $CPP names a directory.
3172 if test -n "$CPP" && test -d "$CPP"; then
3175 if test -z "$CPP"; then
3176 if test "${ac_cv_prog_CPP+set}" = set; then :
3177 $as_echo_n "(cached
) " >&6
3179 # Double quotes because CPP needs to be expanded
3180 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3183 for ac_c_preproc_warn_flag in '' yes
3185 # Use a header file that comes with gcc, so configuring glibc
3186 # with a fresh cross-compiler works.
3187 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3188 # <limits.h> exists even on freestanding compilers.
3189 # On the NeXT, cc -E runs the code through the compiler's parser,
3190 # not just through cpp. "Syntax error
" is here to catch this case.
3191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3192 /* end confdefs.h. */
3194 # include <limits.h>
3196 # include <assert.h>
3200 if ac_fn_c_try_cpp "$LINENO"; then :
3203 # Broken: fails on valid input.
3206 rm -f conftest.err conftest.$ac_ext
3208 # OK, works on sane cases. Now check whether nonexistent headers
3209 # can be detected and how.
3210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3211 /* end confdefs.h. */
3212 #include <ac_nonexistent.h>
3214 if ac_fn_c_try_cpp "$LINENO"; then :
3215 # Broken: success on invalid input.
3218 # Passes both tests.
3222 rm -f conftest.err conftest.$ac_ext
3225 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3226 rm -f conftest.err conftest.$ac_ext
3227 if $ac_preproc_ok; then :
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CPP" >&5
3240 $as_echo "$CPP" >&6; }
3242 for ac_c_preproc_warn_flag in '' yes
3244 # Use a header file that comes with gcc, so configuring glibc
3245 # with a fresh cross-compiler works.
3246 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3247 # <limits.h> exists even on freestanding compilers.
3248 # On the NeXT, cc -E runs the code through the compiler's parser,
3249 # not just through cpp. "Syntax error
" is here to catch this case.
3250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3251 /* end confdefs.h. */
3253 # include <limits.h>
3255 # include <assert.h>
3259 if ac_fn_c_try_cpp "$LINENO"; then :
3262 # Broken: fails on valid input.
3265 rm -f conftest.err conftest.$ac_ext
3267 # OK, works on sane cases. Now check whether nonexistent headers
3268 # can be detected and how.
3269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3270 /* end confdefs.h. */
3271 #include <ac_nonexistent.h>
3273 if ac_fn_c_try_cpp "$LINENO"; then :
3274 # Broken: success on invalid input.
3277 # Passes both tests.
3281 rm -f conftest.err conftest.$ac_ext
3284 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3285 rm -f conftest.err conftest.$ac_ext
3286 if $ac_preproc_ok; then :
3289 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3290 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3291 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3292 See \`config.log' for more details.
" "$LINENO" 5; }
3296 ac_cpp='$CPP $CPPFLAGS'
3297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
3303 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
3304 if test "${ac_cv_path_GREP+set}" = set; then :
3305 $as_echo_n "(cached
) " >&6
3307 if test -z "$GREP"; then
3308 ac_path_GREP_found=false
3309 # Loop through the user's path and test for each of PROGNAME-LIST
3310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3314 test -z "$as_dir" && as_dir=.
3315 for ac_prog in grep ggrep; do
3316 for ac_exec_ext in '' $ac_executable_extensions; do
3317 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3318 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3319 # Check for GNU ac_path_GREP and select it if it is found.
3320 # Check for GNU $ac_path_GREP
3321 case `"$ac_path_GREP" --version 2>&1` in
3323 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3326 $as_echo_n 0123456789 >"conftest.
in"
3329 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3330 mv "conftest.tmp
" "conftest.
in"
3331 cp "conftest.
in" "conftest.
nl"
3332 $as_echo 'GREP' >> "conftest.
nl"
3333 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3334 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3335 as_fn_arith $ac_count + 1 && ac_count=$as_val
3336 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3337 # Best one so far, save it but keep looking for a better one
3338 ac_cv_path_GREP="$ac_path_GREP"
3339 ac_path_GREP_max=$ac_count
3341 # 10*(2^10) chars as input seems more than enough
3342 test $ac_count -gt 10 && break
3344 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3347 $ac_path_GREP_found && break 3
3352 if test -z "$ac_cv_path_GREP"; then
3353 as_fn_error "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3356 ac_cv_path_GREP=$GREP
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
3361 $as_echo "$ac_cv_path_GREP" >&6; }
3362 GREP="$ac_cv_path_GREP"
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
3366 $as_echo_n "checking
for egrep...
" >&6; }
3367 if test "${ac_cv_path_EGREP+set}" = set; then :
3368 $as_echo_n "(cached
) " >&6
3370 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3371 then ac_cv_path_EGREP="$GREP -E"
3373 if test -z "$EGREP"; then
3374 ac_path_EGREP_found=false
3375 # Loop through the user's path and test for each of PROGNAME-LIST
3376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3377 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3380 test -z "$as_dir" && as_dir=.
3381 for ac_prog in egrep; do
3382 for ac_exec_ext in '' $ac_executable_extensions; do
3383 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3384 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3385 # Check for GNU ac_path_EGREP and select it if it is found.
3386 # Check for GNU $ac_path_EGREP
3387 case `"$ac_path_EGREP" --version 2>&1` in
3389 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3392 $as_echo_n 0123456789 >"conftest.
in"
3395 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3396 mv "conftest.tmp
" "conftest.
in"
3397 cp "conftest.
in" "conftest.
nl"
3398 $as_echo 'EGREP' >> "conftest.
nl"
3399 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3400 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3401 as_fn_arith $ac_count + 1 && ac_count=$as_val
3402 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3403 # Best one so far, save it but keep looking for a better one
3404 ac_cv_path_EGREP="$ac_path_EGREP"
3405 ac_path_EGREP_max=$ac_count
3407 # 10*(2^10) chars as input seems more than enough
3408 test $ac_count -gt 10 && break
3410 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3413 $ac_path_EGREP_found && break 3
3418 if test -z "$ac_cv_path_EGREP"; then
3419 as_fn_error "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3422 ac_cv_path_EGREP=$EGREP
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
3428 $as_echo "$ac_cv_path_EGREP" >&6; }
3429 EGREP="$ac_cv_path_EGREP"
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
3433 $as_echo_n "checking
for ANSI C header files...
" >&6; }
3434 if test "${ac_cv_header_stdc+set}" = set; then :
3435 $as_echo_n "(cached
) " >&6
3437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3438 /* end confdefs.h. */
3452 if ac_fn_c_try_compile "$LINENO"; then :
3453 ac_cv_header_stdc=yes
3455 ac_cv_header_stdc=no
3457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3459 if test $ac_cv_header_stdc = yes; then
3460 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3462 /* end confdefs.h. */
3466 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3467 $EGREP "memchr
" >/dev/null 2>&1; then :
3470 ac_cv_header_stdc=no
3476 if test $ac_cv_header_stdc = yes; then
3477 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3479 /* end confdefs.h. */
3483 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3484 $EGREP "free
" >/dev/null 2>&1; then :
3487 ac_cv_header_stdc=no
3493 if test $ac_cv_header_stdc = yes; then
3494 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3495 if test "$cross_compiling" = yes; then :
3498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3499 /* end confdefs.h. */
3502 #if ((' ' & 0x0FF) == 0x020)
3503 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3504 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3506 # define ISLOWER(c) \
3507 (('a' <= (c) && (c) <= 'i') \
3508 || ('j' <= (c) && (c) <= 'r') \
3509 || ('s' <= (c) && (c) <= 'z'))
3510 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3513 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3518 for (i = 0; i < 256; i++)
3519 if (XOR (islower (i), ISLOWER (i))
3520 || toupper (i) != TOUPPER (i))
3525 if ac_fn_c_try_run "$LINENO"; then :
3528 ac_cv_header_stdc=no
3530 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3531 conftest.$ac_objext conftest.beam conftest.$ac_ext
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
3537 $as_echo "$ac_cv_header_stdc" >&6; }
3538 if test $ac_cv_header_stdc = yes; then
3540 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3544 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3545 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3546 inttypes.h stdint.h unistd.h
3548 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3549 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3551 eval as_val
=\$
$as_ac_Header
3552 if test "x$as_val" = x
""yes; then :
3553 cat >>confdefs.h
<<_ACEOF
3554 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3563 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3564 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
3571 if test "$MINIX" = yes; then
3573 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3576 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3579 $as_echo "#define _MINIX 1" >>confdefs.h
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3585 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3586 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3587 $as_echo_n "(cached) " >&6
3589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3590 /* end confdefs.h. */
3592 # define __EXTENSIONS__ 1
3593 $ac_includes_default
3602 if ac_fn_c_try_compile
"$LINENO"; then :
3603 ac_cv_safe_to_define___extensions__
=yes
3605 ac_cv_safe_to_define___extensions__
=no
3607 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3610 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3611 test $ac_cv_safe_to_define___extensions__ = yes &&
3612 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3614 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3616 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3618 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3620 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3625 OLD_CFLAGS
="$CFLAGS"
3627 ac_cpp
='$CPP $CPPFLAGS'
3628 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3629 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3630 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3631 if test -n "$ac_tool_prefix"; then
3632 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3633 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3635 $as_echo_n "checking for $ac_word... " >&6; }
3636 if test "${ac_cv_prog_CC+set}" = set; then :
3637 $as_echo_n "(cached) " >&6
3639 if test -n "$CC"; then
3640 ac_cv_prog_CC
="$CC" # Let the user override the test.
3642 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3646 test -z "$as_dir" && as_dir
=.
3647 for ac_exec_ext
in '' $ac_executable_extensions; do
3648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3649 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3660 if test -n "$CC"; then
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3662 $as_echo "$CC" >&6; }
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3665 $as_echo "no" >&6; }
3670 if test -z "$ac_cv_prog_CC"; then
3672 # Extract the first word of "gcc", so it can be a program name with args.
3673 set dummy gcc
; ac_word
=$2
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3675 $as_echo_n "checking for $ac_word... " >&6; }
3676 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3677 $as_echo_n "(cached) " >&6
3679 if test -n "$ac_ct_CC"; then
3680 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3682 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3686 test -z "$as_dir" && as_dir
=.
3687 for ac_exec_ext
in '' $ac_executable_extensions; do
3688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3689 ac_cv_prog_ac_ct_CC
="gcc"
3690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3699 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3700 if test -n "$ac_ct_CC"; then
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3702 $as_echo "$ac_ct_CC" >&6; }
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3705 $as_echo "no" >&6; }
3708 if test "x$ac_ct_CC" = x
; then
3711 case $cross_compiling:$ac_tool_warned in
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3714 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3715 ac_tool_warned
=yes ;;
3723 if test -z "$CC"; then
3724 if test -n "$ac_tool_prefix"; then
3725 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3726 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3728 $as_echo_n "checking for $ac_word... " >&6; }
3729 if test "${ac_cv_prog_CC+set}" = set; then :
3730 $as_echo_n "(cached) " >&6
3732 if test -n "$CC"; then
3733 ac_cv_prog_CC
="$CC" # Let the user override the test.
3735 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3739 test -z "$as_dir" && as_dir
=.
3740 for ac_exec_ext
in '' $ac_executable_extensions; do
3741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3742 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3753 if test -n "$CC"; then
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3755 $as_echo "$CC" >&6; }
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3758 $as_echo "no" >&6; }
3764 if test -z "$CC"; then
3765 # Extract the first word of "cc", so it can be a program name with args.
3766 set dummy cc
; ac_word
=$2
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3768 $as_echo_n "checking for $ac_word... " >&6; }
3769 if test "${ac_cv_prog_CC+set}" = set; then :
3770 $as_echo_n "(cached) " >&6
3772 if test -n "$CC"; then
3773 ac_cv_prog_CC
="$CC" # Let the user override the test.
3776 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3780 test -z "$as_dir" && as_dir
=.
3781 for ac_exec_ext
in '' $ac_executable_extensions; do
3782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3783 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3784 ac_prog_rejected
=yes
3788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3795 if test $ac_prog_rejected = yes; then
3796 # We found a bogon in the path, so make sure we never use it.
3797 set dummy
$ac_cv_prog_CC
3799 if test $# != 0; then
3800 # We chose a different compiler from the bogus one.
3801 # However, it has the same basename, so the bogon will be chosen
3802 # first if we set CC to just the basename; use the full file name.
3804 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3810 if test -n "$CC"; then
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3812 $as_echo "$CC" >&6; }
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3815 $as_echo "no" >&6; }
3820 if test -z "$CC"; then
3821 if test -n "$ac_tool_prefix"; then
3822 for ac_prog
in cl.exe
3824 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3825 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3827 $as_echo_n "checking for $ac_word... " >&6; }
3828 if test "${ac_cv_prog_CC+set}" = set; then :
3829 $as_echo_n "(cached) " >&6
3831 if test -n "$CC"; then
3832 ac_cv_prog_CC
="$CC" # Let the user override the test.
3834 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3838 test -z "$as_dir" && as_dir
=.
3839 for ac_exec_ext
in '' $ac_executable_extensions; do
3840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3841 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3852 if test -n "$CC"; then
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3854 $as_echo "$CC" >&6; }
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3857 $as_echo "no" >&6; }
3861 test -n "$CC" && break
3864 if test -z "$CC"; then
3866 for ac_prog
in cl.exe
3868 # Extract the first word of "$ac_prog", so it can be a program name with args.
3869 set dummy
$ac_prog; ac_word
=$2
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3871 $as_echo_n "checking for $ac_word... " >&6; }
3872 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3873 $as_echo_n "(cached) " >&6
3875 if test -n "$ac_ct_CC"; then
3876 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3878 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3882 test -z "$as_dir" && as_dir
=.
3883 for ac_exec_ext
in '' $ac_executable_extensions; do
3884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3885 ac_cv_prog_ac_ct_CC
="$ac_prog"
3886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3895 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3896 if test -n "$ac_ct_CC"; then
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3898 $as_echo "$ac_ct_CC" >&6; }
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3901 $as_echo "no" >&6; }
3905 test -n "$ac_ct_CC" && break
3908 if test "x$ac_ct_CC" = x
; then
3911 case $cross_compiling:$ac_tool_warned in
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3914 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3915 ac_tool_warned
=yes ;;
3924 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3925 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3926 as_fn_error
"no acceptable C compiler found in \$PATH
3927 See \`config.log' for more details." "$LINENO" 5; }
3929 # Provide some information about the compiler.
3930 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3933 for ac_option
in --version -v -V -qversion; do
3934 { { ac_try
="$ac_compiler $ac_option >&5"
3936 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
3937 *) ac_try_echo=$ac_try;;
3939 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3940 $as_echo "$ac_try_echo"; } >&5
3941 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3943 if test -s conftest.err; then
3945 ... rest of stderr output deleted ...
3946 10q' conftest.err >conftest.er1
3947 cat conftest.er1 >&5
3948 rm -f conftest.er1 conftest.err
3950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3951 test $ac_status = 0; }
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3955 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3956 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3957 $as_echo_n "(cached) " >&6
3959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3960 /* end confdefs.h. */
3973 if ac_fn_c_try_compile "$LINENO"; then :
3978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3979 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3983 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3984 if test $ac_compiler_gnu = yes; then
3989 ac_test_CFLAGS=${CFLAGS+set}
3990 ac_save_CFLAGS=$CFLAGS
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3992 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3993 if test "${ac_cv_prog_cc_g+set}" = set; then :
3994 $as_echo_n "(cached) " >&6
3996 ac_save_c_werror_flag=$ac_c_werror_flag
3997 ac_c_werror_flag=yes
4000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4001 /* end confdefs.h. */
4011 if ac_fn_c_try_compile "$LINENO"; then :
4015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4016 /* end confdefs.h. */
4026 if ac_fn_c_try_compile "$LINENO"; then :
4029 ac_c_werror_flag=$ac_save_c_werror_flag
4031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4032 /* end confdefs.h. */
4042 if ac_fn_c_try_compile "$LINENO"; then :
4045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4050 ac_c_werror_flag=$ac_save_c_werror_flag
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4053 $as_echo "$ac_cv_prog_cc_g" >&6; }
4054 if test "$ac_test_CFLAGS" = set; then
4055 CFLAGS=$ac_save_CFLAGS
4056 elif test $ac_cv_prog_cc_g = yes; then
4057 if test "$GCC" = yes; then
4063 if test "$GCC" = yes; then
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4070 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4071 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4072 $as_echo_n "(cached) " >&6
4074 ac_cv_prog_cc_c89=no
4076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4077 /* end confdefs.h. */
4080 #include <sys/types.h>
4081 #include <sys/stat.h>
4082 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4083 struct buf { int x; };
4084 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4085 static char *e (p, i)
4091 static char *f (char * (*g) (char **, int), char **p, ...)
4096 s = g (p, va_arg (v,int));
4101 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4102 function prototypes and stuff, but not '\xHH' hex character constants.
4103 These don't provoke an error unfortunately, instead are silently treated
4104 as 'x'. The following induces an error, until -std is added to get
4105 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4106 array size at least. It's necessary to write '\x00'==0 to get something
4107 that's true only with -std. */
4108 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4110 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4111 inside strings and character constants. */
4113 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4115 int test (int i, double x);
4116 struct s1 {int (*f) (int a);};
4117 struct s2 {int (*f) (double a);};
4118 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4124 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4129 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4130 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4132 CC="$ac_save_CC $ac_arg"
4133 if ac_fn_c_try_compile "$LINENO"; then :
4134 ac_cv_prog_cc_c89=$ac_arg
4136 rm -f core conftest.err conftest.$ac_objext
4137 test "x$ac_cv_prog_cc_c89" != "xno" && break
4139 rm -f conftest.$ac_ext
4144 case "x$ac_cv_prog_cc_c89" in
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4147 $as_echo "none needed" >&6; } ;;
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4150 $as_echo "unsupported" >&6; } ;;
4152 CC="$CC $ac_cv_prog_cc_c89"
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4154 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4156 if test "x$ac_cv_prog_cc_c89" != xno; then :
4161 ac_cpp='$CPP $CPPFLAGS'
4162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4167 ac_cpp='$CPP $CPPFLAGS'
4168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4173 CFLAGS="$OLD_CFLAGS"
4176 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4177 for ac_t in install-sh install.sh shtool; do
4178 if test -f "$ac_dir/$ac_t"; then
4180 ac_install_sh="$ac_aux_dir/$ac_t -c"
4185 if test -z "$ac_aux_dir"; then
4186 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4189 # These three variables are undocumented and unsupported,
4190 # and are intended to be withdrawn in a future Autoconf release.
4191 # They can cause serious problems if a builder's source tree is in a directory
4192 # whose full name contains unusual characters.
4193 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4194 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4195 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4200 subdirs="$subdirs libratbox"
4204 if test "$ac_cv_c_compiler_gnu" != yes; then
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC -version for TenDRA or MIPSpro" >&5
4208 $as_echo_n "checking $CC -version for TenDRA or MIPSpro... " >&6; }
4209 case `$CC -version 2>&1` in
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, TenDRA" >&5
4212 $as_echo "yes, TenDRA" >&6; }
4214 CPPFLAGS="$CPPFLAGS -Ylonglong -Yansi -I/usr/include"
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, MIPSpro" >&5
4220 $as_echo "yes, MIPSpro" >&6; }
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4226 $as_echo "no" >&6; }
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc" >&5
4233 $as_echo_n "checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc... " >&6; }
4234 case `$CC -V 2>&1` in
4235 *Sun*WorkShop* | *Forte*Developer*)
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sun Workshop/Forte" >&5
4237 $as_echo "Sun Workshop/Forte" >&6; }
4238 IRC_CFLAGS="-fast -xinline=dlinkAdd,dlinkAddBefore,dlinkAddTail,dlinkDelete,dlink_list_length,dlink_node,dlinkMoveList,_MyMalloc,_MyRealloc,_MyFree,_DupString"
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Tru64 cc" >&5
4244 $as_echo "Tru64 cc" >&6; }
4246 CPPFLAGS="-I/usr/local/include"
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: HPUX cc" >&5
4251 $as_echo "HPUX cc" >&6; }
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4257 $as_echo "no" >&6; }
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking uname -s for Solaris, AIX or HPUX" >&5
4264 $as_echo_n "checking uname -s for Solaris, AIX or HPUX... " >&6; }
4269 if test "$HPUX" != yes -a "$ac_cv_c_compiler_gnu" = no; then
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming old HPUX with its own cc" >&5
4271 $as_echo "assuming old HPUX with its own cc" >&6; }
4272 IRC_CFLAGS="$IRC_CFLAGS +e"
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: already using newer HPUX" >&5
4276 $as_echo "already using newer HPUX" >&6; }
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SunOS or Solaris" >&5
4281 $as_echo "SunOS or Solaris" >&6; }
4283 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: AIX - Sorry you poor bastard..really we are" >&5
4289 $as_echo "AIX - Sorry you poor bastard..really we are" >&6; }
4290 IRC_CFLAGS="$IRC_CFLAGS -Wl,-brtl -Wl,-G"
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4294 $as_echo "no" >&6; }
4298 if test "$ac_cv_c_compiler_gnu" = yes; then
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC is Apple GCC" >&5
4300 $as_echo_n "checking if $CC is Apple GCC... " >&6; }
4302 case `$CC -v 2>&1 | tail -n 1` in
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4305 $as_echo "yes" >&6; }
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4310 $as_echo "no" >&6; }
4315 IRC_CFLAGS="$IRC_CFLAGS -O0 -Wall -std=gnu99"
4318 if test "$ac_cv_prog_cc_g" = yes; then
4319 if test "$Tru" = yes; then
4320 IRC_CFLAGS="$IRC_CFLAGS -g3"
4322 IRC_CFLAGS="$IRC_CFLAGS -g"
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the SVR4 SGS interfaces" >&5
4327 $as_echo_n "checking if $CC supports the SVR4 SGS interfaces... " >&6; }
4328 if test "$SGS" = "yes"; then
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4330 $as_echo "yes" >&6; }
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4333 $as_echo "no" >&6; }
4336 # Extract the first word of "mkdep", so it can be a program name with args.
4337 set dummy mkdep; ac_word=$2
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4339 $as_echo_n "checking for $ac_word... " >&6; }
4340 if test "${ac_cv_path_MKDEP+set}" = set; then :
4341 $as_echo_n "(cached) " >&6
4345 ac_cv_path_MKDEP="$MKDEP" # Let the user override the test with a path.
4348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4352 test -z "$as_dir" && as_dir=.
4353 for ac_exec_ext in '' $ac_executable_extensions; do
4354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4355 ac_cv_path_MKDEP="$as_dir/$ac_word$ac_exec_ext"
4356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4366 MKDEP=$ac_cv_path_MKDEP
4367 if test -n "$MKDEP"; then
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDEP" >&5
4369 $as_echo "$MKDEP" >&6; }
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4372 $as_echo "no" >&6; }
4376 # Extract the first word of "makedepend", so it can be a program name with args.
4377 set dummy makedepend; ac_word=$2
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4379 $as_echo_n "checking for $ac_word... " >&6; }
4380 if test "${ac_cv_path_MAKEDEPEND+set}" = set; then :
4381 $as_echo_n "(cached) " >&6
4385 ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path.
4388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4392 test -z "$as_dir" && as_dir=.
4393 for ac_exec_ext in '' $ac_executable_extensions; do
4394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4395 ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext"
4396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4406 MAKEDEPEND=$ac_cv_path_MAKEDEPEND
4407 if test -n "$MAKEDEPEND"; then
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEDEPEND" >&5
4409 $as_echo "$MAKEDEPEND" >&6; }
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4412 $as_echo "no" >&6; }
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to generate dependency info" >&5
4418 $as_echo_n "checking how to generate dependency info... " >&6; }
4422 if test "$ac_cv_c_compiler_gnu" = yes; then
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gcc -MM" >&5
4424 $as_echo "gcc -MM" >&6; }
4426 elif test ! -z "$MKDEP"; then
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: mkdep" >&5
4428 $as_echo "mkdep" >&6; }
4430 if test -z "$Tru"; then
4433 STDOUT=" 2> /dev/null"
4435 elif test "$SunWorkShop" = yes; then
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC -xM" >&5
4437 $as_echo "$CC -xM" >&6; }
4439 STDOUT="> .depend 2> /dev/null"
4440 elif test ! -z "$MAKEDEPEND"; then
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: makedepend" >&5
4442 $as_echo "makedepend" >&6; }
4443 MKDEP="$MAKEDEPEND -f-"
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: nothing suitable.. forget it!" >&5
4446 $as_echo "nothing suitable.. forget it!" >&6; }
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/null" >&5
4454 $as_echo_n "checking for /dev/null... " >&6; }
4455 if test -c /dev/null ; then
4457 $as_echo "#define PATH_DEVNULL \"/dev/null\"" >>confdefs.h
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4460 $as_echo "yes" >&6; }
4463 $as_echo "#define PATH_DEVNULL \"devnull.log\"" >>confdefs.h
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using devnull.log" >&5
4466 $as_echo "no - using devnull.log" >&6; }
4469 if test ! -z "$CFLAGS"; then
4470 IRC_CFLAGS="$IRC_CFLAGS $CFLAGS"
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4474 $as_echo_n "checking for library containing strerror... " >&6; }
4475 if test "${ac_cv_search_strerror+set}" = set; then :
4476 $as_echo_n "(cached) " >&6
4478 ac_func_search_save_LIBS=$LIBS
4479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4480 /* end confdefs.h. */
4482 /* Override any GCC internal prototype to avoid an error.
4483 Use char because int might match the return type of a GCC
4484 builtin and then its argument prototype would still apply. */
4497 for ac_lib in '' cposix; do
4498 if test -z "$ac_lib"; then
4499 ac_res="none required"
4502 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4504 if ac_fn_c_try_link "$LINENO"; then :
4505 ac_cv_search_strerror=$ac_res
4507 rm -f core conftest.err conftest.$ac_objext \
4509 if test "${ac_cv_search_strerror+set}" = set; then :
4513 if test "${ac_cv_search_strerror+set}" = set; then :
4516 ac_cv_search_strerror=no
4519 LIBS=$ac_func_search_save_LIBS
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4522 $as_echo "$ac_cv_search_strerror" >&6; }
4523 ac_res=$ac_cv_search_strerror
4524 if test "$ac_res" != no; then :
4525 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4530 $as_echo_n "checking for inline... " >&6; }
4531 if test "${ac_cv_c_inline+set}" = set; then :
4532 $as_echo_n "(cached) " >&6
4535 for ac_kw in inline __inline__ __inline; do
4536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4537 /* end confdefs.h. */
4540 static $ac_kw foo_t static_foo () {return 0; }
4541 $ac_kw foo_t foo () {return 0; }
4545 if ac_fn_c_try_compile "$LINENO"; then :
4546 ac_cv_c_inline=$ac_kw
4548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4549 test "$ac_cv_c_inline" != no && break
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4554 $as_echo "$ac_cv_c_inline" >&6; }
4556 case $ac_cv_c_inline in
4559 case $ac_cv_c_inline in
4561 *) ac_val=$ac_cv_c_inline;;
4563 cat >>confdefs.h <<_ACEOF
4565 #define inline $ac_val
4571 if test $ac_cv_c_compiler_gnu = yes; then
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4573 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4574 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
4575 $as_echo_n "(cached) " >&6
4577 ac_pattern="Autoconf.*'x'"
4578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4579 /* end confdefs.h. */
4583 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4584 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4585 ac_cv_prog_gcc_traditional=yes
4587 ac_cv_prog_gcc_traditional=no
4592 if test $ac_cv_prog_gcc_traditional = no; then
4593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4594 /* end confdefs.h. */
4598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4599 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4600 ac_cv_prog_gcc_traditional=yes
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4607 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4608 if test $ac_cv_prog_gcc_traditional = yes; then
4609 CC="$CC -traditional"
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4614 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4616 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4617 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4618 $as_echo_n "(cached) " >&6
4620 cat >conftest.make <<\_ACEOF
4623 @echo '@@@%%%=$(MAKE)=@@@%%%'
4625 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4626 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
4628 eval ac_cv_prog_make_${ac_make}_set=yes;;
4630 eval ac_cv_prog_make_${ac_make}_set=no;;
4634 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4636 $as_echo "yes" >&6; }
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4640 $as_echo "no" >&6; }
4641 SET_MAKE="MAKE=${MAKE-make}"
4644 # Find a good install program. We prefer a C program (faster),
4645 # so one script is as good as another. But avoid the broken or
4646 # incompatible versions:
4647 # SysV /etc/install, /usr/sbin/install
4648 # SunOS /usr/etc/install
4649 # IRIX /sbin/install
4651 # AmigaOS /C/install, which installs bootblocks on floppy discs
4652 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4653 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4654 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4655 # OS/2's system install, which has a completely different semantic
4656 # ./install, which can be erroneously created by make from ./install.sh.
4657 # Reject install programs that cannot install multiple files.
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4659 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4660 if test -z "$INSTALL"; then
4661 if test "${ac_cv_path_install+set}" = set; then :
4662 $as_echo_n "(cached) " >&6
4664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668 test -z "$as_dir" && as_dir=.
4669 # Account for people who put trailing slashes in PATH elements.
4670 case $as_dir/ in #((
4671 ./ | .// | /[cC]/* | \
4672 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4673 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4676 # OSF1 and SCO ODT 3.0 have their own names for install.
4677 # Don't use installbsd from OSF since it installs stuff as root
4679 for ac_prog in ginstall scoinst install; do
4680 for ac_exec_ext in '' $ac_executable_extensions; do
4681 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4682 if test $ac_prog = install &&
4683 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4684 # AIX install. It has an incompatible calling convention.
4686 elif test $ac_prog = install &&
4687 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4688 # program-specific install script used by HP pwplus--don't use.
4691 rm -rf conftest.one conftest.two conftest.dir
4692 echo one > conftest.one
4693 echo two > conftest.two
4695 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4696 test -s conftest.one && test -s conftest.two &&
4697 test -s conftest.dir/conftest.one &&
4698 test -s conftest.dir/conftest.two
4700 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4713 rm -rf conftest.one conftest.two conftest.dir
4716 if test "${ac_cv_path_install+set}" = set; then
4717 INSTALL=$ac_cv_path_install
4719 # As a last resort, use the slow shell script. Don't cache a
4720 # value for INSTALL within a source directory, because that will
4721 # break other packages using the cache if that directory is
4722 # removed, or if the value is a relative name.
4723 INSTALL=$ac_install_sh
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4727 $as_echo "$INSTALL" >&6; }
4729 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4730 # It thinks the first close brace ends the variable substitution.
4731 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4733 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4735 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4737 # Extract the first word of "rm", so it can be a program name with args.
4738 set dummy rm; ac_word=$2
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4740 $as_echo_n "checking for $ac_word... " >&6; }
4741 if test "${ac_cv_path_RM+set}" = set; then :
4742 $as_echo_n "(cached) " >&6
4746 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753 test -z "$as_dir" && as_dir=.
4754 for ac_exec_ext in '' $ac_executable_extensions; do
4755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4756 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4768 if test -n "$RM"; then
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4770 $as_echo "$RM" >&6; }
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4773 $as_echo "no" >&6; }
4777 # Extract the first word of "cp", so it can be a program name with args.
4778 set dummy cp; ac_word=$2
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4780 $as_echo_n "checking for $ac_word... " >&6; }
4781 if test "${ac_cv_path_CP+set}" = set; then :
4782 $as_echo_n "(cached) " >&6
4786 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793 test -z "$as_dir" && as_dir=.
4794 for ac_exec_ext in '' $ac_executable_extensions; do
4795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4796 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4808 if test -n "$CP"; then
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
4810 $as_echo "$CP" >&6; }
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4813 $as_echo "no" >&6; }
4817 # Extract the first word of "mv", so it can be a program name with args.
4818 set dummy mv; ac_word=$2
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4820 $as_echo_n "checking for $ac_word... " >&6; }
4821 if test "${ac_cv_path_MV+set}" = set; then :
4822 $as_echo_n "(cached) " >&6
4826 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4833 test -z "$as_dir" && as_dir=.
4834 for ac_exec_ext in '' $ac_executable_extensions; do
4835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4836 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4848 if test -n "$MV"; then
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4850 $as_echo "$MV" >&6; }
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4853 $as_echo "no" >&6; }
4857 # Extract the first word of "ln", so it can be a program name with args.
4858 set dummy ln; ac_word=$2
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4860 $as_echo_n "checking for $ac_word... " >&6; }
4861 if test "${ac_cv_path_LN+set}" = set; then :
4862 $as_echo_n "(cached) " >&6
4866 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873 test -z "$as_dir" && as_dir=.
4874 for ac_exec_ext in '' $ac_executable_extensions; do
4875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4876 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4888 if test -n "$LN"; then
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
4890 $as_echo "$LN" >&6; }
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4893 $as_echo "no" >&6; }
4897 # Extract the first word of "sed", so it can be a program name with args.
4898 set dummy sed; ac_word=$2
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4900 $as_echo_n "checking for $ac_word... " >&6; }
4901 if test "${ac_cv_path_SED+set}" = set; then :
4902 $as_echo_n "(cached) " >&6
4906 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913 test -z "$as_dir" && as_dir=.
4914 for ac_exec_ext in '' $ac_executable_extensions; do
4915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4916 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4928 if test -n "$SED"; then
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4930 $as_echo "$SED" >&6; }
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4933 $as_echo "no" >&6; }
4937 # Extract the first word of "ar", so it can be a program name with args.
4938 set dummy ar; ac_word=$2
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4940 $as_echo_n "checking for $ac_word... " >&6; }
4941 if test "${ac_cv_path_AR+set}" = set; then :
4942 $as_echo_n "(cached) " >&6
4946 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4953 test -z "$as_dir" && as_dir=.
4954 for ac_exec_ext in '' $ac_executable_extensions; do
4955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4956 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4968 if test -n "$AR"; then
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4970 $as_echo "$AR" >&6; }
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4973 $as_echo "no" >&6; }
4977 # Extract the first word of "ld", so it can be a program name with args.
4978 set dummy ld; ac_word=$2
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4980 $as_echo_n "checking for $ac_word... " >&6; }
4981 if test "${ac_cv_path_LD+set}" = set; then :
4982 $as_echo_n "(cached) " >&6
4986 ac_cv_path_LD="$LD" # Let the user override the test with a path.
4989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4993 test -z "$as_dir" && as_dir=.
4994 for ac_exec_ext in '' $ac_executable_extensions; do
4995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4996 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
4997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5008 if test -n "$LD"; then
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5010 $as_echo "$LD" >&6; }
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5013 $as_echo "no" >&6; }
5017 # Extract the first word of "ranlib", so it can be a program name with args.
5018 set dummy ranlib; ac_word=$2
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5020 $as_echo_n "checking for $ac_word... " >&6; }
5021 if test "${ac_cv_path_RANLIB+set}" = set; then :
5022 $as_echo_n "(cached) " >&6
5026 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
5029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5033 test -z "$as_dir" && as_dir=.
5034 for ac_exec_ext in '' $ac_executable_extensions; do
5035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5036 ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
5037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5047 RANLIB=$ac_cv_path_RANLIB
5048 if test -n "$RANLIB"; then
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5050 $as_echo "$RANLIB" >&6; }
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5053 $as_echo "no" >&6; }
5057 # Extract the first word of "touch", so it can be a program name with args.
5058 set dummy touch; ac_word=$2
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5060 $as_echo_n "checking for $ac_word... " >&6; }
5061 if test "${ac_cv_path_TOUCH+set}" = set; then :
5062 $as_echo_n "(cached) " >&6
5066 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
5069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073 test -z "$as_dir" && as_dir=.
5074 for ac_exec_ext in '' $ac_executable_extensions; do
5075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5076 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
5077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5087 TOUCH=$ac_cv_path_TOUCH
5088 if test -n "$TOUCH"; then
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5090 $as_echo "$TOUCH" >&6; }
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5093 $as_echo "no" >&6; }
5098 for ac_prog in 'bison -y' byacc
5100 # Extract the first word of "$ac_prog", so it can be a program name with args.
5101 set dummy $ac_prog; ac_word=$2
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5103 $as_echo_n "checking for $ac_word... " >&6; }
5104 if test "${ac_cv_prog_YACC+set}" = set; then :
5105 $as_echo_n "(cached) " >&6
5107 if test -n "$YACC"; then
5108 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5114 test -z "$as_dir" && as_dir=.
5115 for ac_exec_ext in '' $ac_executable_extensions; do
5116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5117 ac_cv_prog_YACC="$ac_prog"
5118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5127 YACC=$ac_cv_prog_YACC
5128 if test -n "$YACC"; then
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5130 $as_echo "$YACC" >&6; }
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5133 $as_echo "no" >&6; }
5137 test -n "$YACC" && break
5139 test -n "$YACC" || YACC="yacc"
5142 if test "$YACC" = "yacc" -a -z "`which $YACC 2>/dev
/null
`"; then
5143 as_fn_error "could not locate a suitable parser generator; install bison, yacc, or byacc" "$LINENO" 5
5146 for ac_prog in flex lex
5148 # Extract the first word of "$ac_prog", so it can be a program name with args.
5149 set dummy $ac_prog; ac_word=$2
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5151 $as_echo_n "checking for $ac_word... " >&6; }
5152 if test "${ac_cv_prog_LEX+set}" = set; then :
5153 $as_echo_n "(cached) " >&6
5155 if test -n "$LEX"; then
5156 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162 test -z "$as_dir" && as_dir=.
5163 for ac_exec_ext in '' $ac_executable_extensions; do
5164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5165 ac_cv_prog_LEX="$ac_prog"
5166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5176 if test -n "$LEX"; then
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
5178 $as_echo "$LEX" >&6; }
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5181 $as_echo "no" >&6; }
5185 test -n "$LEX" && break
5187 test -n "$LEX" || LEX=":"
5189 if test "x$LEX" != "x:"; then
5190 cat >conftest.l <<_ACEOF
5196 e { yyless (input () != 0); }
5197 f { unput (yytext[0]); }
5198 . { BEGIN INITIAL; }
5200 #ifdef YYTEXT_POINTER
5201 extern char *yytext;
5206 return ! yylex () + ! yywrap ();
5209 { { ac_try="$LEX conftest.l"
5211 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
5212 *) ac_try_echo
=$ac_try;;
5214 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5215 $as_echo "$ac_try_echo"; } >&5
5216 (eval "$LEX conftest.l") 2>&5
5218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5219 test $ac_status = 0; }
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
5221 $as_echo_n "checking lex output file root... " >&6; }
5222 if test "${ac_cv_prog_lex_root+set}" = set; then :
5223 $as_echo_n "(cached) " >&6
5226 if test -f lex.yy.c
; then
5227 ac_cv_prog_lex_root
=lex.yy
5228 elif test -f lexyy.c
; then
5229 ac_cv_prog_lex_root
=lexyy
5231 as_fn_error
"cannot find output from $LEX; giving up" "$LINENO" 5
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
5235 $as_echo "$ac_cv_prog_lex_root" >&6; }
5236 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
5238 if test -z "${LEXLIB+set}"; then
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
5240 $as_echo_n "checking lex library... " >&6; }
5241 if test "${ac_cv_lib_lex+set}" = set; then :
5242 $as_echo_n "(cached) " >&6
5246 ac_cv_lib_lex
='none needed'
5247 for ac_lib
in '' -lfl -ll; do
5248 LIBS
="$ac_lib $ac_save_LIBS"
5249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5250 /* end confdefs.h. */
5251 `cat $LEX_OUTPUT_ROOT.c`
5253 if ac_fn_c_try_link
"$LINENO"; then :
5254 ac_cv_lib_lex
=$ac_lib
5256 rm -f core conftest.err conftest.
$ac_objext \
5257 conftest
$ac_exeext conftest.
$ac_ext
5258 test "$ac_cv_lib_lex" != 'none needed' && break
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
5264 $as_echo "$ac_cv_lib_lex" >&6; }
5265 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB
=$ac_cv_lib_lex
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
5270 $as_echo_n "checking whether yytext is a pointer... " >&6; }
5271 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
5272 $as_echo_n "(cached) " >&6
5274 # POSIX says lex can declare yytext either as a pointer or an array; the
5275 # default is implementation-dependent. Figure out which it is, since
5276 # not all implementations provide the %pointer and %array declarations.
5277 ac_cv_prog_lex_yytext_pointer
=no
5279 LIBS
="$LEXLIB $ac_save_LIBS"
5280 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5281 /* end confdefs.h. */
5282 #define YYTEXT_POINTER 1
5283 `cat $LEX_OUTPUT_ROOT.c`
5285 if ac_fn_c_try_link
"$LINENO"; then :
5286 ac_cv_prog_lex_yytext_pointer
=yes
5288 rm -f core conftest.err conftest.
$ac_objext \
5289 conftest
$ac_exeext conftest.
$ac_ext
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
5294 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
5295 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5297 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
5300 rm -f conftest.l
$LEX_OUTPUT_ROOT.c
5304 if test "$LEX" = ":"; then
5305 as_fn_error
"could not locate a suitable lexical generator, install flex or lex." "$LINENO" 5
5308 if test "$libexecdir" = '${exec_prefix}/libexec' &&
5309 test "$localstatedir" = '${prefix}/var'; then
5310 libexecdir
='${bindir}'
5311 localstatedir
='${prefix}'
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5315 $as_echo_n "checking for ANSI C header files... " >&6; }
5316 if test "${ac_cv_header_stdc+set}" = set; then :
5317 $as_echo_n "(cached) " >&6
5319 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5320 /* end confdefs.h. */
5334 if ac_fn_c_try_compile
"$LINENO"; then :
5335 ac_cv_header_stdc
=yes
5337 ac_cv_header_stdc
=no
5339 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5341 if test $ac_cv_header_stdc = yes; then
5342 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5344 /* end confdefs.h. */
5348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5349 $EGREP "memchr" >/dev
/null
2>&1; then :
5352 ac_cv_header_stdc
=no
5358 if test $ac_cv_header_stdc = yes; then
5359 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5360 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5361 /* end confdefs.h. */
5365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5366 $EGREP "free" >/dev
/null
2>&1; then :
5369 ac_cv_header_stdc
=no
5375 if test $ac_cv_header_stdc = yes; then
5376 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5377 if test "$cross_compiling" = yes; then :
5380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5381 /* end confdefs.h. */
5384 #if ((' ' & 0x0FF) == 0x020)
5385 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5386 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5388 # define ISLOWER(c) \
5389 (('a' <= (c) && (c) <= 'i') \
5390 || ('j' <= (c) && (c) <= 'r') \
5391 || ('s' <= (c) && (c) <= 'z'))
5392 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5395 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5400 for (i = 0; i < 256; i++)
5401 if (XOR (islower (i), ISLOWER (i))
5402 || toupper (i) != TOUPPER (i))
5407 if ac_fn_c_try_run
"$LINENO"; then :
5410 ac_cv_header_stdc
=no
5412 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5413 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5419 $as_echo "$ac_cv_header_stdc" >&6; }
5420 if test $ac_cv_header_stdc = yes; then
5422 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5427 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
5429 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5430 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5431 eval as_val
=\$
$as_ac_Header
5432 if test "x$as_val" = x
""yes; then :
5433 cat >>confdefs.h
<<_ACEOF
5434 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5444 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5445 if test "${ac_cv_c_const+set}" = set; then :
5446 $as_echo_n "(cached) " >&6
5448 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5449 /* end confdefs.h. */
5454 /* FIXME: Include the comments suggested by Paul. */
5456 /* Ultrix mips cc rejects this. */
5457 typedef int charset[2];
5459 /* SunOS 4.1.1 cc rejects this. */
5460 char const *const *pcpcc;
5462 /* NEC SVR4.0.2 mips cc rejects this. */
5463 struct point {int x, y;};
5464 static struct point const zero = {0,0};
5465 /* AIX XL C 1.02.0.0 rejects this.
5466 It does not let you subtract one const X* pointer from another in
5467 an arm of an if-expression whose if-part is not a constant
5469 const char *g = "string";
5470 pcpcc = &g + (g ? g-g : 0);
5471 /* HPUX 7.0 cc rejects these. */
5473 ppc = (char**) pcpcc;
5474 pcpcc = (char const *const *) ppc;
5475 { /* SCO 3.2v4 cc rejects this. */
5477 char const *s = 0 ? (char *) 0 : (char const *) 0;
5482 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5484 const int *foo = &x[0];
5487 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5488 typedef const int *iptr;
5492 { /* AIX XL C 1.02.0.0 rejects this saying
5493 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5494 struct s { int j; const int *ap[3]; };
5495 struct s *b; b->j = 5;
5497 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5501 return !cs[0] && !zero.x;
5508 if ac_fn_c_try_compile
"$LINENO"; then :
5513 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5516 $as_echo "$ac_cv_c_const" >&6; }
5517 if test $ac_cv_c_const = no
; then
5519 $as_echo "#define const /**/" >>confdefs.h
5523 if test "$ac_cv_header_machine_endian_h" = "no" ; then
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5525 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5526 if test "${ac_cv_c_bigendian+set}" = set; then :
5527 $as_echo_n "(cached) " >&6
5529 ac_cv_c_bigendian
=unknown
5530 # See if we're dealing with a universal compiler.
5531 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5532 /* end confdefs.h. */
5533 #ifndef __APPLE_CC__
5534 not a universal capable compiler
5539 if ac_fn_c_try_compile
"$LINENO"; then :
5541 # Check for potential -arch flags. It is not universal unless
5542 # there are at least two -arch flags with different values.
5545 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5546 if test -n "$ac_prev"; then
5548 i?
86 | x86_64
| ppc
| ppc64
)
5549 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5552 ac_cv_c_bigendian
=universal
5558 elif test "x$ac_word" = "x-arch"; then
5563 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5564 if test $ac_cv_c_bigendian = unknown
; then
5565 # See if sys/param.h defines the BYTE_ORDER macro.
5566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5567 /* end confdefs.h. */
5568 #include <sys/types.h>
5569 #include <sys/param.h>
5574 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5575 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5584 if ac_fn_c_try_compile
"$LINENO"; then :
5585 # It does; now see whether it defined to BIG_ENDIAN or not.
5586 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5587 /* end confdefs.h. */
5588 #include <sys/types.h>
5589 #include <sys/param.h>
5594 #if BYTE_ORDER != BIG_ENDIAN
5602 if ac_fn_c_try_compile
"$LINENO"; then :
5603 ac_cv_c_bigendian
=yes
5605 ac_cv_c_bigendian
=no
5607 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5609 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5611 if test $ac_cv_c_bigendian = unknown
; then
5612 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5613 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5614 /* end confdefs.h. */
5620 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5628 if ac_fn_c_try_compile
"$LINENO"; then :
5629 # It does; now see whether it defined to _BIG_ENDIAN or not.
5630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5631 /* end confdefs.h. */
5645 if ac_fn_c_try_compile
"$LINENO"; then :
5646 ac_cv_c_bigendian
=yes
5648 ac_cv_c_bigendian
=no
5650 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5652 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5654 if test $ac_cv_c_bigendian = unknown
; then
5655 # Compile a test program.
5656 if test "$cross_compiling" = yes; then :
5657 # Try to guess by grepping values from an object file.
5658 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5659 /* end confdefs.h. */
5660 short int ascii_mm[] =
5661 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5662 short int ascii_ii[] =
5663 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5664 int use_ascii (int i) {
5665 return ascii_mm[i] + ascii_ii[i];
5667 short int ebcdic_ii[] =
5668 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5669 short int ebcdic_mm[] =
5670 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5671 int use_ebcdic (int i) {
5672 return ebcdic_mm[i] + ebcdic_ii[i];
5679 return use_ascii (foo) == use_ebcdic (foo);
5684 if ac_fn_c_try_compile
"$LINENO"; then :
5685 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
5686 ac_cv_c_bigendian
=yes
5688 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
5689 if test "$ac_cv_c_bigendian" = unknown
; then
5690 ac_cv_c_bigendian
=no
5692 # finding both strings is unlikely to happen, but who knows?
5693 ac_cv_c_bigendian
=unknown
5697 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5700 /* end confdefs.h. */
5701 $ac_includes_default
5706 /* Are we little or big endian? From Harbison&Steele. */
5710 char c[sizeof (long int)];
5713 return u.c[sizeof (long int) - 1] == 1;
5719 if ac_fn_c_try_run
"$LINENO"; then :
5720 ac_cv_c_bigendian
=no
5722 ac_cv_c_bigendian
=yes
5724 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5725 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5731 $as_echo "$ac_cv_c_bigendian" >&6; }
5732 case $ac_cv_c_bigendian in #(
5734 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5740 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5744 as_fn_error
"unknown endianness
5745 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5749 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5750 if test "x$ac_cv_type_pid_t" = x
""yes; then :
5754 cat >>confdefs.h
<<_ACEOF
5760 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5761 if test "x$ac_cv_type_size_t" = x
""yes; then :
5765 cat >>confdefs.h
<<_ACEOF
5766 #define size_t unsigned int
5771 # The cast to long int works around a bug in the HP C Compiler
5772 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5773 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5774 # This bug is HP SR number 8606223364.
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5776 $as_echo_n "checking size of short... " >&6; }
5777 if test "${ac_cv_sizeof_short+set}" = set; then :
5778 $as_echo_n "(cached) " >&6
5780 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5783 if test "$ac_cv_type_short" = yes; then
5784 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5785 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5786 { as_fn_set_status
77
5787 as_fn_error
"cannot compute sizeof (short)
5788 See \`config.log' for more details." "$LINENO" 5; }; }
5790 ac_cv_sizeof_short
=0
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5796 $as_echo "$ac_cv_sizeof_short" >&6; }
5800 cat >>confdefs.h
<<_ACEOF
5801 #define SIZEOF_SHORT $ac_cv_sizeof_short
5805 # The cast to long int works around a bug in the HP C Compiler
5806 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5807 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5808 # This bug is HP SR number 8606223364.
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5810 $as_echo_n "checking size of int... " >&6; }
5811 if test "${ac_cv_sizeof_int+set}" = set; then :
5812 $as_echo_n "(cached) " >&6
5814 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5817 if test "$ac_cv_type_int" = yes; then
5818 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5819 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5820 { as_fn_set_status
77
5821 as_fn_error
"cannot compute sizeof (int)
5822 See \`config.log' for more details." "$LINENO" 5; }; }
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5830 $as_echo "$ac_cv_sizeof_int" >&6; }
5834 cat >>confdefs.h
<<_ACEOF
5835 #define SIZEOF_INT $ac_cv_sizeof_int
5839 # The cast to long int works around a bug in the HP C Compiler
5840 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5841 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5842 # This bug is HP SR number 8606223364.
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5844 $as_echo_n "checking size of long... " >&6; }
5845 if test "${ac_cv_sizeof_long+set}" = set; then :
5846 $as_echo_n "(cached) " >&6
5848 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5851 if test "$ac_cv_type_long" = yes; then
5852 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5853 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5854 { as_fn_set_status
77
5855 as_fn_error
"cannot compute sizeof (long)
5856 See \`config.log' for more details." "$LINENO" 5; }; }
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5864 $as_echo "$ac_cv_sizeof_long" >&6; }
5868 cat >>confdefs.h
<<_ACEOF
5869 #define SIZEOF_LONG $ac_cv_sizeof_long
5873 # The cast to long int works around a bug in the HP C Compiler
5874 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5875 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5876 # This bug is HP SR number 8606223364.
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5878 $as_echo_n "checking size of long long... " >&6; }
5879 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5880 $as_echo_n "(cached) " >&6
5882 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5885 if test "$ac_cv_type_long_long" = yes; then
5886 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5887 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5888 { as_fn_set_status
77
5889 as_fn_error
"cannot compute sizeof (long long)
5890 See \`config.log' for more details." "$LINENO" 5; }; }
5892 ac_cv_sizeof_long_long
=0
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5898 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5902 cat >>confdefs.h
<<_ACEOF
5903 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
5910 $as_echo_n "checking for library containing socket... " >&6; }
5911 if test "${ac_cv_search_socket+set}" = set; then :
5912 $as_echo_n "(cached) " >&6
5914 ac_func_search_save_LIBS
=$LIBS
5915 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5916 /* end confdefs.h. */
5918 /* Override any GCC internal prototype to avoid an error.
5919 Use char because int might match the return type of a GCC
5920 builtin and then its argument prototype would still apply. */
5933 for ac_lib
in '' socket
; do
5934 if test -z "$ac_lib"; then
5935 ac_res
="none required"
5938 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5940 if ac_fn_c_try_link
"$LINENO"; then :
5941 ac_cv_search_socket
=$ac_res
5943 rm -f core conftest.err conftest.
$ac_objext \
5945 if test "${ac_cv_search_socket+set}" = set; then :
5949 if test "${ac_cv_search_socket+set}" = set; then :
5952 ac_cv_search_socket
=no
5955 LIBS
=$ac_func_search_save_LIBS
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
5958 $as_echo "$ac_cv_search_socket" >&6; }
5959 ac_res
=$ac_cv_search_socket
5960 if test "$ac_res" != no
; then :
5961 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5964 as_fn_error
"You have no socket()! Aborting." "$LINENO" 5
5968 if test x
"$SUN" = xyes
; then
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
5970 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
5971 if test "${ac_cv_search_inet_ntoa+set}" = set; then :
5972 $as_echo_n "(cached) " >&6
5974 ac_func_search_save_LIBS
=$LIBS
5975 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5976 /* end confdefs.h. */
5978 /* Override any GCC internal prototype to avoid an error.
5979 Use char because int might match the return type of a GCC
5980 builtin and then its argument prototype would still apply. */
5988 return inet_ntoa ();
5993 for ac_lib
in '' nsl
; do
5994 if test -z "$ac_lib"; then
5995 ac_res
="none required"
5998 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6000 if ac_fn_c_try_link
"$LINENO"; then :
6001 ac_cv_search_inet_ntoa
=$ac_res
6003 rm -f core conftest.err conftest.
$ac_objext \
6005 if test "${ac_cv_search_inet_ntoa+set}" = set; then :
6009 if test "${ac_cv_search_inet_ntoa+set}" = set; then :
6012 ac_cv_search_inet_ntoa
=no
6015 LIBS
=$ac_func_search_save_LIBS
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
6018 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
6019 ac_res
=$ac_cv_search_inet_ntoa
6020 if test "$ac_res" != no
; then :
6021 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6024 as_fn_error
"libnsl not found! Aborting." "$LINENO" 5
6029 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
6030 #include <sys/socket.h>
6032 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
6036 $as_echo "#define socklen_t unsigned int" >>confdefs.h
6041 # Check whether --enable-ipv6 was given.
6042 if test "${enable_ipv6+set}" = set; then :
6043 enableval
=$enable_ipv6; ipv6
=$enableval
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
6050 $as_echo_n "checking for library containing crypt... " >&6; }
6051 if test "${ac_cv_search_crypt+set}" = set; then :
6052 $as_echo_n "(cached) " >&6
6054 ac_func_search_save_LIBS
=$LIBS
6055 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6056 /* end confdefs.h. */
6058 /* Override any GCC internal prototype to avoid an error.
6059 Use char because int might match the return type of a GCC
6060 builtin and then its argument prototype would still apply. */
6073 for ac_lib
in '' crypt descrypt
; do
6074 if test -z "$ac_lib"; then
6075 ac_res
="none required"
6078 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6080 if ac_fn_c_try_link
"$LINENO"; then :
6081 ac_cv_search_crypt
=$ac_res
6083 rm -f core conftest.err conftest.
$ac_objext \
6085 if test "${ac_cv_search_crypt+set}" = set; then :
6089 if test "${ac_cv_search_crypt+set}" = set; then :
6092 ac_cv_search_crypt
=no
6095 LIBS
=$ac_func_search_save_LIBS
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
6098 $as_echo "$ac_cv_search_crypt" >&6; }
6099 ac_res
=$ac_cv_search_crypt
6100 if test "$ac_res" != no
; then :
6101 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6106 CRYPT_LIB
=$ac_cv_search_crypt
6108 if test "$CRYPT_LIB" = "none required"; then
6110 elif test "$CRYPT_LIB" = no
; then
6116 if test "$ac_cv_header_sys_wait_h" = yes -o "$ac_cv_header_wait_h" = yes; then
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
6125 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
6126 if test "${gcc_cv_header_string+set}" = set; then :
6127 $as_echo_n "(cached) " >&6
6130 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6131 /* end confdefs.h. */
6133 #include <strings.h>
6135 if ac_fn_c_try_compile
"$LINENO"; then :
6136 gcc_cv_header_string
=yes
6138 gcc_cv_header_string
=no
6140 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
6144 $as_echo "$gcc_cv_header_string" >&6; }
6146 if test "$gcc_cv_header_string" = "yes"; then
6148 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6153 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6154 if test "${ac_cv_c_bigendian+set}" = set; then :
6155 $as_echo_n "(cached) " >&6
6157 ac_cv_c_bigendian
=unknown
6158 # See if we're dealing with a universal compiler.
6159 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6160 /* end confdefs.h. */
6161 #ifndef __APPLE_CC__
6162 not a universal capable compiler
6167 if ac_fn_c_try_compile
"$LINENO"; then :
6169 # Check for potential -arch flags. It is not universal unless
6170 # there are at least two -arch flags with different values.
6173 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6174 if test -n "$ac_prev"; then
6176 i?
86 | x86_64
| ppc
| ppc64
)
6177 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6180 ac_cv_c_bigendian
=universal
6186 elif test "x$ac_word" = "x-arch"; then
6191 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6192 if test $ac_cv_c_bigendian = unknown
; then
6193 # See if sys/param.h defines the BYTE_ORDER macro.
6194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6195 /* end confdefs.h. */
6196 #include <sys/types.h>
6197 #include <sys/param.h>
6202 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6203 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6212 if ac_fn_c_try_compile
"$LINENO"; then :
6213 # It does; now see whether it defined to BIG_ENDIAN or not.
6214 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6215 /* end confdefs.h. */
6216 #include <sys/types.h>
6217 #include <sys/param.h>
6222 #if BYTE_ORDER != BIG_ENDIAN
6230 if ac_fn_c_try_compile
"$LINENO"; then :
6231 ac_cv_c_bigendian
=yes
6233 ac_cv_c_bigendian
=no
6235 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6237 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6239 if test $ac_cv_c_bigendian = unknown
; then
6240 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6242 /* end confdefs.h. */
6248 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6256 if ac_fn_c_try_compile
"$LINENO"; then :
6257 # It does; now see whether it defined to _BIG_ENDIAN or not.
6258 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6259 /* end confdefs.h. */
6273 if ac_fn_c_try_compile
"$LINENO"; then :
6274 ac_cv_c_bigendian
=yes
6276 ac_cv_c_bigendian
=no
6278 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6280 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6282 if test $ac_cv_c_bigendian = unknown
; then
6283 # Compile a test program.
6284 if test "$cross_compiling" = yes; then :
6285 # Try to guess by grepping values from an object file.
6286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6287 /* end confdefs.h. */
6288 short int ascii_mm[] =
6289 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6290 short int ascii_ii[] =
6291 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6292 int use_ascii (int i) {
6293 return ascii_mm[i] + ascii_ii[i];
6295 short int ebcdic_ii[] =
6296 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6297 short int ebcdic_mm[] =
6298 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6299 int use_ebcdic (int i) {
6300 return ebcdic_mm[i] + ebcdic_ii[i];
6307 return use_ascii (foo) == use_ebcdic (foo);
6312 if ac_fn_c_try_compile
"$LINENO"; then :
6313 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
6314 ac_cv_c_bigendian
=yes
6316 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
6317 if test "$ac_cv_c_bigendian" = unknown
; then
6318 ac_cv_c_bigendian
=no
6320 # finding both strings is unlikely to happen, but who knows?
6321 ac_cv_c_bigendian
=unknown
6325 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6327 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6328 /* end confdefs.h. */
6329 $ac_includes_default
6334 /* Are we little or big endian? From Harbison&Steele. */
6338 char c[sizeof (long int)];
6341 return u.c[sizeof (long int) - 1] == 1;
6347 if ac_fn_c_try_run
"$LINENO"; then :
6348 ac_cv_c_bigendian
=no
6350 ac_cv_c_bigendian
=yes
6352 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6353 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6359 $as_echo "$ac_cv_c_bigendian" >&6; }
6360 case $ac_cv_c_bigendian in #(
6362 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6368 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6372 as_fn_error
"unknown endianness
6373 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6377 ac_fn_c_check_header_mongrel
"$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
6378 if test "x$ac_cv_header_stdarg_h" = x
""yes; then :
6381 as_fn_error
"** stdarg.h could not be found - charybdis will not compile without it **" "$LINENO" 5
6387 if test "$ac_cv_c_compiler_gnu" = yes; then
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strlcpy" >&5
6390 $as_echo_n "checking for strlcpy... " >&6; }
6392 CFLAGS
="$CFLAGS -Wimplicit -Werror"
6394 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6395 /* end confdefs.h. */
6401 char *a = malloc(6);
6402 strlcpy(a, "hello", 6);
6408 if ac_fn_c_try_link
"$LINENO"; then :
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6410 $as_echo "yes" >&6; }
6412 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6416 $as_echo "no" >&6; }
6419 rm -f core conftest.err conftest.
$ac_objext \
6420 conftest
$ac_exeext conftest.
$ac_ext
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strlcat" >&5
6423 $as_echo_n "checking for strlcat... " >&6; }
6424 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6425 /* end confdefs.h. */
6431 char *a = malloc(6);
6433 strlcat(a, "hello", 6);
6439 if ac_fn_c_try_link
"$LINENO"; then :
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6441 $as_echo "yes" >&6; }
6443 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6447 $as_echo "no" >&6; }
6450 rm -f core conftest.err conftest.
$ac_objext \
6451 conftest
$ac_exeext conftest.
$ac_ext
6458 for ac_func
in strlcat strlcpy
6460 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6461 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6462 eval as_val
=\$
$as_ac_var
6463 if test "x$as_val" = x
""yes; then :
6464 cat >>confdefs.h
<<_ACEOF
6465 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6474 ac_fn_c_check_type
"$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
6475 if test "x$ac_cv_type_u_int32_t" = x
""yes; then :
6479 ac_fn_c_check_type
"$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
6480 if test "x$ac_cv_type_uint32_t" = x
""yes; then :
6483 $as_echo "#define u_int32_t uint32_t" >>confdefs.h
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&5
6489 $as_echo "$as_me: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&2;}
6491 $as_echo "#define u_int32_t unsigned long int" >>confdefs.h
6500 ac_fn_c_check_type
"$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
6501 if test "x$ac_cv_type_u_int16_t" = x
""yes; then :
6505 ac_fn_c_check_type
"$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
6506 if test "x$ac_cv_type_uint16_t" = x
""yes; then :
6509 $as_echo "#define u_int16_t uint16_t" >>confdefs.h
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&5
6515 $as_echo "$as_me: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&2;}
6517 $as_echo "#define u_int16_t unsigned short int" >>confdefs.h
6526 ac_fn_c_check_type
"$LINENO" "in_port_t" "ac_cv_type_in_port_t" "#include <sys/types.h>
6527 #include <netinet/in.h>
6529 if test "x$ac_cv_type_in_port_t" = x
""yes; then :
6533 $as_echo "#define in_port_t u_int16_t" >>confdefs.h
6538 ac_fn_c_check_type
"$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#include <sys/types.h>
6539 #include <sys/socket.h>
6541 if test "x$ac_cv_type_sa_family_t" = x
""yes; then :
6545 $as_echo "#define sa_family_t u_int16_t" >>confdefs.h
6550 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6551 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6553 cat >>confdefs.h
<<_ACEOF
6554 #define HAVE_UINTPTR_T 1
6561 for ac_func
in socketpair vsnprintf mmap gettimeofday strdup strndup
6563 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6564 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6565 eval as_val
=\$
$as_ac_var
6566 if test "x$as_val" = x
""yes; then :
6567 cat >>confdefs.h
<<_ACEOF
6568 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6575 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6576 # for constant arguments. Useless!
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6578 $as_echo_n "checking for working alloca.h... " >&6; }
6579 if test "${ac_cv_working_alloca_h+set}" = set; then :
6580 $as_echo_n "(cached) " >&6
6582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6583 /* end confdefs.h. */
6588 char *p = (char *) alloca (2 * sizeof (int));
6594 if ac_fn_c_try_link
"$LINENO"; then :
6595 ac_cv_working_alloca_h
=yes
6597 ac_cv_working_alloca_h
=no
6599 rm -f core conftest.err conftest.
$ac_objext \
6600 conftest
$ac_exeext conftest.
$ac_ext
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6603 $as_echo "$ac_cv_working_alloca_h" >&6; }
6604 if test $ac_cv_working_alloca_h = yes; then
6606 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6611 $as_echo_n "checking for alloca... " >&6; }
6612 if test "${ac_cv_func_alloca_works+set}" = set; then :
6613 $as_echo_n "(cached) " >&6
6615 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6616 /* end confdefs.h. */
6618 # define alloca __builtin_alloca
6621 # include <malloc.h>
6622 # define alloca _alloca
6624 # ifdef HAVE_ALLOCA_H
6625 # include <alloca.h>
6630 # ifndef alloca /* predefined by HP cc +Olibcalls */
6641 char *p = (char *) alloca (1);
6647 if ac_fn_c_try_link
"$LINENO"; then :
6648 ac_cv_func_alloca_works
=yes
6650 ac_cv_func_alloca_works
=no
6652 rm -f core conftest.err conftest.
$ac_objext \
6653 conftest
$ac_exeext conftest.
$ac_ext
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6656 $as_echo "$ac_cv_func_alloca_works" >&6; }
6658 if test $ac_cv_func_alloca_works = yes; then
6660 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6663 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6664 # that cause trouble. Some versions do not even contain alloca or
6665 # contain a buggy version. If you still want to use their alloca,
6666 # use ar to extract alloca.o from them instead of compiling alloca.c.
6668 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
6670 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6674 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6675 if test "${ac_cv_os_cray+set}" = set; then :
6676 $as_echo_n "(cached) " >&6
6678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6679 /* end confdefs.h. */
6680 #if defined CRAY && ! defined CRAY2
6687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6688 $EGREP "webecray" >/dev
/null
2>&1; then :
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6697 $as_echo "$ac_cv_os_cray" >&6; }
6698 if test $ac_cv_os_cray = yes; then
6699 for ac_func
in _getb67 GETB67 getb67
; do
6700 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6701 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6702 eval as_val
=\$
$as_ac_var
6703 if test "x$as_val" = x
""yes; then :
6705 cat >>confdefs.h
<<_ACEOF
6706 #define CRAY_STACKSEG_END $ac_func
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6716 $as_echo_n "checking stack direction for C alloca... " >&6; }
6717 if test "${ac_cv_c_stack_direction+set}" = set; then :
6718 $as_echo_n "(cached) " >&6
6720 if test "$cross_compiling" = yes; then :
6721 ac_cv_c_stack_direction
=0
6723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6724 /* end confdefs.h. */
6725 $ac_includes_default
6727 find_stack_direction ()
6729 static char *addr = 0;
6734 return find_stack_direction ();
6737 return (&dummy > addr) ? 1 : -1;
6743 return find_stack_direction () < 0;
6746 if ac_fn_c_try_run
"$LINENO"; then :
6747 ac_cv_c_stack_direction
=1
6749 ac_cv_c_stack_direction
=-1
6751 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6752 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6757 $as_echo "$ac_cv_c_stack_direction" >&6; }
6758 cat >>confdefs.h
<<_ACEOF
6759 #define STACK_DIRECTION $ac_cv_c_stack_direction
6767 ac_fn_c_check_func
"$LINENO" "nanosleep" "ac_cv_func_nanosleep"
6768 if test "x$ac_cv_func_nanosleep" = x
""yes; then :
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
6772 $as_echo_n "checking for nanosleep in -lrt... " >&6; }
6773 if test "${ac_cv_lib_rt_nanosleep+set}" = set; then :
6774 $as_echo_n "(cached) " >&6
6776 ac_check_lib_save_LIBS
=$LIBS
6778 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6779 /* end confdefs.h. */
6781 /* Override any GCC internal prototype to avoid an error.
6782 Use char because int might match the return type of a GCC
6783 builtin and then its argument prototype would still apply. */
6791 return nanosleep ();
6796 if ac_fn_c_try_link
"$LINENO"; then :
6797 ac_cv_lib_rt_nanosleep
=yes
6799 ac_cv_lib_rt_nanosleep
=no
6801 rm -f core conftest.err conftest.
$ac_objext \
6802 conftest
$ac_exeext conftest.
$ac_ext
6803 LIBS
=$ac_check_lib_save_LIBS
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
6806 $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
6807 if test "x$ac_cv_lib_rt_nanosleep" = x
""yes; then :
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lposix4" >&5
6811 $as_echo_n "checking for nanosleep in -lposix4... " >&6; }
6812 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then :
6813 $as_echo_n "(cached) " >&6
6815 ac_check_lib_save_LIBS
=$LIBS
6816 LIBS
="-lposix4 $LIBS"
6817 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6818 /* end confdefs.h. */
6820 /* Override any GCC internal prototype to avoid an error.
6821 Use char because int might match the return type of a GCC
6822 builtin and then its argument prototype would still apply. */
6830 return nanosleep ();
6835 if ac_fn_c_try_link
"$LINENO"; then :
6836 ac_cv_lib_posix4_nanosleep
=yes
6838 ac_cv_lib_posix4_nanosleep
=no
6840 rm -f core conftest.err conftest.
$ac_objext \
6841 conftest
$ac_exeext conftest.
$ac_ext
6842 LIBS
=$ac_check_lib_save_LIBS
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_nanosleep" >&5
6845 $as_echo "$ac_cv_lib_posix4_nanosleep" >&6; }
6846 if test "x$ac_cv_lib_posix4_nanosleep" = x
""yes; then :
6847 LIBS
="${LIBS} -lposix4"
6855 if test x
$ac_cv_func_nanosleep = xno
&& test x
$ac_cv_lib_posix4_nanosleep = xno
&& test x
$ac_cv_lib_rt_nanosleep = xno
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"nanosleep not found..using select for delay\"" >&5
6858 $as_echo "\"nanosleep not found..using select for delay\"" >&6; }
6861 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
6866 $as_echo_n "checking for OpenSSL... " >&6; }
6867 # Check whether --enable-openssl was given.
6868 if test "${enable_openssl+set}" = set; then :
6869 enableval
=$enable_openssl; cf_enable_openssl
=$enableval
6871 cf_enable_openssl
="auto"
6875 if test "$cf_enable_openssl" != "no" ; then
6876 cf_openssl_basedir
=""
6877 if test "$cf_enable_openssl" != "auto" &&
6878 test "$cf_enable_openssl" != "yes" ; then
6879 cf_openssl_basedir
="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
6881 for dirs in /usr
/local
/ssl
/usr
/pkg
/usr
/local \
6882 /usr
/local
/openssl
; do
6883 if test -f "${dirs}/include/openssl/opensslv.h" ; then
6884 cf_openssl_basedir
="${dirs}"
6890 if test ! -z "$cf_openssl_basedir"; then
6891 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
6892 SSL_INCLUDES
="-I${cf_openssl_basedir}/include"
6893 SSL_LIBS
="-L${cf_openssl_basedir}/lib"
6895 cf_openssl_basedir
=""
6898 if test -f "/usr/include/openssl/opensslv.h" ; then
6899 cf_openssl_basedir
="/usr"
6903 if test ! -z "$cf_openssl_basedir"; then
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
6905 $as_echo "$cf_openssl_basedir" >&6; }
6906 cf_enable_openssl
="yes"
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Specify a correct path?" >&5
6909 $as_echo "not found. Specify a correct path?" >&6; }
6910 cf_enable_openssl
="no"
6912 unset cf_openssl_basedir
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6915 $as_echo "disabled" >&6; }
6918 save_CPPFLAGS
="$CPPFLAGS"
6919 CPPFLAGS
="$CPPFLAGS $SSL_INCLUDES"
6921 LIBS
="$LIBS $SSL_LIBS"
6922 if test "$cf_enable_openssl" != no
; then
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.6 or above" >&5
6924 $as_echo_n "checking for OpenSSL 0.9.6 or above... " >&6; }
6925 if test "$cross_compiling" = yes; then :
6926 cf_openssl_version_ok
=no
6928 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6929 /* end confdefs.h. */
6930 #include <openssl/opensslv.h>
6935 if ( OPENSSL_VERSION_NUMBER >= 0x00906000)
6936 exit(0); else exit(1);
6941 if ac_fn_c_try_run
"$LINENO"; then :
6942 cf_openssl_version_ok
=yes
6944 cf_openssl_version_ok
=no
6946 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6947 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6951 if test "$cf_openssl_version_ok" = yes; then
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
6953 $as_echo "found" >&6; }
6958 CPPFLAGS
="$CPPFLAGS $SSL_LIBS"
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
6960 $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
6961 if test "${ac_cv_lib_crypto_RSA_free+set}" = set; then :
6962 $as_echo_n "(cached) " >&6
6964 ac_check_lib_save_LIBS
=$LIBS
6965 LIBS
="-lcrypto $LIBS"
6966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6967 /* end confdefs.h. */
6969 /* Override any GCC internal prototype to avoid an error.
6970 Use char because int might match the return type of a GCC
6971 builtin and then its argument prototype would still apply. */
6984 if ac_fn_c_try_link
"$LINENO"; then :
6985 ac_cv_lib_crypto_RSA_free
=yes
6987 ac_cv_lib_crypto_RSA_free
=no
6989 rm -f core conftest.err conftest.
$ac_objext \
6990 conftest
$ac_exeext conftest.
$ac_ext
6991 LIBS
=$ac_check_lib_save_LIBS
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
6994 $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
6995 if test "x$ac_cv_lib_crypto_RSA_free" = x
""yes; then :
6996 cat >>confdefs.h
<<_ACEOF
6997 #define HAVE_LIBCRYPTO 1
7000 LIBS
="-lcrypto $LIBS"
7004 SSL_LIBS
="$SSL_LIBS -lcrypto"
7005 SSL_SRCS_ENABLE
='$(SSL_SRCS)'
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
7008 $as_echo "no - OpenSSL support disabled" >&6; }
7012 CPPFLAGS
="$save_CPPFLAGS"
7019 # Check whether --with-zlib-path was given.
7020 if test "${with_zlib_path+set}" = set; then :
7021 withval
=$with_zlib_path; LIBS
="$LIBS -L$withval"
7025 # Check whether --enable-zlib was given.
7026 if test "${enable_zlib+set}" = set; then :
7027 enableval
=$enable_zlib; zlib
=$enableval
7033 if test "$zlib" = yes; then
7035 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
7036 if test "x$ac_cv_header_zlib_h" = x
""yes; then :
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
7039 $as_echo_n "checking for zlibVersion in -lz... " >&6; }
7040 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then :
7041 $as_echo_n "(cached) " >&6
7043 ac_check_lib_save_LIBS
=$LIBS
7045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7046 /* end confdefs.h. */
7048 /* Override any GCC internal prototype to avoid an error.
7049 Use char because int might match the return type of a GCC
7050 builtin and then its argument prototype would still apply. */
7054 char zlibVersion ();
7058 return zlibVersion ();
7063 if ac_fn_c_try_link
"$LINENO"; then :
7064 ac_cv_lib_z_zlibVersion
=yes
7066 ac_cv_lib_z_zlibVersion
=no
7068 rm -f core conftest.err conftest.
$ac_objext \
7069 conftest
$ac_exeext conftest.
$ac_ext
7070 LIBS
=$ac_check_lib_save_LIBS
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
7073 $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
7074 if test "x$ac_cv_lib_z_zlibVersion" = x
""yes; then :
7079 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
7096 # Check whether --enable-ports was given.
7097 if test "${enable_ports+set}" = set; then :
7098 enableval
=$enable_ports; if test $enableval = yes; then
7099 SELECT_TYPE_EXPLICIT
="ports"
7107 # Check whether --enable-poll was given.
7108 if test "${enable_poll+set}" = set; then :
7109 enableval
=$enable_poll; if test $enableval = yes; then
7110 SELECT_TYPE_EXPLICIT
="poll"
7118 # Check whether --enable-select was given.
7119 if test "${enable_select+set}" = set; then :
7120 enableval
=$enable_select; if test $enableval = yes; then
7121 SELECT_TYPE_EXPLICIT
="select"
7129 # Check whether --enable-kqueue was given.
7130 if test "${enable_kqueue+set}" = set; then :
7131 enableval
=$enable_kqueue; if test $enableval = yes; then
7132 SELECT_TYPE_EXPLICIT
="kqueue"
7140 # Check whether --enable-epoll was given.
7141 if test "${enable_epoll+set}" = set; then :
7142 enableval
=$enable_epoll; if test $enableval = yes; then
7143 SELECT_TYPE_EXPLICIT
="epoll"
7144 for ac_func
in epoll_ctl
7146 ac_fn_c_check_func
"$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
7147 if test "x$ac_cv_func_epoll_ctl" = x
""yes; then :
7148 cat >>confdefs.h
<<_ACEOF
7149 #define HAVE_EPOLL_CTL 1
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify confdir" >&5
7166 $as_echo_n "checking whether to modify confdir... " >&6; }
7168 # Check whether --with-confdir was given.
7169 if test "${with_confdir+set}" = set; then :
7170 withval
=$with_confdir; confdir
=`echo $withval | sed 's/\/$//'`
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7172 $as_echo "yes" >&6; }
7174 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7175 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7176 ac_define_dir
=`eval echo $confdir`
7177 ac_define_dir
=`eval echo $ac_define_dir`
7178 ETC_DIR
="$ac_define_dir"
7181 cat >>confdefs.h
<<_ACEOF
7182 #define ETC_DIR "$ac_define_dir"
7189 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7190 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7191 eval echo \""$confdir"\"
7196 confdir
='${prefix}/etc'
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7198 $as_echo "no" >&6; }
7200 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7201 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7202 ac_define_dir
=`eval echo $confdir`
7203 ac_define_dir
=`eval echo $ac_define_dir`
7204 ETC_DIR
="$ac_define_dir"
7207 cat >>confdefs.h
<<_ACEOF
7208 #define ETC_DIR "$ac_define_dir"
7215 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7216 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7217 eval echo \""$confdir"\"
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify logdir" >&5
7227 $as_echo_n "checking whether to modify logdir... " >&6; }
7229 # Check whether --with-logdir was given.
7230 if test "${with_logdir+set}" = set; then :
7231 withval
=$with_logdir; logdir
=`echo $withval | sed 's/\/$//'`
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7233 $as_echo "yes" >&6; }
7235 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7236 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7237 ac_define_dir
=`eval echo $logdir`
7238 ac_define_dir
=`eval echo $ac_define_dir`
7239 LOG_DIR
="$ac_define_dir"
7242 cat >>confdefs.h
<<_ACEOF
7243 #define LOG_DIR "$ac_define_dir"
7250 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7251 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7252 eval echo \""$logdir"\"
7257 logdir
='${prefix}/logs'
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7259 $as_echo "no" >&6; }
7261 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7262 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7263 ac_define_dir
=`eval echo $logdir`
7264 ac_define_dir
=`eval echo $ac_define_dir`
7265 LOG_DIR
="$ac_define_dir"
7268 cat >>confdefs.h
<<_ACEOF
7269 #define LOG_DIR "$ac_define_dir"
7276 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7277 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7278 eval echo \""$logdir"\"
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify helpdir" >&5
7288 $as_echo_n "checking whether to modify helpdir... " >&6; }
7290 # Check whether --with-helpdir was given.
7291 if test "${with_helpdir+set}" = set; then :
7292 withval
=$with_helpdir; helpdir
=`echo $withval | sed 's/\/$//'`
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7294 $as_echo "yes" >&6; }
7296 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7297 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7298 ac_define_dir
=`eval echo $helpdir`
7299 ac_define_dir
=`eval echo $ac_define_dir`
7300 HELP_DIR
="$ac_define_dir"
7303 cat >>confdefs.h
<<_ACEOF
7304 #define HELP_DIR "$ac_define_dir"
7311 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7312 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7313 eval echo \""$helpdir"\"
7318 helpdir
='${prefix}/help'
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7320 $as_echo "no" >&6; }
7322 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7323 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7324 ac_define_dir
=`eval echo $helpdir`
7325 ac_define_dir
=`eval echo $ac_define_dir`
7326 HELP_DIR
="$ac_define_dir"
7329 cat >>confdefs.h
<<_ACEOF
7330 #define HELP_DIR "$ac_define_dir"
7337 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7338 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7339 eval echo \""$helpdir"\"
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify moduledir" >&5
7349 $as_echo_n "checking whether to modify moduledir... " >&6; }
7351 # Check whether --with-moduledir was given.
7352 if test "${with_moduledir+set}" = set; then :
7353 withval
=$with_moduledir; moduledir
=`echo $withval | sed 's/\/$//'`
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7355 $as_echo "yes" >&6; }
7357 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7358 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7359 ac_define_dir
=`eval echo $moduledir`
7360 ac_define_dir
=`eval echo $ac_define_dir`
7361 MODULE_DIR
="$ac_define_dir"
7364 cat >>confdefs.h
<<_ACEOF
7365 #define MODULE_DIR "$ac_define_dir"
7372 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7373 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7374 eval echo \""$moduledir"\"
7379 moduledir
='${prefix}/modules'
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7381 $as_echo "no" >&6; }
7383 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7384 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7385 ac_define_dir
=`eval echo $moduledir`
7386 ac_define_dir
=`eval echo $ac_define_dir`
7387 MODULE_DIR
="$ac_define_dir"
7390 cat >>confdefs.h
<<_ACEOF
7391 #define MODULE_DIR "$ac_define_dir"
7398 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7399 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7400 eval echo \""$moduledir"\"
7408 if test ! -z "$SELECT_TYPE_EXPLICIT"; then
7409 SELECT_TYPE
="$SELECT_TYPE_EXPLICIT";
7410 echo "Forcing $SELECT_TYPE to be enabled"
7413 if test ! "x$use_ports" = "xno"; then
7414 for ac_func
in port_getn
7416 ac_fn_c_check_func
"$LINENO" "port_getn" "ac_cv_func_port_getn"
7417 if test "x$ac_cv_func_port_getn" = x
""yes; then :
7418 cat >>confdefs.h
<<_ACEOF
7419 #define HAVE_PORT_GETN 1
7427 if test "x$haveports" = "xyes" ; then
7432 if test ! "x$use_select" = "xno"; then
7433 for ac_func
in select
7435 ac_fn_c_check_func
"$LINENO" "select" "ac_cv_func_select"
7436 if test "x$ac_cv_func_select" = x
""yes; then :
7437 cat >>confdefs.h
<<_ACEOF
7438 #define HAVE_SELECT 1
7446 if test "x$haveselect" = "xyes" ; then
7447 SELECT_TYPE
="select"
7451 if test ! "x$use_poll" = "xno"; then
7454 ac_fn_c_check_func
"$LINENO" "poll" "ac_cv_func_poll"
7455 if test "x$ac_cv_func_poll" = x
""yes; then :
7456 cat >>confdefs.h
<<_ACEOF
7465 if test "x$havepoll" = "xyes" ; then
7470 if test ! "x$use_kqueue" = "xno"; then
7471 for ac_func
in kevent
7473 ac_fn_c_check_func
"$LINENO" "kevent" "ac_cv_func_kevent"
7474 if test "x$ac_cv_func_kevent" = x
""yes; then :
7475 cat >>confdefs.h
<<_ACEOF
7476 #define HAVE_KEVENT 1
7484 if test "x$havekqueue" = "xyes" ; then
7485 SELECT_TYPE
="kqueue"
7489 if test ! "x$use_epoll" = "xno"; then
7490 for ac_func
in epoll_ctl
7492 ac_fn_c_check_func
"$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
7493 if test "x$ac_cv_func_epoll_ctl" = x
""yes; then :
7494 cat >>confdefs.h
<<_ACEOF
7495 #define HAVE_EPOLL_CTL 1
7503 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
7504 if test "x$haveepoll" = "xyes" ; then
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll support in kernel" >&5
7506 $as_echo_n "checking for epoll support in kernel... " >&6; }
7507 if test "$cross_compiling" = yes; then :
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7509 $as_echo "no" >&6; }
7511 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7512 /* end confdefs.h. */
7514 #include <sys/param.h>
7515 #include <sys/types.h>
7516 #include <sys/epoll.h>
7517 #include <sys/syscall.h>
7521 main(int argc, char **argv)
7525 epfd = epoll_create(256);
7526 return (epfd == -1 ? 1 : 0);
7529 if ac_fn_c_try_run
"$LINENO"; then :
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7531 $as_echo "yes" >&6; }
7533 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7538 $as_echo "no" >&6; }
7540 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7541 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7549 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
7550 if test "x$haveepoll" = "xno" ; then
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5
7552 $as_echo_n "checking for epoll system call... " >&6; }
7553 if test "$cross_compiling" = yes; then :
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7555 $as_echo "no" >&6; }
7557 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7558 /* end confdefs.h. */
7560 #include <sys/param.h>
7561 #include <sys/types.h>
7562 #include <sys/epoll.h>
7563 #include <sys/syscall.h>
7567 epoll_create(int size)
7569 return (syscall(__NR_epoll_create, size));
7573 main(int argc, char **argv)
7577 epfd = epoll_create(256);
7578 exit (epfd == -1 ? 1 : 0);
7581 if ac_fn_c_try_run
"$LINENO"; then :
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7583 $as_echo "yes" >&6; }
7585 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7590 $as_echo "no" >&6; }
7592 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7593 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7603 if test -z "$SELECT_TYPE"; then
7604 as_fn_error
"Unable to find a usable IO interface" "$LINENO" 5
7607 echo "Using $SELECT_TYPE for select loop."
7610 cat >>confdefs.h
<<_ACEOF
7611 #define SELECT_TYPE "$SELECT_TYPE"
7618 # Check whether --enable-assert was given.
7619 if test "${enable_assert+set}" = set; then :
7620 enableval
=$enable_assert; assert
=$enableval
7626 if test "$assert" = no
; then
7628 $as_echo "#define NDEBUG 1" >>confdefs.h
7630 elif test "$assert" = soft
; then
7632 $as_echo "#define SOFT_ASSERT 1" >>confdefs.h
7635 $as_echo "#define NDEBUG 1" >>confdefs.h
7637 elif test "$assert" = yes; then
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want IO Debugging hooks" >&5
7642 $as_echo_n "checking if you want IO Debugging hooks... " >&6; }
7643 # Check whether --enable-iodebug was given.
7644 if test "${enable_iodebug+set}" = set; then :
7645 enableval
=$enable_iodebug; iodebug
=$enableval
7651 if test "$iodebug" = yes; then
7653 $as_echo "#define USE_IODEBUG_HOOKS 1" >>confdefs.h
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7656 $as_echo "yes" >&6; }
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7659 $as_echo "no" >&6; }
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want to do a profile build" >&5
7664 $as_echo_n "checking if you want to do a profile build... " >&6; }
7665 # Check whether --enable-profile was given.
7666 if test "${enable_profile+set}" = set; then :
7667 enableval
=$enable_profile; profile
=$enableval
7673 if test "$profile" = yes; then
7674 if test "$ac_cv_c_compiler_gnu" = yes; then
7675 IRC_CFLAGS
="$IRC_CFLAGS -pg"
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, adding -pg" >&5
7677 $as_echo "yes, adding -pg" >&6; }
7679 $as_echo "#define CHARYBDIS_PROFILE 1" >>confdefs.h
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, profile builds only work with gcc" >&5
7683 $as_echo "no, profile builds only work with gcc" >&6; }
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7687 $as_echo "no" >&6; }
7690 # Check whether --enable-balloc was given.
7691 if test "${enable_balloc+set}" = set; then :
7692 enableval
=$enable_balloc; balloc
=$enableval
7698 if test "$balloc" = no
; then
7700 $as_echo "#define NOBALLOC 1" >>confdefs.h
7704 # Check whether --enable-small-net was given.
7705 if test "${enable_small_net+set}" = set; then :
7706 enableval
=$enable_small_net; small_net
=$enableval
7712 if test "$small_net" = yes; then
7714 $as_echo "#define NICKNAMEHISTORYLENGTH 1500" >>confdefs.h
7717 $as_echo "#define CHANNEL_HEAP_SIZE 256" >>confdefs.h
7720 $as_echo "#define BAN_HEAP_SIZE 128" >>confdefs.h
7723 $as_echo "#define CLIENT_HEAP_SIZE 256" >>confdefs.h
7726 $as_echo "#define LCLIENT_HEAP_SIZE 128" >>confdefs.h
7729 $as_echo "#define PCLIENT_HEAP_SIZE 32" >>confdefs.h
7732 $as_echo "#define USER_HEAP_SIZE 128" >>confdefs.h
7735 $as_echo "#define DNODE_HEAP_SIZE 256" >>confdefs.h
7738 $as_echo "#define TOPIC_HEAP_SIZE 256" >>confdefs.h
7741 $as_echo "#define LINEBUF_HEAP_SIZE 128" >>confdefs.h
7744 $as_echo "#define MEMBER_HEAP_SIZE 256" >>confdefs.h
7747 $as_echo "#define ND_HEAP_SIZE 128" >>confdefs.h
7750 $as_echo "#define CONFITEM_HEAP_SIZE 128" >>confdefs.h
7753 $as_echo "#define MONITOR_HEAP_SIZE 128" >>confdefs.h
7756 $as_echo "#define FD_HEAP_SIZE 128" >>confdefs.h
7759 $as_echo "#define AWAY_HEAP_SIZE 128" >>confdefs.h
7763 $as_echo "#define NICKNAMEHISTORYLENGTH 15000" >>confdefs.h
7766 $as_echo "#define CHANNEL_HEAP_SIZE 8192" >>confdefs.h
7769 $as_echo "#define BAN_HEAP_SIZE 4096" >>confdefs.h
7772 $as_echo "#define CLIENT_HEAP_SIZE 8192" >>confdefs.h
7775 $as_echo "#define LCLIENT_HEAP_SIZE 1024" >>confdefs.h
7778 $as_echo "#define PCLIENT_HEAP_SIZE 256" >>confdefs.h
7781 $as_echo "#define USER_HEAP_SIZE 8192" >>confdefs.h
7784 $as_echo "#define DNODE_HEAP_SIZE 8192" >>confdefs.h
7787 $as_echo "#define TOPIC_HEAP_SIZE 4096" >>confdefs.h
7790 $as_echo "#define LINEBUF_HEAP_SIZE 2048" >>confdefs.h
7793 $as_echo "#define MEMBER_HEAP_SIZE 32768" >>confdefs.h
7796 $as_echo "#define ND_HEAP_SIZE 512" >>confdefs.h
7799 $as_echo "#define CONFITEM_HEAP_SIZE 256" >>confdefs.h
7802 $as_echo "#define MONITOR_HEAP_SIZE 1024" >>confdefs.h
7805 $as_echo "#define FD_HEAP_SIZE 1024" >>confdefs.h
7808 $as_echo "#define AWAY_HEAP_SIZE 512" >>confdefs.h
7813 # Check whether --with-nicklen was given.
7814 if test "${with_nicklen+set}" = set; then :
7815 withval
=$with_nicklen;
7816 if ! expr "$withval" + 0 >/dev
/null
2>&1; then
7817 as_fn_error
"NICKLEN must be a numeric value" "$LINENO" 5
7819 if test $withval -ge 50; then
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&5
7822 $as_echo "$as_me: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&2;}
7833 # Check whether --with-topiclen was given.
7834 if test "${with_topiclen+set}" = set; then :
7835 withval
=$with_topiclen;
7836 if test $withval -ge 390; then
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&5
7839 $as_echo "$as_me: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&2;}
7850 cat >>confdefs.h
<<_ACEOF
7851 #define TOPICLEN ${TOPICLEN}
7855 cat >>confdefs.h
<<_ACEOF
7856 #define NICKLEN (${NICKLEN}+1)
7860 shared_modules
="yes"
7861 if test "$shared_modules" = yes; then
7862 if test "$CC" = tcc
-a "$TenDRA" = "no"; then
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&5
7864 $as_echo "$as_me: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&2;}
7869 if test "$shared_modules" = yes; then
7871 for ac_header
in dlfcn.h
7873 ac_fn_c_check_header_mongrel
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
7874 if test "x$ac_cv_header_dlfcn_h" = x
""yes; then :
7875 cat >>confdefs.h
<<_ACEOF
7876 #define HAVE_DLFCN_H 1
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5
7884 $as_echo_n "checking for library containing shl_load... " >&6; }
7885 if test "${ac_cv_search_shl_load+set}" = set; then :
7886 $as_echo_n "(cached) " >&6
7888 ac_func_search_save_LIBS
=$LIBS
7889 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7890 /* end confdefs.h. */
7892 /* Override any GCC internal prototype to avoid an error.
7893 Use char because int might match the return type of a GCC
7894 builtin and then its argument prototype would still apply. */
7907 for ac_lib
in '' dld
; do
7908 if test -z "$ac_lib"; then
7909 ac_res
="none required"
7912 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7914 if ac_fn_c_try_link
"$LINENO"; then :
7915 ac_cv_search_shl_load
=$ac_res
7917 rm -f core conftest.err conftest.
$ac_objext \
7919 if test "${ac_cv_search_shl_load+set}" = set; then :
7923 if test "${ac_cv_search_shl_load+set}" = set; then :
7926 ac_cv_search_shl_load
=no
7929 LIBS
=$ac_func_search_save_LIBS
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5
7932 $as_echo "$ac_cv_search_shl_load" >&6; }
7933 ac_res
=$ac_cv_search_shl_load
7934 if test "$ac_res" != no
; then :
7935 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7938 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
7941 MOD_TARGET
=hpux_shared
7942 SEDOBJ
="s/\.o/.sl/g"
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
7947 $as_echo_n "checking for library containing dlopen... " >&6; }
7948 if test "${ac_cv_search_dlopen+set}" = set; then :
7949 $as_echo_n "(cached) " >&6
7951 ac_func_search_save_LIBS
=$LIBS
7952 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7953 /* end confdefs.h. */
7955 /* Override any GCC internal prototype to avoid an error.
7956 Use char because int might match the return type of a GCC
7957 builtin and then its argument prototype would still apply. */
7970 for ac_lib
in '' dl c_r
; do
7971 if test -z "$ac_lib"; then
7972 ac_res
="none required"
7975 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7977 if ac_fn_c_try_link
"$LINENO"; then :
7978 ac_cv_search_dlopen
=$ac_res
7980 rm -f core conftest.err conftest.
$ac_objext \
7982 if test "${ac_cv_search_dlopen+set}" = set; then :
7986 if test "${ac_cv_search_dlopen+set}" = set; then :
7989 ac_cv_search_dlopen
=no
7992 LIBS
=$ac_func_search_save_LIBS
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
7995 $as_echo "$ac_cv_search_dlopen" >&6; }
7996 ac_res
=$ac_cv_search_dlopen
7997 if test "$ac_res" != no
; then :
7998 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8001 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
8004 MOD_TARGET
=shared_modules
8005 SEDOBJ
="s/\.o/.so/g"
8006 if test "$AppleGCC" = yes; then
8007 for ac_header
in mach
-o/dyld.h
8009 ac_fn_c_check_header_mongrel
"$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default"
8010 if test "x$ac_cv_header_mach_o_dyld_h" = x
""yes; then :
8011 cat >>confdefs.h
<<_ACEOF
8012 #define HAVE_MACH_O_DYLD_H 1
8020 ac_fn_c_check_func
"$LINENO" "dlsym" "ac_cv_func_dlsym"
8021 if test "x$ac_cv_func_dlsym" = x
""yes; then :
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dlsym is not available, shared modules disabled" >&5
8026 $as_echo "$as_me: WARNING: dlsym is not available, shared modules disabled" >&2;}
8031 for ac_func
in dlfunc
8033 ac_fn_c_check_func
"$LINENO" "dlfunc" "ac_cv_func_dlfunc"
8034 if test "x$ac_cv_func_dlfunc" = x
""yes; then :
8035 cat >>confdefs.h
<<_ACEOF
8036 #define HAVE_DLFUNC 1
8055 cat >>confdefs.h
<<_ACEOF
8056 #define SHARED_SUFFIX "$SUFFIX"
8060 if test "$shared_modules" = yes; then
8061 # The GNU linker requires the -export-dynamic option to make
8062 # all symbols visible in the dynamic symbol table.
8063 hold_ldflags
=$LDFLAGS
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -export-dynamic flag" >&5
8065 $as_echo_n "checking for the ld -export-dynamic flag... " >&6; }
8066 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic -Werror"
8067 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8068 /* end confdefs.h. */
8078 if ac_fn_c_try_link
"$LINENO"; then :
8083 rm -f core conftest.err conftest.
$ac_objext \
8084 conftest
$ac_exeext conftest.
$ac_ext
8085 LDFLAGS
=$hold_ldflags
8087 if expr "`uname -s`" : ^IRIX
>/dev
/null
2>&1; then
8088 found
="no, IRIX ld uses -B,dynamic"
8089 LDFLAGS
="${LDFLAGS} -Wl,-B,dynamic"
8092 if expr "`uname -s`" : ^AIX
>/dev
/null
2>&1; then
8093 found
="no, AIX ld uses -G -brtl"
8094 LDFLAGS
="${LDFLAGS} -Wl,-G,-brtl"
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
8098 $as_echo "$found" >&6; }
8100 if test "$found" = yes; then
8101 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic"
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option to produce PIC" >&5
8105 $as_echo_n "checking for compiler option to produce PIC... " >&6; }
8106 if test "$SGS" = "yes"; then
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SVR4 SGS interfaces: -KPIC -DPIC -G" >&5
8108 $as_echo "SVR4 SGS interfaces: -KPIC -DPIC -G" >&6; }
8109 PICFLAGS
="-KPIC -DPIC -G"
8112 if test "$AppleGCC" = "yes"; then
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&5
8114 $as_echo "Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&6; }
8115 PICFLAGS
="-fno-common -bundle -flat_namespace -undefined suppress"
8117 if test "$HPUX" = "yes" -a "$CC" != gcc
; then
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: HP-UX cc: +z -r -q -n" >&5
8119 $as_echo "HP-UX cc: +z -r -q -n" >&6; }
8120 PICFLAGS
="+z -r -q -n -c"
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if +ESfic is required on this platform" >&5
8122 $as_echo_n "checking if +ESfic is required on this platform... " >&6; }
8124 if expr "`$CC +ESfic 2>&1`" : ".*neither supported.*" >/dev
/null
; then
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8126 $as_echo "no" >&6; }
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8129 $as_echo "yes" >&6; }
8130 PICFLAGS
="$PICFLAGS +ESfic"
8133 LDFLAGS
="${LDFLAGS} -Wl,-E"
8135 if test "$Tru" = yes -a "$CC" != gcc
; then
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Tru64: -shared -expect_unresolved '*'" >&5
8137 $as_echo "Tru64: -shared -expect_unresolved '*'" >&6; }
8138 PICFLAGS
="-shared -expect_unresolved '*' "
8139 LDFLAGS
="-call_shared"
8141 if test -z "$PICFLAGS"; then
8142 if test "$ac_cv_c_compiler_gnu" = "yes"; then
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gcc: -fPIC -DPIC -shared" >&5
8144 $as_echo "gcc: -fPIC -DPIC -shared" >&6; }
8145 PICFLAGS
="-fPIC -DPIC -shared"
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8148 $as_echo "no" >&6; }
8154 # rpath, for finding libratbox.so at run time
8155 hold_ldflags
=$LDFLAGS
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -rpath flag" >&5
8157 $as_echo_n "checking for the ld -rpath flag... " >&6; }
8158 LDFLAGS
="${LDFLAGS} -Wl,-rpath=${libdir}"
8159 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8160 /* end confdefs.h. */
8170 if ac_fn_c_try_link
"$LINENO"; then :
8175 rm -f core conftest.err conftest.
$ac_objext \
8176 conftest
$ac_exeext conftest.
$ac_ext
8177 LDFLAGS
=$hold_ldflags
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
8179 $as_echo "$found" >&6; }
8180 if test "$found" = yes; then
8181 LDFLAGS
="${LDFLAGS} -Wl,-rpath=\${libdir}"
8184 # This must be down here, or it will mess up checks like the ones
8185 # for -Wl,-export-dynamic
8188 # Check whether --enable-warnings was given.
8189 if test "${enable_warnings+set}" = set; then :
8190 enableval
=$enable_warnings;
8191 IRC_CFLAGS
="$IRC_CFLAGS -O0"
8192 CFLAGS
="$IRC_CFLAGS"
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wall" >&5
8196 $as_echo_n "checking GCC flag(s) -Wall... " >&6; }
8197 if test "${GCC-no}" = yes
8199 if test "${charybdis_cv_c_gcc_w_all+set}" = set; then :
8200 $as_echo_n "(cached) " >&6
8203 oldcflags
="${CFLAGS-}"
8204 CFLAGS
="${CFLAGS-} ${CWARNS} -Wall -Werror"
8205 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8206 /* end confdefs.h. */
8216 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8222 if ac_fn_c_try_compile
"$LINENO"; then :
8223 charybdis_cv_c_gcc_w_all
=yes
8225 charybdis_cv_c_gcc_w_all
=no
8227 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8228 CFLAGS
="${oldcflags}"
8231 if test "x$charybdis_cv_c_gcc_w_all" = xyes
; then
8232 CWARNS
="${CWARNS}-Wall "
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8234 $as_echo "ok" >&6; }
8236 charybdis_cv_c_gcc_w_all
=''
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8238 $as_echo "no" >&6; }
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8242 $as_echo "no" >&6; }
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpointer-arith" >&5
8247 $as_echo_n "checking GCC flag(s) -Wpointer-arith... " >&6; }
8248 if test "${GCC-no}" = yes
8250 if test "${charybdis_cv_c_gcc_w_pointer_arith+set}" = set; then :
8251 $as_echo_n "(cached) " >&6
8254 oldcflags
="${CFLAGS-}"
8255 CFLAGS
="${CFLAGS-} ${CWARNS} -Wpointer-arith -Werror"
8256 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8257 /* end confdefs.h. */
8267 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8273 if ac_fn_c_try_compile
"$LINENO"; then :
8274 charybdis_cv_c_gcc_w_pointer_arith
=yes
8276 charybdis_cv_c_gcc_w_pointer_arith
=no
8278 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8279 CFLAGS
="${oldcflags}"
8282 if test "x$charybdis_cv_c_gcc_w_pointer_arith" = xyes
; then
8283 CWARNS
="${CWARNS}-Wpointer-arith "
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8285 $as_echo "ok" >&6; }
8287 charybdis_cv_c_gcc_w_pointer_arith
=''
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8289 $as_echo "no" >&6; }
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8293 $as_echo "no" >&6; }
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wimplicit -Wnested-externs" >&5
8298 $as_echo_n "checking GCC flag(s) -Wimplicit -Wnested-externs... " >&6; }
8299 if test "${GCC-no}" = yes
8301 if test "${charybdis_cv_c_gcc_w_implicit+set}" = set; then :
8302 $as_echo_n "(cached) " >&6
8305 oldcflags
="${CFLAGS-}"
8306 CFLAGS
="${CFLAGS-} ${CWARNS} -Wimplicit -Wnested-externs -Werror"
8307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8308 /* end confdefs.h. */
8318 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8324 if ac_fn_c_try_compile
"$LINENO"; then :
8325 charybdis_cv_c_gcc_w_implicit
=yes
8327 charybdis_cv_c_gcc_w_implicit
=no
8329 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8330 CFLAGS
="${oldcflags}"
8333 if test "x$charybdis_cv_c_gcc_w_implicit" = xyes
; then
8334 CWARNS
="${CWARNS}-Wimplicit -Wnested-externs "
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8336 $as_echo "ok" >&6; }
8338 charybdis_cv_c_gcc_w_implicit
=''
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8340 $as_echo "no" >&6; }
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8344 $as_echo "no" >&6; }
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-align" >&5
8349 $as_echo_n "checking GCC flag(s) -Wcast-align... " >&6; }
8350 if test "${GCC-no}" = yes
8352 if test "${charybdis_cv_c_gcc_w_cast_align+set}" = set; then :
8353 $as_echo_n "(cached) " >&6
8356 oldcflags
="${CFLAGS-}"
8357 CFLAGS
="${CFLAGS-} ${CWARNS} -Wcast-align -Werror"
8358 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8359 /* end confdefs.h. */
8369 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8375 if ac_fn_c_try_compile
"$LINENO"; then :
8376 charybdis_cv_c_gcc_w_cast_align
=yes
8378 charybdis_cv_c_gcc_w_cast_align
=no
8380 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8381 CFLAGS
="${oldcflags}"
8384 if test "x$charybdis_cv_c_gcc_w_cast_align" = xyes
; then
8385 CWARNS
="${CWARNS}-Wcast-align "
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8387 $as_echo "ok" >&6; }
8389 charybdis_cv_c_gcc_w_cast_align
=''
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8391 $as_echo "no" >&6; }
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8395 $as_echo "no" >&6; }
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-qual" >&5
8400 $as_echo_n "checking GCC flag(s) -Wcast-qual... " >&6; }
8401 if test "${GCC-no}" = yes
8403 if test "${charybdis_cv_c_gcc_w_cast_qual+set}" = set; then :
8404 $as_echo_n "(cached) " >&6
8407 oldcflags
="${CFLAGS-}"
8408 CFLAGS
="${CFLAGS-} ${CWARNS} -Wcast-qual -Werror"
8409 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8410 /* end confdefs.h. */
8420 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8426 if ac_fn_c_try_compile
"$LINENO"; then :
8427 charybdis_cv_c_gcc_w_cast_qual
=yes
8429 charybdis_cv_c_gcc_w_cast_qual
=no
8431 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8432 CFLAGS
="${oldcflags}"
8435 if test "x$charybdis_cv_c_gcc_w_cast_qual" = xyes
; then
8436 CWARNS
="${CWARNS}-Wcast-qual "
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8438 $as_echo "ok" >&6; }
8440 charybdis_cv_c_gcc_w_cast_qual
=''
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8442 $as_echo "no" >&6; }
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8446 $as_echo "no" >&6; }
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wwrite-strings" >&5
8451 $as_echo_n "checking GCC flag(s) -Wwrite-strings... " >&6; }
8452 if test "${GCC-no}" = yes
8454 if test "${charybdis_cv_c_gcc_w_write_strings+set}" = set; then :
8455 $as_echo_n "(cached) " >&6
8458 oldcflags
="${CFLAGS-}"
8459 CFLAGS
="${CFLAGS-} ${CWARNS} -Wwrite-strings -Werror"
8460 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8461 /* end confdefs.h. */
8471 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8477 if ac_fn_c_try_compile
"$LINENO"; then :
8478 charybdis_cv_c_gcc_w_write_strings
=yes
8480 charybdis_cv_c_gcc_w_write_strings
=no
8482 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8483 CFLAGS
="${oldcflags}"
8486 if test "x$charybdis_cv_c_gcc_w_write_strings" = xyes
; then
8487 CWARNS
="${CWARNS}-Wwrite-strings "
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8489 $as_echo "ok" >&6; }
8491 charybdis_cv_c_gcc_w_write_strings
=''
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8493 $as_echo "no" >&6; }
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8497 $as_echo "no" >&6; }
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Werror-implicit-function-declaration" >&5
8502 $as_echo_n "checking GCC flag(s) -Werror-implicit-function-declaration... " >&6; }
8503 if test "${GCC-no}" = yes
8505 if test "${charybdis_cv_c_gcc_w_error_implicit_function_declaration+set}" = set; then :
8506 $as_echo_n "(cached) " >&6
8509 oldcflags
="${CFLAGS-}"
8510 CFLAGS
="${CFLAGS-} ${CWARNS} -Werror-implicit-function-declaration -Werror"
8511 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8512 /* end confdefs.h. */
8522 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8528 if ac_fn_c_try_compile
"$LINENO"; then :
8529 charybdis_cv_c_gcc_w_error_implicit_function_declaration
=yes
8531 charybdis_cv_c_gcc_w_error_implicit_function_declaration
=no
8533 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8534 CFLAGS
="${oldcflags}"
8537 if test "x$charybdis_cv_c_gcc_w_error_implicit_function_declaration" = xyes
; then
8538 CWARNS
="${CWARNS}-Werror-implicit-function-declaration "
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8540 $as_echo "ok" >&6; }
8542 charybdis_cv_c_gcc_w_error_implicit_function_declaration
=''
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8544 $as_echo "no" >&6; }
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8548 $as_echo "no" >&6; }
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations" >&5
8553 $as_echo_n "checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations... " >&6; }
8554 if test "${GCC-no}" = yes
8556 if test "${charybdis_cv_c_gcc_prototypes+set}" = set; then :
8557 $as_echo_n "(cached) " >&6
8560 oldcflags
="${CFLAGS-}"
8561 CFLAGS
="${CFLAGS-} ${CWARNS} -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Werror"
8562 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8563 /* end confdefs.h. */
8573 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8579 if ac_fn_c_try_compile
"$LINENO"; then :
8580 charybdis_cv_c_gcc_prototypes
=yes
8582 charybdis_cv_c_gcc_prototypes
=no
8584 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8585 CFLAGS
="${oldcflags}"
8588 if test "x$charybdis_cv_c_gcc_prototypes" = xyes
; then
8589 CWARNS
="${CWARNS}-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations "
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8591 $as_echo "ok" >&6; }
8593 charybdis_cv_c_gcc_prototypes
=''
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8595 $as_echo "no" >&6; }
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8599 $as_echo "no" >&6; }
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wparenthesis" >&5
8604 $as_echo_n "checking GCC flag(s) -Wparenthesis... " >&6; }
8605 if test "${GCC-no}" = yes
8607 if test "${charybdis_cv_c_gcc_parenthesis+set}" = set; then :
8608 $as_echo_n "(cached) " >&6
8611 oldcflags
="${CFLAGS-}"
8612 CFLAGS
="${CFLAGS-} ${CWARNS} -Wparenthesis -Werror"
8613 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8614 /* end confdefs.h. */
8624 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8630 if ac_fn_c_try_compile
"$LINENO"; then :
8631 charybdis_cv_c_gcc_parenthesis
=yes
8633 charybdis_cv_c_gcc_parenthesis
=no
8635 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8636 CFLAGS
="${oldcflags}"
8639 if test "x$charybdis_cv_c_gcc_parenthesis" = xyes
; then
8640 CWARNS
="${CWARNS}-Wparenthesis "
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8642 $as_echo "ok" >&6; }
8644 charybdis_cv_c_gcc_parenthesis
=''
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8646 $as_echo "no" >&6; }
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8650 $as_echo "no" >&6; }
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -W -Wno-unused" >&5
8655 $as_echo_n "checking GCC flag(s) -W -Wno-unused... " >&6; }
8656 if test "${GCC-no}" = yes
8658 if test "${charybdis_cv_c_gcc_w+set}" = set; then :
8659 $as_echo_n "(cached) " >&6
8662 oldcflags
="${CFLAGS-}"
8663 CFLAGS
="${CFLAGS-} ${CWARNS} -W -Wno-unused -Werror"
8664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8665 /* end confdefs.h. */
8675 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8681 if ac_fn_c_try_compile
"$LINENO"; then :
8682 charybdis_cv_c_gcc_w
=yes
8684 charybdis_cv_c_gcc_w
=no
8686 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8687 CFLAGS
="${oldcflags}"
8690 if test "x$charybdis_cv_c_gcc_w" = xyes
; then
8691 CWARNS
="${CWARNS}-W -Wno-unused "
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8693 $as_echo "ok" >&6; }
8695 charybdis_cv_c_gcc_w
=''
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8697 $as_echo "no" >&6; }
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8701 $as_echo "no" >&6; }
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wextra" >&5
8706 $as_echo_n "checking GCC flag(s) -Wextra... " >&6; }
8707 if test "${GCC-no}" = yes
8709 if test "${charybdis_cv_c_gcc_w_extra+set}" = set; then :
8710 $as_echo_n "(cached) " >&6
8713 oldcflags
="${CFLAGS-}"
8714 CFLAGS
="${CFLAGS-} ${CWARNS} -Wextra -Werror"
8715 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8716 /* end confdefs.h. */
8726 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8732 if ac_fn_c_try_compile
"$LINENO"; then :
8733 charybdis_cv_c_gcc_w_extra
=yes
8735 charybdis_cv_c_gcc_w_extra
=no
8737 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8738 CFLAGS
="${oldcflags}"
8741 if test "x$charybdis_cv_c_gcc_w_extra" = xyes
; then
8742 CWARNS
="${CWARNS}-Wextra "
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8744 $as_echo "ok" >&6; }
8746 charybdis_cv_c_gcc_w_extra
=''
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8748 $as_echo "no" >&6; }
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8752 $as_echo "no" >&6; }
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wshadow" >&5
8757 $as_echo_n "checking GCC flag(s) -Wshadow... " >&6; }
8758 if test "${GCC-no}" = yes
8760 if test "${charybdis_cv_c_gcc_w_shadow+set}" = set; then :
8761 $as_echo_n "(cached) " >&6
8764 oldcflags
="${CFLAGS-}"
8765 CFLAGS
="${CFLAGS-} ${CWARNS} -Wshadow -Werror"
8766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8767 /* end confdefs.h. */
8777 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8783 if ac_fn_c_try_compile
"$LINENO"; then :
8784 charybdis_cv_c_gcc_w_shadow
=yes
8786 charybdis_cv_c_gcc_w_shadow
=no
8788 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8789 CFLAGS
="${oldcflags}"
8792 if test "x$charybdis_cv_c_gcc_w_shadow" = xyes
; then
8793 CWARNS
="${CWARNS}-Wshadow "
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8795 $as_echo "ok" >&6; }
8797 charybdis_cv_c_gcc_w_shadow
=''
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8799 $as_echo "no" >&6; }
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8803 $as_echo "no" >&6; }
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wmissing-noreturn" >&5
8808 $as_echo_n "checking GCC flag(s) -Wmissing-noreturn... " >&6; }
8809 if test "${GCC-no}" = yes
8811 if test "${charybdis_cv_c_gcc_w_missing_noreturn+set}" = set; then :
8812 $as_echo_n "(cached) " >&6
8815 oldcflags
="${CFLAGS-}"
8816 CFLAGS
="${CFLAGS-} ${CWARNS} -Wmissing-noreturn -Werror"
8817 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8818 /* end confdefs.h. */
8828 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8834 if ac_fn_c_try_compile
"$LINENO"; then :
8835 charybdis_cv_c_gcc_w_missing_noreturn
=yes
8837 charybdis_cv_c_gcc_w_missing_noreturn
=no
8839 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8840 CFLAGS
="${oldcflags}"
8843 if test "x$charybdis_cv_c_gcc_w_missing_noreturn" = xyes
; then
8844 CWARNS
="${CWARNS}-Wmissing-noreturn "
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8846 $as_echo "ok" >&6; }
8848 charybdis_cv_c_gcc_w_missing_noreturn
=''
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8850 $as_echo "no" >&6; }
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8854 $as_echo "no" >&6; }
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wundef" >&5
8859 $as_echo_n "checking GCC flag(s) -Wundef... " >&6; }
8860 if test "${GCC-no}" = yes
8862 if test "${charybdis_cv_c_gcc_w_undef+set}" = set; then :
8863 $as_echo_n "(cached) " >&6
8866 oldcflags
="${CFLAGS-}"
8867 CFLAGS
="${CFLAGS-} ${CWARNS} -Wundef -Werror"
8868 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8869 /* end confdefs.h. */
8879 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8885 if ac_fn_c_try_compile
"$LINENO"; then :
8886 charybdis_cv_c_gcc_w_undef
=yes
8888 charybdis_cv_c_gcc_w_undef
=no
8890 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8891 CFLAGS
="${oldcflags}"
8894 if test "x$charybdis_cv_c_gcc_w_undef" = xyes
; then
8895 CWARNS
="${CWARNS}-Wundef "
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8897 $as_echo "ok" >&6; }
8899 charybdis_cv_c_gcc_w_undef
=''
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8901 $as_echo "no" >&6; }
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8905 $as_echo "no" >&6; }
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpacked" >&5
8910 $as_echo_n "checking GCC flag(s) -Wpacked... " >&6; }
8911 if test "${GCC-no}" = yes
8913 if test "${charybdis_cv_c_gcc_w_packed+set}" = set; then :
8914 $as_echo_n "(cached) " >&6
8917 oldcflags
="${CFLAGS-}"
8918 CFLAGS
="${CFLAGS-} ${CWARNS} -Wpacked -Werror"
8919 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8920 /* end confdefs.h. */
8930 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8936 if ac_fn_c_try_compile
"$LINENO"; then :
8937 charybdis_cv_c_gcc_w_packed
=yes
8939 charybdis_cv_c_gcc_w_packed
=no
8941 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8942 CFLAGS
="${oldcflags}"
8945 if test "x$charybdis_cv_c_gcc_w_packed" = xyes
; then
8946 CWARNS
="${CWARNS}-Wpacked "
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8948 $as_echo "ok" >&6; }
8950 charybdis_cv_c_gcc_w_packed
=''
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8952 $as_echo "no" >&6; }
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8956 $as_echo "no" >&6; }
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wnested-externs" >&5
8961 $as_echo_n "checking GCC flag(s) -Wnested-externs... " >&6; }
8962 if test "${GCC-no}" = yes
8964 if test "${charybdis_cv_c_gcc_w_nested_externs+set}" = set; then :
8965 $as_echo_n "(cached) " >&6
8968 oldcflags
="${CFLAGS-}"
8969 CFLAGS
="${CFLAGS-} ${CWARNS} -Wnested-externs -Werror"
8970 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8971 /* end confdefs.h. */
8981 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8987 if ac_fn_c_try_compile
"$LINENO"; then :
8988 charybdis_cv_c_gcc_w_nested_externs
=yes
8990 charybdis_cv_c_gcc_w_nested_externs
=no
8992 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8993 CFLAGS
="${oldcflags}"
8996 if test "x$charybdis_cv_c_gcc_w_nested_externs" = xyes
; then
8997 CWARNS
="${CWARNS}-Wnested-externs "
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8999 $as_echo "ok" >&6; }
9001 charybdis_cv_c_gcc_w_nested_externs
=''
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9003 $as_echo "no" >&6; }
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9007 $as_echo "no" >&6; }
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable" >&5
9012 $as_echo_n "checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable... " >&6; }
9013 if test "${GCC-no}" = yes
9015 if test "${charybdis_cv_c_gcc_w_unused+set}" = set; then :
9016 $as_echo_n "(cached) " >&6
9019 oldcflags
="${CFLAGS-}"
9020 CFLAGS
="${CFLAGS-} ${CWARNS} -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Werror"
9021 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9022 /* end confdefs.h. */
9032 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9038 if ac_fn_c_try_compile
"$LINENO"; then :
9039 charybdis_cv_c_gcc_w_unused
=yes
9041 charybdis_cv_c_gcc_w_unused
=no
9043 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9044 CFLAGS
="${oldcflags}"
9047 if test "x$charybdis_cv_c_gcc_w_unused" = xyes
; then
9048 CWARNS
="${CWARNS}-Wunused-function -Wunused-label -Wunused-value -Wunused-variable "
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9050 $as_echo "ok" >&6; }
9052 charybdis_cv_c_gcc_w_unused
=''
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9054 $as_echo "no" >&6; }
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9058 $as_echo "no" >&6; }
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wredundant-decls" >&5
9063 $as_echo_n "checking GCC flag(s) -Wredundant-decls... " >&6; }
9064 if test "${GCC-no}" = yes
9066 if test "${charybdis_cv_c_gcc_w_redundant_decls+set}" = set; then :
9067 $as_echo_n "(cached) " >&6
9070 oldcflags
="${CFLAGS-}"
9071 CFLAGS
="${CFLAGS-} ${CWARNS} -Wredundant-decls -Werror"
9072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9073 /* end confdefs.h. */
9083 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9089 if ac_fn_c_try_compile
"$LINENO"; then :
9090 charybdis_cv_c_gcc_w_redundant_decls
=yes
9092 charybdis_cv_c_gcc_w_redundant_decls
=no
9094 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9095 CFLAGS
="${oldcflags}"
9098 if test "x$charybdis_cv_c_gcc_w_redundant_decls" = xyes
; then
9099 CWARNS
="${CWARNS}-Wredundant-decls "
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9101 $as_echo "ok" >&6; }
9103 charybdis_cv_c_gcc_w_redundant_decls
=''
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9105 $as_echo "no" >&6; }
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9109 $as_echo "no" >&6; }
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wfloat-equal" >&5
9114 $as_echo_n "checking GCC flag(s) -Wfloat-equal... " >&6; }
9115 if test "${GCC-no}" = yes
9117 if test "${charybdis_cv_c_gcc_w_float_equal+set}" = set; then :
9118 $as_echo_n "(cached) " >&6
9121 oldcflags
="${CFLAGS-}"
9122 CFLAGS
="${CFLAGS-} ${CWARNS} -Wfloat-equal -Werror"
9123 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9124 /* end confdefs.h. */
9134 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9140 if ac_fn_c_try_compile
"$LINENO"; then :
9141 charybdis_cv_c_gcc_w_float_equal
=yes
9143 charybdis_cv_c_gcc_w_float_equal
=no
9145 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9146 CFLAGS
="${oldcflags}"
9149 if test "x$charybdis_cv_c_gcc_w_float_equal" = xyes
; then
9150 CWARNS
="${CWARNS}-Wfloat-equal "
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9152 $as_echo "ok" >&6; }
9154 charybdis_cv_c_gcc_w_float_equal
=''
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9156 $as_echo "no" >&6; }
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9160 $as_echo "no" >&6; }
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security" >&5
9165 $as_echo_n "checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security... " >&6; }
9166 if test "${GCC-no}" = yes
9168 if test "${charybdis_cv_c_gcc_w_format+set}" = set; then :
9169 $as_echo_n "(cached) " >&6
9172 oldcflags
="${CFLAGS-}"
9173 CFLAGS
="${CFLAGS-} ${CWARNS} -Wformat -Wformat-y2k -Wno-format-security -Werror"
9174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9175 /* end confdefs.h. */
9185 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9191 if ac_fn_c_try_compile
"$LINENO"; then :
9192 charybdis_cv_c_gcc_w_format
=yes
9194 charybdis_cv_c_gcc_w_format
=no
9196 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9197 CFLAGS
="${oldcflags}"
9200 if test "x$charybdis_cv_c_gcc_w_format" = xyes
; then
9201 CWARNS
="${CWARNS}-Wformat -Wformat-y2k -Wno-format-security "
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9203 $as_echo "ok" >&6; }
9205 charybdis_cv_c_gcc_w_format
=''
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9207 $as_echo "no" >&6; }
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9211 $as_echo "no" >&6; }
9215 IRC_CFLAGS
="$CFLAGS"
9220 if test "$shared_modules" = no
; then
9222 MOD_TARGET
="libmodules.a"
9223 MODULES_LIBS
="../modules/libmodules.a"
9226 $as_echo "#define STATIC_MODULES 1" >>confdefs.h
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared module support has been disabled!" >&5
9229 $as_echo "$as_me: WARNING: shared module support has been disabled!" >&2;}
9232 if test "$shared_modules" = yes; then
9234 ac_fn_c_check_func
"$LINENO" "nlist" "ac_cv_func_nlist"
9235 if test "x$ac_cv_func_nlist" = x
""yes; then :
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -ldl" >&5
9239 $as_echo_n "checking for nlist in -ldl... " >&6; }
9240 if test "${ac_cv_lib_dl_nlist+set}" = set; then :
9241 $as_echo_n "(cached) " >&6
9243 ac_check_lib_save_LIBS
=$LIBS
9245 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9246 /* end confdefs.h. */
9248 /* Override any GCC internal prototype to avoid an error.
9249 Use char because int might match the return type of a GCC
9250 builtin and then its argument prototype would still apply. */
9263 if ac_fn_c_try_link
"$LINENO"; then :
9264 ac_cv_lib_dl_nlist
=yes
9266 ac_cv_lib_dl_nlist
=no
9268 rm -f core conftest.err conftest.
$ac_objext \
9269 conftest
$ac_exeext conftest.
$ac_ext
9270 LIBS
=$ac_check_lib_save_LIBS
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_nlist" >&5
9273 $as_echo "$ac_cv_lib_dl_nlist" >&6; }
9274 if test "x$ac_cv_lib_dl_nlist" = x
""yes; then :
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -lelf" >&5
9278 $as_echo_n "checking for nlist in -lelf... " >&6; }
9279 if test "${ac_cv_lib_elf_nlist+set}" = set; then :
9280 $as_echo_n "(cached) " >&6
9282 ac_check_lib_save_LIBS
=$LIBS
9284 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9285 /* end confdefs.h. */
9287 /* Override any GCC internal prototype to avoid an error.
9288 Use char because int might match the return type of a GCC
9289 builtin and then its argument prototype would still apply. */
9302 if ac_fn_c_try_link
"$LINENO"; then :
9303 ac_cv_lib_elf_nlist
=yes
9305 ac_cv_lib_elf_nlist
=no
9307 rm -f core conftest.err conftest.
$ac_objext \
9308 conftest
$ac_exeext conftest.
$ac_ext
9309 LIBS
=$ac_check_lib_save_LIBS
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_nlist" >&5
9312 $as_echo "$ac_cv_lib_elf_nlist" >&6; }
9313 if test "x$ac_cv_lib_elf_nlist" = x
""yes; then :
9324 ac_fn_c_check_header_mongrel
"$LINENO" "libelf/nlist.h" "ac_cv_header_libelf_nlist_h" "$ac_includes_default"
9325 if test "x$ac_cv_header_libelf_nlist_h" = x
""yes; then :
9326 nlist_h
="libelf/nlist.h"
9330 ac_fn_c_check_header_mongrel
"$LINENO" "elf/nlist.h" "ac_cv_header_elf_nlist_h" "$ac_includes_default"
9331 if test "x$ac_cv_header_elf_nlist_h" = x
""yes; then :
9332 nlist_h
="elf/nlist.h"
9336 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
9337 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
9342 if test x
"$nlist_h" = "x"; then
9344 cat >>confdefs.h
<<_ACEOF
9345 #define SYMBOL_PREFIX ""
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra underscores prepended to symbol names" >&5
9350 $as_echo_n "checking for extra underscores prepended to symbol names... " >&6; }
9351 if test "${symbol_underscores+set}" = set; then :
9352 $as_echo_n "(cached) " >&6
9355 cat << EOF > conftest.c
9359 void _modinit(void);
9360 int main(int argc, char *argv[]) {
9364 /* fill the names in this way, so it'll work almost everywhere */
9365 nl[0].n_name = "_modinit";
9366 nl[1].n_name = "__modinit";
9367 nl[2].n_name = "___modinit";
9368 nl[3].n_name = "____modinit";
9369 nl[0].n_value = nl[1].n_value = nl[2].n_value = nl[3].n_value = nl[4].n_name = NULL;
9371 if(argc < 2 || (nlist(argv[1], nl)) == -1) exit(-1);
9372 for(i = 0; i < 4; i++) {
9373 if(nl[i].n_value != NULL)
9376 for(j = 0; j < i; j++)
9383 void _modinit(void) { return; }
9385 $CC $CPPFLAGS $IRC_CFLAGS -o conftest conftest.c
$nlist_lib >/dev
/null
2>&1
9386 symbol_underscores
=`./conftest conftest`
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $symbol_underscores" >&5
9388 $as_echo "$symbol_underscores" >&6; }
9389 $RM -f conftest conftest.c
9394 cat >>confdefs.h
<<_ACEOF
9395 #define SYMBOL_PREFIX "${symbol_underscores}"
9401 IRC_CFLAGS
="$IRC_CFLAGS $CWARNS"
9416 if test "$prefix" = "NONE"; then
9418 cat >>confdefs.h
<<_ACEOF
9419 #define IRCD_PREFIX "$ac_default_prefix"
9426 prefix
=`echo $prefix | sed 's/\/$//'`
9428 cat >>confdefs.h
<<_ACEOF
9429 #define IRCD_PREFIX "$prefix"
9435 ac_config_files
="$ac_config_files Makefile bandb/Makefile ssld/Makefile extensions/Makefile unsupported/Makefile src/Makefile modules/Makefile tools/Makefile doc/Makefile help/Makefile"
9438 cat >confcache
<<\_ACEOF
9439 # This file is a shell script that caches the results of configure
9440 # tests run on this system so they can be shared between configure
9441 # scripts and configure runs, see configure's option --config-cache.
9442 # It is not useful on other systems. If it contains results you don't
9443 # want to keep, you may remove or edit it.
9445 # config.status only pays attention to the cache file if you give it
9446 # the --recheck option to rerun configure.
9448 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9449 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9454 # The following way of writing the cache mishandles newlines in values,
9455 # but we know of no workaround that is simple, portable, and efficient.
9456 # So, we kill variables containing newlines.
9457 # Ultrix sh set writes to stderr and can't be redirected directly,
9458 # and sets the high bit in the cache file unless we assign to the vars.
9460 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9461 eval ac_val
=\$
$ac_var
9465 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9466 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9469 _
| IFS
| as_nl
) ;; #(
9470 BASH_ARGV
| BASH_SOURCE
) eval $ac_var= ;; #(
9471 *) { eval $ac_var=; unset $ac_var;} ;;
9477 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9478 *${as_nl}ac_space
=\
*)
9479 # `set' does not quote correctly, so add quotes: double-quote
9480 # substitution turns \\\\ into \\, and sed turns \\ into \.
9483 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9486 # `set' quotes correctly as required by POSIX, so do not add quotes.
9487 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9496 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9498 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9500 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
9501 if test -w "$cache_file"; then
9502 test "x$cache_file" != "x/dev/null" &&
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9504 $as_echo "$as_me: updating cache $cache_file" >&6;}
9505 cat confcache
>$cache_file
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9508 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9513 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9514 # Let make expand exec_prefix.
9515 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9517 DEFS
=-DHAVE_CONFIG_H
9521 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
9522 # 1. Remove the extension, and $U if already installed.
9523 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
9524 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
9525 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9526 # will be set to the directory where LIBOBJS objects are built.
9527 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9528 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
9532 LTLIBOBJS
=$ac_ltlibobjs
9538 : ${CONFIG_STATUS=./config.status}
9540 ac_clean_files_save
=$ac_clean_files
9541 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9543 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9545 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9547 # Generated by $as_me.
9548 # Run this file to recreate the current configuration.
9549 # Compiler output produced by configure, useful for debugging
9550 # configure, is in config.log if it exists.
9556 SHELL=\${CONFIG_SHELL-$SHELL}
9559 cat >>$CONFIG_STATUS <<\_ASEOF
|| as_write_fail
=1
9560 ## -------------------- ##
9561 ## M4sh Initialization. ##
9562 ## -------------------- ##
9564 # Be more Bourne compatible
9565 DUALCASE
=1; export DUALCASE
# for MKS sh
9566 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
9569 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9570 # is contrary to our usage. Disable this feature.
9571 alias -g '${1+"$@"}'='"$@"'
9572 setopt NO_GLOB_SUBST
9574 case `(set -o) 2>/dev/null` in #(
9586 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9587 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9588 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9589 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9590 # Prefer a ksh shell builtin over an external printf program on Solaris,
9591 # but without wasting forks for bash or zsh.
9592 if test -z "$BASH_VERSION$ZSH_VERSION" \
9593 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9594 as_echo='print
-r --'
9595 as_echo_n='print
-rn --'
9596 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9597 as_echo='printf %s
\n'
9598 as_echo_n='printf %s
'
9600 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9601 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
9602 as_echo_n='/usr
/ucb
/echo -n'
9604 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9605 as_echo_n_body='eval
9609 expr "X$arg" : "X\\(.*\\)$as_nl";
9610 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9612 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9614 export as_echo_n_body
9615 as_echo_n='sh
-c $as_echo_n_body as_echo
'
9618 as_echo='sh
-c $as_echo_body as_echo
'
9621 # The user is always right.
9622 if test "${PATH_SEPARATOR+set}" != set; then
9624 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9625 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9632 # We need space, tab and new line, in precisely that order. Quoting is
9633 # there to prevent editors from complaining about space-tab.
9634 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9635 # splitting by setting IFS to empty value.)
9638 # Find who we are. Look in the path if we contain no directory separator.
9640 *[\\/]* ) as_myself=$0 ;;
9641 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9645 test -z "$as_dir" && as_dir=.
9646 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9652 # We did not find ourselves, most probably we were run as `sh COMMAND'
9653 # in which case we are not to be found in the path.
9654 if test "x$as_myself" = x
; then
9657 if test ! -f "$as_myself"; then
9658 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9662 # Unset variables that we do not need and which cause bugs (e.g. in
9663 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9664 # suppresses any "Segmentation fault" message there. '((' could
9665 # trigger a bug in pdksh 5.2.14.
9666 for as_var
in BASH_ENV ENV MAIL MAILPATH
9667 do eval test x\
${$as_var+set} = xset \
9668 && ( (unset $as_var) || exit 1) >/dev
/null
2>&1 && unset $as_var || :
9681 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
9684 # as_fn_error ERROR [LINENO LOG_FD]
9685 # ---------------------------------
9686 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9687 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9688 # script with status $?, using 1 if that was 0.
9691 as_status
=$?
; test $as_status -eq 0 && as_status
=1
9693 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
9694 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
9696 $as_echo "$as_me: error: $1" >&2
9697 as_fn_exit
$as_status
9701 # as_fn_set_status STATUS
9702 # -----------------------
9703 # Set $? to STATUS, without forking.
9707 } # as_fn_set_status
9711 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9721 # Portably unset VAR.
9724 { eval $1=; unset $1;}
9726 as_unset
=as_fn_unset
9727 # as_fn_append VAR VALUE
9728 # ----------------------
9729 # Append the text in VALUE to the end of the definition contained in VAR. Take
9730 # advantage of any shell optimizations that allow amortized linear growth over
9731 # repeated appends, instead of the typical quadratic growth present in naive
9733 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
9734 eval 'as_fn_append ()
9745 # as_fn_arith ARG...
9746 # ------------------
9747 # Perform arithmetic evaluation on the ARGs, and store the result in the
9748 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9749 # must be portable across $(()) and expr.
9750 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
9751 eval 'as_fn_arith ()
9758 as_val
=`expr "$@" || test $? -eq 1`
9763 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
9764 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
9770 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9771 as_basename
=basename
9776 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
9782 as_me
=`$as_basename -- "$0" ||
9783 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9784 X"$0" : 'X\(//\)$' \| \
9785 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9787 sed '/^.*\/\([^/][^/]*\)\/*$/{
9801 # Avoid depending upon Character Ranges.
9802 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
9803 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9804 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
9805 as_cr_digits
='0123456789'
9806 as_cr_alnum
=$as_cr_Letters$as_cr_digits
9808 ECHO_C
= ECHO_N
= ECHO_T
=
9809 case `echo -n x` in #(((((
9811 case `echo 'xy\c'` in
9812 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
9814 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
9821 rm -f conf$$ conf$$.exe conf$$.
file
9822 if test -d conf$$.dir
; then
9823 rm -f conf$$.dir
/conf$$.
file
9826 mkdir conf$$.dir
2>/dev
/null
9828 if (echo >conf$$.
file) 2>/dev
/null
; then
9829 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
9831 # ... but there are two gotchas:
9832 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9833 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9834 # In both cases, we have to default to `cp -p'.
9835 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe
||
9837 elif ln conf$$.
file conf$$
2>/dev
/null
; then
9845 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
9846 rmdir conf$$.dir
2>/dev
/null
9851 # Create "$as_dir" as a directory, including parents if necessary.
9856 -*) as_dir
=.
/$as_dir;;
9858 test -d "$as_dir" || eval $as_mkdir_p || {
9862 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9863 *) as_qdir
=$as_dir;;
9865 as_dirs
="'$as_qdir' $as_dirs"
9866 as_dir
=`$as_dirname -- "$as_dir" ||
9867 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9868 X"$as_dir" : 'X\(//\)[^/]' \| \
9869 X"$as_dir" : 'X\(//\)$' \| \
9870 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9871 $as_echo X"$as_dir" |
9872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9889 test -d "$as_dir" && break
9891 test -z "$as_dirs" || eval "mkdir $as_dirs"
9892 } || test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
9896 if mkdir -p .
2>/dev
/null
; then
9897 as_mkdir_p
='mkdir -p "$as_dir"'
9899 test -d .
/-p && rmdir .
/-p
9903 if test -x / >/dev
/null
2>&1; then
9906 if ls -dL / >/dev
/null
2>&1; then
9913 if test -d "$1"; then
9919 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
9920 ???[sx]*):;;*)false;;esac;fi
9924 as_executable_p
=$as_test_x
9926 # Sed expression to map a string onto a valid CPP name.
9927 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9929 # Sed expression to map a string onto a valid variable name.
9930 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9934 ## ----------------------------------- ##
9935 ## Main body of $CONFIG_STATUS script. ##
9936 ## ----------------------------------- ##
9938 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
9940 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
9941 # Save the log message, to keep $0 and so on meaningful, and to
9942 # report actual input values of CONFIG_FILES etc. instead of their
9943 # values after options handling.
9945 This file was extended by charybdis $as_me 3.3, which was
9946 generated by GNU Autoconf 2.64. Invocation command line was
9948 CONFIG_FILES = $CONFIG_FILES
9949 CONFIG_HEADERS = $CONFIG_HEADERS
9950 CONFIG_LINKS = $CONFIG_LINKS
9951 CONFIG_COMMANDS = $CONFIG_COMMANDS
9954 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9959 case $ac_config_files in *"
9960 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
9963 case $ac_config_headers in *"
9964 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
9968 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9969 # Files that config.status was made for.
9970 config_files="$ac_config_files"
9971 config_headers="$ac_config_headers"
9975 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
9977 \`$as_me' instantiates files and other configuration actions
9978 from templates according to the current configuration. Unless the files
9979 and actions are specified as TAGs, all are instantiated by default.
9981 Usage: $0 [OPTION]... [TAG]...
9983 -h, --help print this help, then exit
9984 -V, --version print version number and configuration settings, then exit
9985 -q, --quiet, --silent
9986 do not print progress messages
9987 -d, --debug don't remove temporary files
9988 --recheck update $as_me by reconfiguring in the same conditions
9989 --file=FILE[:TEMPLATE]
9990 instantiate the configuration file FILE
9991 --header=FILE[:TEMPLATE]
9992 instantiate the configuration header FILE
9994 Configuration files:
9997 Configuration headers:
10000 Report bugs to the package provider."
10003 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10005 charybdis config.status 3.3
10006 configured by $0, generated by GNU Autoconf 2.64,
10007 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10009 Copyright (C) 2009 Free Software Foundation, Inc.
10010 This config.status script is free software; the Free Software Foundation
10011 gives unlimited permission to copy, distribute and modify it."
10016 test -n "\$AWK" || AWK=awk
10019 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
10020 # The default lists apply if the user does not specify any file.
10026 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10027 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
10038 # Handling of the options.
10039 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10041 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10042 $as_echo "$ac_cs_version"; exit ;;
10043 --debug | --debu | --deb | --de | --d | -d )
10045 --file | --fil | --fi | --f )
10048 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10050 as_fn_append CONFIG_FILES
" '$ac_optarg'"
10051 ac_need_defaults
=false
;;
10052 --header | --heade | --head | --hea )
10055 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10057 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
10058 ac_need_defaults
=false
;;
10060 # Conflict between --help and --header
10061 as_fn_error
"ambiguous option: \`$1'
10062 Try \`$0 --help' for more information.";;
10063 --help | --hel | -h )
10064 $as_echo "$ac_cs_usage"; exit ;;
10065 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10066 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10069 # This is an error.
10070 -*) as_fn_error
"unrecognized option: \`$1'
10071 Try \`$0 --help' for more information." ;;
10073 *) as_fn_append ac_config_targets
" $1"
10074 ac_need_defaults
=false
;;
10080 ac_configure_extra_args
=
10082 if $ac_cs_silent; then
10084 ac_configure_extra_args
="$ac_configure_extra_args --silent"
10088 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10089 if \$ac_cs_recheck; then
10090 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10092 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10093 CONFIG_SHELL='$SHELL'
10094 export CONFIG_SHELL
10099 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
10103 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10104 ## Running $as_me. ##
10110 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10113 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
10115 # Handling of arguments.
10116 for ac_config_target
in $ac_config_targets
10118 case $ac_config_target in
10119 "include/setup.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/setup.h" ;;
10120 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
10121 "bandb/Makefile") CONFIG_FILES
="$CONFIG_FILES bandb/Makefile" ;;
10122 "ssld/Makefile") CONFIG_FILES
="$CONFIG_FILES ssld/Makefile" ;;
10123 "extensions/Makefile") CONFIG_FILES
="$CONFIG_FILES extensions/Makefile" ;;
10124 "unsupported/Makefile") CONFIG_FILES
="$CONFIG_FILES unsupported/Makefile" ;;
10125 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
10126 "modules/Makefile") CONFIG_FILES
="$CONFIG_FILES modules/Makefile" ;;
10127 "tools/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/Makefile" ;;
10128 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
10129 "help/Makefile") CONFIG_FILES
="$CONFIG_FILES help/Makefile" ;;
10131 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10136 # If the user did not use the arguments to specify the items to instantiate,
10137 # then the envvar interface is used. Set only those that are not.
10138 # We use the long form for the default assignment because of an extremely
10139 # bizarre bug on SunOS 4.1.3.
10140 if $ac_need_defaults; then
10141 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
10142 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
10145 # Have a temporary directory for convenience. Make it in the build tree
10146 # simply because there is no reason against having it here, and in addition,
10147 # creating and moving files from /tmp can sometimes cause problems.
10148 # Hook for its removal unless debugging.
10149 # Note that there is a small window in which the directory will not be cleaned:
10150 # after its creation but before its name has been assigned to `$tmp'.
10154 trap 'exit_status=$?
10155 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10157 trap 'as_fn_exit 1' 1 2 13 15
10159 # Create a (secure) tmp directory for tmp files.
10162 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10163 test -n "$tmp" && test -d "$tmp"
10166 tmp
=.
/conf$$
-$RANDOM
10167 (umask 077 && mkdir "$tmp")
10168 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
10170 # Set up the scripts for CONFIG_FILES section.
10171 # No need to generate them if there are no CONFIG_FILES.
10172 # This happens for instance with `./config.status config.h'.
10173 if test -n "$CONFIG_FILES"; then
10176 ac_cr
=`echo X | tr X '\015'`
10177 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10178 # But we know of no other shell where ac_cr would be empty at this
10179 # point, so we can use a bashism as a fallback.
10180 if test "x$ac_cr" = x
; then
10181 eval ac_cr
=\$
\'\\r
\'
10183 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10184 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10187 ac_cs_awk_cr
=$ac_cr
10190 echo 'BEGIN {' >"$tmp/subs1.awk" &&
10195 echo "cat >conf$$subs.awk <<_ACEOF" &&
10196 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10198 } >conf$$subs.sh ||
10199 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
10200 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
10202 for ac_last_try in false false false false false :; do
10203 . ./conf$$subs.sh ||
10204 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
10206 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
10207 if test $ac_delim_n = $ac_delim_num; then
10209 elif $ac_last_try; then
10210 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
10212 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
10215 rm -f conf$$subs.sh
10217 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10218 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
10222 s/^/S["/; s
/!.
*/"]=/
10232 s/\(.\{148\}\).*/\1/
10234 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
10239 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
10246 s/\(.\{148\}\).*/\1/
10248 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
10252 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
10257 ' <conf$$subs.awk | sed '
10262 ' >>$CONFIG_STATUS || ac_write_fail=1
10263 rm -f conf$$subs.awk
10264 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10266 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
10267 for (key in S) S_is_set[key] = 1
10273 nfields = split(line, field, "@
")
10275 len = length(field[1])
10276 for (i = 2; i < nfields; i++) {
10278 keylen = length(key)
10279 if (S_is_set[key]) {
10281 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10282 len += length(value) + length(field[++i])
10293 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10294 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10295 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
10298 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
10299 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
10302 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10303 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
10304 # trailing colons and then remove the whole line if VPATH becomes empty
10305 # (actually we leave an empty line to preserve line numbers).
10306 if test "x
$srcdir" = x.; then
10307 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10308 s/:*\$(srcdir):*/:/
10309 s/:*\${srcdir}:*/:/
10311 s/^\([^=]*=[ ]*\):*/\1/
10317 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10318 fi # test -n "$CONFIG_FILES"
10320 # Set up the scripts for CONFIG_HEADERS section.
10321 # No need to generate them if there are no CONFIG_HEADERS.
10322 # This happens for instance with `./config.status Makefile'.
10323 if test -n "$CONFIG_HEADERS"; then
10324 cat >"$tmp/defines.
awk" <<\_ACAWK ||
10328 # Transform confdefs.h into an awk script `defines.awk', embedded as
10329 # here-document in config.status, that substitutes the proper values into
10330 # config.h.in to produce config.h.
10332 # Create a delimiter string that does not exist in confdefs.h, to ease
10333 # handling of long lines.
10335 for ac_last_try in false false :; do
10336 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
10337 if test -z "$ac_t"; then
10339 elif $ac_last_try; then
10340 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
10342 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
10346 # For the awk script, D is an array of macro values keyed by name,
10347 # likewise P contains macro parameters if any. Preserve backslash
10348 # newline sequences.
10350 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10352 s/.\{148\}/&'"$ac_delim"'/g
10355 s/^[ ]*#[ ]*define[ ][ ]*/ /
10362 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
10364 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
10368 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
10369 D["\
1"]=" \
3\\\\\\n
"\\/p
10371 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
10376 s/.\{148\}/&'"$ac_delim"'/g
10381 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
10384 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
10386 ' <confdefs.h | sed '
10387 s/'"$ac_delim"'/"\\\
10388 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10390 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10391 for (key in D) D_is_set[key] = 1
10394 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10396 split(line, arg, " ")
10397 if (arg[1] == "#") {
10401 defundef
= substr
(arg
[1], 2)
10404 split(mac1
, mac2
, "(") #)
10406 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
10407 if (D_is_set
[macro
]) {
10408 # Preserve the white space surrounding the "#".
10409 print prefix
"define", macro P
[macro
] D
[macro
]
10412 # Replace #undef with comments. This is necessary, for example,
10413 # in the case of _POSIX_SOURCE, which is predefined and required
10414 # on some systems where configure will not decide to define it.
10415 if (defundef
== "undef") {
10416 print
"/*", prefix defundef
, macro
, "*/"
10424 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
10425 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
10426 fi # test -n "$CONFIG_HEADERS"
10429 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
10434 :[FHLC
]) ac_mode
=$ac_tag; continue;;
10436 case $ac_mode$ac_tag in
10438 :L
* | :C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
10439 :[FH
]-) ac_tag
=-:-;;
10440 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
10457 -) ac_f
="$tmp/stdin";;
10458 *) # Look for the file first in the build tree, then in the source tree
10459 # (if the path is not absolute). The absolute path cannot be DOS-style,
10460 # because $ac_f cannot contain `:'.
10464 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
10466 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
10468 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10469 as_fn_append ac_file_inputs
" '$ac_f'"
10472 # Let's still pretend it is `configure' which instantiates (i.e., don't
10473 # use $as_me), people would be surprised to read:
10474 # /* config.h. Generated by config.status. */
10475 configure_input
='Generated from '`
10476 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10478 if test x
"$ac_file" != x
-; then
10479 configure_input
="$ac_file. $configure_input"
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10481 $as_echo "$as_me: creating $ac_file" >&6;}
10483 # Neutralize special characters interpreted by sed in replacement strings.
10484 case $configure_input in #(
10485 *\
&* | *\
|* | *\\* )
10486 ac_sed_conf_input
=`$as_echo "$configure_input" |
10487 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10488 *) ac_sed_conf_input
=$configure_input;;
10492 *:-:* | *:-) cat >"$tmp/stdin" \
10493 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
10498 ac_dir
=`$as_dirname -- "$ac_file" ||
10499 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10500 X"$ac_file" : 'X\(//\)[^/]' \| \
10501 X"$ac_file" : 'X\(//\)$' \| \
10502 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10503 $as_echo X"$ac_file" |
10504 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10508 /^X\(\/\/\)[^/].*/{
10521 as_dir
="$ac_dir"; as_fn_mkdir_p
10525 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
10527 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10528 # A ".." for each directory in $ac_dir_suffix.
10529 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10530 case $ac_top_builddir_sub in
10531 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
10532 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
10535 ac_abs_top_builddir
=$ac_pwd
10536 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
10537 # for backward compatibility:
10538 ac_top_builddir
=$ac_top_build_prefix
10541 .
) # We are building in place.
10543 ac_top_srcdir
=$ac_top_builddir_sub
10544 ac_abs_top_srcdir
=$ac_pwd ;;
10545 [\\/]* | ?
:[\\/]* ) # Absolute name.
10546 ac_srcdir
=$srcdir$ac_dir_suffix;
10547 ac_top_srcdir
=$srcdir
10548 ac_abs_top_srcdir
=$srcdir ;;
10549 *) # Relative name.
10550 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
10551 ac_top_srcdir
=$ac_top_build_prefix$srcdir
10552 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
10554 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
10564 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
10565 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
10569 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
10570 # If the template does not know about datarootdir, expand it.
10571 # FIXME: This hack should be removed a few years after 2.60.
10572 ac_datarootdir_hack
=; ac_datarootdir_seen
=
10583 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10584 *datarootdir
*) ac_datarootdir_seen
=yes;;
10585 *@datadir@
*|*@docdir@
*|*@infodir@
*|*@localedir@
*|*@mandir@
*)
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10587 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10589 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10590 ac_datarootdir_hack='
10591 s&@datadir@&$datadir&g
10592 s&@docdir@&$docdir&g
10593 s&@infodir@&$infodir&g
10594 s&@localedir@&$localedir&g
10595 s&@mandir@&$mandir&g
10596 s&\\\${datarootdir}&$datarootdir&g' ;;
10600 # Neutralize VPATH when `$srcdir' = `.'.
10601 # Shell code in configure.ac might set extrasub.
10602 # FIXME: do we really want to maintain this feature?
10603 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10604 ac_sed_extra="$ac_vpsub
10607 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
10609 /@
[a
-zA-Z_][a
-zA-Z_0-9]*@
/!b
10610 s
|@configure_input@
|$ac_sed_conf_input|;t t
10611 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
10612 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
10613 s
&@srcdir@
&$ac_srcdir&;t t
10614 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
10615 s
&@top_srcdir@
&$ac_top_srcdir&;t t
10616 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
10617 s
&@builddir@
&$ac_builddir&;t t
10618 s
&@abs_builddir@
&$ac_abs_builddir&;t t
10619 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
10620 s
&@INSTALL@
&$ac_INSTALL&;t t
10621 $ac_datarootdir_hack
10623 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
10624 || as_fn_error "could not create
$ac_file" "$LINENO" 5
10626 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10627 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
10628 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
10630 which seems to be undefined. Please make sure it is defined." >&5
10631 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
10632 which seems to be undefined. Please make sure it is defined." >&2;}
10636 -) cat "$tmp/out" && rm -f "$tmp/out";;
10637 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
10639 || as_fn_error "could not create $ac_file" "$LINENO" 5
10645 if test x"$ac_file" != x-; then
10647 $as_echo "/* $configure_input */" \
10648 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
10649 } >"$tmp/config.h" \
10650 || as_fn_error "could not create $ac_file" "$LINENO" 5
10651 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10653 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10656 mv "$tmp/config.h" "$ac_file" \
10657 || as_fn_error "could not create $ac_file" "$LINENO" 5
10660 $as_echo "/* $configure_input */" \
10661 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
10662 || as_fn_error "could not create -" "$LINENO" 5
10674 ac_clean_files=$ac_clean_files_save
10676 test $ac_write_fail = 0 ||
10677 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
10680 # configure is writing to config.log, and then calls config.status.
10681 # config.status does its own redirection, appending to config.log.
10682 # Unfortunately, on DOS this fails, as config.log is still kept open
10683 # by configure, so config.status won't be able to
write to it
; its
10684 # output is simply discarded. So we exec the FD to /dev/null,
10685 # effectively closing config.log, so it can be properly (re)opened and
10686 # appended to by config.status. When coming back to configure, we
10687 # need to make the FD available again.
10688 if test "$no_create" != yes; then
10690 ac_config_status_args
=
10691 test "$silent" = yes &&
10692 ac_config_status_args
="$ac_config_status_args --quiet"
10694 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
10696 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10697 # would make configure fail if this is the last instruction.
10698 $ac_cs_success || as_fn_exit $?
10702 # CONFIG_SUBDIRS section.
10704 if test "$no_recursion" != yes; then
10706 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
10707 # so they do not pile up.
10708 ac_sub_configure_args
=
10710 eval "set x $ac_configure_args"
10714 if test -n "$ac_prev"; then
10719 -cache-file | --cache-file | --cache-fil | --cache-fi \
10720 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10721 ac_prev
=cache_file
;;
10722 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10723 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
10726 --config-cache | -C)
10728 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10730 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10732 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10734 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10736 --disable-option-checking)
10740 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10742 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
10746 # Always prepend --prefix to ensure using the same prefix
10747 # in subdir configurations.
10748 ac_arg
="--prefix=$prefix"
10750 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10752 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
10755 if test "$silent" = yes; then
10756 ac_sub_configure_args
="--silent $ac_sub_configure_args"
10759 # Always prepend --disable-option-checking to silence warnings, since
10760 # different subdirs can have different --enable and --with options.
10761 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
10764 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
10766 # Do not complain, so a configure script can configure whichever
10767 # parts of a large source tree are present.
10768 test -d "$srcdir/$ac_dir" || continue
10770 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
10771 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
10772 $as_echo "$ac_msg" >&6
10773 as_dir
="$ac_dir"; as_fn_mkdir_p
10777 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
10779 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10780 # A ".." for each directory in $ac_dir_suffix.
10781 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10782 case $ac_top_builddir_sub in
10783 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
10784 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
10787 ac_abs_top_builddir
=$ac_pwd
10788 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
10789 # for backward compatibility:
10790 ac_top_builddir
=$ac_top_build_prefix
10793 .
) # We are building in place.
10795 ac_top_srcdir
=$ac_top_builddir_sub
10796 ac_abs_top_srcdir
=$ac_pwd ;;
10797 [\\/]* | ?
:[\\/]* ) # Absolute name.
10798 ac_srcdir
=$srcdir$ac_dir_suffix;
10799 ac_top_srcdir
=$srcdir
10800 ac_abs_top_srcdir
=$srcdir ;;
10801 *) # Relative name.
10802 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
10803 ac_top_srcdir
=$ac_top_build_prefix$srcdir
10804 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
10806 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
10811 # Check for guested configure; otherwise get Cygnus style configure.
10812 if test -f "$ac_srcdir/configure.gnu"; then
10813 ac_sub_configure
=$ac_srcdir/configure.gnu
10814 elif test -f "$ac_srcdir/configure"; then
10815 ac_sub_configure
=$ac_srcdir/configure
10816 elif test -f "$ac_srcdir/configure.in"; then
10817 # This should be Cygnus configure.
10818 ac_sub_configure
=$ac_aux_dir/configure
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
10821 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
10825 # The recursion is here.
10826 if test -n "$ac_sub_configure"; then
10827 # Make the cache file name correct relative to the subdirectory.
10828 case $cache_file in
10829 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
10830 *) # Relative name.
10831 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
10835 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
10836 # The eval makes quoting arguments work.
10837 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
10838 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
10839 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
10845 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10847 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10851 if test "$cf_openssl_version_ok" = yes; then
10857 if test "$shared_modules" = yes; then
10865 Install directory : $prefix
10869 Socket Engine : $SELECT_TYPE
10870 Small network : $small_net
10871 Block allocator : $balloc
10873 Nickname length : $NICKLEN
10874 Topic length : $TOPICLEN
10876 Use (g)make to compile Charybdis, then (g)make install to install it.