2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for charybdis 3.5.0-dev.
5 # $Id: configure.ac 3516 2007-06-10 16:14:03Z jilles $
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x
; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var
in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\
${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev
/null
2>&1 && unset $as_var || :
135 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
140 _as_can_reexec
=no
; export _as_can_reexec
;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
149 *v
*x
* | *x
*v
* ) as_opts
=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec
=; unset _as_can_reexec
;}
162 if test "x$CONFIG_SHELL" = x
; then
163 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required
="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev
/null
; then :
207 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
210 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
212 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
215 test -z "$as_dir" && as_dir
=.
219 for as_base
in sh bash ksh sh5
; do
220 # Try only shells that exist, to save several forks.
221 as_shell
=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
224 CONFIG_SHELL
=$as_shell as_have_required
=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
235 CONFIG_SHELL
=$SHELL as_have_required
=yes
240 if test "x$CONFIG_SHELL" != x
; then :
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
248 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
250 *v
*x
* | *x
*v
* ) as_opts
=-vx ;;
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
262 if test x
$as_have_required = xno
; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x
${ZSH_VERSION+set} = xset
; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
269 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
270 $0: including any error possibly output before this
271 $0: message. Then install a modern shell, or manually run
272 $0: the script under such a shell if you do have one."
278 SHELL
=${CONFIG_SHELL-/bin/sh}
280 # Unset more variables known to interfere with behavior of common tools.
281 CLICOLOR_FORCE
= GREP_OPTIONS
=
282 unset CLICOLOR_FORCE GREP_OPTIONS
284 ## --------------------- ##
285 ## M4sh Shell Functions. ##
286 ## --------------------- ##
289 # Portably unset VAR.
292 { eval $1=; unset $1;}
296 # as_fn_set_status STATUS
297 # -----------------------
298 # Set $? to STATUS, without forking.
306 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 # Create "$as_dir" as a directory, including parents if necessary.
321 -*) as_dir
=.
/$as_dir;;
323 test -d "$as_dir" || eval $as_mkdir_p || {
327 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330 as_dirs
="'$as_qdir' $as_dirs"
331 as_dir
=`$as_dirname -- "$as_dir" ||
332 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
333 X"$as_dir" : 'X\(//\)[^/]' \| \
334 X"$as_dir" : 'X\(//\)$' \| \
335 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
336 $as_echo X"$as_dir" |
337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
354 test -d "$as_dir" && break
356 test -z "$as_dirs" || eval "mkdir $as_dirs"
357 } || test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
362 # as_fn_executable_p FILE
363 # -----------------------
364 # Test if FILE is an executable regular file.
365 as_fn_executable_p
()
367 test -f "$1" && test -x "$1"
368 } # as_fn_executable_p
369 # as_fn_append VAR VALUE
370 # ----------------------
371 # Append the text in VALUE to the end of the definition contained in VAR. Take
372 # advantage of any shell optimizations that allow amortized linear growth over
373 # repeated appends, instead of the typical quadratic growth present in naive
375 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
376 eval 'as_fn_append ()
389 # Perform arithmetic evaluation on the ARGs, and store the result in the
390 # global $as_val. Take advantage of shells that can avoid forks. The arguments
391 # must be portable across $(()) and expr.
392 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
400 as_val
=`expr "$@" || test $? -eq 1`
405 # as_fn_error STATUS ERROR [LINENO LOG_FD]
406 # ----------------------------------------
407 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
408 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
409 # script with STATUS, using 1 if that was 0.
412 as_status
=$1; test $as_status -eq 0 && as_status
=1
414 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
415 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417 $as_echo "$as_me: error: $2" >&2
418 as_fn_exit
$as_status
421 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
422 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
428 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
434 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
440 as_me
=`$as_basename -- "$0" ||
441 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
442 X"$0" : 'X\(//\)$' \| \
443 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 sed '/^.*\/\([^/][^/]*\)\/*$/{
459 # Avoid depending upon Character Ranges.
460 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
461 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
462 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
463 as_cr_digits
='0123456789'
464 as_cr_alnum
=$as_cr_Letters$as_cr_digits
467 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
468 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
469 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
470 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
471 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
483 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
487 chmod +x
"$as_me.lineno" ||
488 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
490 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
491 # already done that, so ensure we don't try to do so again and fall
492 # in an infinite loop. This has already happened in practice.
493 _as_can_reexec
=no
; export _as_can_reexec
494 # Don't try to exec as it changes $[0], causing all sort of problems
495 # (the dirname of $[0] is not the place where we might find the
496 # original and so on. Autoconf is especially sensitive to this).
498 # Exit status is that of the last command.
502 ECHO_C
= ECHO_N
= ECHO_T
=
503 case `echo -n x` in #(((((
505 case `echo 'xy\c'` in
506 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
508 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
515 rm -f conf$$ conf$$.exe conf$$.
file
516 if test -d conf$$.dir
; then
517 rm -f conf$$.dir
/conf$$.
file
520 mkdir conf$$.dir
2>/dev
/null
522 if (echo >conf$$.
file) 2>/dev
/null
; then
523 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
525 # ... but there are two gotchas:
526 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
527 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
528 # In both cases, we have to default to `cp -pR'.
529 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe
||
531 elif ln conf$$.
file conf$$
2>/dev
/null
; then
539 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
540 rmdir conf$$.dir
2>/dev
/null
542 if mkdir -p .
2>/dev
/null
; then
543 as_mkdir_p
='mkdir -p "$as_dir"'
545 test -d .
/-p && rmdir .
/-p
550 as_executable_p
=as_fn_executable_p
552 # Sed expression to map a string onto a valid CPP name.
553 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555 # Sed expression to map a string onto a valid variable name.
556 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559 test -n "$DJDIR" || exec 7<&0 </dev
/null
563 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
564 # so uname gets run too.
565 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
570 ac_default_prefix
=/usr
/local
572 ac_config_libobj_dir
=.
579 # Identity of this package.
580 PACKAGE_NAME
='charybdis'
581 PACKAGE_TARNAME
='charybdis'
582 PACKAGE_VERSION
='3.5.0-dev'
583 PACKAGE_STRING
='charybdis 3.5.0-dev'
587 ac_default_prefix
=$HOME/ircd
588 # Factoring default headers for most tests.
589 ac_includes_default
="\
591 #ifdef HAVE_SYS_TYPES_H
592 # include <sys/types.h>
594 #ifdef HAVE_SYS_STAT_H
595 # include <sys/stat.h>
601 # ifdef HAVE_STDLIB_H
606 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
611 #ifdef HAVE_STRINGS_H
612 # include <strings.h>
614 #ifdef HAVE_INTTYPES_H
615 # include <inttypes.h>
624 ac_subst_vars
='LTLIBOBJS
722 program_transform_name
735 enable_option_checking
764 ac_precious_vars
='build_alias
782 # Initialize some variables set by options.
784 ac_init_version
=false
785 ac_unrecognized_opts
=
787 # The variables have the same names as the options, with
788 # dashes changed to underlines.
796 program_transform_name
=s
,x
,x
,
804 # Installation directory options.
805 # These are left unexpanded so users can "make install exec_prefix=/foo"
806 # and all the variables that are supposed to be based on exec_prefix
807 # by default will actually change.
808 # Use braces instead of parens because sh, perl, etc. also accept them.
809 # (The list follows the same order as the GNU Coding Standards.)
810 bindir
='${exec_prefix}/bin'
811 sbindir
='${exec_prefix}/sbin'
812 libexecdir
='${exec_prefix}/libexec'
813 datarootdir
='${prefix}/share'
814 datadir
='${datarootdir}'
815 sysconfdir
='${prefix}/etc'
816 sharedstatedir
='${prefix}/com'
817 localstatedir
='${prefix}/var'
818 includedir
='${prefix}/include'
819 oldincludedir
='/usr/include'
820 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
821 infodir
='${datarootdir}/info'
826 libdir
='${exec_prefix}/lib'
827 localedir
='${datarootdir}/locale'
828 mandir
='${datarootdir}/man'
834 # If the previous option needs an argument, assign it.
835 if test -n "$ac_prev"; then
836 eval $ac_prev=\
$ac_option
842 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
847 # Accept the important Cygnus configure options, so we can diagnose typos.
849 case $ac_dashdash$ac_option in
853 -bindir | --bindir | --bindi | --bind | --bin | --bi)
855 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
858 -build | --build | --buil | --bui | --bu)
859 ac_prev
=build_alias
;;
860 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
861 build_alias
=$ac_optarg ;;
863 -cache-file | --cache-file | --cache-fil | --cache-fi \
864 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
865 ac_prev
=cache_file
;;
866 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
867 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
868 cache_file
=$ac_optarg ;;
871 cache_file
=config.cache
;;
873 -datadir | --datadir | --datadi | --datad)
875 -datadir=* | --datadir=* | --datadi=* | --datad=*)
876 datadir
=$ac_optarg ;;
878 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
879 | --dataroo | --dataro | --datar)
880 ac_prev
=datarootdir
;;
881 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
882 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
883 datarootdir
=$ac_optarg ;;
885 -disable-* | --disable-*)
886 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
887 # Reject names that are not valid shell variable names.
888 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
889 as_fn_error $?
"invalid feature name: $ac_useropt"
890 ac_useropt_orig
=$ac_useropt
891 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
892 case $ac_user_opts in
896 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
897 ac_unrecognized_sep
=', ';;
899 eval enable_
$ac_useropt=no
;;
901 -docdir | --docdir | --docdi | --doc | --do)
903 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
906 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
908 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
911 -enable-* | --enable-*)
912 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
913 # Reject names that are not valid shell variable names.
914 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
915 as_fn_error $?
"invalid feature name: $ac_useropt"
916 ac_useropt_orig
=$ac_useropt
917 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
918 case $ac_user_opts in
922 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
923 ac_unrecognized_sep
=', ';;
925 eval enable_
$ac_useropt=\
$ac_optarg ;;
927 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
928 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
929 | --exec | --exe | --ex)
930 ac_prev
=exec_prefix
;;
931 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
932 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
933 | --exec=* | --exe=* | --ex=*)
934 exec_prefix
=$ac_optarg ;;
936 -gas | --gas | --ga | --g)
937 # Obsolete; use --with-gas.
940 -help | --help | --hel | --he | -h)
942 -help=r
* | --help=r
* | --hel=r
* | --he=r
* | -hr*)
943 ac_init_help
=recursive
;;
944 -help=s
* | --help=s
* | --hel=s
* | --he=s
* | -hs*)
945 ac_init_help
=short
;;
947 -host | --host | --hos | --ho)
948 ac_prev
=host_alias
;;
949 -host=* | --host=* | --hos=* | --ho=*)
950 host_alias
=$ac_optarg ;;
952 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
954 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
956 htmldir
=$ac_optarg ;;
958 -includedir | --includedir | --includedi | --included | --include \
959 | --includ | --inclu | --incl | --inc)
960 ac_prev
=includedir
;;
961 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
962 | --includ=* | --inclu=* | --incl=* | --inc=*)
963 includedir
=$ac_optarg ;;
965 -infodir | --infodir | --infodi | --infod | --info | --inf)
967 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
968 infodir
=$ac_optarg ;;
970 -libdir | --libdir | --libdi | --libd)
972 -libdir=* | --libdir=* | --libdi=* | --libd=*)
975 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
976 | --libexe | --libex | --libe)
977 ac_prev
=libexecdir
;;
978 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
979 | --libexe=* | --libex=* | --libe=*)
980 libexecdir
=$ac_optarg ;;
982 -localedir | --localedir | --localedi | --localed | --locale)
984 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
985 localedir
=$ac_optarg ;;
987 -localstatedir | --localstatedir | --localstatedi | --localstated \
988 | --localstate | --localstat | --localsta | --localst | --locals)
989 ac_prev
=localstatedir
;;
990 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
991 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
992 localstatedir
=$ac_optarg ;;
994 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
996 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1000 # Obsolete; use --without-fp.
1003 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1004 | --no-cr | --no-c | -n)
1007 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1008 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1011 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1012 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1013 | --oldin | --oldi | --old | --ol | --o)
1014 ac_prev
=oldincludedir
;;
1015 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1016 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1017 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1018 oldincludedir
=$ac_optarg ;;
1020 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1022 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1023 prefix
=$ac_optarg ;;
1025 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1026 | --program-pre | --program-pr | --program-p)
1027 ac_prev
=program_prefix
;;
1028 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1029 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1030 program_prefix
=$ac_optarg ;;
1032 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1033 | --program-suf | --program-su | --program-s)
1034 ac_prev
=program_suffix
;;
1035 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1036 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1037 program_suffix
=$ac_optarg ;;
1039 -program-transform-name | --program-transform-name \
1040 | --program-transform-nam | --program-transform-na \
1041 | --program-transform-n | --program-transform- \
1042 | --program-transform | --program-transfor \
1043 | --program-transfo | --program-transf \
1044 | --program-trans | --program-tran \
1045 | --progr-tra | --program-tr | --program-t)
1046 ac_prev
=program_transform_name
;;
1047 -program-transform-name=* | --program-transform-name=* \
1048 | --program-transform-nam=* | --program-transform-na=* \
1049 | --program-transform-n=* | --program-transform-=* \
1050 | --program-transform=* | --program-transfor=* \
1051 | --program-transfo=* | --program-transf=* \
1052 | --program-trans=* | --program-tran=* \
1053 | --progr-tra=* | --program-tr=* | --program-t=*)
1054 program_transform_name
=$ac_optarg ;;
1056 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1058 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1059 pdfdir
=$ac_optarg ;;
1061 -psdir | --psdir | --psdi | --psd | --ps)
1063 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1066 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1067 | -silent | --silent | --silen | --sile | --sil)
1070 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1072 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1074 sbindir
=$ac_optarg ;;
1076 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1077 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1078 | --sharedst | --shareds | --shared | --share | --shar \
1080 ac_prev
=sharedstatedir
;;
1081 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1082 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1083 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1085 sharedstatedir
=$ac_optarg ;;
1087 -site | --site | --sit)
1089 -site=* | --site=* | --sit=*)
1092 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1094 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1095 srcdir
=$ac_optarg ;;
1097 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1098 | --syscon | --sysco | --sysc | --sys | --sy)
1099 ac_prev
=sysconfdir
;;
1100 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1101 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1102 sysconfdir
=$ac_optarg ;;
1104 -target | --target | --targe | --targ | --tar | --ta | --t)
1105 ac_prev
=target_alias
;;
1106 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1107 target_alias
=$ac_optarg ;;
1109 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1112 -version | --version | --versio | --versi | --vers | -V)
1113 ac_init_version
=: ;;
1116 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1117 # Reject names that are not valid shell variable names.
1118 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1119 as_fn_error $?
"invalid package name: $ac_useropt"
1120 ac_useropt_orig
=$ac_useropt
1121 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1122 case $ac_user_opts in
1126 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1127 ac_unrecognized_sep
=', ';;
1129 eval with_
$ac_useropt=\
$ac_optarg ;;
1131 -without-* | --without-*)
1132 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1133 # Reject names that are not valid shell variable names.
1134 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1135 as_fn_error $?
"invalid package name: $ac_useropt"
1136 ac_useropt_orig
=$ac_useropt
1137 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1138 case $ac_user_opts in
1142 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1143 ac_unrecognized_sep
=', ';;
1145 eval with_
$ac_useropt=no
;;
1148 # Obsolete; use --with-x.
1151 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1152 | --x-incl | --x-inc | --x-in | --x-i)
1153 ac_prev
=x_includes
;;
1154 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1155 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1156 x_includes
=$ac_optarg ;;
1158 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1159 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1160 ac_prev
=x_libraries
;;
1161 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1162 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1163 x_libraries
=$ac_optarg ;;
1165 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1166 Try \`$0 --help' for more information"
1170 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1171 # Reject names that are not valid shell variable names.
1172 case $ac_envvar in #(
1173 '' | [0-9]* | *[!_$as_cr_alnum]* )
1174 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1176 eval $ac_envvar=\
$ac_optarg
1177 export $ac_envvar ;;
1180 # FIXME: should be removed in autoconf 3.0.
1181 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1182 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1183 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1184 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1190 if test -n "$ac_prev"; then
1191 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1192 as_fn_error $?
"missing argument to $ac_option"
1195 if test -n "$ac_unrecognized_opts"; then
1196 case $enable_option_checking in
1198 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1199 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1203 # Check all directory arguments for consistency.
1204 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1205 datadir sysconfdir sharedstatedir localstatedir includedir \
1206 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1207 libdir localedir mandir
1209 eval ac_val
=\$
$ac_var
1210 # Remove trailing slashes.
1213 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1214 eval $ac_var=\
$ac_val;;
1216 # Be sure to have absolute directory names.
1218 [\\/$
]* | ?
:[\\/]* ) continue;;
1219 NONE
| '' ) case $ac_var in *prefix
) continue;; esac;;
1221 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1224 # There might be people who depend on the old broken behavior: `$host'
1225 # used to hold the argument of --host etc.
1226 # FIXME: To remove some day.
1229 target
=$target_alias
1231 # FIXME: To remove some day.
1232 if test "x$host_alias" != x
; then
1233 if test "x$build_alias" = x
; then
1234 cross_compiling
=maybe
1235 elif test "x$build_alias" != "x$host_alias"; then
1241 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1243 test "$silent" = yes && exec 6>/dev
/null
1246 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1247 ac_ls_di
=`ls -di .` &&
1248 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1249 as_fn_error $?
"working directory cannot be determined"
1250 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1251 as_fn_error $?
"pwd does not report name of working directory"
1254 # Find the source files, if location was not specified.
1255 if test -z "$srcdir"; then
1256 ac_srcdir_defaulted
=yes
1257 # Try the directory containing this script, then the parent directory.
1258 ac_confdir
=`$as_dirname -- "$as_myself" ||
1259 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1260 X"$as_myself" : 'X\(//\)[^/]' \| \
1261 X"$as_myself" : 'X\(//\)$' \| \
1262 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1263 $as_echo X"$as_myself" |
1264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1282 if test ! -r "$srcdir/$ac_unique_file"; then
1286 ac_srcdir_defaulted
=no
1288 if test ! -r "$srcdir/$ac_unique_file"; then
1289 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1290 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1292 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1294 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1296 # When building in place, set srcdir=.
1297 if test "$ac_abs_confdir" = "$ac_pwd"; then
1300 # Remove unnecessary trailing slashes from srcdir.
1301 # Double slashes in file names in object file debugging info
1302 # mess up M-x gdb in Emacs.
1304 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1306 for ac_var
in $ac_precious_vars; do
1307 eval ac_env_
${ac_var}_set
=\
${${ac_var}+set}
1308 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1309 eval ac_cv_env_
${ac_var}_set
=\
${${ac_var}+set}
1310 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1314 # Report the --help message.
1316 if test "$ac_init_help" = "long"; then
1317 # Omit some internal or obsolete options to make the list less imposing.
1318 # This message is too long to be a string in the A/UX 3.1 sh.
1320 \`configure' configures charybdis 3.5.0-dev to adapt to many kinds of systems.
1322 Usage: $0 [OPTION]... [VAR=VALUE]...
1324 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1325 VAR=VALUE. See below for descriptions of some of the useful variables.
1327 Defaults for the options are specified in brackets.
1330 -h, --help display this help and exit
1331 --help=short display options specific to this package
1332 --help=recursive display the short help of all the included packages
1333 -V, --version display version information and exit
1334 -q, --quiet, --silent do not print \`checking ...' messages
1335 --cache-file=FILE cache test results in FILE [disabled]
1336 -C, --config-cache alias for \`--cache-file=config.cache'
1337 -n, --no-create do not create output files
1338 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1340 Installation directories:
1341 --prefix=PREFIX install architecture-independent files in PREFIX
1342 [$ac_default_prefix]
1343 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1346 By default, \`make install' will install all the files in
1347 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1348 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1349 for instance \`--prefix=\$HOME'.
1351 For better control, use the options below.
1353 Fine tuning of the installation directories:
1354 --bindir=DIR user executables [EPREFIX/bin]
1355 --sbindir=DIR system admin executables [EPREFIX/sbin]
1356 --libexecdir=DIR program executables [EPREFIX/libexec]
1357 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1358 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1359 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1360 --libdir=DIR object code libraries [EPREFIX/lib]
1361 --includedir=DIR C header files [PREFIX/include]
1362 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1363 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1364 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1365 --infodir=DIR info documentation [DATAROOTDIR/info]
1366 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1367 --mandir=DIR man documentation [DATAROOTDIR/man]
1368 --docdir=DIR documentation root [DATAROOTDIR/doc/charybdis]
1369 --htmldir=DIR html documentation [DOCDIR]
1370 --dvidir=DIR dvi documentation [DOCDIR]
1371 --pdfdir=DIR pdf documentation [DOCDIR]
1372 --psdir=DIR ps documentation [DOCDIR]
1379 if test -n "$ac_init_help"; then
1380 case $ac_init_help in
1381 short
| recursive
) echo "Configuration of charybdis 3.5.0-dev:";;
1386 --disable-option-checking ignore unrecognized
--enable/--with options
1387 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1388 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1389 --enable-fhs-paths Use
more FHS
-like pathnames
(for packagers
).
1390 --enable-ipv6 Enable IPv6 support
1391 --enable-openssl=DIR Enable OpenSSL support
(DIR optional
).
1392 --disable-openssl Disable OpenSSL support.
1393 --disable-zlib Disable ziplinks support
1394 --enable-ports Force solaris I
/O ports subsystem usage.
1395 --enable-poll Force poll
() usage.
1396 --enable-select Force
select() usage.
1397 --enable-kqueue Force kqueue
() usage.
1398 --enable-epoll Force sys_epoll usage
(Linux only
).
1399 --enable-assert Enable assert
(). Choose between soft
(warnings
) and
1400 hard
(aborts the daemon
)
1401 --enable-iodebug Enable IO Debugging hooks
1402 --enable-profile Enable profiling
1403 --disable-balloc Disable the block allocator.
1404 --enable-small-net Enable small network support.
1405 --enable-warnings Enable all sorts of warnings
for debugging.
1408 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1409 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1410 --with-zlib-path=DIR Path to libz.so
for ziplinks support.
1411 --with-shared-sqlite Use shared sqlite
1412 --with-confdir=DIR Directory to
install config files
[deprecated
, use
1413 --sysconfdir instead
].
1414 --with-logdir=DIR Directory where to
write logfiles.
1415 --with-helpdir=DIR Directory to
install help files.
1416 --with-moduledir=DIR Directory to
install modules.
1417 --with-rundir=DIR Directory
in which to store pidfile.
1418 --with-program-prefix= If
set, programs installed into PATH will be
1419 installed with names prefixed by this prefix.
1420 --with-custom-branding=NAME
1421 Custom branding name.
1422 --with-custom-version=NAME
1423 Custom version branding.
1424 --with-nicklen=LENGTH Set the upper
-bound nick length to LENGTH
(default
1426 --with-topiclen=NUMBER Set the max topic length to NUMBER
(default
390, max
1429 Some influential environment variables
:
1430 CC C compiler
command
1431 CFLAGS C compiler flags
1432 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1433 nonstandard directory
<lib dir
>
1434 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1435 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1436 you have headers
in a nonstandard directory
<include dir
>
1438 YACC The
`Yet Another Compiler Compiler' implementation to use.
1439 Defaults to the first program found out of: `bison
-y', `byacc',
1441 YFLAGS The list of arguments that will be passed by default to $YACC.
1442 This script will default YFLAGS to the empty string to avoid a
1443 default value of `-d' given by some make applications.
1444 PKG_CONFIG path to pkg-config utility
1446 directories to add to pkg-config's search path
1448 path overriding pkg
-config's built-in search path
1450 C compiler flags for SQLITE, overriding pkg-config
1451 SQLITE_LIBS linker flags for SQLITE, overriding pkg-config
1453 Use these variables to override the choices made by `configure' or to
help
1454 it to
find libraries and programs with nonstandard names
/locations.
1456 Report bugs to the package provider.
1461 if test "$ac_init_help" = "recursive"; then
1462 # If there are subdirs, report their specific --help.
1463 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1464 test -d "$ac_dir" ||
1465 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1470 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1472 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1473 # A ".." for each directory in $ac_dir_suffix.
1474 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1475 case $ac_top_builddir_sub in
1476 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1477 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1480 ac_abs_top_builddir
=$ac_pwd
1481 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1482 # for backward compatibility:
1483 ac_top_builddir
=$ac_top_build_prefix
1486 .
) # We are building in place.
1488 ac_top_srcdir
=$ac_top_builddir_sub
1489 ac_abs_top_srcdir
=$ac_pwd ;;
1490 [\\/]* | ?
:[\\/]* ) # Absolute name.
1491 ac_srcdir
=$srcdir$ac_dir_suffix;
1492 ac_top_srcdir
=$srcdir
1493 ac_abs_top_srcdir
=$srcdir ;;
1495 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1496 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1497 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1499 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1501 cd "$ac_dir" || { ac_status
=$?
; continue; }
1502 # Check for guested configure.
1503 if test -f "$ac_srcdir/configure.gnu"; then
1505 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1506 elif test -f "$ac_srcdir/configure"; then
1508 $SHELL "$ac_srcdir/configure" --help=recursive
1510 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1512 cd "$ac_pwd" || { ac_status
=$?
; break; }
1516 test -n "$ac_init_help" && exit $ac_status
1517 if $ac_init_version; then
1519 charybdis configure
3.5.0-dev
1520 generated by GNU Autoconf
2.69
1522 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1523 This configure
script is free software
; the Free Software Foundation
1524 gives unlimited permission to copy
, distribute and modify it.
1526 $Id: configure.ac
3516 2007-06-10 16:14:03Z jilles $
1531 ## ------------------------ ##
1532 ## Autoconf initialization. ##
1533 ## ------------------------ ##
1535 # ac_fn_c_try_compile LINENO
1536 # --------------------------
1537 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1538 ac_fn_c_try_compile
()
1540 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1541 rm -f conftest.
$ac_objext
1542 if { { ac_try
="$ac_compile"
1544 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
1545 *) ac_try_echo=$ac_try;;
1547 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1548 $as_echo "$ac_try_echo"; } >&5
1549 (eval "$ac_compile") 2>conftest.err
1551 if test -s conftest.err; then
1552 grep -v '^ *+' conftest.err >conftest.er1
1553 cat conftest.er1 >&5
1554 mv -f conftest.er1 conftest.err
1556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1557 test $ac_status = 0; } && {
1558 test -z "$ac_c_werror_flag" ||
1559 test ! -s conftest.err
1560 } && test -s conftest.$ac_objext; then :
1563 $as_echo "$as_me: failed program was:" >&5
1564 sed 's/^/| /' conftest.$ac_ext >&5
1568 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1569 as_fn_set_status $ac_retval
1571 } # ac_fn_c_try_compile
1573 # ac_fn_c_try_cpp LINENO
1574 # ----------------------
1575 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1579 if { { ac_try="$ac_cpp conftest.$ac_ext"
1581 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
1582 *) ac_try_echo
=$ac_try;;
1584 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1585 $as_echo "$ac_try_echo"; } >&5
1586 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1588 if test -s conftest.err
; then
1589 grep -v '^ *+' conftest.err
>conftest.er1
1590 cat conftest.er1
>&5
1591 mv -f conftest.er1 conftest.err
1593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1594 test $ac_status = 0; } > conftest.i
&& {
1595 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1596 test ! -s conftest.err
1600 $as_echo "$as_me: failed program was:" >&5
1601 sed 's/^/| /' conftest.
$ac_ext >&5
1605 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1606 as_fn_set_status
$ac_retval
1610 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1611 # -------------------------------------------------------
1612 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1613 # the include files in INCLUDES and setting the cache variable VAR
1615 ac_fn_c_check_header_mongrel
()
1617 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1618 if eval \
${$3+:} false
; then :
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1620 $as_echo_n "checking for $2... " >&6; }
1621 if eval \
${$3+:} false
; then :
1622 $as_echo_n "(cached) " >&6
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1626 $as_echo "$ac_res" >&6; }
1628 # Is the header compilable?
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1630 $as_echo_n "checking $2 usability... " >&6; }
1631 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1632 /* end confdefs.h. */
1636 if ac_fn_c_try_compile
"$LINENO"; then :
1637 ac_header_compiler
=yes
1639 ac_header_compiler
=no
1641 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1643 $as_echo "$ac_header_compiler" >&6; }
1645 # Is the header present?
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1647 $as_echo_n "checking $2 presence... " >&6; }
1648 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1649 /* end confdefs.h. */
1652 if ac_fn_c_try_cpp
"$LINENO"; then :
1653 ac_header_preproc
=yes
1655 ac_header_preproc
=no
1657 rm -f conftest.err conftest.i conftest.
$ac_ext
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1659 $as_echo "$ac_header_preproc" >&6; }
1661 # So? What about this header?
1662 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1665 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1667 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1671 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1673 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1675 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1677 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1679 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1683 $as_echo_n "checking for $2... " >&6; }
1684 if eval \
${$3+:} false
; then :
1685 $as_echo_n "(cached) " >&6
1687 eval "$3=\$ac_header_compiler"
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1691 $as_echo "$ac_res" >&6; }
1693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1695 } # ac_fn_c_check_header_mongrel
1697 # ac_fn_c_try_run LINENO
1698 # ----------------------
1699 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1700 # that executables *can* be run.
1703 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1704 if { { ac_try
="$ac_link"
1706 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
1707 *) ac_try_echo=$ac_try;;
1709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1710 $as_echo "$ac_try_echo"; } >&5
1711 (eval "$ac_link") 2>&5
1713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1714 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1715 { { case "(($ac_try" in
1716 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
1717 *) ac_try_echo
=$ac_try;;
1719 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720 $as_echo "$ac_try_echo"; } >&5
1721 (eval "$ac_try") 2>&5
1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724 test $ac_status = 0; }; }; then :
1727 $as_echo "$as_me: program exited with status $ac_status" >&5
1728 $as_echo "$as_me: failed program was:" >&5
1729 sed 's/^/| /' conftest.
$ac_ext >&5
1731 ac_retval
=$ac_status
1733 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1734 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1735 as_fn_set_status
$ac_retval
1739 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1740 # -------------------------------------------------------
1741 # Tests whether HEADER exists and can be compiled using the include files in
1742 # INCLUDES, setting the cache variable VAR accordingly.
1743 ac_fn_c_check_header_compile
()
1745 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1747 $as_echo_n "checking for $2... " >&6; }
1748 if eval \
${$3+:} false
; then :
1749 $as_echo_n "(cached) " >&6
1751 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1752 /* end confdefs.h. */
1756 if ac_fn_c_try_compile
"$LINENO"; then :
1761 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1765 $as_echo "$ac_res" >&6; }
1766 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1768 } # ac_fn_c_check_header_compile
1770 # ac_fn_c_try_link LINENO
1771 # -----------------------
1772 # Try to link conftest.$ac_ext, and return whether this succeeded.
1775 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1776 rm -f conftest.
$ac_objext conftest
$ac_exeext
1777 if { { ac_try
="$ac_link"
1779 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
1780 *) ac_try_echo=$ac_try;;
1782 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1783 $as_echo "$ac_try_echo"; } >&5
1784 (eval "$ac_link") 2>conftest.err
1786 if test -s conftest.err; then
1787 grep -v '^ *+' conftest.err >conftest.er1
1788 cat conftest.er1 >&5
1789 mv -f conftest.er1 conftest.err
1791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1792 test $ac_status = 0; } && {
1793 test -z "$ac_c_werror_flag" ||
1794 test ! -s conftest.err
1795 } && test -s conftest$ac_exeext && {
1796 test "$cross_compiling" = yes ||
1797 test -x conftest$ac_exeext
1801 $as_echo "$as_me: failed program was:" >&5
1802 sed 's/^/| /' conftest.$ac_ext >&5
1806 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1807 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1808 # interfere with the next link command; also delete a directory that is
1809 # left behind by Apple's compiler. We do this before executing the actions.
1810 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812 as_fn_set_status $ac_retval
1814 } # ac_fn_c_try_link
1816 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1817 # -------------------------------------------
1818 # Tests whether TYPE exists after having included INCLUDES, setting cache
1819 # variable VAR accordingly.
1820 ac_fn_c_check_type ()
1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1824 $as_echo_n "checking for $2... " >&6; }
1825 if eval \${$3+:} false; then :
1826 $as_echo_n "(cached) " >&6
1829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1830 /* end confdefs.h. */
1841 if ac_fn_c_try_compile "$LINENO"; then :
1842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843 /* end confdefs.h. */
1854 if ac_fn_c_try_compile "$LINENO"; then :
1859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1865 $as_echo "$ac_res" >&6; }
1866 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1868 } # ac_fn_c_check_type
1870 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1871 # --------------------------------------------
1872 # Tries to find the compile-time value of EXPR in a program that includes
1873 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1875 ac_fn_c_compute_int ()
1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878 if test "$cross_compiling" = yes; then
1879 # Depending upon the size, compute the lo and hi bounds.
1880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1881 /* end confdefs.h. */
1886 static int test_array [1 - 2 * !(($2) >= 0)];
1888 return test_array [0];
1894 if ac_fn_c_try_compile "$LINENO"; then :
1897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1898 /* end confdefs.h. */
1903 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1905 return test_array [0];
1911 if ac_fn_c_try_compile "$LINENO"; then :
1912 ac_hi=$ac_mid; break
1914 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1915 if test $ac_lo -le $ac_mid; then
1919 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1925 /* end confdefs.h. */
1930 static int test_array [1 - 2 * !(($2) < 0)];
1932 return test_array [0];
1938 if ac_fn_c_try_compile "$LINENO"; then :
1941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1942 /* end confdefs.h. */
1947 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1949 return test_array [0];
1955 if ac_fn_c_try_compile "$LINENO"; then :
1956 ac_lo=$ac_mid; break
1958 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1959 if test $ac_mid -le $ac_hi; then
1963 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1973 # Binary search between lo and hi bounds.
1974 while test "x$ac_lo" != "x$ac_hi"; do
1975 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1977 /* end confdefs.h. */
1982 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1984 return test_array [0];
1990 if ac_fn_c_try_compile "$LINENO"; then :
1993 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003 /* end confdefs.h. */
2005 static long int longval () { return $2; }
2006 static unsigned long int ulongval () { return $2; }
2013 FILE *f = fopen ("conftest.val", "w");
2018 long int i = longval ();
2021 fprintf (f, "%ld", i);
2025 unsigned long int i = ulongval ();
2028 fprintf (f, "%lu", i);
2030 /* Do not output a trailing newline, as this causes \r\n confusion
2031 on some platforms. */
2032 return ferror (f) || fclose (f) != 0;
2038 if ac_fn_c_try_run "$LINENO"; then :
2039 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2043 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2044 conftest.$ac_objext conftest.beam conftest.$ac_ext
2048 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2049 as_fn_set_status $ac_retval
2051 } # ac_fn_c_compute_int
2053 # ac_fn_c_check_func LINENO FUNC VAR
2054 # ----------------------------------
2055 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2056 ac_fn_c_check_func ()
2058 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2060 $as_echo_n "checking for $2... " >&6; }
2061 if eval \${$3+:} false; then :
2062 $as_echo_n "(cached) " >&6
2064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065 /* end confdefs.h. */
2066 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2068 #define $2 innocuous_$2
2070 /* System header to define __stub macros and hopefully few prototypes,
2071 which can conflict with char $2 (); below.
2072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2073 <limits.h> exists even on freestanding compilers. */
2076 # include <limits.h>
2078 # include <assert.h>
2083 /* Override any GCC internal prototype to avoid an error.
2084 Use char because int might match the return type of a GCC
2085 builtin and then its argument prototype would still apply. */
2090 /* The GNU C library defines this for functions which it implements
2091 to always fail with ENOSYS. Some functions are actually named
2092 something starting with __ and the normal name is an alias. */
2093 #if defined __stub_$2 || defined __stub___$2
2105 if ac_fn_c_try_link "$LINENO"; then :
2110 rm -f core conftest.err conftest.$ac_objext \
2111 conftest$ac_exeext conftest.$ac_ext
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2115 $as_echo "$ac_res" >&6; }
2116 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2118 } # ac_fn_c_check_func
2119 cat >config.log <<_ACEOF
2120 This file contains any messages produced by compilers while
2121 running configure, to aid debugging if configure makes a mistake.
2123 It was created by charybdis $as_me 3.5.0-dev, which was
2124 generated by GNU Autoconf 2.69. Invocation command line was
2136 hostname = `(hostname
|| uname
-n) 2>/dev
/null
| sed 1q
`
2137 uname -m = `(uname
-m) 2>/dev
/null
|| echo unknown
`
2138 uname -r = `(uname
-r) 2>/dev
/null
|| echo unknown
`
2139 uname -s = `(uname
-s) 2>/dev
/null
|| echo unknown
`
2140 uname -v = `(uname
-v) 2>/dev
/null
|| echo unknown
`
2142 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null
|| echo unknown
`
2143 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null
|| echo unknown
`
2145 /bin/arch = `(/bin
/arch
) 2>/dev
/null
|| echo unknown
`
2146 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null
|| echo unknown
`
2147 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null
|| echo unknown
`
2148 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null
|| echo unknown
`
2149 /bin/machine = `(/bin
/machine
) 2>/dev
/null
|| echo unknown
`
2150 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null
|| echo unknown
`
2151 /bin/universe = `(/bin
/universe
) 2>/dev
/null
|| echo unknown
`
2155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2159 test -z "$as_dir" && as_dir=.
2160 $as_echo "PATH: $as_dir"
2176 # Keep a trace of the command line.
2177 # Strip out --no-create and --no-recursion so they do not pile up.
2178 # Strip out --silent because we don't want to record it for future runs.
2179 # Also quote any args containing shell meta-characters.
2180 # Make two passes to allow for proper duplicate-argument suppression.
2184 ac_must_keep_next=false
2190 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2191 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2192 | -silent | --silent | --silen | --sile | --sil)
2195 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2198 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2200 as_fn_append ac_configure_args1 " '$ac_arg'"
2201 if test $ac_must_keep_next = true; then
2202 ac_must_keep_next=false # Got value, back to normal.
2205 *=* | --config-cache | -C | -disable-* | --disable-* \
2206 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2207 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2208 | -with-* | --with-* | -without-* | --without-* | --x)
2209 case "$ac_configure_args0 " in
2210 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2213 -* ) ac_must_keep_next=true ;;
2216 as_fn_append ac_configure_args " '$ac_arg'"
2221 { ac_configure_args0=; unset ac_configure_args0;}
2222 { ac_configure_args1=; unset ac_configure_args1;}
2224 # When interrupted or exit'd, cleanup temporary files, and complete
2225 # config.log. We remove comments because anyway the quotes in there
2226 # would cause problems or look ugly.
2227 # WARNING: Use '\'' to represent an apostrophe within the trap.
2228 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2229 trap 'exit_status=$?
2230 # Save into config.log some information that might help in debugging.
2234 $as_echo "## ---------------- ##
2235 ## Cache variables. ##
2236 ## ---------------- ##"
2238 # The following way of writing the cache mishandles newlines in values,
2240 for ac_var in `(set) 2>&1 | sed -n '\''s
/^\
([a
-zA-Z_][a
-zA-Z0-9_]*\
)=.
*/\
1/p
'\''`; do
2241 eval ac_val=\$$ac_var
2245 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2246 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2249 _ | IFS | as_nl) ;; #(
2250 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2251 *) { eval $ac_var=; unset $ac_var;} ;;
2256 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2257 *${as_nl}ac_space=\ *)
2259 "s/'\''/'\''\\\\'\'''\''/g;
2260 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2263 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2270 $as_echo "## ----------------- ##
2271 ## Output variables. ##
2272 ## ----------------- ##"
2274 for ac_var in $ac_subst_vars
2276 eval ac_val=\$$ac_var
2278 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2280 $as_echo "$ac_var='\''$ac_val'\''"
2284 if test -n "$ac_subst_files"; then
2285 $as_echo "## ------------------- ##
2286 ## File substitutions. ##
2287 ## ------------------- ##"
2289 for ac_var in $ac_subst_files
2291 eval ac_val=\$$ac_var
2293 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2295 $as_echo "$ac_var='\''$ac_val'\''"
2300 if test -s confdefs.h; then
2301 $as_echo "## ----------- ##
2308 test "$ac_signal" != 0 &&
2309 $as_echo "$as_me: caught signal $ac_signal"
2310 $as_echo "$as_me: exit $exit_status"
2312 rm -f core *.core core.conftest.* &&
2313 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2316 for ac_signal in 1 2 13 15; do
2317 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2321 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2322 rm -f -r conftest* confdefs.h
2324 $as_echo "/* confdefs.h */" > confdefs.h
2326 # Predefined preprocessor variables.
2328 cat >>confdefs.h <<_ACEOF
2329 #define PACKAGE_NAME "$PACKAGE_NAME"
2332 cat >>confdefs.h <<_ACEOF
2333 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2336 cat >>confdefs.h <<_ACEOF
2337 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2340 cat >>confdefs.h <<_ACEOF
2341 #define PACKAGE_STRING "$PACKAGE_STRING"
2344 cat >>confdefs.h <<_ACEOF
2345 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2348 cat >>confdefs.h <<_ACEOF
2349 #define PACKAGE_URL "$PACKAGE_URL"
2353 # Let the site file select an alternate cache file if it wants to.
2354 # Prefer an explicitly selected file to automatically selected ones.
2357 if test -n "$CONFIG_SITE"; then
2358 # We do not want a PATH search for config.site.
2359 case $CONFIG_SITE in #((
2360 -*) ac_site_file1=./$CONFIG_SITE;;
2361 */*) ac_site_file1=$CONFIG_SITE;;
2362 *) ac_site_file1=./$CONFIG_SITE;;
2364 elif test "x$prefix" != xNONE; then
2365 ac_site_file1=$prefix/share/config.site
2366 ac_site_file2=$prefix/etc/config.site
2368 ac_site_file1=$ac_default_prefix/share/config.site
2369 ac_site_file2=$ac_default_prefix/etc/config.site
2371 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2373 test "x$ac_site_file" = xNONE && continue
2374 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2376 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2377 sed 's/^/| /' "$ac_site_file" >&5
2379 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2380 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2381 as_fn_error $? "failed to load site
script $ac_site_file
2382 See \
`config.log' for more details" "$LINENO" 5; }
2386 if test -r "$cache_file"; then
2387 # Some versions of bash will fail to source /dev/null (special files
2388 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2389 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2391 $as_echo "$as_me: loading cache $cache_file" >&6;}
2393 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2394 *) . "./$cache_file";;
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2399 $as_echo "$as_me: creating cache $cache_file" >&6;}
2403 # Check that the precious variables saved in the cache have kept the same
2405 ac_cache_corrupted=false
2406 for ac_var in $ac_precious_vars; do
2407 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2408 eval ac_new_set=\$ac_env_${ac_var}_set
2409 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2410 eval ac_new_val=\$ac_env_${ac_var}_value
2411 case $ac_old_set,$ac_new_set in
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2414 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2415 ac_cache_corrupted=: ;;
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2418 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2419 ac_cache_corrupted=: ;;
2422 if test "x$ac_old_val" != "x$ac_new_val"; then
2423 # differences in whitespace do not lead to failure.
2424 ac_old_val_w=`echo x
$ac_old_val`
2425 ac_new_val_w=`echo x
$ac_new_val`
2426 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2428 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2429 ac_cache_corrupted=:
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2432 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2433 eval $ac_var=\$ac_old_val
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2436 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2438 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2441 # Pass precious variables to config.status.
2442 if test "$ac_new_set" = set; then
2444 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2445 *) ac_arg=$ac_var=$ac_new_val ;;
2447 case " $ac_configure_args " in
2448 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2449 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2453 if $ac_cache_corrupted; then
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2455 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2457 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2458 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2460 ## -------------------- ##
2461 ## Main body of script. ##
2462 ## -------------------- ##
2465 ac_cpp='$CPP $CPPFLAGS'
2466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2473 ac_config_headers="$ac_config_headers include/setup.h"
2479 ac_cpp='$CPP $CPPFLAGS'
2480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2483 if test -n "$ac_tool_prefix"; then
2484 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2485 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2487 $as_echo_n "checking for $ac_word... " >&6; }
2488 if ${ac_cv_prog_CC+:} false; then :
2489 $as_echo_n "(cached) " >&6
2491 if test -n "$CC"; then
2492 ac_cv_prog_CC="$CC" # Let the user override the test.
2494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2498 test -z "$as_dir" && as_dir=.
2499 for ac_exec_ext in '' $ac_executable_extensions; do
2500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2501 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2512 if test -n "$CC"; then
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2514 $as_echo "$CC" >&6; }
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2517 $as_echo "no" >&6; }
2522 if test -z "$ac_cv_prog_CC"; then
2524 # Extract the first word of "gcc", so it can be a program name with args.
2525 set dummy gcc; ac_word=$2
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2527 $as_echo_n "checking for $ac_word... " >&6; }
2528 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2529 $as_echo_n "(cached) " >&6
2531 if test -n "$ac_ct_CC"; then
2532 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2538 test -z "$as_dir" && as_dir=.
2539 for ac_exec_ext in '' $ac_executable_extensions; do
2540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2541 ac_cv_prog_ac_ct_CC="gcc"
2542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2551 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2552 if test -n "$ac_ct_CC"; then
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2554 $as_echo "$ac_ct_CC" >&6; }
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2557 $as_echo "no" >&6; }
2560 if test "x$ac_ct_CC" = x; then
2563 case $cross_compiling:$ac_tool_warned in
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2566 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2567 ac_tool_warned=yes ;;
2575 if test -z "$CC"; then
2576 if test -n "$ac_tool_prefix"; then
2577 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2578 set dummy ${ac_tool_prefix}cc; ac_word=$2
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2580 $as_echo_n "checking for $ac_word... " >&6; }
2581 if ${ac_cv_prog_CC+:} false; then :
2582 $as_echo_n "(cached) " >&6
2584 if test -n "$CC"; then
2585 ac_cv_prog_CC="$CC" # Let the user override the test.
2587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2591 test -z "$as_dir" && as_dir=.
2592 for ac_exec_ext in '' $ac_executable_extensions; do
2593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2594 ac_cv_prog_CC="${ac_tool_prefix}cc"
2595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2605 if test -n "$CC"; then
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2607 $as_echo "$CC" >&6; }
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2610 $as_echo "no" >&6; }
2616 if test -z "$CC"; then
2617 # Extract the first word of "cc", so it can be a program name with args.
2618 set dummy cc; ac_word=$2
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2620 $as_echo_n "checking for $ac_word... " >&6; }
2621 if ${ac_cv_prog_CC+:} false; then :
2622 $as_echo_n "(cached) " >&6
2624 if test -n "$CC"; then
2625 ac_cv_prog_CC="$CC" # Let the user override the test.
2628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632 test -z "$as_dir" && as_dir=.
2633 for ac_exec_ext in '' $ac_executable_extensions; do
2634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2635 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2636 ac_prog_rejected=yes
2640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2647 if test $ac_prog_rejected = yes; then
2648 # We found a bogon in the path, so make sure we never use it.
2649 set dummy $ac_cv_prog_CC
2651 if test $# != 0; then
2652 # We chose a different compiler from the bogus one.
2653 # However, it has the same basename, so the bogon will be chosen
2654 # first if we set CC to just the basename; use the full file name.
2656 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2662 if test -n "$CC"; then
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2664 $as_echo "$CC" >&6; }
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2667 $as_echo "no" >&6; }
2672 if test -z "$CC"; then
2673 if test -n "$ac_tool_prefix"; then
2674 for ac_prog in cl.exe
2676 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2677 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2679 $as_echo_n "checking for $ac_word... " >&6; }
2680 if ${ac_cv_prog_CC+:} false; then :
2681 $as_echo_n "(cached) " >&6
2683 if test -n "$CC"; then
2684 ac_cv_prog_CC="$CC" # Let the user override the test.
2686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690 test -z "$as_dir" && as_dir=.
2691 for ac_exec_ext in '' $ac_executable_extensions; do
2692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2693 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2704 if test -n "$CC"; then
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2706 $as_echo "$CC" >&6; }
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2709 $as_echo "no" >&6; }
2713 test -n "$CC" && break
2716 if test -z "$CC"; then
2718 for ac_prog in cl.exe
2720 # Extract the first word of "$ac_prog", so it can be a program name with args.
2721 set dummy $ac_prog; ac_word=$2
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2723 $as_echo_n "checking for $ac_word... " >&6; }
2724 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2725 $as_echo_n "(cached) " >&6
2727 if test -n "$ac_ct_CC"; then
2728 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2734 test -z "$as_dir" && as_dir=.
2735 for ac_exec_ext in '' $ac_executable_extensions; do
2736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2737 ac_cv_prog_ac_ct_CC="$ac_prog"
2738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2747 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2748 if test -n "$ac_ct_CC"; then
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2750 $as_echo "$ac_ct_CC" >&6; }
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2753 $as_echo "no" >&6; }
2757 test -n "$ac_ct_CC" && break
2760 if test "x$ac_ct_CC" = x; then
2763 case $cross_compiling:$ac_tool_warned in
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2766 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2767 ac_tool_warned=yes ;;
2776 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2777 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2778 as_fn_error $? "no acceptable C compiler found
in \
$PATH
2779 See \
`config.log' for more details" "$LINENO" 5; }
2781 # Provide some information about the compiler.
2782 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2785 for ac_option in --version -v -V -qversion; do
2786 { { ac_try="$ac_compiler $ac_option >&5"
2788 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
2789 *) ac_try_echo
=$ac_try;;
2791 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2792 $as_echo "$ac_try_echo"; } >&5
2793 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2795 if test -s conftest.err
; then
2797 ... rest of stderr output deleted ...
2798 10q' conftest.err
>conftest.er1
2799 cat conftest.er1
>&5
2801 rm -f conftest.er1 conftest.err
2802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2803 test $ac_status = 0; }
2806 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2807 /* end confdefs.h. */
2817 ac_clean_files_save
=$ac_clean_files
2818 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2819 # Try to create an executable without -o first, disregard a.out.
2820 # It will help us diagnose broken compilers, and finding out an intuition
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2823 $as_echo_n "checking whether the C compiler works... " >&6; }
2824 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2826 # The possible output files:
2827 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2830 for ac_file
in $ac_files
2833 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.map
| *.inf
| *.dSYM
| *.o
| *.obj
) ;;
2834 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2839 if { { ac_try
="$ac_link_default"
2841 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
2842 *) ac_try_echo=$ac_try;;
2844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2845 $as_echo "$ac_try_echo"; } >&5
2846 (eval "$ac_link_default") 2>&5
2848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2849 test $ac_status = 0; }; then :
2850 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2851 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2852 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2853 # so that the user can short-circuit this test for compilers unknown to
2855 for ac_file in $ac_files ''
2857 test -f "$ac_file" || continue
2859 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2862 # We found the default executable, but exeext='' is most
2866 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2868 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2870 # We set ac_cv_exeext here because the later test for it is not
2871 # safe: cross compilers may not add the suffix if given an `-o'
2872 # argument, so we may need to know it at that point already.
2873 # Even if this section looks crufty: it has the advantage of
2880 test "$ac_cv_exeext" = no && ac_cv_exeext=
2885 if test -z "$ac_file"; then :
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2887 $as_echo "no" >&6; }
2888 $as_echo "$as_me: failed program was:" >&5
2889 sed 's
/^
/| /' conftest.$ac_ext >&5
2891 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2892 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2893 as_fn_error 77 "C compiler cannot create executables
2894 See \`config.log
' for more details" "$LINENO" 5; }
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2897 $as_echo "yes" >&6; }
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2900 $as_echo_n "checking for C compiler default output file name... " >&6; }
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2902 $as_echo "$ac_file" >&6; }
2903 ac_exeext=$ac_cv_exeext
2905 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2906 ac_clean_files=$ac_clean_files_save
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2908 $as_echo_n "checking for suffix of executables... " >&6; }
2909 if { { ac_try="$ac_link"
2911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2912 *) ac_try_echo=$ac_try;;
2914 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2915 $as_echo "$ac_try_echo"; } >&5
2916 (eval "$ac_link") 2>&5
2918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2919 test $ac_status = 0; }; then :
2920 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2921 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2922 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2924 for ac_file
in conftest.exe conftest conftest.
*; do
2925 test -f "$ac_file" || continue
2927 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.map
| *.inf
| *.dSYM
| *.o
| *.obj
) ;;
2928 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2934 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2936 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
2937 See \`config.log' for more details" "$LINENO" 5; }
2939 rm -f conftest conftest
$ac_cv_exeext
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2941 $as_echo "$ac_cv_exeext" >&6; }
2943 rm -f conftest.
$ac_ext
2944 EXEEXT
=$ac_cv_exeext
2946 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2947 /* end confdefs.h. */
2952 FILE *f = fopen ("conftest.out", "w");
2953 return ferror (f) || fclose (f) != 0;
2959 ac_clean_files
="$ac_clean_files conftest.out"
2960 # Check that the compiler produces executables we can run. If not, either
2961 # the compiler is broken, or we cross compile.
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2963 $as_echo_n "checking whether we are cross compiling... " >&6; }
2964 if test "$cross_compiling" != yes; then
2965 { { ac_try
="$ac_link"
2967 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
2968 *) ac_try_echo=$ac_try;;
2970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2971 $as_echo "$ac_try_echo"; } >&5
2972 (eval "$ac_link") 2>&5
2974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2975 test $ac_status = 0; }
2976 if { ac_try='./conftest$ac_cv_exeext'
2977 { { case "(($ac_try" in
2978 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
2979 *) ac_try_echo
=$ac_try;;
2981 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2982 $as_echo "$ac_try_echo"; } >&5
2983 (eval "$ac_try") 2>&5
2985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2986 test $ac_status = 0; }; }; then
2989 if test "$cross_compiling" = maybe
; then
2992 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2993 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2994 as_fn_error $?
"cannot run C compiled programs.
2995 If you meant to cross compile, use \`--host'.
2996 See \`config.log' for more details" "$LINENO" 5; }
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3001 $as_echo "$cross_compiling" >&6; }
3003 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3004 ac_clean_files
=$ac_clean_files_save
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3006 $as_echo_n "checking for suffix of object files... " >&6; }
3007 if ${ac_cv_objext+:} false
; then :
3008 $as_echo_n "(cached) " >&6
3010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3011 /* end confdefs.h. */
3021 rm -f conftest.o conftest.obj
3022 if { { ac_try
="$ac_compile"
3024 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
3025 *) ac_try_echo=$ac_try;;
3027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3028 $as_echo "$ac_try_echo"; } >&5
3029 (eval "$ac_compile") 2>&5
3031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3032 test $ac_status = 0; }; then :
3033 for ac_file in conftest.o conftest.obj conftest.*; do
3034 test -f "$ac_file" || continue;
3036 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3037 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3042 $as_echo "$as_me: failed program was:" >&5
3043 sed 's/^/| /' conftest.$ac_ext >&5
3045 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3046 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3047 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3048 See \
`config.log' for more details" "$LINENO" 5; }
3050 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3053 $as_echo "$ac_cv_objext" >&6; }
3054 OBJEXT=$ac_cv_objext
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3057 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3058 if ${ac_cv_c_compiler_gnu+:} false; then :
3059 $as_echo_n "(cached) " >&6
3061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3062 /* end confdefs.h. */
3075 if ac_fn_c_try_compile "$LINENO"; then :
3080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3081 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3085 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3086 if test $ac_compiler_gnu = yes; then
3091 ac_test_CFLAGS=${CFLAGS+set}
3092 ac_save_CFLAGS=$CFLAGS
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3094 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3095 if ${ac_cv_prog_cc_g+:} false; then :
3096 $as_echo_n "(cached) " >&6
3098 ac_save_c_werror_flag=$ac_c_werror_flag
3099 ac_c_werror_flag=yes
3102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3103 /* end confdefs.h. */
3113 if ac_fn_c_try_compile "$LINENO"; then :
3117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3118 /* end confdefs.h. */
3128 if ac_fn_c_try_compile "$LINENO"; then :
3131 ac_c_werror_flag=$ac_save_c_werror_flag
3133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3134 /* end confdefs.h. */
3144 if ac_fn_c_try_compile "$LINENO"; then :
3147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3152 ac_c_werror_flag=$ac_save_c_werror_flag
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3155 $as_echo "$ac_cv_prog_cc_g" >&6; }
3156 if test "$ac_test_CFLAGS" = set; then
3157 CFLAGS=$ac_save_CFLAGS
3158 elif test $ac_cv_prog_cc_g = yes; then
3159 if test "$GCC" = yes; then
3165 if test "$GCC" = yes; then
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3172 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3173 if ${ac_cv_prog_cc_c89+:} false; then :
3174 $as_echo_n "(cached) " >&6
3176 ac_cv_prog_cc_c89=no
3178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3179 /* end confdefs.h. */
3183 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3184 struct buf { int x; };
3185 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3186 static char *e (p, i)
3192 static char *f (char * (*g) (char **, int), char **p, ...)
3197 s = g (p, va_arg (v,int));
3202 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3203 function prototypes and stuff, but not '\xHH' hex character constants.
3204 These don't provoke an error unfortunately, instead are silently treated
3205 as 'x'. The following induces an error, until -std is added to get
3206 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3207 array size at least. It's necessary to write '\x00'==0 to get something
3208 that's true only with -std. */
3209 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3211 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3212 inside strings and character constants. */
3214 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3216 int test (int i, double x);
3217 struct s1 {int (*f) (int a);};
3218 struct s2 {int (*f) (double a);};
3219 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3225 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3230 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3231 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3233 CC="$ac_save_CC $ac_arg"
3234 if ac_fn_c_try_compile "$LINENO"; then :
3235 ac_cv_prog_cc_c89=$ac_arg
3237 rm -f core conftest.err conftest.$ac_objext
3238 test "x$ac_cv_prog_cc_c89" != "xno" && break
3240 rm -f conftest.$ac_ext
3245 case "x$ac_cv_prog_cc_c89" in
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3248 $as_echo "none needed" >&6; } ;;
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3251 $as_echo "unsupported" >&6; } ;;
3253 CC="$CC $ac_cv_prog_cc_c89"
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3255 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3257 if test "x$ac_cv_prog_cc_c89" != xno; then :
3262 ac_cpp='$CPP $CPPFLAGS'
3263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3269 ac_cpp='$CPP $CPPFLAGS'
3270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3274 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3275 # On Suns, sometimes $CPP names a directory.
3276 if test -n "$CPP" && test -d "$CPP"; then
3279 if test -z "$CPP"; then
3280 if ${ac_cv_prog_CPP+:} false; then :
3281 $as_echo_n "(cached) " >&6
3283 # Double quotes because CPP needs to be expanded
3284 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3287 for ac_c_preproc_warn_flag in '' yes
3289 # Use a header file that comes with gcc, so configuring glibc
3290 # with a fresh cross-compiler works.
3291 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3292 # <limits.h> exists even on freestanding compilers.
3293 # On the NeXT, cc -E runs the code through the compiler's parser,
3294 # not just through cpp. "Syntax error" is here to catch this case.
3295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3296 /* end confdefs.h. */
3298 # include <limits.h>
3300 # include <assert.h>
3304 if ac_fn_c_try_cpp "$LINENO"; then :
3307 # Broken: fails on valid input.
3310 rm -f conftest.err conftest.i conftest.$ac_ext
3312 # OK, works on sane cases. Now check whether nonexistent headers
3313 # can be detected and how.
3314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3315 /* end confdefs.h. */
3316 #include <ac_nonexistent.h>
3318 if ac_fn_c_try_cpp "$LINENO"; then :
3319 # Broken: success on invalid input.
3322 # Passes both tests.
3326 rm -f conftest.err conftest.i conftest.$ac_ext
3329 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3330 rm -f conftest.i conftest.err conftest.
$ac_ext
3331 if $ac_preproc_ok; then :
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3344 $as_echo "$CPP" >&6; }
3346 for ac_c_preproc_warn_flag
in '' yes
3348 # Use a header file that comes with gcc, so configuring glibc
3349 # with a fresh cross-compiler works.
3350 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3351 # <limits.h> exists even on freestanding compilers.
3352 # On the NeXT, cc -E runs the code through the compiler's parser,
3353 # not just through cpp. "Syntax error" is here to catch this case.
3354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3355 /* end confdefs.h. */
3357 # include <limits.h>
3359 # include <assert.h>
3363 if ac_fn_c_try_cpp
"$LINENO"; then :
3366 # Broken: fails on valid input.
3369 rm -f conftest.err conftest.i conftest.
$ac_ext
3371 # OK, works on sane cases. Now check whether nonexistent headers
3372 # can be detected and how.
3373 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3374 /* end confdefs.h. */
3375 #include <ac_nonexistent.h>
3377 if ac_fn_c_try_cpp
"$LINENO"; then :
3378 # Broken: success on invalid input.
3381 # Passes both tests.
3385 rm -f conftest.err conftest.i conftest.
$ac_ext
3388 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3389 rm -f conftest.i conftest.err conftest.
$ac_ext
3390 if $ac_preproc_ok; then :
3393 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3394 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3395 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3396 See \`config.log' for more details" "$LINENO" 5; }
3400 ac_cpp
='$CPP $CPPFLAGS'
3401 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3402 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3403 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3407 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3408 if ${ac_cv_path_GREP+:} false
; then :
3409 $as_echo_n "(cached) " >&6
3411 if test -z "$GREP"; then
3412 ac_path_GREP_found
=false
3413 # Loop through the user's path and test for each of PROGNAME-LIST
3414 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3415 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3418 test -z "$as_dir" && as_dir
=.
3419 for ac_prog
in grep ggrep
; do
3420 for ac_exec_ext
in '' $ac_executable_extensions; do
3421 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3422 as_fn_executable_p
"$ac_path_GREP" || continue
3423 # Check for GNU ac_path_GREP and select it if it is found.
3424 # Check for GNU $ac_path_GREP
3425 case `"$ac_path_GREP" --version 2>&1` in
3427 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3430 $as_echo_n 0123456789 >"conftest.in"
3433 cat "conftest.in" "conftest.in" >"conftest.tmp"
3434 mv "conftest.tmp" "conftest.in"
3435 cp "conftest.in" "conftest.nl"
3436 $as_echo 'GREP' >> "conftest.nl"
3437 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
3438 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
3439 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3440 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3441 # Best one so far, save it but keep looking for a better one
3442 ac_cv_path_GREP
="$ac_path_GREP"
3443 ac_path_GREP_max
=$ac_count
3445 # 10*(2^10) chars as input seems more than enough
3446 test $ac_count -gt 10 && break
3448 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3451 $ac_path_GREP_found && break 3
3456 if test -z "$ac_cv_path_GREP"; then
3457 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3460 ac_cv_path_GREP
=$GREP
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3465 $as_echo "$ac_cv_path_GREP" >&6; }
3466 GREP
="$ac_cv_path_GREP"
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3470 $as_echo_n "checking for egrep... " >&6; }
3471 if ${ac_cv_path_EGREP+:} false
; then :
3472 $as_echo_n "(cached) " >&6
3474 if echo a
| $GREP -E '(a|b)' >/dev
/null
2>&1
3475 then ac_cv_path_EGREP
="$GREP -E"
3477 if test -z "$EGREP"; then
3478 ac_path_EGREP_found
=false
3479 # Loop through the user's path and test for each of PROGNAME-LIST
3480 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3481 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3484 test -z "$as_dir" && as_dir
=.
3485 for ac_prog
in egrep; do
3486 for ac_exec_ext
in '' $ac_executable_extensions; do
3487 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3488 as_fn_executable_p
"$ac_path_EGREP" || continue
3489 # Check for GNU ac_path_EGREP and select it if it is found.
3490 # Check for GNU $ac_path_EGREP
3491 case `"$ac_path_EGREP" --version 2>&1` in
3493 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3496 $as_echo_n 0123456789 >"conftest.in"
3499 cat "conftest.in" "conftest.in" >"conftest.tmp"
3500 mv "conftest.tmp" "conftest.in"
3501 cp "conftest.in" "conftest.nl"
3502 $as_echo 'EGREP' >> "conftest.nl"
3503 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
3504 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
3505 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3506 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3507 # Best one so far, save it but keep looking for a better one
3508 ac_cv_path_EGREP
="$ac_path_EGREP"
3509 ac_path_EGREP_max
=$ac_count
3511 # 10*(2^10) chars as input seems more than enough
3512 test $ac_count -gt 10 && break
3514 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3517 $ac_path_EGREP_found && break 3
3522 if test -z "$ac_cv_path_EGREP"; then
3523 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3526 ac_cv_path_EGREP
=$EGREP
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3532 $as_echo "$ac_cv_path_EGREP" >&6; }
3533 EGREP
="$ac_cv_path_EGREP"
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3537 $as_echo_n "checking for ANSI C header files... " >&6; }
3538 if ${ac_cv_header_stdc+:} false
; then :
3539 $as_echo_n "(cached) " >&6
3541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3542 /* end confdefs.h. */
3556 if ac_fn_c_try_compile
"$LINENO"; then :
3557 ac_cv_header_stdc
=yes
3559 ac_cv_header_stdc
=no
3561 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3563 if test $ac_cv_header_stdc = yes; then
3564 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3565 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3566 /* end confdefs.h. */
3570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3571 $EGREP "memchr" >/dev
/null
2>&1; then :
3574 ac_cv_header_stdc
=no
3580 if test $ac_cv_header_stdc = yes; then
3581 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3583 /* end confdefs.h. */
3587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3588 $EGREP "free" >/dev
/null
2>&1; then :
3591 ac_cv_header_stdc
=no
3597 if test $ac_cv_header_stdc = yes; then
3598 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3599 if test "$cross_compiling" = yes; then :
3602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3603 /* end confdefs.h. */
3606 #if ((' ' & 0x0FF) == 0x020)
3607 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3608 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3610 # define ISLOWER(c) \
3611 (('a' <= (c) && (c) <= 'i') \
3612 || ('j' <= (c) && (c) <= 'r') \
3613 || ('s' <= (c) && (c) <= 'z'))
3614 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3617 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3622 for (i = 0; i < 256; i++)
3623 if (XOR (islower (i), ISLOWER (i))
3624 || toupper (i) != TOUPPER (i))
3629 if ac_fn_c_try_run
"$LINENO"; then :
3632 ac_cv_header_stdc
=no
3634 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3635 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3641 $as_echo "$ac_cv_header_stdc" >&6; }
3642 if test $ac_cv_header_stdc = yes; then
3644 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3648 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3649 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3650 inttypes.h stdint.h unistd.h
3652 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3653 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3655 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
3656 cat >>confdefs.h
<<_ACEOF
3657 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3666 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3667 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
3674 if test "$MINIX" = yes; then
3676 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3679 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3682 $as_echo "#define _MINIX 1" >>confdefs.h
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3688 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3689 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
3690 $as_echo_n "(cached) " >&6
3692 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3693 /* end confdefs.h. */
3695 # define __EXTENSIONS__ 1
3696 $ac_includes_default
3705 if ac_fn_c_try_compile
"$LINENO"; then :
3706 ac_cv_safe_to_define___extensions__
=yes
3708 ac_cv_safe_to_define___extensions__
=no
3710 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3713 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3714 test $ac_cv_safe_to_define___extensions__ = yes &&
3715 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3717 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3719 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3721 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3723 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3728 OLD_CFLAGS
="$CFLAGS"
3730 ac_cpp
='$CPP $CPPFLAGS'
3731 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3732 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3733 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3734 if test -n "$ac_tool_prefix"; then
3735 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3736 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3738 $as_echo_n "checking for $ac_word... " >&6; }
3739 if ${ac_cv_prog_CC+:} false
; then :
3740 $as_echo_n "(cached) " >&6
3742 if test -n "$CC"; then
3743 ac_cv_prog_CC
="$CC" # Let the user override the test.
3745 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3749 test -z "$as_dir" && as_dir
=.
3750 for ac_exec_ext
in '' $ac_executable_extensions; do
3751 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3752 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3763 if test -n "$CC"; then
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3765 $as_echo "$CC" >&6; }
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3768 $as_echo "no" >&6; }
3773 if test -z "$ac_cv_prog_CC"; then
3775 # Extract the first word of "gcc", so it can be a program name with args.
3776 set dummy gcc
; ac_word
=$2
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3778 $as_echo_n "checking for $ac_word... " >&6; }
3779 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3780 $as_echo_n "(cached) " >&6
3782 if test -n "$ac_ct_CC"; then
3783 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3785 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3789 test -z "$as_dir" && as_dir
=.
3790 for ac_exec_ext
in '' $ac_executable_extensions; do
3791 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3792 ac_cv_prog_ac_ct_CC
="gcc"
3793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3802 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3803 if test -n "$ac_ct_CC"; then
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3805 $as_echo "$ac_ct_CC" >&6; }
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3808 $as_echo "no" >&6; }
3811 if test "x$ac_ct_CC" = x
; then
3814 case $cross_compiling:$ac_tool_warned in
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3817 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3818 ac_tool_warned
=yes ;;
3826 if test -z "$CC"; then
3827 if test -n "$ac_tool_prefix"; then
3828 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3829 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3831 $as_echo_n "checking for $ac_word... " >&6; }
3832 if ${ac_cv_prog_CC+:} false
; then :
3833 $as_echo_n "(cached) " >&6
3835 if test -n "$CC"; then
3836 ac_cv_prog_CC
="$CC" # Let the user override the test.
3838 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3842 test -z "$as_dir" && as_dir
=.
3843 for ac_exec_ext
in '' $ac_executable_extensions; do
3844 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3845 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3856 if test -n "$CC"; then
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3858 $as_echo "$CC" >&6; }
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3861 $as_echo "no" >&6; }
3867 if test -z "$CC"; then
3868 # Extract the first word of "cc", so it can be a program name with args.
3869 set dummy cc
; ac_word
=$2
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3871 $as_echo_n "checking for $ac_word... " >&6; }
3872 if ${ac_cv_prog_CC+:} false
; then :
3873 $as_echo_n "(cached) " >&6
3875 if test -n "$CC"; then
3876 ac_cv_prog_CC
="$CC" # Let the user override the test.
3879 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3883 test -z "$as_dir" && as_dir
=.
3884 for ac_exec_ext
in '' $ac_executable_extensions; do
3885 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3886 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3887 ac_prog_rejected
=yes
3891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3898 if test $ac_prog_rejected = yes; then
3899 # We found a bogon in the path, so make sure we never use it.
3900 set dummy
$ac_cv_prog_CC
3902 if test $# != 0; then
3903 # We chose a different compiler from the bogus one.
3904 # However, it has the same basename, so the bogon will be chosen
3905 # first if we set CC to just the basename; use the full file name.
3907 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3913 if test -n "$CC"; then
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3915 $as_echo "$CC" >&6; }
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3918 $as_echo "no" >&6; }
3923 if test -z "$CC"; then
3924 if test -n "$ac_tool_prefix"; then
3925 for ac_prog
in cl.exe
3927 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3928 set dummy
$ac_tool_prefix$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_CC+:} false
; then :
3932 $as_echo_n "(cached) " >&6
3934 if test -n "$CC"; then
3935 ac_cv_prog_CC
="$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 as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3944 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3955 if test -n "$CC"; then
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3957 $as_echo "$CC" >&6; }
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3960 $as_echo "no" >&6; }
3964 test -n "$CC" && break
3967 if test -z "$CC"; then
3969 for ac_prog
in cl.exe
3971 # Extract the first word of "$ac_prog", so it can be a program name with args.
3972 set dummy
$ac_prog; ac_word
=$2
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3974 $as_echo_n "checking for $ac_word... " >&6; }
3975 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3976 $as_echo_n "(cached) " >&6
3978 if test -n "$ac_ct_CC"; then
3979 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3981 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3985 test -z "$as_dir" && as_dir
=.
3986 for ac_exec_ext
in '' $ac_executable_extensions; do
3987 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3988 ac_cv_prog_ac_ct_CC
="$ac_prog"
3989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3998 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3999 if test -n "$ac_ct_CC"; then
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4001 $as_echo "$ac_ct_CC" >&6; }
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4004 $as_echo "no" >&6; }
4008 test -n "$ac_ct_CC" && break
4011 if test "x$ac_ct_CC" = x
; then
4014 case $cross_compiling:$ac_tool_warned in
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4017 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4018 ac_tool_warned
=yes ;;
4027 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4028 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4029 as_fn_error $?
"no acceptable C compiler found in \$PATH
4030 See \`config.log' for more details" "$LINENO" 5; }
4032 # Provide some information about the compiler.
4033 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4036 for ac_option
in --version -v -V -qversion; do
4037 { { ac_try
="$ac_compiler $ac_option >&5"
4039 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
4040 *) ac_try_echo=$ac_try;;
4042 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4043 $as_echo "$ac_try_echo"; } >&5
4044 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4046 if test -s conftest.err; then
4048 ... rest of stderr output deleted ...
4049 10q' conftest.err >conftest.er1
4050 cat conftest.er1 >&5
4052 rm -f conftest.er1 conftest.err
4053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4054 test $ac_status = 0; }
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4058 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4059 if ${ac_cv_c_compiler_gnu+:} false; then :
4060 $as_echo_n "(cached) " >&6
4062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4063 /* end confdefs.h. */
4076 if ac_fn_c_try_compile "$LINENO"; then :
4081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4082 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4086 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4087 if test $ac_compiler_gnu = yes; then
4092 ac_test_CFLAGS=${CFLAGS+set}
4093 ac_save_CFLAGS=$CFLAGS
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4095 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4096 if ${ac_cv_prog_cc_g+:} false; then :
4097 $as_echo_n "(cached) " >&6
4099 ac_save_c_werror_flag=$ac_c_werror_flag
4100 ac_c_werror_flag=yes
4103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4104 /* end confdefs.h. */
4114 if ac_fn_c_try_compile "$LINENO"; then :
4118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4119 /* end confdefs.h. */
4129 if ac_fn_c_try_compile "$LINENO"; then :
4132 ac_c_werror_flag=$ac_save_c_werror_flag
4134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4135 /* end confdefs.h. */
4145 if ac_fn_c_try_compile "$LINENO"; then :
4148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4153 ac_c_werror_flag=$ac_save_c_werror_flag
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4156 $as_echo "$ac_cv_prog_cc_g" >&6; }
4157 if test "$ac_test_CFLAGS" = set; then
4158 CFLAGS=$ac_save_CFLAGS
4159 elif test $ac_cv_prog_cc_g = yes; then
4160 if test "$GCC" = yes; then
4166 if test "$GCC" = yes; then
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4173 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4174 if ${ac_cv_prog_cc_c89+:} false; then :
4175 $as_echo_n "(cached) " >&6
4177 ac_cv_prog_cc_c89=no
4179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4180 /* end confdefs.h. */
4184 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4185 struct buf { int x; };
4186 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4187 static char *e (p, i)
4193 static char *f (char * (*g) (char **, int), char **p, ...)
4198 s = g (p, va_arg (v,int));
4203 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4204 function prototypes and stuff, but not '\xHH' hex character constants.
4205 These don't provoke an error unfortunately, instead are silently treated
4206 as 'x'. The following induces an error, until -std is added to get
4207 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4208 array size at least. It's necessary to write '\x00'==0 to get something
4209 that's true only with -std. */
4210 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4212 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4213 inside strings and character constants. */
4215 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4217 int test (int i, double x);
4218 struct s1 {int (*f) (int a);};
4219 struct s2 {int (*f) (double a);};
4220 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4226 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4231 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4232 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4234 CC="$ac_save_CC $ac_arg"
4235 if ac_fn_c_try_compile "$LINENO"; then :
4236 ac_cv_prog_cc_c89=$ac_arg
4238 rm -f core conftest.err conftest.$ac_objext
4239 test "x$ac_cv_prog_cc_c89" != "xno" && break
4241 rm -f conftest.$ac_ext
4246 case "x$ac_cv_prog_cc_c89" in
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4249 $as_echo "none needed" >&6; } ;;
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4252 $as_echo "unsupported" >&6; } ;;
4254 CC="$CC $ac_cv_prog_cc_c89"
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4256 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4258 if test "x$ac_cv_prog_cc_c89" != xno; then :
4263 ac_cpp='$CPP $CPPFLAGS'
4264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4269 ac_cpp='$CPP $CPPFLAGS'
4270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4275 CFLAGS="$OLD_CFLAGS"
4279 if test "$ac_cv_c_compiler_gnu" != yes; then
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC -version for TenDRA or MIPSpro" >&5
4283 $as_echo_n "checking $CC -version for TenDRA or MIPSpro... " >&6; }
4284 case `$CC -version 2>&1` in
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, TenDRA" >&5
4287 $as_echo "yes, TenDRA" >&6; }
4289 CPPFLAGS="$CPPFLAGS -Ylonglong -Yansi -I/usr/include"
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, MIPSpro" >&5
4295 $as_echo "yes, MIPSpro" >&6; }
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4301 $as_echo "no" >&6; }
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc" >&5
4308 $as_echo_n "checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc... " >&6; }
4309 case `$CC -V 2>&1` in
4310 *Sun*WorkShop* | *Forte*Developer*)
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sun Workshop/Forte" >&5
4312 $as_echo "Sun Workshop/Forte" >&6; }
4313 IRC_CFLAGS="-fast -xinline=dlinkAdd,dlinkAddBefore,dlinkAddTail,dlinkDelete,dlink_list_length,dlink_node,dlinkMoveList,_MyMalloc,_MyRealloc,_MyFree,_DupString"
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Tru64 cc" >&5
4319 $as_echo "Tru64 cc" >&6; }
4321 CPPFLAGS="-I/usr/local/include"
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: HPUX cc" >&5
4326 $as_echo "HPUX cc" >&6; }
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4332 $as_echo "no" >&6; }
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking uname -s for Solaris, AIX or HPUX" >&5
4339 $as_echo_n "checking uname -s for Solaris, AIX or HPUX... " >&6; }
4344 if test "$HPUX" != yes -a "$ac_cv_c_compiler_gnu" = no; then
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming old HPUX with its own cc" >&5
4346 $as_echo "assuming old HPUX with its own cc" >&6; }
4347 IRC_CFLAGS="$IRC_CFLAGS +e"
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: already using newer HPUX" >&5
4351 $as_echo "already using newer HPUX" >&6; }
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SunOS or Solaris" >&5
4356 $as_echo "SunOS or Solaris" >&6; }
4358 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: AIX - Sorry you poor bastard..really we are" >&5
4364 $as_echo "AIX - Sorry you poor bastard..really we are" >&6; }
4365 IRC_CFLAGS="$IRC_CFLAGS -Wl,-brtl -Wl,-G"
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4369 $as_echo "no" >&6; }
4373 if test "$ac_cv_c_compiler_gnu" = yes; then
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC is Apple GCC" >&5
4375 $as_echo_n "checking if $CC is Apple GCC... " >&6; }
4377 case `$CC -v 2>&1 | tail -n 1` in
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4380 $as_echo "yes" >&6; }
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4385 $as_echo "no" >&6; }
4390 IRC_CFLAGS="$IRC_CFLAGS -O0 -Wall -std=gnu99"
4393 if test "$ac_cv_prog_cc_g" = yes; then
4394 if test "$Tru" = yes; then
4395 IRC_CFLAGS="$IRC_CFLAGS -g3"
4397 IRC_CFLAGS="$IRC_CFLAGS -g"
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the SVR4 SGS interfaces" >&5
4402 $as_echo_n "checking if $CC supports the SVR4 SGS interfaces... " >&6; }
4403 if test "$SGS" = "yes"; then
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4405 $as_echo "yes" >&6; }
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4408 $as_echo "no" >&6; }
4411 # Extract the first word of "mkdep", so it can be a program name with args.
4412 set dummy mkdep; ac_word=$2
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4414 $as_echo_n "checking for $ac_word... " >&6; }
4415 if ${ac_cv_path_MKDEP+:} false; then :
4416 $as_echo_n "(cached) " >&6
4420 ac_cv_path_MKDEP="$MKDEP" # Let the user override the test with a path.
4423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4427 test -z "$as_dir" && as_dir=.
4428 for ac_exec_ext in '' $ac_executable_extensions; do
4429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4430 ac_cv_path_MKDEP="$as_dir/$ac_word$ac_exec_ext"
4431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4441 MKDEP=$ac_cv_path_MKDEP
4442 if test -n "$MKDEP"; then
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDEP" >&5
4444 $as_echo "$MKDEP" >&6; }
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4447 $as_echo "no" >&6; }
4451 # Extract the first word of "makedepend", so it can be a program name with args.
4452 set dummy makedepend; ac_word=$2
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4454 $as_echo_n "checking for $ac_word... " >&6; }
4455 if ${ac_cv_path_MAKEDEPEND+:} false; then :
4456 $as_echo_n "(cached) " >&6
4460 ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path.
4463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4467 test -z "$as_dir" && as_dir=.
4468 for ac_exec_ext in '' $ac_executable_extensions; do
4469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4470 ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext"
4471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4481 MAKEDEPEND=$ac_cv_path_MAKEDEPEND
4482 if test -n "$MAKEDEPEND"; then
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEDEPEND" >&5
4484 $as_echo "$MAKEDEPEND" >&6; }
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4487 $as_echo "no" >&6; }
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to generate dependency info" >&5
4493 $as_echo_n "checking how to generate dependency info... " >&6; }
4497 if test "$ac_cv_c_compiler_gnu" = yes; then
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gcc -MM" >&5
4499 $as_echo "gcc -MM" >&6; }
4501 elif test ! -z "$MKDEP"; then
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: mkdep" >&5
4503 $as_echo "mkdep" >&6; }
4505 if test -z "$Tru"; then
4508 STDOUT=" 2> /dev/null"
4510 elif test "$SunWorkShop" = yes; then
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC -xM" >&5
4512 $as_echo "$CC -xM" >&6; }
4514 STDOUT="> .depend 2> /dev/null"
4515 elif test ! -z "$MAKEDEPEND"; then
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: makedepend" >&5
4517 $as_echo "makedepend" >&6; }
4518 MKDEP="$MAKEDEPEND -f-"
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: nothing suitable.. forget it!" >&5
4521 $as_echo "nothing suitable.. forget it!" >&6; }
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/null" >&5
4529 $as_echo_n "checking for /dev/null... " >&6; }
4530 if test -c /dev/null ; then
4532 $as_echo "#define PATH_DEVNULL \"/dev/null\"" >>confdefs.h
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4535 $as_echo "yes" >&6; }
4538 $as_echo "#define PATH_DEVNULL \"devnull.log\"" >>confdefs.h
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using devnull.log" >&5
4541 $as_echo "no - using devnull.log" >&6; }
4544 if test ! -z "$CFLAGS"; then
4545 IRC_CFLAGS="$IRC_CFLAGS $CFLAGS"
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4549 $as_echo_n "checking for library containing strerror... " >&6; }
4550 if ${ac_cv_search_strerror+:} false; then :
4551 $as_echo_n "(cached) " >&6
4553 ac_func_search_save_LIBS=$LIBS
4554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4555 /* end confdefs.h. */
4557 /* Override any GCC internal prototype to avoid an error.
4558 Use char because int might match the return type of a GCC
4559 builtin and then its argument prototype would still apply. */
4572 for ac_lib in '' cposix; do
4573 if test -z "$ac_lib"; then
4574 ac_res="none required"
4577 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4579 if ac_fn_c_try_link "$LINENO"; then :
4580 ac_cv_search_strerror=$ac_res
4582 rm -f core conftest.err conftest.$ac_objext \
4584 if ${ac_cv_search_strerror+:} false; then :
4588 if ${ac_cv_search_strerror+:} false; then :
4591 ac_cv_search_strerror=no
4594 LIBS=$ac_func_search_save_LIBS
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4597 $as_echo "$ac_cv_search_strerror" >&6; }
4598 ac_res=$ac_cv_search_strerror
4599 if test "$ac_res" != no; then :
4600 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4605 $as_echo_n "checking for inline... " >&6; }
4606 if ${ac_cv_c_inline+:} false; then :
4607 $as_echo_n "(cached) " >&6
4610 for ac_kw in inline __inline__ __inline; do
4611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4612 /* end confdefs.h. */
4615 static $ac_kw foo_t static_foo () {return 0; }
4616 $ac_kw foo_t foo () {return 0; }
4620 if ac_fn_c_try_compile "$LINENO"; then :
4621 ac_cv_c_inline=$ac_kw
4623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4624 test "$ac_cv_c_inline" != no && break
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4629 $as_echo "$ac_cv_c_inline" >&6; }
4631 case $ac_cv_c_inline in
4634 case $ac_cv_c_inline in
4636 *) ac_val=$ac_cv_c_inline;;
4638 cat >>confdefs.h <<_ACEOF
4640 #define inline $ac_val
4646 if test $ac_cv_c_compiler_gnu = yes; then
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4648 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4649 if ${ac_cv_prog_gcc_traditional+:} false; then :
4650 $as_echo_n "(cached) " >&6
4652 ac_pattern="Autoconf.*'x'"
4653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4654 /* end confdefs.h. */
4658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4659 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4660 ac_cv_prog_gcc_traditional=yes
4662 ac_cv_prog_gcc_traditional=no
4667 if test $ac_cv_prog_gcc_traditional = no; then
4668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4669 /* end confdefs.h. */
4673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4674 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4675 ac_cv_prog_gcc_traditional=yes
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4682 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4683 if test $ac_cv_prog_gcc_traditional = yes; then
4684 CC="$CC -traditional"
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4689 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4691 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4692 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4693 $as_echo_n "(cached) " >&6
4695 cat >conftest.make <<\_ACEOF
4698 @echo '@@@%%%=$(MAKE)=@@@%%%'
4700 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4701 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
4703 eval ac_cv_prog_make_${ac_make}_set=yes;;
4705 eval ac_cv_prog_make_${ac_make}_set=no;;
4709 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4711 $as_echo "yes" >&6; }
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4715 $as_echo "no" >&6; }
4716 SET_MAKE="MAKE=${MAKE-make}"
4720 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4721 if test -f "$ac_dir/install-sh"; then
4723 ac_install_sh="$ac_aux_dir/install-sh -c"
4725 elif test -f "$ac_dir/install.sh"; then
4727 ac_install_sh="$ac_aux_dir/install.sh -c"
4729 elif test -f "$ac_dir/shtool"; then
4731 ac_install_sh="$ac_aux_dir/shtool install -c"
4735 if test -z "$ac_aux_dir"; then
4736 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4739 # These three variables are undocumented and unsupported,
4740 # and are intended to be withdrawn in a future Autoconf release.
4741 # They can cause serious problems if a builder's source tree is in a directory
4742 # whose full name contains unusual characters.
4743 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4744 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4745 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4748 # Find a good install program. We prefer a C program (faster),
4749 # so one script is as good as another. But avoid the broken or
4750 # incompatible versions:
4751 # SysV /etc/install, /usr/sbin/install
4752 # SunOS /usr/etc/install
4753 # IRIX /sbin/install
4755 # AmigaOS /C/install, which installs bootblocks on floppy discs
4756 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4757 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4758 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4759 # OS/2's system install, which has a completely different semantic
4760 # ./install, which can be erroneously created by make from ./install.sh.
4761 # Reject install programs that cannot install multiple files.
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4763 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4764 if test -z "$INSTALL"; then
4765 if ${ac_cv_path_install+:} false; then :
4766 $as_echo_n "(cached) " >&6
4768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4772 test -z "$as_dir" && as_dir=.
4773 # Account for people who put trailing slashes in PATH elements.
4774 case $as_dir/ in #((
4775 ./ | .// | /[cC]/* | \
4776 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4777 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4780 # OSF1 and SCO ODT 3.0 have their own names for install.
4781 # Don't use installbsd from OSF since it installs stuff as root
4783 for ac_prog in ginstall scoinst install; do
4784 for ac_exec_ext in '' $ac_executable_extensions; do
4785 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4786 if test $ac_prog = install &&
4787 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4788 # AIX install. It has an incompatible calling convention.
4790 elif test $ac_prog = install &&
4791 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4792 # program-specific install script used by HP pwplus--don't use.
4795 rm -rf conftest.one conftest.two conftest.dir
4796 echo one > conftest.one
4797 echo two > conftest.two
4799 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4800 test -s conftest.one && test -s conftest.two &&
4801 test -s conftest.dir/conftest.one &&
4802 test -s conftest.dir/conftest.two
4804 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4817 rm -rf conftest.one conftest.two conftest.dir
4820 if test "${ac_cv_path_install+set}" = set; then
4821 INSTALL=$ac_cv_path_install
4823 # As a last resort, use the slow shell script. Don't cache a
4824 # value for INSTALL within a source directory, because that will
4825 # break other packages using the cache if that directory is
4826 # removed, or if the value is a relative name.
4827 INSTALL=$ac_install_sh
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4831 $as_echo "$INSTALL" >&6; }
4833 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4834 # It thinks the first close brace ends the variable substitution.
4835 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4837 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4839 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4841 # Extract the first word of "rm", so it can be a program name with args.
4842 set dummy rm; ac_word=$2
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4844 $as_echo_n "checking for $ac_word... " >&6; }
4845 if ${ac_cv_path_RM+:} false; then :
4846 $as_echo_n "(cached) " >&6
4850 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4857 test -z "$as_dir" && as_dir=.
4858 for ac_exec_ext in '' $ac_executable_extensions; do
4859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4860 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4872 if test -n "$RM"; then
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4874 $as_echo "$RM" >&6; }
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4877 $as_echo "no" >&6; }
4881 # Extract the first word of "cp", so it can be a program name with args.
4882 set dummy cp; ac_word=$2
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4884 $as_echo_n "checking for $ac_word... " >&6; }
4885 if ${ac_cv_path_CP+:} false; then :
4886 $as_echo_n "(cached) " >&6
4890 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4897 test -z "$as_dir" && as_dir=.
4898 for ac_exec_ext in '' $ac_executable_extensions; do
4899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4900 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4912 if test -n "$CP"; then
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
4914 $as_echo "$CP" >&6; }
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4917 $as_echo "no" >&6; }
4921 # Extract the first word of "mv", so it can be a program name with args.
4922 set dummy mv; ac_word=$2
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4924 $as_echo_n "checking for $ac_word... " >&6; }
4925 if ${ac_cv_path_MV+:} false; then :
4926 $as_echo_n "(cached) " >&6
4930 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4937 test -z "$as_dir" && as_dir=.
4938 for ac_exec_ext in '' $ac_executable_extensions; do
4939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4940 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4952 if test -n "$MV"; then
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4954 $as_echo "$MV" >&6; }
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4957 $as_echo "no" >&6; }
4961 # Extract the first word of "ln", so it can be a program name with args.
4962 set dummy ln; ac_word=$2
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4964 $as_echo_n "checking for $ac_word... " >&6; }
4965 if ${ac_cv_path_LN+:} false; then :
4966 $as_echo_n "(cached) " >&6
4970 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977 test -z "$as_dir" && as_dir=.
4978 for ac_exec_ext in '' $ac_executable_extensions; do
4979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4980 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4992 if test -n "$LN"; then
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
4994 $as_echo "$LN" >&6; }
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4997 $as_echo "no" >&6; }
5001 # Extract the first word of "sed", so it can be a program name with args.
5002 set dummy sed; ac_word=$2
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5004 $as_echo_n "checking for $ac_word... " >&6; }
5005 if ${ac_cv_path_SED+:} false; then :
5006 $as_echo_n "(cached) " >&6
5010 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5017 test -z "$as_dir" && as_dir=.
5018 for ac_exec_ext in '' $ac_executable_extensions; do
5019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5020 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5032 if test -n "$SED"; then
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5034 $as_echo "$SED" >&6; }
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5037 $as_echo "no" >&6; }
5041 # Extract the first word of "ar", so it can be a program name with args.
5042 set dummy ar; ac_word=$2
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5044 $as_echo_n "checking for $ac_word... " >&6; }
5045 if ${ac_cv_path_AR+:} false; then :
5046 $as_echo_n "(cached) " >&6
5050 ac_cv_path_AR="$AR" # Let the user override the test with a path.
5053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057 test -z "$as_dir" && as_dir=.
5058 for ac_exec_ext in '' $ac_executable_extensions; do
5059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5060 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5072 if test -n "$AR"; then
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5074 $as_echo "$AR" >&6; }
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5077 $as_echo "no" >&6; }
5081 # Extract the first word of "ld", so it can be a program name with args.
5082 set dummy ld; ac_word=$2
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5084 $as_echo_n "checking for $ac_word... " >&6; }
5085 if ${ac_cv_path_LD+:} false; then :
5086 $as_echo_n "(cached) " >&6
5090 ac_cv_path_LD="$LD" # Let the user override the test with a path.
5093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097 test -z "$as_dir" && as_dir=.
5098 for ac_exec_ext in '' $ac_executable_extensions; do
5099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5100 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
5101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5112 if test -n "$LD"; then
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5114 $as_echo "$LD" >&6; }
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5117 $as_echo "no" >&6; }
5121 # Extract the first word of "ranlib", so it can be a program name with args.
5122 set dummy ranlib; ac_word=$2
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5124 $as_echo_n "checking for $ac_word... " >&6; }
5125 if ${ac_cv_path_RANLIB+:} false; then :
5126 $as_echo_n "(cached) " >&6
5130 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
5133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5137 test -z "$as_dir" && as_dir=.
5138 for ac_exec_ext in '' $ac_executable_extensions; do
5139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5140 ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
5141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5151 RANLIB=$ac_cv_path_RANLIB
5152 if test -n "$RANLIB"; then
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5154 $as_echo "$RANLIB" >&6; }
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5157 $as_echo "no" >&6; }
5161 # Extract the first word of "touch", so it can be a program name with args.
5162 set dummy touch; ac_word=$2
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5164 $as_echo_n "checking for $ac_word... " >&6; }
5165 if ${ac_cv_path_TOUCH+:} false; then :
5166 $as_echo_n "(cached) " >&6
5170 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
5173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5177 test -z "$as_dir" && as_dir=.
5178 for ac_exec_ext in '' $ac_executable_extensions; do
5179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5180 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
5181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5191 TOUCH=$ac_cv_path_TOUCH
5192 if test -n "$TOUCH"; then
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5194 $as_echo "$TOUCH" >&6; }
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5197 $as_echo "no" >&6; }
5202 for ac_prog in 'bison -y' byacc
5204 # Extract the first word of "$ac_prog", so it can be a program name with args.
5205 set dummy $ac_prog; ac_word=$2
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5207 $as_echo_n "checking for $ac_word... " >&6; }
5208 if ${ac_cv_prog_YACC+:} false; then :
5209 $as_echo_n "(cached) " >&6
5211 if test -n "$YACC"; then
5212 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5218 test -z "$as_dir" && as_dir=.
5219 for ac_exec_ext in '' $ac_executable_extensions; do
5220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5221 ac_cv_prog_YACC="$ac_prog"
5222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5231 YACC=$ac_cv_prog_YACC
5232 if test -n "$YACC"; then
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5234 $as_echo "$YACC" >&6; }
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5237 $as_echo "no" >&6; }
5241 test -n "$YACC" && break
5243 test -n "$YACC" || YACC="yacc"
5246 if test "$YACC" = "yacc" -a -z "`which $YACC 2>/dev
/null
`"; then
5247 as_fn_error $? "could not locate a suitable parser generator; install bison, yacc, or byacc" "$LINENO" 5
5250 for ac_prog in flex lex
5252 # Extract the first word of "$ac_prog", so it can be a program name with args.
5253 set dummy $ac_prog; ac_word=$2
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5255 $as_echo_n "checking for $ac_word... " >&6; }
5256 if ${ac_cv_prog_LEX+:} false; then :
5257 $as_echo_n "(cached) " >&6
5259 if test -n "$LEX"; then
5260 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5266 test -z "$as_dir" && as_dir=.
5267 for ac_exec_ext in '' $ac_executable_extensions; do
5268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5269 ac_cv_prog_LEX="$ac_prog"
5270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5280 if test -n "$LEX"; then
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
5282 $as_echo "$LEX" >&6; }
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5285 $as_echo "no" >&6; }
5289 test -n "$LEX" && break
5291 test -n "$LEX" || LEX=":"
5293 if test "x$LEX" != "x:"; then
5294 cat >conftest.l <<_ACEOF
5300 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
5301 yyless ((input () != 0)); }
5302 f { unput (yytext[0]); }
5303 . { BEGIN INITIAL; }
5305 #ifdef YYTEXT_POINTER
5306 extern char *yytext;
5311 return ! yylex () + ! yywrap ();
5314 { { ac_try="$LEX conftest.l"
5316 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
5317 *) ac_try_echo
=$ac_try;;
5319 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5320 $as_echo "$ac_try_echo"; } >&5
5321 (eval "$LEX conftest.l") 2>&5
5323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5324 test $ac_status = 0; }
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
5326 $as_echo_n "checking lex output file root... " >&6; }
5327 if ${ac_cv_prog_lex_root+:} false
; then :
5328 $as_echo_n "(cached) " >&6
5331 if test -f lex.yy.c
; then
5332 ac_cv_prog_lex_root
=lex.yy
5333 elif test -f lexyy.c
; then
5334 ac_cv_prog_lex_root
=lexyy
5336 as_fn_error $?
"cannot find output from $LEX; giving up" "$LINENO" 5
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
5340 $as_echo "$ac_cv_prog_lex_root" >&6; }
5341 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
5343 if test -z "${LEXLIB+set}"; then
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
5345 $as_echo_n "checking lex library... " >&6; }
5346 if ${ac_cv_lib_lex+:} false
; then :
5347 $as_echo_n "(cached) " >&6
5351 ac_cv_lib_lex
='none needed'
5352 for ac_lib
in '' -lfl -ll; do
5353 LIBS
="$ac_lib $ac_save_LIBS"
5354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5355 /* end confdefs.h. */
5356 `cat $LEX_OUTPUT_ROOT.c`
5358 if ac_fn_c_try_link
"$LINENO"; then :
5359 ac_cv_lib_lex
=$ac_lib
5361 rm -f core conftest.err conftest.
$ac_objext \
5362 conftest
$ac_exeext conftest.
$ac_ext
5363 test "$ac_cv_lib_lex" != 'none needed' && break
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
5369 $as_echo "$ac_cv_lib_lex" >&6; }
5370 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB
=$ac_cv_lib_lex
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
5375 $as_echo_n "checking whether yytext is a pointer... " >&6; }
5376 if ${ac_cv_prog_lex_yytext_pointer+:} false
; then :
5377 $as_echo_n "(cached) " >&6
5379 # POSIX says lex can declare yytext either as a pointer or an array; the
5380 # default is implementation-dependent. Figure out which it is, since
5381 # not all implementations provide the %pointer and %array declarations.
5382 ac_cv_prog_lex_yytext_pointer
=no
5384 LIBS
="$LEXLIB $ac_save_LIBS"
5385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5386 /* end confdefs.h. */
5388 #define YYTEXT_POINTER 1
5389 `cat $LEX_OUTPUT_ROOT.c`
5391 if ac_fn_c_try_link
"$LINENO"; then :
5392 ac_cv_prog_lex_yytext_pointer
=yes
5394 rm -f core conftest.err conftest.
$ac_objext \
5395 conftest
$ac_exeext conftest.
$ac_ext
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
5400 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
5401 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5403 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
5406 rm -f conftest.l
$LEX_OUTPUT_ROOT.c
5410 if test "$LEX" = ":"; then
5411 as_fn_error $?
"could not locate a suitable lexical generator, install flex or lex." "$LINENO" 5
5414 # Check whether --enable-fhs-paths was given.
5415 if test "${enable_fhs_paths+set}" = set; then :
5416 enableval
=$enable_fhs_paths;
5418 if test "$libexecdir" = '${exec_prefix}/libexec' && \
5419 test "$localstatedir" = '${prefix}/var' && \
5420 test "$libdir" = '${exec_prefix}/lib'; then :
5423 enable_fhs_paths
=yes
5428 if test "x$enable_fhs_paths" = "xyes"; then :
5429 pkglibexecdir
='${libexecdir}/${PACKAGE_TARNAME}'
5430 rundir
=${rundir-'${prefix}/run'}
5431 pkgrundir
='${rundir}/${PACKAGE_TARNAME}'
5432 pkglocalstatedir
='${localstatedir}/${PACKAGE_TARNAME}'
5434 libexecdir
='${bindir}'
5435 pkglibexecdir
='${libexecdir}'
5436 rundir
='${sysconfdir}'
5437 pkgrundir
='${rundir}'
5438 localstatedir
='${prefix}'
5439 pkglocalstatedir
='${sysconfdir}'
5441 pkglibdir
='${libdir}/${PACKAGE_TARNAME}'
5447 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5448 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5449 last_ac_define_dir
=`eval echo $pkglocalstatedir`
5450 ac_define_dir
=`eval echo $last_ac_define_dir`
5451 ac_define_dir_counter
=0
5452 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
5453 last_ac_define_dir
="$ac_define_dir"
5454 ac_define_dir
=`eval echo $last_ac_define_dir`
5455 as_fn_arith
$ac_define_dir_counter + 1 && ac_define_dir_counter
=$as_val
5456 if test "x$ac_define_dir_counter" = x128
; then :
5457 as_fn_error $?
"detected recusive directory expansion when expanding PKGLOCALSTATEDIR=$pkglocalstatedir: $ac_define_dir" "$LINENO" 5
5461 PKGLOCALSTATEDIR
="$ac_define_dir"
5464 cat >>confdefs.h
<<_ACEOF
5465 #define PKGLOCALSTATEDIR "$ac_define_dir"
5471 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5472 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5473 last_ac_define_dir
=`eval echo $pkglibexecdir`
5474 ac_define_dir
=`eval echo $last_ac_define_dir`
5475 ac_define_dir_counter
=0
5476 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
5477 last_ac_define_dir
="$ac_define_dir"
5478 ac_define_dir
=`eval echo $last_ac_define_dir`
5479 as_fn_arith
$ac_define_dir_counter + 1 && ac_define_dir_counter
=$as_val
5480 if test "x$ac_define_dir_counter" = x128
; then :
5481 as_fn_error $?
"detected recusive directory expansion when expanding PKGLIBEXECDIR=$pkglibexecdir: $ac_define_dir" "$LINENO" 5
5485 PKGLIBEXECDIR
="$ac_define_dir"
5488 cat >>confdefs.h
<<_ACEOF
5489 #define PKGLIBEXECDIR "$ac_define_dir"
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5495 $as_echo_n "checking for ANSI C header files... " >&6; }
5496 if ${ac_cv_header_stdc+:} false
; then :
5497 $as_echo_n "(cached) " >&6
5499 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5500 /* end confdefs.h. */
5514 if ac_fn_c_try_compile
"$LINENO"; then :
5515 ac_cv_header_stdc
=yes
5517 ac_cv_header_stdc
=no
5519 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5521 if test $ac_cv_header_stdc = yes; then
5522 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5523 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5524 /* end confdefs.h. */
5528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5529 $EGREP "memchr" >/dev
/null
2>&1; then :
5532 ac_cv_header_stdc
=no
5538 if test $ac_cv_header_stdc = yes; then
5539 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5540 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5541 /* end confdefs.h. */
5545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5546 $EGREP "free" >/dev
/null
2>&1; then :
5549 ac_cv_header_stdc
=no
5555 if test $ac_cv_header_stdc = yes; then
5556 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5557 if test "$cross_compiling" = yes; then :
5560 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5561 /* end confdefs.h. */
5564 #if ((' ' & 0x0FF) == 0x020)
5565 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5566 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5568 # define ISLOWER(c) \
5569 (('a' <= (c) && (c) <= 'i') \
5570 || ('j' <= (c) && (c) <= 'r') \
5571 || ('s' <= (c) && (c) <= 'z'))
5572 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5575 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5580 for (i = 0; i < 256; i++)
5581 if (XOR (islower (i), ISLOWER (i))
5582 || toupper (i) != TOUPPER (i))
5587 if ac_fn_c_try_run
"$LINENO"; then :
5590 ac_cv_header_stdc
=no
5592 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5593 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5599 $as_echo "$ac_cv_header_stdc" >&6; }
5600 if test $ac_cv_header_stdc = yes; then
5602 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5607 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
5609 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5610 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5611 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5612 cat >>confdefs.h
<<_ACEOF
5613 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5623 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5624 if ${ac_cv_c_const+:} false
; then :
5625 $as_echo_n "(cached) " >&6
5627 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5628 /* end confdefs.h. */
5635 /* Ultrix mips cc rejects this sort of thing. */
5636 typedef int charset[2];
5637 const charset cs = { 0, 0 };
5638 /* SunOS 4.1.1 cc rejects this. */
5639 char const *const *pcpcc;
5641 /* NEC SVR4.0.2 mips cc rejects this. */
5642 struct point {int x, y;};
5643 static struct point const zero = {0,0};
5644 /* AIX XL C 1.02.0.0 rejects this.
5645 It does not let you subtract one const X* pointer from another in
5646 an arm of an if-expression whose if-part is not a constant
5648 const char *g = "string";
5649 pcpcc = &g + (g ? g-g : 0);
5650 /* HPUX 7.0 cc rejects these. */
5652 ppc = (char**) pcpcc;
5653 pcpcc = (char const *const *) ppc;
5654 { /* SCO 3.2v4 cc rejects this sort of thing. */
5657 char const *s = 0 ? (char *) 0 : (char const *) 0;
5662 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5664 const int *foo = &x[0];
5667 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5668 typedef const int *iptr;
5672 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
5673 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5674 struct s { int j; const int *ap[3]; } bx;
5675 struct s *b = &bx; b->j = 5;
5677 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5681 return !cs[0] && !zero.x;
5688 if ac_fn_c_try_compile
"$LINENO"; then :
5693 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5696 $as_echo "$ac_cv_c_const" >&6; }
5697 if test $ac_cv_c_const = no
; then
5699 $as_echo "#define const /**/" >>confdefs.h
5703 if test "$ac_cv_header_machine_endian_h" = "no" ; then
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5705 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5706 if ${ac_cv_c_bigendian+:} false
; then :
5707 $as_echo_n "(cached) " >&6
5709 ac_cv_c_bigendian
=unknown
5710 # See if we're dealing with a universal compiler.
5711 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5712 /* end confdefs.h. */
5713 #ifndef __APPLE_CC__
5714 not a universal capable compiler
5719 if ac_fn_c_try_compile
"$LINENO"; then :
5721 # Check for potential -arch flags. It is not universal unless
5722 # there are at least two -arch flags with different values.
5725 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5726 if test -n "$ac_prev"; then
5728 i?
86 | x86_64
| ppc
| ppc64
)
5729 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5732 ac_cv_c_bigendian
=universal
5738 elif test "x$ac_word" = "x-arch"; then
5743 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5744 if test $ac_cv_c_bigendian = unknown
; then
5745 # See if sys/param.h defines the BYTE_ORDER macro.
5746 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5747 /* end confdefs.h. */
5748 #include <sys/types.h>
5749 #include <sys/param.h>
5754 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5755 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5764 if ac_fn_c_try_compile
"$LINENO"; then :
5765 # It does; now see whether it defined to BIG_ENDIAN or not.
5766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5767 /* end confdefs.h. */
5768 #include <sys/types.h>
5769 #include <sys/param.h>
5774 #if BYTE_ORDER != BIG_ENDIAN
5782 if ac_fn_c_try_compile
"$LINENO"; then :
5783 ac_cv_c_bigendian
=yes
5785 ac_cv_c_bigendian
=no
5787 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5789 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5791 if test $ac_cv_c_bigendian = unknown
; then
5792 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5793 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5794 /* end confdefs.h. */
5800 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5808 if ac_fn_c_try_compile
"$LINENO"; then :
5809 # It does; now see whether it defined to _BIG_ENDIAN or not.
5810 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5811 /* end confdefs.h. */
5825 if ac_fn_c_try_compile
"$LINENO"; then :
5826 ac_cv_c_bigendian
=yes
5828 ac_cv_c_bigendian
=no
5830 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5832 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5834 if test $ac_cv_c_bigendian = unknown
; then
5835 # Compile a test program.
5836 if test "$cross_compiling" = yes; then :
5837 # Try to guess by grepping values from an object file.
5838 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5839 /* end confdefs.h. */
5840 short int ascii_mm[] =
5841 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5842 short int ascii_ii[] =
5843 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5844 int use_ascii (int i) {
5845 return ascii_mm[i] + ascii_ii[i];
5847 short int ebcdic_ii[] =
5848 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5849 short int ebcdic_mm[] =
5850 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5851 int use_ebcdic (int i) {
5852 return ebcdic_mm[i] + ebcdic_ii[i];
5859 return use_ascii (foo) == use_ebcdic (foo);
5864 if ac_fn_c_try_compile
"$LINENO"; then :
5865 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
5866 ac_cv_c_bigendian
=yes
5868 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
5869 if test "$ac_cv_c_bigendian" = unknown
; then
5870 ac_cv_c_bigendian
=no
5872 # finding both strings is unlikely to happen, but who knows?
5873 ac_cv_c_bigendian
=unknown
5877 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5879 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5880 /* end confdefs.h. */
5881 $ac_includes_default
5886 /* Are we little or big endian? From Harbison&Steele. */
5890 char c[sizeof (long int)];
5893 return u.c[sizeof (long int) - 1] == 1;
5899 if ac_fn_c_try_run
"$LINENO"; then :
5900 ac_cv_c_bigendian
=no
5902 ac_cv_c_bigendian
=yes
5904 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5905 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5911 $as_echo "$ac_cv_c_bigendian" >&6; }
5912 case $ac_cv_c_bigendian in #(
5914 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5920 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5924 as_fn_error $?
"unknown endianness
5925 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5929 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5930 if test "x$ac_cv_type_pid_t" = xyes
; then :
5934 cat >>confdefs.h
<<_ACEOF
5940 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5941 if test "x$ac_cv_type_size_t" = xyes
; then :
5945 cat >>confdefs.h
<<_ACEOF
5946 #define size_t unsigned int
5951 # The cast to long int works around a bug in the HP C Compiler
5952 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5953 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5954 # This bug is HP SR number 8606223364.
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5956 $as_echo_n "checking size of short... " >&6; }
5957 if ${ac_cv_sizeof_short+:} false
; then :
5958 $as_echo_n "(cached) " >&6
5960 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5963 if test "$ac_cv_type_short" = yes; then
5964 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5965 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5966 as_fn_error
77 "cannot compute sizeof (short)
5967 See \`config.log' for more details" "$LINENO" 5; }
5969 ac_cv_sizeof_short
=0
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5975 $as_echo "$ac_cv_sizeof_short" >&6; }
5979 cat >>confdefs.h
<<_ACEOF
5980 #define SIZEOF_SHORT $ac_cv_sizeof_short
5984 # The cast to long int works around a bug in the HP C Compiler
5985 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5986 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5987 # This bug is HP SR number 8606223364.
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5989 $as_echo_n "checking size of int... " >&6; }
5990 if ${ac_cv_sizeof_int+:} false
; then :
5991 $as_echo_n "(cached) " >&6
5993 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5996 if test "$ac_cv_type_int" = yes; then
5997 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5998 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5999 as_fn_error
77 "cannot compute sizeof (int)
6000 See \`config.log' for more details" "$LINENO" 5; }
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6008 $as_echo "$ac_cv_sizeof_int" >&6; }
6012 cat >>confdefs.h
<<_ACEOF
6013 #define SIZEOF_INT $ac_cv_sizeof_int
6017 # The cast to long int works around a bug in the HP C Compiler
6018 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6019 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6020 # This bug is HP SR number 8606223364.
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6022 $as_echo_n "checking size of long... " >&6; }
6023 if ${ac_cv_sizeof_long+:} false
; then :
6024 $as_echo_n "(cached) " >&6
6026 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6029 if test "$ac_cv_type_long" = yes; then
6030 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6032 as_fn_error
77 "cannot compute sizeof (long)
6033 See \`config.log' for more details" "$LINENO" 5; }
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6041 $as_echo "$ac_cv_sizeof_long" >&6; }
6045 cat >>confdefs.h
<<_ACEOF
6046 #define SIZEOF_LONG $ac_cv_sizeof_long
6050 # The cast to long int works around a bug in the HP C Compiler
6051 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6052 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6053 # This bug is HP SR number 8606223364.
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6055 $as_echo_n "checking size of long long... " >&6; }
6056 if ${ac_cv_sizeof_long_long+:} false
; then :
6057 $as_echo_n "(cached) " >&6
6059 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6062 if test "$ac_cv_type_long_long" = yes; then
6063 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6064 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6065 as_fn_error
77 "cannot compute sizeof (long long)
6066 See \`config.log' for more details" "$LINENO" 5; }
6068 ac_cv_sizeof_long_long
=0
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6074 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6078 cat >>confdefs.h
<<_ACEOF
6079 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
6086 $as_echo_n "checking for library containing socket... " >&6; }
6087 if ${ac_cv_search_socket+:} false
; then :
6088 $as_echo_n "(cached) " >&6
6090 ac_func_search_save_LIBS
=$LIBS
6091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6092 /* end confdefs.h. */
6094 /* Override any GCC internal prototype to avoid an error.
6095 Use char because int might match the return type of a GCC
6096 builtin and then its argument prototype would still apply. */
6109 for ac_lib
in '' socket
; do
6110 if test -z "$ac_lib"; then
6111 ac_res
="none required"
6114 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6116 if ac_fn_c_try_link
"$LINENO"; then :
6117 ac_cv_search_socket
=$ac_res
6119 rm -f core conftest.err conftest.
$ac_objext \
6121 if ${ac_cv_search_socket+:} false
; then :
6125 if ${ac_cv_search_socket+:} false
; then :
6128 ac_cv_search_socket
=no
6131 LIBS
=$ac_func_search_save_LIBS
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
6134 $as_echo "$ac_cv_search_socket" >&6; }
6135 ac_res
=$ac_cv_search_socket
6136 if test "$ac_res" != no
; then :
6137 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6140 as_fn_error $?
"You have no socket()! Aborting." "$LINENO" 5
6144 if test x
"$SUN" = xyes
; then
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
6146 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
6147 if ${ac_cv_search_inet_ntoa+:} false
; then :
6148 $as_echo_n "(cached) " >&6
6150 ac_func_search_save_LIBS
=$LIBS
6151 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6152 /* end confdefs.h. */
6154 /* Override any GCC internal prototype to avoid an error.
6155 Use char because int might match the return type of a GCC
6156 builtin and then its argument prototype would still apply. */
6164 return inet_ntoa ();
6169 for ac_lib
in '' nsl
; do
6170 if test -z "$ac_lib"; then
6171 ac_res
="none required"
6174 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6176 if ac_fn_c_try_link
"$LINENO"; then :
6177 ac_cv_search_inet_ntoa
=$ac_res
6179 rm -f core conftest.err conftest.
$ac_objext \
6181 if ${ac_cv_search_inet_ntoa+:} false
; then :
6185 if ${ac_cv_search_inet_ntoa+:} false
; then :
6188 ac_cv_search_inet_ntoa
=no
6191 LIBS
=$ac_func_search_save_LIBS
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
6194 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
6195 ac_res
=$ac_cv_search_inet_ntoa
6196 if test "$ac_res" != no
; then :
6197 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6200 as_fn_error $?
"libnsl not found! Aborting." "$LINENO" 5
6205 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
6206 #include <sys/socket.h>
6208 if test "x$ac_cv_type_socklen_t" = xyes
; then :
6212 $as_echo "#define socklen_t unsigned int" >>confdefs.h
6217 # Check whether --enable-ipv6 was given.
6218 if test "${enable_ipv6+set}" = set; then :
6219 enableval
=$enable_ipv6; ipv6
=$enableval
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
6226 $as_echo_n "checking for library containing crypt... " >&6; }
6227 if ${ac_cv_search_crypt+:} false
; then :
6228 $as_echo_n "(cached) " >&6
6230 ac_func_search_save_LIBS
=$LIBS
6231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6232 /* end confdefs.h. */
6234 /* Override any GCC internal prototype to avoid an error.
6235 Use char because int might match the return type of a GCC
6236 builtin and then its argument prototype would still apply. */
6249 for ac_lib
in '' crypt descrypt
; do
6250 if test -z "$ac_lib"; then
6251 ac_res
="none required"
6254 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6256 if ac_fn_c_try_link
"$LINENO"; then :
6257 ac_cv_search_crypt
=$ac_res
6259 rm -f core conftest.err conftest.
$ac_objext \
6261 if ${ac_cv_search_crypt+:} false
; then :
6265 if ${ac_cv_search_crypt+:} false
; then :
6268 ac_cv_search_crypt
=no
6271 LIBS
=$ac_func_search_save_LIBS
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
6274 $as_echo "$ac_cv_search_crypt" >&6; }
6275 ac_res
=$ac_cv_search_crypt
6276 if test "$ac_res" != no
; then :
6277 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6282 CRYPT_LIB
=$ac_cv_search_crypt
6284 if test "$CRYPT_LIB" = "none required"; then
6286 elif test "$CRYPT_LIB" = no
; then
6292 if test "$ac_cv_header_sys_wait_h" = yes -o "$ac_cv_header_wait_h" = yes; then
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
6301 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
6302 if ${gcc_cv_header_string+:} false
; then :
6303 $as_echo_n "(cached) " >&6
6306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6307 /* end confdefs.h. */
6309 #include <strings.h>
6311 if ac_fn_c_try_compile
"$LINENO"; then :
6312 gcc_cv_header_string
=yes
6314 gcc_cv_header_string
=no
6316 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
6320 $as_echo "$gcc_cv_header_string" >&6; }
6322 if test "$gcc_cv_header_string" = "yes"; then
6324 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6329 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6330 if ${ac_cv_c_bigendian+:} false
; then :
6331 $as_echo_n "(cached) " >&6
6333 ac_cv_c_bigendian
=unknown
6334 # See if we're dealing with a universal compiler.
6335 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6336 /* end confdefs.h. */
6337 #ifndef __APPLE_CC__
6338 not a universal capable compiler
6343 if ac_fn_c_try_compile
"$LINENO"; then :
6345 # Check for potential -arch flags. It is not universal unless
6346 # there are at least two -arch flags with different values.
6349 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6350 if test -n "$ac_prev"; then
6352 i?
86 | x86_64
| ppc
| ppc64
)
6353 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6356 ac_cv_c_bigendian
=universal
6362 elif test "x$ac_word" = "x-arch"; then
6367 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6368 if test $ac_cv_c_bigendian = unknown
; then
6369 # See if sys/param.h defines the BYTE_ORDER macro.
6370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6371 /* end confdefs.h. */
6372 #include <sys/types.h>
6373 #include <sys/param.h>
6378 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6379 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6388 if ac_fn_c_try_compile
"$LINENO"; then :
6389 # It does; now see whether it defined to BIG_ENDIAN or not.
6390 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6391 /* end confdefs.h. */
6392 #include <sys/types.h>
6393 #include <sys/param.h>
6398 #if BYTE_ORDER != BIG_ENDIAN
6406 if ac_fn_c_try_compile
"$LINENO"; then :
6407 ac_cv_c_bigendian
=yes
6409 ac_cv_c_bigendian
=no
6411 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6413 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6415 if test $ac_cv_c_bigendian = unknown
; then
6416 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6417 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6418 /* end confdefs.h. */
6424 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6432 if ac_fn_c_try_compile
"$LINENO"; then :
6433 # It does; now see whether it defined to _BIG_ENDIAN or not.
6434 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6435 /* end confdefs.h. */
6449 if ac_fn_c_try_compile
"$LINENO"; then :
6450 ac_cv_c_bigendian
=yes
6452 ac_cv_c_bigendian
=no
6454 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6456 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6458 if test $ac_cv_c_bigendian = unknown
; then
6459 # Compile a test program.
6460 if test "$cross_compiling" = yes; then :
6461 # Try to guess by grepping values from an object file.
6462 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6463 /* end confdefs.h. */
6464 short int ascii_mm[] =
6465 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6466 short int ascii_ii[] =
6467 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6468 int use_ascii (int i) {
6469 return ascii_mm[i] + ascii_ii[i];
6471 short int ebcdic_ii[] =
6472 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6473 short int ebcdic_mm[] =
6474 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6475 int use_ebcdic (int i) {
6476 return ebcdic_mm[i] + ebcdic_ii[i];
6483 return use_ascii (foo) == use_ebcdic (foo);
6488 if ac_fn_c_try_compile
"$LINENO"; then :
6489 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
6490 ac_cv_c_bigendian
=yes
6492 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
6493 if test "$ac_cv_c_bigendian" = unknown
; then
6494 ac_cv_c_bigendian
=no
6496 # finding both strings is unlikely to happen, but who knows?
6497 ac_cv_c_bigendian
=unknown
6501 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6504 /* end confdefs.h. */
6505 $ac_includes_default
6510 /* Are we little or big endian? From Harbison&Steele. */
6514 char c[sizeof (long int)];
6517 return u.c[sizeof (long int) - 1] == 1;
6523 if ac_fn_c_try_run
"$LINENO"; then :
6524 ac_cv_c_bigendian
=no
6526 ac_cv_c_bigendian
=yes
6528 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6529 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6535 $as_echo "$ac_cv_c_bigendian" >&6; }
6536 case $ac_cv_c_bigendian in #(
6538 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6544 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6548 as_fn_error $?
"unknown endianness
6549 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6553 ac_fn_c_check_header_mongrel
"$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
6554 if test "x$ac_cv_header_stdarg_h" = xyes
; then :
6557 as_fn_error $?
"** stdarg.h could not be found - charybdis will not compile without it **" "$LINENO" 5
6563 if test "$ac_cv_c_compiler_gnu" = yes; then
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strlcpy" >&5
6566 $as_echo_n "checking for strlcpy... " >&6; }
6568 CFLAGS
="$CFLAGS -Wimplicit -Werror"
6570 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6571 /* end confdefs.h. */
6577 char *a = malloc(6);
6578 strlcpy(a, "hello", 6);
6584 if ac_fn_c_try_link
"$LINENO"; then :
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6586 $as_echo "yes" >&6; }
6588 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6592 $as_echo "no" >&6; }
6595 rm -f core conftest.err conftest.
$ac_objext \
6596 conftest
$ac_exeext conftest.
$ac_ext
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strlcat" >&5
6599 $as_echo_n "checking for strlcat... " >&6; }
6600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6601 /* end confdefs.h. */
6607 char *a = malloc(6);
6609 strlcat(a, "hello", 6);
6615 if ac_fn_c_try_link
"$LINENO"; then :
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6617 $as_echo "yes" >&6; }
6619 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6623 $as_echo "no" >&6; }
6626 rm -f core conftest.err conftest.
$ac_objext \
6627 conftest
$ac_exeext conftest.
$ac_ext
6634 for ac_func
in strlcat strlcpy
6636 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6637 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6638 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6639 cat >>confdefs.h
<<_ACEOF
6640 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6649 ac_fn_c_check_type
"$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
6650 if test "x$ac_cv_type_u_int32_t" = xyes
; then :
6654 ac_fn_c_check_type
"$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
6655 if test "x$ac_cv_type_uint32_t" = xyes
; then :
6658 $as_echo "#define u_int32_t uint32_t" >>confdefs.h
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&5
6664 $as_echo "$as_me: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&2;}
6666 $as_echo "#define u_int32_t unsigned long int" >>confdefs.h
6675 ac_fn_c_check_type
"$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
6676 if test "x$ac_cv_type_u_int16_t" = xyes
; then :
6680 ac_fn_c_check_type
"$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
6681 if test "x$ac_cv_type_uint16_t" = xyes
; then :
6684 $as_echo "#define u_int16_t uint16_t" >>confdefs.h
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&5
6690 $as_echo "$as_me: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&2;}
6692 $as_echo "#define u_int16_t unsigned short int" >>confdefs.h
6701 ac_fn_c_check_type
"$LINENO" "in_port_t" "ac_cv_type_in_port_t" "#include <sys/types.h>
6702 #include <netinet/in.h>
6704 if test "x$ac_cv_type_in_port_t" = xyes
; then :
6708 $as_echo "#define in_port_t u_int16_t" >>confdefs.h
6713 ac_fn_c_check_type
"$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#include <sys/types.h>
6714 #include <sys/socket.h>
6716 if test "x$ac_cv_type_sa_family_t" = xyes
; then :
6720 $as_echo "#define sa_family_t u_int16_t" >>confdefs.h
6725 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6726 if test "x$ac_cv_type_uintptr_t" = xyes
; then :
6728 cat >>confdefs.h
<<_ACEOF
6729 #define HAVE_UINTPTR_T 1
6736 for ac_func
in socketpair vsnprintf mmap gettimeofday strdup strndup
6738 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6739 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6740 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6741 cat >>confdefs.h
<<_ACEOF
6742 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6749 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6750 # for constant arguments. Useless!
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6752 $as_echo_n "checking for working alloca.h... " >&6; }
6753 if ${ac_cv_working_alloca_h+:} false
; then :
6754 $as_echo_n "(cached) " >&6
6756 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6757 /* end confdefs.h. */
6762 char *p = (char *) alloca (2 * sizeof (int));
6768 if ac_fn_c_try_link
"$LINENO"; then :
6769 ac_cv_working_alloca_h
=yes
6771 ac_cv_working_alloca_h
=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_working_alloca_h" >&5
6777 $as_echo "$ac_cv_working_alloca_h" >&6; }
6778 if test $ac_cv_working_alloca_h = yes; then
6780 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6785 $as_echo_n "checking for alloca... " >&6; }
6786 if ${ac_cv_func_alloca_works+:} false
; then :
6787 $as_echo_n "(cached) " >&6
6789 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6790 /* end confdefs.h. */
6792 # define alloca __builtin_alloca
6795 # include <malloc.h>
6796 # define alloca _alloca
6798 # ifdef HAVE_ALLOCA_H
6799 # include <alloca.h>
6804 # ifndef alloca /* predefined by HP cc +Olibcalls */
6805 void *alloca (size_t);
6815 char *p = (char *) alloca (1);
6821 if ac_fn_c_try_link
"$LINENO"; then :
6822 ac_cv_func_alloca_works
=yes
6824 ac_cv_func_alloca_works
=no
6826 rm -f core conftest.err conftest.
$ac_objext \
6827 conftest
$ac_exeext conftest.
$ac_ext
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6830 $as_echo "$ac_cv_func_alloca_works" >&6; }
6832 if test $ac_cv_func_alloca_works = yes; then
6834 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6837 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6838 # that cause trouble. Some versions do not even contain alloca or
6839 # contain a buggy version. If you still want to use their alloca,
6840 # use ar to extract alloca.o from them instead of compiling alloca.c.
6842 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
6844 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6848 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6849 if ${ac_cv_os_cray+:} false
; then :
6850 $as_echo_n "(cached) " >&6
6852 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6853 /* end confdefs.h. */
6854 #if defined CRAY && ! defined CRAY2
6861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6862 $EGREP "webecray" >/dev
/null
2>&1; then :
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6871 $as_echo "$ac_cv_os_cray" >&6; }
6872 if test $ac_cv_os_cray = yes; then
6873 for ac_func
in _getb67 GETB67 getb67
; do
6874 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6875 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6876 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6878 cat >>confdefs.h
<<_ACEOF
6879 #define CRAY_STACKSEG_END $ac_func
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6889 $as_echo_n "checking stack direction for C alloca... " >&6; }
6890 if ${ac_cv_c_stack_direction+:} false
; then :
6891 $as_echo_n "(cached) " >&6
6893 if test "$cross_compiling" = yes; then :
6894 ac_cv_c_stack_direction
=0
6896 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6897 /* end confdefs.h. */
6898 $ac_includes_default
6900 find_stack_direction (int *addr, int depth)
6905 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6906 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6911 main (int argc, char **argv)
6913 return find_stack_direction (0, argc + !argv + 20) < 0;
6916 if ac_fn_c_try_run
"$LINENO"; then :
6917 ac_cv_c_stack_direction
=1
6919 ac_cv_c_stack_direction
=-1
6921 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6922 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6927 $as_echo "$ac_cv_c_stack_direction" >&6; }
6928 cat >>confdefs.h
<<_ACEOF
6929 #define STACK_DIRECTION $ac_cv_c_stack_direction
6937 ac_fn_c_check_func
"$LINENO" "nanosleep" "ac_cv_func_nanosleep"
6938 if test "x$ac_cv_func_nanosleep" = xyes
; then :
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
6942 $as_echo_n "checking for nanosleep in -lrt... " >&6; }
6943 if ${ac_cv_lib_rt_nanosleep+:} false
; then :
6944 $as_echo_n "(cached) " >&6
6946 ac_check_lib_save_LIBS
=$LIBS
6948 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6949 /* end confdefs.h. */
6951 /* Override any GCC internal prototype to avoid an error.
6952 Use char because int might match the return type of a GCC
6953 builtin and then its argument prototype would still apply. */
6961 return nanosleep ();
6966 if ac_fn_c_try_link
"$LINENO"; then :
6967 ac_cv_lib_rt_nanosleep
=yes
6969 ac_cv_lib_rt_nanosleep
=no
6971 rm -f core conftest.err conftest.
$ac_objext \
6972 conftest
$ac_exeext conftest.
$ac_ext
6973 LIBS
=$ac_check_lib_save_LIBS
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
6976 $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
6977 if test "x$ac_cv_lib_rt_nanosleep" = xyes
; then :
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lposix4" >&5
6981 $as_echo_n "checking for nanosleep in -lposix4... " >&6; }
6982 if ${ac_cv_lib_posix4_nanosleep+:} false
; then :
6983 $as_echo_n "(cached) " >&6
6985 ac_check_lib_save_LIBS
=$LIBS
6986 LIBS
="-lposix4 $LIBS"
6987 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6988 /* end confdefs.h. */
6990 /* Override any GCC internal prototype to avoid an error.
6991 Use char because int might match the return type of a GCC
6992 builtin and then its argument prototype would still apply. */
7000 return nanosleep ();
7005 if ac_fn_c_try_link
"$LINENO"; then :
7006 ac_cv_lib_posix4_nanosleep
=yes
7008 ac_cv_lib_posix4_nanosleep
=no
7010 rm -f core conftest.err conftest.
$ac_objext \
7011 conftest
$ac_exeext conftest.
$ac_ext
7012 LIBS
=$ac_check_lib_save_LIBS
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_nanosleep" >&5
7015 $as_echo "$ac_cv_lib_posix4_nanosleep" >&6; }
7016 if test "x$ac_cv_lib_posix4_nanosleep" = xyes
; then :
7017 LIBS
="${LIBS} -lposix4"
7025 if test x
$ac_cv_func_nanosleep = xno
&& test x
$ac_cv_lib_posix4_nanosleep = xno
&& test x
$ac_cv_lib_rt_nanosleep = xno
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"nanosleep not found..using select for delay\"" >&5
7028 $as_echo "\"nanosleep not found..using select for delay\"" >&6; }
7031 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
7036 $as_echo_n "checking for OpenSSL... " >&6; }
7037 # Check whether --enable-openssl was given.
7038 if test "${enable_openssl+set}" = set; then :
7039 enableval
=$enable_openssl; cf_enable_openssl
=$enableval
7041 cf_enable_openssl
="auto"
7045 if test "$cf_enable_openssl" != "no" ; then
7046 cf_openssl_basedir
=""
7047 if test "$cf_enable_openssl" != "auto" &&
7048 test "$cf_enable_openssl" != "yes" ; then
7049 cf_openssl_basedir
="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
7051 for dirs in /usr
/local
/ssl
/usr
/pkg
/usr
/local \
7052 /usr
/local
/openssl
; do
7053 if test -f "${dirs}/include/openssl/opensslv.h" ; then
7054 cf_openssl_basedir
="${dirs}"
7060 if test ! -z "$cf_openssl_basedir"; then
7061 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
7062 SSL_INCLUDES
="-I${cf_openssl_basedir}/include"
7063 SSL_LIBS
="-L${cf_openssl_basedir}/lib"
7065 cf_openssl_basedir
=""
7068 if test -f "/usr/include/openssl/opensslv.h" ; then
7069 cf_openssl_basedir
="/usr"
7073 if test ! -z "$cf_openssl_basedir"; then
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
7075 $as_echo "$cf_openssl_basedir" >&6; }
7076 cf_enable_openssl
="yes"
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Specify a correct path?" >&5
7079 $as_echo "not found. Specify a correct path?" >&6; }
7080 cf_enable_openssl
="no"
7082 unset cf_openssl_basedir
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7085 $as_echo "disabled" >&6; }
7088 save_CPPFLAGS
="$CPPFLAGS"
7089 CPPFLAGS
="$CPPFLAGS $SSL_INCLUDES"
7091 LIBS
="$LIBS $SSL_LIBS"
7092 if test "$cf_enable_openssl" != no
; then
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.6 or above" >&5
7094 $as_echo_n "checking for OpenSSL 0.9.6 or above... " >&6; }
7095 if test "$cross_compiling" = yes; then :
7096 cf_openssl_version_ok
=no
7098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7099 /* end confdefs.h. */
7100 #include <openssl/opensslv.h>
7105 if ( OPENSSL_VERSION_NUMBER >= 0x00906000)
7106 exit(0); else exit(1);
7111 if ac_fn_c_try_run
"$LINENO"; then :
7112 cf_openssl_version_ok
=yes
7114 cf_openssl_version_ok
=no
7116 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7117 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7121 if test "$cf_openssl_version_ok" = yes; then
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
7123 $as_echo "found" >&6; }
7128 CPPFLAGS
="$CPPFLAGS $SSL_LIBS"
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
7130 $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
7131 if ${ac_cv_lib_crypto_RSA_free+:} false
; then :
7132 $as_echo_n "(cached) " >&6
7134 ac_check_lib_save_LIBS
=$LIBS
7135 LIBS
="-lcrypto $LIBS"
7136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7137 /* end confdefs.h. */
7139 /* Override any GCC internal prototype to avoid an error.
7140 Use char because int might match the return type of a GCC
7141 builtin and then its argument prototype would still apply. */
7154 if ac_fn_c_try_link
"$LINENO"; then :
7155 ac_cv_lib_crypto_RSA_free
=yes
7157 ac_cv_lib_crypto_RSA_free
=no
7159 rm -f core conftest.err conftest.
$ac_objext \
7160 conftest
$ac_exeext conftest.
$ac_ext
7161 LIBS
=$ac_check_lib_save_LIBS
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
7164 $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
7165 if test "x$ac_cv_lib_crypto_RSA_free" = xyes
; then :
7166 cat >>confdefs.h
<<_ACEOF
7167 #define HAVE_LIBCRYPTO 1
7170 LIBS
="-lcrypto $LIBS"
7174 SSL_LIBS
="$SSL_LIBS -lcrypto"
7175 SSL_SRCS_ENABLE
='$(SSL_SRCS)'
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
7178 $as_echo "no - OpenSSL support disabled" >&6; }
7182 CPPFLAGS
="$save_CPPFLAGS"
7189 # Check whether --with-zlib-path was given.
7190 if test "${with_zlib_path+set}" = set; then :
7191 withval
=$with_zlib_path; LIBS
="$LIBS -L$withval"
7195 # Check whether --enable-zlib was given.
7196 if test "${enable_zlib+set}" = set; then :
7197 enableval
=$enable_zlib; zlib
=$enableval
7203 if test "$zlib" = yes; then
7205 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
7206 if test "x$ac_cv_header_zlib_h" = xyes
; then :
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
7209 $as_echo_n "checking for zlibVersion in -lz... " >&6; }
7210 if ${ac_cv_lib_z_zlibVersion+:} false
; then :
7211 $as_echo_n "(cached) " >&6
7213 ac_check_lib_save_LIBS
=$LIBS
7215 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7216 /* end confdefs.h. */
7218 /* Override any GCC internal prototype to avoid an error.
7219 Use char because int might match the return type of a GCC
7220 builtin and then its argument prototype would still apply. */
7224 char zlibVersion ();
7228 return zlibVersion ();
7233 if ac_fn_c_try_link
"$LINENO"; then :
7234 ac_cv_lib_z_zlibVersion
=yes
7236 ac_cv_lib_z_zlibVersion
=no
7238 rm -f core conftest.err conftest.
$ac_objext \
7239 conftest
$ac_exeext conftest.
$ac_ext
7240 LIBS
=$ac_check_lib_save_LIBS
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
7243 $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
7244 if test "x$ac_cv_lib_z_zlibVersion" = xyes
; then :
7249 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
7266 # Check whether --with-shared-sqlite was given.
7267 if test "${with_shared_sqlite+set}" = set; then :
7268 withval
=$with_shared_sqlite; shared_sqlite
=$withval
7274 if test "$shared_sqlite" = yes; then
7282 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7283 if test -n "$ac_tool_prefix"; then
7284 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7285 set dummy
${ac_tool_prefix}pkg
-config; ac_word
=$2
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7287 $as_echo_n "checking for $ac_word... " >&6; }
7288 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
7289 $as_echo_n "(cached) " >&6
7293 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
7296 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7300 test -z "$as_dir" && as_dir
=.
7301 for ac_exec_ext
in '' $ac_executable_extensions; do
7302 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7303 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7314 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
7315 if test -n "$PKG_CONFIG"; then
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7317 $as_echo "$PKG_CONFIG" >&6; }
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7320 $as_echo "no" >&6; }
7325 if test -z "$ac_cv_path_PKG_CONFIG"; then
7326 ac_pt_PKG_CONFIG
=$PKG_CONFIG
7327 # Extract the first word of "pkg-config", so it can be a program name with args.
7328 set dummy pkg
-config; ac_word
=$2
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7330 $as_echo_n "checking for $ac_word... " >&6; }
7331 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
7332 $as_echo_n "(cached) " >&6
7334 case $ac_pt_PKG_CONFIG in
7336 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7339 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7343 test -z "$as_dir" && as_dir
=.
7344 for ac_exec_ext
in '' $ac_executable_extensions; do
7345 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7346 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
7358 if test -n "$ac_pt_PKG_CONFIG"; then
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7360 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7363 $as_echo "no" >&6; }
7366 if test "x$ac_pt_PKG_CONFIG" = x
; then
7369 case $cross_compiling:$ac_tool_warned in
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7372 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7373 ac_tool_warned
=yes ;;
7375 PKG_CONFIG
=$ac_pt_PKG_CONFIG
7378 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
7382 if test -n "$PKG_CONFIG"; then
7383 _pkg_min_version
=0.9.0
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7385 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7386 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7388 $as_echo "yes" >&6; }
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7391 $as_echo "no" >&6; }
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE" >&5
7398 $as_echo_n "checking for SQLITE... " >&6; }
7400 if test -n "$SQLITE_CFLAGS"; then
7401 pkg_cv_SQLITE_CFLAGS
="$SQLITE_CFLAGS"
7402 elif test -n "$PKG_CONFIG"; then
7403 if test -n "$PKG_CONFIG" && \
7404 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
7405 ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
7407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7408 test $ac_status = 0; }; then
7409 pkg_cv_SQLITE_CFLAGS
=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
7410 test "x$?" != "x0" && pkg_failed
=yes
7417 if test -n "$SQLITE_LIBS"; then
7418 pkg_cv_SQLITE_LIBS
="$SQLITE_LIBS"
7419 elif test -n "$PKG_CONFIG"; then
7420 if test -n "$PKG_CONFIG" && \
7421 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
7422 ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
7424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7425 test $ac_status = 0; }; then
7426 pkg_cv_SQLITE_LIBS
=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
7427 test "x$?" != "x0" && pkg_failed
=yes
7437 if test $pkg_failed = yes; then
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7439 $as_echo "no" >&6; }
7441 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7442 _pkg_short_errors_supported
=yes
7444 _pkg_short_errors_supported
=no
7446 if test $_pkg_short_errors_supported = yes; then
7447 SQLITE_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3" 2>&1`
7449 SQLITE_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3" 2>&1`
7451 # Put the nasty error message in config.log where it belongs
7452 echo "$SQLITE_PKG_ERRORS" >&5
7455 elif test $pkg_failed = untried
; then
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7457 $as_echo "no" >&6; }
7460 SQLITE_CFLAGS
=$pkg_cv_SQLITE_CFLAGS
7461 SQLITE_LIBS
=$pkg_cv_SQLITE_LIBS
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7463 $as_echo "yes" >&6; }
7470 if test "$shared_sqlite" = no
; then
7471 SQLITE_SRC
="sqlite3.c"
7474 SQLITE_LD
="$SQLITE_LIBS"
7476 SQLITE_INCLUDES
="$SQLITE_CFLAGS"
7481 # Check whether --enable-ports was given.
7482 if test "${enable_ports+set}" = set; then :
7483 enableval
=$enable_ports; if test $enableval = yes; then
7484 SELECT_TYPE_EXPLICIT
="ports"
7492 # Check whether --enable-poll was given.
7493 if test "${enable_poll+set}" = set; then :
7494 enableval
=$enable_poll; if test $enableval = yes; then
7495 SELECT_TYPE_EXPLICIT
="poll"
7503 # Check whether --enable-select was given.
7504 if test "${enable_select+set}" = set; then :
7505 enableval
=$enable_select; if test $enableval = yes; then
7506 SELECT_TYPE_EXPLICIT
="select"
7514 # Check whether --enable-kqueue was given.
7515 if test "${enable_kqueue+set}" = set; then :
7516 enableval
=$enable_kqueue; if test $enableval = yes; then
7517 SELECT_TYPE_EXPLICIT
="kqueue"
7525 # Check whether --enable-epoll was given.
7526 if test "${enable_epoll+set}" = set; then :
7527 enableval
=$enable_epoll; if test $enableval = yes; then
7528 SELECT_TYPE_EXPLICIT
="epoll"
7529 for ac_func
in epoll_ctl
7531 ac_fn_c_check_func
"$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
7532 if test "x$ac_cv_func_epoll_ctl" = xyes
; then :
7533 cat >>confdefs.h
<<_ACEOF
7534 #define HAVE_EPOLL_CTL 1
7551 # Check whether --with-confdir was given.
7552 if test "${with_confdir+set}" = set; then :
7553 withval
=$with_confdir; sysconfdir
=`echo $withval | sed 's/\/$//'`
7555 confdir
='${sysconfdir}'
7559 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7560 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7561 last_ac_define_dir
=`eval echo $sysconfdir`
7562 ac_define_dir
=`eval echo $last_ac_define_dir`
7563 ac_define_dir_counter
=0
7564 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
7565 last_ac_define_dir
="$ac_define_dir"
7566 ac_define_dir
=`eval echo $last_ac_define_dir`
7567 as_fn_arith
$ac_define_dir_counter + 1 && ac_define_dir_counter
=$as_val
7568 if test "x$ac_define_dir_counter" = x128
; then :
7569 as_fn_error $?
"detected recusive directory expansion when expanding ETC_DIR=$sysconfdir: $ac_define_dir" "$LINENO" 5
7573 ETC_DIR
="$ac_define_dir"
7576 cat >>confdefs.h
<<_ACEOF
7577 #define ETC_DIR "$ac_define_dir"
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify logdir" >&5
7584 $as_echo_n "checking whether to modify logdir... " >&6; }
7586 # Check whether --with-logdir was given.
7587 if test "${with_logdir+set}" = set; then :
7588 withval
=$with_logdir; logdir
=`echo $withval | sed 's/\/$//'`
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7590 $as_echo "yes" >&6; }
7592 if test "x$enable_fhs_paths" = "xyes"; then :
7593 logdir
='${localstatedir}/log/${PACKAGE_TARNAME}'
7595 logdir
='${prefix}/logs'
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7598 $as_echo "no" >&6; }
7602 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7603 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7604 last_ac_define_dir
=`eval echo $logdir`
7605 ac_define_dir
=`eval echo $last_ac_define_dir`
7606 ac_define_dir_counter
=0
7607 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
7608 last_ac_define_dir
="$ac_define_dir"
7609 ac_define_dir
=`eval echo $last_ac_define_dir`
7610 as_fn_arith
$ac_define_dir_counter + 1 && ac_define_dir_counter
=$as_val
7611 if test "x$ac_define_dir_counter" = x128
; then :
7612 as_fn_error $?
"detected recusive directory expansion when expanding LOG_DIR=$logdir: $ac_define_dir" "$LINENO" 5
7616 LOG_DIR
="$ac_define_dir"
7619 cat >>confdefs.h
<<_ACEOF
7620 #define LOG_DIR "$ac_define_dir"
7627 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7628 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7629 eval echo \""$logdir"\"
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify helpdir" >&5
7636 $as_echo_n "checking whether to modify helpdir... " >&6; }
7638 # Check whether --with-helpdir was given.
7639 if test "${with_helpdir+set}" = set; then :
7640 withval
=$with_helpdir; helpdir
=`echo $withval | sed 's/\/$//'`
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7642 $as_echo "yes" >&6; }
7644 if test "x$enable_fhs_paths" = "xyes"; then :
7645 helpdir
='${datadir}/${PACKAGE_TARNAME}/help'
7647 helpdir
='${prefix}/help'
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7650 $as_echo "no" >&6; }
7654 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7655 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7656 last_ac_define_dir
=`eval echo $helpdir`
7657 ac_define_dir
=`eval echo $last_ac_define_dir`
7658 ac_define_dir_counter
=0
7659 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
7660 last_ac_define_dir
="$ac_define_dir"
7661 ac_define_dir
=`eval echo $last_ac_define_dir`
7662 as_fn_arith
$ac_define_dir_counter + 1 && ac_define_dir_counter
=$as_val
7663 if test "x$ac_define_dir_counter" = x128
; then :
7664 as_fn_error $?
"detected recusive directory expansion when expanding HELP_DIR=$helpdir: $ac_define_dir" "$LINENO" 5
7668 HELP_DIR
="$ac_define_dir"
7671 cat >>confdefs.h
<<_ACEOF
7672 #define HELP_DIR "$ac_define_dir"
7679 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7680 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7681 eval echo \""$helpdir"\"
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify moduledir" >&5
7688 $as_echo_n "checking whether to modify moduledir... " >&6; }
7690 # Check whether --with-moduledir was given.
7691 if test "${with_moduledir+set}" = set; then :
7692 withval
=$with_moduledir; moduledir
=`echo $withval | sed 's/\/$//'`
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7694 $as_echo "yes" >&6; }
7696 if test "x$enable_fhs_paths" = "xyes"; then :
7697 moduledir
='${pkglibdir}/modules'
7699 moduledir
='${prefix}/modules'
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7702 $as_echo "no" >&6; }
7707 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7708 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7709 last_ac_define_dir
=`eval echo $moduledir`
7710 ac_define_dir
=`eval echo $last_ac_define_dir`
7711 ac_define_dir_counter
=0
7712 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
7713 last_ac_define_dir
="$ac_define_dir"
7714 ac_define_dir
=`eval echo $last_ac_define_dir`
7715 as_fn_arith
$ac_define_dir_counter + 1 && ac_define_dir_counter
=$as_val
7716 if test "x$ac_define_dir_counter" = x128
; then :
7717 as_fn_error $?
"detected recusive directory expansion when expanding MODULE_DIR=$moduledir: $ac_define_dir" "$LINENO" 5
7721 MODULE_DIR
="$ac_define_dir"
7724 cat >>confdefs.h
<<_ACEOF
7725 #define MODULE_DIR "$ac_define_dir"
7732 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7733 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7734 eval echo \""$moduledir"\"
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or modify rundir" >&5
7741 $as_echo_n "checking whether or modify rundir... " >&6; }
7743 # Check whether --with-rundir was given.
7744 if test "${with_rundir+set}" = set; then :
7745 withval
=$with_rundir; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7746 $as_echo "yes" >&6; }
7747 rundir
=`echo $withval | sed 's/\/$//'`
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7750 $as_echo "no" >&6; }
7751 if test "x$enable_fhs_paths" = "xyes"; then :
7752 rundir
='${prefix}/run'
7754 rundir
='${sysconfdir}'
7760 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7761 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7762 last_ac_define_dir
=`eval echo $pkgrundir`
7763 ac_define_dir
=`eval echo $last_ac_define_dir`
7764 ac_define_dir_counter
=0
7765 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
7766 last_ac_define_dir
="$ac_define_dir"
7767 ac_define_dir
=`eval echo $last_ac_define_dir`
7768 as_fn_arith
$ac_define_dir_counter + 1 && ac_define_dir_counter
=$as_val
7769 if test "x$ac_define_dir_counter" = x128
; then :
7770 as_fn_error $?
"detected recusive directory expansion when expanding PKGRUNDIR=$pkgrundir: $ac_define_dir" "$LINENO" 5
7774 PKGRUNDIR
="$ac_define_dir"
7777 cat >>confdefs.h
<<_ACEOF
7778 #define PKGRUNDIR "$ac_define_dir"
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for program prefix" >&5
7784 $as_echo_n "checking for program prefix... " >&6; }
7786 # Check whether --with-program-prefix was given.
7787 if test "${with_program_prefix+set}" = set; then :
7788 withval
=$with_program_prefix; test "x$with_program_prefix" = "xno" && with_program_prefix
=
7790 with_program_prefix
=
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_program_prefix\"" >&5
7794 $as_echo "\"$with_program_prefix\"" >&6; }
7795 PROGRAM_PREFIX
="$with_program_prefix"
7798 cat >>confdefs.h
<<_ACEOF
7799 #define PROGRAM_PREFIX "$with_program_prefix"
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether custom branding is requested" >&5
7805 $as_echo_n "checking whether custom branding is requested... " >&6; }
7807 # Check whether --with-custom-branding was given.
7808 if test "${with_custom_branding+set}" = set; then :
7809 withval
=$with_custom_branding; BRANDING_NAME
=$withval
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7811 $as_echo "yes" >&6; }
7813 BRANDING_NAME
=$PACKAGE_NAME
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7815 $as_echo "no" >&6; }
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a custom version is requested" >&5
7821 $as_echo_n "checking whether a custom version is requested... " >&6; }
7823 # Check whether --with-custom-version was given.
7824 if test "${with_custom_version+set}" = set; then :
7825 withval
=$with_custom_version; BRANDING_VERSION
=$withval
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7827 $as_echo "yes" >&6; }
7829 BRANDING_VERSION
=$PACKAGE_VERSION
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7831 $as_echo "no" >&6; }
7837 cat >>confdefs.h
<<_ACEOF
7838 #define BRANDING_NAME "$BRANDING_NAME"
7842 cat >>confdefs.h
<<_ACEOF
7843 #define BRANDING_VERSION "$BRANDING_VERSION"
7847 if test "x$BRANDING_NAME" != "x$PACKAGE_NAME"; then
7849 $as_echo "#define CUSTOM_BRANDING 1" >>confdefs.h
7853 if test ! -z "$SELECT_TYPE_EXPLICIT"; then
7854 SELECT_TYPE
="$SELECT_TYPE_EXPLICIT";
7855 echo "Forcing $SELECT_TYPE to be enabled"
7858 if test ! "x$use_ports" = "xno"; then
7859 for ac_func
in port_getn
7861 ac_fn_c_check_func
"$LINENO" "port_getn" "ac_cv_func_port_getn"
7862 if test "x$ac_cv_func_port_getn" = xyes
; then :
7863 cat >>confdefs.h
<<_ACEOF
7864 #define HAVE_PORT_GETN 1
7872 if test "x$haveports" = "xyes" ; then
7877 if test ! "x$use_select" = "xno"; then
7878 for ac_func
in select
7880 ac_fn_c_check_func
"$LINENO" "select" "ac_cv_func_select"
7881 if test "x$ac_cv_func_select" = xyes
; then :
7882 cat >>confdefs.h
<<_ACEOF
7883 #define HAVE_SELECT 1
7891 if test "x$haveselect" = "xyes" ; then
7892 SELECT_TYPE
="select"
7896 if test ! "x$use_poll" = "xno"; then
7899 ac_fn_c_check_func
"$LINENO" "poll" "ac_cv_func_poll"
7900 if test "x$ac_cv_func_poll" = xyes
; then :
7901 cat >>confdefs.h
<<_ACEOF
7910 if test "x$havepoll" = "xyes" ; then
7915 if test ! "x$use_kqueue" = "xno"; then
7916 for ac_func
in kevent
7918 ac_fn_c_check_func
"$LINENO" "kevent" "ac_cv_func_kevent"
7919 if test "x$ac_cv_func_kevent" = xyes
; then :
7920 cat >>confdefs.h
<<_ACEOF
7921 #define HAVE_KEVENT 1
7929 if test "x$havekqueue" = "xyes" ; then
7930 SELECT_TYPE
="kqueue"
7934 if test ! "x$use_epoll" = "xno"; then
7935 for ac_func
in epoll_ctl
7937 ac_fn_c_check_func
"$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
7938 if test "x$ac_cv_func_epoll_ctl" = xyes
; then :
7939 cat >>confdefs.h
<<_ACEOF
7940 #define HAVE_EPOLL_CTL 1
7948 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
7949 if test "x$haveepoll" = "xyes" ; then
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll support in kernel" >&5
7951 $as_echo_n "checking for epoll support in kernel... " >&6; }
7952 if test "$cross_compiling" = yes; then :
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7954 $as_echo "no" >&6; }
7956 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7957 /* end confdefs.h. */
7959 #include <sys/param.h>
7960 #include <sys/types.h>
7961 #include <sys/epoll.h>
7962 #include <sys/syscall.h>
7966 main(int argc, char **argv)
7970 epfd = epoll_create(256);
7971 return (epfd == -1 ? 1 : 0);
7974 if ac_fn_c_try_run
"$LINENO"; then :
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7976 $as_echo "yes" >&6; }
7978 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7983 $as_echo "no" >&6; }
7985 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7986 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7994 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
7995 if test "x$haveepoll" = "xno" ; then
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5
7997 $as_echo_n "checking for epoll system call... " >&6; }
7998 if test "$cross_compiling" = yes; then :
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8000 $as_echo "no" >&6; }
8002 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8003 /* end confdefs.h. */
8005 #include <sys/param.h>
8006 #include <sys/types.h>
8007 #include <sys/epoll.h>
8008 #include <sys/syscall.h>
8012 epoll_create(int size)
8014 return (syscall(__NR_epoll_create, size));
8018 main(int argc, char **argv)
8022 epfd = epoll_create(256);
8023 exit (epfd == -1 ? 1 : 0);
8026 if ac_fn_c_try_run
"$LINENO"; then :
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8028 $as_echo "yes" >&6; }
8030 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8035 $as_echo "no" >&6; }
8037 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8038 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8048 if test -z "$SELECT_TYPE"; then
8049 as_fn_error $?
"Unable to find a usable IO interface" "$LINENO" 5
8052 echo "Using $SELECT_TYPE for select loop."
8055 cat >>confdefs.h
<<_ACEOF
8056 #define SELECT_TYPE "$SELECT_TYPE"
8063 # Check whether --enable-assert was given.
8064 if test "${enable_assert+set}" = set; then :
8065 enableval
=$enable_assert; assert
=$enableval
8071 if test "$assert" = no
; then
8073 $as_echo "#define NDEBUG 1" >>confdefs.h
8075 elif test "$assert" = soft
; then
8077 $as_echo "#define SOFT_ASSERT 1" >>confdefs.h
8080 $as_echo "#define NDEBUG 1" >>confdefs.h
8082 elif test "$assert" = yes; then
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want IO Debugging hooks" >&5
8087 $as_echo_n "checking if you want IO Debugging hooks... " >&6; }
8088 # Check whether --enable-iodebug was given.
8089 if test "${enable_iodebug+set}" = set; then :
8090 enableval
=$enable_iodebug; iodebug
=$enableval
8096 if test "$iodebug" = yes; then
8098 $as_echo "#define USE_IODEBUG_HOOKS 1" >>confdefs.h
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8101 $as_echo "yes" >&6; }
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8104 $as_echo "no" >&6; }
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want to do a profile build" >&5
8109 $as_echo_n "checking if you want to do a profile build... " >&6; }
8110 # Check whether --enable-profile was given.
8111 if test "${enable_profile+set}" = set; then :
8112 enableval
=$enable_profile; profile
=$enableval
8118 if test "$profile" = yes; then
8119 if test "$ac_cv_c_compiler_gnu" = yes; then
8120 IRC_CFLAGS
="$IRC_CFLAGS -pg"
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, adding -pg" >&5
8122 $as_echo "yes, adding -pg" >&6; }
8124 $as_echo "#define CHARYBDIS_PROFILE 1" >>confdefs.h
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, profile builds only work with gcc" >&5
8128 $as_echo "no, profile builds only work with gcc" >&6; }
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8132 $as_echo "no" >&6; }
8135 # Check whether --enable-balloc was given.
8136 if test "${enable_balloc+set}" = set; then :
8137 enableval
=$enable_balloc; balloc
=$enableval
8143 if test "$balloc" = no
; then
8145 $as_echo "#define NOBALLOC 1" >>confdefs.h
8149 # Check whether --enable-small-net was given.
8150 if test "${enable_small_net+set}" = set; then :
8151 enableval
=$enable_small_net; small_net
=$enableval
8157 if test "$small_net" = yes; then
8159 $as_echo "#define NICKNAMEHISTORYLENGTH 1500" >>confdefs.h
8162 $as_echo "#define CHANNEL_HEAP_SIZE 256" >>confdefs.h
8165 $as_echo "#define BAN_HEAP_SIZE 128" >>confdefs.h
8168 $as_echo "#define CLIENT_HEAP_SIZE 256" >>confdefs.h
8171 $as_echo "#define LCLIENT_HEAP_SIZE 128" >>confdefs.h
8174 $as_echo "#define PCLIENT_HEAP_SIZE 32" >>confdefs.h
8177 $as_echo "#define USER_HEAP_SIZE 128" >>confdefs.h
8180 $as_echo "#define DNODE_HEAP_SIZE 256" >>confdefs.h
8183 $as_echo "#define TOPIC_HEAP_SIZE 256" >>confdefs.h
8186 $as_echo "#define LINEBUF_HEAP_SIZE 128" >>confdefs.h
8189 $as_echo "#define MEMBER_HEAP_SIZE 256" >>confdefs.h
8192 $as_echo "#define ND_HEAP_SIZE 128" >>confdefs.h
8195 $as_echo "#define CONFITEM_HEAP_SIZE 128" >>confdefs.h
8198 $as_echo "#define MONITOR_HEAP_SIZE 128" >>confdefs.h
8201 $as_echo "#define FD_HEAP_SIZE 128" >>confdefs.h
8204 $as_echo "#define AWAY_HEAP_SIZE 128" >>confdefs.h
8208 $as_echo "#define NICKNAMEHISTORYLENGTH 15000" >>confdefs.h
8211 $as_echo "#define CHANNEL_HEAP_SIZE 8192" >>confdefs.h
8214 $as_echo "#define BAN_HEAP_SIZE 4096" >>confdefs.h
8217 $as_echo "#define CLIENT_HEAP_SIZE 8192" >>confdefs.h
8220 $as_echo "#define LCLIENT_HEAP_SIZE 1024" >>confdefs.h
8223 $as_echo "#define PCLIENT_HEAP_SIZE 256" >>confdefs.h
8226 $as_echo "#define USER_HEAP_SIZE 8192" >>confdefs.h
8229 $as_echo "#define DNODE_HEAP_SIZE 8192" >>confdefs.h
8232 $as_echo "#define TOPIC_HEAP_SIZE 4096" >>confdefs.h
8235 $as_echo "#define LINEBUF_HEAP_SIZE 2048" >>confdefs.h
8238 $as_echo "#define MEMBER_HEAP_SIZE 32768" >>confdefs.h
8241 $as_echo "#define ND_HEAP_SIZE 512" >>confdefs.h
8244 $as_echo "#define CONFITEM_HEAP_SIZE 256" >>confdefs.h
8247 $as_echo "#define MONITOR_HEAP_SIZE 1024" >>confdefs.h
8250 $as_echo "#define FD_HEAP_SIZE 1024" >>confdefs.h
8253 $as_echo "#define AWAY_HEAP_SIZE 512" >>confdefs.h
8258 # Check whether --with-nicklen was given.
8259 if test "${with_nicklen+set}" = set; then :
8260 withval
=$with_nicklen;
8261 if ! expr "$withval" + 0 >/dev
/null
2>&1; then
8262 as_fn_error $?
"NICKLEN must be a numeric value" "$LINENO" 5
8264 if test $withval -gt 50; then
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&5
8267 $as_echo "$as_me: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&2;}
8268 elif test $withval -lt 9; then
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NICKLEN has a lower limit of 9. Setting NICKLEN=9" >&5
8271 $as_echo "$as_me: WARNING: NICKLEN has a lower limit of 9. Setting NICKLEN=9" >&2;}
8282 # Check whether --with-topiclen was given.
8283 if test "${with_topiclen+set}" = set; then :
8284 withval
=$with_topiclen;
8285 if test $withval -ge 390; then
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&5
8288 $as_echo "$as_me: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&2;}
8299 cat >>confdefs.h
<<_ACEOF
8300 #define TOPICLEN ${TOPICLEN}
8304 cat >>confdefs.h
<<_ACEOF
8305 #define NICKLEN (${NICKLEN}+1)
8309 shared_modules
="yes"
8310 if test "$shared_modules" = yes; then
8311 if test "$CC" = tcc
-a "$TenDRA" = "no"; then
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&5
8313 $as_echo "$as_me: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&2;}
8318 if test "$shared_modules" = yes; then
8320 for ac_header
in dlfcn.h
8322 ac_fn_c_check_header_mongrel
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
8323 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
8324 cat >>confdefs.h
<<_ACEOF
8325 #define HAVE_DLFCN_H 1
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5
8333 $as_echo_n "checking for library containing shl_load... " >&6; }
8334 if ${ac_cv_search_shl_load+:} false
; then :
8335 $as_echo_n "(cached) " >&6
8337 ac_func_search_save_LIBS
=$LIBS
8338 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8339 /* end confdefs.h. */
8341 /* Override any GCC internal prototype to avoid an error.
8342 Use char because int might match the return type of a GCC
8343 builtin and then its argument prototype would still apply. */
8356 for ac_lib
in '' dld
; do
8357 if test -z "$ac_lib"; then
8358 ac_res
="none required"
8361 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8363 if ac_fn_c_try_link
"$LINENO"; then :
8364 ac_cv_search_shl_load
=$ac_res
8366 rm -f core conftest.err conftest.
$ac_objext \
8368 if ${ac_cv_search_shl_load+:} false
; then :
8372 if ${ac_cv_search_shl_load+:} false
; then :
8375 ac_cv_search_shl_load
=no
8378 LIBS
=$ac_func_search_save_LIBS
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5
8381 $as_echo "$ac_cv_search_shl_load" >&6; }
8382 ac_res
=$ac_cv_search_shl_load
8383 if test "$ac_res" != no
; then :
8384 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8387 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
8390 MOD_TARGET
=hpux_shared
8391 SEDOBJ
="s/\.o/.sl/g"
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
8396 $as_echo_n "checking for library containing dlopen... " >&6; }
8397 if ${ac_cv_search_dlopen+:} false
; then :
8398 $as_echo_n "(cached) " >&6
8400 ac_func_search_save_LIBS
=$LIBS
8401 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8402 /* end confdefs.h. */
8404 /* Override any GCC internal prototype to avoid an error.
8405 Use char because int might match the return type of a GCC
8406 builtin and then its argument prototype would still apply. */
8419 for ac_lib
in '' dl c_r
; do
8420 if test -z "$ac_lib"; then
8421 ac_res
="none required"
8424 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8426 if ac_fn_c_try_link
"$LINENO"; then :
8427 ac_cv_search_dlopen
=$ac_res
8429 rm -f core conftest.err conftest.
$ac_objext \
8431 if ${ac_cv_search_dlopen+:} false
; then :
8435 if ${ac_cv_search_dlopen+:} false
; then :
8438 ac_cv_search_dlopen
=no
8441 LIBS
=$ac_func_search_save_LIBS
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
8444 $as_echo "$ac_cv_search_dlopen" >&6; }
8445 ac_res
=$ac_cv_search_dlopen
8446 if test "$ac_res" != no
; then :
8447 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8450 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
8453 MOD_TARGET
=shared_modules
8454 SEDOBJ
="s/\.o/.so/g"
8455 if test "$AppleGCC" = yes; then
8456 for ac_header
in mach
-o/dyld.h
8458 ac_fn_c_check_header_mongrel
"$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default"
8459 if test "x$ac_cv_header_mach_o_dyld_h" = xyes
; then :
8460 cat >>confdefs.h
<<_ACEOF
8461 #define HAVE_MACH_O_DYLD_H 1
8469 ac_fn_c_check_func
"$LINENO" "dlsym" "ac_cv_func_dlsym"
8470 if test "x$ac_cv_func_dlsym" = xyes
; then :
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dlsym is not available, shared modules disabled" >&5
8475 $as_echo "$as_me: WARNING: dlsym is not available, shared modules disabled" >&2;}
8480 for ac_func
in dlfunc
8482 ac_fn_c_check_func
"$LINENO" "dlfunc" "ac_cv_func_dlfunc"
8483 if test "x$ac_cv_func_dlfunc" = xyes
; then :
8484 cat >>confdefs.h
<<_ACEOF
8485 #define HAVE_DLFUNC 1
8504 cat >>confdefs.h
<<_ACEOF
8505 #define SHARED_SUFFIX "$SUFFIX"
8509 if test "$shared_modules" = yes; then
8510 # The GNU linker requires the -export-dynamic option to make
8511 # all symbols visible in the dynamic symbol table.
8512 hold_ldflags
=$LDFLAGS
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -export-dynamic flag" >&5
8514 $as_echo_n "checking for the ld -export-dynamic flag... " >&6; }
8515 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic -Werror"
8516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8517 /* end confdefs.h. */
8527 if ac_fn_c_try_link
"$LINENO"; then :
8532 rm -f core conftest.err conftest.
$ac_objext \
8533 conftest
$ac_exeext conftest.
$ac_ext
8534 LDFLAGS
=$hold_ldflags
8536 if expr "`uname -s`" : ^IRIX
>/dev
/null
2>&1; then
8537 found
="no, IRIX ld uses -B,dynamic"
8538 LDFLAGS
="${LDFLAGS} -Wl,-B,dynamic"
8541 if expr "`uname -s`" : ^AIX
>/dev
/null
2>&1; then
8542 found
="no, AIX ld uses -G -brtl"
8543 LDFLAGS
="${LDFLAGS} -Wl,-G,-brtl"
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
8547 $as_echo "$found" >&6; }
8549 if test "$found" = yes; then
8550 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic"
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option to produce PIC" >&5
8554 $as_echo_n "checking for compiler option to produce PIC... " >&6; }
8555 if test "$SGS" = "yes"; then
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SVR4 SGS interfaces: -KPIC -DPIC -G" >&5
8557 $as_echo "SVR4 SGS interfaces: -KPIC -DPIC -G" >&6; }
8558 PICFLAGS
="-KPIC -DPIC -G"
8561 if test "$AppleGCC" = "yes"; then
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&5
8563 $as_echo "Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&6; }
8564 PICFLAGS
="-fno-common -bundle -flat_namespace -undefined suppress"
8566 if test "$HPUX" = "yes" -a "$CC" != gcc
; then
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: HP-UX cc: +z -r -q -n" >&5
8568 $as_echo "HP-UX cc: +z -r -q -n" >&6; }
8569 PICFLAGS
="+z -r -q -n -c"
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if +ESfic is required on this platform" >&5
8571 $as_echo_n "checking if +ESfic is required on this platform... " >&6; }
8573 if expr "`$CC +ESfic 2>&1`" : ".*neither supported.*" >/dev
/null
; then
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8575 $as_echo "no" >&6; }
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8578 $as_echo "yes" >&6; }
8579 PICFLAGS
="$PICFLAGS +ESfic"
8582 LDFLAGS
="${LDFLAGS} -Wl,-E"
8584 if test "$Tru" = yes -a "$CC" != gcc
; then
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Tru64: -shared -expect_unresolved '*'" >&5
8586 $as_echo "Tru64: -shared -expect_unresolved '*'" >&6; }
8587 PICFLAGS
="-shared -expect_unresolved '*' "
8588 LDFLAGS
="-call_shared"
8590 if test -z "$PICFLAGS"; then
8591 if test "$ac_cv_c_compiler_gnu" = "yes"; then
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gcc: -fPIC -DPIC -shared" >&5
8593 $as_echo "gcc: -fPIC -DPIC -shared" >&6; }
8594 PICFLAGS
="-fPIC -DPIC -shared"
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8597 $as_echo "no" >&6; }
8603 # rpath, for finding libratbox.so at run time
8604 hold_ldflags
=$LDFLAGS
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -rpath flag" >&5
8606 $as_echo_n "checking for the ld -rpath flag... " >&6; }
8607 LDFLAGS
="${LDFLAGS} -Wl,-rpath=${libdir}"
8608 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8609 /* end confdefs.h. */
8619 if ac_fn_c_try_link
"$LINENO"; then :
8624 rm -f core conftest.err conftest.
$ac_objext \
8625 conftest
$ac_exeext conftest.
$ac_ext
8626 LDFLAGS
=$hold_ldflags
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
8628 $as_echo "$found" >&6; }
8629 if test "$found" = yes; then
8630 LDFLAGS
="${LDFLAGS} -Wl,-rpath=\${libdir}"
8633 # This must be down here, or it will mess up checks like the ones
8634 # for -Wl,-export-dynamic
8637 # Check whether --enable-warnings was given.
8638 if test "${enable_warnings+set}" = set; then :
8639 enableval
=$enable_warnings;
8640 IRC_CFLAGS
="$IRC_CFLAGS -O0"
8641 CFLAGS
="$IRC_CFLAGS"
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wall" >&5
8645 $as_echo_n "checking GCC flag(s) -Wall... " >&6; }
8646 if test "${GCC-no}" = yes
8648 if ${charybdis_cv_c_gcc_w_all+:} false
; then :
8649 $as_echo_n "(cached) " >&6
8652 oldcflags
="${CFLAGS-}"
8653 CFLAGS
="${CFLAGS-} ${CWARNS} -Wall -Werror"
8654 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8655 /* end confdefs.h. */
8665 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8671 if ac_fn_c_try_compile
"$LINENO"; then :
8672 charybdis_cv_c_gcc_w_all
=yes
8674 charybdis_cv_c_gcc_w_all
=no
8676 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8677 CFLAGS
="${oldcflags}"
8680 if test "x$charybdis_cv_c_gcc_w_all" = xyes
; then
8681 CWARNS
="${CWARNS}-Wall "
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8683 $as_echo "ok" >&6; }
8685 charybdis_cv_c_gcc_w_all
=''
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8687 $as_echo "no" >&6; }
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8691 $as_echo "no" >&6; }
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpointer-arith" >&5
8696 $as_echo_n "checking GCC flag(s) -Wpointer-arith... " >&6; }
8697 if test "${GCC-no}" = yes
8699 if ${charybdis_cv_c_gcc_w_pointer_arith+:} false
; then :
8700 $as_echo_n "(cached) " >&6
8703 oldcflags
="${CFLAGS-}"
8704 CFLAGS
="${CFLAGS-} ${CWARNS} -Wpointer-arith -Werror"
8705 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8706 /* end confdefs.h. */
8716 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8722 if ac_fn_c_try_compile
"$LINENO"; then :
8723 charybdis_cv_c_gcc_w_pointer_arith
=yes
8725 charybdis_cv_c_gcc_w_pointer_arith
=no
8727 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8728 CFLAGS
="${oldcflags}"
8731 if test "x$charybdis_cv_c_gcc_w_pointer_arith" = xyes
; then
8732 CWARNS
="${CWARNS}-Wpointer-arith "
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8734 $as_echo "ok" >&6; }
8736 charybdis_cv_c_gcc_w_pointer_arith
=''
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8738 $as_echo "no" >&6; }
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8742 $as_echo "no" >&6; }
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wimplicit -Wnested-externs" >&5
8747 $as_echo_n "checking GCC flag(s) -Wimplicit -Wnested-externs... " >&6; }
8748 if test "${GCC-no}" = yes
8750 if ${charybdis_cv_c_gcc_w_implicit+:} false
; then :
8751 $as_echo_n "(cached) " >&6
8754 oldcflags
="${CFLAGS-}"
8755 CFLAGS
="${CFLAGS-} ${CWARNS} -Wimplicit -Wnested-externs -Werror"
8756 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8757 /* end confdefs.h. */
8767 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8773 if ac_fn_c_try_compile
"$LINENO"; then :
8774 charybdis_cv_c_gcc_w_implicit
=yes
8776 charybdis_cv_c_gcc_w_implicit
=no
8778 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8779 CFLAGS
="${oldcflags}"
8782 if test "x$charybdis_cv_c_gcc_w_implicit" = xyes
; then
8783 CWARNS
="${CWARNS}-Wimplicit -Wnested-externs "
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8785 $as_echo "ok" >&6; }
8787 charybdis_cv_c_gcc_w_implicit
=''
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8789 $as_echo "no" >&6; }
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8793 $as_echo "no" >&6; }
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-align" >&5
8798 $as_echo_n "checking GCC flag(s) -Wcast-align... " >&6; }
8799 if test "${GCC-no}" = yes
8801 if ${charybdis_cv_c_gcc_w_cast_align+:} false
; then :
8802 $as_echo_n "(cached) " >&6
8805 oldcflags
="${CFLAGS-}"
8806 CFLAGS
="${CFLAGS-} ${CWARNS} -Wcast-align -Werror"
8807 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8808 /* end confdefs.h. */
8818 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8824 if ac_fn_c_try_compile
"$LINENO"; then :
8825 charybdis_cv_c_gcc_w_cast_align
=yes
8827 charybdis_cv_c_gcc_w_cast_align
=no
8829 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8830 CFLAGS
="${oldcflags}"
8833 if test "x$charybdis_cv_c_gcc_w_cast_align" = xyes
; then
8834 CWARNS
="${CWARNS}-Wcast-align "
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8836 $as_echo "ok" >&6; }
8838 charybdis_cv_c_gcc_w_cast_align
=''
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8840 $as_echo "no" >&6; }
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8844 $as_echo "no" >&6; }
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-qual" >&5
8849 $as_echo_n "checking GCC flag(s) -Wcast-qual... " >&6; }
8850 if test "${GCC-no}" = yes
8852 if ${charybdis_cv_c_gcc_w_cast_qual+:} false
; then :
8853 $as_echo_n "(cached) " >&6
8856 oldcflags
="${CFLAGS-}"
8857 CFLAGS
="${CFLAGS-} ${CWARNS} -Wcast-qual -Werror"
8858 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8859 /* end confdefs.h. */
8869 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8875 if ac_fn_c_try_compile
"$LINENO"; then :
8876 charybdis_cv_c_gcc_w_cast_qual
=yes
8878 charybdis_cv_c_gcc_w_cast_qual
=no
8880 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8881 CFLAGS
="${oldcflags}"
8884 if test "x$charybdis_cv_c_gcc_w_cast_qual" = xyes
; then
8885 CWARNS
="${CWARNS}-Wcast-qual "
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8887 $as_echo "ok" >&6; }
8889 charybdis_cv_c_gcc_w_cast_qual
=''
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8891 $as_echo "no" >&6; }
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8895 $as_echo "no" >&6; }
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wwrite-strings" >&5
8900 $as_echo_n "checking GCC flag(s) -Wwrite-strings... " >&6; }
8901 if test "${GCC-no}" = yes
8903 if ${charybdis_cv_c_gcc_w_write_strings+:} false
; then :
8904 $as_echo_n "(cached) " >&6
8907 oldcflags
="${CFLAGS-}"
8908 CFLAGS
="${CFLAGS-} ${CWARNS} -Wwrite-strings -Werror"
8909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8910 /* end confdefs.h. */
8920 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8926 if ac_fn_c_try_compile
"$LINENO"; then :
8927 charybdis_cv_c_gcc_w_write_strings
=yes
8929 charybdis_cv_c_gcc_w_write_strings
=no
8931 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8932 CFLAGS
="${oldcflags}"
8935 if test "x$charybdis_cv_c_gcc_w_write_strings" = xyes
; then
8936 CWARNS
="${CWARNS}-Wwrite-strings "
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8938 $as_echo "ok" >&6; }
8940 charybdis_cv_c_gcc_w_write_strings
=''
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8942 $as_echo "no" >&6; }
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8946 $as_echo "no" >&6; }
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Werror-implicit-function-declaration" >&5
8951 $as_echo_n "checking GCC flag(s) -Werror-implicit-function-declaration... " >&6; }
8952 if test "${GCC-no}" = yes
8954 if ${charybdis_cv_c_gcc_w_error_implicit_function_declaration+:} false
; then :
8955 $as_echo_n "(cached) " >&6
8958 oldcflags
="${CFLAGS-}"
8959 CFLAGS
="${CFLAGS-} ${CWARNS} -Werror-implicit-function-declaration -Werror"
8960 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8961 /* end confdefs.h. */
8971 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8977 if ac_fn_c_try_compile
"$LINENO"; then :
8978 charybdis_cv_c_gcc_w_error_implicit_function_declaration
=yes
8980 charybdis_cv_c_gcc_w_error_implicit_function_declaration
=no
8982 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8983 CFLAGS
="${oldcflags}"
8986 if test "x$charybdis_cv_c_gcc_w_error_implicit_function_declaration" = xyes
; then
8987 CWARNS
="${CWARNS}-Werror-implicit-function-declaration "
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8989 $as_echo "ok" >&6; }
8991 charybdis_cv_c_gcc_w_error_implicit_function_declaration
=''
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8993 $as_echo "no" >&6; }
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8997 $as_echo "no" >&6; }
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations" >&5
9002 $as_echo_n "checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations... " >&6; }
9003 if test "${GCC-no}" = yes
9005 if ${charybdis_cv_c_gcc_prototypes+:} false
; then :
9006 $as_echo_n "(cached) " >&6
9009 oldcflags
="${CFLAGS-}"
9010 CFLAGS
="${CFLAGS-} ${CWARNS} -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Werror"
9011 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9012 /* end confdefs.h. */
9022 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9028 if ac_fn_c_try_compile
"$LINENO"; then :
9029 charybdis_cv_c_gcc_prototypes
=yes
9031 charybdis_cv_c_gcc_prototypes
=no
9033 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9034 CFLAGS
="${oldcflags}"
9037 if test "x$charybdis_cv_c_gcc_prototypes" = xyes
; then
9038 CWARNS
="${CWARNS}-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations "
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9040 $as_echo "ok" >&6; }
9042 charybdis_cv_c_gcc_prototypes
=''
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9044 $as_echo "no" >&6; }
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9048 $as_echo "no" >&6; }
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wparenthesis" >&5
9053 $as_echo_n "checking GCC flag(s) -Wparenthesis... " >&6; }
9054 if test "${GCC-no}" = yes
9056 if ${charybdis_cv_c_gcc_parenthesis+:} false
; then :
9057 $as_echo_n "(cached) " >&6
9060 oldcflags
="${CFLAGS-}"
9061 CFLAGS
="${CFLAGS-} ${CWARNS} -Wparenthesis -Werror"
9062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9063 /* end confdefs.h. */
9073 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9079 if ac_fn_c_try_compile
"$LINENO"; then :
9080 charybdis_cv_c_gcc_parenthesis
=yes
9082 charybdis_cv_c_gcc_parenthesis
=no
9084 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9085 CFLAGS
="${oldcflags}"
9088 if test "x$charybdis_cv_c_gcc_parenthesis" = xyes
; then
9089 CWARNS
="${CWARNS}-Wparenthesis "
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9091 $as_echo "ok" >&6; }
9093 charybdis_cv_c_gcc_parenthesis
=''
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9095 $as_echo "no" >&6; }
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9099 $as_echo "no" >&6; }
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -W -Wno-unused" >&5
9104 $as_echo_n "checking GCC flag(s) -W -Wno-unused... " >&6; }
9105 if test "${GCC-no}" = yes
9107 if ${charybdis_cv_c_gcc_w+:} false
; then :
9108 $as_echo_n "(cached) " >&6
9111 oldcflags
="${CFLAGS-}"
9112 CFLAGS
="${CFLAGS-} ${CWARNS} -W -Wno-unused -Werror"
9113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9114 /* end confdefs.h. */
9124 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9130 if ac_fn_c_try_compile
"$LINENO"; then :
9131 charybdis_cv_c_gcc_w
=yes
9133 charybdis_cv_c_gcc_w
=no
9135 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9136 CFLAGS
="${oldcflags}"
9139 if test "x$charybdis_cv_c_gcc_w" = xyes
; then
9140 CWARNS
="${CWARNS}-W -Wno-unused "
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9142 $as_echo "ok" >&6; }
9144 charybdis_cv_c_gcc_w
=''
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9146 $as_echo "no" >&6; }
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9150 $as_echo "no" >&6; }
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wextra" >&5
9155 $as_echo_n "checking GCC flag(s) -Wextra... " >&6; }
9156 if test "${GCC-no}" = yes
9158 if ${charybdis_cv_c_gcc_w_extra+:} false
; then :
9159 $as_echo_n "(cached) " >&6
9162 oldcflags
="${CFLAGS-}"
9163 CFLAGS
="${CFLAGS-} ${CWARNS} -Wextra -Werror"
9164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9165 /* end confdefs.h. */
9175 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9181 if ac_fn_c_try_compile
"$LINENO"; then :
9182 charybdis_cv_c_gcc_w_extra
=yes
9184 charybdis_cv_c_gcc_w_extra
=no
9186 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9187 CFLAGS
="${oldcflags}"
9190 if test "x$charybdis_cv_c_gcc_w_extra" = xyes
; then
9191 CWARNS
="${CWARNS}-Wextra "
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9193 $as_echo "ok" >&6; }
9195 charybdis_cv_c_gcc_w_extra
=''
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9197 $as_echo "no" >&6; }
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9201 $as_echo "no" >&6; }
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wshadow" >&5
9206 $as_echo_n "checking GCC flag(s) -Wshadow... " >&6; }
9207 if test "${GCC-no}" = yes
9209 if ${charybdis_cv_c_gcc_w_shadow+:} false
; then :
9210 $as_echo_n "(cached) " >&6
9213 oldcflags
="${CFLAGS-}"
9214 CFLAGS
="${CFLAGS-} ${CWARNS} -Wshadow -Werror"
9215 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9216 /* end confdefs.h. */
9226 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9232 if ac_fn_c_try_compile
"$LINENO"; then :
9233 charybdis_cv_c_gcc_w_shadow
=yes
9235 charybdis_cv_c_gcc_w_shadow
=no
9237 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9238 CFLAGS
="${oldcflags}"
9241 if test "x$charybdis_cv_c_gcc_w_shadow" = xyes
; then
9242 CWARNS
="${CWARNS}-Wshadow "
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9244 $as_echo "ok" >&6; }
9246 charybdis_cv_c_gcc_w_shadow
=''
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9248 $as_echo "no" >&6; }
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9252 $as_echo "no" >&6; }
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wmissing-noreturn" >&5
9257 $as_echo_n "checking GCC flag(s) -Wmissing-noreturn... " >&6; }
9258 if test "${GCC-no}" = yes
9260 if ${charybdis_cv_c_gcc_w_missing_noreturn+:} false
; then :
9261 $as_echo_n "(cached) " >&6
9264 oldcflags
="${CFLAGS-}"
9265 CFLAGS
="${CFLAGS-} ${CWARNS} -Wmissing-noreturn -Werror"
9266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9267 /* end confdefs.h. */
9277 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9283 if ac_fn_c_try_compile
"$LINENO"; then :
9284 charybdis_cv_c_gcc_w_missing_noreturn
=yes
9286 charybdis_cv_c_gcc_w_missing_noreturn
=no
9288 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9289 CFLAGS
="${oldcflags}"
9292 if test "x$charybdis_cv_c_gcc_w_missing_noreturn" = xyes
; then
9293 CWARNS
="${CWARNS}-Wmissing-noreturn "
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9295 $as_echo "ok" >&6; }
9297 charybdis_cv_c_gcc_w_missing_noreturn
=''
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9299 $as_echo "no" >&6; }
9302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9303 $as_echo "no" >&6; }
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wundef" >&5
9308 $as_echo_n "checking GCC flag(s) -Wundef... " >&6; }
9309 if test "${GCC-no}" = yes
9311 if ${charybdis_cv_c_gcc_w_undef+:} false
; then :
9312 $as_echo_n "(cached) " >&6
9315 oldcflags
="${CFLAGS-}"
9316 CFLAGS
="${CFLAGS-} ${CWARNS} -Wundef -Werror"
9317 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9318 /* end confdefs.h. */
9328 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9334 if ac_fn_c_try_compile
"$LINENO"; then :
9335 charybdis_cv_c_gcc_w_undef
=yes
9337 charybdis_cv_c_gcc_w_undef
=no
9339 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9340 CFLAGS
="${oldcflags}"
9343 if test "x$charybdis_cv_c_gcc_w_undef" = xyes
; then
9344 CWARNS
="${CWARNS}-Wundef "
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9346 $as_echo "ok" >&6; }
9348 charybdis_cv_c_gcc_w_undef
=''
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9350 $as_echo "no" >&6; }
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9354 $as_echo "no" >&6; }
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpacked" >&5
9359 $as_echo_n "checking GCC flag(s) -Wpacked... " >&6; }
9360 if test "${GCC-no}" = yes
9362 if ${charybdis_cv_c_gcc_w_packed+:} false
; then :
9363 $as_echo_n "(cached) " >&6
9366 oldcflags
="${CFLAGS-}"
9367 CFLAGS
="${CFLAGS-} ${CWARNS} -Wpacked -Werror"
9368 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9369 /* end confdefs.h. */
9379 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9385 if ac_fn_c_try_compile
"$LINENO"; then :
9386 charybdis_cv_c_gcc_w_packed
=yes
9388 charybdis_cv_c_gcc_w_packed
=no
9390 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9391 CFLAGS
="${oldcflags}"
9394 if test "x$charybdis_cv_c_gcc_w_packed" = xyes
; then
9395 CWARNS
="${CWARNS}-Wpacked "
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9397 $as_echo "ok" >&6; }
9399 charybdis_cv_c_gcc_w_packed
=''
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9401 $as_echo "no" >&6; }
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9405 $as_echo "no" >&6; }
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wnested-externs" >&5
9410 $as_echo_n "checking GCC flag(s) -Wnested-externs... " >&6; }
9411 if test "${GCC-no}" = yes
9413 if ${charybdis_cv_c_gcc_w_nested_externs+:} false
; then :
9414 $as_echo_n "(cached) " >&6
9417 oldcflags
="${CFLAGS-}"
9418 CFLAGS
="${CFLAGS-} ${CWARNS} -Wnested-externs -Werror"
9419 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9420 /* end confdefs.h. */
9430 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9436 if ac_fn_c_try_compile
"$LINENO"; then :
9437 charybdis_cv_c_gcc_w_nested_externs
=yes
9439 charybdis_cv_c_gcc_w_nested_externs
=no
9441 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9442 CFLAGS
="${oldcflags}"
9445 if test "x$charybdis_cv_c_gcc_w_nested_externs" = xyes
; then
9446 CWARNS
="${CWARNS}-Wnested-externs "
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9448 $as_echo "ok" >&6; }
9450 charybdis_cv_c_gcc_w_nested_externs
=''
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9452 $as_echo "no" >&6; }
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9456 $as_echo "no" >&6; }
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable" >&5
9461 $as_echo_n "checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable... " >&6; }
9462 if test "${GCC-no}" = yes
9464 if ${charybdis_cv_c_gcc_w_unused+:} false
; then :
9465 $as_echo_n "(cached) " >&6
9468 oldcflags
="${CFLAGS-}"
9469 CFLAGS
="${CFLAGS-} ${CWARNS} -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Werror"
9470 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9471 /* end confdefs.h. */
9481 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9487 if ac_fn_c_try_compile
"$LINENO"; then :
9488 charybdis_cv_c_gcc_w_unused
=yes
9490 charybdis_cv_c_gcc_w_unused
=no
9492 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9493 CFLAGS
="${oldcflags}"
9496 if test "x$charybdis_cv_c_gcc_w_unused" = xyes
; then
9497 CWARNS
="${CWARNS}-Wunused-function -Wunused-label -Wunused-value -Wunused-variable "
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9499 $as_echo "ok" >&6; }
9501 charybdis_cv_c_gcc_w_unused
=''
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9503 $as_echo "no" >&6; }
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9507 $as_echo "no" >&6; }
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wredundant-decls" >&5
9512 $as_echo_n "checking GCC flag(s) -Wredundant-decls... " >&6; }
9513 if test "${GCC-no}" = yes
9515 if ${charybdis_cv_c_gcc_w_redundant_decls+:} false
; then :
9516 $as_echo_n "(cached) " >&6
9519 oldcflags
="${CFLAGS-}"
9520 CFLAGS
="${CFLAGS-} ${CWARNS} -Wredundant-decls -Werror"
9521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9522 /* end confdefs.h. */
9532 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9538 if ac_fn_c_try_compile
"$LINENO"; then :
9539 charybdis_cv_c_gcc_w_redundant_decls
=yes
9541 charybdis_cv_c_gcc_w_redundant_decls
=no
9543 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9544 CFLAGS
="${oldcflags}"
9547 if test "x$charybdis_cv_c_gcc_w_redundant_decls" = xyes
; then
9548 CWARNS
="${CWARNS}-Wredundant-decls "
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9550 $as_echo "ok" >&6; }
9552 charybdis_cv_c_gcc_w_redundant_decls
=''
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9554 $as_echo "no" >&6; }
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9558 $as_echo "no" >&6; }
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wfloat-equal" >&5
9563 $as_echo_n "checking GCC flag(s) -Wfloat-equal... " >&6; }
9564 if test "${GCC-no}" = yes
9566 if ${charybdis_cv_c_gcc_w_float_equal+:} false
; then :
9567 $as_echo_n "(cached) " >&6
9570 oldcflags
="${CFLAGS-}"
9571 CFLAGS
="${CFLAGS-} ${CWARNS} -Wfloat-equal -Werror"
9572 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9573 /* end confdefs.h. */
9583 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9589 if ac_fn_c_try_compile
"$LINENO"; then :
9590 charybdis_cv_c_gcc_w_float_equal
=yes
9592 charybdis_cv_c_gcc_w_float_equal
=no
9594 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9595 CFLAGS
="${oldcflags}"
9598 if test "x$charybdis_cv_c_gcc_w_float_equal" = xyes
; then
9599 CWARNS
="${CWARNS}-Wfloat-equal "
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9601 $as_echo "ok" >&6; }
9603 charybdis_cv_c_gcc_w_float_equal
=''
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9605 $as_echo "no" >&6; }
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9609 $as_echo "no" >&6; }
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security" >&5
9614 $as_echo_n "checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security... " >&6; }
9615 if test "${GCC-no}" = yes
9617 if ${charybdis_cv_c_gcc_w_format+:} false
; then :
9618 $as_echo_n "(cached) " >&6
9621 oldcflags
="${CFLAGS-}"
9622 CFLAGS
="${CFLAGS-} ${CWARNS} -Wformat -Wformat-y2k -Wno-format-security -Werror"
9623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9624 /* end confdefs.h. */
9634 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9640 if ac_fn_c_try_compile
"$LINENO"; then :
9641 charybdis_cv_c_gcc_w_format
=yes
9643 charybdis_cv_c_gcc_w_format
=no
9645 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9646 CFLAGS
="${oldcflags}"
9649 if test "x$charybdis_cv_c_gcc_w_format" = xyes
; then
9650 CWARNS
="${CWARNS}-Wformat -Wformat-y2k -Wno-format-security "
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9652 $as_echo "ok" >&6; }
9654 charybdis_cv_c_gcc_w_format
=''
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9656 $as_echo "no" >&6; }
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9660 $as_echo "no" >&6; }
9664 IRC_CFLAGS
="$CFLAGS"
9669 if test "$shared_modules" = no
; then
9671 MOD_TARGET
="libmodules.a"
9672 MODULES_LIBS
="../modules/libmodules.a"
9675 $as_echo "#define STATIC_MODULES 1" >>confdefs.h
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared module support has been disabled!" >&5
9678 $as_echo "$as_me: WARNING: shared module support has been disabled!" >&2;}
9681 if test "$shared_modules" = yes; then
9683 ac_fn_c_check_func
"$LINENO" "nlist" "ac_cv_func_nlist"
9684 if test "x$ac_cv_func_nlist" = xyes
; then :
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -ldl" >&5
9688 $as_echo_n "checking for nlist in -ldl... " >&6; }
9689 if ${ac_cv_lib_dl_nlist+:} false
; then :
9690 $as_echo_n "(cached) " >&6
9692 ac_check_lib_save_LIBS
=$LIBS
9694 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9695 /* end confdefs.h. */
9697 /* Override any GCC internal prototype to avoid an error.
9698 Use char because int might match the return type of a GCC
9699 builtin and then its argument prototype would still apply. */
9712 if ac_fn_c_try_link
"$LINENO"; then :
9713 ac_cv_lib_dl_nlist
=yes
9715 ac_cv_lib_dl_nlist
=no
9717 rm -f core conftest.err conftest.
$ac_objext \
9718 conftest
$ac_exeext conftest.
$ac_ext
9719 LIBS
=$ac_check_lib_save_LIBS
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_nlist" >&5
9722 $as_echo "$ac_cv_lib_dl_nlist" >&6; }
9723 if test "x$ac_cv_lib_dl_nlist" = xyes
; then :
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -lelf" >&5
9727 $as_echo_n "checking for nlist in -lelf... " >&6; }
9728 if ${ac_cv_lib_elf_nlist+:} false
; then :
9729 $as_echo_n "(cached) " >&6
9731 ac_check_lib_save_LIBS
=$LIBS
9733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9734 /* end confdefs.h. */
9736 /* Override any GCC internal prototype to avoid an error.
9737 Use char because int might match the return type of a GCC
9738 builtin and then its argument prototype would still apply. */
9751 if ac_fn_c_try_link
"$LINENO"; then :
9752 ac_cv_lib_elf_nlist
=yes
9754 ac_cv_lib_elf_nlist
=no
9756 rm -f core conftest.err conftest.
$ac_objext \
9757 conftest
$ac_exeext conftest.
$ac_ext
9758 LIBS
=$ac_check_lib_save_LIBS
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_nlist" >&5
9761 $as_echo "$ac_cv_lib_elf_nlist" >&6; }
9762 if test "x$ac_cv_lib_elf_nlist" = xyes
; then :
9773 ac_fn_c_check_header_mongrel
"$LINENO" "libelf/nlist.h" "ac_cv_header_libelf_nlist_h" "$ac_includes_default"
9774 if test "x$ac_cv_header_libelf_nlist_h" = xyes
; then :
9775 nlist_h
="libelf/nlist.h"
9779 ac_fn_c_check_header_mongrel
"$LINENO" "elf/nlist.h" "ac_cv_header_elf_nlist_h" "$ac_includes_default"
9780 if test "x$ac_cv_header_elf_nlist_h" = xyes
; then :
9781 nlist_h
="elf/nlist.h"
9785 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
9786 if test "x$ac_cv_header_nlist_h" = xyes
; then :
9791 if test x
"$nlist_h" = "x"; then
9793 cat >>confdefs.h
<<_ACEOF
9794 #define SYMBOL_PREFIX ""
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra underscores prepended to symbol names" >&5
9799 $as_echo_n "checking for extra underscores prepended to symbol names... " >&6; }
9800 if ${symbol_underscores+:} false
; then :
9801 $as_echo_n "(cached) " >&6
9804 cat << EOF > conftest.c
9808 void _modinit(void);
9809 int main(int argc, char *argv[]) {
9813 /* fill the names in this way, so it'll work almost everywhere */
9814 nl[0].n_name = "_modinit";
9815 nl[1].n_name = "__modinit";
9816 nl[2].n_name = "___modinit";
9817 nl[3].n_name = "____modinit";
9818 nl[0].n_value = nl[1].n_value = nl[2].n_value = nl[3].n_value = nl[4].n_name = NULL;
9820 if(argc < 2 || (nlist(argv[1], nl)) == -1) exit(-1);
9821 for(i = 0; i < 4; i++) {
9822 if(nl[i].n_value != NULL)
9825 for(j = 0; j < i; j++)
9832 void _modinit(void) { return; }
9834 $CC $CPPFLAGS $IRC_CFLAGS -o conftest conftest.c
$nlist_lib >/dev
/null
2>&1
9835 symbol_underscores
=`./conftest conftest`
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $symbol_underscores" >&5
9837 $as_echo "$symbol_underscores" >&6; }
9838 $RM -f conftest conftest.c
9843 cat >>confdefs.h
<<_ACEOF
9844 #define SYMBOL_PREFIX "${symbol_underscores}"
9850 IRC_CFLAGS
="$IRC_CFLAGS $CWARNS"
9865 if test "$prefix" = "NONE"; then
9867 cat >>confdefs.h
<<_ACEOF
9868 #define IRCD_PREFIX "$ac_default_prefix"
9875 prefix
=`echo $prefix | sed 's/\/$//'`
9877 cat >>confdefs.h
<<_ACEOF
9878 #define IRCD_PREFIX "$prefix"
9884 ac_config_files
="$ac_config_files Makefile bandb/Makefile ssld/Makefile extensions/Makefile src/Makefile modules/Makefile tools/Makefile tools/genssl doc/Makefile help/Makefile"
9886 ac_config_commands
="$ac_config_commands tools/genssl_chmod"
9889 cat >confcache
<<\_ACEOF
9890 # This file is a shell script that caches the results of configure
9891 # tests run on this system so they can be shared between configure
9892 # scripts and configure runs, see configure's option --config-cache.
9893 # It is not useful on other systems. If it contains results you don't
9894 # want to keep, you may remove or edit it.
9896 # config.status only pays attention to the cache file if you give it
9897 # the --recheck option to rerun configure.
9899 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9900 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9905 # The following way of writing the cache mishandles newlines in values,
9906 # but we know of no workaround that is simple, portable, and efficient.
9907 # So, we kill variables containing newlines.
9908 # Ultrix sh set writes to stderr and can't be redirected directly,
9909 # and sets the high bit in the cache file unless we assign to the vars.
9911 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9912 eval ac_val
=\$
$ac_var
9916 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9917 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9920 _
| IFS
| as_nl
) ;; #(
9921 BASH_ARGV
| BASH_SOURCE
) eval $ac_var= ;; #(
9922 *) { eval $ac_var=; unset $ac_var;} ;;
9928 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9929 *${as_nl}ac_space
=\
*)
9930 # `set' does not quote correctly, so add quotes: double-quote
9931 # substitution turns \\\\ into \\, and sed turns \\ into \.
9934 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9937 # `set' quotes correctly as required by POSIX, so do not add quotes.
9938 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9947 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9949 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9951 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
9952 if test -w "$cache_file"; then
9953 if test "x$cache_file" != "x/dev/null"; then
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9955 $as_echo "$as_me: updating cache $cache_file" >&6;}
9956 if test ! -f "$cache_file" || test -h "$cache_file"; then
9957 cat confcache
>"$cache_file"
9959 case $cache_file in #(
9961 mv -f confcache
"$cache_file"$$
&&
9962 mv -f "$cache_file"$$
"$cache_file" ;; #(
9964 mv -f confcache
"$cache_file" ;;
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9970 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9975 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9976 # Let make expand exec_prefix.
9977 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9979 DEFS
=-DHAVE_CONFIG_H
9984 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
9985 # 1. Remove the extension, and $U if already installed.
9986 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
9987 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
9988 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9989 # will be set to the directory where LIBOBJS objects are built.
9990 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9991 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
9995 LTLIBOBJS
=$ac_ltlibobjs
10001 : "${CONFIG_STATUS=./config.status}"
10003 ac_clean_files_save
=$ac_clean_files
10004 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10006 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10008 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10010 # Generated by $as_me.
10011 # Run this file to recreate the current configuration.
10012 # Compiler output produced by configure, useful for debugging
10013 # configure, is in config.log if it exists.
10016 ac_cs_recheck=false
10019 SHELL=\${CONFIG_SHELL-$SHELL}
10022 cat >>$CONFIG_STATUS <<\_ASEOF
|| as_write_fail
=1
10023 ## -------------------- ##
10024 ## M4sh Initialization. ##
10025 ## -------------------- ##
10027 # Be more Bourne compatible
10028 DUALCASE
=1; export DUALCASE
# for MKS sh
10029 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
10032 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10033 # is contrary to our usage. Disable this feature.
10034 alias -g '${1+"$@"}'='"$@"'
10035 setopt NO_GLOB_SUBST
10037 case `(set -o) 2>/dev/null` in #(
10049 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10050 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10051 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10052 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10053 # Prefer a ksh shell builtin over an external printf program on Solaris,
10054 # but without wasting forks for bash or zsh.
10055 if test -z "$BASH_VERSION$ZSH_VERSION" \
10056 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10057 as_echo='print
-r --'
10058 as_echo_n='print
-rn --'
10059 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10060 as_echo='printf %s
\n'
10061 as_echo_n='printf %s
'
10063 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10064 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
10065 as_echo_n='/usr
/ucb
/echo -n'
10067 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10068 as_echo_n_body='eval
10072 expr "X$arg" : "X\\(.*\\)$as_nl";
10073 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10075 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10077 export as_echo_n_body
10078 as_echo_n='sh
-c $as_echo_n_body as_echo
'
10080 export as_echo_body
10081 as_echo='sh
-c $as_echo_body as_echo
'
10084 # The user is always right.
10085 if test "${PATH_SEPARATOR+set}" != set; then
10087 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10088 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10095 # We need space, tab and new line, in precisely that order. Quoting is
10096 # there to prevent editors from complaining about space-tab.
10097 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10098 # splitting by setting IFS to empty value.)
10101 # Find who we are. Look in the path if we contain no directory separator.
10104 *[\\/]* ) as_myself=$0 ;;
10105 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10106 for as_dir in $PATH
10109 test -z "$as_dir" && as_dir=.
10110 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10116 # We did not find ourselves, most probably we were run as `sh COMMAND'
10117 # in which case we are not to be found in the path.
10118 if test "x$as_myself" = x
; then
10121 if test ! -f "$as_myself"; then
10122 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10126 # Unset variables that we do not need and which cause bugs (e.g. in
10127 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10128 # suppresses any "Segmentation fault" message there. '((' could
10129 # trigger a bug in pdksh 5.2.14.
10130 for as_var
in BASH_ENV ENV MAIL MAILPATH
10131 do eval test x\
${$as_var+set} = xset \
10132 && ( (unset $as_var) || exit 1) >/dev
/null
2>&1 && unset $as_var || :
10145 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
10148 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10149 # ----------------------------------------
10150 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10151 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10152 # script with STATUS, using 1 if that was 0.
10155 as_status
=$1; test $as_status -eq 0 && as_status
=1
10157 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
10158 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10160 $as_echo "$as_me: error: $2" >&2
10161 as_fn_exit
$as_status
10165 # as_fn_set_status STATUS
10166 # -----------------------
10167 # Set $? to STATUS, without forking.
10168 as_fn_set_status
()
10171 } # as_fn_set_status
10173 # as_fn_exit STATUS
10174 # -----------------
10175 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10179 as_fn_set_status
$1
10185 # Portably unset VAR.
10188 { eval $1=; unset $1;}
10190 as_unset
=as_fn_unset
10191 # as_fn_append VAR VALUE
10192 # ----------------------
10193 # Append the text in VALUE to the end of the definition contained in VAR. Take
10194 # advantage of any shell optimizations that allow amortized linear growth over
10195 # repeated appends, instead of the typical quadratic growth present in naive
10197 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
10198 eval 'as_fn_append ()
10209 # as_fn_arith ARG...
10210 # ------------------
10211 # Perform arithmetic evaluation on the ARGs, and store the result in the
10212 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10213 # must be portable across $(()) and expr.
10214 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
10215 eval 'as_fn_arith ()
10222 as_val
=`expr "$@" || test $? -eq 1`
10227 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
10228 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
10234 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10235 as_basename
=basename
10240 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
10246 as_me
=`$as_basename -- "$0" ||
10247 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10248 X"$0" : 'X\(//\)$' \| \
10249 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10251 sed '/^.*\/\([^/][^/]*\)\/*$/{
10265 # Avoid depending upon Character Ranges.
10266 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
10267 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10268 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
10269 as_cr_digits
='0123456789'
10270 as_cr_alnum
=$as_cr_Letters$as_cr_digits
10272 ECHO_C
= ECHO_N
= ECHO_T
=
10273 case `echo -n x` in #(((((
10275 case `echo 'xy\c'` in
10276 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
10278 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
10285 rm -f conf$$ conf$$.exe conf$$.
file
10286 if test -d conf$$.dir
; then
10287 rm -f conf$$.dir
/conf$$.
file
10290 mkdir conf$$.dir
2>/dev
/null
10292 if (echo >conf$$.
file) 2>/dev
/null
; then
10293 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
10295 # ... but there are two gotchas:
10296 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10297 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10298 # In both cases, we have to default to `cp -pR'.
10299 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe
||
10301 elif ln conf$$.
file conf$$
2>/dev
/null
; then
10309 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
10310 rmdir conf$$.dir
2>/dev
/null
10315 # Create "$as_dir" as a directory, including parents if necessary.
10320 -*) as_dir
=.
/$as_dir;;
10322 test -d "$as_dir" || eval $as_mkdir_p || {
10326 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10327 *) as_qdir
=$as_dir;;
10329 as_dirs
="'$as_qdir' $as_dirs"
10330 as_dir
=`$as_dirname -- "$as_dir" ||
10331 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10332 X"$as_dir" : 'X\(//\)[^/]' \| \
10333 X"$as_dir" : 'X\(//\)$' \| \
10334 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10335 $as_echo X"$as_dir" |
10336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10340 /^X\(\/\/\)[^/].*/{
10353 test -d "$as_dir" && break
10355 test -z "$as_dirs" || eval "mkdir $as_dirs"
10356 } || test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
10360 if mkdir -p .
2>/dev
/null
; then
10361 as_mkdir_p
='mkdir -p "$as_dir"'
10363 test -d .
/-p && rmdir .
/-p
10368 # as_fn_executable_p FILE
10369 # -----------------------
10370 # Test if FILE is an executable regular file.
10371 as_fn_executable_p
()
10373 test -f "$1" && test -x "$1"
10374 } # as_fn_executable_p
10375 as_test_x
='test -x'
10376 as_executable_p
=as_fn_executable_p
10378 # Sed expression to map a string onto a valid CPP name.
10379 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10381 # Sed expression to map a string onto a valid variable name.
10382 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10386 ## ----------------------------------- ##
10387 ## Main body of $CONFIG_STATUS script. ##
10388 ## ----------------------------------- ##
10390 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
10392 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
10393 # Save the log message, to keep $0 and so on meaningful, and to
10394 # report actual input values of CONFIG_FILES etc. instead of their
10395 # values after options handling.
10397 This file was extended by charybdis $as_me 3.5.0-dev, which was
10398 generated by GNU Autoconf 2.69. Invocation command line was
10400 CONFIG_FILES = $CONFIG_FILES
10401 CONFIG_HEADERS = $CONFIG_HEADERS
10402 CONFIG_LINKS = $CONFIG_LINKS
10403 CONFIG_COMMANDS = $CONFIG_COMMANDS
10406 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10411 case $ac_config_files in *"
10412 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
10415 case $ac_config_headers in *"
10416 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
10420 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10421 # Files that config.status was made for.
10422 config_files="$ac_config_files"
10423 config_headers="$ac_config_headers"
10424 config_commands="$ac_config_commands"
10428 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
10430 \`$as_me' instantiates files and other configuration actions
10431 from templates according to the current configuration. Unless the files
10432 and actions are specified as TAGs, all are instantiated by default.
10434 Usage: $0 [OPTION]... [TAG]...
10436 -h, --help print this help, then exit
10437 -V, --version print version number and configuration settings, then exit
10438 --config print configuration, then exit
10439 -q, --quiet, --silent
10440 do not print progress messages
10441 -d, --debug don't remove temporary files
10442 --recheck update $as_me by reconfiguring in the same conditions
10443 --file=FILE[:TEMPLATE]
10444 instantiate the configuration file FILE
10445 --header=FILE[:TEMPLATE]
10446 instantiate the configuration header FILE
10448 Configuration files:
10451 Configuration headers:
10454 Configuration commands:
10457 Report bugs to the package provider."
10460 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10461 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10463 charybdis config.status 3.5.0-dev
10464 configured by $0, generated by GNU Autoconf 2.69,
10465 with options \\"\$ac_cs_config\\"
10467 Copyright (C) 2012 Free Software Foundation, Inc.
10468 This config.status script is free software; the Free Software Foundation
10469 gives unlimited permission to copy, distribute and modify it."
10474 test -n "\$AWK" || AWK=awk
10477 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
10478 # The default lists apply if the user does not specify any file.
10484 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10485 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
10489 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10501 # Handling of the options.
10502 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10504 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10505 $as_echo "$ac_cs_version"; exit ;;
10506 --config | --confi | --conf | --con | --co | --c )
10507 $as_echo "$ac_cs_config"; exit ;;
10508 --debug | --debu | --deb | --de | --d | -d )
10510 --file | --fil | --fi | --f )
10513 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10514 '') as_fn_error $?
"missing file argument" ;;
10516 as_fn_append CONFIG_FILES
" '$ac_optarg'"
10517 ac_need_defaults
=false
;;
10518 --header | --heade | --head | --hea )
10521 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10523 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
10524 ac_need_defaults
=false
;;
10526 # Conflict between --help and --header
10527 as_fn_error $?
"ambiguous option: \`$1'
10528 Try \`$0 --help' for more information.";;
10529 --help | --hel | -h )
10530 $as_echo "$ac_cs_usage"; exit ;;
10531 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10532 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10535 # This is an error.
10536 -*) as_fn_error $?
"unrecognized option: \`$1'
10537 Try \`$0 --help' for more information." ;;
10539 *) as_fn_append ac_config_targets
" $1"
10540 ac_need_defaults
=false
;;
10546 ac_configure_extra_args
=
10548 if $ac_cs_silent; then
10550 ac_configure_extra_args
="$ac_configure_extra_args --silent"
10554 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10555 if \$ac_cs_recheck; then
10556 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10558 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10559 CONFIG_SHELL='$SHELL'
10560 export CONFIG_SHELL
10565 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
10569 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10570 ## Running $as_me. ##
10576 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10579 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
10581 # Handling of arguments.
10582 for ac_config_target
in $ac_config_targets
10584 case $ac_config_target in
10585 "include/setup.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/setup.h" ;;
10586 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
10587 "bandb/Makefile") CONFIG_FILES
="$CONFIG_FILES bandb/Makefile" ;;
10588 "ssld/Makefile") CONFIG_FILES
="$CONFIG_FILES ssld/Makefile" ;;
10589 "extensions/Makefile") CONFIG_FILES
="$CONFIG_FILES extensions/Makefile" ;;
10590 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
10591 "modules/Makefile") CONFIG_FILES
="$CONFIG_FILES modules/Makefile" ;;
10592 "tools/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/Makefile" ;;
10593 "tools/genssl") CONFIG_FILES
="$CONFIG_FILES tools/genssl" ;;
10594 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
10595 "help/Makefile") CONFIG_FILES
="$CONFIG_FILES help/Makefile" ;;
10596 "tools/genssl_chmod") CONFIG_COMMANDS
="$CONFIG_COMMANDS tools/genssl_chmod" ;;
10598 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10603 # If the user did not use the arguments to specify the items to instantiate,
10604 # then the envvar interface is used. Set only those that are not.
10605 # We use the long form for the default assignment because of an extremely
10606 # bizarre bug on SunOS 4.1.3.
10607 if $ac_need_defaults; then
10608 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
10609 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
10610 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
10613 # Have a temporary directory for convenience. Make it in the build tree
10614 # simply because there is no reason against having it here, and in addition,
10615 # creating and moving files from /tmp can sometimes cause problems.
10616 # Hook for its removal unless debugging.
10617 # Note that there is a small window in which the directory will not be cleaned:
10618 # after its creation but before its name has been assigned to `$tmp'.
10622 trap 'exit_status=$?
10623 : "${ac_tmp:=$tmp}"
10624 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10626 trap 'as_fn_exit 1' 1 2 13 15
10628 # Create a (secure) tmp directory for tmp files.
10631 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10635 tmp
=.
/conf$$
-$RANDOM
10636 (umask 077 && mkdir "$tmp")
10637 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
10640 # Set up the scripts for CONFIG_FILES section.
10641 # No need to generate them if there are no CONFIG_FILES.
10642 # This happens for instance with `./config.status config.h'.
10643 if test -n "$CONFIG_FILES"; then
10646 ac_cr
=`echo X | tr X '\015'`
10647 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10648 # But we know of no other shell where ac_cr would be empty at this
10649 # point, so we can use a bashism as a fallback.
10650 if test "x$ac_cr" = x
; then
10651 eval ac_cr
=\$
\'\\r
\'
10653 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10654 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10657 ac_cs_awk_cr
=$ac_cr
10660 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10665 echo "cat >conf$$subs.awk <<_ACEOF" &&
10666 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10668 } >conf$$subs.sh ||
10669 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10670 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10672 for ac_last_try in false false false false false :; do
10673 . ./conf$$subs.sh ||
10674 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10676 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
10677 if test $ac_delim_n = $ac_delim_num; then
10679 elif $ac_last_try; then
10680 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10682 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
10685 rm -f conf$$subs.sh
10687 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10688 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
10692 s/^/S["/; s
/!.
*/"]=/
10702 s/\(.\{148\}\)..*/\1/
10704 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
10709 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
10716 s/\(.\{148\}\)..*/\1/
10718 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
10722 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
10727 ' <conf$$subs.awk | sed '
10732 ' >>$CONFIG_STATUS || ac_write_fail=1
10733 rm -f conf$$subs.awk
10734 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10736 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
10737 for (key in S) S_is_set[key] = 1
10743 nfields = split(line, field, "@
")
10745 len = length(field[1])
10746 for (i = 2; i < nfields; i++) {
10748 keylen = length(key)
10749 if (S_is_set[key]) {
10751 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10752 len += length(value) + length(field[++i])
10763 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10764 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10765 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
10768 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
10769 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
10772 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10773 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
10774 # trailing colons and then remove the whole line if VPATH becomes empty
10775 # (actually we leave an empty line to preserve line numbers).
10776 if test "x
$srcdir" = x.; then
10777 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10795 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10796 fi # test -n "$CONFIG_FILES"
10798 # Set up the scripts for CONFIG_HEADERS section.
10799 # No need to generate them if there are no CONFIG_HEADERS.
10800 # This happens for instance with `./config.status Makefile'.
10801 if test -n "$CONFIG_HEADERS"; then
10802 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
10806 # Transform confdefs.h into an awk script `defines.awk', embedded as
10807 # here-document in config.status, that substitutes the proper values into
10808 # config.h.in to produce config.h.
10810 # Create a delimiter string that does not exist in confdefs.h, to ease
10811 # handling of long lines.
10813 for ac_last_try in false false :; do
10814 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
10815 if test -z "$ac_tt"; then
10817 elif $ac_last_try; then
10818 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
10820 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
10824 # For the awk script, D is an array of macro values keyed by name,
10825 # likewise P contains macro parameters if any. Preserve backslash
10826 # newline sequences.
10828 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10830 s/.\{148\}/&'"$ac_delim"'/g
10833 s/^[ ]*#[ ]*define[ ][ ]*/ /
10840 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
10842 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
10846 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
10847 D["\
1"]=" \
3\\\\\\n
"\\/p
10849 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
10854 s/.\{148\}/&'"$ac_delim"'/g
10859 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
10862 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
10864 ' <confdefs.h | sed '
10865 s/'"$ac_delim"'/"\\\
10866 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10868 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10869 for (key in D) D_is_set[key] = 1
10872 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10874 split(line, arg, " ")
10875 if (arg[1] == "#") {
10879 defundef
= substr
(arg
[1], 2)
10882 split(mac1
, mac2
, "(") #)
10884 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
10885 if (D_is_set
[macro
]) {
10886 # Preserve the white space surrounding the "#".
10887 print prefix
"define", macro P
[macro
] D
[macro
]
10890 # Replace #undef with comments. This is necessary, for example,
10891 # in the case of _POSIX_SOURCE, which is predefined and required
10892 # on some systems where configure will not decide to define it.
10893 if (defundef
== "undef") {
10894 print
"/*", prefix defundef
, macro
, "*/"
10902 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
10903 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
10904 fi # test -n "$CONFIG_HEADERS"
10907 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10912 :[FHLC
]) ac_mode
=$ac_tag; continue;;
10914 case $ac_mode$ac_tag in
10916 :L
* | :C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
10917 :[FH
]-) ac_tag
=-:-;;
10918 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
10935 -) ac_f
="$ac_tmp/stdin";;
10936 *) # Look for the file first in the build tree, then in the source tree
10937 # (if the path is not absolute). The absolute path cannot be DOS-style,
10938 # because $ac_f cannot contain `:'.
10942 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
10944 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10946 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10947 as_fn_append ac_file_inputs
" '$ac_f'"
10950 # Let's still pretend it is `configure' which instantiates (i.e., don't
10951 # use $as_me), people would be surprised to read:
10952 # /* config.h. Generated by config.status. */
10953 configure_input
='Generated from '`
10954 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10956 if test x
"$ac_file" != x
-; then
10957 configure_input
="$ac_file. $configure_input"
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10959 $as_echo "$as_me: creating $ac_file" >&6;}
10961 # Neutralize special characters interpreted by sed in replacement strings.
10962 case $configure_input in #(
10963 *\
&* | *\
|* | *\\* )
10964 ac_sed_conf_input
=`$as_echo "$configure_input" |
10965 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10966 *) ac_sed_conf_input
=$configure_input;;
10970 *:-:* | *:-) cat >"$ac_tmp/stdin" \
10971 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
10976 ac_dir
=`$as_dirname -- "$ac_file" ||
10977 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10978 X"$ac_file" : 'X\(//\)[^/]' \| \
10979 X"$ac_file" : 'X\(//\)$' \| \
10980 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10981 $as_echo X"$ac_file" |
10982 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10986 /^X\(\/\/\)[^/].*/{
10999 as_dir
="$ac_dir"; as_fn_mkdir_p
11003 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11005 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11006 # A ".." for each directory in $ac_dir_suffix.
11007 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11008 case $ac_top_builddir_sub in
11009 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11010 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
11013 ac_abs_top_builddir
=$ac_pwd
11014 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
11015 # for backward compatibility:
11016 ac_top_builddir
=$ac_top_build_prefix
11019 .
) # We are building in place.
11021 ac_top_srcdir
=$ac_top_builddir_sub
11022 ac_abs_top_srcdir
=$ac_pwd ;;
11023 [\\/]* | ?
:[\\/]* ) # Absolute name.
11024 ac_srcdir
=$srcdir$ac_dir_suffix;
11025 ac_top_srcdir
=$srcdir
11026 ac_abs_top_srcdir
=$srcdir ;;
11027 *) # Relative name.
11028 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
11029 ac_top_srcdir
=$ac_top_build_prefix$srcdir
11030 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
11032 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
11042 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
11043 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
11047 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
11048 # If the template does not know about datarootdir, expand it.
11049 # FIXME: This hack should be removed a few years after 2.60.
11050 ac_datarootdir_hack
=; ac_datarootdir_seen
=
11061 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11062 *datarootdir
*) ac_datarootdir_seen
=yes;;
11063 *@datadir@
*|*@docdir@
*|*@infodir@
*|*@localedir@
*|*@mandir@
*)
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11065 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11067 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11068 ac_datarootdir_hack='
11069 s&@datadir@&$datadir&g
11070 s&@docdir@&$docdir&g
11071 s&@infodir@&$infodir&g
11072 s&@localedir@&$localedir&g
11073 s&@mandir@&$mandir&g
11074 s&\\\${datarootdir}&$datarootdir&g' ;;
11078 # Neutralize VPATH when `$srcdir' = `.'.
11079 # Shell code in configure.ac might set extrasub.
11080 # FIXME: do we really want to maintain this feature?
11081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11082 ac_sed_extra="$ac_vpsub
11085 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
11087 /@
[a
-zA-Z_][a
-zA-Z_0-9]*@
/!b
11088 s
|@configure_input@
|$ac_sed_conf_input|;t t
11089 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
11090 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
11091 s
&@srcdir@
&$ac_srcdir&;t t
11092 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
11093 s
&@top_srcdir@
&$ac_top_srcdir&;t t
11094 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
11095 s
&@builddir@
&$ac_builddir&;t t
11096 s
&@abs_builddir@
&$ac_abs_builddir&;t t
11097 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
11098 s
&@INSTALL@
&$ac_INSTALL&;t t
11099 $ac_datarootdir_hack
11101 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
11102 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
11104 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11105 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
11106 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11107 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
11109 which seems to be undefined. Please make sure it is defined" >&5
11110 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
11111 which seems to be undefined. Please make sure it is defined" >&2;}
11113 rm -f "$ac_tmp/stdin"
11115 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11116 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11118 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11124 if test x"$ac_file" != x-; then
11126 $as_echo "/* $configure_input */" \
11127 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11128 } >"$ac_tmp/config.h" \
11129 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11130 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11132 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11135 mv "$ac_tmp/config.h" "$ac_file" \
11136 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11139 $as_echo "/* $configure_input */" \
11140 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11141 || as_fn_error $? "could not create -" "$LINENO" 5
11145 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11146 $as_echo "$as_me: executing $ac_file commands" >&6;}
11151 case $ac_file$ac_mode in
11152 "tools/genssl_chmod":C) chmod 755 tools/genssl ;;
11160 ac_clean_files=$ac_clean_files_save
11162 test $ac_write_fail = 0 ||
11163 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11166 # configure is writing to config.log, and then calls config.status.
11167 # config.status does its own redirection, appending to config.log.
11168 # Unfortunately, on DOS this fails, as config.log is still kept open
11169 # by configure, so config.status won't be able to
write to it
; its
11170 # output is simply discarded. So we exec the FD to /dev/null,
11171 # effectively closing config.log, so it can be properly (re)opened and
11172 # appended to by config.status. When coming back to configure, we
11173 # need to make the FD available again.
11174 if test "$no_create" != yes; then
11176 ac_config_status_args
=
11177 test "$silent" = yes &&
11178 ac_config_status_args
="$ac_config_status_args --quiet"
11180 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
11182 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11183 # would make configure fail if this is the last instruction.
11184 $ac_cs_success || as_fn_exit
1
11186 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11188 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11192 if test "$cf_openssl_version_ok" = yes; then
11198 if test "$shared_modules" = yes; then
11205 Configuration of ${BRANDING_NAME}-${BRANDING_VERSION}:
11206 Install directory : $prefix
11210 Socket Engine : $SELECT_TYPE
11211 Small network : $small_net
11212 Block allocator : $balloc
11214 Nickname length : $NICKLEN
11215 Topic length : $TOPICLEN
11217 Use (g)make to compile $BRANDING_NAME, then (g)make install to install it.