2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for charybdis 3.4.0-dev.
5 # $Id: configure.ac 3516 2007-06-10 16:14:03Z jilles $
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE
=1; export DUALCASE
# for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print
-rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
57 as_echo_n='/usr
/ucb
/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh
-c $as_echo_n_body as_echo
'
73 as_echo='sh
-c $as_echo_body as_echo
'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x
; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var
in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\
${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev
/null
2>&1 && unset $as_var || :
137 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x
; then
140 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required
="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev
/null
; then :
183 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
186 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
188 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
191 test -z "$as_dir" && as_dir
=.
195 for as_base
in sh bash ksh sh5
; do
196 # Try only shells that exist, to save several forks.
197 as_shell
=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
200 CONFIG_SHELL
=$as_shell as_have_required
=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
211 CONFIG_SHELL
=$SHELL as_have_required
=yes
216 if test "x$CONFIG_SHELL" != x
; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
223 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
226 *v
*x
* | *x
*v
* ) as_opts
=-vx ;;
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
234 if test x
$as_have_required = xno
; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x
${ZSH_VERSION+set} = xset
; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
241 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
242 $0: including any error possibly output before this
243 $0: message. Then install a modern shell, or manually run
244 $0: the script under such a shell if you do have one."
250 SHELL
=${CONFIG_SHELL-/bin/sh}
252 # Unset more variables known to interfere with behavior of common tools.
253 CLICOLOR_FORCE
= GREP_OPTIONS
=
254 unset CLICOLOR_FORCE GREP_OPTIONS
256 ## --------------------- ##
257 ## M4sh Shell Functions. ##
258 ## --------------------- ##
261 # Portably unset VAR.
264 { eval $1=; unset $1;}
268 # as_fn_set_status STATUS
269 # -----------------------
270 # Set $? to STATUS, without forking.
278 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288 # Create "$as_dir" as a directory, including parents if necessary.
293 -*) as_dir
=.
/$as_dir;;
295 test -d "$as_dir" || eval $as_mkdir_p || {
299 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302 as_dirs
="'$as_qdir' $as_dirs"
303 as_dir
=`$as_dirname -- "$as_dir" ||
304 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
305 X"$as_dir" : 'X\(//\)[^/]' \| \
306 X"$as_dir" : 'X\(//\)$' \| \
307 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
308 $as_echo X"$as_dir" |
309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
326 test -d "$as_dir" && break
328 test -z "$as_dirs" || eval "mkdir $as_dirs"
329 } || test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
333 # as_fn_append VAR VALUE
334 # ----------------------
335 # Append the text in VALUE to the end of the definition contained in VAR. Take
336 # advantage of any shell optimizations that allow amortized linear growth over
337 # repeated appends, instead of the typical quadratic growth present in naive
339 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
340 eval 'as_fn_append ()
353 # Perform arithmetic evaluation on the ARGs, and store the result in the
354 # global $as_val. Take advantage of shells that can avoid forks. The arguments
355 # must be portable across $(()) and expr.
356 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
364 as_val
=`expr "$@" || test $? -eq 1`
369 # as_fn_error STATUS ERROR [LINENO LOG_FD]
370 # ----------------------------------------
371 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
372 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
373 # script with STATUS, using 1 if that was 0.
376 as_status
=$1; test $as_status -eq 0 && as_status
=1
378 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
379 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
381 $as_echo "$as_me: error: $2" >&2
382 as_fn_exit
$as_status
385 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
386 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
392 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
398 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
404 as_me
=`$as_basename -- "$0" ||
405 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
406 X"$0" : 'X\(//\)$' \| \
407 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409 sed '/^.*\/\([^/][^/]*\)\/*$/{
423 # Avoid depending upon Character Ranges.
424 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
425 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
426 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
427 as_cr_digits
='0123456789'
428 as_cr_alnum
=$as_cr_Letters$as_cr_digits
431 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
432 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
433 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
434 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
435 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x
"$as_me.lineno" ||
452 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
454 # Don't try to exec as it changes $[0], causing all sort of problems
455 # (the dirname of $[0] is not the place where we might find the
456 # original and so on. Autoconf is especially sensitive to this).
458 # Exit status is that of the last command.
462 ECHO_C
= ECHO_N
= ECHO_T
=
463 case `echo -n x` in #(((((
465 case `echo 'xy\c'` in
466 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
468 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
475 rm -f conf$$ conf$$.exe conf$$.
file
476 if test -d conf$$.dir
; then
477 rm -f conf$$.dir
/conf$$.
file
480 mkdir conf$$.dir
2>/dev
/null
482 if (echo >conf$$.
file) 2>/dev
/null
; then
483 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
485 # ... but there are two gotchas:
486 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
487 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
488 # In both cases, we have to default to `cp -p'.
489 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe
||
491 elif ln conf$$.
file conf$$
2>/dev
/null
; then
499 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
500 rmdir conf$$.dir
2>/dev
/null
502 if mkdir -p .
2>/dev
/null
; then
503 as_mkdir_p
='mkdir -p "$as_dir"'
505 test -d .
/-p && rmdir .
/-p
509 if test -x / >/dev
/null
2>&1; then
512 if ls -dL / >/dev
/null
2>&1; then
519 if test -d "$1"; then
525 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
526 ???[sx]*):;;*)false;;esac;fi
530 as_executable_p
=$as_test_x
532 # Sed expression to map a string onto a valid CPP name.
533 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535 # Sed expression to map a string onto a valid variable name.
536 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539 test -n "$DJDIR" || exec 7<&0 </dev
/null
543 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
544 # so uname gets run too.
545 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
550 ac_default_prefix
=/usr
/local
552 ac_config_libobj_dir
=.
559 # Identity of this package.
560 PACKAGE_NAME
='charybdis'
561 PACKAGE_TARNAME
='charybdis'
562 PACKAGE_VERSION
='3.4.0-dev'
563 PACKAGE_STRING
='charybdis 3.4.0-dev'
567 ac_default_prefix
=$HOME/ircd
568 # Factoring default headers for most tests.
569 ac_includes_default
="\
571 #ifdef HAVE_SYS_TYPES_H
572 # include <sys/types.h>
574 #ifdef HAVE_SYS_STAT_H
575 # include <sys/stat.h>
581 # ifdef HAVE_STDLIB_H
586 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
591 #ifdef HAVE_STRINGS_H
592 # include <strings.h>
594 #ifdef HAVE_INTTYPES_H
595 # include <inttypes.h>
604 enable_option_checking
=no
605 ac_subst_vars
='LTLIBOBJS
697 program_transform_name
710 enable_option_checking
738 ac_precious_vars
='build_alias
749 ac_subdirs_all
='libratbox'
751 # Initialize some variables set by options.
753 ac_init_version
=false
754 ac_unrecognized_opts
=
756 # The variables have the same names as the options, with
757 # dashes changed to underlines.
765 program_transform_name
=s
,x
,x
,
773 # Installation directory options.
774 # These are left unexpanded so users can "make install exec_prefix=/foo"
775 # and all the variables that are supposed to be based on exec_prefix
776 # by default will actually change.
777 # Use braces instead of parens because sh, perl, etc. also accept them.
778 # (The list follows the same order as the GNU Coding Standards.)
779 bindir
='${exec_prefix}/bin'
780 sbindir
='${exec_prefix}/sbin'
781 libexecdir
='${exec_prefix}/libexec'
782 datarootdir
='${prefix}/share'
783 datadir
='${datarootdir}'
784 sysconfdir
='${prefix}/etc'
785 sharedstatedir
='${prefix}/com'
786 localstatedir
='${prefix}/var'
787 includedir
='${prefix}/include'
788 oldincludedir
='/usr/include'
789 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
790 infodir
='${datarootdir}/info'
795 libdir
='${exec_prefix}/lib'
796 localedir
='${datarootdir}/locale'
797 mandir
='${datarootdir}/man'
803 # If the previous option needs an argument, assign it.
804 if test -n "$ac_prev"; then
805 eval $ac_prev=\
$ac_option
811 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
816 # Accept the important Cygnus configure options, so we can diagnose typos.
818 case $ac_dashdash$ac_option in
822 -bindir | --bindir | --bindi | --bind | --bin | --bi)
824 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
827 -build | --build | --buil | --bui | --bu)
828 ac_prev
=build_alias
;;
829 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
830 build_alias
=$ac_optarg ;;
832 -cache-file | --cache-file | --cache-fil | --cache-fi \
833 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
834 ac_prev
=cache_file
;;
835 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
836 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
837 cache_file
=$ac_optarg ;;
840 cache_file
=config.cache
;;
842 -datadir | --datadir | --datadi | --datad)
844 -datadir=* | --datadir=* | --datadi=* | --datad=*)
845 datadir
=$ac_optarg ;;
847 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
848 | --dataroo | --dataro | --datar)
849 ac_prev
=datarootdir
;;
850 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
851 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
852 datarootdir
=$ac_optarg ;;
854 -disable-* | --disable-*)
855 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
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--disable-$ac_useropt_orig"
866 ac_unrecognized_sep
=', ';;
868 eval enable_
$ac_useropt=no
;;
870 -docdir | --docdir | --docdi | --doc | --do)
872 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
875 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
877 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
880 -enable-* | --enable-*)
881 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
882 # Reject names that are not valid shell variable names.
883 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
884 as_fn_error $?
"invalid feature name: $ac_useropt"
885 ac_useropt_orig
=$ac_useropt
886 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
887 case $ac_user_opts in
891 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
892 ac_unrecognized_sep
=', ';;
894 eval enable_
$ac_useropt=\
$ac_optarg ;;
896 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
897 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
898 | --exec | --exe | --ex)
899 ac_prev
=exec_prefix
;;
900 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
901 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
902 | --exec=* | --exe=* | --ex=*)
903 exec_prefix
=$ac_optarg ;;
905 -gas | --gas | --ga | --g)
906 # Obsolete; use --with-gas.
909 -help | --help | --hel | --he | -h)
911 -help=r
* | --help=r
* | --hel=r
* | --he=r
* | -hr*)
912 ac_init_help
=recursive
;;
913 -help=s
* | --help=s
* | --hel=s
* | --he=s
* | -hs*)
914 ac_init_help
=short
;;
916 -host | --host | --hos | --ho)
917 ac_prev
=host_alias
;;
918 -host=* | --host=* | --hos=* | --ho=*)
919 host_alias
=$ac_optarg ;;
921 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
923 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
925 htmldir
=$ac_optarg ;;
927 -includedir | --includedir | --includedi | --included | --include \
928 | --includ | --inclu | --incl | --inc)
929 ac_prev
=includedir
;;
930 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
931 | --includ=* | --inclu=* | --incl=* | --inc=*)
932 includedir
=$ac_optarg ;;
934 -infodir | --infodir | --infodi | --infod | --info | --inf)
936 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
937 infodir
=$ac_optarg ;;
939 -libdir | --libdir | --libdi | --libd)
941 -libdir=* | --libdir=* | --libdi=* | --libd=*)
944 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
945 | --libexe | --libex | --libe)
946 ac_prev
=libexecdir
;;
947 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
948 | --libexe=* | --libex=* | --libe=*)
949 libexecdir
=$ac_optarg ;;
951 -localedir | --localedir | --localedi | --localed | --locale)
953 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
954 localedir
=$ac_optarg ;;
956 -localstatedir | --localstatedir | --localstatedi | --localstated \
957 | --localstate | --localstat | --localsta | --localst | --locals)
958 ac_prev
=localstatedir
;;
959 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
960 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
961 localstatedir
=$ac_optarg ;;
963 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
965 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
969 # Obsolete; use --without-fp.
972 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
973 | --no-cr | --no-c | -n)
976 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
977 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
980 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
981 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
982 | --oldin | --oldi | --old | --ol | --o)
983 ac_prev
=oldincludedir
;;
984 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
985 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
986 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
987 oldincludedir
=$ac_optarg ;;
989 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
991 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
994 -program-prefix | --program-prefix | --program-prefi | --program-pref \
995 | --program-pre | --program-pr | --program-p)
996 ac_prev
=program_prefix
;;
997 -program-prefix=* | --program-prefix=* | --program-prefi=* \
998 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
999 program_prefix
=$ac_optarg ;;
1001 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1002 | --program-suf | --program-su | --program-s)
1003 ac_prev
=program_suffix
;;
1004 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1005 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1006 program_suffix
=$ac_optarg ;;
1008 -program-transform-name | --program-transform-name \
1009 | --program-transform-nam | --program-transform-na \
1010 | --program-transform-n | --program-transform- \
1011 | --program-transform | --program-transfor \
1012 | --program-transfo | --program-transf \
1013 | --program-trans | --program-tran \
1014 | --progr-tra | --program-tr | --program-t)
1015 ac_prev
=program_transform_name
;;
1016 -program-transform-name=* | --program-transform-name=* \
1017 | --program-transform-nam=* | --program-transform-na=* \
1018 | --program-transform-n=* | --program-transform-=* \
1019 | --program-transform=* | --program-transfor=* \
1020 | --program-transfo=* | --program-transf=* \
1021 | --program-trans=* | --program-tran=* \
1022 | --progr-tra=* | --program-tr=* | --program-t=*)
1023 program_transform_name
=$ac_optarg ;;
1025 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1027 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1028 pdfdir
=$ac_optarg ;;
1030 -psdir | --psdir | --psdi | --psd | --ps)
1032 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1035 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1036 | -silent | --silent | --silen | --sile | --sil)
1039 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1041 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1043 sbindir
=$ac_optarg ;;
1045 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1046 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1047 | --sharedst | --shareds | --shared | --share | --shar \
1049 ac_prev
=sharedstatedir
;;
1050 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1051 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1052 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1054 sharedstatedir
=$ac_optarg ;;
1056 -site | --site | --sit)
1058 -site=* | --site=* | --sit=*)
1061 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1063 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1064 srcdir
=$ac_optarg ;;
1066 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1067 | --syscon | --sysco | --sysc | --sys | --sy)
1068 ac_prev
=sysconfdir
;;
1069 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1070 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1071 sysconfdir
=$ac_optarg ;;
1073 -target | --target | --targe | --targ | --tar | --ta | --t)
1074 ac_prev
=target_alias
;;
1075 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1076 target_alias
=$ac_optarg ;;
1078 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1081 -version | --version | --versio | --versi | --vers | -V)
1082 ac_init_version
=: ;;
1085 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1086 # Reject names that are not valid shell variable names.
1087 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1088 as_fn_error $?
"invalid package name: $ac_useropt"
1089 ac_useropt_orig
=$ac_useropt
1090 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1091 case $ac_user_opts in
1095 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1096 ac_unrecognized_sep
=', ';;
1098 eval with_
$ac_useropt=\
$ac_optarg ;;
1100 -without-* | --without-*)
1101 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1102 # Reject names that are not valid shell variable names.
1103 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1104 as_fn_error $?
"invalid package name: $ac_useropt"
1105 ac_useropt_orig
=$ac_useropt
1106 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1107 case $ac_user_opts in
1111 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1112 ac_unrecognized_sep
=', ';;
1114 eval with_
$ac_useropt=no
;;
1117 # Obsolete; use --with-x.
1120 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1121 | --x-incl | --x-inc | --x-in | --x-i)
1122 ac_prev
=x_includes
;;
1123 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1124 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1125 x_includes
=$ac_optarg ;;
1127 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1128 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1129 ac_prev
=x_libraries
;;
1130 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1131 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1132 x_libraries
=$ac_optarg ;;
1134 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1135 Try \`$0 --help' for more information"
1139 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1140 # Reject names that are not valid shell variable names.
1141 case $ac_envvar in #(
1142 '' | [0-9]* | *[!_$as_cr_alnum]* )
1143 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1145 eval $ac_envvar=\
$ac_optarg
1146 export $ac_envvar ;;
1149 # FIXME: should be removed in autoconf 3.0.
1150 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1151 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1152 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1153 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1159 if test -n "$ac_prev"; then
1160 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1161 as_fn_error $?
"missing argument to $ac_option"
1164 if test -n "$ac_unrecognized_opts"; then
1165 case $enable_option_checking in
1167 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1168 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1172 # Check all directory arguments for consistency.
1173 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1174 datadir sysconfdir sharedstatedir localstatedir includedir \
1175 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1176 libdir localedir mandir
1178 eval ac_val
=\$
$ac_var
1179 # Remove trailing slashes.
1182 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1183 eval $ac_var=\
$ac_val;;
1185 # Be sure to have absolute directory names.
1187 [\\/$
]* | ?
:[\\/]* ) continue;;
1188 NONE
| '' ) case $ac_var in *prefix
) continue;; esac;;
1190 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1193 # There might be people who depend on the old broken behavior: `$host'
1194 # used to hold the argument of --host etc.
1195 # FIXME: To remove some day.
1198 target
=$target_alias
1200 # FIXME: To remove some day.
1201 if test "x$host_alias" != x
; then
1202 if test "x$build_alias" = x
; then
1203 cross_compiling
=maybe
1204 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1205 If a cross compiler is detected then cross compile mode will be used" >&2
1206 elif test "x$build_alias" != "x$host_alias"; then
1212 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1214 test "$silent" = yes && exec 6>/dev
/null
1217 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1218 ac_ls_di
=`ls -di .` &&
1219 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1220 as_fn_error $?
"working directory cannot be determined"
1221 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1222 as_fn_error $?
"pwd does not report name of working directory"
1225 # Find the source files, if location was not specified.
1226 if test -z "$srcdir"; then
1227 ac_srcdir_defaulted
=yes
1228 # Try the directory containing this script, then the parent directory.
1229 ac_confdir
=`$as_dirname -- "$as_myself" ||
1230 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1231 X"$as_myself" : 'X\(//\)[^/]' \| \
1232 X"$as_myself" : 'X\(//\)$' \| \
1233 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1234 $as_echo X"$as_myself" |
1235 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1253 if test ! -r "$srcdir/$ac_unique_file"; then
1257 ac_srcdir_defaulted
=no
1259 if test ! -r "$srcdir/$ac_unique_file"; then
1260 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1261 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1263 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1265 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1267 # When building in place, set srcdir=.
1268 if test "$ac_abs_confdir" = "$ac_pwd"; then
1271 # Remove unnecessary trailing slashes from srcdir.
1272 # Double slashes in file names in object file debugging info
1273 # mess up M-x gdb in Emacs.
1275 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1277 for ac_var
in $ac_precious_vars; do
1278 eval ac_env_
${ac_var}_set
=\
${${ac_var}+set}
1279 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1280 eval ac_cv_env_
${ac_var}_set
=\
${${ac_var}+set}
1281 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1285 # Report the --help message.
1287 if test "$ac_init_help" = "long"; then
1288 # Omit some internal or obsolete options to make the list less imposing.
1289 # This message is too long to be a string in the A/UX 3.1 sh.
1291 \`configure' configures charybdis 3.4.0-dev to adapt to many kinds of systems.
1293 Usage: $0 [OPTION]... [VAR=VALUE]...
1295 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1296 VAR=VALUE. See below for descriptions of some of the useful variables.
1298 Defaults for the options are specified in brackets.
1301 -h, --help display this help and exit
1302 --help=short display options specific to this package
1303 --help=recursive display the short help of all the included packages
1304 -V, --version display version information and exit
1305 -q, --quiet, --silent do not print \`checking ...' messages
1306 --cache-file=FILE cache test results in FILE [disabled]
1307 -C, --config-cache alias for \`--cache-file=config.cache'
1308 -n, --no-create do not create output files
1309 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1311 Installation directories:
1312 --prefix=PREFIX install architecture-independent files in PREFIX
1313 [$ac_default_prefix]
1314 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1317 By default, \`make install' will install all the files in
1318 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1319 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1320 for instance \`--prefix=\$HOME'.
1322 For better control, use the options below.
1324 Fine tuning of the installation directories:
1325 --bindir=DIR user executables [EPREFIX/bin]
1326 --sbindir=DIR system admin executables [EPREFIX/sbin]
1327 --libexecdir=DIR program executables [EPREFIX/libexec]
1328 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1329 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1330 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1331 --libdir=DIR object code libraries [EPREFIX/lib]
1332 --includedir=DIR C header files [PREFIX/include]
1333 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1334 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1335 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1336 --infodir=DIR info documentation [DATAROOTDIR/info]
1337 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1338 --mandir=DIR man documentation [DATAROOTDIR/man]
1339 --docdir=DIR documentation root [DATAROOTDIR/doc/charybdis]
1340 --htmldir=DIR html documentation [DOCDIR]
1341 --dvidir=DIR dvi documentation [DOCDIR]
1342 --pdfdir=DIR pdf documentation [DOCDIR]
1343 --psdir=DIR ps documentation [DOCDIR]
1350 if test -n "$ac_init_help"; then
1351 case $ac_init_help in
1352 short
| recursive
) echo "Configuration of charybdis 3.4.0-dev:";;
1357 --disable-option-checking ignore unrecognized
--enable/--with options
1358 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1359 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1360 --enable-fhs-paths User
more FHS
-like pathnames
(for packagers
).
1361 --enable-ipv6 Enable IPv6 support
1362 --enable-openssl=DIR Enable OpenSSL support
(DIR optional
).
1363 --disable-openssl Disable OpenSSL support.
1364 --disable-zlib Disable ziplinks support
1365 --enable-ports Force solaris I
/O ports subsystem usage.
1366 --enable-poll Force poll
() usage.
1367 --enable-select Force
select() usage.
1368 --enable-kqueue Force kqueue
() usage.
1369 --enable-epoll Force sys_epoll usage
(Linux only
).
1370 --enable-assert Enable assert
(). Choose between soft
(warnings
) and
1371 hard
(aborts the daemon
)
1372 --enable-iodebug Enable IO Debugging hooks
1373 --enable-profile Enable profiling
1374 --disable-balloc Disable the block allocator.
1375 --enable-small-net Enable small network support.
1376 --enable-warnings Enable all sorts of warnings
for debugging.
1379 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1380 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1381 --with-zlib-path=DIR Path to libz.so
for ziplinks support.
1382 --with-confdir=DIR Directory to
install config files.
1383 --with-logdir=DIR Directory where to
write logfiles.
1384 --with-helpdir=DIR Directory to
install help files.
1385 --with-moduledir=DIR Directory to
install modules.
1386 --with-rundir=DIR Directory
in which to store pidfile.
1387 --with-program-prefix= If
set, programs installed into PATH will be
1388 installed with names prefixed by this prefix.
1389 --with-custom-branding=NAME
1390 Custom branding name.
1391 --with-custom-version=NAME
1392 Custom version branding.
1393 --with-nicklen=LENGTH Set the upper
-bound nick length to LENGTH
(default
1395 --with-topiclen=NUMBER Set the max topic length to NUMBER
(default
390, max
1398 Some influential environment variables
:
1399 CC C compiler
command
1400 CFLAGS C compiler flags
1401 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1402 nonstandard directory
<lib dir
>
1403 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1404 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1405 you have headers
in a nonstandard directory
<include dir
>
1407 YACC The
`Yet Another Compiler Compiler' implementation to use.
1408 Defaults to the first program found out of: `bison
-y', `byacc',
1410 YFLAGS The list of arguments that will be passed by default to $YACC.
1411 This script will default YFLAGS to the empty string to avoid a
1412 default value of `-d' given by some make applications.
1414 Use these variables to override the choices made by `configure' or to
help
1415 it to
find libraries and programs with nonstandard names
/locations.
1417 Report bugs to the package provider.
1422 if test "$ac_init_help" = "recursive"; then
1423 # If there are subdirs, report their specific --help.
1424 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1425 test -d "$ac_dir" ||
1426 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1431 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1433 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1434 # A ".." for each directory in $ac_dir_suffix.
1435 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1436 case $ac_top_builddir_sub in
1437 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1438 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1441 ac_abs_top_builddir
=$ac_pwd
1442 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1443 # for backward compatibility:
1444 ac_top_builddir
=$ac_top_build_prefix
1447 .
) # We are building in place.
1449 ac_top_srcdir
=$ac_top_builddir_sub
1450 ac_abs_top_srcdir
=$ac_pwd ;;
1451 [\\/]* | ?
:[\\/]* ) # Absolute name.
1452 ac_srcdir
=$srcdir$ac_dir_suffix;
1453 ac_top_srcdir
=$srcdir
1454 ac_abs_top_srcdir
=$srcdir ;;
1456 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1457 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1458 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1460 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1462 cd "$ac_dir" || { ac_status
=$?
; continue; }
1463 # Check for guested configure.
1464 if test -f "$ac_srcdir/configure.gnu"; then
1466 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1467 elif test -f "$ac_srcdir/configure"; then
1469 $SHELL "$ac_srcdir/configure" --help=recursive
1471 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1473 cd "$ac_pwd" || { ac_status
=$?
; break; }
1477 test -n "$ac_init_help" && exit $ac_status
1478 if $ac_init_version; then
1480 charybdis configure
3.4.0-dev
1481 generated by GNU Autoconf
2.68
1483 Copyright
(C
) 2010 Free Software Foundation
, Inc.
1484 This configure
script is free software
; the Free Software Foundation
1485 gives unlimited permission to copy
, distribute and modify it.
1487 $Id: configure.ac
3516 2007-06-10 16:14:03Z jilles $
1492 ## ------------------------ ##
1493 ## Autoconf initialization. ##
1494 ## ------------------------ ##
1496 # ac_fn_c_try_compile LINENO
1497 # --------------------------
1498 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1499 ac_fn_c_try_compile
()
1501 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1502 rm -f conftest.
$ac_objext
1503 if { { ac_try
="$ac_compile"
1505 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
1506 *) ac_try_echo=$ac_try;;
1508 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1509 $as_echo "$ac_try_echo"; } >&5
1510 (eval "$ac_compile") 2>conftest.err
1512 if test -s conftest.err; then
1513 grep -v '^ *+' conftest.err >conftest.er1
1514 cat conftest.er1 >&5
1515 mv -f conftest.er1 conftest.err
1517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1518 test $ac_status = 0; } && {
1519 test -z "$ac_c_werror_flag" ||
1520 test ! -s conftest.err
1521 } && test -s conftest.$ac_objext; then :
1524 $as_echo "$as_me: failed program was:" >&5
1525 sed 's/^/| /' conftest.$ac_ext >&5
1529 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1530 as_fn_set_status $ac_retval
1532 } # ac_fn_c_try_compile
1534 # ac_fn_c_try_cpp LINENO
1535 # ----------------------
1536 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1539 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1540 if { { ac_try="$ac_cpp conftest.$ac_ext"
1542 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
1543 *) ac_try_echo
=$ac_try;;
1545 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1546 $as_echo "$ac_try_echo"; } >&5
1547 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1549 if test -s conftest.err
; then
1550 grep -v '^ *+' conftest.err
>conftest.er1
1551 cat conftest.er1
>&5
1552 mv -f conftest.er1 conftest.err
1554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1555 test $ac_status = 0; } > conftest.i
&& {
1556 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1557 test ! -s conftest.err
1561 $as_echo "$as_me: failed program was:" >&5
1562 sed 's/^/| /' conftest.
$ac_ext >&5
1566 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1567 as_fn_set_status
$ac_retval
1571 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1572 # -------------------------------------------------------
1573 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1574 # the include files in INCLUDES and setting the cache variable VAR
1576 ac_fn_c_check_header_mongrel
()
1578 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1579 if eval \
${$3+:} false
; then :
1580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1581 $as_echo_n "checking for $2... " >&6; }
1582 if eval \
${$3+:} false
; then :
1583 $as_echo_n "(cached) " >&6
1586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1587 $as_echo "$ac_res" >&6; }
1589 # Is the header compilable?
1590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1591 $as_echo_n "checking $2 usability... " >&6; }
1592 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1593 /* end confdefs.h. */
1597 if ac_fn_c_try_compile
"$LINENO"; then :
1598 ac_header_compiler
=yes
1600 ac_header_compiler
=no
1602 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1604 $as_echo "$ac_header_compiler" >&6; }
1606 # Is the header present?
1607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1608 $as_echo_n "checking $2 presence... " >&6; }
1609 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1610 /* end confdefs.h. */
1613 if ac_fn_c_try_cpp
"$LINENO"; then :
1614 ac_header_preproc
=yes
1616 ac_header_preproc
=no
1618 rm -f conftest.err conftest.i conftest.
$ac_ext
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1620 $as_echo "$ac_header_preproc" >&6; }
1622 # So? What about this header?
1623 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1626 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1628 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1632 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1634 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1636 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1638 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1640 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1644 $as_echo_n "checking for $2... " >&6; }
1645 if eval \
${$3+:} false
; then :
1646 $as_echo_n "(cached) " >&6
1648 eval "$3=\$ac_header_compiler"
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1652 $as_echo "$ac_res" >&6; }
1654 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1656 } # ac_fn_c_check_header_mongrel
1658 # ac_fn_c_try_run LINENO
1659 # ----------------------
1660 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1661 # that executables *can* be run.
1664 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1665 if { { ac_try
="$ac_link"
1667 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
1668 *) ac_try_echo=$ac_try;;
1670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671 $as_echo "$ac_try_echo"; } >&5
1672 (eval "$ac_link") 2>&5
1674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1676 { { case "(($ac_try" in
1677 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
1678 *) ac_try_echo
=$ac_try;;
1680 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681 $as_echo "$ac_try_echo"; } >&5
1682 (eval "$ac_try") 2>&5
1684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685 test $ac_status = 0; }; }; then :
1688 $as_echo "$as_me: program exited with status $ac_status" >&5
1689 $as_echo "$as_me: failed program was:" >&5
1690 sed 's/^/| /' conftest.
$ac_ext >&5
1692 ac_retval
=$ac_status
1694 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1695 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1696 as_fn_set_status
$ac_retval
1700 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1701 # -------------------------------------------------------
1702 # Tests whether HEADER exists and can be compiled using the include files in
1703 # INCLUDES, setting the cache variable VAR accordingly.
1704 ac_fn_c_check_header_compile
()
1706 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1708 $as_echo_n "checking for $2... " >&6; }
1709 if eval \
${$3+:} false
; then :
1710 $as_echo_n "(cached) " >&6
1712 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1713 /* end confdefs.h. */
1717 if ac_fn_c_try_compile
"$LINENO"; then :
1722 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1726 $as_echo "$ac_res" >&6; }
1727 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1729 } # ac_fn_c_check_header_compile
1731 # ac_fn_c_try_link LINENO
1732 # -----------------------
1733 # Try to link conftest.$ac_ext, and return whether this succeeded.
1736 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1737 rm -f conftest.
$ac_objext conftest
$ac_exeext
1738 if { { ac_try
="$ac_link"
1740 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744 $as_echo "$ac_try_echo"; } >&5
1745 (eval "$ac_link") 2>conftest.err
1747 if test -s conftest.err; then
1748 grep -v '^ *+' conftest.err >conftest.er1
1749 cat conftest.er1 >&5
1750 mv -f conftest.er1 conftest.err
1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753 test $ac_status = 0; } && {
1754 test -z "$ac_c_werror_flag" ||
1755 test ! -s conftest.err
1756 } && test -s conftest$ac_exeext && {
1757 test "$cross_compiling" = yes ||
1758 $as_test_x conftest$ac_exeext
1762 $as_echo "$as_me: failed program was:" >&5
1763 sed 's/^/| /' conftest.$ac_ext >&5
1767 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1768 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1769 # interfere with the next link command; also delete a directory that is
1770 # left behind by Apple's compiler. We do this before executing the actions.
1771 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773 as_fn_set_status $ac_retval
1775 } # ac_fn_c_try_link
1777 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1778 # -------------------------------------------
1779 # Tests whether TYPE exists after having included INCLUDES, setting cache
1780 # variable VAR accordingly.
1781 ac_fn_c_check_type ()
1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1785 $as_echo_n "checking for $2... " >&6; }
1786 if eval \${$3+:} false; then :
1787 $as_echo_n "(cached) " >&6
1790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1791 /* end confdefs.h. */
1802 if ac_fn_c_try_compile "$LINENO"; then :
1803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1804 /* end confdefs.h. */
1815 if ac_fn_c_try_compile "$LINENO"; then :
1820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1826 $as_echo "$ac_res" >&6; }
1827 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829 } # ac_fn_c_check_type
1831 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1832 # --------------------------------------------
1833 # Tries to find the compile-time value of EXPR in a program that includes
1834 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1836 ac_fn_c_compute_int ()
1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839 if test "$cross_compiling" = yes; then
1840 # Depending upon the size, compute the lo and hi bounds.
1841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1842 /* end confdefs.h. */
1847 static int test_array [1 - 2 * !(($2) >= 0)];
1854 if ac_fn_c_try_compile "$LINENO"; then :
1857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1858 /* end confdefs.h. */
1863 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1870 if ac_fn_c_try_compile "$LINENO"; then :
1871 ac_hi=$ac_mid; break
1873 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1874 if test $ac_lo -le $ac_mid; then
1878 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1884 /* end confdefs.h. */
1889 static int test_array [1 - 2 * !(($2) < 0)];
1896 if ac_fn_c_try_compile "$LINENO"; then :
1899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1900 /* end confdefs.h. */
1905 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1912 if ac_fn_c_try_compile "$LINENO"; then :
1913 ac_lo=$ac_mid; break
1915 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1916 if test $ac_mid -le $ac_hi; then
1920 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1930 # Binary search between lo and hi bounds.
1931 while test "x$ac_lo" != "x$ac_hi"; do
1932 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1934 /* end confdefs.h. */
1939 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1946 if ac_fn_c_try_compile "$LINENO"; then :
1949 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1954 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959 /* end confdefs.h. */
1961 static long int longval () { return $2; }
1962 static unsigned long int ulongval () { return $2; }
1969 FILE *f = fopen ("conftest.val", "w");
1974 long int i = longval ();
1977 fprintf (f, "%ld", i);
1981 unsigned long int i = ulongval ();
1984 fprintf (f, "%lu", i);
1986 /* Do not output a trailing newline, as this causes \r\n confusion
1987 on some platforms. */
1988 return ferror (f) || fclose (f) != 0;
1994 if ac_fn_c_try_run "$LINENO"; then :
1995 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1999 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2000 conftest.$ac_objext conftest.beam conftest.$ac_ext
2004 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2005 as_fn_set_status $ac_retval
2007 } # ac_fn_c_compute_int
2009 # ac_fn_c_check_func LINENO FUNC VAR
2010 # ----------------------------------
2011 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2012 ac_fn_c_check_func ()
2014 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2016 $as_echo_n "checking for $2... " >&6; }
2017 if eval \${$3+:} false; then :
2018 $as_echo_n "(cached) " >&6
2020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021 /* end confdefs.h. */
2022 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2023 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2024 #define $2 innocuous_$2
2026 /* System header to define __stub macros and hopefully few prototypes,
2027 which can conflict with char $2 (); below.
2028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2029 <limits.h> exists even on freestanding compilers. */
2032 # include <limits.h>
2034 # include <assert.h>
2039 /* Override any GCC internal prototype to avoid an error.
2040 Use char because int might match the return type of a GCC
2041 builtin and then its argument prototype would still apply. */
2046 /* The GNU C library defines this for functions which it implements
2047 to always fail with ENOSYS. Some functions are actually named
2048 something starting with __ and the normal name is an alias. */
2049 #if defined __stub_$2 || defined __stub___$2
2061 if ac_fn_c_try_link "$LINENO"; then :
2066 rm -f core conftest.err conftest.$ac_objext \
2067 conftest$ac_exeext conftest.$ac_ext
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2071 $as_echo "$ac_res" >&6; }
2072 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2074 } # ac_fn_c_check_func
2075 cat >config.log <<_ACEOF
2076 This file contains any messages produced by compilers while
2077 running configure, to aid debugging if configure makes a mistake.
2079 It was created by charybdis $as_me 3.4.0-dev, which was
2080 generated by GNU Autoconf 2.68. Invocation command line was
2092 hostname = `(hostname
|| uname
-n) 2>/dev
/null
| sed 1q
`
2093 uname -m = `(uname
-m) 2>/dev
/null
|| echo unknown
`
2094 uname -r = `(uname
-r) 2>/dev
/null
|| echo unknown
`
2095 uname -s = `(uname
-s) 2>/dev
/null
|| echo unknown
`
2096 uname -v = `(uname
-v) 2>/dev
/null
|| echo unknown
`
2098 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null
|| echo unknown
`
2099 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null
|| echo unknown
`
2101 /bin/arch = `(/bin
/arch
) 2>/dev
/null
|| echo unknown
`
2102 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null
|| echo unknown
`
2103 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null
|| echo unknown
`
2104 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null
|| echo unknown
`
2105 /bin/machine = `(/bin
/machine
) 2>/dev
/null
|| echo unknown
`
2106 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null
|| echo unknown
`
2107 /bin/universe = `(/bin
/universe
) 2>/dev
/null
|| echo unknown
`
2111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2115 test -z "$as_dir" && as_dir=.
2116 $as_echo "PATH: $as_dir"
2132 # Keep a trace of the command line.
2133 # Strip out --no-create and --no-recursion so they do not pile up.
2134 # Strip out --silent because we don't want to record it for future runs.
2135 # Also quote any args containing shell meta-characters.
2136 # Make two passes to allow for proper duplicate-argument suppression.
2140 ac_must_keep_next=false
2146 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2147 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2148 | -silent | --silent | --silen | --sile | --sil)
2151 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2154 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2156 as_fn_append ac_configure_args1 " '$ac_arg'"
2157 if test $ac_must_keep_next = true; then
2158 ac_must_keep_next=false # Got value, back to normal.
2161 *=* | --config-cache | -C | -disable-* | --disable-* \
2162 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2163 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2164 | -with-* | --with-* | -without-* | --without-* | --x)
2165 case "$ac_configure_args0 " in
2166 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2169 -* ) ac_must_keep_next=true ;;
2172 as_fn_append ac_configure_args " '$ac_arg'"
2177 { ac_configure_args0=; unset ac_configure_args0;}
2178 { ac_configure_args1=; unset ac_configure_args1;}
2180 # When interrupted or exit'd, cleanup temporary files, and complete
2181 # config.log. We remove comments because anyway the quotes in there
2182 # would cause problems or look ugly.
2183 # WARNING: Use '\'' to represent an apostrophe within the trap.
2184 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2185 trap 'exit_status=$?
2186 # Save into config.log some information that might help in debugging.
2190 $as_echo "## ---------------- ##
2191 ## Cache variables. ##
2192 ## ---------------- ##"
2194 # The following way of writing the cache mishandles newlines in values,
2196 for ac_var in `(set) 2>&1 | sed -n '\''s
/^\
([a
-zA-Z_][a
-zA-Z0-9_]*\
)=.
*/\
1/p
'\''`; do
2197 eval ac_val=\$$ac_var
2201 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2202 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2205 _ | IFS | as_nl) ;; #(
2206 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2207 *) { eval $ac_var=; unset $ac_var;} ;;
2212 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2213 *${as_nl}ac_space=\ *)
2215 "s/'\''/'\''\\\\'\'''\''/g;
2216 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2219 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2226 $as_echo "## ----------------- ##
2227 ## Output variables. ##
2228 ## ----------------- ##"
2230 for ac_var in $ac_subst_vars
2232 eval ac_val=\$$ac_var
2234 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2236 $as_echo "$ac_var='\''$ac_val'\''"
2240 if test -n "$ac_subst_files"; then
2241 $as_echo "## ------------------- ##
2242 ## File substitutions. ##
2243 ## ------------------- ##"
2245 for ac_var in $ac_subst_files
2247 eval ac_val=\$$ac_var
2249 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2251 $as_echo "$ac_var='\''$ac_val'\''"
2256 if test -s confdefs.h; then
2257 $as_echo "## ----------- ##
2264 test "$ac_signal" != 0 &&
2265 $as_echo "$as_me: caught signal $ac_signal"
2266 $as_echo "$as_me: exit $exit_status"
2268 rm -f core *.core core.conftest.* &&
2269 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2272 for ac_signal in 1 2 13 15; do
2273 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2277 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2278 rm -f -r conftest* confdefs.h
2280 $as_echo "/* confdefs.h */" > confdefs.h
2282 # Predefined preprocessor variables.
2284 cat >>confdefs.h <<_ACEOF
2285 #define PACKAGE_NAME "$PACKAGE_NAME"
2288 cat >>confdefs.h <<_ACEOF
2289 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2292 cat >>confdefs.h <<_ACEOF
2293 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2296 cat >>confdefs.h <<_ACEOF
2297 #define PACKAGE_STRING "$PACKAGE_STRING"
2300 cat >>confdefs.h <<_ACEOF
2301 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2304 cat >>confdefs.h <<_ACEOF
2305 #define PACKAGE_URL "$PACKAGE_URL"
2309 # Let the site file select an alternate cache file if it wants to.
2310 # Prefer an explicitly selected file to automatically selected ones.
2313 if test -n "$CONFIG_SITE"; then
2314 # We do not want a PATH search for config.site.
2315 case $CONFIG_SITE in #((
2316 -*) ac_site_file1=./$CONFIG_SITE;;
2317 */*) ac_site_file1=$CONFIG_SITE;;
2318 *) ac_site_file1=./$CONFIG_SITE;;
2320 elif test "x$prefix" != xNONE; then
2321 ac_site_file1=$prefix/share/config.site
2322 ac_site_file2=$prefix/etc/config.site
2324 ac_site_file1=$ac_default_prefix/share/config.site
2325 ac_site_file2=$ac_default_prefix/etc/config.site
2327 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2329 test "x$ac_site_file" = xNONE && continue
2330 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2332 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2333 sed 's/^/| /' "$ac_site_file" >&5
2335 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2336 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2337 as_fn_error $? "failed to load site
script $ac_site_file
2338 See \
`config.log' for more details" "$LINENO" 5; }
2342 if test -r "$cache_file"; then
2343 # Some versions of bash will fail to source /dev/null (special files
2344 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2345 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2347 $as_echo "$as_me: loading cache $cache_file" >&6;}
2349 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2350 *) . "./$cache_file";;
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2355 $as_echo "$as_me: creating cache $cache_file" >&6;}
2359 # Check that the precious variables saved in the cache have kept the same
2361 ac_cache_corrupted=false
2362 for ac_var in $ac_precious_vars; do
2363 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2364 eval ac_new_set=\$ac_env_${ac_var}_set
2365 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2366 eval ac_new_val=\$ac_env_${ac_var}_value
2367 case $ac_old_set,$ac_new_set in
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2370 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2371 ac_cache_corrupted=: ;;
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2374 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2375 ac_cache_corrupted=: ;;
2378 if test "x$ac_old_val" != "x$ac_new_val"; then
2379 # differences in whitespace do not lead to failure.
2380 ac_old_val_w=`echo x
$ac_old_val`
2381 ac_new_val_w=`echo x
$ac_new_val`
2382 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2384 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2385 ac_cache_corrupted=:
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2388 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2389 eval $ac_var=\$ac_old_val
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2392 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2394 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2397 # Pass precious variables to config.status.
2398 if test "$ac_new_set" = set; then
2400 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2401 *) ac_arg=$ac_var=$ac_new_val ;;
2403 case " $ac_configure_args " in
2404 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2405 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2409 if $ac_cache_corrupted; then
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2411 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2413 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2414 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2416 ## -------------------- ##
2417 ## Main body of script. ##
2418 ## -------------------- ##
2421 ac_cpp='$CPP $CPPFLAGS'
2422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2428 ac_config_headers="$ac_config_headers include/setup.h"
2434 ac_cpp='$CPP $CPPFLAGS'
2435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2438 if test -n "$ac_tool_prefix"; then
2439 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2440 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2442 $as_echo_n "checking for $ac_word... " >&6; }
2443 if ${ac_cv_prog_CC+:} false; then :
2444 $as_echo_n "(cached) " >&6
2446 if test -n "$CC"; then
2447 ac_cv_prog_CC="$CC" # Let the user override the test.
2449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453 test -z "$as_dir" && as_dir=.
2454 for ac_exec_ext in '' $ac_executable_extensions; do
2455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2456 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2467 if test -n "$CC"; then
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2469 $as_echo "$CC" >&6; }
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2472 $as_echo "no" >&6; }
2477 if test -z "$ac_cv_prog_CC"; then
2479 # Extract the first word of "gcc", so it can be a program name with args.
2480 set dummy gcc; ac_word=$2
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2482 $as_echo_n "checking for $ac_word... " >&6; }
2483 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2484 $as_echo_n "(cached) " >&6
2486 if test -n "$ac_ct_CC"; then
2487 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493 test -z "$as_dir" && as_dir=.
2494 for ac_exec_ext in '' $ac_executable_extensions; do
2495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2496 ac_cv_prog_ac_ct_CC="gcc"
2497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2506 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2507 if test -n "$ac_ct_CC"; then
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2509 $as_echo "$ac_ct_CC" >&6; }
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2512 $as_echo "no" >&6; }
2515 if test "x$ac_ct_CC" = x; then
2518 case $cross_compiling:$ac_tool_warned in
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2522 ac_tool_warned=yes ;;
2530 if test -z "$CC"; then
2531 if test -n "$ac_tool_prefix"; then
2532 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2533 set dummy ${ac_tool_prefix}cc; ac_word=$2
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2535 $as_echo_n "checking for $ac_word... " >&6; }
2536 if ${ac_cv_prog_CC+:} false; then :
2537 $as_echo_n "(cached) " >&6
2539 if test -n "$CC"; then
2540 ac_cv_prog_CC="$CC" # Let the user override the test.
2542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2546 test -z "$as_dir" && as_dir=.
2547 for ac_exec_ext in '' $ac_executable_extensions; do
2548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2549 ac_cv_prog_CC="${ac_tool_prefix}cc"
2550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2560 if test -n "$CC"; then
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2562 $as_echo "$CC" >&6; }
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2565 $as_echo "no" >&6; }
2571 if test -z "$CC"; then
2572 # Extract the first word of "cc", so it can be a program name with args.
2573 set dummy cc; ac_word=$2
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2575 $as_echo_n "checking for $ac_word... " >&6; }
2576 if ${ac_cv_prog_CC+:} false; then :
2577 $as_echo_n "(cached) " >&6
2579 if test -n "$CC"; then
2580 ac_cv_prog_CC="$CC" # Let the user override the test.
2583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587 test -z "$as_dir" && as_dir=.
2588 for ac_exec_ext in '' $ac_executable_extensions; do
2589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2590 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2591 ac_prog_rejected=yes
2595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2602 if test $ac_prog_rejected = yes; then
2603 # We found a bogon in the path, so make sure we never use it.
2604 set dummy $ac_cv_prog_CC
2606 if test $# != 0; then
2607 # We chose a different compiler from the bogus one.
2608 # However, it has the same basename, so the bogon will be chosen
2609 # first if we set CC to just the basename; use the full file name.
2611 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2617 if test -n "$CC"; then
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2619 $as_echo "$CC" >&6; }
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2622 $as_echo "no" >&6; }
2627 if test -z "$CC"; then
2628 if test -n "$ac_tool_prefix"; then
2629 for ac_prog in cl.exe
2631 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2632 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2634 $as_echo_n "checking for $ac_word... " >&6; }
2635 if ${ac_cv_prog_CC+:} false; then :
2636 $as_echo_n "(cached) " >&6
2638 if test -n "$CC"; then
2639 ac_cv_prog_CC="$CC" # Let the user override the test.
2641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645 test -z "$as_dir" && as_dir=.
2646 for ac_exec_ext in '' $ac_executable_extensions; do
2647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2648 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2659 if test -n "$CC"; then
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2661 $as_echo "$CC" >&6; }
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2664 $as_echo "no" >&6; }
2668 test -n "$CC" && break
2671 if test -z "$CC"; then
2673 for ac_prog in cl.exe
2675 # Extract the first word of "$ac_prog", so it can be a program name with args.
2676 set dummy $ac_prog; ac_word=$2
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2678 $as_echo_n "checking for $ac_word... " >&6; }
2679 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2680 $as_echo_n "(cached) " >&6
2682 if test -n "$ac_ct_CC"; then
2683 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689 test -z "$as_dir" && as_dir=.
2690 for ac_exec_ext in '' $ac_executable_extensions; do
2691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2692 ac_cv_prog_ac_ct_CC="$ac_prog"
2693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2702 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2703 if test -n "$ac_ct_CC"; then
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2705 $as_echo "$ac_ct_CC" >&6; }
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2708 $as_echo "no" >&6; }
2712 test -n "$ac_ct_CC" && break
2715 if test "x$ac_ct_CC" = x; then
2718 case $cross_compiling:$ac_tool_warned in
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2721 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2722 ac_tool_warned=yes ;;
2731 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2732 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2733 as_fn_error $? "no acceptable C compiler found
in \
$PATH
2734 See \
`config.log' for more details" "$LINENO" 5; }
2736 # Provide some information about the compiler.
2737 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2740 for ac_option in --version -v -V -qversion; do
2741 { { ac_try="$ac_compiler $ac_option >&5"
2743 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
2744 *) ac_try_echo
=$ac_try;;
2746 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2747 $as_echo "$ac_try_echo"; } >&5
2748 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2750 if test -s conftest.err
; then
2752 ... rest of stderr output deleted ...
2753 10q' conftest.err
>conftest.er1
2754 cat conftest.er1
>&5
2756 rm -f conftest.er1 conftest.err
2757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2758 test $ac_status = 0; }
2761 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2762 /* end confdefs.h. */
2772 ac_clean_files_save
=$ac_clean_files
2773 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2774 # Try to create an executable without -o first, disregard a.out.
2775 # It will help us diagnose broken compilers, and finding out an intuition
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2778 $as_echo_n "checking whether the C compiler works... " >&6; }
2779 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2781 # The possible output files:
2782 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2785 for ac_file
in $ac_files
2788 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.map
| *.inf
| *.dSYM
| *.o
| *.obj
) ;;
2789 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2794 if { { ac_try
="$ac_link_default"
2796 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
2797 *) ac_try_echo=$ac_try;;
2799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2800 $as_echo "$ac_try_echo"; } >&5
2801 (eval "$ac_link_default") 2>&5
2803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2804 test $ac_status = 0; }; then :
2805 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2806 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2807 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2808 # so that the user can short-circuit this test for compilers unknown to
2810 for ac_file in $ac_files ''
2812 test -f "$ac_file" || continue
2814 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2817 # We found the default executable, but exeext='' is most
2821 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2823 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2825 # We set ac_cv_exeext here because the later test for it is not
2826 # safe: cross compilers may not add the suffix if given an `-o'
2827 # argument, so we may need to know it at that point already.
2828 # Even if this section looks crufty: it has the advantage of
2835 test "$ac_cv_exeext" = no && ac_cv_exeext=
2840 if test -z "$ac_file"; then :
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2842 $as_echo "no" >&6; }
2843 $as_echo "$as_me: failed program was:" >&5
2844 sed 's
/^
/| /' conftest.$ac_ext >&5
2846 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2847 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2848 as_fn_error 77 "C compiler cannot create executables
2849 See \`config.log
' for more details" "$LINENO" 5; }
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2852 $as_echo "yes" >&6; }
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2855 $as_echo_n "checking for C compiler default output file name... " >&6; }
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2857 $as_echo "$ac_file" >&6; }
2858 ac_exeext=$ac_cv_exeext
2860 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2861 ac_clean_files=$ac_clean_files_save
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2863 $as_echo_n "checking for suffix of executables... " >&6; }
2864 if { { ac_try="$ac_link"
2866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2867 *) ac_try_echo=$ac_try;;
2869 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2870 $as_echo "$ac_try_echo"; } >&5
2871 (eval "$ac_link") 2>&5
2873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2874 test $ac_status = 0; }; then :
2875 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2876 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2877 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2879 for ac_file
in conftest.exe conftest conftest.
*; do
2880 test -f "$ac_file" || continue
2882 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.map
| *.inf
| *.dSYM
| *.o
| *.obj
) ;;
2883 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2889 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2890 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2891 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
2892 See \`config.log' for more details" "$LINENO" 5; }
2894 rm -f conftest conftest
$ac_cv_exeext
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2896 $as_echo "$ac_cv_exeext" >&6; }
2898 rm -f conftest.
$ac_ext
2899 EXEEXT
=$ac_cv_exeext
2901 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2902 /* end confdefs.h. */
2907 FILE *f = fopen ("conftest.out", "w");
2908 return ferror (f) || fclose (f) != 0;
2914 ac_clean_files
="$ac_clean_files conftest.out"
2915 # Check that the compiler produces executables we can run. If not, either
2916 # the compiler is broken, or we cross compile.
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2918 $as_echo_n "checking whether we are cross compiling... " >&6; }
2919 if test "$cross_compiling" != yes; then
2920 { { ac_try
="$ac_link"
2922 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
2923 *) ac_try_echo=$ac_try;;
2925 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2926 $as_echo "$ac_try_echo"; } >&5
2927 (eval "$ac_link") 2>&5
2929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2930 test $ac_status = 0; }
2931 if { ac_try='./conftest$ac_cv_exeext'
2932 { { case "(($ac_try" in
2933 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
2934 *) ac_try_echo
=$ac_try;;
2936 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2937 $as_echo "$ac_try_echo"; } >&5
2938 (eval "$ac_try") 2>&5
2940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2941 test $ac_status = 0; }; }; then
2944 if test "$cross_compiling" = maybe
; then
2947 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2948 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2949 as_fn_error $?
"cannot run C compiled programs.
2950 If you meant to cross compile, use \`--host'.
2951 See \`config.log' for more details" "$LINENO" 5; }
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2956 $as_echo "$cross_compiling" >&6; }
2958 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
2959 ac_clean_files
=$ac_clean_files_save
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2961 $as_echo_n "checking for suffix of object files... " >&6; }
2962 if ${ac_cv_objext+:} false
; then :
2963 $as_echo_n "(cached) " >&6
2965 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2966 /* end confdefs.h. */
2976 rm -f conftest.o conftest.obj
2977 if { { ac_try
="$ac_compile"
2979 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
2980 *) ac_try_echo=$ac_try;;
2982 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2983 $as_echo "$ac_try_echo"; } >&5
2984 (eval "$ac_compile") 2>&5
2986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2987 test $ac_status = 0; }; then :
2988 for ac_file in conftest.o conftest.obj conftest.*; do
2989 test -f "$ac_file" || continue;
2991 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2992 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2997 $as_echo "$as_me: failed program was:" >&5
2998 sed 's/^/| /' conftest.$ac_ext >&5
3000 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3001 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3002 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3003 See \
`config.log' for more details" "$LINENO" 5; }
3005 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3008 $as_echo "$ac_cv_objext" >&6; }
3009 OBJEXT=$ac_cv_objext
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3012 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3013 if ${ac_cv_c_compiler_gnu+:} false; then :
3014 $as_echo_n "(cached) " >&6
3016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3017 /* end confdefs.h. */
3030 if ac_fn_c_try_compile "$LINENO"; then :
3035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3036 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3040 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3041 if test $ac_compiler_gnu = yes; then
3046 ac_test_CFLAGS=${CFLAGS+set}
3047 ac_save_CFLAGS=$CFLAGS
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3049 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3050 if ${ac_cv_prog_cc_g+:} false; then :
3051 $as_echo_n "(cached) " >&6
3053 ac_save_c_werror_flag=$ac_c_werror_flag
3054 ac_c_werror_flag=yes
3057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3058 /* end confdefs.h. */
3068 if ac_fn_c_try_compile "$LINENO"; then :
3072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3073 /* end confdefs.h. */
3083 if ac_fn_c_try_compile "$LINENO"; then :
3086 ac_c_werror_flag=$ac_save_c_werror_flag
3088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3089 /* end confdefs.h. */
3099 if ac_fn_c_try_compile "$LINENO"; then :
3102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3107 ac_c_werror_flag=$ac_save_c_werror_flag
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3110 $as_echo "$ac_cv_prog_cc_g" >&6; }
3111 if test "$ac_test_CFLAGS" = set; then
3112 CFLAGS=$ac_save_CFLAGS
3113 elif test $ac_cv_prog_cc_g = yes; then
3114 if test "$GCC" = yes; then
3120 if test "$GCC" = yes; then
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3127 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3128 if ${ac_cv_prog_cc_c89+:} false; then :
3129 $as_echo_n "(cached) " >&6
3131 ac_cv_prog_cc_c89=no
3133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3134 /* end confdefs.h. */
3137 #include <sys/types.h>
3138 #include <sys/stat.h>
3139 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3140 struct buf { int x; };
3141 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3142 static char *e (p, i)
3148 static char *f (char * (*g) (char **, int), char **p, ...)
3153 s = g (p, va_arg (v,int));
3158 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3159 function prototypes and stuff, but not '\xHH' hex character constants.
3160 These don't provoke an error unfortunately, instead are silently treated
3161 as 'x'. The following induces an error, until -std is added to get
3162 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3163 array size at least. It's necessary to write '\x00'==0 to get something
3164 that's true only with -std. */
3165 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3167 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3168 inside strings and character constants. */
3170 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3172 int test (int i, double x);
3173 struct s1 {int (*f) (int a);};
3174 struct s2 {int (*f) (double a);};
3175 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3181 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3186 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3187 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3189 CC="$ac_save_CC $ac_arg"
3190 if ac_fn_c_try_compile "$LINENO"; then :
3191 ac_cv_prog_cc_c89=$ac_arg
3193 rm -f core conftest.err conftest.$ac_objext
3194 test "x$ac_cv_prog_cc_c89" != "xno" && break
3196 rm -f conftest.$ac_ext
3201 case "x$ac_cv_prog_cc_c89" in
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3204 $as_echo "none needed" >&6; } ;;
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3207 $as_echo "unsupported" >&6; } ;;
3209 CC="$CC $ac_cv_prog_cc_c89"
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3211 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3213 if test "x$ac_cv_prog_cc_c89" != xno; then :
3218 ac_cpp='$CPP $CPPFLAGS'
3219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3225 ac_cpp='$CPP $CPPFLAGS'
3226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3230 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3231 # On Suns, sometimes $CPP names a directory.
3232 if test -n "$CPP" && test -d "$CPP"; then
3235 if test -z "$CPP"; then
3236 if ${ac_cv_prog_CPP+:} false; then :
3237 $as_echo_n "(cached) " >&6
3239 # Double quotes because CPP needs to be expanded
3240 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3243 for ac_c_preproc_warn_flag in '' yes
3245 # Use a header file that comes with gcc, so configuring glibc
3246 # with a fresh cross-compiler works.
3247 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3248 # <limits.h> exists even on freestanding compilers.
3249 # On the NeXT, cc -E runs the code through the compiler's parser,
3250 # not just through cpp. "Syntax error" is here to catch this case.
3251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3252 /* end confdefs.h. */
3254 # include <limits.h>
3256 # include <assert.h>
3260 if ac_fn_c_try_cpp "$LINENO"; then :
3263 # Broken: fails on valid input.
3266 rm -f conftest.err conftest.i conftest.$ac_ext
3268 # OK, works on sane cases. Now check whether nonexistent headers
3269 # can be detected and how.
3270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3271 /* end confdefs.h. */
3272 #include <ac_nonexistent.h>
3274 if ac_fn_c_try_cpp "$LINENO"; then :
3275 # Broken: success on invalid input.
3278 # Passes both tests.
3282 rm -f conftest.err conftest.i conftest.$ac_ext
3285 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3286 rm -f conftest.i conftest.err conftest.
$ac_ext
3287 if $ac_preproc_ok; then :
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3300 $as_echo "$CPP" >&6; }
3302 for ac_c_preproc_warn_flag
in '' yes
3304 # Use a header file that comes with gcc, so configuring glibc
3305 # with a fresh cross-compiler works.
3306 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3307 # <limits.h> exists even on freestanding compilers.
3308 # On the NeXT, cc -E runs the code through the compiler's parser,
3309 # not just through cpp. "Syntax error" is here to catch this case.
3310 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3311 /* end confdefs.h. */
3313 # include <limits.h>
3315 # include <assert.h>
3319 if ac_fn_c_try_cpp
"$LINENO"; then :
3322 # Broken: fails on valid input.
3325 rm -f conftest.err conftest.i conftest.
$ac_ext
3327 # OK, works on sane cases. Now check whether nonexistent headers
3328 # can be detected and how.
3329 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3330 /* end confdefs.h. */
3331 #include <ac_nonexistent.h>
3333 if ac_fn_c_try_cpp
"$LINENO"; then :
3334 # Broken: success on invalid input.
3337 # Passes both tests.
3341 rm -f conftest.err conftest.i conftest.
$ac_ext
3344 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3345 rm -f conftest.i conftest.err conftest.
$ac_ext
3346 if $ac_preproc_ok; then :
3349 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3350 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3351 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3352 See \`config.log' for more details" "$LINENO" 5; }
3356 ac_cpp
='$CPP $CPPFLAGS'
3357 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3358 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3359 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3363 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3364 if ${ac_cv_path_GREP+:} false
; then :
3365 $as_echo_n "(cached) " >&6
3367 if test -z "$GREP"; then
3368 ac_path_GREP_found
=false
3369 # Loop through the user's path and test for each of PROGNAME-LIST
3370 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3371 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3374 test -z "$as_dir" && as_dir
=.
3375 for ac_prog
in grep ggrep
; do
3376 for ac_exec_ext
in '' $ac_executable_extensions; do
3377 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3378 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3379 # Check for GNU ac_path_GREP and select it if it is found.
3380 # Check for GNU $ac_path_GREP
3381 case `"$ac_path_GREP" --version 2>&1` in
3383 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3386 $as_echo_n 0123456789 >"conftest.in"
3389 cat "conftest.in" "conftest.in" >"conftest.tmp"
3390 mv "conftest.tmp" "conftest.in"
3391 cp "conftest.in" "conftest.nl"
3392 $as_echo 'GREP' >> "conftest.nl"
3393 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
3394 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
3395 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3396 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3397 # Best one so far, save it but keep looking for a better one
3398 ac_cv_path_GREP
="$ac_path_GREP"
3399 ac_path_GREP_max
=$ac_count
3401 # 10*(2^10) chars as input seems more than enough
3402 test $ac_count -gt 10 && break
3404 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3407 $ac_path_GREP_found && break 3
3412 if test -z "$ac_cv_path_GREP"; then
3413 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3416 ac_cv_path_GREP
=$GREP
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3421 $as_echo "$ac_cv_path_GREP" >&6; }
3422 GREP
="$ac_cv_path_GREP"
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3426 $as_echo_n "checking for egrep... " >&6; }
3427 if ${ac_cv_path_EGREP+:} false
; then :
3428 $as_echo_n "(cached) " >&6
3430 if echo a
| $GREP -E '(a|b)' >/dev
/null
2>&1
3431 then ac_cv_path_EGREP
="$GREP -E"
3433 if test -z "$EGREP"; then
3434 ac_path_EGREP_found
=false
3435 # Loop through the user's path and test for each of PROGNAME-LIST
3436 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3437 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3440 test -z "$as_dir" && as_dir
=.
3441 for ac_prog
in egrep; do
3442 for ac_exec_ext
in '' $ac_executable_extensions; do
3443 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3444 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3445 # Check for GNU ac_path_EGREP and select it if it is found.
3446 # Check for GNU $ac_path_EGREP
3447 case `"$ac_path_EGREP" --version 2>&1` in
3449 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3452 $as_echo_n 0123456789 >"conftest.in"
3455 cat "conftest.in" "conftest.in" >"conftest.tmp"
3456 mv "conftest.tmp" "conftest.in"
3457 cp "conftest.in" "conftest.nl"
3458 $as_echo 'EGREP' >> "conftest.nl"
3459 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
3460 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
3461 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3462 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3463 # Best one so far, save it but keep looking for a better one
3464 ac_cv_path_EGREP
="$ac_path_EGREP"
3465 ac_path_EGREP_max
=$ac_count
3467 # 10*(2^10) chars as input seems more than enough
3468 test $ac_count -gt 10 && break
3470 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3473 $ac_path_EGREP_found && break 3
3478 if test -z "$ac_cv_path_EGREP"; then
3479 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3482 ac_cv_path_EGREP
=$EGREP
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3488 $as_echo "$ac_cv_path_EGREP" >&6; }
3489 EGREP
="$ac_cv_path_EGREP"
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3493 $as_echo_n "checking for ANSI C header files... " >&6; }
3494 if ${ac_cv_header_stdc+:} false
; then :
3495 $as_echo_n "(cached) " >&6
3497 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3498 /* end confdefs.h. */
3512 if ac_fn_c_try_compile
"$LINENO"; then :
3513 ac_cv_header_stdc
=yes
3515 ac_cv_header_stdc
=no
3517 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3519 if test $ac_cv_header_stdc = yes; then
3520 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3522 /* end confdefs.h. */
3526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3527 $EGREP "memchr" >/dev
/null
2>&1; then :
3530 ac_cv_header_stdc
=no
3536 if test $ac_cv_header_stdc = yes; then
3537 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3539 /* end confdefs.h. */
3543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3544 $EGREP "free" >/dev
/null
2>&1; then :
3547 ac_cv_header_stdc
=no
3553 if test $ac_cv_header_stdc = yes; then
3554 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3555 if test "$cross_compiling" = yes; then :
3558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3559 /* end confdefs.h. */
3562 #if ((' ' & 0x0FF) == 0x020)
3563 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3564 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3566 # define ISLOWER(c) \
3567 (('a' <= (c) && (c) <= 'i') \
3568 || ('j' <= (c) && (c) <= 'r') \
3569 || ('s' <= (c) && (c) <= 'z'))
3570 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3573 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3578 for (i = 0; i < 256; i++)
3579 if (XOR (islower (i), ISLOWER (i))
3580 || toupper (i) != TOUPPER (i))
3585 if ac_fn_c_try_run
"$LINENO"; then :
3588 ac_cv_header_stdc
=no
3590 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3591 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3597 $as_echo "$ac_cv_header_stdc" >&6; }
3598 if test $ac_cv_header_stdc = yes; then
3600 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3604 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3605 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3606 inttypes.h stdint.h unistd.h
3608 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3609 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3611 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
3612 cat >>confdefs.h
<<_ACEOF
3613 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3622 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3623 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
3630 if test "$MINIX" = yes; then
3632 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3635 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3638 $as_echo "#define _MINIX 1" >>confdefs.h
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3644 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3645 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
3646 $as_echo_n "(cached) " >&6
3648 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3649 /* end confdefs.h. */
3651 # define __EXTENSIONS__ 1
3652 $ac_includes_default
3661 if ac_fn_c_try_compile
"$LINENO"; then :
3662 ac_cv_safe_to_define___extensions__
=yes
3664 ac_cv_safe_to_define___extensions__
=no
3666 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3669 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3670 test $ac_cv_safe_to_define___extensions__ = yes &&
3671 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3673 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3675 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3677 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3679 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3684 OLD_CFLAGS
="$CFLAGS"
3686 ac_cpp
='$CPP $CPPFLAGS'
3687 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3688 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3689 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3690 if test -n "$ac_tool_prefix"; then
3691 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3692 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3694 $as_echo_n "checking for $ac_word... " >&6; }
3695 if ${ac_cv_prog_CC+:} false
; then :
3696 $as_echo_n "(cached) " >&6
3698 if test -n "$CC"; then
3699 ac_cv_prog_CC
="$CC" # Let the user override the test.
3701 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3705 test -z "$as_dir" && as_dir
=.
3706 for ac_exec_ext
in '' $ac_executable_extensions; do
3707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3708 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3719 if test -n "$CC"; then
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3721 $as_echo "$CC" >&6; }
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3724 $as_echo "no" >&6; }
3729 if test -z "$ac_cv_prog_CC"; then
3731 # Extract the first word of "gcc", so it can be a program name with args.
3732 set dummy gcc
; ac_word
=$2
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3734 $as_echo_n "checking for $ac_word... " >&6; }
3735 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3736 $as_echo_n "(cached) " >&6
3738 if test -n "$ac_ct_CC"; then
3739 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3741 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3745 test -z "$as_dir" && as_dir
=.
3746 for ac_exec_ext
in '' $ac_executable_extensions; do
3747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3748 ac_cv_prog_ac_ct_CC
="gcc"
3749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3758 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3759 if test -n "$ac_ct_CC"; then
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3761 $as_echo "$ac_ct_CC" >&6; }
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3764 $as_echo "no" >&6; }
3767 if test "x$ac_ct_CC" = x
; then
3770 case $cross_compiling:$ac_tool_warned in
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3773 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3774 ac_tool_warned
=yes ;;
3782 if test -z "$CC"; then
3783 if test -n "$ac_tool_prefix"; then
3784 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3785 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3787 $as_echo_n "checking for $ac_word... " >&6; }
3788 if ${ac_cv_prog_CC+:} false
; then :
3789 $as_echo_n "(cached) " >&6
3791 if test -n "$CC"; then
3792 ac_cv_prog_CC
="$CC" # Let the user override the test.
3794 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3798 test -z "$as_dir" && as_dir
=.
3799 for ac_exec_ext
in '' $ac_executable_extensions; do
3800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3801 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3812 if test -n "$CC"; then
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3814 $as_echo "$CC" >&6; }
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3817 $as_echo "no" >&6; }
3823 if test -z "$CC"; then
3824 # Extract the first word of "cc", so it can be a program name with args.
3825 set dummy cc
; 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 ${ac_cv_prog_CC+:} false
; 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.
3835 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3839 test -z "$as_dir" && as_dir
=.
3840 for ac_exec_ext
in '' $ac_executable_extensions; do
3841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3842 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3843 ac_prog_rejected
=yes
3847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3854 if test $ac_prog_rejected = yes; then
3855 # We found a bogon in the path, so make sure we never use it.
3856 set dummy
$ac_cv_prog_CC
3858 if test $# != 0; then
3859 # We chose a different compiler from the bogus one.
3860 # However, it has the same basename, so the bogon will be chosen
3861 # first if we set CC to just the basename; use the full file name.
3863 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3869 if test -n "$CC"; then
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3871 $as_echo "$CC" >&6; }
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3874 $as_echo "no" >&6; }
3879 if test -z "$CC"; then
3880 if test -n "$ac_tool_prefix"; then
3881 for ac_prog
in cl.exe
3883 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3884 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3886 $as_echo_n "checking for $ac_word... " >&6; }
3887 if ${ac_cv_prog_CC+:} false
; then :
3888 $as_echo_n "(cached) " >&6
3890 if test -n "$CC"; then
3891 ac_cv_prog_CC
="$CC" # Let the user override the test.
3893 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3897 test -z "$as_dir" && as_dir
=.
3898 for ac_exec_ext
in '' $ac_executable_extensions; do
3899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3900 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3911 if test -n "$CC"; then
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3913 $as_echo "$CC" >&6; }
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3916 $as_echo "no" >&6; }
3920 test -n "$CC" && break
3923 if test -z "$CC"; then
3925 for ac_prog
in cl.exe
3927 # Extract the first word of "$ac_prog", so it can be a program name with args.
3928 set dummy
$ac_prog; ac_word
=$2
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3930 $as_echo_n "checking for $ac_word... " >&6; }
3931 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3932 $as_echo_n "(cached) " >&6
3934 if test -n "$ac_ct_CC"; then
3935 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3937 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3941 test -z "$as_dir" && as_dir
=.
3942 for ac_exec_ext
in '' $ac_executable_extensions; do
3943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3944 ac_cv_prog_ac_ct_CC
="$ac_prog"
3945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3954 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3955 if test -n "$ac_ct_CC"; then
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3957 $as_echo "$ac_ct_CC" >&6; }
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3960 $as_echo "no" >&6; }
3964 test -n "$ac_ct_CC" && break
3967 if test "x$ac_ct_CC" = x
; then
3970 case $cross_compiling:$ac_tool_warned in
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3973 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3974 ac_tool_warned
=yes ;;
3983 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3984 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3985 as_fn_error $?
"no acceptable C compiler found in \$PATH
3986 See \`config.log' for more details" "$LINENO" 5; }
3988 # Provide some information about the compiler.
3989 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3992 for ac_option
in --version -v -V -qversion; do
3993 { { ac_try
="$ac_compiler $ac_option >&5"
3995 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
3996 *) ac_try_echo=$ac_try;;
3998 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3999 $as_echo "$ac_try_echo"; } >&5
4000 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4002 if test -s conftest.err; then
4004 ... rest of stderr output deleted ...
4005 10q' conftest.err >conftest.er1
4006 cat conftest.er1 >&5
4008 rm -f conftest.er1 conftest.err
4009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4010 test $ac_status = 0; }
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4014 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4015 if ${ac_cv_c_compiler_gnu+:} false; then :
4016 $as_echo_n "(cached) " >&6
4018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4019 /* end confdefs.h. */
4032 if ac_fn_c_try_compile "$LINENO"; then :
4037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4038 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4042 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4043 if test $ac_compiler_gnu = yes; then
4048 ac_test_CFLAGS=${CFLAGS+set}
4049 ac_save_CFLAGS=$CFLAGS
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4051 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4052 if ${ac_cv_prog_cc_g+:} false; then :
4053 $as_echo_n "(cached) " >&6
4055 ac_save_c_werror_flag=$ac_c_werror_flag
4056 ac_c_werror_flag=yes
4059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4060 /* end confdefs.h. */
4070 if ac_fn_c_try_compile "$LINENO"; then :
4074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075 /* end confdefs.h. */
4085 if ac_fn_c_try_compile "$LINENO"; then :
4088 ac_c_werror_flag=$ac_save_c_werror_flag
4090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4091 /* end confdefs.h. */
4101 if ac_fn_c_try_compile "$LINENO"; then :
4104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4109 ac_c_werror_flag=$ac_save_c_werror_flag
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4112 $as_echo "$ac_cv_prog_cc_g" >&6; }
4113 if test "$ac_test_CFLAGS" = set; then
4114 CFLAGS=$ac_save_CFLAGS
4115 elif test $ac_cv_prog_cc_g = yes; then
4116 if test "$GCC" = yes; then
4122 if test "$GCC" = yes; then
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4129 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4130 if ${ac_cv_prog_cc_c89+:} false; then :
4131 $as_echo_n "(cached) " >&6
4133 ac_cv_prog_cc_c89=no
4135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4136 /* end confdefs.h. */
4139 #include <sys/types.h>
4140 #include <sys/stat.h>
4141 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4142 struct buf { int x; };
4143 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4144 static char *e (p, i)
4150 static char *f (char * (*g) (char **, int), char **p, ...)
4155 s = g (p, va_arg (v,int));
4160 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4161 function prototypes and stuff, but not '\xHH' hex character constants.
4162 These don't provoke an error unfortunately, instead are silently treated
4163 as 'x'. The following induces an error, until -std is added to get
4164 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4165 array size at least. It's necessary to write '\x00'==0 to get something
4166 that's true only with -std. */
4167 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4169 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4170 inside strings and character constants. */
4172 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4174 int test (int i, double x);
4175 struct s1 {int (*f) (int a);};
4176 struct s2 {int (*f) (double a);};
4177 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4183 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4188 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4189 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4191 CC="$ac_save_CC $ac_arg"
4192 if ac_fn_c_try_compile "$LINENO"; then :
4193 ac_cv_prog_cc_c89=$ac_arg
4195 rm -f core conftest.err conftest.$ac_objext
4196 test "x$ac_cv_prog_cc_c89" != "xno" && break
4198 rm -f conftest.$ac_ext
4203 case "x$ac_cv_prog_cc_c89" in
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4206 $as_echo "none needed" >&6; } ;;
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4209 $as_echo "unsupported" >&6; } ;;
4211 CC="$CC $ac_cv_prog_cc_c89"
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4213 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4215 if test "x$ac_cv_prog_cc_c89" != xno; then :
4220 ac_cpp='$CPP $CPPFLAGS'
4221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4226 ac_cpp='$CPP $CPPFLAGS'
4227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4232 CFLAGS="$OLD_CFLAGS"
4235 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4236 if test -f "$ac_dir/install-sh"; then
4238 ac_install_sh="$ac_aux_dir/install-sh -c"
4240 elif test -f "$ac_dir/install.sh"; then
4242 ac_install_sh="$ac_aux_dir/install.sh -c"
4244 elif test -f "$ac_dir/shtool"; then
4246 ac_install_sh="$ac_aux_dir/shtool install -c"
4250 if test -z "$ac_aux_dir"; then
4251 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4254 # These three variables are undocumented and unsupported,
4255 # and are intended to be withdrawn in a future Autoconf release.
4256 # They can cause serious problems if a builder's source tree is in a directory
4257 # whose full name contains unusual characters.
4258 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4259 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4260 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4265 subdirs="$subdirs libratbox"
4269 if test "$ac_cv_c_compiler_gnu" != yes; then
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC -version for TenDRA or MIPSpro" >&5
4273 $as_echo_n "checking $CC -version for TenDRA or MIPSpro... " >&6; }
4274 case `$CC -version 2>&1` in
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, TenDRA" >&5
4277 $as_echo "yes, TenDRA" >&6; }
4279 CPPFLAGS="$CPPFLAGS -Ylonglong -Yansi -I/usr/include"
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, MIPSpro" >&5
4285 $as_echo "yes, MIPSpro" >&6; }
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4291 $as_echo "no" >&6; }
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc" >&5
4298 $as_echo_n "checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc... " >&6; }
4299 case `$CC -V 2>&1` in
4300 *Sun*WorkShop* | *Forte*Developer*)
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sun Workshop/Forte" >&5
4302 $as_echo "Sun Workshop/Forte" >&6; }
4303 IRC_CFLAGS="-fast -xinline=dlinkAdd,dlinkAddBefore,dlinkAddTail,dlinkDelete,dlink_list_length,dlink_node,dlinkMoveList,_MyMalloc,_MyRealloc,_MyFree,_DupString"
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Tru64 cc" >&5
4309 $as_echo "Tru64 cc" >&6; }
4311 CPPFLAGS="-I/usr/local/include"
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: HPUX cc" >&5
4316 $as_echo "HPUX cc" >&6; }
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4322 $as_echo "no" >&6; }
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking uname -s for Solaris, AIX or HPUX" >&5
4329 $as_echo_n "checking uname -s for Solaris, AIX or HPUX... " >&6; }
4334 if test "$HPUX" != yes -a "$ac_cv_c_compiler_gnu" = no; then
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming old HPUX with its own cc" >&5
4336 $as_echo "assuming old HPUX with its own cc" >&6; }
4337 IRC_CFLAGS="$IRC_CFLAGS +e"
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: already using newer HPUX" >&5
4341 $as_echo "already using newer HPUX" >&6; }
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SunOS or Solaris" >&5
4346 $as_echo "SunOS or Solaris" >&6; }
4348 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: AIX - Sorry you poor bastard..really we are" >&5
4354 $as_echo "AIX - Sorry you poor bastard..really we are" >&6; }
4355 IRC_CFLAGS="$IRC_CFLAGS -Wl,-brtl -Wl,-G"
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4359 $as_echo "no" >&6; }
4363 if test "$ac_cv_c_compiler_gnu" = yes; then
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC is Apple GCC" >&5
4365 $as_echo_n "checking if $CC is Apple GCC... " >&6; }
4367 case `$CC -v 2>&1 | tail -n 1` in
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4370 $as_echo "yes" >&6; }
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4375 $as_echo "no" >&6; }
4380 IRC_CFLAGS="$IRC_CFLAGS -O0 -Wall -std=gnu99"
4383 if test "$ac_cv_prog_cc_g" = yes; then
4384 if test "$Tru" = yes; then
4385 IRC_CFLAGS="$IRC_CFLAGS -g3"
4387 IRC_CFLAGS="$IRC_CFLAGS -g"
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the SVR4 SGS interfaces" >&5
4392 $as_echo_n "checking if $CC supports the SVR4 SGS interfaces... " >&6; }
4393 if test "$SGS" = "yes"; then
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4395 $as_echo "yes" >&6; }
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4398 $as_echo "no" >&6; }
4401 # Extract the first word of "mkdep", so it can be a program name with args.
4402 set dummy mkdep; ac_word=$2
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4404 $as_echo_n "checking for $ac_word... " >&6; }
4405 if ${ac_cv_path_MKDEP+:} false; then :
4406 $as_echo_n "(cached) " >&6
4410 ac_cv_path_MKDEP="$MKDEP" # Let the user override the test with a path.
4413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4417 test -z "$as_dir" && as_dir=.
4418 for ac_exec_ext in '' $ac_executable_extensions; do
4419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4420 ac_cv_path_MKDEP="$as_dir/$ac_word$ac_exec_ext"
4421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4431 MKDEP=$ac_cv_path_MKDEP
4432 if test -n "$MKDEP"; then
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDEP" >&5
4434 $as_echo "$MKDEP" >&6; }
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4437 $as_echo "no" >&6; }
4441 # Extract the first word of "makedepend", so it can be a program name with args.
4442 set dummy makedepend; ac_word=$2
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4444 $as_echo_n "checking for $ac_word... " >&6; }
4445 if ${ac_cv_path_MAKEDEPEND+:} false; then :
4446 $as_echo_n "(cached) " >&6
4450 ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path.
4453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4457 test -z "$as_dir" && as_dir=.
4458 for ac_exec_ext in '' $ac_executable_extensions; do
4459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4460 ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext"
4461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4471 MAKEDEPEND=$ac_cv_path_MAKEDEPEND
4472 if test -n "$MAKEDEPEND"; then
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEDEPEND" >&5
4474 $as_echo "$MAKEDEPEND" >&6; }
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4477 $as_echo "no" >&6; }
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to generate dependency info" >&5
4483 $as_echo_n "checking how to generate dependency info... " >&6; }
4487 if test "$ac_cv_c_compiler_gnu" = yes; then
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gcc -MM" >&5
4489 $as_echo "gcc -MM" >&6; }
4491 elif test ! -z "$MKDEP"; then
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: mkdep" >&5
4493 $as_echo "mkdep" >&6; }
4495 if test -z "$Tru"; then
4498 STDOUT=" 2> /dev/null"
4500 elif test "$SunWorkShop" = yes; then
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC -xM" >&5
4502 $as_echo "$CC -xM" >&6; }
4504 STDOUT="> .depend 2> /dev/null"
4505 elif test ! -z "$MAKEDEPEND"; then
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: makedepend" >&5
4507 $as_echo "makedepend" >&6; }
4508 MKDEP="$MAKEDEPEND -f-"
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: nothing suitable.. forget it!" >&5
4511 $as_echo "nothing suitable.. forget it!" >&6; }
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/null" >&5
4519 $as_echo_n "checking for /dev/null... " >&6; }
4520 if test -c /dev/null ; then
4522 $as_echo "#define PATH_DEVNULL \"/dev/null\"" >>confdefs.h
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4525 $as_echo "yes" >&6; }
4528 $as_echo "#define PATH_DEVNULL \"devnull.log\"" >>confdefs.h
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using devnull.log" >&5
4531 $as_echo "no - using devnull.log" >&6; }
4534 if test ! -z "$CFLAGS"; then
4535 IRC_CFLAGS="$IRC_CFLAGS $CFLAGS"
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4539 $as_echo_n "checking for library containing strerror... " >&6; }
4540 if ${ac_cv_search_strerror+:} false; then :
4541 $as_echo_n "(cached) " >&6
4543 ac_func_search_save_LIBS=$LIBS
4544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4545 /* end confdefs.h. */
4547 /* Override any GCC internal prototype to avoid an error.
4548 Use char because int might match the return type of a GCC
4549 builtin and then its argument prototype would still apply. */
4562 for ac_lib in '' cposix; do
4563 if test -z "$ac_lib"; then
4564 ac_res="none required"
4567 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4569 if ac_fn_c_try_link "$LINENO"; then :
4570 ac_cv_search_strerror=$ac_res
4572 rm -f core conftest.err conftest.$ac_objext \
4574 if ${ac_cv_search_strerror+:} false; then :
4578 if ${ac_cv_search_strerror+:} false; then :
4581 ac_cv_search_strerror=no
4584 LIBS=$ac_func_search_save_LIBS
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4587 $as_echo "$ac_cv_search_strerror" >&6; }
4588 ac_res=$ac_cv_search_strerror
4589 if test "$ac_res" != no; then :
4590 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4595 $as_echo_n "checking for inline... " >&6; }
4596 if ${ac_cv_c_inline+:} false; then :
4597 $as_echo_n "(cached) " >&6
4600 for ac_kw in inline __inline__ __inline; do
4601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4602 /* end confdefs.h. */
4605 static $ac_kw foo_t static_foo () {return 0; }
4606 $ac_kw foo_t foo () {return 0; }
4610 if ac_fn_c_try_compile "$LINENO"; then :
4611 ac_cv_c_inline=$ac_kw
4613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4614 test "$ac_cv_c_inline" != no && break
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4619 $as_echo "$ac_cv_c_inline" >&6; }
4621 case $ac_cv_c_inline in
4624 case $ac_cv_c_inline in
4626 *) ac_val=$ac_cv_c_inline;;
4628 cat >>confdefs.h <<_ACEOF
4630 #define inline $ac_val
4636 if test $ac_cv_c_compiler_gnu = yes; then
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4638 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4639 if ${ac_cv_prog_gcc_traditional+:} false; then :
4640 $as_echo_n "(cached) " >&6
4642 ac_pattern="Autoconf.*'x'"
4643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4644 /* end confdefs.h. */
4648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4649 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4650 ac_cv_prog_gcc_traditional=yes
4652 ac_cv_prog_gcc_traditional=no
4657 if test $ac_cv_prog_gcc_traditional = no; then
4658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4659 /* end confdefs.h. */
4663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4664 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4665 ac_cv_prog_gcc_traditional=yes
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4672 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4673 if test $ac_cv_prog_gcc_traditional = yes; then
4674 CC="$CC -traditional"
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4679 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4681 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4682 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4683 $as_echo_n "(cached) " >&6
4685 cat >conftest.make <<\_ACEOF
4688 @echo '@@@%%%=$(MAKE)=@@@%%%'
4690 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4691 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
4693 eval ac_cv_prog_make_${ac_make}_set=yes;;
4695 eval ac_cv_prog_make_${ac_make}_set=no;;
4699 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4701 $as_echo "yes" >&6; }
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4705 $as_echo "no" >&6; }
4706 SET_MAKE="MAKE=${MAKE-make}"
4709 # Find a good install program. We prefer a C program (faster),
4710 # so one script is as good as another. But avoid the broken or
4711 # incompatible versions:
4712 # SysV /etc/install, /usr/sbin/install
4713 # SunOS /usr/etc/install
4714 # IRIX /sbin/install
4716 # AmigaOS /C/install, which installs bootblocks on floppy discs
4717 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4718 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4719 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4720 # OS/2's system install, which has a completely different semantic
4721 # ./install, which can be erroneously created by make from ./install.sh.
4722 # Reject install programs that cannot install multiple files.
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4724 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4725 if test -z "$INSTALL"; then
4726 if ${ac_cv_path_install+:} false; then :
4727 $as_echo_n "(cached) " >&6
4729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4733 test -z "$as_dir" && as_dir=.
4734 # Account for people who put trailing slashes in PATH elements.
4735 case $as_dir/ in #((
4736 ./ | .// | /[cC]/* | \
4737 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4738 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4741 # OSF1 and SCO ODT 3.0 have their own names for install.
4742 # Don't use installbsd from OSF since it installs stuff as root
4744 for ac_prog in ginstall scoinst install; do
4745 for ac_exec_ext in '' $ac_executable_extensions; do
4746 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4747 if test $ac_prog = install &&
4748 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4749 # AIX install. It has an incompatible calling convention.
4751 elif test $ac_prog = install &&
4752 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4753 # program-specific install script used by HP pwplus--don't use.
4756 rm -rf conftest.one conftest.two conftest.dir
4757 echo one > conftest.one
4758 echo two > conftest.two
4760 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4761 test -s conftest.one && test -s conftest.two &&
4762 test -s conftest.dir/conftest.one &&
4763 test -s conftest.dir/conftest.two
4765 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4778 rm -rf conftest.one conftest.two conftest.dir
4781 if test "${ac_cv_path_install+set}" = set; then
4782 INSTALL=$ac_cv_path_install
4784 # As a last resort, use the slow shell script. Don't cache a
4785 # value for INSTALL within a source directory, because that will
4786 # break other packages using the cache if that directory is
4787 # removed, or if the value is a relative name.
4788 INSTALL=$ac_install_sh
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4792 $as_echo "$INSTALL" >&6; }
4794 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4795 # It thinks the first close brace ends the variable substitution.
4796 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4798 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4800 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4802 # Extract the first word of "rm", so it can be a program name with args.
4803 set dummy rm; ac_word=$2
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4805 $as_echo_n "checking for $ac_word... " >&6; }
4806 if ${ac_cv_path_RM+:} false; then :
4807 $as_echo_n "(cached) " >&6
4811 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4818 test -z "$as_dir" && as_dir=.
4819 for ac_exec_ext in '' $ac_executable_extensions; do
4820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4821 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4833 if test -n "$RM"; then
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4835 $as_echo "$RM" >&6; }
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4838 $as_echo "no" >&6; }
4842 # Extract the first word of "cp", so it can be a program name with args.
4843 set dummy cp; ac_word=$2
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4845 $as_echo_n "checking for $ac_word... " >&6; }
4846 if ${ac_cv_path_CP+:} false; then :
4847 $as_echo_n "(cached) " >&6
4851 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4858 test -z "$as_dir" && as_dir=.
4859 for ac_exec_ext in '' $ac_executable_extensions; do
4860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4861 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4873 if test -n "$CP"; then
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
4875 $as_echo "$CP" >&6; }
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4878 $as_echo "no" >&6; }
4882 # Extract the first word of "mv", so it can be a program name with args.
4883 set dummy mv; ac_word=$2
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4885 $as_echo_n "checking for $ac_word... " >&6; }
4886 if ${ac_cv_path_MV+:} false; then :
4887 $as_echo_n "(cached) " >&6
4891 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4898 test -z "$as_dir" && as_dir=.
4899 for ac_exec_ext in '' $ac_executable_extensions; do
4900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4901 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4913 if test -n "$MV"; then
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4915 $as_echo "$MV" >&6; }
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4918 $as_echo "no" >&6; }
4922 # Extract the first word of "ln", so it can be a program name with args.
4923 set dummy ln; ac_word=$2
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4925 $as_echo_n "checking for $ac_word... " >&6; }
4926 if ${ac_cv_path_LN+:} false; then :
4927 $as_echo_n "(cached) " >&6
4931 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938 test -z "$as_dir" && as_dir=.
4939 for ac_exec_ext in '' $ac_executable_extensions; do
4940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4941 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4953 if test -n "$LN"; then
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
4955 $as_echo "$LN" >&6; }
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4958 $as_echo "no" >&6; }
4962 # Extract the first word of "sed", so it can be a program name with args.
4963 set dummy sed; ac_word=$2
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4965 $as_echo_n "checking for $ac_word... " >&6; }
4966 if ${ac_cv_path_SED+:} false; then :
4967 $as_echo_n "(cached) " >&6
4971 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978 test -z "$as_dir" && as_dir=.
4979 for ac_exec_ext in '' $ac_executable_extensions; do
4980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4981 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4993 if test -n "$SED"; then
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4995 $as_echo "$SED" >&6; }
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4998 $as_echo "no" >&6; }
5002 # Extract the first word of "ar", so it can be a program name with args.
5003 set dummy ar; ac_word=$2
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5005 $as_echo_n "checking for $ac_word... " >&6; }
5006 if ${ac_cv_path_AR+:} false; then :
5007 $as_echo_n "(cached) " >&6
5011 ac_cv_path_AR="$AR" # Let the user override the test with a path.
5014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5018 test -z "$as_dir" && as_dir=.
5019 for ac_exec_ext in '' $ac_executable_extensions; do
5020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5021 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5033 if test -n "$AR"; then
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5035 $as_echo "$AR" >&6; }
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5038 $as_echo "no" >&6; }
5042 # Extract the first word of "ld", so it can be a program name with args.
5043 set dummy ld; ac_word=$2
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5045 $as_echo_n "checking for $ac_word... " >&6; }
5046 if ${ac_cv_path_LD+:} false; then :
5047 $as_echo_n "(cached) " >&6
5051 ac_cv_path_LD="$LD" # Let the user override the test with a path.
5054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5058 test -z "$as_dir" && as_dir=.
5059 for ac_exec_ext in '' $ac_executable_extensions; do
5060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5061 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
5062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5073 if test -n "$LD"; then
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5075 $as_echo "$LD" >&6; }
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5078 $as_echo "no" >&6; }
5082 # Extract the first word of "ranlib", so it can be a program name with args.
5083 set dummy ranlib; ac_word=$2
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5085 $as_echo_n "checking for $ac_word... " >&6; }
5086 if ${ac_cv_path_RANLIB+:} false; then :
5087 $as_echo_n "(cached) " >&6
5091 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
5094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5098 test -z "$as_dir" && as_dir=.
5099 for ac_exec_ext in '' $ac_executable_extensions; do
5100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5101 ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
5102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5112 RANLIB=$ac_cv_path_RANLIB
5113 if test -n "$RANLIB"; then
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5115 $as_echo "$RANLIB" >&6; }
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5118 $as_echo "no" >&6; }
5122 # Extract the first word of "touch", so it can be a program name with args.
5123 set dummy touch; ac_word=$2
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5125 $as_echo_n "checking for $ac_word... " >&6; }
5126 if ${ac_cv_path_TOUCH+:} false; then :
5127 $as_echo_n "(cached) " >&6
5131 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
5134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5138 test -z "$as_dir" && as_dir=.
5139 for ac_exec_ext in '' $ac_executable_extensions; do
5140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5141 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
5142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5152 TOUCH=$ac_cv_path_TOUCH
5153 if test -n "$TOUCH"; then
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5155 $as_echo "$TOUCH" >&6; }
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5158 $as_echo "no" >&6; }
5163 for ac_prog in 'bison -y' byacc
5165 # Extract the first word of "$ac_prog", so it can be a program name with args.
5166 set dummy $ac_prog; ac_word=$2
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5168 $as_echo_n "checking for $ac_word... " >&6; }
5169 if ${ac_cv_prog_YACC+:} false; then :
5170 $as_echo_n "(cached) " >&6
5172 if test -n "$YACC"; then
5173 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5179 test -z "$as_dir" && as_dir=.
5180 for ac_exec_ext in '' $ac_executable_extensions; do
5181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5182 ac_cv_prog_YACC="$ac_prog"
5183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5192 YACC=$ac_cv_prog_YACC
5193 if test -n "$YACC"; then
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5195 $as_echo "$YACC" >&6; }
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5198 $as_echo "no" >&6; }
5202 test -n "$YACC" && break
5204 test -n "$YACC" || YACC="yacc"
5207 if test "$YACC" = "yacc" -a -z "`which $YACC 2>/dev
/null
`"; then
5208 as_fn_error $? "could not locate a suitable parser generator; install bison, yacc, or byacc" "$LINENO" 5
5211 for ac_prog in flex lex
5213 # Extract the first word of "$ac_prog", so it can be a program name with args.
5214 set dummy $ac_prog; ac_word=$2
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5216 $as_echo_n "checking for $ac_word... " >&6; }
5217 if ${ac_cv_prog_LEX+:} false; then :
5218 $as_echo_n "(cached) " >&6
5220 if test -n "$LEX"; then
5221 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5227 test -z "$as_dir" && as_dir=.
5228 for ac_exec_ext in '' $ac_executable_extensions; do
5229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5230 ac_cv_prog_LEX="$ac_prog"
5231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5241 if test -n "$LEX"; then
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
5243 $as_echo "$LEX" >&6; }
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5246 $as_echo "no" >&6; }
5250 test -n "$LEX" && break
5252 test -n "$LEX" || LEX=":"
5254 if test "x$LEX" != "x:"; then
5255 cat >conftest.l <<_ACEOF
5261 e { yyless (input () != 0); }
5262 f { unput (yytext[0]); }
5263 . { BEGIN INITIAL; }
5265 #ifdef YYTEXT_POINTER
5266 extern char *yytext;
5271 return ! yylex () + ! yywrap ();
5274 { { ac_try="$LEX conftest.l"
5276 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
5277 *) ac_try_echo
=$ac_try;;
5279 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5280 $as_echo "$ac_try_echo"; } >&5
5281 (eval "$LEX conftest.l") 2>&5
5283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5284 test $ac_status = 0; }
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
5286 $as_echo_n "checking lex output file root... " >&6; }
5287 if ${ac_cv_prog_lex_root+:} false
; then :
5288 $as_echo_n "(cached) " >&6
5291 if test -f lex.yy.c
; then
5292 ac_cv_prog_lex_root
=lex.yy
5293 elif test -f lexyy.c
; then
5294 ac_cv_prog_lex_root
=lexyy
5296 as_fn_error $?
"cannot find output from $LEX; giving up" "$LINENO" 5
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
5300 $as_echo "$ac_cv_prog_lex_root" >&6; }
5301 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
5303 if test -z "${LEXLIB+set}"; then
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
5305 $as_echo_n "checking lex library... " >&6; }
5306 if ${ac_cv_lib_lex+:} false
; then :
5307 $as_echo_n "(cached) " >&6
5311 ac_cv_lib_lex
='none needed'
5312 for ac_lib
in '' -lfl -ll; do
5313 LIBS
="$ac_lib $ac_save_LIBS"
5314 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5315 /* end confdefs.h. */
5316 `cat $LEX_OUTPUT_ROOT.c`
5318 if ac_fn_c_try_link
"$LINENO"; then :
5319 ac_cv_lib_lex
=$ac_lib
5321 rm -f core conftest.err conftest.
$ac_objext \
5322 conftest
$ac_exeext conftest.
$ac_ext
5323 test "$ac_cv_lib_lex" != 'none needed' && break
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
5329 $as_echo "$ac_cv_lib_lex" >&6; }
5330 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB
=$ac_cv_lib_lex
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
5335 $as_echo_n "checking whether yytext is a pointer... " >&6; }
5336 if ${ac_cv_prog_lex_yytext_pointer+:} false
; then :
5337 $as_echo_n "(cached) " >&6
5339 # POSIX says lex can declare yytext either as a pointer or an array; the
5340 # default is implementation-dependent. Figure out which it is, since
5341 # not all implementations provide the %pointer and %array declarations.
5342 ac_cv_prog_lex_yytext_pointer
=no
5344 LIBS
="$LEXLIB $ac_save_LIBS"
5345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5346 /* end confdefs.h. */
5348 #define YYTEXT_POINTER 1
5349 `cat $LEX_OUTPUT_ROOT.c`
5351 if ac_fn_c_try_link
"$LINENO"; then :
5352 ac_cv_prog_lex_yytext_pointer
=yes
5354 rm -f core conftest.err conftest.
$ac_objext \
5355 conftest
$ac_exeext conftest.
$ac_ext
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
5360 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
5361 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5363 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
5366 rm -f conftest.l
$LEX_OUTPUT_ROOT.c
5370 if test "$LEX" = ":"; then
5371 as_fn_error $?
"could not locate a suitable lexical generator, install flex or lex." "$LINENO" 5
5374 # Check whether --enable-fhs-paths was given.
5375 if test "${enable_fhs_paths+set}" = set; then :
5376 enableval
=$enable_fhs_paths;
5378 if test "$libexecdir" = '${exec_prefix}/libexec' && \
5379 test "$localstatedir" = '${prefix}/var' && \
5380 test "$libdir" = '${exec_prefix}/lib'; then :
5383 enable_fhs_paths
=yes
5388 if test "x$enable_fhs_paths" = "xyes"; then :
5389 pkglibexecdir
='${libexecdir}/${PACKAGE_TARNAME}'
5390 rundir
=${rundir-'${prefix}/run'}
5391 pkgrundir
='${rundir}/${PACKAGE_TARNAME}'
5392 pkglocalstatedir
='${localstatedir}/${PACKAGE_TARNAME}'
5394 libexecdir
='${bindir}'
5395 pkglibexecdir
='${libexecdir}'
5396 rundir
='${sysconfdir}'
5397 pkgrundir
='${rundir}'
5398 localstatedir
='${prefix}'
5399 pkglocalstatedir
='${sysconfdir}'
5401 pkglibdir
='${libdir}/${PACKAGE_TARNAME}'
5407 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5408 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5409 last_ac_define_dir
=`eval echo $pkglocalstatedir`
5410 ac_define_dir
=`eval echo $last_ac_define_dir`
5411 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
5412 last_ac_define_dir
="$ac_define_dir"
5413 ac_define_dir
=`eval echo $last_ac_define_dir`
5415 PKGLOCALSTATEDIR
="$ac_define_dir"
5418 cat >>confdefs.h
<<_ACEOF
5419 #define PKGLOCALSTATEDIR "$ac_define_dir"
5425 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5426 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5427 last_ac_define_dir
=`eval echo $pkglibexecdir`
5428 ac_define_dir
=`eval echo $last_ac_define_dir`
5429 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
5430 last_ac_define_dir
="$ac_define_dir"
5431 ac_define_dir
=`eval echo $last_ac_define_dir`
5433 PKGLIBEXECDIR
="$ac_define_dir"
5436 cat >>confdefs.h
<<_ACEOF
5437 #define PKGLIBEXECDIR "$ac_define_dir"
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5443 $as_echo_n "checking for ANSI C header files... " >&6; }
5444 if ${ac_cv_header_stdc+:} false
; then :
5445 $as_echo_n "(cached) " >&6
5447 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5448 /* end confdefs.h. */
5462 if ac_fn_c_try_compile
"$LINENO"; then :
5463 ac_cv_header_stdc
=yes
5465 ac_cv_header_stdc
=no
5467 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5469 if test $ac_cv_header_stdc = yes; then
5470 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5471 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5472 /* end confdefs.h. */
5476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5477 $EGREP "memchr" >/dev
/null
2>&1; then :
5480 ac_cv_header_stdc
=no
5486 if test $ac_cv_header_stdc = yes; then
5487 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5488 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5489 /* end confdefs.h. */
5493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5494 $EGREP "free" >/dev
/null
2>&1; then :
5497 ac_cv_header_stdc
=no
5503 if test $ac_cv_header_stdc = yes; then
5504 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5505 if test "$cross_compiling" = yes; then :
5508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5509 /* end confdefs.h. */
5512 #if ((' ' & 0x0FF) == 0x020)
5513 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5514 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5516 # define ISLOWER(c) \
5517 (('a' <= (c) && (c) <= 'i') \
5518 || ('j' <= (c) && (c) <= 'r') \
5519 || ('s' <= (c) && (c) <= 'z'))
5520 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5523 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5528 for (i = 0; i < 256; i++)
5529 if (XOR (islower (i), ISLOWER (i))
5530 || toupper (i) != TOUPPER (i))
5535 if ac_fn_c_try_run
"$LINENO"; then :
5538 ac_cv_header_stdc
=no
5540 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5541 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5547 $as_echo "$ac_cv_header_stdc" >&6; }
5548 if test $ac_cv_header_stdc = yes; then
5550 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5555 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
5557 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5558 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5559 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5560 cat >>confdefs.h
<<_ACEOF
5561 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5571 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5572 if ${ac_cv_c_const+:} false
; then :
5573 $as_echo_n "(cached) " >&6
5575 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5576 /* end confdefs.h. */
5581 /* FIXME: Include the comments suggested by Paul. */
5583 /* Ultrix mips cc rejects this. */
5584 typedef int charset[2];
5586 /* SunOS 4.1.1 cc rejects this. */
5587 char const *const *pcpcc;
5589 /* NEC SVR4.0.2 mips cc rejects this. */
5590 struct point {int x, y;};
5591 static struct point const zero = {0,0};
5592 /* AIX XL C 1.02.0.0 rejects this.
5593 It does not let you subtract one const X* pointer from another in
5594 an arm of an if-expression whose if-part is not a constant
5596 const char *g = "string";
5597 pcpcc = &g + (g ? g-g : 0);
5598 /* HPUX 7.0 cc rejects these. */
5600 ppc = (char**) pcpcc;
5601 pcpcc = (char const *const *) ppc;
5602 { /* SCO 3.2v4 cc rejects this. */
5604 char const *s = 0 ? (char *) 0 : (char const *) 0;
5609 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5611 const int *foo = &x[0];
5614 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5615 typedef const int *iptr;
5619 { /* AIX XL C 1.02.0.0 rejects this saying
5620 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5621 struct s { int j; const int *ap[3]; };
5622 struct s *b; b->j = 5;
5624 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5628 return !cs[0] && !zero.x;
5635 if ac_fn_c_try_compile
"$LINENO"; then :
5640 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5643 $as_echo "$ac_cv_c_const" >&6; }
5644 if test $ac_cv_c_const = no
; then
5646 $as_echo "#define const /**/" >>confdefs.h
5650 if test "$ac_cv_header_machine_endian_h" = "no" ; then
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5652 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5653 if ${ac_cv_c_bigendian+:} false
; then :
5654 $as_echo_n "(cached) " >&6
5656 ac_cv_c_bigendian
=unknown
5657 # See if we're dealing with a universal compiler.
5658 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5659 /* end confdefs.h. */
5660 #ifndef __APPLE_CC__
5661 not a universal capable compiler
5666 if ac_fn_c_try_compile
"$LINENO"; then :
5668 # Check for potential -arch flags. It is not universal unless
5669 # there are at least two -arch flags with different values.
5672 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5673 if test -n "$ac_prev"; then
5675 i?
86 | x86_64
| ppc
| ppc64
)
5676 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5679 ac_cv_c_bigendian
=universal
5685 elif test "x$ac_word" = "x-arch"; then
5690 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5691 if test $ac_cv_c_bigendian = unknown
; then
5692 # See if sys/param.h defines the BYTE_ORDER macro.
5693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5694 /* end confdefs.h. */
5695 #include <sys/types.h>
5696 #include <sys/param.h>
5701 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5702 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5711 if ac_fn_c_try_compile
"$LINENO"; then :
5712 # It does; now see whether it defined to BIG_ENDIAN or not.
5713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5714 /* end confdefs.h. */
5715 #include <sys/types.h>
5716 #include <sys/param.h>
5721 #if BYTE_ORDER != BIG_ENDIAN
5729 if ac_fn_c_try_compile
"$LINENO"; then :
5730 ac_cv_c_bigendian
=yes
5732 ac_cv_c_bigendian
=no
5734 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5736 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5738 if test $ac_cv_c_bigendian = unknown
; then
5739 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5741 /* end confdefs.h. */
5747 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5755 if ac_fn_c_try_compile
"$LINENO"; then :
5756 # It does; now see whether it defined to _BIG_ENDIAN or not.
5757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5758 /* end confdefs.h. */
5772 if ac_fn_c_try_compile
"$LINENO"; then :
5773 ac_cv_c_bigendian
=yes
5775 ac_cv_c_bigendian
=no
5777 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5779 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5781 if test $ac_cv_c_bigendian = unknown
; then
5782 # Compile a test program.
5783 if test "$cross_compiling" = yes; then :
5784 # Try to guess by grepping values from an object file.
5785 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5786 /* end confdefs.h. */
5787 short int ascii_mm[] =
5788 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5789 short int ascii_ii[] =
5790 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5791 int use_ascii (int i) {
5792 return ascii_mm[i] + ascii_ii[i];
5794 short int ebcdic_ii[] =
5795 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5796 short int ebcdic_mm[] =
5797 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5798 int use_ebcdic (int i) {
5799 return ebcdic_mm[i] + ebcdic_ii[i];
5806 return use_ascii (foo) == use_ebcdic (foo);
5811 if ac_fn_c_try_compile
"$LINENO"; then :
5812 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
5813 ac_cv_c_bigendian
=yes
5815 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
5816 if test "$ac_cv_c_bigendian" = unknown
; then
5817 ac_cv_c_bigendian
=no
5819 # finding both strings is unlikely to happen, but who knows?
5820 ac_cv_c_bigendian
=unknown
5824 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5826 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5827 /* end confdefs.h. */
5828 $ac_includes_default
5833 /* Are we little or big endian? From Harbison&Steele. */
5837 char c[sizeof (long int)];
5840 return u.c[sizeof (long int) - 1] == 1;
5846 if ac_fn_c_try_run
"$LINENO"; then :
5847 ac_cv_c_bigendian
=no
5849 ac_cv_c_bigendian
=yes
5851 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5852 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5858 $as_echo "$ac_cv_c_bigendian" >&6; }
5859 case $ac_cv_c_bigendian in #(
5861 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5867 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5871 as_fn_error $?
"unknown endianness
5872 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5876 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5877 if test "x$ac_cv_type_pid_t" = xyes
; then :
5881 cat >>confdefs.h
<<_ACEOF
5887 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5888 if test "x$ac_cv_type_size_t" = xyes
; then :
5892 cat >>confdefs.h
<<_ACEOF
5893 #define size_t unsigned int
5898 # The cast to long int works around a bug in the HP C Compiler
5899 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5900 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5901 # This bug is HP SR number 8606223364.
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5903 $as_echo_n "checking size of short... " >&6; }
5904 if ${ac_cv_sizeof_short+:} false
; then :
5905 $as_echo_n "(cached) " >&6
5907 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5910 if test "$ac_cv_type_short" = yes; then
5911 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5912 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5913 as_fn_error
77 "cannot compute sizeof (short)
5914 See \`config.log' for more details" "$LINENO" 5; }
5916 ac_cv_sizeof_short
=0
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5922 $as_echo "$ac_cv_sizeof_short" >&6; }
5926 cat >>confdefs.h
<<_ACEOF
5927 #define SIZEOF_SHORT $ac_cv_sizeof_short
5931 # The cast to long int works around a bug in the HP C Compiler
5932 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5933 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5934 # This bug is HP SR number 8606223364.
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5936 $as_echo_n "checking size of int... " >&6; }
5937 if ${ac_cv_sizeof_int+:} false
; then :
5938 $as_echo_n "(cached) " >&6
5940 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5943 if test "$ac_cv_type_int" = yes; then
5944 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5945 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5946 as_fn_error
77 "cannot compute sizeof (int)
5947 See \`config.log' for more details" "$LINENO" 5; }
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5955 $as_echo "$ac_cv_sizeof_int" >&6; }
5959 cat >>confdefs.h
<<_ACEOF
5960 #define SIZEOF_INT $ac_cv_sizeof_int
5964 # The cast to long int works around a bug in the HP C Compiler
5965 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5966 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5967 # This bug is HP SR number 8606223364.
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5969 $as_echo_n "checking size of long... " >&6; }
5970 if ${ac_cv_sizeof_long+:} false
; then :
5971 $as_echo_n "(cached) " >&6
5973 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5976 if test "$ac_cv_type_long" = yes; then
5977 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5978 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5979 as_fn_error
77 "cannot compute sizeof (long)
5980 See \`config.log' for more details" "$LINENO" 5; }
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5988 $as_echo "$ac_cv_sizeof_long" >&6; }
5992 cat >>confdefs.h
<<_ACEOF
5993 #define SIZEOF_LONG $ac_cv_sizeof_long
5997 # The cast to long int works around a bug in the HP C Compiler
5998 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5999 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6000 # This bug is HP SR number 8606223364.
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6002 $as_echo_n "checking size of long long... " >&6; }
6003 if ${ac_cv_sizeof_long_long+:} false
; then :
6004 $as_echo_n "(cached) " >&6
6006 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6009 if test "$ac_cv_type_long_long" = yes; then
6010 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6011 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6012 as_fn_error
77 "cannot compute sizeof (long long)
6013 See \`config.log' for more details" "$LINENO" 5; }
6015 ac_cv_sizeof_long_long
=0
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6021 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6025 cat >>confdefs.h
<<_ACEOF
6026 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
6033 $as_echo_n "checking for library containing socket... " >&6; }
6034 if ${ac_cv_search_socket+:} false
; then :
6035 $as_echo_n "(cached) " >&6
6037 ac_func_search_save_LIBS
=$LIBS
6038 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6039 /* end confdefs.h. */
6041 /* Override any GCC internal prototype to avoid an error.
6042 Use char because int might match the return type of a GCC
6043 builtin and then its argument prototype would still apply. */
6056 for ac_lib
in '' socket
; do
6057 if test -z "$ac_lib"; then
6058 ac_res
="none required"
6061 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6063 if ac_fn_c_try_link
"$LINENO"; then :
6064 ac_cv_search_socket
=$ac_res
6066 rm -f core conftest.err conftest.
$ac_objext \
6068 if ${ac_cv_search_socket+:} false
; then :
6072 if ${ac_cv_search_socket+:} false
; then :
6075 ac_cv_search_socket
=no
6078 LIBS
=$ac_func_search_save_LIBS
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
6081 $as_echo "$ac_cv_search_socket" >&6; }
6082 ac_res
=$ac_cv_search_socket
6083 if test "$ac_res" != no
; then :
6084 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6087 as_fn_error $?
"You have no socket()! Aborting." "$LINENO" 5
6091 if test x
"$SUN" = xyes
; then
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
6093 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
6094 if ${ac_cv_search_inet_ntoa+:} false
; then :
6095 $as_echo_n "(cached) " >&6
6097 ac_func_search_save_LIBS
=$LIBS
6098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6099 /* end confdefs.h. */
6101 /* Override any GCC internal prototype to avoid an error.
6102 Use char because int might match the return type of a GCC
6103 builtin and then its argument prototype would still apply. */
6111 return inet_ntoa ();
6116 for ac_lib
in '' nsl
; do
6117 if test -z "$ac_lib"; then
6118 ac_res
="none required"
6121 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6123 if ac_fn_c_try_link
"$LINENO"; then :
6124 ac_cv_search_inet_ntoa
=$ac_res
6126 rm -f core conftest.err conftest.
$ac_objext \
6128 if ${ac_cv_search_inet_ntoa+:} false
; then :
6132 if ${ac_cv_search_inet_ntoa+:} false
; then :
6135 ac_cv_search_inet_ntoa
=no
6138 LIBS
=$ac_func_search_save_LIBS
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
6141 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
6142 ac_res
=$ac_cv_search_inet_ntoa
6143 if test "$ac_res" != no
; then :
6144 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6147 as_fn_error $?
"libnsl not found! Aborting." "$LINENO" 5
6152 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
6153 #include <sys/socket.h>
6155 if test "x$ac_cv_type_socklen_t" = xyes
; then :
6159 $as_echo "#define socklen_t unsigned int" >>confdefs.h
6164 # Check whether --enable-ipv6 was given.
6165 if test "${enable_ipv6+set}" = set; then :
6166 enableval
=$enable_ipv6; ipv6
=$enableval
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
6173 $as_echo_n "checking for library containing crypt... " >&6; }
6174 if ${ac_cv_search_crypt+:} false
; then :
6175 $as_echo_n "(cached) " >&6
6177 ac_func_search_save_LIBS
=$LIBS
6178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6179 /* end confdefs.h. */
6181 /* Override any GCC internal prototype to avoid an error.
6182 Use char because int might match the return type of a GCC
6183 builtin and then its argument prototype would still apply. */
6196 for ac_lib
in '' crypt descrypt
; do
6197 if test -z "$ac_lib"; then
6198 ac_res
="none required"
6201 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6203 if ac_fn_c_try_link
"$LINENO"; then :
6204 ac_cv_search_crypt
=$ac_res
6206 rm -f core conftest.err conftest.
$ac_objext \
6208 if ${ac_cv_search_crypt+:} false
; then :
6212 if ${ac_cv_search_crypt+:} false
; then :
6215 ac_cv_search_crypt
=no
6218 LIBS
=$ac_func_search_save_LIBS
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
6221 $as_echo "$ac_cv_search_crypt" >&6; }
6222 ac_res
=$ac_cv_search_crypt
6223 if test "$ac_res" != no
; then :
6224 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6229 CRYPT_LIB
=$ac_cv_search_crypt
6231 if test "$CRYPT_LIB" = "none required"; then
6233 elif test "$CRYPT_LIB" = no
; then
6239 if test "$ac_cv_header_sys_wait_h" = yes -o "$ac_cv_header_wait_h" = yes; then
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
6248 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
6249 if ${gcc_cv_header_string+:} false
; then :
6250 $as_echo_n "(cached) " >&6
6253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6254 /* end confdefs.h. */
6256 #include <strings.h>
6258 if ac_fn_c_try_compile
"$LINENO"; then :
6259 gcc_cv_header_string
=yes
6261 gcc_cv_header_string
=no
6263 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
6267 $as_echo "$gcc_cv_header_string" >&6; }
6269 if test "$gcc_cv_header_string" = "yes"; then
6271 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6276 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6277 if ${ac_cv_c_bigendian+:} false
; then :
6278 $as_echo_n "(cached) " >&6
6280 ac_cv_c_bigendian
=unknown
6281 # See if we're dealing with a universal compiler.
6282 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6283 /* end confdefs.h. */
6284 #ifndef __APPLE_CC__
6285 not a universal capable compiler
6290 if ac_fn_c_try_compile
"$LINENO"; then :
6292 # Check for potential -arch flags. It is not universal unless
6293 # there are at least two -arch flags with different values.
6296 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6297 if test -n "$ac_prev"; then
6299 i?
86 | x86_64
| ppc
| ppc64
)
6300 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6303 ac_cv_c_bigendian
=universal
6309 elif test "x$ac_word" = "x-arch"; then
6314 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6315 if test $ac_cv_c_bigendian = unknown
; then
6316 # See if sys/param.h defines the BYTE_ORDER macro.
6317 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6318 /* end confdefs.h. */
6319 #include <sys/types.h>
6320 #include <sys/param.h>
6325 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6326 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6335 if ac_fn_c_try_compile
"$LINENO"; then :
6336 # It does; now see whether it defined to BIG_ENDIAN or not.
6337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6338 /* end confdefs.h. */
6339 #include <sys/types.h>
6340 #include <sys/param.h>
6345 #if BYTE_ORDER != BIG_ENDIAN
6353 if ac_fn_c_try_compile
"$LINENO"; then :
6354 ac_cv_c_bigendian
=yes
6356 ac_cv_c_bigendian
=no
6358 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6360 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6362 if test $ac_cv_c_bigendian = unknown
; then
6363 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6364 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6365 /* end confdefs.h. */
6371 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6379 if ac_fn_c_try_compile
"$LINENO"; then :
6380 # It does; now see whether it defined to _BIG_ENDIAN or not.
6381 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6382 /* end confdefs.h. */
6396 if ac_fn_c_try_compile
"$LINENO"; then :
6397 ac_cv_c_bigendian
=yes
6399 ac_cv_c_bigendian
=no
6401 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6403 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6405 if test $ac_cv_c_bigendian = unknown
; then
6406 # Compile a test program.
6407 if test "$cross_compiling" = yes; then :
6408 # Try to guess by grepping values from an object file.
6409 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6410 /* end confdefs.h. */
6411 short int ascii_mm[] =
6412 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6413 short int ascii_ii[] =
6414 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6415 int use_ascii (int i) {
6416 return ascii_mm[i] + ascii_ii[i];
6418 short int ebcdic_ii[] =
6419 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6420 short int ebcdic_mm[] =
6421 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6422 int use_ebcdic (int i) {
6423 return ebcdic_mm[i] + ebcdic_ii[i];
6430 return use_ascii (foo) == use_ebcdic (foo);
6435 if ac_fn_c_try_compile
"$LINENO"; then :
6436 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
6437 ac_cv_c_bigendian
=yes
6439 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
6440 if test "$ac_cv_c_bigendian" = unknown
; then
6441 ac_cv_c_bigendian
=no
6443 # finding both strings is unlikely to happen, but who knows?
6444 ac_cv_c_bigendian
=unknown
6448 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6451 /* end confdefs.h. */
6452 $ac_includes_default
6457 /* Are we little or big endian? From Harbison&Steele. */
6461 char c[sizeof (long int)];
6464 return u.c[sizeof (long int) - 1] == 1;
6470 if ac_fn_c_try_run
"$LINENO"; then :
6471 ac_cv_c_bigendian
=no
6473 ac_cv_c_bigendian
=yes
6475 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6476 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6482 $as_echo "$ac_cv_c_bigendian" >&6; }
6483 case $ac_cv_c_bigendian in #(
6485 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6491 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6495 as_fn_error $?
"unknown endianness
6496 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6500 ac_fn_c_check_header_mongrel
"$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
6501 if test "x$ac_cv_header_stdarg_h" = xyes
; then :
6504 as_fn_error $?
"** stdarg.h could not be found - charybdis will not compile without it **" "$LINENO" 5
6510 if test "$ac_cv_c_compiler_gnu" = yes; then
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strlcpy" >&5
6513 $as_echo_n "checking for strlcpy... " >&6; }
6515 CFLAGS
="$CFLAGS -Wimplicit -Werror"
6517 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6518 /* end confdefs.h. */
6524 char *a = malloc(6);
6525 strlcpy(a, "hello", 6);
6531 if ac_fn_c_try_link
"$LINENO"; then :
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6533 $as_echo "yes" >&6; }
6535 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6539 $as_echo "no" >&6; }
6542 rm -f core conftest.err conftest.
$ac_objext \
6543 conftest
$ac_exeext conftest.
$ac_ext
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strlcat" >&5
6546 $as_echo_n "checking for strlcat... " >&6; }
6547 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6548 /* end confdefs.h. */
6554 char *a = malloc(6);
6556 strlcat(a, "hello", 6);
6562 if ac_fn_c_try_link
"$LINENO"; then :
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6564 $as_echo "yes" >&6; }
6566 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6570 $as_echo "no" >&6; }
6573 rm -f core conftest.err conftest.
$ac_objext \
6574 conftest
$ac_exeext conftest.
$ac_ext
6581 for ac_func
in strlcat strlcpy
6583 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6584 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6585 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6586 cat >>confdefs.h
<<_ACEOF
6587 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6596 ac_fn_c_check_type
"$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
6597 if test "x$ac_cv_type_u_int32_t" = xyes
; then :
6601 ac_fn_c_check_type
"$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
6602 if test "x$ac_cv_type_uint32_t" = xyes
; then :
6605 $as_echo "#define u_int32_t uint32_t" >>confdefs.h
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&5
6611 $as_echo "$as_me: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&2;}
6613 $as_echo "#define u_int32_t unsigned long int" >>confdefs.h
6622 ac_fn_c_check_type
"$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
6623 if test "x$ac_cv_type_u_int16_t" = xyes
; then :
6627 ac_fn_c_check_type
"$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
6628 if test "x$ac_cv_type_uint16_t" = xyes
; then :
6631 $as_echo "#define u_int16_t uint16_t" >>confdefs.h
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&5
6637 $as_echo "$as_me: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&2;}
6639 $as_echo "#define u_int16_t unsigned short int" >>confdefs.h
6648 ac_fn_c_check_type
"$LINENO" "in_port_t" "ac_cv_type_in_port_t" "#include <sys/types.h>
6649 #include <netinet/in.h>
6651 if test "x$ac_cv_type_in_port_t" = xyes
; then :
6655 $as_echo "#define in_port_t u_int16_t" >>confdefs.h
6660 ac_fn_c_check_type
"$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#include <sys/types.h>
6661 #include <sys/socket.h>
6663 if test "x$ac_cv_type_sa_family_t" = xyes
; then :
6667 $as_echo "#define sa_family_t u_int16_t" >>confdefs.h
6672 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6673 if test "x$ac_cv_type_uintptr_t" = xyes
; then :
6675 cat >>confdefs.h
<<_ACEOF
6676 #define HAVE_UINTPTR_T 1
6683 for ac_func
in socketpair vsnprintf mmap gettimeofday strdup strndup
6685 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6686 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6687 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6688 cat >>confdefs.h
<<_ACEOF
6689 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6696 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6697 # for constant arguments. Useless!
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6699 $as_echo_n "checking for working alloca.h... " >&6; }
6700 if ${ac_cv_working_alloca_h+:} false
; then :
6701 $as_echo_n "(cached) " >&6
6703 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6704 /* end confdefs.h. */
6709 char *p = (char *) alloca (2 * sizeof (int));
6715 if ac_fn_c_try_link
"$LINENO"; then :
6716 ac_cv_working_alloca_h
=yes
6718 ac_cv_working_alloca_h
=no
6720 rm -f core conftest.err conftest.
$ac_objext \
6721 conftest
$ac_exeext conftest.
$ac_ext
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6724 $as_echo "$ac_cv_working_alloca_h" >&6; }
6725 if test $ac_cv_working_alloca_h = yes; then
6727 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6732 $as_echo_n "checking for alloca... " >&6; }
6733 if ${ac_cv_func_alloca_works+:} false
; then :
6734 $as_echo_n "(cached) " >&6
6736 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6737 /* end confdefs.h. */
6739 # define alloca __builtin_alloca
6742 # include <malloc.h>
6743 # define alloca _alloca
6745 # ifdef HAVE_ALLOCA_H
6746 # include <alloca.h>
6751 # ifndef alloca /* predefined by HP cc +Olibcalls */
6752 void *alloca (size_t);
6762 char *p = (char *) alloca (1);
6768 if ac_fn_c_try_link
"$LINENO"; then :
6769 ac_cv_func_alloca_works
=yes
6771 ac_cv_func_alloca_works
=no
6773 rm -f core conftest.err conftest.
$ac_objext \
6774 conftest
$ac_exeext conftest.
$ac_ext
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6777 $as_echo "$ac_cv_func_alloca_works" >&6; }
6779 if test $ac_cv_func_alloca_works = yes; then
6781 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6784 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6785 # that cause trouble. Some versions do not even contain alloca or
6786 # contain a buggy version. If you still want to use their alloca,
6787 # use ar to extract alloca.o from them instead of compiling alloca.c.
6789 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
6791 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6795 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6796 if ${ac_cv_os_cray+:} false
; then :
6797 $as_echo_n "(cached) " >&6
6799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6800 /* end confdefs.h. */
6801 #if defined CRAY && ! defined CRAY2
6808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6809 $EGREP "webecray" >/dev
/null
2>&1; then :
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6818 $as_echo "$ac_cv_os_cray" >&6; }
6819 if test $ac_cv_os_cray = yes; then
6820 for ac_func
in _getb67 GETB67 getb67
; do
6821 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6822 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6823 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6825 cat >>confdefs.h
<<_ACEOF
6826 #define CRAY_STACKSEG_END $ac_func
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6836 $as_echo_n "checking stack direction for C alloca... " >&6; }
6837 if ${ac_cv_c_stack_direction+:} false
; then :
6838 $as_echo_n "(cached) " >&6
6840 if test "$cross_compiling" = yes; then :
6841 ac_cv_c_stack_direction
=0
6843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6844 /* end confdefs.h. */
6845 $ac_includes_default
6847 find_stack_direction ()
6849 static char *addr = 0;
6854 return find_stack_direction ();
6857 return (&dummy > addr) ? 1 : -1;
6863 return find_stack_direction () < 0;
6866 if ac_fn_c_try_run
"$LINENO"; then :
6867 ac_cv_c_stack_direction
=1
6869 ac_cv_c_stack_direction
=-1
6871 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6872 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6877 $as_echo "$ac_cv_c_stack_direction" >&6; }
6878 cat >>confdefs.h
<<_ACEOF
6879 #define STACK_DIRECTION $ac_cv_c_stack_direction
6887 ac_fn_c_check_func
"$LINENO" "nanosleep" "ac_cv_func_nanosleep"
6888 if test "x$ac_cv_func_nanosleep" = xyes
; then :
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
6892 $as_echo_n "checking for nanosleep in -lrt... " >&6; }
6893 if ${ac_cv_lib_rt_nanosleep+:} false
; then :
6894 $as_echo_n "(cached) " >&6
6896 ac_check_lib_save_LIBS
=$LIBS
6898 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6899 /* end confdefs.h. */
6901 /* Override any GCC internal prototype to avoid an error.
6902 Use char because int might match the return type of a GCC
6903 builtin and then its argument prototype would still apply. */
6911 return nanosleep ();
6916 if ac_fn_c_try_link
"$LINENO"; then :
6917 ac_cv_lib_rt_nanosleep
=yes
6919 ac_cv_lib_rt_nanosleep
=no
6921 rm -f core conftest.err conftest.
$ac_objext \
6922 conftest
$ac_exeext conftest.
$ac_ext
6923 LIBS
=$ac_check_lib_save_LIBS
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
6926 $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
6927 if test "x$ac_cv_lib_rt_nanosleep" = xyes
; then :
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lposix4" >&5
6931 $as_echo_n "checking for nanosleep in -lposix4... " >&6; }
6932 if ${ac_cv_lib_posix4_nanosleep+:} false
; then :
6933 $as_echo_n "(cached) " >&6
6935 ac_check_lib_save_LIBS
=$LIBS
6936 LIBS
="-lposix4 $LIBS"
6937 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6938 /* end confdefs.h. */
6940 /* Override any GCC internal prototype to avoid an error.
6941 Use char because int might match the return type of a GCC
6942 builtin and then its argument prototype would still apply. */
6950 return nanosleep ();
6955 if ac_fn_c_try_link
"$LINENO"; then :
6956 ac_cv_lib_posix4_nanosleep
=yes
6958 ac_cv_lib_posix4_nanosleep
=no
6960 rm -f core conftest.err conftest.
$ac_objext \
6961 conftest
$ac_exeext conftest.
$ac_ext
6962 LIBS
=$ac_check_lib_save_LIBS
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_nanosleep" >&5
6965 $as_echo "$ac_cv_lib_posix4_nanosleep" >&6; }
6966 if test "x$ac_cv_lib_posix4_nanosleep" = xyes
; then :
6967 LIBS
="${LIBS} -lposix4"
6975 if test x
$ac_cv_func_nanosleep = xno
&& test x
$ac_cv_lib_posix4_nanosleep = xno
&& test x
$ac_cv_lib_rt_nanosleep = xno
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"nanosleep not found..using select for delay\"" >&5
6978 $as_echo "\"nanosleep not found..using select for delay\"" >&6; }
6981 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
6986 $as_echo_n "checking for OpenSSL... " >&6; }
6987 # Check whether --enable-openssl was given.
6988 if test "${enable_openssl+set}" = set; then :
6989 enableval
=$enable_openssl; cf_enable_openssl
=$enableval
6991 cf_enable_openssl
="auto"
6995 if test "$cf_enable_openssl" != "no" ; then
6996 cf_openssl_basedir
=""
6997 if test "$cf_enable_openssl" != "auto" &&
6998 test "$cf_enable_openssl" != "yes" ; then
6999 cf_openssl_basedir
="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
7001 for dirs in /usr
/local
/ssl
/usr
/pkg
/usr
/local \
7002 /usr
/local
/openssl
; do
7003 if test -f "${dirs}/include/openssl/opensslv.h" ; then
7004 cf_openssl_basedir
="${dirs}"
7010 if test ! -z "$cf_openssl_basedir"; then
7011 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
7012 SSL_INCLUDES
="-I${cf_openssl_basedir}/include"
7013 SSL_LIBS
="-L${cf_openssl_basedir}/lib"
7015 cf_openssl_basedir
=""
7018 if test -f "/usr/include/openssl/opensslv.h" ; then
7019 cf_openssl_basedir
="/usr"
7023 if test ! -z "$cf_openssl_basedir"; then
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
7025 $as_echo "$cf_openssl_basedir" >&6; }
7026 cf_enable_openssl
="yes"
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Specify a correct path?" >&5
7029 $as_echo "not found. Specify a correct path?" >&6; }
7030 cf_enable_openssl
="no"
7032 unset cf_openssl_basedir
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7035 $as_echo "disabled" >&6; }
7038 save_CPPFLAGS
="$CPPFLAGS"
7039 CPPFLAGS
="$CPPFLAGS $SSL_INCLUDES"
7041 LIBS
="$LIBS $SSL_LIBS"
7042 if test "$cf_enable_openssl" != no
; then
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.6 or above" >&5
7044 $as_echo_n "checking for OpenSSL 0.9.6 or above... " >&6; }
7045 if test "$cross_compiling" = yes; then :
7046 cf_openssl_version_ok
=no
7048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7049 /* end confdefs.h. */
7050 #include <openssl/opensslv.h>
7055 if ( OPENSSL_VERSION_NUMBER >= 0x00906000)
7056 exit(0); else exit(1);
7061 if ac_fn_c_try_run
"$LINENO"; then :
7062 cf_openssl_version_ok
=yes
7064 cf_openssl_version_ok
=no
7066 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7067 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7071 if test "$cf_openssl_version_ok" = yes; then
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
7073 $as_echo "found" >&6; }
7078 CPPFLAGS
="$CPPFLAGS $SSL_LIBS"
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
7080 $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
7081 if ${ac_cv_lib_crypto_RSA_free+:} false
; then :
7082 $as_echo_n "(cached) " >&6
7084 ac_check_lib_save_LIBS
=$LIBS
7085 LIBS
="-lcrypto $LIBS"
7086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7087 /* end confdefs.h. */
7089 /* Override any GCC internal prototype to avoid an error.
7090 Use char because int might match the return type of a GCC
7091 builtin and then its argument prototype would still apply. */
7104 if ac_fn_c_try_link
"$LINENO"; then :
7105 ac_cv_lib_crypto_RSA_free
=yes
7107 ac_cv_lib_crypto_RSA_free
=no
7109 rm -f core conftest.err conftest.
$ac_objext \
7110 conftest
$ac_exeext conftest.
$ac_ext
7111 LIBS
=$ac_check_lib_save_LIBS
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
7114 $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
7115 if test "x$ac_cv_lib_crypto_RSA_free" = xyes
; then :
7116 cat >>confdefs.h
<<_ACEOF
7117 #define HAVE_LIBCRYPTO 1
7120 LIBS
="-lcrypto $LIBS"
7124 SSL_LIBS
="$SSL_LIBS -lcrypto"
7125 SSL_SRCS_ENABLE
='$(SSL_SRCS)'
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
7128 $as_echo "no - OpenSSL support disabled" >&6; }
7132 CPPFLAGS
="$save_CPPFLAGS"
7139 # Check whether --with-zlib-path was given.
7140 if test "${with_zlib_path+set}" = set; then :
7141 withval
=$with_zlib_path; LIBS
="$LIBS -L$withval"
7145 # Check whether --enable-zlib was given.
7146 if test "${enable_zlib+set}" = set; then :
7147 enableval
=$enable_zlib; zlib
=$enableval
7153 if test "$zlib" = yes; then
7155 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
7156 if test "x$ac_cv_header_zlib_h" = xyes
; then :
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
7159 $as_echo_n "checking for zlibVersion in -lz... " >&6; }
7160 if ${ac_cv_lib_z_zlibVersion+:} false
; then :
7161 $as_echo_n "(cached) " >&6
7163 ac_check_lib_save_LIBS
=$LIBS
7165 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7166 /* end confdefs.h. */
7168 /* Override any GCC internal prototype to avoid an error.
7169 Use char because int might match the return type of a GCC
7170 builtin and then its argument prototype would still apply. */
7174 char zlibVersion ();
7178 return zlibVersion ();
7183 if ac_fn_c_try_link
"$LINENO"; then :
7184 ac_cv_lib_z_zlibVersion
=yes
7186 ac_cv_lib_z_zlibVersion
=no
7188 rm -f core conftest.err conftest.
$ac_objext \
7189 conftest
$ac_exeext conftest.
$ac_ext
7190 LIBS
=$ac_check_lib_save_LIBS
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
7193 $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
7194 if test "x$ac_cv_lib_z_zlibVersion" = xyes
; then :
7199 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
7216 # Check whether --enable-ports was given.
7217 if test "${enable_ports+set}" = set; then :
7218 enableval
=$enable_ports; if test $enableval = yes; then
7219 SELECT_TYPE_EXPLICIT
="ports"
7227 # Check whether --enable-poll was given.
7228 if test "${enable_poll+set}" = set; then :
7229 enableval
=$enable_poll; if test $enableval = yes; then
7230 SELECT_TYPE_EXPLICIT
="poll"
7238 # Check whether --enable-select was given.
7239 if test "${enable_select+set}" = set; then :
7240 enableval
=$enable_select; if test $enableval = yes; then
7241 SELECT_TYPE_EXPLICIT
="select"
7249 # Check whether --enable-kqueue was given.
7250 if test "${enable_kqueue+set}" = set; then :
7251 enableval
=$enable_kqueue; if test $enableval = yes; then
7252 SELECT_TYPE_EXPLICIT
="kqueue"
7260 # Check whether --enable-epoll was given.
7261 if test "${enable_epoll+set}" = set; then :
7262 enableval
=$enable_epoll; if test $enableval = yes; then
7263 SELECT_TYPE_EXPLICIT
="epoll"
7264 for ac_func
in epoll_ctl
7266 ac_fn_c_check_func
"$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
7267 if test "x$ac_cv_func_epoll_ctl" = xyes
; then :
7268 cat >>confdefs.h
<<_ACEOF
7269 #define HAVE_EPOLL_CTL 1
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify confdir" >&5
7286 $as_echo_n "checking whether to modify confdir... " >&6; }
7288 # Check whether --with-confdir was given.
7289 if test "${with_confdir+set}" = set; then :
7290 withval
=$with_confdir; confdir
=`echo $withval | sed 's/\/$//'`
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7292 $as_echo "yes" >&6; }
7294 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7295 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7296 last_ac_define_dir
=`eval echo $confdir`
7297 ac_define_dir
=`eval echo $last_ac_define_dir`
7298 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
7299 last_ac_define_dir
="$ac_define_dir"
7300 ac_define_dir
=`eval echo $last_ac_define_dir`
7302 ETC_DIR
="$ac_define_dir"
7305 cat >>confdefs.h
<<_ACEOF
7306 #define ETC_DIR "$ac_define_dir"
7313 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7314 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7315 eval echo \""$confdir"\"
7320 confdir
='${sysconfdir}'
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7322 $as_echo "no" >&6; }
7324 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7325 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7326 last_ac_define_dir
=`eval echo $confdir`
7327 ac_define_dir
=`eval echo $last_ac_define_dir`
7328 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
7329 last_ac_define_dir
="$ac_define_dir"
7330 ac_define_dir
=`eval echo $last_ac_define_dir`
7332 ETC_DIR
="$ac_define_dir"
7335 cat >>confdefs.h
<<_ACEOF
7336 #define ETC_DIR "$ac_define_dir"
7343 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7344 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7345 eval echo \""$confdir"\"
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify logdir" >&5
7355 $as_echo_n "checking whether to modify logdir... " >&6; }
7357 # Check whether --with-logdir was given.
7358 if test "${with_logdir+set}" = set; then :
7359 withval
=$with_logdir; logdir
=`echo $withval | sed 's/\/$//'`
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7361 $as_echo "yes" >&6; }
7363 if test "x$enable_fhs_paths" = "xyes"; then :
7364 logdir
='${localstatedir}/log/${PACKAGE_TARNAME}'
7366 logdir
='${prefix}/logs'
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7369 $as_echo "no" >&6; }
7373 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7374 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7375 last_ac_define_dir
=`eval echo $logdir`
7376 ac_define_dir
=`eval echo $last_ac_define_dir`
7377 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
7378 last_ac_define_dir
="$ac_define_dir"
7379 ac_define_dir
=`eval echo $last_ac_define_dir`
7381 LOG_DIR
="$ac_define_dir"
7384 cat >>confdefs.h
<<_ACEOF
7385 #define LOG_DIR "$ac_define_dir"
7392 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7393 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7394 eval echo \""$logdir"\"
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify helpdir" >&5
7401 $as_echo_n "checking whether to modify helpdir... " >&6; }
7403 # Check whether --with-helpdir was given.
7404 if test "${with_helpdir+set}" = set; then :
7405 withval
=$with_helpdir; helpdir
=`echo $withval | sed 's/\/$//'`
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7407 $as_echo "yes" >&6; }
7409 if test "x$enable_fhs_paths" = "xyes"; then :
7410 helpdir
='${datadir}/${PACKAGE_TARNAME}/help'
7412 helpdir
='${prefix}/help'
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7415 $as_echo "no" >&6; }
7419 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7420 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7421 last_ac_define_dir
=`eval echo $helpdir`
7422 ac_define_dir
=`eval echo $last_ac_define_dir`
7423 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
7424 last_ac_define_dir
="$ac_define_dir"
7425 ac_define_dir
=`eval echo $last_ac_define_dir`
7427 HELP_DIR
="$ac_define_dir"
7430 cat >>confdefs.h
<<_ACEOF
7431 #define HELP_DIR "$ac_define_dir"
7438 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7439 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7440 eval echo \""$helpdir"\"
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify moduledir" >&5
7447 $as_echo_n "checking whether to modify moduledir... " >&6; }
7449 # Check whether --with-moduledir was given.
7450 if test "${with_moduledir+set}" = set; then :
7451 withval
=$with_moduledir; moduledir
=`echo $withval | sed 's/\/$//'`
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7453 $as_echo "yes" >&6; }
7455 if test "x$enable_fhs_paths" = "xyes"; then :
7456 moduledir
='${pkglibdir}/modules'
7458 moduledir
='${prefix}/modules'
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7461 $as_echo "no" >&6; }
7466 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7467 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7468 last_ac_define_dir
=`eval echo $moduledir`
7469 ac_define_dir
=`eval echo $last_ac_define_dir`
7470 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
7471 last_ac_define_dir
="$ac_define_dir"
7472 ac_define_dir
=`eval echo $last_ac_define_dir`
7474 MODULE_DIR
="$ac_define_dir"
7477 cat >>confdefs.h
<<_ACEOF
7478 #define MODULE_DIR "$ac_define_dir"
7485 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7486 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7487 eval echo \""$moduledir"\"
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or modify rundir" >&5
7494 $as_echo_n "checking whether or modify rundir... " >&6; }
7496 # Check whether --with-rundir was given.
7497 if test "${with_rundir+set}" = set; then :
7498 withval
=$with_rundir; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7499 $as_echo "yes" >&6; }
7500 rundir
=`echo $withval | sed 's/\/$//'`
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7503 $as_echo "no" >&6; }
7504 if test "x$enable_fhs_paths" = "xyes"; then :
7505 rundir
='${prefix}/run'
7507 rundir
='${sysconfdir}'
7513 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7514 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7515 last_ac_define_dir
=`eval echo $pkgrundir`
7516 ac_define_dir
=`eval echo $last_ac_define_dir`
7517 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
7518 last_ac_define_dir
="$ac_define_dir"
7519 ac_define_dir
=`eval echo $last_ac_define_dir`
7521 PKGRUNDIR
="$ac_define_dir"
7524 cat >>confdefs.h
<<_ACEOF
7525 #define PKGRUNDIR "$ac_define_dir"
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for program prefix" >&5
7531 $as_echo_n "checking for program prefix... " >&6; }
7533 # Check whether --with-program-prefix was given.
7534 if test "${with_program_prefix+set}" = set; then :
7535 withval
=$with_program_prefix; test "x$with_program_prefix" = "xno" && with_program_prefix
=
7537 with_program_prefix
=
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_program_prefix\"" >&5
7541 $as_echo "\"$with_program_prefix\"" >&6; }
7542 PROGRAM_PREFIX
="$with_program_prefix"
7545 cat >>confdefs.h
<<_ACEOF
7546 #define PROGRAM_PREFIX "$with_program_prefix"
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether custom branding is requested" >&5
7552 $as_echo_n "checking whether custom branding is requested... " >&6; }
7554 # Check whether --with-custom-branding was given.
7555 if test "${with_custom_branding+set}" = set; then :
7556 withval
=$with_custom_branding; BRANDING_NAME
=$withval
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7558 $as_echo "yes" >&6; }
7560 BRANDING_NAME
=$PACKAGE_NAME
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7562 $as_echo "no" >&6; }
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a custom version is requested" >&5
7568 $as_echo_n "checking whether a custom version is requested... " >&6; }
7570 # Check whether --with-custom-version was given.
7571 if test "${with_custom_version+set}" = set; then :
7572 withval
=$with_custom_version; BRANDING_VERSION
=$withval
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7574 $as_echo "yes" >&6; }
7576 BRANDING_VERSION
=$PACKAGE_VERSION
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7578 $as_echo "no" >&6; }
7584 cat >>confdefs.h
<<_ACEOF
7585 #define BRANDING_NAME "$BRANDING_NAME"
7589 cat >>confdefs.h
<<_ACEOF
7590 #define BRANDING_VERSION "$BRANDING_VERSION"
7594 if test "x$BRANDING_NAME" != "x$PACKAGE_NAME"; then
7596 $as_echo "#define CUSTOM_BRANDING 1" >>confdefs.h
7600 if test ! -z "$SELECT_TYPE_EXPLICIT"; then
7601 SELECT_TYPE
="$SELECT_TYPE_EXPLICIT";
7602 echo "Forcing $SELECT_TYPE to be enabled"
7605 if test ! "x$use_ports" = "xno"; then
7606 for ac_func
in port_getn
7608 ac_fn_c_check_func
"$LINENO" "port_getn" "ac_cv_func_port_getn"
7609 if test "x$ac_cv_func_port_getn" = xyes
; then :
7610 cat >>confdefs.h
<<_ACEOF
7611 #define HAVE_PORT_GETN 1
7619 if test "x$haveports" = "xyes" ; then
7624 if test ! "x$use_select" = "xno"; then
7625 for ac_func
in select
7627 ac_fn_c_check_func
"$LINENO" "select" "ac_cv_func_select"
7628 if test "x$ac_cv_func_select" = xyes
; then :
7629 cat >>confdefs.h
<<_ACEOF
7630 #define HAVE_SELECT 1
7638 if test "x$haveselect" = "xyes" ; then
7639 SELECT_TYPE
="select"
7643 if test ! "x$use_poll" = "xno"; then
7646 ac_fn_c_check_func
"$LINENO" "poll" "ac_cv_func_poll"
7647 if test "x$ac_cv_func_poll" = xyes
; then :
7648 cat >>confdefs.h
<<_ACEOF
7657 if test "x$havepoll" = "xyes" ; then
7662 if test ! "x$use_kqueue" = "xno"; then
7663 for ac_func
in kevent
7665 ac_fn_c_check_func
"$LINENO" "kevent" "ac_cv_func_kevent"
7666 if test "x$ac_cv_func_kevent" = xyes
; then :
7667 cat >>confdefs.h
<<_ACEOF
7668 #define HAVE_KEVENT 1
7676 if test "x$havekqueue" = "xyes" ; then
7677 SELECT_TYPE
="kqueue"
7681 if test ! "x$use_epoll" = "xno"; then
7682 for ac_func
in epoll_ctl
7684 ac_fn_c_check_func
"$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
7685 if test "x$ac_cv_func_epoll_ctl" = xyes
; then :
7686 cat >>confdefs.h
<<_ACEOF
7687 #define HAVE_EPOLL_CTL 1
7695 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
7696 if test "x$haveepoll" = "xyes" ; then
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll support in kernel" >&5
7698 $as_echo_n "checking for epoll support in kernel... " >&6; }
7699 if test "$cross_compiling" = yes; then :
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7701 $as_echo "no" >&6; }
7703 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7704 /* end confdefs.h. */
7706 #include <sys/param.h>
7707 #include <sys/types.h>
7708 #include <sys/epoll.h>
7709 #include <sys/syscall.h>
7713 main(int argc, char **argv)
7717 epfd = epoll_create(256);
7718 return (epfd == -1 ? 1 : 0);
7721 if ac_fn_c_try_run
"$LINENO"; then :
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7723 $as_echo "yes" >&6; }
7725 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7730 $as_echo "no" >&6; }
7732 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7733 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7741 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
7742 if test "x$haveepoll" = "xno" ; then
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5
7744 $as_echo_n "checking for epoll system call... " >&6; }
7745 if test "$cross_compiling" = yes; then :
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7747 $as_echo "no" >&6; }
7749 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7750 /* end confdefs.h. */
7752 #include <sys/param.h>
7753 #include <sys/types.h>
7754 #include <sys/epoll.h>
7755 #include <sys/syscall.h>
7759 epoll_create(int size)
7761 return (syscall(__NR_epoll_create, size));
7765 main(int argc, char **argv)
7769 epfd = epoll_create(256);
7770 exit (epfd == -1 ? 1 : 0);
7773 if ac_fn_c_try_run
"$LINENO"; then :
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7775 $as_echo "yes" >&6; }
7777 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7782 $as_echo "no" >&6; }
7784 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7785 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7795 if test -z "$SELECT_TYPE"; then
7796 as_fn_error $?
"Unable to find a usable IO interface" "$LINENO" 5
7799 echo "Using $SELECT_TYPE for select loop."
7802 cat >>confdefs.h
<<_ACEOF
7803 #define SELECT_TYPE "$SELECT_TYPE"
7810 # Check whether --enable-assert was given.
7811 if test "${enable_assert+set}" = set; then :
7812 enableval
=$enable_assert; assert
=$enableval
7818 if test "$assert" = no
; then
7820 $as_echo "#define NDEBUG 1" >>confdefs.h
7822 elif test "$assert" = soft
; then
7824 $as_echo "#define SOFT_ASSERT 1" >>confdefs.h
7827 $as_echo "#define NDEBUG 1" >>confdefs.h
7829 elif test "$assert" = yes; then
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want IO Debugging hooks" >&5
7834 $as_echo_n "checking if you want IO Debugging hooks... " >&6; }
7835 # Check whether --enable-iodebug was given.
7836 if test "${enable_iodebug+set}" = set; then :
7837 enableval
=$enable_iodebug; iodebug
=$enableval
7843 if test "$iodebug" = yes; then
7845 $as_echo "#define USE_IODEBUG_HOOKS 1" >>confdefs.h
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7848 $as_echo "yes" >&6; }
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7851 $as_echo "no" >&6; }
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want to do a profile build" >&5
7856 $as_echo_n "checking if you want to do a profile build... " >&6; }
7857 # Check whether --enable-profile was given.
7858 if test "${enable_profile+set}" = set; then :
7859 enableval
=$enable_profile; profile
=$enableval
7865 if test "$profile" = yes; then
7866 if test "$ac_cv_c_compiler_gnu" = yes; then
7867 IRC_CFLAGS
="$IRC_CFLAGS -pg"
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, adding -pg" >&5
7869 $as_echo "yes, adding -pg" >&6; }
7871 $as_echo "#define CHARYBDIS_PROFILE 1" >>confdefs.h
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, profile builds only work with gcc" >&5
7875 $as_echo "no, profile builds only work with gcc" >&6; }
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7879 $as_echo "no" >&6; }
7882 # Check whether --enable-balloc was given.
7883 if test "${enable_balloc+set}" = set; then :
7884 enableval
=$enable_balloc; balloc
=$enableval
7890 if test "$balloc" = no
; then
7892 $as_echo "#define NOBALLOC 1" >>confdefs.h
7896 # Check whether --enable-small-net was given.
7897 if test "${enable_small_net+set}" = set; then :
7898 enableval
=$enable_small_net; small_net
=$enableval
7904 if test "$small_net" = yes; then
7906 $as_echo "#define NICKNAMEHISTORYLENGTH 1500" >>confdefs.h
7909 $as_echo "#define CHANNEL_HEAP_SIZE 256" >>confdefs.h
7912 $as_echo "#define BAN_HEAP_SIZE 128" >>confdefs.h
7915 $as_echo "#define CLIENT_HEAP_SIZE 256" >>confdefs.h
7918 $as_echo "#define LCLIENT_HEAP_SIZE 128" >>confdefs.h
7921 $as_echo "#define PCLIENT_HEAP_SIZE 32" >>confdefs.h
7924 $as_echo "#define USER_HEAP_SIZE 128" >>confdefs.h
7927 $as_echo "#define DNODE_HEAP_SIZE 256" >>confdefs.h
7930 $as_echo "#define TOPIC_HEAP_SIZE 256" >>confdefs.h
7933 $as_echo "#define LINEBUF_HEAP_SIZE 128" >>confdefs.h
7936 $as_echo "#define MEMBER_HEAP_SIZE 256" >>confdefs.h
7939 $as_echo "#define ND_HEAP_SIZE 128" >>confdefs.h
7942 $as_echo "#define CONFITEM_HEAP_SIZE 128" >>confdefs.h
7945 $as_echo "#define MONITOR_HEAP_SIZE 128" >>confdefs.h
7948 $as_echo "#define FD_HEAP_SIZE 128" >>confdefs.h
7951 $as_echo "#define AWAY_HEAP_SIZE 128" >>confdefs.h
7955 $as_echo "#define NICKNAMEHISTORYLENGTH 15000" >>confdefs.h
7958 $as_echo "#define CHANNEL_HEAP_SIZE 8192" >>confdefs.h
7961 $as_echo "#define BAN_HEAP_SIZE 4096" >>confdefs.h
7964 $as_echo "#define CLIENT_HEAP_SIZE 8192" >>confdefs.h
7967 $as_echo "#define LCLIENT_HEAP_SIZE 1024" >>confdefs.h
7970 $as_echo "#define PCLIENT_HEAP_SIZE 256" >>confdefs.h
7973 $as_echo "#define USER_HEAP_SIZE 8192" >>confdefs.h
7976 $as_echo "#define DNODE_HEAP_SIZE 8192" >>confdefs.h
7979 $as_echo "#define TOPIC_HEAP_SIZE 4096" >>confdefs.h
7982 $as_echo "#define LINEBUF_HEAP_SIZE 2048" >>confdefs.h
7985 $as_echo "#define MEMBER_HEAP_SIZE 32768" >>confdefs.h
7988 $as_echo "#define ND_HEAP_SIZE 512" >>confdefs.h
7991 $as_echo "#define CONFITEM_HEAP_SIZE 256" >>confdefs.h
7994 $as_echo "#define MONITOR_HEAP_SIZE 1024" >>confdefs.h
7997 $as_echo "#define FD_HEAP_SIZE 1024" >>confdefs.h
8000 $as_echo "#define AWAY_HEAP_SIZE 512" >>confdefs.h
8005 # Check whether --with-nicklen was given.
8006 if test "${with_nicklen+set}" = set; then :
8007 withval
=$with_nicklen;
8008 if ! expr "$withval" + 0 >/dev
/null
2>&1; then
8009 as_fn_error $?
"NICKLEN must be a numeric value" "$LINENO" 5
8011 if test $withval -gt 50; then
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&5
8014 $as_echo "$as_me: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&2;}
8015 elif test $withval -lt 9; then
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NICKLEN has a lower limit of 9. Setting NICKLEN=9" >&5
8018 $as_echo "$as_me: WARNING: NICKLEN has a lower limit of 9. Setting NICKLEN=9" >&2;}
8029 # Check whether --with-topiclen was given.
8030 if test "${with_topiclen+set}" = set; then :
8031 withval
=$with_topiclen;
8032 if test $withval -ge 390; then
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&5
8035 $as_echo "$as_me: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&2;}
8046 cat >>confdefs.h
<<_ACEOF
8047 #define TOPICLEN ${TOPICLEN}
8051 cat >>confdefs.h
<<_ACEOF
8052 #define NICKLEN (${NICKLEN}+1)
8056 shared_modules
="yes"
8057 if test "$shared_modules" = yes; then
8058 if test "$CC" = tcc
-a "$TenDRA" = "no"; then
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&5
8060 $as_echo "$as_me: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&2;}
8065 if test "$shared_modules" = yes; then
8067 for ac_header
in dlfcn.h
8069 ac_fn_c_check_header_mongrel
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
8070 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
8071 cat >>confdefs.h
<<_ACEOF
8072 #define HAVE_DLFCN_H 1
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5
8080 $as_echo_n "checking for library containing shl_load... " >&6; }
8081 if ${ac_cv_search_shl_load+:} false
; then :
8082 $as_echo_n "(cached) " >&6
8084 ac_func_search_save_LIBS
=$LIBS
8085 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8086 /* end confdefs.h. */
8088 /* Override any GCC internal prototype to avoid an error.
8089 Use char because int might match the return type of a GCC
8090 builtin and then its argument prototype would still apply. */
8103 for ac_lib
in '' dld
; do
8104 if test -z "$ac_lib"; then
8105 ac_res
="none required"
8108 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8110 if ac_fn_c_try_link
"$LINENO"; then :
8111 ac_cv_search_shl_load
=$ac_res
8113 rm -f core conftest.err conftest.
$ac_objext \
8115 if ${ac_cv_search_shl_load+:} false
; then :
8119 if ${ac_cv_search_shl_load+:} false
; then :
8122 ac_cv_search_shl_load
=no
8125 LIBS
=$ac_func_search_save_LIBS
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5
8128 $as_echo "$ac_cv_search_shl_load" >&6; }
8129 ac_res
=$ac_cv_search_shl_load
8130 if test "$ac_res" != no
; then :
8131 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8134 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
8137 MOD_TARGET
=hpux_shared
8138 SEDOBJ
="s/\.o/.sl/g"
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
8143 $as_echo_n "checking for library containing dlopen... " >&6; }
8144 if ${ac_cv_search_dlopen+:} false
; then :
8145 $as_echo_n "(cached) " >&6
8147 ac_func_search_save_LIBS
=$LIBS
8148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8149 /* end confdefs.h. */
8151 /* Override any GCC internal prototype to avoid an error.
8152 Use char because int might match the return type of a GCC
8153 builtin and then its argument prototype would still apply. */
8166 for ac_lib
in '' dl c_r
; do
8167 if test -z "$ac_lib"; then
8168 ac_res
="none required"
8171 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8173 if ac_fn_c_try_link
"$LINENO"; then :
8174 ac_cv_search_dlopen
=$ac_res
8176 rm -f core conftest.err conftest.
$ac_objext \
8178 if ${ac_cv_search_dlopen+:} false
; then :
8182 if ${ac_cv_search_dlopen+:} false
; then :
8185 ac_cv_search_dlopen
=no
8188 LIBS
=$ac_func_search_save_LIBS
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
8191 $as_echo "$ac_cv_search_dlopen" >&6; }
8192 ac_res
=$ac_cv_search_dlopen
8193 if test "$ac_res" != no
; then :
8194 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8197 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
8200 MOD_TARGET
=shared_modules
8201 SEDOBJ
="s/\.o/.so/g"
8202 if test "$AppleGCC" = yes; then
8203 for ac_header
in mach
-o/dyld.h
8205 ac_fn_c_check_header_mongrel
"$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default"
8206 if test "x$ac_cv_header_mach_o_dyld_h" = xyes
; then :
8207 cat >>confdefs.h
<<_ACEOF
8208 #define HAVE_MACH_O_DYLD_H 1
8216 ac_fn_c_check_func
"$LINENO" "dlsym" "ac_cv_func_dlsym"
8217 if test "x$ac_cv_func_dlsym" = xyes
; then :
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dlsym is not available, shared modules disabled" >&5
8222 $as_echo "$as_me: WARNING: dlsym is not available, shared modules disabled" >&2;}
8227 for ac_func
in dlfunc
8229 ac_fn_c_check_func
"$LINENO" "dlfunc" "ac_cv_func_dlfunc"
8230 if test "x$ac_cv_func_dlfunc" = xyes
; then :
8231 cat >>confdefs.h
<<_ACEOF
8232 #define HAVE_DLFUNC 1
8251 cat >>confdefs.h
<<_ACEOF
8252 #define SHARED_SUFFIX "$SUFFIX"
8256 if test "$shared_modules" = yes; then
8257 # The GNU linker requires the -export-dynamic option to make
8258 # all symbols visible in the dynamic symbol table.
8259 hold_ldflags
=$LDFLAGS
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -export-dynamic flag" >&5
8261 $as_echo_n "checking for the ld -export-dynamic flag... " >&6; }
8262 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic -Werror"
8263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8264 /* end confdefs.h. */
8274 if ac_fn_c_try_link
"$LINENO"; then :
8279 rm -f core conftest.err conftest.
$ac_objext \
8280 conftest
$ac_exeext conftest.
$ac_ext
8281 LDFLAGS
=$hold_ldflags
8283 if expr "`uname -s`" : ^IRIX
>/dev
/null
2>&1; then
8284 found
="no, IRIX ld uses -B,dynamic"
8285 LDFLAGS
="${LDFLAGS} -Wl,-B,dynamic"
8288 if expr "`uname -s`" : ^AIX
>/dev
/null
2>&1; then
8289 found
="no, AIX ld uses -G -brtl"
8290 LDFLAGS
="${LDFLAGS} -Wl,-G,-brtl"
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
8294 $as_echo "$found" >&6; }
8296 if test "$found" = yes; then
8297 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic"
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option to produce PIC" >&5
8301 $as_echo_n "checking for compiler option to produce PIC... " >&6; }
8302 if test "$SGS" = "yes"; then
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SVR4 SGS interfaces: -KPIC -DPIC -G" >&5
8304 $as_echo "SVR4 SGS interfaces: -KPIC -DPIC -G" >&6; }
8305 PICFLAGS
="-KPIC -DPIC -G"
8308 if test "$AppleGCC" = "yes"; then
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&5
8310 $as_echo "Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&6; }
8311 PICFLAGS
="-fno-common -bundle -flat_namespace -undefined suppress"
8313 if test "$HPUX" = "yes" -a "$CC" != gcc
; then
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: HP-UX cc: +z -r -q -n" >&5
8315 $as_echo "HP-UX cc: +z -r -q -n" >&6; }
8316 PICFLAGS
="+z -r -q -n -c"
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if +ESfic is required on this platform" >&5
8318 $as_echo_n "checking if +ESfic is required on this platform... " >&6; }
8320 if expr "`$CC +ESfic 2>&1`" : ".*neither supported.*" >/dev
/null
; then
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8322 $as_echo "no" >&6; }
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8325 $as_echo "yes" >&6; }
8326 PICFLAGS
="$PICFLAGS +ESfic"
8329 LDFLAGS
="${LDFLAGS} -Wl,-E"
8331 if test "$Tru" = yes -a "$CC" != gcc
; then
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Tru64: -shared -expect_unresolved '*'" >&5
8333 $as_echo "Tru64: -shared -expect_unresolved '*'" >&6; }
8334 PICFLAGS
="-shared -expect_unresolved '*' "
8335 LDFLAGS
="-call_shared"
8337 if test -z "$PICFLAGS"; then
8338 if test "$ac_cv_c_compiler_gnu" = "yes"; then
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gcc: -fPIC -DPIC -shared" >&5
8340 $as_echo "gcc: -fPIC -DPIC -shared" >&6; }
8341 PICFLAGS
="-fPIC -DPIC -shared"
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8344 $as_echo "no" >&6; }
8350 # rpath, for finding libratbox.so at run time
8351 hold_ldflags
=$LDFLAGS
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -rpath flag" >&5
8353 $as_echo_n "checking for the ld -rpath flag... " >&6; }
8354 LDFLAGS
="${LDFLAGS} -Wl,-rpath=${libdir}"
8355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8356 /* end confdefs.h. */
8366 if ac_fn_c_try_link
"$LINENO"; then :
8371 rm -f core conftest.err conftest.
$ac_objext \
8372 conftest
$ac_exeext conftest.
$ac_ext
8373 LDFLAGS
=$hold_ldflags
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
8375 $as_echo "$found" >&6; }
8376 if test "$found" = yes; then
8377 LDFLAGS
="${LDFLAGS} -Wl,-rpath=\${libdir}"
8380 # This must be down here, or it will mess up checks like the ones
8381 # for -Wl,-export-dynamic
8384 # Check whether --enable-warnings was given.
8385 if test "${enable_warnings+set}" = set; then :
8386 enableval
=$enable_warnings;
8387 IRC_CFLAGS
="$IRC_CFLAGS -O0"
8388 CFLAGS
="$IRC_CFLAGS"
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wall" >&5
8392 $as_echo_n "checking GCC flag(s) -Wall... " >&6; }
8393 if test "${GCC-no}" = yes
8395 if ${charybdis_cv_c_gcc_w_all+:} false
; then :
8396 $as_echo_n "(cached) " >&6
8399 oldcflags
="${CFLAGS-}"
8400 CFLAGS
="${CFLAGS-} ${CWARNS} -Wall -Werror"
8401 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8402 /* end confdefs.h. */
8412 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8418 if ac_fn_c_try_compile
"$LINENO"; then :
8419 charybdis_cv_c_gcc_w_all
=yes
8421 charybdis_cv_c_gcc_w_all
=no
8423 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8424 CFLAGS
="${oldcflags}"
8427 if test "x$charybdis_cv_c_gcc_w_all" = xyes
; then
8428 CWARNS
="${CWARNS}-Wall "
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8430 $as_echo "ok" >&6; }
8432 charybdis_cv_c_gcc_w_all
=''
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8434 $as_echo "no" >&6; }
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8438 $as_echo "no" >&6; }
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpointer-arith" >&5
8443 $as_echo_n "checking GCC flag(s) -Wpointer-arith... " >&6; }
8444 if test "${GCC-no}" = yes
8446 if ${charybdis_cv_c_gcc_w_pointer_arith+:} false
; then :
8447 $as_echo_n "(cached) " >&6
8450 oldcflags
="${CFLAGS-}"
8451 CFLAGS
="${CFLAGS-} ${CWARNS} -Wpointer-arith -Werror"
8452 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8453 /* end confdefs.h. */
8463 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8469 if ac_fn_c_try_compile
"$LINENO"; then :
8470 charybdis_cv_c_gcc_w_pointer_arith
=yes
8472 charybdis_cv_c_gcc_w_pointer_arith
=no
8474 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8475 CFLAGS
="${oldcflags}"
8478 if test "x$charybdis_cv_c_gcc_w_pointer_arith" = xyes
; then
8479 CWARNS
="${CWARNS}-Wpointer-arith "
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8481 $as_echo "ok" >&6; }
8483 charybdis_cv_c_gcc_w_pointer_arith
=''
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8485 $as_echo "no" >&6; }
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8489 $as_echo "no" >&6; }
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wimplicit -Wnested-externs" >&5
8494 $as_echo_n "checking GCC flag(s) -Wimplicit -Wnested-externs... " >&6; }
8495 if test "${GCC-no}" = yes
8497 if ${charybdis_cv_c_gcc_w_implicit+:} false
; then :
8498 $as_echo_n "(cached) " >&6
8501 oldcflags
="${CFLAGS-}"
8502 CFLAGS
="${CFLAGS-} ${CWARNS} -Wimplicit -Wnested-externs -Werror"
8503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8504 /* end confdefs.h. */
8514 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8520 if ac_fn_c_try_compile
"$LINENO"; then :
8521 charybdis_cv_c_gcc_w_implicit
=yes
8523 charybdis_cv_c_gcc_w_implicit
=no
8525 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8526 CFLAGS
="${oldcflags}"
8529 if test "x$charybdis_cv_c_gcc_w_implicit" = xyes
; then
8530 CWARNS
="${CWARNS}-Wimplicit -Wnested-externs "
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8532 $as_echo "ok" >&6; }
8534 charybdis_cv_c_gcc_w_implicit
=''
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8536 $as_echo "no" >&6; }
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8540 $as_echo "no" >&6; }
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-align" >&5
8545 $as_echo_n "checking GCC flag(s) -Wcast-align... " >&6; }
8546 if test "${GCC-no}" = yes
8548 if ${charybdis_cv_c_gcc_w_cast_align+:} false
; then :
8549 $as_echo_n "(cached) " >&6
8552 oldcflags
="${CFLAGS-}"
8553 CFLAGS
="${CFLAGS-} ${CWARNS} -Wcast-align -Werror"
8554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8555 /* end confdefs.h. */
8565 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8571 if ac_fn_c_try_compile
"$LINENO"; then :
8572 charybdis_cv_c_gcc_w_cast_align
=yes
8574 charybdis_cv_c_gcc_w_cast_align
=no
8576 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8577 CFLAGS
="${oldcflags}"
8580 if test "x$charybdis_cv_c_gcc_w_cast_align" = xyes
; then
8581 CWARNS
="${CWARNS}-Wcast-align "
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8583 $as_echo "ok" >&6; }
8585 charybdis_cv_c_gcc_w_cast_align
=''
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8587 $as_echo "no" >&6; }
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8591 $as_echo "no" >&6; }
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-qual" >&5
8596 $as_echo_n "checking GCC flag(s) -Wcast-qual... " >&6; }
8597 if test "${GCC-no}" = yes
8599 if ${charybdis_cv_c_gcc_w_cast_qual+:} false
; then :
8600 $as_echo_n "(cached) " >&6
8603 oldcflags
="${CFLAGS-}"
8604 CFLAGS
="${CFLAGS-} ${CWARNS} -Wcast-qual -Werror"
8605 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8606 /* end confdefs.h. */
8616 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8622 if ac_fn_c_try_compile
"$LINENO"; then :
8623 charybdis_cv_c_gcc_w_cast_qual
=yes
8625 charybdis_cv_c_gcc_w_cast_qual
=no
8627 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8628 CFLAGS
="${oldcflags}"
8631 if test "x$charybdis_cv_c_gcc_w_cast_qual" = xyes
; then
8632 CWARNS
="${CWARNS}-Wcast-qual "
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8634 $as_echo "ok" >&6; }
8636 charybdis_cv_c_gcc_w_cast_qual
=''
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8638 $as_echo "no" >&6; }
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8642 $as_echo "no" >&6; }
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wwrite-strings" >&5
8647 $as_echo_n "checking GCC flag(s) -Wwrite-strings... " >&6; }
8648 if test "${GCC-no}" = yes
8650 if ${charybdis_cv_c_gcc_w_write_strings+:} false
; then :
8651 $as_echo_n "(cached) " >&6
8654 oldcflags
="${CFLAGS-}"
8655 CFLAGS
="${CFLAGS-} ${CWARNS} -Wwrite-strings -Werror"
8656 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8657 /* end confdefs.h. */
8667 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8673 if ac_fn_c_try_compile
"$LINENO"; then :
8674 charybdis_cv_c_gcc_w_write_strings
=yes
8676 charybdis_cv_c_gcc_w_write_strings
=no
8678 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8679 CFLAGS
="${oldcflags}"
8682 if test "x$charybdis_cv_c_gcc_w_write_strings" = xyes
; then
8683 CWARNS
="${CWARNS}-Wwrite-strings "
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8685 $as_echo "ok" >&6; }
8687 charybdis_cv_c_gcc_w_write_strings
=''
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8689 $as_echo "no" >&6; }
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8693 $as_echo "no" >&6; }
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Werror-implicit-function-declaration" >&5
8698 $as_echo_n "checking GCC flag(s) -Werror-implicit-function-declaration... " >&6; }
8699 if test "${GCC-no}" = yes
8701 if ${charybdis_cv_c_gcc_w_error_implicit_function_declaration+:} false
; then :
8702 $as_echo_n "(cached) " >&6
8705 oldcflags
="${CFLAGS-}"
8706 CFLAGS
="${CFLAGS-} ${CWARNS} -Werror-implicit-function-declaration -Werror"
8707 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8708 /* end confdefs.h. */
8718 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8724 if ac_fn_c_try_compile
"$LINENO"; then :
8725 charybdis_cv_c_gcc_w_error_implicit_function_declaration
=yes
8727 charybdis_cv_c_gcc_w_error_implicit_function_declaration
=no
8729 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8730 CFLAGS
="${oldcflags}"
8733 if test "x$charybdis_cv_c_gcc_w_error_implicit_function_declaration" = xyes
; then
8734 CWARNS
="${CWARNS}-Werror-implicit-function-declaration "
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8736 $as_echo "ok" >&6; }
8738 charybdis_cv_c_gcc_w_error_implicit_function_declaration
=''
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8740 $as_echo "no" >&6; }
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8744 $as_echo "no" >&6; }
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations" >&5
8749 $as_echo_n "checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations... " >&6; }
8750 if test "${GCC-no}" = yes
8752 if ${charybdis_cv_c_gcc_prototypes+:} false
; then :
8753 $as_echo_n "(cached) " >&6
8756 oldcflags
="${CFLAGS-}"
8757 CFLAGS
="${CFLAGS-} ${CWARNS} -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Werror"
8758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8759 /* end confdefs.h. */
8769 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8775 if ac_fn_c_try_compile
"$LINENO"; then :
8776 charybdis_cv_c_gcc_prototypes
=yes
8778 charybdis_cv_c_gcc_prototypes
=no
8780 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8781 CFLAGS
="${oldcflags}"
8784 if test "x$charybdis_cv_c_gcc_prototypes" = xyes
; then
8785 CWARNS
="${CWARNS}-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations "
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8787 $as_echo "ok" >&6; }
8789 charybdis_cv_c_gcc_prototypes
=''
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8791 $as_echo "no" >&6; }
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8795 $as_echo "no" >&6; }
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wparenthesis" >&5
8800 $as_echo_n "checking GCC flag(s) -Wparenthesis... " >&6; }
8801 if test "${GCC-no}" = yes
8803 if ${charybdis_cv_c_gcc_parenthesis+:} false
; then :
8804 $as_echo_n "(cached) " >&6
8807 oldcflags
="${CFLAGS-}"
8808 CFLAGS
="${CFLAGS-} ${CWARNS} -Wparenthesis -Werror"
8809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8810 /* end confdefs.h. */
8820 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8826 if ac_fn_c_try_compile
"$LINENO"; then :
8827 charybdis_cv_c_gcc_parenthesis
=yes
8829 charybdis_cv_c_gcc_parenthesis
=no
8831 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8832 CFLAGS
="${oldcflags}"
8835 if test "x$charybdis_cv_c_gcc_parenthesis" = xyes
; then
8836 CWARNS
="${CWARNS}-Wparenthesis "
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8838 $as_echo "ok" >&6; }
8840 charybdis_cv_c_gcc_parenthesis
=''
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8842 $as_echo "no" >&6; }
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8846 $as_echo "no" >&6; }
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -W -Wno-unused" >&5
8851 $as_echo_n "checking GCC flag(s) -W -Wno-unused... " >&6; }
8852 if test "${GCC-no}" = yes
8854 if ${charybdis_cv_c_gcc_w+:} false
; then :
8855 $as_echo_n "(cached) " >&6
8858 oldcflags
="${CFLAGS-}"
8859 CFLAGS
="${CFLAGS-} ${CWARNS} -W -Wno-unused -Werror"
8860 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8861 /* end confdefs.h. */
8871 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8877 if ac_fn_c_try_compile
"$LINENO"; then :
8878 charybdis_cv_c_gcc_w
=yes
8880 charybdis_cv_c_gcc_w
=no
8882 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8883 CFLAGS
="${oldcflags}"
8886 if test "x$charybdis_cv_c_gcc_w" = xyes
; then
8887 CWARNS
="${CWARNS}-W -Wno-unused "
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8889 $as_echo "ok" >&6; }
8891 charybdis_cv_c_gcc_w
=''
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8893 $as_echo "no" >&6; }
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8897 $as_echo "no" >&6; }
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wextra" >&5
8902 $as_echo_n "checking GCC flag(s) -Wextra... " >&6; }
8903 if test "${GCC-no}" = yes
8905 if ${charybdis_cv_c_gcc_w_extra+:} false
; then :
8906 $as_echo_n "(cached) " >&6
8909 oldcflags
="${CFLAGS-}"
8910 CFLAGS
="${CFLAGS-} ${CWARNS} -Wextra -Werror"
8911 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8912 /* end confdefs.h. */
8922 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8928 if ac_fn_c_try_compile
"$LINENO"; then :
8929 charybdis_cv_c_gcc_w_extra
=yes
8931 charybdis_cv_c_gcc_w_extra
=no
8933 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8934 CFLAGS
="${oldcflags}"
8937 if test "x$charybdis_cv_c_gcc_w_extra" = xyes
; then
8938 CWARNS
="${CWARNS}-Wextra "
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8940 $as_echo "ok" >&6; }
8942 charybdis_cv_c_gcc_w_extra
=''
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8944 $as_echo "no" >&6; }
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8948 $as_echo "no" >&6; }
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wshadow" >&5
8953 $as_echo_n "checking GCC flag(s) -Wshadow... " >&6; }
8954 if test "${GCC-no}" = yes
8956 if ${charybdis_cv_c_gcc_w_shadow+:} false
; then :
8957 $as_echo_n "(cached) " >&6
8960 oldcflags
="${CFLAGS-}"
8961 CFLAGS
="${CFLAGS-} ${CWARNS} -Wshadow -Werror"
8962 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8963 /* end confdefs.h. */
8973 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8979 if ac_fn_c_try_compile
"$LINENO"; then :
8980 charybdis_cv_c_gcc_w_shadow
=yes
8982 charybdis_cv_c_gcc_w_shadow
=no
8984 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8985 CFLAGS
="${oldcflags}"
8988 if test "x$charybdis_cv_c_gcc_w_shadow" = xyes
; then
8989 CWARNS
="${CWARNS}-Wshadow "
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8991 $as_echo "ok" >&6; }
8993 charybdis_cv_c_gcc_w_shadow
=''
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8995 $as_echo "no" >&6; }
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8999 $as_echo "no" >&6; }
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wmissing-noreturn" >&5
9004 $as_echo_n "checking GCC flag(s) -Wmissing-noreturn... " >&6; }
9005 if test "${GCC-no}" = yes
9007 if ${charybdis_cv_c_gcc_w_missing_noreturn+:} false
; then :
9008 $as_echo_n "(cached) " >&6
9011 oldcflags
="${CFLAGS-}"
9012 CFLAGS
="${CFLAGS-} ${CWARNS} -Wmissing-noreturn -Werror"
9013 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9014 /* end confdefs.h. */
9024 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9030 if ac_fn_c_try_compile
"$LINENO"; then :
9031 charybdis_cv_c_gcc_w_missing_noreturn
=yes
9033 charybdis_cv_c_gcc_w_missing_noreturn
=no
9035 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9036 CFLAGS
="${oldcflags}"
9039 if test "x$charybdis_cv_c_gcc_w_missing_noreturn" = xyes
; then
9040 CWARNS
="${CWARNS}-Wmissing-noreturn "
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9042 $as_echo "ok" >&6; }
9044 charybdis_cv_c_gcc_w_missing_noreturn
=''
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9046 $as_echo "no" >&6; }
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9050 $as_echo "no" >&6; }
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wundef" >&5
9055 $as_echo_n "checking GCC flag(s) -Wundef... " >&6; }
9056 if test "${GCC-no}" = yes
9058 if ${charybdis_cv_c_gcc_w_undef+:} false
; then :
9059 $as_echo_n "(cached) " >&6
9062 oldcflags
="${CFLAGS-}"
9063 CFLAGS
="${CFLAGS-} ${CWARNS} -Wundef -Werror"
9064 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9065 /* end confdefs.h. */
9075 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9081 if ac_fn_c_try_compile
"$LINENO"; then :
9082 charybdis_cv_c_gcc_w_undef
=yes
9084 charybdis_cv_c_gcc_w_undef
=no
9086 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9087 CFLAGS
="${oldcflags}"
9090 if test "x$charybdis_cv_c_gcc_w_undef" = xyes
; then
9091 CWARNS
="${CWARNS}-Wundef "
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9093 $as_echo "ok" >&6; }
9095 charybdis_cv_c_gcc_w_undef
=''
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9097 $as_echo "no" >&6; }
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9101 $as_echo "no" >&6; }
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpacked" >&5
9106 $as_echo_n "checking GCC flag(s) -Wpacked... " >&6; }
9107 if test "${GCC-no}" = yes
9109 if ${charybdis_cv_c_gcc_w_packed+:} false
; then :
9110 $as_echo_n "(cached) " >&6
9113 oldcflags
="${CFLAGS-}"
9114 CFLAGS
="${CFLAGS-} ${CWARNS} -Wpacked -Werror"
9115 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9116 /* end confdefs.h. */
9126 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9132 if ac_fn_c_try_compile
"$LINENO"; then :
9133 charybdis_cv_c_gcc_w_packed
=yes
9135 charybdis_cv_c_gcc_w_packed
=no
9137 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9138 CFLAGS
="${oldcflags}"
9141 if test "x$charybdis_cv_c_gcc_w_packed" = xyes
; then
9142 CWARNS
="${CWARNS}-Wpacked "
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9144 $as_echo "ok" >&6; }
9146 charybdis_cv_c_gcc_w_packed
=''
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9148 $as_echo "no" >&6; }
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9152 $as_echo "no" >&6; }
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wnested-externs" >&5
9157 $as_echo_n "checking GCC flag(s) -Wnested-externs... " >&6; }
9158 if test "${GCC-no}" = yes
9160 if ${charybdis_cv_c_gcc_w_nested_externs+:} false
; then :
9161 $as_echo_n "(cached) " >&6
9164 oldcflags
="${CFLAGS-}"
9165 CFLAGS
="${CFLAGS-} ${CWARNS} -Wnested-externs -Werror"
9166 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9167 /* end confdefs.h. */
9177 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9183 if ac_fn_c_try_compile
"$LINENO"; then :
9184 charybdis_cv_c_gcc_w_nested_externs
=yes
9186 charybdis_cv_c_gcc_w_nested_externs
=no
9188 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9189 CFLAGS
="${oldcflags}"
9192 if test "x$charybdis_cv_c_gcc_w_nested_externs" = xyes
; then
9193 CWARNS
="${CWARNS}-Wnested-externs "
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9195 $as_echo "ok" >&6; }
9197 charybdis_cv_c_gcc_w_nested_externs
=''
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9199 $as_echo "no" >&6; }
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9203 $as_echo "no" >&6; }
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable" >&5
9208 $as_echo_n "checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable... " >&6; }
9209 if test "${GCC-no}" = yes
9211 if ${charybdis_cv_c_gcc_w_unused+:} false
; then :
9212 $as_echo_n "(cached) " >&6
9215 oldcflags
="${CFLAGS-}"
9216 CFLAGS
="${CFLAGS-} ${CWARNS} -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Werror"
9217 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9218 /* end confdefs.h. */
9228 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9234 if ac_fn_c_try_compile
"$LINENO"; then :
9235 charybdis_cv_c_gcc_w_unused
=yes
9237 charybdis_cv_c_gcc_w_unused
=no
9239 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9240 CFLAGS
="${oldcflags}"
9243 if test "x$charybdis_cv_c_gcc_w_unused" = xyes
; then
9244 CWARNS
="${CWARNS}-Wunused-function -Wunused-label -Wunused-value -Wunused-variable "
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9246 $as_echo "ok" >&6; }
9248 charybdis_cv_c_gcc_w_unused
=''
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9250 $as_echo "no" >&6; }
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9254 $as_echo "no" >&6; }
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wredundant-decls" >&5
9259 $as_echo_n "checking GCC flag(s) -Wredundant-decls... " >&6; }
9260 if test "${GCC-no}" = yes
9262 if ${charybdis_cv_c_gcc_w_redundant_decls+:} false
; then :
9263 $as_echo_n "(cached) " >&6
9266 oldcflags
="${CFLAGS-}"
9267 CFLAGS
="${CFLAGS-} ${CWARNS} -Wredundant-decls -Werror"
9268 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9269 /* end confdefs.h. */
9279 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9285 if ac_fn_c_try_compile
"$LINENO"; then :
9286 charybdis_cv_c_gcc_w_redundant_decls
=yes
9288 charybdis_cv_c_gcc_w_redundant_decls
=no
9290 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9291 CFLAGS
="${oldcflags}"
9294 if test "x$charybdis_cv_c_gcc_w_redundant_decls" = xyes
; then
9295 CWARNS
="${CWARNS}-Wredundant-decls "
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9297 $as_echo "ok" >&6; }
9299 charybdis_cv_c_gcc_w_redundant_decls
=''
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9301 $as_echo "no" >&6; }
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9305 $as_echo "no" >&6; }
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wfloat-equal" >&5
9310 $as_echo_n "checking GCC flag(s) -Wfloat-equal... " >&6; }
9311 if test "${GCC-no}" = yes
9313 if ${charybdis_cv_c_gcc_w_float_equal+:} false
; then :
9314 $as_echo_n "(cached) " >&6
9317 oldcflags
="${CFLAGS-}"
9318 CFLAGS
="${CFLAGS-} ${CWARNS} -Wfloat-equal -Werror"
9319 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9320 /* end confdefs.h. */
9330 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9336 if ac_fn_c_try_compile
"$LINENO"; then :
9337 charybdis_cv_c_gcc_w_float_equal
=yes
9339 charybdis_cv_c_gcc_w_float_equal
=no
9341 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9342 CFLAGS
="${oldcflags}"
9345 if test "x$charybdis_cv_c_gcc_w_float_equal" = xyes
; then
9346 CWARNS
="${CWARNS}-Wfloat-equal "
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9348 $as_echo "ok" >&6; }
9350 charybdis_cv_c_gcc_w_float_equal
=''
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9352 $as_echo "no" >&6; }
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9356 $as_echo "no" >&6; }
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security" >&5
9361 $as_echo_n "checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security... " >&6; }
9362 if test "${GCC-no}" = yes
9364 if ${charybdis_cv_c_gcc_w_format+:} false
; then :
9365 $as_echo_n "(cached) " >&6
9368 oldcflags
="${CFLAGS-}"
9369 CFLAGS
="${CFLAGS-} ${CWARNS} -Wformat -Wformat-y2k -Wno-format-security -Werror"
9370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9371 /* end confdefs.h. */
9381 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9387 if ac_fn_c_try_compile
"$LINENO"; then :
9388 charybdis_cv_c_gcc_w_format
=yes
9390 charybdis_cv_c_gcc_w_format
=no
9392 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9393 CFLAGS
="${oldcflags}"
9396 if test "x$charybdis_cv_c_gcc_w_format" = xyes
; then
9397 CWARNS
="${CWARNS}-Wformat -Wformat-y2k -Wno-format-security "
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9399 $as_echo "ok" >&6; }
9401 charybdis_cv_c_gcc_w_format
=''
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9403 $as_echo "no" >&6; }
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9407 $as_echo "no" >&6; }
9411 IRC_CFLAGS
="$CFLAGS"
9416 if test "$shared_modules" = no
; then
9418 MOD_TARGET
="libmodules.a"
9419 MODULES_LIBS
="../modules/libmodules.a"
9422 $as_echo "#define STATIC_MODULES 1" >>confdefs.h
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared module support has been disabled!" >&5
9425 $as_echo "$as_me: WARNING: shared module support has been disabled!" >&2;}
9428 if test "$shared_modules" = yes; then
9430 ac_fn_c_check_func
"$LINENO" "nlist" "ac_cv_func_nlist"
9431 if test "x$ac_cv_func_nlist" = xyes
; then :
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -ldl" >&5
9435 $as_echo_n "checking for nlist in -ldl... " >&6; }
9436 if ${ac_cv_lib_dl_nlist+:} false
; then :
9437 $as_echo_n "(cached) " >&6
9439 ac_check_lib_save_LIBS
=$LIBS
9441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9442 /* end confdefs.h. */
9444 /* Override any GCC internal prototype to avoid an error.
9445 Use char because int might match the return type of a GCC
9446 builtin and then its argument prototype would still apply. */
9459 if ac_fn_c_try_link
"$LINENO"; then :
9460 ac_cv_lib_dl_nlist
=yes
9462 ac_cv_lib_dl_nlist
=no
9464 rm -f core conftest.err conftest.
$ac_objext \
9465 conftest
$ac_exeext conftest.
$ac_ext
9466 LIBS
=$ac_check_lib_save_LIBS
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_nlist" >&5
9469 $as_echo "$ac_cv_lib_dl_nlist" >&6; }
9470 if test "x$ac_cv_lib_dl_nlist" = xyes
; then :
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -lelf" >&5
9474 $as_echo_n "checking for nlist in -lelf... " >&6; }
9475 if ${ac_cv_lib_elf_nlist+:} false
; then :
9476 $as_echo_n "(cached) " >&6
9478 ac_check_lib_save_LIBS
=$LIBS
9480 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9481 /* end confdefs.h. */
9483 /* Override any GCC internal prototype to avoid an error.
9484 Use char because int might match the return type of a GCC
9485 builtin and then its argument prototype would still apply. */
9498 if ac_fn_c_try_link
"$LINENO"; then :
9499 ac_cv_lib_elf_nlist
=yes
9501 ac_cv_lib_elf_nlist
=no
9503 rm -f core conftest.err conftest.
$ac_objext \
9504 conftest
$ac_exeext conftest.
$ac_ext
9505 LIBS
=$ac_check_lib_save_LIBS
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_nlist" >&5
9508 $as_echo "$ac_cv_lib_elf_nlist" >&6; }
9509 if test "x$ac_cv_lib_elf_nlist" = xyes
; then :
9520 ac_fn_c_check_header_mongrel
"$LINENO" "libelf/nlist.h" "ac_cv_header_libelf_nlist_h" "$ac_includes_default"
9521 if test "x$ac_cv_header_libelf_nlist_h" = xyes
; then :
9522 nlist_h
="libelf/nlist.h"
9526 ac_fn_c_check_header_mongrel
"$LINENO" "elf/nlist.h" "ac_cv_header_elf_nlist_h" "$ac_includes_default"
9527 if test "x$ac_cv_header_elf_nlist_h" = xyes
; then :
9528 nlist_h
="elf/nlist.h"
9532 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
9533 if test "x$ac_cv_header_nlist_h" = xyes
; then :
9538 if test x
"$nlist_h" = "x"; then
9540 cat >>confdefs.h
<<_ACEOF
9541 #define SYMBOL_PREFIX ""
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra underscores prepended to symbol names" >&5
9546 $as_echo_n "checking for extra underscores prepended to symbol names... " >&6; }
9547 if ${symbol_underscores+:} false
; then :
9548 $as_echo_n "(cached) " >&6
9551 cat << EOF > conftest.c
9555 void _modinit(void);
9556 int main(int argc, char *argv[]) {
9560 /* fill the names in this way, so it'll work almost everywhere */
9561 nl[0].n_name = "_modinit";
9562 nl[1].n_name = "__modinit";
9563 nl[2].n_name = "___modinit";
9564 nl[3].n_name = "____modinit";
9565 nl[0].n_value = nl[1].n_value = nl[2].n_value = nl[3].n_value = nl[4].n_name = NULL;
9567 if(argc < 2 || (nlist(argv[1], nl)) == -1) exit(-1);
9568 for(i = 0; i < 4; i++) {
9569 if(nl[i].n_value != NULL)
9572 for(j = 0; j < i; j++)
9579 void _modinit(void) { return; }
9581 $CC $CPPFLAGS $IRC_CFLAGS -o conftest conftest.c
$nlist_lib >/dev
/null
2>&1
9582 symbol_underscores
=`./conftest conftest`
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $symbol_underscores" >&5
9584 $as_echo "$symbol_underscores" >&6; }
9585 $RM -f conftest conftest.c
9590 cat >>confdefs.h
<<_ACEOF
9591 #define SYMBOL_PREFIX "${symbol_underscores}"
9597 IRC_CFLAGS
="$IRC_CFLAGS $CWARNS"
9612 if test "$prefix" = "NONE"; then
9614 cat >>confdefs.h
<<_ACEOF
9615 #define IRCD_PREFIX "$ac_default_prefix"
9622 prefix
=`echo $prefix | sed 's/\/$//'`
9624 cat >>confdefs.h
<<_ACEOF
9625 #define IRCD_PREFIX "$prefix"
9631 ac_config_files
="$ac_config_files Makefile bandb/Makefile ssld/Makefile extensions/Makefile src/Makefile modules/Makefile tools/Makefile tools/genssl.sh doc/Makefile help/Makefile"
9633 ac_config_commands
="$ac_config_commands tools/genssl.sh_chmod"
9636 cat >confcache
<<\_ACEOF
9637 # This file is a shell script that caches the results of configure
9638 # tests run on this system so they can be shared between configure
9639 # scripts and configure runs, see configure's option --config-cache.
9640 # It is not useful on other systems. If it contains results you don't
9641 # want to keep, you may remove or edit it.
9643 # config.status only pays attention to the cache file if you give it
9644 # the --recheck option to rerun configure.
9646 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9647 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9652 # The following way of writing the cache mishandles newlines in values,
9653 # but we know of no workaround that is simple, portable, and efficient.
9654 # So, we kill variables containing newlines.
9655 # Ultrix sh set writes to stderr and can't be redirected directly,
9656 # and sets the high bit in the cache file unless we assign to the vars.
9658 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9659 eval ac_val
=\$
$ac_var
9663 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9664 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9667 _
| IFS
| as_nl
) ;; #(
9668 BASH_ARGV
| BASH_SOURCE
) eval $ac_var= ;; #(
9669 *) { eval $ac_var=; unset $ac_var;} ;;
9675 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9676 *${as_nl}ac_space
=\
*)
9677 # `set' does not quote correctly, so add quotes: double-quote
9678 # substitution turns \\\\ into \\, and sed turns \\ into \.
9681 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9684 # `set' quotes correctly as required by POSIX, so do not add quotes.
9685 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9694 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9696 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9698 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
9699 if test -w "$cache_file"; then
9700 if test "x$cache_file" != "x/dev/null"; then
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9702 $as_echo "$as_me: updating cache $cache_file" >&6;}
9703 if test ! -f "$cache_file" || test -h "$cache_file"; then
9704 cat confcache
>"$cache_file"
9706 case $cache_file in #(
9708 mv -f confcache
"$cache_file"$$
&&
9709 mv -f "$cache_file"$$
"$cache_file" ;; #(
9711 mv -f confcache
"$cache_file" ;;
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9717 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9722 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9723 # Let make expand exec_prefix.
9724 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9726 DEFS
=-DHAVE_CONFIG_H
9731 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
9732 # 1. Remove the extension, and $U if already installed.
9733 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
9734 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
9735 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9736 # will be set to the directory where LIBOBJS objects are built.
9737 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9738 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
9742 LTLIBOBJS
=$ac_ltlibobjs
9748 : "${CONFIG_STATUS=./config.status}"
9750 ac_clean_files_save
=$ac_clean_files
9751 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9753 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9755 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9757 # Generated by $as_me.
9758 # Run this file to recreate the current configuration.
9759 # Compiler output produced by configure, useful for debugging
9760 # configure, is in config.log if it exists.
9766 SHELL=\${CONFIG_SHELL-$SHELL}
9769 cat >>$CONFIG_STATUS <<\_ASEOF
|| as_write_fail
=1
9770 ## -------------------- ##
9771 ## M4sh Initialization. ##
9772 ## -------------------- ##
9774 # Be more Bourne compatible
9775 DUALCASE
=1; export DUALCASE
# for MKS sh
9776 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
9779 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9780 # is contrary to our usage. Disable this feature.
9781 alias -g '${1+"$@"}'='"$@"'
9782 setopt NO_GLOB_SUBST
9784 case `(set -o) 2>/dev/null` in #(
9796 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9797 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9798 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9799 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9800 # Prefer a ksh shell builtin over an external printf program on Solaris,
9801 # but without wasting forks for bash or zsh.
9802 if test -z "$BASH_VERSION$ZSH_VERSION" \
9803 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9804 as_echo='print
-r --'
9805 as_echo_n='print
-rn --'
9806 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9807 as_echo='printf %s
\n'
9808 as_echo_n='printf %s
'
9810 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9811 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
9812 as_echo_n='/usr
/ucb
/echo -n'
9814 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9815 as_echo_n_body='eval
9819 expr "X$arg" : "X\\(.*\\)$as_nl";
9820 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9822 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9824 export as_echo_n_body
9825 as_echo_n='sh
-c $as_echo_n_body as_echo
'
9828 as_echo='sh
-c $as_echo_body as_echo
'
9831 # The user is always right.
9832 if test "${PATH_SEPARATOR+set}" != set; then
9834 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9835 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9842 # We need space, tab and new line, in precisely that order. Quoting is
9843 # there to prevent editors from complaining about space-tab.
9844 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9845 # splitting by setting IFS to empty value.)
9848 # Find who we are. Look in the path if we contain no directory separator.
9851 *[\\/]* ) as_myself=$0 ;;
9852 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9856 test -z "$as_dir" && as_dir=.
9857 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9863 # We did not find ourselves, most probably we were run as `sh COMMAND'
9864 # in which case we are not to be found in the path.
9865 if test "x$as_myself" = x
; then
9868 if test ! -f "$as_myself"; then
9869 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9873 # Unset variables that we do not need and which cause bugs (e.g. in
9874 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9875 # suppresses any "Segmentation fault" message there. '((' could
9876 # trigger a bug in pdksh 5.2.14.
9877 for as_var
in BASH_ENV ENV MAIL MAILPATH
9878 do eval test x\
${$as_var+set} = xset \
9879 && ( (unset $as_var) || exit 1) >/dev
/null
2>&1 && unset $as_var || :
9892 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
9895 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9896 # ----------------------------------------
9897 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9898 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9899 # script with STATUS, using 1 if that was 0.
9902 as_status
=$1; test $as_status -eq 0 && as_status
=1
9904 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
9905 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9907 $as_echo "$as_me: error: $2" >&2
9908 as_fn_exit
$as_status
9912 # as_fn_set_status STATUS
9913 # -----------------------
9914 # Set $? to STATUS, without forking.
9918 } # as_fn_set_status
9922 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9932 # Portably unset VAR.
9935 { eval $1=; unset $1;}
9937 as_unset
=as_fn_unset
9938 # as_fn_append VAR VALUE
9939 # ----------------------
9940 # Append the text in VALUE to the end of the definition contained in VAR. Take
9941 # advantage of any shell optimizations that allow amortized linear growth over
9942 # repeated appends, instead of the typical quadratic growth present in naive
9944 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
9945 eval 'as_fn_append ()
9956 # as_fn_arith ARG...
9957 # ------------------
9958 # Perform arithmetic evaluation on the ARGs, and store the result in the
9959 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9960 # must be portable across $(()) and expr.
9961 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
9962 eval 'as_fn_arith ()
9969 as_val
=`expr "$@" || test $? -eq 1`
9974 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
9975 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
9981 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9982 as_basename
=basename
9987 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
9993 as_me
=`$as_basename -- "$0" ||
9994 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9995 X"$0" : 'X\(//\)$' \| \
9996 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9998 sed '/^.*\/\([^/][^/]*\)\/*$/{
10012 # Avoid depending upon Character Ranges.
10013 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
10014 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10015 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
10016 as_cr_digits
='0123456789'
10017 as_cr_alnum
=$as_cr_Letters$as_cr_digits
10019 ECHO_C
= ECHO_N
= ECHO_T
=
10020 case `echo -n x` in #(((((
10022 case `echo 'xy\c'` in
10023 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
10025 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
10032 rm -f conf$$ conf$$.exe conf$$.
file
10033 if test -d conf$$.dir
; then
10034 rm -f conf$$.dir
/conf$$.
file
10037 mkdir conf$$.dir
2>/dev
/null
10039 if (echo >conf$$.
file) 2>/dev
/null
; then
10040 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
10042 # ... but there are two gotchas:
10043 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10044 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10045 # In both cases, we have to default to `cp -p'.
10046 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe
||
10048 elif ln conf$$.
file conf$$
2>/dev
/null
; then
10056 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
10057 rmdir conf$$.dir
2>/dev
/null
10062 # Create "$as_dir" as a directory, including parents if necessary.
10067 -*) as_dir
=.
/$as_dir;;
10069 test -d "$as_dir" || eval $as_mkdir_p || {
10073 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10074 *) as_qdir
=$as_dir;;
10076 as_dirs
="'$as_qdir' $as_dirs"
10077 as_dir
=`$as_dirname -- "$as_dir" ||
10078 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10079 X"$as_dir" : 'X\(//\)[^/]' \| \
10080 X"$as_dir" : 'X\(//\)$' \| \
10081 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10082 $as_echo X"$as_dir" |
10083 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10087 /^X\(\/\/\)[^/].*/{
10100 test -d "$as_dir" && break
10102 test -z "$as_dirs" || eval "mkdir $as_dirs"
10103 } || test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
10107 if mkdir -p .
2>/dev
/null
; then
10108 as_mkdir_p
='mkdir -p "$as_dir"'
10110 test -d .
/-p && rmdir .
/-p
10114 if test -x / >/dev
/null
2>&1; then
10115 as_test_x
='test -x'
10117 if ls -dL / >/dev
/null
2>&1; then
10124 if test -d "$1"; then
10130 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
10131 ???[sx]*):;;*)false;;esac;fi
10135 as_executable_p
=$as_test_x
10137 # Sed expression to map a string onto a valid CPP name.
10138 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10140 # Sed expression to map a string onto a valid variable name.
10141 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10145 ## ----------------------------------- ##
10146 ## Main body of $CONFIG_STATUS script. ##
10147 ## ----------------------------------- ##
10149 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
10151 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
10152 # Save the log message, to keep $0 and so on meaningful, and to
10153 # report actual input values of CONFIG_FILES etc. instead of their
10154 # values after options handling.
10156 This file was extended by charybdis $as_me 3.4.0-dev, which was
10157 generated by GNU Autoconf 2.68. Invocation command line was
10159 CONFIG_FILES = $CONFIG_FILES
10160 CONFIG_HEADERS = $CONFIG_HEADERS
10161 CONFIG_LINKS = $CONFIG_LINKS
10162 CONFIG_COMMANDS = $CONFIG_COMMANDS
10165 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10170 case $ac_config_files in *"
10171 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
10174 case $ac_config_headers in *"
10175 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
10179 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10180 # Files that config.status was made for.
10181 config_files="$ac_config_files"
10182 config_headers="$ac_config_headers"
10183 config_commands="$ac_config_commands"
10187 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
10189 \`$as_me' instantiates files and other configuration actions
10190 from templates according to the current configuration. Unless the files
10191 and actions are specified as TAGs, all are instantiated by default.
10193 Usage: $0 [OPTION]... [TAG]...
10195 -h, --help print this help, then exit
10196 -V, --version print version number and configuration settings, then exit
10197 --config print configuration, then exit
10198 -q, --quiet, --silent
10199 do not print progress messages
10200 -d, --debug don't remove temporary files
10201 --recheck update $as_me by reconfiguring in the same conditions
10202 --file=FILE[:TEMPLATE]
10203 instantiate the configuration file FILE
10204 --header=FILE[:TEMPLATE]
10205 instantiate the configuration header FILE
10207 Configuration files:
10210 Configuration headers:
10213 Configuration commands:
10216 Report bugs to the package provider."
10219 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10220 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10222 charybdis config.status 3.4.0-dev
10223 configured by $0, generated by GNU Autoconf 2.68,
10224 with options \\"\$ac_cs_config\\"
10226 Copyright (C) 2010 Free Software Foundation, Inc.
10227 This config.status script is free software; the Free Software Foundation
10228 gives unlimited permission to copy, distribute and modify it."
10233 test -n "\$AWK" || AWK=awk
10236 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
10237 # The default lists apply if the user does not specify any file.
10243 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10244 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
10248 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10260 # Handling of the options.
10261 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10263 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10264 $as_echo "$ac_cs_version"; exit ;;
10265 --config | --confi | --conf | --con | --co | --c )
10266 $as_echo "$ac_cs_config"; exit ;;
10267 --debug | --debu | --deb | --de | --d | -d )
10269 --file | --fil | --fi | --f )
10272 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10273 '') as_fn_error $?
"missing file argument" ;;
10275 as_fn_append CONFIG_FILES
" '$ac_optarg'"
10276 ac_need_defaults
=false
;;
10277 --header | --heade | --head | --hea )
10280 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10282 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
10283 ac_need_defaults
=false
;;
10285 # Conflict between --help and --header
10286 as_fn_error $?
"ambiguous option: \`$1'
10287 Try \`$0 --help' for more information.";;
10288 --help | --hel | -h )
10289 $as_echo "$ac_cs_usage"; exit ;;
10290 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10291 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10294 # This is an error.
10295 -*) as_fn_error $?
"unrecognized option: \`$1'
10296 Try \`$0 --help' for more information." ;;
10298 *) as_fn_append ac_config_targets
" $1"
10299 ac_need_defaults
=false
;;
10305 ac_configure_extra_args
=
10307 if $ac_cs_silent; then
10309 ac_configure_extra_args
="$ac_configure_extra_args --silent"
10313 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10314 if \$ac_cs_recheck; then
10315 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10317 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10318 CONFIG_SHELL='$SHELL'
10319 export CONFIG_SHELL
10324 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
10328 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10329 ## Running $as_me. ##
10335 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10338 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
10340 # Handling of arguments.
10341 for ac_config_target
in $ac_config_targets
10343 case $ac_config_target in
10344 "include/setup.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/setup.h" ;;
10345 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
10346 "bandb/Makefile") CONFIG_FILES
="$CONFIG_FILES bandb/Makefile" ;;
10347 "ssld/Makefile") CONFIG_FILES
="$CONFIG_FILES ssld/Makefile" ;;
10348 "extensions/Makefile") CONFIG_FILES
="$CONFIG_FILES extensions/Makefile" ;;
10349 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
10350 "modules/Makefile") CONFIG_FILES
="$CONFIG_FILES modules/Makefile" ;;
10351 "tools/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/Makefile" ;;
10352 "tools/genssl.sh") CONFIG_FILES
="$CONFIG_FILES tools/genssl.sh" ;;
10353 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
10354 "help/Makefile") CONFIG_FILES
="$CONFIG_FILES help/Makefile" ;;
10355 "tools/genssl.sh_chmod") CONFIG_COMMANDS
="$CONFIG_COMMANDS tools/genssl.sh_chmod" ;;
10357 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10362 # If the user did not use the arguments to specify the items to instantiate,
10363 # then the envvar interface is used. Set only those that are not.
10364 # We use the long form for the default assignment because of an extremely
10365 # bizarre bug on SunOS 4.1.3.
10366 if $ac_need_defaults; then
10367 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
10368 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
10369 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
10372 # Have a temporary directory for convenience. Make it in the build tree
10373 # simply because there is no reason against having it here, and in addition,
10374 # creating and moving files from /tmp can sometimes cause problems.
10375 # Hook for its removal unless debugging.
10376 # Note that there is a small window in which the directory will not be cleaned:
10377 # after its creation but before its name has been assigned to `$tmp'.
10381 trap 'exit_status=$?
10382 : "${ac_tmp:=$tmp}"
10383 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10385 trap 'as_fn_exit 1' 1 2 13 15
10387 # Create a (secure) tmp directory for tmp files.
10390 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10394 tmp
=.
/conf$$
-$RANDOM
10395 (umask 077 && mkdir "$tmp")
10396 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
10399 # Set up the scripts for CONFIG_FILES section.
10400 # No need to generate them if there are no CONFIG_FILES.
10401 # This happens for instance with `./config.status config.h'.
10402 if test -n "$CONFIG_FILES"; then
10405 ac_cr
=`echo X | tr X '\015'`
10406 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10407 # But we know of no other shell where ac_cr would be empty at this
10408 # point, so we can use a bashism as a fallback.
10409 if test "x$ac_cr" = x
; then
10410 eval ac_cr
=\$
\'\\r
\'
10412 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10413 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10416 ac_cs_awk_cr
=$ac_cr
10419 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10424 echo "cat >conf$$subs.awk <<_ACEOF" &&
10425 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10427 } >conf$$subs.sh ||
10428 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10429 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10431 for ac_last_try in false false false false false :; do
10432 . ./conf$$subs.sh ||
10433 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10435 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
10436 if test $ac_delim_n = $ac_delim_num; then
10438 elif $ac_last_try; then
10439 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10441 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
10444 rm -f conf$$subs.sh
10446 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10447 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
10451 s/^/S["/; s
/!.
*/"]=/
10461 s/\(.\{148\}\)..*/\1/
10463 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
10468 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
10475 s/\(.\{148\}\)..*/\1/
10477 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
10481 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
10486 ' <conf$$subs.awk | sed '
10491 ' >>$CONFIG_STATUS || ac_write_fail=1
10492 rm -f conf$$subs.awk
10493 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10495 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
10496 for (key in S) S_is_set[key] = 1
10502 nfields = split(line, field, "@
")
10504 len = length(field[1])
10505 for (i = 2; i < nfields; i++) {
10507 keylen = length(key)
10508 if (S_is_set[key]) {
10510 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10511 len += length(value) + length(field[++i])
10522 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10523 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10524 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
10527 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
10528 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
10531 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10532 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
10533 # trailing colons and then remove the whole line if VPATH becomes empty
10534 # (actually we leave an empty line to preserve line numbers).
10535 if test "x
$srcdir" = x.; then
10536 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10554 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10555 fi # test -n "$CONFIG_FILES"
10557 # Set up the scripts for CONFIG_HEADERS section.
10558 # No need to generate them if there are no CONFIG_HEADERS.
10559 # This happens for instance with `./config.status Makefile'.
10560 if test -n "$CONFIG_HEADERS"; then
10561 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
10565 # Transform confdefs.h into an awk script `defines.awk', embedded as
10566 # here-document in config.status, that substitutes the proper values into
10567 # config.h.in to produce config.h.
10569 # Create a delimiter string that does not exist in confdefs.h, to ease
10570 # handling of long lines.
10572 for ac_last_try in false false :; do
10573 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
10574 if test -z "$ac_tt"; then
10576 elif $ac_last_try; then
10577 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
10579 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
10583 # For the awk script, D is an array of macro values keyed by name,
10584 # likewise P contains macro parameters if any. Preserve backslash
10585 # newline sequences.
10587 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10589 s/.\{148\}/&'"$ac_delim"'/g
10592 s/^[ ]*#[ ]*define[ ][ ]*/ /
10599 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
10601 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
10605 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
10606 D["\
1"]=" \
3\\\\\\n
"\\/p
10608 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
10613 s/.\{148\}/&'"$ac_delim"'/g
10618 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
10621 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
10623 ' <confdefs.h | sed '
10624 s/'"$ac_delim"'/"\\\
10625 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10627 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10628 for (key in D) D_is_set[key] = 1
10631 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10633 split(line, arg, " ")
10634 if (arg[1] == "#") {
10638 defundef
= substr
(arg
[1], 2)
10641 split(mac1
, mac2
, "(") #)
10643 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
10644 if (D_is_set
[macro
]) {
10645 # Preserve the white space surrounding the "#".
10646 print prefix
"define", macro P
[macro
] D
[macro
]
10649 # Replace #undef with comments. This is necessary, for example,
10650 # in the case of _POSIX_SOURCE, which is predefined and required
10651 # on some systems where configure will not decide to define it.
10652 if (defundef
== "undef") {
10653 print
"/*", prefix defundef
, macro
, "*/"
10661 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
10662 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
10663 fi # test -n "$CONFIG_HEADERS"
10666 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10671 :[FHLC
]) ac_mode
=$ac_tag; continue;;
10673 case $ac_mode$ac_tag in
10675 :L
* | :C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
10676 :[FH
]-) ac_tag
=-:-;;
10677 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
10694 -) ac_f
="$ac_tmp/stdin";;
10695 *) # Look for the file first in the build tree, then in the source tree
10696 # (if the path is not absolute). The absolute path cannot be DOS-style,
10697 # because $ac_f cannot contain `:'.
10701 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
10703 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10705 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10706 as_fn_append ac_file_inputs
" '$ac_f'"
10709 # Let's still pretend it is `configure' which instantiates (i.e., don't
10710 # use $as_me), people would be surprised to read:
10711 # /* config.h. Generated by config.status. */
10712 configure_input
='Generated from '`
10713 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10715 if test x
"$ac_file" != x
-; then
10716 configure_input
="$ac_file. $configure_input"
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10718 $as_echo "$as_me: creating $ac_file" >&6;}
10720 # Neutralize special characters interpreted by sed in replacement strings.
10721 case $configure_input in #(
10722 *\
&* | *\
|* | *\\* )
10723 ac_sed_conf_input
=`$as_echo "$configure_input" |
10724 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10725 *) ac_sed_conf_input
=$configure_input;;
10729 *:-:* | *:-) cat >"$ac_tmp/stdin" \
10730 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
10735 ac_dir
=`$as_dirname -- "$ac_file" ||
10736 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10737 X"$ac_file" : 'X\(//\)[^/]' \| \
10738 X"$ac_file" : 'X\(//\)$' \| \
10739 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10740 $as_echo X"$ac_file" |
10741 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10745 /^X\(\/\/\)[^/].*/{
10758 as_dir
="$ac_dir"; as_fn_mkdir_p
10762 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
10764 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10765 # A ".." for each directory in $ac_dir_suffix.
10766 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10767 case $ac_top_builddir_sub in
10768 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
10769 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
10772 ac_abs_top_builddir
=$ac_pwd
10773 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
10774 # for backward compatibility:
10775 ac_top_builddir
=$ac_top_build_prefix
10778 .
) # We are building in place.
10780 ac_top_srcdir
=$ac_top_builddir_sub
10781 ac_abs_top_srcdir
=$ac_pwd ;;
10782 [\\/]* | ?
:[\\/]* ) # Absolute name.
10783 ac_srcdir
=$srcdir$ac_dir_suffix;
10784 ac_top_srcdir
=$srcdir
10785 ac_abs_top_srcdir
=$srcdir ;;
10786 *) # Relative name.
10787 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
10788 ac_top_srcdir
=$ac_top_build_prefix$srcdir
10789 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
10791 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
10801 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
10802 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
10806 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
10807 # If the template does not know about datarootdir, expand it.
10808 # FIXME: This hack should be removed a few years after 2.60.
10809 ac_datarootdir_hack
=; ac_datarootdir_seen
=
10820 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10821 *datarootdir
*) ac_datarootdir_seen
=yes;;
10822 *@datadir@
*|*@docdir@
*|*@infodir@
*|*@localedir@
*|*@mandir@
*)
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10824 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10826 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10827 ac_datarootdir_hack='
10828 s&@datadir@&$datadir&g
10829 s&@docdir@&$docdir&g
10830 s&@infodir@&$infodir&g
10831 s&@localedir@&$localedir&g
10832 s&@mandir@&$mandir&g
10833 s&\\\${datarootdir}&$datarootdir&g' ;;
10837 # Neutralize VPATH when `$srcdir' = `.'.
10838 # Shell code in configure.ac might set extrasub.
10839 # FIXME: do we really want to maintain this feature?
10840 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10841 ac_sed_extra="$ac_vpsub
10844 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
10846 /@
[a
-zA-Z_][a
-zA-Z_0-9]*@
/!b
10847 s
|@configure_input@
|$ac_sed_conf_input|;t t
10848 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
10849 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
10850 s
&@srcdir@
&$ac_srcdir&;t t
10851 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
10852 s
&@top_srcdir@
&$ac_top_srcdir&;t t
10853 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
10854 s
&@builddir@
&$ac_builddir&;t t
10855 s
&@abs_builddir@
&$ac_abs_builddir&;t t
10856 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
10857 s
&@INSTALL@
&$ac_INSTALL&;t t
10858 $ac_datarootdir_hack
10860 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
10861 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
10863 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10864 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
10865 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10866 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
10868 which seems to be undefined. Please make sure it is defined" >&5
10869 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
10870 which seems to be undefined. Please make sure it is defined" >&2;}
10872 rm -f "$ac_tmp/stdin"
10874 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10875 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10877 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10883 if test x"$ac_file" != x-; then
10885 $as_echo "/* $configure_input */" \
10886 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10887 } >"$ac_tmp/config.h" \
10888 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10889 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10891 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10894 mv "$ac_tmp/config.h" "$ac_file" \
10895 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10898 $as_echo "/* $configure_input */" \
10899 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10900 || as_fn_error $? "could not create -" "$LINENO" 5
10904 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10905 $as_echo "$as_me: executing $ac_file commands" >&6;}
10910 case $ac_file$ac_mode in
10911 "tools/genssl.sh_chmod":C) chmod 755 tools/genssl.sh ;;
10919 ac_clean_files=$ac_clean_files_save
10921 test $ac_write_fail = 0 ||
10922 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10925 # configure is writing to config.log, and then calls config.status.
10926 # config.status does its own redirection, appending to config.log.
10927 # Unfortunately, on DOS this fails, as config.log is still kept open
10928 # by configure, so config.status won't be able to
write to it
; its
10929 # output is simply discarded. So we exec the FD to /dev/null,
10930 # effectively closing config.log, so it can be properly (re)opened and
10931 # appended to by config.status. When coming back to configure, we
10932 # need to make the FD available again.
10933 if test "$no_create" != yes; then
10935 ac_config_status_args
=
10936 test "$silent" = yes &&
10937 ac_config_status_args
="$ac_config_status_args --quiet"
10939 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
10941 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10942 # would make configure fail if this is the last instruction.
10943 $ac_cs_success || as_fn_exit
1
10947 # CONFIG_SUBDIRS section.
10949 if test "$no_recursion" != yes; then
10951 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
10952 # so they do not pile up.
10953 ac_sub_configure_args
=
10955 eval "set x $ac_configure_args"
10959 if test -n "$ac_prev"; then
10964 -cache-file | --cache-file | --cache-fil | --cache-fi \
10965 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10966 ac_prev
=cache_file
;;
10967 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10968 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
10971 --config-cache | -C)
10973 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10975 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10977 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10979 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10981 --disable-option-checking)
10985 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10987 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
10991 # Always prepend --prefix to ensure using the same prefix
10992 # in subdir configurations.
10993 ac_arg
="--prefix=$prefix"
10995 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10997 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
11000 if test "$silent" = yes; then
11001 ac_sub_configure_args
="--silent $ac_sub_configure_args"
11004 # Always prepend --disable-option-checking to silence warnings, since
11005 # different subdirs can have different --enable and --with options.
11006 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
11009 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
11011 # Do not complain, so a configure script can configure whichever
11012 # parts of a large source tree are present.
11013 test -d "$srcdir/$ac_dir" || continue
11015 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
11016 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
11017 $as_echo "$ac_msg" >&6
11018 as_dir
="$ac_dir"; as_fn_mkdir_p
11022 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11024 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11025 # A ".." for each directory in $ac_dir_suffix.
11026 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11027 case $ac_top_builddir_sub in
11028 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11029 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
11032 ac_abs_top_builddir
=$ac_pwd
11033 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
11034 # for backward compatibility:
11035 ac_top_builddir
=$ac_top_build_prefix
11038 .
) # We are building in place.
11040 ac_top_srcdir
=$ac_top_builddir_sub
11041 ac_abs_top_srcdir
=$ac_pwd ;;
11042 [\\/]* | ?
:[\\/]* ) # Absolute name.
11043 ac_srcdir
=$srcdir$ac_dir_suffix;
11044 ac_top_srcdir
=$srcdir
11045 ac_abs_top_srcdir
=$srcdir ;;
11046 *) # Relative name.
11047 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
11048 ac_top_srcdir
=$ac_top_build_prefix$srcdir
11049 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
11051 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
11056 # Check for guested configure; otherwise get Cygnus style configure.
11057 if test -f "$ac_srcdir/configure.gnu"; then
11058 ac_sub_configure
=$ac_srcdir/configure.gnu
11059 elif test -f "$ac_srcdir/configure"; then
11060 ac_sub_configure
=$ac_srcdir/configure
11061 elif test -f "$ac_srcdir/configure.in"; then
11062 # This should be Cygnus configure.
11063 ac_sub_configure
=$ac_aux_dir/configure
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
11066 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
11070 # The recursion is here.
11071 if test -n "$ac_sub_configure"; then
11072 # Make the cache file name correct relative to the subdirectory.
11073 case $cache_file in
11074 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
11075 *) # Relative name.
11076 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
11079 { $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
11080 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
11081 # The eval makes quoting arguments work.
11082 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
11083 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
11084 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
11090 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11092 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11096 if test "$cf_openssl_version_ok" = yes; then
11102 if test "$shared_modules" = yes; then
11109 Configuration of ${BRANDING_NAME}-${BRANDING_VERSION}:
11110 Install directory : $prefix
11114 Socket Engine : $SELECT_TYPE
11115 Small network : $small_net
11116 Block allocator : $balloc
11118 Nickname length : $NICKLEN
11119 Topic length : $TOPICLEN
11121 Use (g)make to compile $BRANDING_NAME, then (g)make install to install it.