2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for unrealircd 4.0.19-rc2.
5 # Report bugs to <http://bugs.unrealircd.org/>.
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 and
270 $0: http://bugs.unrealircd.org/ about your system,
271 $0: including any error possibly output before this
272 $0: message. Then install a modern shell, or manually run
273 $0: the script under such a shell if you do have one."
279 SHELL
=${CONFIG_SHELL-/bin/sh}
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE
= GREP_OPTIONS
=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
290 # Portably unset VAR.
293 { eval $1=; unset $1;}
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 # Create "$as_dir" as a directory, including parents if necessary.
322 -*) as_dir
=.
/$as_dir;;
324 test -d "$as_dir" || eval $as_mkdir_p || {
328 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
331 as_dirs
="'$as_qdir' $as_dirs"
332 as_dir
=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
355 test -d "$as_dir" && break
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p
()
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
377 eval 'as_fn_append ()
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
401 as_val
=`expr "$@" || test $? -eq 1`
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
413 as_status
=$1; test $as_status -eq 0 && as_status
=1
415 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit
$as_status
422 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
429 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
441 as_me
=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
460 # Avoid depending upon Character Ranges.
461 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits
='0123456789'
465 as_cr_alnum
=$as_cr_Letters$as_cr_digits
468 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
469 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
488 chmod +x
"$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec
=no
; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
499 # Exit status is that of the last command.
503 ECHO_C
= ECHO_N
= ECHO_T
=
504 case `echo -n x` in #(((((
506 case `echo 'xy\c'` in
507 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
516 rm -f conf$$ conf$$.exe conf$$.
file
517 if test -d conf$$.dir
; then
518 rm -f conf$$.dir
/conf$$.
file
521 mkdir conf$$.dir
2>/dev
/null
523 if (echo >conf$$.
file) 2>/dev
/null
; then
524 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe
||
532 elif ln conf$$.
file conf$$
2>/dev
/null
; then
540 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
541 rmdir conf$$.dir
2>/dev
/null
543 if mkdir -p .
2>/dev
/null
; then
544 as_mkdir_p
='mkdir -p "$as_dir"'
546 test -d .
/-p && rmdir .
/-p
551 as_executable_p
=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560 test -n "$DJDIR" || exec 7<&0 </dev
/null
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
571 ac_default_prefix
=/usr
/local
573 ac_config_libobj_dir
=.
580 # Identity of this package.
581 PACKAGE_NAME
='unrealircd'
582 PACKAGE_TARNAME
='unrealircd'
583 PACKAGE_VERSION
='4.0.19-rc2'
584 PACKAGE_STRING
='unrealircd 4.0.19-rc2'
585 PACKAGE_BUGREPORT
='http://bugs.unrealircd.org/'
586 PACKAGE_URL
='http://unrealircd.org/'
588 ac_unique_file
="src/ircd.c"
589 # Factoring default headers for most tests.
590 ac_includes_default
="\
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
602 # ifdef HAVE_STDLIB_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
625 ac_subst_vars
='LTLIBOBJS
720 program_transform_name
733 enable_option_checking
756 with_operoverride_verify
757 with_disable_extendedban_stacking
762 enable_dynamic_linking
766 ac_precious_vars
='build_alias
786 # Initialize some variables set by options.
788 ac_init_version
=false
789 ac_unrecognized_opts
=
791 # The variables have the same names as the options, with
792 # dashes changed to underlines.
800 program_transform_name
=s
,x
,x
,
808 # Installation directory options.
809 # These are left unexpanded so users can "make install exec_prefix=/foo"
810 # and all the variables that are supposed to be based on exec_prefix
811 # by default will actually change.
812 # Use braces instead of parens because sh, perl, etc. also accept them.
813 # (The list follows the same order as the GNU Coding Standards.)
814 bindir
='${exec_prefix}/bin'
815 sbindir
='${exec_prefix}/sbin'
816 libexecdir
='${exec_prefix}/libexec'
817 datarootdir
='${prefix}/share'
818 datadir
='${datarootdir}'
819 sysconfdir
='${prefix}/etc'
820 sharedstatedir
='${prefix}/com'
821 localstatedir
='${prefix}/var'
822 runstatedir
='${localstatedir}/run'
823 includedir
='${prefix}/include'
824 oldincludedir
='/usr/include'
825 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
826 infodir
='${datarootdir}/info'
831 libdir
='${exec_prefix}/lib'
832 localedir
='${datarootdir}/locale'
833 mandir
='${datarootdir}/man'
839 # If the previous option needs an argument, assign it.
840 if test -n "$ac_prev"; then
841 eval $ac_prev=\
$ac_option
847 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
852 # Accept the important Cygnus configure options, so we can diagnose typos.
854 case $ac_dashdash$ac_option in
858 -bindir | --bindir | --bindi | --bind | --bin | --bi)
860 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
863 -build | --build | --buil | --bui | --bu)
864 ac_prev
=build_alias
;;
865 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
866 build_alias
=$ac_optarg ;;
868 -cache-file | --cache-file | --cache-fil | --cache-fi \
869 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
870 ac_prev
=cache_file
;;
871 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
872 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
873 cache_file
=$ac_optarg ;;
876 cache_file
=config.cache
;;
878 -datadir | --datadir | --datadi | --datad)
880 -datadir=* | --datadir=* | --datadi=* | --datad=*)
881 datadir
=$ac_optarg ;;
883 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
884 | --dataroo | --dataro | --datar)
885 ac_prev
=datarootdir
;;
886 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
887 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
888 datarootdir
=$ac_optarg ;;
890 -disable-* | --disable-*)
891 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
892 # Reject names that are not valid shell variable names.
893 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
894 as_fn_error $?
"invalid feature name: $ac_useropt"
895 ac_useropt_orig
=$ac_useropt
896 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
897 case $ac_user_opts in
901 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
902 ac_unrecognized_sep
=', ';;
904 eval enable_
$ac_useropt=no
;;
906 -docdir | --docdir | --docdi | --doc | --do)
908 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
911 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
913 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
916 -enable-* | --enable-*)
917 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
918 # Reject names that are not valid shell variable names.
919 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
920 as_fn_error $?
"invalid feature name: $ac_useropt"
921 ac_useropt_orig
=$ac_useropt
922 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
923 case $ac_user_opts in
927 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
928 ac_unrecognized_sep
=', ';;
930 eval enable_
$ac_useropt=\
$ac_optarg ;;
932 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
933 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
934 | --exec | --exe | --ex)
935 ac_prev
=exec_prefix
;;
936 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
937 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
938 | --exec=* | --exe=* | --ex=*)
939 exec_prefix
=$ac_optarg ;;
941 -gas | --gas | --ga | --g)
942 # Obsolete; use --with-gas.
945 -help | --help | --hel | --he | -h)
947 -help=r
* | --help=r
* | --hel=r
* | --he=r
* | -hr*)
948 ac_init_help
=recursive
;;
949 -help=s
* | --help=s
* | --hel=s
* | --he=s
* | -hs*)
950 ac_init_help
=short
;;
952 -host | --host | --hos | --ho)
953 ac_prev
=host_alias
;;
954 -host=* | --host=* | --hos=* | --ho=*)
955 host_alias
=$ac_optarg ;;
957 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
959 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
961 htmldir
=$ac_optarg ;;
963 -includedir | --includedir | --includedi | --included | --include \
964 | --includ | --inclu | --incl | --inc)
965 ac_prev
=includedir
;;
966 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
967 | --includ=* | --inclu=* | --incl=* | --inc=*)
968 includedir
=$ac_optarg ;;
970 -infodir | --infodir | --infodi | --infod | --info | --inf)
972 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
973 infodir
=$ac_optarg ;;
975 -libdir | --libdir | --libdi | --libd)
977 -libdir=* | --libdir=* | --libdi=* | --libd=*)
980 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
981 | --libexe | --libex | --libe)
982 ac_prev
=libexecdir
;;
983 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
984 | --libexe=* | --libex=* | --libe=*)
985 libexecdir
=$ac_optarg ;;
987 -localedir | --localedir | --localedi | --localed | --locale)
989 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
990 localedir
=$ac_optarg ;;
992 -localstatedir | --localstatedir | --localstatedi | --localstated \
993 | --localstate | --localstat | --localsta | --localst | --locals)
994 ac_prev
=localstatedir
;;
995 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
996 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
997 localstatedir
=$ac_optarg ;;
999 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1001 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1002 mandir
=$ac_optarg ;;
1004 -nfp | --nfp | --nf)
1005 # Obsolete; use --without-fp.
1008 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1009 | --no-cr | --no-c | -n)
1012 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1013 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1016 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1017 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1018 | --oldin | --oldi | --old | --ol | --o)
1019 ac_prev
=oldincludedir
;;
1020 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1021 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1022 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1023 oldincludedir
=$ac_optarg ;;
1025 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1027 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1028 prefix
=$ac_optarg ;;
1030 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1031 | --program-pre | --program-pr | --program-p)
1032 ac_prev
=program_prefix
;;
1033 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1034 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1035 program_prefix
=$ac_optarg ;;
1037 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1038 | --program-suf | --program-su | --program-s)
1039 ac_prev
=program_suffix
;;
1040 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1041 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1042 program_suffix
=$ac_optarg ;;
1044 -program-transform-name | --program-transform-name \
1045 | --program-transform-nam | --program-transform-na \
1046 | --program-transform-n | --program-transform- \
1047 | --program-transform | --program-transfor \
1048 | --program-transfo | --program-transf \
1049 | --program-trans | --program-tran \
1050 | --progr-tra | --program-tr | --program-t)
1051 ac_prev
=program_transform_name
;;
1052 -program-transform-name=* | --program-transform-name=* \
1053 | --program-transform-nam=* | --program-transform-na=* \
1054 | --program-transform-n=* | --program-transform-=* \
1055 | --program-transform=* | --program-transfor=* \
1056 | --program-transfo=* | --program-transf=* \
1057 | --program-trans=* | --program-tran=* \
1058 | --progr-tra=* | --program-tr=* | --program-t=*)
1059 program_transform_name
=$ac_optarg ;;
1061 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1063 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1064 pdfdir
=$ac_optarg ;;
1066 -psdir | --psdir | --psdi | --psd | --ps)
1068 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1071 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072 | -silent | --silent | --silen | --sile | --sil)
1075 -runstatedir | --runstatedir | --runstatedi | --runstated \
1076 | --runstate | --runstat | --runsta | --runst | --runs \
1077 | --run | --ru | --r)
1078 ac_prev
=runstatedir
;;
1079 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1080 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1081 | --run=* | --ru=* | --r=*)
1082 runstatedir
=$ac_optarg ;;
1084 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1086 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1088 sbindir
=$ac_optarg ;;
1090 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1091 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1092 | --sharedst | --shareds | --shared | --share | --shar \
1094 ac_prev
=sharedstatedir
;;
1095 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1096 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1097 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1099 sharedstatedir
=$ac_optarg ;;
1101 -site | --site | --sit)
1103 -site=* | --site=* | --sit=*)
1106 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1108 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1109 srcdir
=$ac_optarg ;;
1111 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1112 | --syscon | --sysco | --sysc | --sys | --sy)
1113 ac_prev
=sysconfdir
;;
1114 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1115 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1116 sysconfdir
=$ac_optarg ;;
1118 -target | --target | --targe | --targ | --tar | --ta | --t)
1119 ac_prev
=target_alias
;;
1120 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1121 target_alias
=$ac_optarg ;;
1123 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1126 -version | --version | --versio | --versi | --vers | -V)
1127 ac_init_version
=: ;;
1130 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1131 # Reject names that are not valid shell variable names.
1132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1133 as_fn_error $?
"invalid package name: $ac_useropt"
1134 ac_useropt_orig
=$ac_useropt
1135 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136 case $ac_user_opts in
1140 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1141 ac_unrecognized_sep
=', ';;
1143 eval with_
$ac_useropt=\
$ac_optarg ;;
1145 -without-* | --without-*)
1146 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1147 # Reject names that are not valid shell variable names.
1148 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1149 as_fn_error $?
"invalid package name: $ac_useropt"
1150 ac_useropt_orig
=$ac_useropt
1151 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1152 case $ac_user_opts in
1156 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1157 ac_unrecognized_sep
=', ';;
1159 eval with_
$ac_useropt=no
;;
1162 # Obsolete; use --with-x.
1165 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1166 | --x-incl | --x-inc | --x-in | --x-i)
1167 ac_prev
=x_includes
;;
1168 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1169 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1170 x_includes
=$ac_optarg ;;
1172 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1173 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1174 ac_prev
=x_libraries
;;
1175 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1176 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1177 x_libraries
=$ac_optarg ;;
1179 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1180 Try \`$0 --help' for more information"
1184 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1185 # Reject names that are not valid shell variable names.
1186 case $ac_envvar in #(
1187 '' | [0-9]* | *[!_$as_cr_alnum]* )
1188 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1190 eval $ac_envvar=\
$ac_optarg
1191 export $ac_envvar ;;
1194 # FIXME: should be removed in autoconf 3.0.
1195 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1196 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1197 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1198 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1204 if test -n "$ac_prev"; then
1205 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1206 as_fn_error $?
"missing argument to $ac_option"
1209 if test -n "$ac_unrecognized_opts"; then
1210 case $enable_option_checking in
1212 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1213 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1217 # Check all directory arguments for consistency.
1218 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1219 datadir sysconfdir sharedstatedir localstatedir includedir \
1220 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1221 libdir localedir mandir runstatedir
1223 eval ac_val
=\$
$ac_var
1224 # Remove trailing slashes.
1227 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1228 eval $ac_var=\
$ac_val;;
1230 # Be sure to have absolute directory names.
1232 [\\/$
]* | ?
:[\\/]* ) continue;;
1233 NONE
| '' ) case $ac_var in *prefix
) continue;; esac;;
1235 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1238 # There might be people who depend on the old broken behavior: `$host'
1239 # used to hold the argument of --host etc.
1240 # FIXME: To remove some day.
1243 target
=$target_alias
1245 # FIXME: To remove some day.
1246 if test "x$host_alias" != x
; then
1247 if test "x$build_alias" = x
; then
1248 cross_compiling
=maybe
1249 elif test "x$build_alias" != "x$host_alias"; then
1255 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1257 test "$silent" = yes && exec 6>/dev
/null
1260 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1261 ac_ls_di
=`ls -di .` &&
1262 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1263 as_fn_error $?
"working directory cannot be determined"
1264 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1265 as_fn_error $?
"pwd does not report name of working directory"
1268 # Find the source files, if location was not specified.
1269 if test -z "$srcdir"; then
1270 ac_srcdir_defaulted
=yes
1271 # Try the directory containing this script, then the parent directory.
1272 ac_confdir
=`$as_dirname -- "$as_myself" ||
1273 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1274 X"$as_myself" : 'X\(//\)[^/]' \| \
1275 X"$as_myself" : 'X\(//\)$' \| \
1276 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1277 $as_echo X"$as_myself" |
1278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1296 if test ! -r "$srcdir/$ac_unique_file"; then
1300 ac_srcdir_defaulted
=no
1302 if test ! -r "$srcdir/$ac_unique_file"; then
1303 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1304 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1306 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1308 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1310 # When building in place, set srcdir=.
1311 if test "$ac_abs_confdir" = "$ac_pwd"; then
1314 # Remove unnecessary trailing slashes from srcdir.
1315 # Double slashes in file names in object file debugging info
1316 # mess up M-x gdb in Emacs.
1318 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1320 for ac_var
in $ac_precious_vars; do
1321 eval ac_env_
${ac_var}_set
=\
${${ac_var}+set}
1322 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1323 eval ac_cv_env_
${ac_var}_set
=\
${${ac_var}+set}
1324 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1328 # Report the --help message.
1330 if test "$ac_init_help" = "long"; then
1331 # Omit some internal or obsolete options to make the list less imposing.
1332 # This message is too long to be a string in the A/UX 3.1 sh.
1334 \`configure' configures unrealircd 4.0.19-rc2 to adapt to many kinds of systems.
1336 Usage: $0 [OPTION]... [VAR=VALUE]...
1338 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1339 VAR=VALUE. See below for descriptions of some of the useful variables.
1341 Defaults for the options are specified in brackets.
1344 -h, --help display this help and exit
1345 --help=short display options specific to this package
1346 --help=recursive display the short help of all the included packages
1347 -V, --version display version information and exit
1348 -q, --quiet, --silent do not print \`checking ...' messages
1349 --cache-file=FILE cache test results in FILE [disabled]
1350 -C, --config-cache alias for \`--cache-file=config.cache'
1351 -n, --no-create do not create output files
1352 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1354 Installation directories:
1355 --prefix=PREFIX install architecture-independent files in PREFIX
1356 [$ac_default_prefix]
1357 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1360 By default, \`make install' will install all the files in
1361 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1362 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1363 for instance \`--prefix=\$HOME'.
1365 For better control, use the options below.
1367 Fine tuning of the installation directories:
1368 --bindir=DIR user executables [EPREFIX/bin]
1369 --sbindir=DIR system admin executables [EPREFIX/sbin]
1370 --libexecdir=DIR program executables [EPREFIX/libexec]
1371 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1372 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1373 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1374 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1375 --libdir=DIR object code libraries [EPREFIX/lib]
1376 --includedir=DIR C header files [PREFIX/include]
1377 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1378 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1379 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1380 --infodir=DIR info documentation [DATAROOTDIR/info]
1381 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1382 --mandir=DIR man documentation [DATAROOTDIR/man]
1383 --docdir=DIR documentation root [DATAROOTDIR/doc/unrealircd]
1384 --htmldir=DIR html documentation [DOCDIR]
1385 --dvidir=DIR dvi documentation [DOCDIR]
1386 --pdfdir=DIR pdf documentation [DOCDIR]
1387 --psdir=DIR ps documentation [DOCDIR]
1393 --build=BUILD configure
for building on BUILD
[guessed
]
1394 --host=HOST cross
-compile to build programs to run on HOST
[BUILD
]
1398 if test -n "$ac_init_help"; then
1399 case $ac_init_help in
1400 short
| recursive
) echo "Configuration of unrealircd 4.0.19-rc2:";;
1405 --disable-option-checking ignore unrecognized
--enable/--with options
1406 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1407 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1408 --enable-hardening Enable compiler and linker options to frustrate
1409 memory corruption exploits
[yes]
1410 --disable-prefixaq Disable chanadmin
(+a
) and chanowner
(+q
) prefixes
1411 --enable-ssl= enable ssl will check
/usr
/local
/opt
/openssl
1412 /usr
/local
/ssl
/usr
/lib
/ssl
/usr
/ssl
/usr
/pkg
1413 /usr
/sfw
/usr
/local /usr
1414 --disable-dynamic-linking
1415 Make the IRCd statically link with shared objects
1416 rather than dynamically
(noone knows
if disabling
1417 dynamic linking actually does anything or not
)
1418 --enable-werror Turn compilation warnings into errors
(-Werror)
1419 --enable-libcurl=DIR
enable libcurl
(remote include
) support
1422 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1423 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1424 --with-nick-history=length
1425 Specify the length of the nickname
history
1426 --with-sendq=maxsendq Specify the max sendq
for the server
1427 --with-permissions=permissions
1428 Specify the default permissions
for configuration
1430 --with-bindir=path Specify the directory
for the unrealircd binary
1431 --with-scriptdir=path Specify the directory
for the unrealircd start
-stop
1433 --with-confdir=path Specify the directory where configuration files are
1435 --with-modulesdir=path Specify the directory
for loadable modules
1436 --with-logdir=path Specify the directory where log files are stored
1437 --with-cachedir=path Specify the directory where cached files are stored
1438 --with-tmpdir=path Specify the directory where private temporary files
1439 are stored. Should not be readable or writable by
1440 others
, so not
/tmp
!!
1441 --with-datadir=path Specify the directory where permanent data is stored
1442 --with-docdir=path Specify the directory where documentation is stored
1443 --with-pidfile=path Specify the path of the pid
file
1444 --with-privatelibdir=path
1445 Specify the directory where private libraries are
1446 stored. Disable when building a package
for a distro
1447 --with-fd-setsize=size Specify the max
file descriptors to use
1448 --with-showlistmodes Specify whether modes are shown
in /list
1449 --with-topicisnuhost Display nick
!user@
host as the topic setter
1450 --with-shunnotices Notify a user when he
/she is no longer shunned
1451 --with-no-operoverride Disable OperOverride
1452 --with-disableusermod Disable
/set* and
/chg
*
1453 --with-operoverride-verify
1454 Require opers to invite themselves to
+s
/+p channels
1455 --with-disable-extendedban-stacking
1456 Disable extended ban stacking
1457 --with-system-tre Use the system tre package instead of bundled
,
1458 discovered using pkg
-config
1459 --with-system-pcre2 Use the system pcre2 package instead of bundled
,
1460 discovered using pkg
-config
1461 --without-system-cares Use bundled version instead of system c
-ares.
1462 Normally autodetected via pkg
-config.
1464 Some influential environment variables
:
1465 CC C compiler
command
1466 CFLAGS C compiler flags
1467 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1468 nonstandard directory
<lib dir
>
1469 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1470 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1471 you have headers
in a nonstandard directory
<include dir
>
1473 PKG_CONFIG path to pkg
-config utility
1475 directories to add to pkg
-config's search path
1477 path overriding pkg-config's built
-in search path
1478 TRE_CFLAGS C compiler flags
for TRE
, overriding pkg
-config
1479 TRE_LIBS linker flags
for TRE
, overriding pkg
-config
1481 C compiler flags
for PCRE2
, overriding pkg
-config
1482 PCRE2_LIBS linker flags
for PCRE2
, overriding pkg
-config
1484 C compiler flags
for CARES
, overriding pkg
-config
1485 CARES_LIBS linker flags
for CARES
, overriding pkg
-config
1487 Use these variables to override the choices made by
`configure' or to help
1488 it to find libraries and programs with nonstandard names/locations.
1490 Report bugs to <http://bugs.unrealircd.org/>.
1491 unrealircd home page: <http://unrealircd.org/>.
1496 if test "$ac_init_help" = "recursive"; then
1497 # If there are subdirs, report their specific --help.
1498 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1499 test -d "$ac_dir" ||
1500 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1505 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1508 # A ".." for each directory in $ac_dir_suffix.
1509 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1510 case $ac_top_builddir_sub in
1511 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1512 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1515 ac_abs_top_builddir=$ac_pwd
1516 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1517 # for backward compatibility:
1518 ac_top_builddir=$ac_top_build_prefix
1521 .) # We are building in place.
1523 ac_top_srcdir=$ac_top_builddir_sub
1524 ac_abs_top_srcdir=$ac_pwd ;;
1525 [\\/]* | ?:[\\/]* ) # Absolute name.
1526 ac_srcdir=$srcdir$ac_dir_suffix;
1527 ac_top_srcdir=$srcdir
1528 ac_abs_top_srcdir=$srcdir ;;
1530 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1531 ac_top_srcdir=$ac_top_build_prefix$srcdir
1532 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1534 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1536 cd "$ac_dir" || { ac_status=$?; continue; }
1537 # Check for guested configure.
1538 if test -f "$ac_srcdir/configure.gnu"; then
1540 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1541 elif test -f "$ac_srcdir/configure"; then
1543 $SHELL "$ac_srcdir/configure" --help=recursive
1545 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1547 cd "$ac_pwd" || { ac_status=$?; break; }
1551 test -n "$ac_init_help" && exit $ac_status
1552 if $ac_init_version; then
1554 unrealircd configure 4.0.19-rc2
1555 generated by GNU Autoconf 2.69
1557 Copyright (C) 2012 Free Software Foundation, Inc.
1558 This configure script is free software; the Free Software Foundation
1559 gives unlimited permission to copy, distribute and modify it.
1564 ## ------------------------ ##
1565 ## Autoconf initialization. ##
1566 ## ------------------------ ##
1568 # ac_fn_c_try_compile LINENO
1569 # --------------------------
1570 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1571 ac_fn_c_try_compile ()
1573 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1574 rm -f conftest.$ac_objext
1575 if { { ac_try="$ac_compile"
1577 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
1578 *) ac_try_echo
=$ac_try;;
1580 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1581 $as_echo "$ac_try_echo"; } >&5
1582 (eval "$ac_compile") 2>conftest.err
1584 if test -s conftest.err
; then
1585 grep -v '^ *+' conftest.err
>conftest.er1
1586 cat conftest.er1
>&5
1587 mv -f conftest.er1 conftest.err
1589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1590 test $ac_status = 0; } && {
1591 test -z "$ac_c_werror_flag" ||
1592 test ! -s conftest.err
1593 } && test -s conftest.
$ac_objext; then :
1596 $as_echo "$as_me: failed program was:" >&5
1597 sed 's/^/| /' conftest.
$ac_ext >&5
1601 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1602 as_fn_set_status
$ac_retval
1604 } # ac_fn_c_try_compile
1606 # ac_fn_c_try_link LINENO
1607 # -----------------------
1608 # Try to link conftest.$ac_ext, and return whether this succeeded.
1611 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1612 rm -f conftest.
$ac_objext conftest
$ac_exeext
1613 if { { ac_try
="$ac_link"
1615 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
1616 *) ac_try_echo=$ac_try;;
1618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1619 $as_echo "$ac_try_echo"; } >&5
1620 (eval "$ac_link") 2>conftest.err
1622 if test -s conftest.err; then
1623 grep -v '^ *+' conftest.err >conftest.er1
1624 cat conftest.er1 >&5
1625 mv -f conftest.er1 conftest.err
1627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1628 test $ac_status = 0; } && {
1629 test -z "$ac_c_werror_flag" ||
1630 test ! -s conftest.err
1631 } && test -s conftest$ac_exeext && {
1632 test "$cross_compiling" = yes ||
1633 test -x conftest$ac_exeext
1637 $as_echo "$as_me: failed program was:" >&5
1638 sed 's/^/| /' conftest.$ac_ext >&5
1642 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1643 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1644 # interfere with the next link command; also delete a directory that is
1645 # left behind by Apple's compiler. We do this before executing the actions.
1646 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648 as_fn_set_status $ac_retval
1650 } # ac_fn_c_try_link
1652 # ac_fn_c_try_run LINENO
1653 # ----------------------
1654 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1655 # that executables *can* be run.
1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659 if { { ac_try="$ac_link"
1661 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
1662 *) ac_try_echo
=$ac_try;;
1664 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665 $as_echo "$ac_try_echo"; } >&5
1666 (eval "$ac_link") 2>&5
1668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1670 { { case "(($ac_try" in
1671 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
1672 *) ac_try_echo=$ac_try;;
1674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1675 $as_echo "$ac_try_echo"; } >&5
1676 (eval "$ac_try") 2>&5
1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; }; }; then :
1682 $as_echo "$as_me: program exited with status $ac_status" >&5
1683 $as_echo "$as_me: failed program was:" >&5
1684 sed 's/^/| /' conftest.$ac_ext >&5
1686 ac_retval=$ac_status
1688 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1689 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1690 as_fn_set_status $ac_retval
1694 # ac_fn_c_try_cpp LINENO
1695 # ----------------------
1696 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700 if { { ac_try="$ac_cpp conftest.$ac_ext"
1702 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
1703 *) ac_try_echo
=$ac_try;;
1705 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706 $as_echo "$ac_try_echo"; } >&5
1707 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1709 if test -s conftest.err
; then
1710 grep -v '^ *+' conftest.err
>conftest.er1
1711 cat conftest.er1
>&5
1712 mv -f conftest.er1 conftest.err
1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715 test $ac_status = 0; } > conftest.i
&& {
1716 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1717 test ! -s conftest.err
1721 $as_echo "$as_me: failed program was:" >&5
1722 sed 's/^/| /' conftest.
$ac_ext >&5
1726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727 as_fn_set_status
$ac_retval
1731 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1732 # -------------------------------------------------------
1733 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1734 # the include files in INCLUDES and setting the cache variable VAR
1736 ac_fn_c_check_header_mongrel
()
1738 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1739 if eval \
${$3+:} false
; then :
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1741 $as_echo_n "checking for $2... " >&6; }
1742 if eval \
${$3+:} false
; then :
1743 $as_echo_n "(cached) " >&6
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1747 $as_echo "$ac_res" >&6; }
1749 # Is the header compilable?
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1751 $as_echo_n "checking $2 usability... " >&6; }
1752 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1753 /* end confdefs.h. */
1757 if ac_fn_c_try_compile
"$LINENO"; then :
1758 ac_header_compiler
=yes
1760 ac_header_compiler
=no
1762 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1764 $as_echo "$ac_header_compiler" >&6; }
1766 # Is the header present?
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1768 $as_echo_n "checking $2 presence... " >&6; }
1769 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1770 /* end confdefs.h. */
1773 if ac_fn_c_try_cpp
"$LINENO"; then :
1774 ac_header_preproc
=yes
1776 ac_header_preproc
=no
1778 rm -f conftest.err conftest.i conftest.
$ac_ext
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1780 $as_echo "$ac_header_preproc" >&6; }
1782 # So? What about this header?
1783 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1786 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1788 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1792 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1794 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1796 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1798 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1800 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1801 ( $as_echo "## ------------------------------------------ ##
1802 ## Report this to http://bugs.unrealircd.org/ ##
1803 ## ------------------------------------------ ##"
1804 ) | sed "s/^/$as_me: WARNING: /" >&2
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1808 $as_echo_n "checking for $2... " >&6; }
1809 if eval \
${$3+:} false
; then :
1810 $as_echo_n "(cached) " >&6
1812 eval "$3=\$ac_header_compiler"
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1816 $as_echo "$ac_res" >&6; }
1818 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1820 } # ac_fn_c_check_header_mongrel
1822 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1823 # -------------------------------------------------------
1824 # Tests whether HEADER exists and can be compiled using the include files in
1825 # INCLUDES, setting the cache variable VAR accordingly.
1826 ac_fn_c_check_header_compile
()
1828 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1830 $as_echo_n "checking for $2... " >&6; }
1831 if eval \
${$3+:} false
; then :
1832 $as_echo_n "(cached) " >&6
1834 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1835 /* end confdefs.h. */
1839 if ac_fn_c_try_compile
"$LINENO"; then :
1844 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1848 $as_echo "$ac_res" >&6; }
1849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1851 } # ac_fn_c_check_header_compile
1853 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1854 # -------------------------------------------
1855 # Tests whether TYPE exists after having included INCLUDES, setting cache
1856 # variable VAR accordingly.
1857 ac_fn_c_check_type
()
1859 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1861 $as_echo_n "checking for $2... " >&6; }
1862 if eval \
${$3+:} false
; then :
1863 $as_echo_n "(cached) " >&6
1866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1867 /* end confdefs.h. */
1878 if ac_fn_c_try_compile
"$LINENO"; then :
1879 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1880 /* end confdefs.h. */
1891 if ac_fn_c_try_compile
"$LINENO"; then :
1896 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1898 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902 $as_echo "$ac_res" >&6; }
1903 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1905 } # ac_fn_c_check_type
1907 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1908 # --------------------------------------------
1909 # Tries to find the compile-time value of EXPR in a program that includes
1910 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1912 ac_fn_c_compute_int
()
1914 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1915 if test "$cross_compiling" = yes; then
1916 # Depending upon the size, compute the lo and hi bounds.
1917 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1918 /* end confdefs.h. */
1923 static int test_array [1 - 2 * !(($2) >= 0)];
1925 return test_array [0];
1931 if ac_fn_c_try_compile
"$LINENO"; then :
1934 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1935 /* end confdefs.h. */
1940 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1942 return test_array [0];
1948 if ac_fn_c_try_compile
"$LINENO"; then :
1949 ac_hi
=$ac_mid; break
1951 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
1952 if test $ac_lo -le $ac_mid; then
1956 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
1958 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1961 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1962 /* end confdefs.h. */
1967 static int test_array [1 - 2 * !(($2) < 0)];
1969 return test_array [0];
1975 if ac_fn_c_try_compile
"$LINENO"; then :
1978 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1979 /* end confdefs.h. */
1984 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1986 return test_array [0];
1992 if ac_fn_c_try_compile
"$LINENO"; then :
1993 ac_lo
=$ac_mid; break
1995 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
1996 if test $ac_mid -le $ac_hi; then
2000 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2002 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2007 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2009 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2010 # Binary search between lo and hi bounds.
2011 while test "x$ac_lo" != "x$ac_hi"; do
2012 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2013 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2014 /* end confdefs.h. */
2019 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2021 return test_array [0];
2027 if ac_fn_c_try_compile
"$LINENO"; then :
2030 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2032 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2035 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2039 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2040 /* end confdefs.h. */
2042 static long int longval () { return $2; }
2043 static unsigned long int ulongval () { return $2; }
2050 FILE *f = fopen ("conftest.val", "w");
2055 long int i = longval ();
2058 fprintf (f, "%ld", i);
2062 unsigned long int i = ulongval ();
2065 fprintf (f, "%lu", i);
2067 /* Do not output a trailing newline, as this causes \r\n confusion
2068 on some platforms. */
2069 return ferror (f) || fclose (f) != 0;
2075 if ac_fn_c_try_run
"$LINENO"; then :
2076 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2080 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2081 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2085 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2086 as_fn_set_status
$ac_retval
2088 } # ac_fn_c_compute_int
2090 # ac_fn_c_check_func LINENO FUNC VAR
2091 # ----------------------------------
2092 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2093 ac_fn_c_check_func
()
2095 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2097 $as_echo_n "checking for $2... " >&6; }
2098 if eval \
${$3+:} false
; then :
2099 $as_echo_n "(cached) " >&6
2101 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h. */
2103 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2105 #define $2 innocuous_$2
2107 /* System header to define __stub macros and hopefully few prototypes,
2108 which can conflict with char $2 (); below.
2109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2110 <limits.h> exists even on freestanding compilers. */
2113 # include <limits.h>
2115 # include <assert.h>
2120 /* Override any GCC internal prototype to avoid an error.
2121 Use char because int might match the return type of a GCC
2122 builtin and then its argument prototype would still apply. */
2127 /* The GNU C library defines this for functions which it implements
2128 to always fail with ENOSYS. Some functions are actually named
2129 something starting with __ and the normal name is an alias. */
2130 #if defined __stub_$2 || defined __stub___$2
2142 if ac_fn_c_try_link
"$LINENO"; then :
2147 rm -f core conftest.err conftest.
$ac_objext \
2148 conftest
$ac_exeext conftest.
$ac_ext
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2152 $as_echo "$ac_res" >&6; }
2153 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2155 } # ac_fn_c_check_func
2156 cat >config.log
<<_ACEOF
2157 This file contains any messages produced by compilers while
2158 running configure, to aid debugging if configure makes a mistake.
2160 It was created by unrealircd $as_me 4.0.19-rc2, which was
2161 generated by GNU Autoconf 2.69. Invocation command line was
2173 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2174 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2175 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2176 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2177 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2179 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2180 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2182 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2183 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2184 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2185 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2186 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2187 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2188 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2192 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2196 test -z "$as_dir" && as_dir
=.
2197 $as_echo "PATH: $as_dir"
2213 # Keep a trace of the command line.
2214 # Strip out --no-create and --no-recursion so they do not pile up.
2215 # Strip out --silent because we don't want to record it for future runs.
2216 # Also quote any args containing shell meta-characters.
2217 # Make two passes to allow for proper duplicate-argument suppression.
2221 ac_must_keep_next
=false
2227 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2228 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2229 | -silent | --silent | --silen | --sile | --sil)
2232 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2235 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2237 as_fn_append ac_configure_args1
" '$ac_arg'"
2238 if test $ac_must_keep_next = true
; then
2239 ac_must_keep_next
=false
# Got value, back to normal.
2242 *=* | --config-cache | -C | -disable-* | --disable-* \
2243 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2244 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2245 | -with-* | --with-* | -without-* | --without-* | --x)
2246 case "$ac_configure_args0 " in
2247 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2250 -* ) ac_must_keep_next
=true
;;
2253 as_fn_append ac_configure_args
" '$ac_arg'"
2258 { ac_configure_args0
=; unset ac_configure_args0
;}
2259 { ac_configure_args1
=; unset ac_configure_args1
;}
2261 # When interrupted or exit'd, cleanup temporary files, and complete
2262 # config.log. We remove comments because anyway the quotes in there
2263 # would cause problems or look ugly.
2264 # WARNING: Use '\'' to represent an apostrophe within the trap.
2265 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2266 trap 'exit_status=$?
2267 # Save into config.log some information that might help in debugging.
2271 $as_echo "## ---------------- ##
2272 ## Cache variables. ##
2273 ## ---------------- ##"
2275 # The following way of writing the cache mishandles newlines in values,
2277 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2278 eval ac_val=\$$ac_var
2282 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2283 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2286 _ | IFS | as_nl) ;; #(
2287 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2288 *) { eval $ac_var=; unset $ac_var;} ;;
2293 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2294 *${as_nl}ac_space=\ *)
2296 "s/'\''/'\''\\\\'\'''\''/g;
2297 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2300 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2307 $as_echo "## ----------------- ##
2308 ## Output variables. ##
2309 ## ----------------- ##"
2311 for ac_var in $ac_subst_vars
2313 eval ac_val=\$$ac_var
2315 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2317 $as_echo "$ac_var='\''$ac_val'\''"
2321 if test -n "$ac_subst_files"; then
2322 $as_echo "## ------------------- ##
2323 ## File substitutions. ##
2324 ## ------------------- ##"
2326 for ac_var
in $ac_subst_files
2328 eval ac_val
=\$
$ac_var
2330 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2332 $as_echo "$ac_var='\''$ac_val'\''"
2337 if test -s confdefs.h; then
2338 $as_echo "## ----------- ##
2345 test "$ac_signal" != 0 &&
2346 $as_echo "$as_me: caught signal $ac_signal"
2347 $as_echo "$as_me: exit $exit_status"
2349 rm -f core *.core core.conftest.* &&
2350 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2353 for ac_signal
in 1 2 13 15; do
2354 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2358 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2359 rm -f -r conftest
* confdefs.h
2361 $as_echo "/* confdefs.h */" > confdefs.h
2363 # Predefined preprocessor variables.
2365 cat >>confdefs.h
<<_ACEOF
2366 #define PACKAGE_NAME "$PACKAGE_NAME"
2369 cat >>confdefs.h
<<_ACEOF
2370 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2373 cat >>confdefs.h
<<_ACEOF
2374 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2377 cat >>confdefs.h
<<_ACEOF
2378 #define PACKAGE_STRING "$PACKAGE_STRING"
2381 cat >>confdefs.h
<<_ACEOF
2382 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2385 cat >>confdefs.h
<<_ACEOF
2386 #define PACKAGE_URL "$PACKAGE_URL"
2390 # Let the site file select an alternate cache file if it wants to.
2391 # Prefer an explicitly selected file to automatically selected ones.
2394 if test -n "$CONFIG_SITE"; then
2395 # We do not want a PATH search for config.site.
2396 case $CONFIG_SITE in #((
2397 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2398 */*) ac_site_file1
=$CONFIG_SITE;;
2399 *) ac_site_file1
=.
/$CONFIG_SITE;;
2401 elif test "x$prefix" != xNONE
; then
2402 ac_site_file1
=$prefix/share
/config.site
2403 ac_site_file2
=$prefix/etc
/config.site
2405 ac_site_file1
=$ac_default_prefix/share
/config.site
2406 ac_site_file2
=$ac_default_prefix/etc
/config.site
2408 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2410 test "x$ac_site_file" = xNONE
&& continue
2411 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2413 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2414 sed 's/^/| /' "$ac_site_file" >&5
2416 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2417 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2418 as_fn_error $?
"failed to load site script $ac_site_file
2419 See \`config.log' for more details" "$LINENO" 5; }
2423 if test -r "$cache_file"; then
2424 # Some versions of bash will fail to source /dev/null (special files
2425 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2426 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2428 $as_echo "$as_me: loading cache $cache_file" >&6;}
2430 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2431 *) .
"./$cache_file";;
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2436 $as_echo "$as_me: creating cache $cache_file" >&6;}
2440 # Check that the precious variables saved in the cache have kept the same
2442 ac_cache_corrupted
=false
2443 for ac_var
in $ac_precious_vars; do
2444 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2445 eval ac_new_set
=\
$ac_env_${ac_var}_set
2446 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2447 eval ac_new_val
=\
$ac_env_${ac_var}_value
2448 case $ac_old_set,$ac_new_set in
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2451 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2452 ac_cache_corrupted
=: ;;
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2455 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2456 ac_cache_corrupted
=: ;;
2459 if test "x$ac_old_val" != "x$ac_new_val"; then
2460 # differences in whitespace do not lead to failure.
2461 ac_old_val_w
=`echo x $ac_old_val`
2462 ac_new_val_w
=`echo x $ac_new_val`
2463 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2465 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2466 ac_cache_corrupted
=:
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2469 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2470 eval $ac_var=\
$ac_old_val
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2473 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2475 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2478 # Pass precious variables to config.status.
2479 if test "$ac_new_set" = set; then
2481 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2482 *) ac_arg
=$ac_var=$ac_new_val ;;
2484 case " $ac_configure_args " in
2485 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2486 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2490 if $ac_cache_corrupted; then
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2492 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2494 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2495 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2497 ## -------------------- ##
2498 ## Main body of script. ##
2499 ## -------------------- ##
2502 ac_cpp
='$CPP $CPPFLAGS'
2503 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2504 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2505 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2509 ac_config_headers
="$ac_config_headers include/setup.h"
2512 for ac_dir
in autoconf
"$srcdir"/autoconf
; do
2513 if test -f "$ac_dir/install-sh"; then
2515 ac_install_sh
="$ac_aux_dir/install-sh -c"
2517 elif test -f "$ac_dir/install.sh"; then
2519 ac_install_sh
="$ac_aux_dir/install.sh -c"
2521 elif test -f "$ac_dir/shtool"; then
2523 ac_install_sh
="$ac_aux_dir/shtool install -c"
2527 if test -z "$ac_aux_dir"; then
2528 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
2531 # These three variables are undocumented and unsupported,
2532 # and are intended to be withdrawn in a future Autoconf release.
2533 # They can cause serious problems if a builder's source tree is in a directory
2534 # whose full name contains unusual characters.
2535 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2536 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2537 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2542 if test "x$enable_dynamic_linking" = "x"; then
2543 echo "Please use ./Config instead of ./configure"
2547 orig_cflags
="$CFLAGS"
2552 # Generation version number (e.g.: X in X.Y.Z)
2553 UNREAL_VERSION_GENERATION
="4"
2555 cat >>confdefs.h
<<_ACEOF
2556 #define UNREAL_VERSION_GENERATION $UNREAL_VERSION_GENERATION
2560 # Major version number (e.g.: Y in X.Y.Z)
2561 UNREAL_VERSION_MAJOR
="0"
2563 cat >>confdefs.h
<<_ACEOF
2564 #define UNREAL_VERSION_MAJOR $UNREAL_VERSION_MAJOR
2568 # Minor version number (e.g.: Z in X.Y.Z)
2569 UNREAL_VERSION_MINOR
="19"
2571 cat >>confdefs.h
<<_ACEOF
2572 #define UNREAL_VERSION_MINOR $UNREAL_VERSION_MINOR
2576 # The version suffix such as a beta marker or release candidate
2577 # marker. (e.g.: -rcX for unrealircd-3.2.9-rcX). This macro is a
2578 # string instead of an integer because it contains arbitrary data.
2579 UNREAL_VERSION_SUFFIX
="-rc2"
2581 cat >>confdefs.h
<<_ACEOF
2582 #define UNREAL_VERSION_SUFFIX "$UNREAL_VERSION_SUFFIX"
2587 ac_cpp
='$CPP $CPPFLAGS'
2588 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2589 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2590 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2591 if test -n "$ac_tool_prefix"; then
2592 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2593 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2595 $as_echo_n "checking for $ac_word... " >&6; }
2596 if ${ac_cv_prog_CC+:} false
; then :
2597 $as_echo_n "(cached) " >&6
2599 if test -n "$CC"; then
2600 ac_cv_prog_CC
="$CC" # Let the user override the test.
2602 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2606 test -z "$as_dir" && as_dir
=.
2607 for ac_exec_ext
in '' $ac_executable_extensions; do
2608 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2609 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2620 if test -n "$CC"; then
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2622 $as_echo "$CC" >&6; }
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2625 $as_echo "no" >&6; }
2630 if test -z "$ac_cv_prog_CC"; then
2632 # Extract the first word of "gcc", so it can be a program name with args.
2633 set dummy gcc
; ac_word
=$2
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2635 $as_echo_n "checking for $ac_word... " >&6; }
2636 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2637 $as_echo_n "(cached) " >&6
2639 if test -n "$ac_ct_CC"; then
2640 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2642 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2646 test -z "$as_dir" && as_dir
=.
2647 for ac_exec_ext
in '' $ac_executable_extensions; do
2648 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2649 ac_cv_prog_ac_ct_CC
="gcc"
2650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2659 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2660 if test -n "$ac_ct_CC"; then
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2662 $as_echo "$ac_ct_CC" >&6; }
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2665 $as_echo "no" >&6; }
2668 if test "x$ac_ct_CC" = x
; then
2671 case $cross_compiling:$ac_tool_warned in
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2674 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2675 ac_tool_warned
=yes ;;
2683 if test -z "$CC"; then
2684 if test -n "$ac_tool_prefix"; then
2685 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2686 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2688 $as_echo_n "checking for $ac_word... " >&6; }
2689 if ${ac_cv_prog_CC+:} false
; then :
2690 $as_echo_n "(cached) " >&6
2692 if test -n "$CC"; then
2693 ac_cv_prog_CC
="$CC" # Let the user override the test.
2695 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2699 test -z "$as_dir" && as_dir
=.
2700 for ac_exec_ext
in '' $ac_executable_extensions; do
2701 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2702 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2713 if test -n "$CC"; then
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2715 $as_echo "$CC" >&6; }
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2718 $as_echo "no" >&6; }
2724 if test -z "$CC"; then
2725 # Extract the first word of "cc", so it can be a program name with args.
2726 set dummy cc
; ac_word
=$2
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2728 $as_echo_n "checking for $ac_word... " >&6; }
2729 if ${ac_cv_prog_CC+:} false
; then :
2730 $as_echo_n "(cached) " >&6
2732 if test -n "$CC"; then
2733 ac_cv_prog_CC
="$CC" # Let the user override the test.
2736 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2740 test -z "$as_dir" && as_dir
=.
2741 for ac_exec_ext
in '' $ac_executable_extensions; do
2742 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2743 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2744 ac_prog_rejected
=yes
2748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2755 if test $ac_prog_rejected = yes; then
2756 # We found a bogon in the path, so make sure we never use it.
2757 set dummy
$ac_cv_prog_CC
2759 if test $# != 0; then
2760 # We chose a different compiler from the bogus one.
2761 # However, it has the same basename, so the bogon will be chosen
2762 # first if we set CC to just the basename; use the full file name.
2764 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2770 if test -n "$CC"; then
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2772 $as_echo "$CC" >&6; }
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2775 $as_echo "no" >&6; }
2780 if test -z "$CC"; then
2781 if test -n "$ac_tool_prefix"; then
2782 for ac_prog
in cl.exe
2784 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2785 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2787 $as_echo_n "checking for $ac_word... " >&6; }
2788 if ${ac_cv_prog_CC+:} false
; then :
2789 $as_echo_n "(cached) " >&6
2791 if test -n "$CC"; then
2792 ac_cv_prog_CC
="$CC" # Let the user override the test.
2794 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2798 test -z "$as_dir" && as_dir
=.
2799 for ac_exec_ext
in '' $ac_executable_extensions; do
2800 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2801 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2812 if test -n "$CC"; then
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2814 $as_echo "$CC" >&6; }
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2817 $as_echo "no" >&6; }
2821 test -n "$CC" && break
2824 if test -z "$CC"; then
2826 for ac_prog
in cl.exe
2828 # Extract the first word of "$ac_prog", so it can be a program name with args.
2829 set dummy
$ac_prog; ac_word
=$2
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2831 $as_echo_n "checking for $ac_word... " >&6; }
2832 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2833 $as_echo_n "(cached) " >&6
2835 if test -n "$ac_ct_CC"; then
2836 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2838 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2842 test -z "$as_dir" && as_dir
=.
2843 for ac_exec_ext
in '' $ac_executable_extensions; do
2844 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2845 ac_cv_prog_ac_ct_CC
="$ac_prog"
2846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2855 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2856 if test -n "$ac_ct_CC"; then
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2858 $as_echo "$ac_ct_CC" >&6; }
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2861 $as_echo "no" >&6; }
2865 test -n "$ac_ct_CC" && break
2868 if test "x$ac_ct_CC" = x
; then
2871 case $cross_compiling:$ac_tool_warned in
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2874 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2875 ac_tool_warned
=yes ;;
2884 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2885 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2886 as_fn_error $?
"no acceptable C compiler found in \$PATH
2887 See \`config.log' for more details" "$LINENO" 5; }
2889 # Provide some information about the compiler.
2890 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2893 for ac_option
in --version -v -V -qversion; do
2894 { { ac_try
="$ac_compiler $ac_option >&5"
2896 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
2897 *) ac_try_echo=$ac_try;;
2899 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2900 $as_echo "$ac_try_echo"; } >&5
2901 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2903 if test -s conftest.err; then
2905 ... rest of stderr output deleted ...
2906 10q' conftest.err >conftest.er1
2907 cat conftest.er1 >&5
2909 rm -f conftest.er1 conftest.err
2910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2911 test $ac_status = 0; }
2914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2915 /* end confdefs.h. */
2925 ac_clean_files_save=$ac_clean_files
2926 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2927 # Try to create an executable without -o first, disregard a.out.
2928 # It will help us diagnose broken compilers, and finding out an intuition
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2931 $as_echo_n "checking whether the C compiler works... " >&6; }
2932 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2934 # The possible output files:
2935 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2938 for ac_file in $ac_files
2941 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2942 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2947 if { { ac_try="$ac_link_default"
2949 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
2950 *) ac_try_echo
=$ac_try;;
2952 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2953 $as_echo "$ac_try_echo"; } >&5
2954 (eval "$ac_link_default") 2>&5
2956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2957 test $ac_status = 0; }; then :
2958 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2959 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2960 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2961 # so that the user can short-circuit this test for compilers unknown to
2963 for ac_file
in $ac_files ''
2965 test -f "$ac_file" || continue
2967 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.map
| *.inf
| *.dSYM
| *.o
| *.obj
)
2970 # We found the default executable, but exeext='' is most
2974 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2976 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2978 # We set ac_cv_exeext here because the later test for it is not
2979 # safe: cross compilers may not add the suffix if given an `-o'
2980 # argument, so we may need to know it at that point already.
2981 # Even if this section looks crufty: it has the advantage of
2988 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2993 if test -z "$ac_file"; then :
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2995 $as_echo "no" >&6; }
2996 $as_echo "$as_me: failed program was:" >&5
2997 sed 's/^/| /' conftest.
$ac_ext >&5
2999 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3000 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3001 as_fn_error
77 "C compiler cannot create executables
3002 See \`config.log' for more details" "$LINENO" 5; }
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3005 $as_echo "yes" >&6; }
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3008 $as_echo_n "checking for C compiler default output file name... " >&6; }
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3010 $as_echo "$ac_file" >&6; }
3011 ac_exeext
=$ac_cv_exeext
3013 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3014 ac_clean_files
=$ac_clean_files_save
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3016 $as_echo_n "checking for suffix of executables... " >&6; }
3017 if { { ac_try
="$ac_link"
3019 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
3020 *) ac_try_echo=$ac_try;;
3022 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3023 $as_echo "$ac_try_echo"; } >&5
3024 (eval "$ac_link") 2>&5
3026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3027 test $ac_status = 0; }; then :
3028 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3029 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3030 # work properly (i.e., refer to `conftest.exe'), while it won't with
3032 for ac_file
in conftest.exe conftest conftest.
*; do
3033 test -f "$ac_file" || continue
3035 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.map
| *.inf
| *.dSYM
| *.o
| *.obj
) ;;
3036 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3042 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3043 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3044 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3045 See \`config.log' for more details" "$LINENO" 5; }
3047 rm -f conftest conftest
$ac_cv_exeext
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3049 $as_echo "$ac_cv_exeext" >&6; }
3051 rm -f conftest.
$ac_ext
3052 EXEEXT
=$ac_cv_exeext
3054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3055 /* end confdefs.h. */
3060 FILE *f = fopen ("conftest.out", "w");
3061 return ferror (f) || fclose (f) != 0;
3067 ac_clean_files
="$ac_clean_files conftest.out"
3068 # Check that the compiler produces executables we can run. If not, either
3069 # the compiler is broken, or we cross compile.
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3071 $as_echo_n "checking whether we are cross compiling... " >&6; }
3072 if test "$cross_compiling" != yes; then
3073 { { ac_try
="$ac_link"
3075 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
3076 *) ac_try_echo=$ac_try;;
3078 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3079 $as_echo "$ac_try_echo"; } >&5
3080 (eval "$ac_link") 2>&5
3082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3083 test $ac_status = 0; }
3084 if { ac_try='./conftest$ac_cv_exeext'
3085 { { case "(($ac_try" in
3086 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
3087 *) ac_try_echo
=$ac_try;;
3089 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3090 $as_echo "$ac_try_echo"; } >&5
3091 (eval "$ac_try") 2>&5
3093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3094 test $ac_status = 0; }; }; then
3097 if test "$cross_compiling" = maybe
; then
3100 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3101 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3102 as_fn_error $?
"cannot run C compiled programs.
3103 If you meant to cross compile, use \`--host'.
3104 See \`config.log' for more details" "$LINENO" 5; }
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3109 $as_echo "$cross_compiling" >&6; }
3111 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3112 ac_clean_files
=$ac_clean_files_save
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3114 $as_echo_n "checking for suffix of object files... " >&6; }
3115 if ${ac_cv_objext+:} false
; then :
3116 $as_echo_n "(cached) " >&6
3118 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3119 /* end confdefs.h. */
3129 rm -f conftest.o conftest.obj
3130 if { { ac_try
="$ac_compile"
3132 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3135 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3136 $as_echo "$ac_try_echo"; } >&5
3137 (eval "$ac_compile") 2>&5
3139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3140 test $ac_status = 0; }; then :
3141 for ac_file in conftest.o conftest.obj conftest.*; do
3142 test -f "$ac_file" || continue;
3144 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3145 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3150 $as_echo "$as_me: failed program was:" >&5
3151 sed 's/^/| /' conftest.$ac_ext >&5
3153 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3154 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3155 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3156 See \
`config.log' for more details" "$LINENO" 5; }
3158 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3161 $as_echo "$ac_cv_objext" >&6; }
3162 OBJEXT=$ac_cv_objext
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3165 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3166 if ${ac_cv_c_compiler_gnu+:} false; then :
3167 $as_echo_n "(cached) " >&6
3169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3170 /* end confdefs.h. */
3183 if ac_fn_c_try_compile "$LINENO"; then :
3188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3189 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3193 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3194 if test $ac_compiler_gnu = yes; then
3199 ac_test_CFLAGS=${CFLAGS+set}
3200 ac_save_CFLAGS=$CFLAGS
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3202 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3203 if ${ac_cv_prog_cc_g+:} false; then :
3204 $as_echo_n "(cached) " >&6
3206 ac_save_c_werror_flag=$ac_c_werror_flag
3207 ac_c_werror_flag=yes
3210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3211 /* end confdefs.h. */
3221 if ac_fn_c_try_compile "$LINENO"; then :
3225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3226 /* end confdefs.h. */
3236 if ac_fn_c_try_compile "$LINENO"; then :
3239 ac_c_werror_flag=$ac_save_c_werror_flag
3241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3242 /* end confdefs.h. */
3252 if ac_fn_c_try_compile "$LINENO"; then :
3255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3260 ac_c_werror_flag=$ac_save_c_werror_flag
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3263 $as_echo "$ac_cv_prog_cc_g" >&6; }
3264 if test "$ac_test_CFLAGS" = set; then
3265 CFLAGS=$ac_save_CFLAGS
3266 elif test $ac_cv_prog_cc_g = yes; then
3267 if test "$GCC" = yes; then
3273 if test "$GCC" = yes; then
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3280 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3281 if ${ac_cv_prog_cc_c89+:} false; then :
3282 $as_echo_n "(cached) " >&6
3284 ac_cv_prog_cc_c89=no
3286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3287 /* end confdefs.h. */
3291 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3292 struct buf { int x; };
3293 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3294 static char *e (p, i)
3300 static char *f (char * (*g) (char **, int), char **p, ...)
3305 s = g (p, va_arg (v,int));
3310 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3311 function prototypes and stuff, but not '\xHH' hex character constants.
3312 These don't provoke an error unfortunately, instead are silently treated
3313 as 'x'. The following induces an error, until -std is added to get
3314 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3315 array size at least. It's necessary to write '\x00'==0 to get something
3316 that's true only with -std. */
3317 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3319 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3320 inside strings and character constants. */
3322 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3324 int test (int i, double x);
3325 struct s1 {int (*f) (int a);};
3326 struct s2 {int (*f) (double a);};
3327 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3333 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3338 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3339 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3341 CC="$ac_save_CC $ac_arg"
3342 if ac_fn_c_try_compile "$LINENO"; then :
3343 ac_cv_prog_cc_c89=$ac_arg
3345 rm -f core conftest.err conftest.$ac_objext
3346 test "x$ac_cv_prog_cc_c89" != "xno" && break
3348 rm -f conftest.$ac_ext
3353 case "x$ac_cv_prog_cc_c89" in
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3356 $as_echo "none needed" >&6; } ;;
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3359 $as_echo "unsupported" >&6; } ;;
3361 CC="$CC $ac_cv_prog_cc_c89"
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3363 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3365 if test "x$ac_cv_prog_cc_c89" != xno; then :
3370 ac_cpp='$CPP $CPPFLAGS'
3371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3375 if test "$ac_cv_c_compiler_gnu" = "yes"; then
3376 CFLAGS="$CFLAGS -funsigned-char"
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc has a working -pipe" >&5
3379 $as_echo_n "checking if gcc has a working -pipe... " >&6; }
3380 if ${ac_cv_pipe+:} false; then :
3381 $as_echo_n "(cached) " >&6
3384 save_cflags="$CFLAGS"
3385 CFLAGS="$CFLAGS -pipe"
3386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3387 /* end confdefs.h. */
3397 if ac_fn_c_try_compile "$LINENO"; then :
3402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3403 CFLAGS="$save_cflags"
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pipe" >&5
3407 $as_echo "$ac_cv_pipe" >&6; }
3408 if test "$ac_cv_pipe" = "yes"; then
3409 CFLAGS="-pipe $CFLAGS"
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler has a working -fno-strict-aliasing" >&5
3414 $as_echo_n "checking if the compiler has a working -fno-strict-aliasing... " >&6; }
3415 if ${ac_cv_nsa+:} false; then :
3416 $as_echo_n "(cached) " >&6
3419 save_cflags="$CFLAGS"
3420 CFLAGS="$CFLAGS -fno-strict-aliasing"
3421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3422 /* end confdefs.h. */
3432 if ac_fn_c_try_compile "$LINENO"; then :
3437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3438 CFLAGS="$save_cflags"
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_nsa" >&5
3442 $as_echo "$ac_cv_nsa" >&6; }
3443 if test "$ac_cv_nsa" = "yes"; then
3444 CFLAGS="$CFLAGS -fno-strict-aliasing"
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler has a working -Wno-pointer-sign" >&5
3448 $as_echo_n "checking if the compiler has a working -Wno-pointer-sign... " >&6; }
3449 if ${ac_cv_nps+:} false; then :
3450 $as_echo_n "(cached) " >&6
3453 save_cflags="$CFLAGS"
3454 CFLAGS="$CFLAGS -Wno-pointer-sign"
3455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3456 /* end confdefs.h. */
3466 if ac_fn_c_try_compile "$LINENO"; then :
3471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3472 CFLAGS="$save_cflags"
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_nps" >&5
3476 $as_echo "$ac_cv_nps" >&6; }
3477 if test "$ac_cv_nps" = "yes"; then
3478 CFLAGS="$CFLAGS -Wno-pointer-sign"
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler has a working -Wno-invalid-source-encoding" >&5
3482 $as_echo_n "checking if the compiler has a working -Wno-invalid-source-encoding... " >&6; }
3483 if ${ac_cv_nise+:} false; then :
3484 $as_echo_n "(cached) " >&6
3487 save_cflags="$CFLAGS"
3488 CFLAGS="$CFLAGS -Wno-invalid-source-encoding"
3489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3490 /* end confdefs.h. */
3500 if ac_fn_c_try_compile "$LINENO"; then :
3505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3506 CFLAGS="$save_cflags"
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_nise" >&5
3510 $as_echo "$ac_cv_nise" >&6; }
3511 if test "$ac_cv_nise" = "yes"; then
3512 CFLAGS="$CFLAGS -Wno-invalid-source-encoding"
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler has a working -Wno-format-zero-length" >&5
3516 $as_echo_n "checking if the compiler has a working -Wno-format-zero-length... " >&6; }
3517 if ${ac_cv_nfzl+:} false; then :
3518 $as_echo_n "(cached) " >&6
3521 save_cflags="$CFLAGS"
3522 CFLAGS="$CFLAGS -Wno-format-zero-length"
3523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3524 /* end confdefs.h. */
3534 if ac_fn_c_try_compile "$LINENO"; then :
3539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3540 CFLAGS="$save_cflags"
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_nfzl" >&5
3544 $as_echo "$ac_cv_nfzl" >&6; }
3545 if test "$ac_cv_nfzl" = "yes"; then
3546 CFLAGS="$CFLAGS -Wno-format-zero-length"
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler has a working -Wno-format-truncation" >&5
3550 $as_echo_n "checking if the compiler has a working -Wno-format-truncation... " >&6; }
3551 if ${ac_cv_nft+:} false; then :
3552 $as_echo_n "(cached) " >&6
3555 save_cflags="$CFLAGS"
3556 CFLAGS="$CFLAGS -Wno-format-truncation -Werror"
3557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3558 /* end confdefs.h. */
3568 if ac_fn_c_try_compile "$LINENO"; then :
3573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3574 CFLAGS="$save_cflags"
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_nft" >&5
3578 $as_echo "$ac_cv_nft" >&6; }
3579 if test "$ac_cv_nft" = "yes"; then
3580 CFLAGS="$CFLAGS -Wno-format-truncation"
3583 # Extract the first word of "rm", so it can be a program name with args.
3584 set dummy rm; ac_word=$2
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3586 $as_echo_n "checking for $ac_word... " >&6; }
3587 if ${ac_cv_path_RM+:} false; then :
3588 $as_echo_n "(cached) " >&6
3592 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3599 test -z "$as_dir" && as_dir=.
3600 for ac_exec_ext in '' $ac_executable_extensions; do
3601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3602 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3614 if test -n "$RM"; then
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
3616 $as_echo "$RM" >&6; }
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3619 $as_echo "no" >&6; }
3623 # Extract the first word of "cp", so it can be a program name with args.
3624 set dummy cp; ac_word=$2
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3626 $as_echo_n "checking for $ac_word... " >&6; }
3627 if ${ac_cv_path_CP+:} false; then :
3628 $as_echo_n "(cached) " >&6
3632 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3639 test -z "$as_dir" && as_dir=.
3640 for ac_exec_ext in '' $ac_executable_extensions; do
3641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3642 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3654 if test -n "$CP"; then
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
3656 $as_echo "$CP" >&6; }
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3659 $as_echo "no" >&6; }
3663 # Extract the first word of "touch", so it can be a program name with args.
3664 set dummy touch; ac_word=$2
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3666 $as_echo_n "checking for $ac_word... " >&6; }
3667 if ${ac_cv_path_TOUCH+:} false; then :
3668 $as_echo_n "(cached) " >&6
3672 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
3675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3679 test -z "$as_dir" && as_dir=.
3680 for ac_exec_ext in '' $ac_executable_extensions; do
3681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3682 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
3683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3693 TOUCH=$ac_cv_path_TOUCH
3694 if test -n "$TOUCH"; then
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
3696 $as_echo "$TOUCH" >&6; }
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3699 $as_echo "no" >&6; }
3703 # Extract the first word of "openssl", so it can be a program name with args.
3704 set dummy openssl; ac_word=$2
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3706 $as_echo_n "checking for $ac_word... " >&6; }
3707 if ${ac_cv_path_OPENSSLPATH+:} false; then :
3708 $as_echo_n "(cached) " >&6
3710 case $OPENSSLPATH in
3712 ac_cv_path_OPENSSLPATH="$OPENSSLPATH" # Let the user override the test with a path.
3715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3719 test -z "$as_dir" && as_dir=.
3720 for ac_exec_ext in '' $ac_executable_extensions; do
3721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3722 ac_cv_path_OPENSSLPATH="$as_dir/$ac_word$ac_exec_ext"
3723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3733 OPENSSLPATH=$ac_cv_path_OPENSSLPATH
3734 if test -n "$OPENSSLPATH"; then
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSLPATH" >&5
3736 $as_echo "$OPENSSLPATH" >&6; }
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3739 $as_echo "no" >&6; }
3743 # Extract the first word of "install", so it can be a program name with args.
3744 set dummy install; ac_word=$2
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3746 $as_echo_n "checking for $ac_word... " >&6; }
3747 if ${ac_cv_path_INSTALL+:} false; then :
3748 $as_echo_n "(cached) " >&6
3752 ac_cv_path_INSTALL="$INSTALL" # Let the user override the test with a path.
3755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3759 test -z "$as_dir" && as_dir=.
3760 for ac_exec_ext in '' $ac_executable_extensions; do
3761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3762 ac_cv_path_INSTALL="$as_dir/$ac_word$ac_exec_ext"
3763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3773 INSTALL=$ac_cv_path_INSTALL
3774 if test -n "$INSTALL"; then
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3776 $as_echo "$INSTALL" >&6; }
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3779 $as_echo "no" >&6; }
3783 # Extract the first word of "gmake", so it can be a program name with args.
3784 set dummy gmake; ac_word=$2
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3786 $as_echo_n "checking for $ac_word... " >&6; }
3787 if ${ac_cv_prog_MAKER+:} false; then :
3788 $as_echo_n "(cached) " >&6
3790 if test -n "$MAKER"; then
3791 ac_cv_prog_MAKER="$MAKER" # Let the user override the test.
3793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3797 test -z "$as_dir" && as_dir=.
3798 for ac_exec_ext in '' $ac_executable_extensions; do
3799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3800 ac_cv_prog_MAKER="gmake"
3801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3808 test -z "$ac_cv_prog_MAKER" && ac_cv_prog_MAKER="make"
3811 MAKER=$ac_cv_prog_MAKER
3812 if test -n "$MAKER"; then
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKER" >&5
3814 $as_echo "$MAKER" >&6; }
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3817 $as_echo "no" >&6; }
3821 # Extract the first word of "gmake", so it can be a program name with args.
3822 set dummy gmake; ac_word=$2
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3824 $as_echo_n "checking for $ac_word... " >&6; }
3825 if ${ac_cv_path_GMAKE+:} false; then :
3826 $as_echo_n "(cached) " >&6
3830 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
3833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3837 test -z "$as_dir" && as_dir=.
3838 for ac_exec_ext in '' $ac_executable_extensions; do
3839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3840 ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
3841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3851 GMAKE=$ac_cv_path_GMAKE
3852 if test -n "$GMAKE"; then
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
3854 $as_echo "$GMAKE" >&6; }
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3857 $as_echo "no" >&6; }
3861 # Extract the first word of "gunzip", so it can be a program name with args.
3862 set dummy gunzip; ac_word=$2
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3864 $as_echo_n "checking for $ac_word... " >&6; }
3865 if ${ac_cv_path_GUNZIP+:} false; then :
3866 $as_echo_n "(cached) " >&6
3870 ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path.
3873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3877 test -z "$as_dir" && as_dir=.
3878 for ac_exec_ext in '' $ac_executable_extensions; do
3879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3880 ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext"
3881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3891 GUNZIP=$ac_cv_path_GUNZIP
3892 if test -n "$GUNZIP"; then
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5
3894 $as_echo "$GUNZIP" >&6; }
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3897 $as_echo "no" >&6; }
3901 # Extract the first word of "pkg-config", so it can be a program name with args.
3902 set dummy pkg-config; ac_word=$2
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3904 $as_echo_n "checking for $ac_word... " >&6; }
3905 if ${ac_cv_path_PKGCONFIG+:} false; then :
3906 $as_echo_n "(cached) " >&6
3910 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3917 test -z "$as_dir" && as_dir=.
3918 for ac_exec_ext in '' $ac_executable_extensions; do
3919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3920 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3931 PKGCONFIG=$ac_cv_path_PKGCONFIG
3932 if test -n "$PKGCONFIG"; then
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
3934 $as_echo "$PKGCONFIG" >&6; }
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3937 $as_echo "no" >&6; }
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -ldescrypt" >&5
3943 $as_echo_n "checking for crypt in -ldescrypt... " >&6; }
3944 if ${ac_cv_lib_descrypt_crypt+:} false; then :
3945 $as_echo_n "(cached) " >&6
3947 ac_check_lib_save_LIBS=$LIBS
3948 LIBS="-ldescrypt $LIBS"
3949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3950 /* end confdefs.h. */
3952 /* Override any GCC internal prototype to avoid an error.
3953 Use char because int might match the return type of a GCC
3954 builtin and then its argument prototype would still apply. */
3967 if ac_fn_c_try_link "$LINENO"; then :
3968 ac_cv_lib_descrypt_crypt=yes
3970 ac_cv_lib_descrypt_crypt=no
3972 rm -f core conftest.err conftest.$ac_objext \
3973 conftest$ac_exeext conftest.$ac_ext
3974 LIBS=$ac_check_lib_save_LIBS
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_descrypt_crypt" >&5
3977 $as_echo "$ac_cv_lib_descrypt_crypt" >&6; }
3978 if test "x$ac_cv_lib_descrypt_crypt" = xyes; then :
3980 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
3982 IRCDLIBS="$IRCDLIBS-ldescrypt "
3983 MKPASSWDLIBS="-ldescrypt"
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
3986 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
3987 if ${ac_cv_lib_crypt_crypt+:} false; then :
3988 $as_echo_n "(cached) " >&6
3990 ac_check_lib_save_LIBS=$LIBS
3991 LIBS="-lcrypt $LIBS"
3992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3993 /* end confdefs.h. */
3995 /* Override any GCC internal prototype to avoid an error.
3996 Use char because int might match the return type of a GCC
3997 builtin and then its argument prototype would still apply. */
4010 if ac_fn_c_try_link "$LINENO"; then :
4011 ac_cv_lib_crypt_crypt=yes
4013 ac_cv_lib_crypt_crypt=no
4015 rm -f core conftest.err conftest.$ac_objext \
4016 conftest$ac_exeext conftest.$ac_ext
4017 LIBS=$ac_check_lib_save_LIBS
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
4020 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
4021 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
4023 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
4025 IRCDLIBS="$IRCDLIBS-lcrypt "
4026 MKPASSWDLIBS="-lcrypt"
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
4032 $as_echo_n "checking for socket in -lsocket... " >&6; }
4033 if ${ac_cv_lib_socket_socket+:} false; then :
4034 $as_echo_n "(cached) " >&6
4036 ac_check_lib_save_LIBS=$LIBS
4037 LIBS="-lsocket $LIBS"
4038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4039 /* end confdefs.h. */
4041 /* Override any GCC internal prototype to avoid an error.
4042 Use char because int might match the return type of a GCC
4043 builtin and then its argument prototype would still apply. */
4056 if ac_fn_c_try_link "$LINENO"; then :
4057 ac_cv_lib_socket_socket=yes
4059 ac_cv_lib_socket_socket=no
4061 rm -f core conftest.err conftest.$ac_objext \
4062 conftest$ac_exeext conftest.$ac_ext
4063 LIBS=$ac_check_lib_save_LIBS
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
4066 $as_echo "$ac_cv_lib_socket_socket" >&6; }
4067 if test "x$ac_cv_lib_socket_socket" = xyes; then :
4068 IRCDLIBS="$IRCDLIBS-lsocket "
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
4073 $as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
4074 if ${ac_cv_lib_nsl_inet_ntoa+:} false; then :
4075 $as_echo_n "(cached) " >&6
4077 ac_check_lib_save_LIBS=$LIBS
4079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4080 /* end confdefs.h. */
4082 /* Override any GCC internal prototype to avoid an error.
4083 Use char because int might match the return type of a GCC
4084 builtin and then its argument prototype would still apply. */
4092 return inet_ntoa ();
4097 if ac_fn_c_try_link "$LINENO"; then :
4098 ac_cv_lib_nsl_inet_ntoa=yes
4100 ac_cv_lib_nsl_inet_ntoa=no
4102 rm -f core conftest.err conftest.$ac_objext \
4103 conftest$ac_exeext conftest.$ac_ext
4104 LIBS=$ac_check_lib_save_LIBS
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5
4107 $as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
4108 if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then :
4109 IRCDLIBS="$IRCDLIBS-lnsl "
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RAND_egd in -lcrypto" >&5
4114 $as_echo_n "checking for RAND_egd in -lcrypto... " >&6; }
4115 if ${ac_cv_lib_crypto_RAND_egd+:} false; then :
4116 $as_echo_n "(cached) " >&6
4118 ac_check_lib_save_LIBS=$LIBS
4119 LIBS="-lcrypto $LIBS"
4120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4121 /* end confdefs.h. */
4123 /* Override any GCC internal prototype to avoid an error.
4124 Use char because int might match the return type of a GCC
4125 builtin and then its argument prototype would still apply. */
4138 if ac_fn_c_try_link "$LINENO"; then :
4139 ac_cv_lib_crypto_RAND_egd=yes
4141 ac_cv_lib_crypto_RAND_egd=no
4143 rm -f core conftest.err conftest.$ac_objext \
4144 conftest$ac_exeext conftest.$ac_ext
4145 LIBS=$ac_check_lib_save_LIBS
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RAND_egd" >&5
4148 $as_echo "$ac_cv_lib_crypto_RAND_egd" >&6; }
4149 if test "x$ac_cv_lib_crypto_RAND_egd" = xyes; then :
4151 $as_echo "#define HAVE_RAND_EGD 1" >>confdefs.h
4159 # We want to check for compiler flag support, but there is no way to make
4160 # clang's "argument unused" warning fatal. So we invoke the compiler through a
4161 # wrapper script that greps for this message.
4165 flag_wrap="$srcdir/extras/wrap-compiler-for-flag-check"
4167 CXX="$flag_wrap $CXX"
4170 # We use the same hardening flags for C and C++. We must check that each flag
4171 # is supported by both compilers.
4176 # Check whether --enable-hardening was given.
4177 if test "${enable_hardening+set}" = set; then :
4178 enableval=$enable_hardening; hardening="$enableval"
4186 if test x"$hardening" != x"no"; then :
4189 ac_cpp='$CPP $CPPFLAGS'
4190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-strict-overflow" >&5
4195 $as_echo_n "checking whether C compiler accepts -fno-strict-overflow... " >&6; }
4196 if ${ax_cv_check_cflags__Werror___fno_strict_overflow+:} false; then :
4197 $as_echo_n "(cached) " >&6
4200 ax_check_save_flags=$CFLAGS
4201 CFLAGS="$CFLAGS -Werror -fno-strict-overflow"
4202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4203 /* end confdefs.h. */
4213 if ac_fn_c_try_compile "$LINENO"; then :
4214 ax_cv_check_cflags__Werror___fno_strict_overflow=yes
4216 ax_cv_check_cflags__Werror___fno_strict_overflow=no
4218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4219 CFLAGS=$ax_check_save_flags
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___fno_strict_overflow" >&5
4222 $as_echo "$ax_cv_check_cflags__Werror___fno_strict_overflow" >&6; }
4223 if test x"$ax_cv_check_cflags__Werror___fno_strict_overflow" = xyes; then :
4225 ac_cpp='$CPP $CPPFLAGS'
4226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-strict-overflow" >&5
4231 $as_echo_n "checking whether C compiler accepts -fno-strict-overflow... " >&6; }
4232 if ${ax_cv_check_cflags__Werror___fno_strict_overflow+:} false; then :
4233 $as_echo_n "(cached) " >&6
4236 ax_check_save_flags=$CFLAGS
4237 CFLAGS="$CFLAGS -Werror -fno-strict-overflow"
4238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4239 /* end confdefs.h. */
4249 if ac_fn_c_try_compile "$LINENO"; then :
4250 ax_cv_check_cflags__Werror___fno_strict_overflow=yes
4252 ax_cv_check_cflags__Werror___fno_strict_overflow=no
4254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4255 CFLAGS=$ax_check_save_flags
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___fno_strict_overflow" >&5
4258 $as_echo "$ax_cv_check_cflags__Werror___fno_strict_overflow" >&6; }
4259 if test x"$ax_cv_check_cflags__Werror___fno_strict_overflow" = xyes; then :
4260 HARDEN_CFLAGS="$HARDEN_CFLAGS -fno-strict-overflow"
4266 ac_cpp='$CPP $CPPFLAGS'
4267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4276 ac_cpp='$CPP $CPPFLAGS'
4277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4282 # This one will likely succeed, even on platforms where it does nothing.
4284 ac_cpp='$CPP $CPPFLAGS'
4285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -D_FORTIFY_SOURCE=2" >&5
4290 $as_echo_n "checking whether C compiler accepts -D_FORTIFY_SOURCE=2... " >&6; }
4291 if ${ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2+:} false; then :
4292 $as_echo_n "(cached) " >&6
4295 ax_check_save_flags=$CFLAGS
4296 CFLAGS="$CFLAGS -Werror -D_FORTIFY_SOURCE=2"
4297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4298 /* end confdefs.h. */
4308 if ac_fn_c_try_compile "$LINENO"; then :
4309 ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2=yes
4311 ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2=no
4313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4314 CFLAGS=$ax_check_save_flags
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2" >&5
4317 $as_echo "$ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2" >&6; }
4318 if test x"$ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2" = xyes; then :
4320 ac_cpp='$CPP $CPPFLAGS'
4321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -D_FORTIFY_SOURCE=2" >&5
4326 $as_echo_n "checking whether C compiler accepts -D_FORTIFY_SOURCE=2... " >&6; }
4327 if ${ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2+:} false; then :
4328 $as_echo_n "(cached) " >&6
4331 ax_check_save_flags=$CFLAGS
4332 CFLAGS="$CFLAGS -Werror -D_FORTIFY_SOURCE=2"
4333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4334 /* end confdefs.h. */
4344 if ac_fn_c_try_compile "$LINENO"; then :
4345 ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2=yes
4347 ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2=no
4349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4350 CFLAGS=$ax_check_save_flags
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2" >&5
4353 $as_echo "$ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2" >&6; }
4354 if test x"$ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2" = xyes; then :
4355 HARDEN_CFLAGS="$HARDEN_CFLAGS -D_FORTIFY_SOURCE=2"
4361 ac_cpp='$CPP $CPPFLAGS'
4362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4371 ac_cpp='$CPP $CPPFLAGS'
4372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4378 ac_cpp='$CPP $CPPFLAGS'
4379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstack-protector-all" >&5
4384 $as_echo_n "checking whether C compiler accepts -fstack-protector-all... " >&6; }
4385 if ${ax_cv_check_cflags__Werror___fstack_protector_all+:} false; then :
4386 $as_echo_n "(cached) " >&6
4389 ax_check_save_flags=$CFLAGS
4390 CFLAGS="$CFLAGS -Werror -fstack-protector-all"
4391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4392 /* end confdefs.h. */
4402 if ac_fn_c_try_compile "$LINENO"; then :
4403 ax_cv_check_cflags__Werror___fstack_protector_all=yes
4405 ax_cv_check_cflags__Werror___fstack_protector_all=no
4407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4408 CFLAGS=$ax_check_save_flags
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___fstack_protector_all" >&5
4411 $as_echo "$ax_cv_check_cflags__Werror___fstack_protector_all" >&6; }
4412 if test x"$ax_cv_check_cflags__Werror___fstack_protector_all" = xyes; then :
4414 ac_cpp='$CPP $CPPFLAGS'
4415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstack-protector-all" >&5
4420 $as_echo_n "checking whether C compiler accepts -fstack-protector-all... " >&6; }
4421 if ${ax_cv_check_cflags__Werror___fstack_protector_all+:} false; then :
4422 $as_echo_n "(cached) " >&6
4425 ax_check_save_flags=$CFLAGS
4426 CFLAGS="$CFLAGS -Werror -fstack-protector-all"
4427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4428 /* end confdefs.h. */
4438 if ac_fn_c_try_compile "$LINENO"; then :
4439 ax_cv_check_cflags__Werror___fstack_protector_all=yes
4441 ax_cv_check_cflags__Werror___fstack_protector_all=no
4443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4444 CFLAGS=$ax_check_save_flags
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___fstack_protector_all" >&5
4447 $as_echo "$ax_cv_check_cflags__Werror___fstack_protector_all" >&6; }
4448 if test x"$ax_cv_check_cflags__Werror___fstack_protector_all" = xyes; then :
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fstack-protector-all" >&5
4450 $as_echo_n "checking whether the linker accepts -fstack-protector-all... " >&6; }
4451 if ${ax_cv_check_ldflags__Werror___fstack_protector_all+:} false; then :
4452 $as_echo_n "(cached) " >&6
4455 ax_check_save_flags=$LDFLAGS
4456 LDFLAGS="$LDFLAGS -Werror -fstack-protector-all"
4457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4458 /* end confdefs.h. */
4468 if ac_fn_c_try_link "$LINENO"; then :
4469 ax_cv_check_ldflags__Werror___fstack_protector_all=yes
4471 ax_cv_check_ldflags__Werror___fstack_protector_all=no
4473 rm -f core conftest.err conftest.$ac_objext \
4474 conftest$ac_exeext conftest.$ac_ext
4475 LDFLAGS=$ax_check_save_flags
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags__Werror___fstack_protector_all" >&5
4478 $as_echo "$ax_cv_check_ldflags__Werror___fstack_protector_all" >&6; }
4479 if test x"$ax_cv_check_ldflags__Werror___fstack_protector_all" = xyes; then :
4480 HARDEN_CFLAGS="$HARDEN_CFLAGS -fstack-protector-all"
4482 ac_cpp='$CPP $CPPFLAGS'
4483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wstack-protector" >&5
4488 $as_echo_n "checking whether C compiler accepts -Wstack-protector... " >&6; }
4489 if ${ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector+:} false; then :
4490 $as_echo_n "(cached) " >&6
4493 ax_check_save_flags=$CFLAGS
4494 CFLAGS="$CFLAGS -Werror -fstack-protector-all -Wstack-protector"
4495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4496 /* end confdefs.h. */
4506 if ac_fn_c_try_compile "$LINENO"; then :
4507 ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector=yes
4509 ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector=no
4511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4512 CFLAGS=$ax_check_save_flags
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector" >&5
4515 $as_echo "$ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector" >&6; }
4516 if test x"$ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector" = xyes; then :
4518 ac_cpp='$CPP $CPPFLAGS'
4519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wstack-protector" >&5
4524 $as_echo_n "checking whether C compiler accepts -Wstack-protector... " >&6; }
4525 if ${ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector+:} false; then :
4526 $as_echo_n "(cached) " >&6
4529 ax_check_save_flags=$CFLAGS
4530 CFLAGS="$CFLAGS -Werror -fstack-protector-all -Wstack-protector"
4531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4532 /* end confdefs.h. */
4542 if ac_fn_c_try_compile "$LINENO"; then :
4543 ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector=yes
4545 ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector=no
4547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4548 CFLAGS=$ax_check_save_flags
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector" >&5
4551 $as_echo "$ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector" >&6; }
4552 if test x"$ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector" = xyes; then :
4553 HARDEN_CFLAGS="$HARDEN_CFLAGS -Wstack-protector"
4559 ac_cpp='$CPP $CPPFLAGS'
4560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4569 ac_cpp='$CPP $CPPFLAGS'
4570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4575 ac_cpp='$CPP $CPPFLAGS'
4576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts --param ssp-buffer-size=1" >&5
4581 $as_echo_n "checking whether C compiler accepts --param ssp-buffer-size=1... " >&6; }
4582 if ${ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1+:} false; then :
4583 $as_echo_n "(cached) " >&6
4586 ax_check_save_flags=$CFLAGS
4587 CFLAGS="$CFLAGS -Werror -fstack-protector-all --param ssp-buffer-size=1"
4588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4589 /* end confdefs.h. */
4599 if ac_fn_c_try_compile "$LINENO"; then :
4600 ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1=yes
4602 ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1=no
4604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4605 CFLAGS=$ax_check_save_flags
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1" >&5
4608 $as_echo "$ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1" >&6; }
4609 if test x"$ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1" = xyes; then :
4611 ac_cpp='$CPP $CPPFLAGS'
4612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts --param ssp-buffer-size=1" >&5
4617 $as_echo_n "checking whether C compiler accepts --param ssp-buffer-size=1... " >&6; }
4618 if ${ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1+:} false; then :
4619 $as_echo_n "(cached) " >&6
4622 ax_check_save_flags=$CFLAGS
4623 CFLAGS="$CFLAGS -Werror -fstack-protector-all --param ssp-buffer-size=1"
4624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4625 /* end confdefs.h. */
4635 if ac_fn_c_try_compile "$LINENO"; then :
4636 ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1=yes
4638 ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1=no
4640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4641 CFLAGS=$ax_check_save_flags
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1" >&5
4644 $as_echo "$ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1" >&6; }
4645 if test x"$ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1" = xyes; then :
4646 HARDEN_CFLAGS="$HARDEN_CFLAGS --param ssp-buffer-size=1"
4652 ac_cpp='$CPP $CPPFLAGS'
4653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4662 ac_cpp='$CPP $CPPFLAGS'
4663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4676 ac_cpp='$CPP $CPPFLAGS'
4677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4686 ac_cpp='$CPP $CPPFLAGS'
4687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4692 # At the link step, we might want -pie (GCC) or -Wl,-pie (Clang on OS X)
4694 # The linker checks also compile code, so we need to include -fPIE as well.
4696 ac_cpp='$CPP $CPPFLAGS'
4697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fPIE" >&5
4702 $as_echo_n "checking whether C compiler accepts -fPIE... " >&6; }
4703 if ${ax_cv_check_cflags__Werror___fPIE+:} false; then :
4704 $as_echo_n "(cached) " >&6
4707 ax_check_save_flags=$CFLAGS
4708 CFLAGS="$CFLAGS -Werror -fPIE"
4709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4710 /* end confdefs.h. */
4720 if ac_fn_c_try_compile "$LINENO"; then :
4721 ax_cv_check_cflags__Werror___fPIE=yes
4723 ax_cv_check_cflags__Werror___fPIE=no
4725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4726 CFLAGS=$ax_check_save_flags
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___fPIE" >&5
4729 $as_echo "$ax_cv_check_cflags__Werror___fPIE" >&6; }
4730 if test x"$ax_cv_check_cflags__Werror___fPIE" = xyes; then :
4732 ac_cpp='$CPP $CPPFLAGS'
4733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fPIE" >&5
4738 $as_echo_n "checking whether C compiler accepts -fPIE... " >&6; }
4739 if ${ax_cv_check_cflags__Werror___fPIE+:} false; then :
4740 $as_echo_n "(cached) " >&6
4743 ax_check_save_flags=$CFLAGS
4744 CFLAGS="$CFLAGS -Werror -fPIE"
4745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4746 /* end confdefs.h. */
4756 if ac_fn_c_try_compile "$LINENO"; then :
4757 ax_cv_check_cflags__Werror___fPIE=yes
4759 ax_cv_check_cflags__Werror___fPIE=no
4761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4762 CFLAGS=$ax_check_save_flags
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___fPIE" >&5
4765 $as_echo "$ax_cv_check_cflags__Werror___fPIE" >&6; }
4766 if test x"$ax_cv_check_cflags__Werror___fPIE" = xyes; then :
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fPIE -pie" >&5
4768 $as_echo_n "checking whether the linker accepts -fPIE -pie... " >&6; }
4769 if ${ax_cv_check_ldflags__Werror___fPIE__pie+:} false; then :
4770 $as_echo_n "(cached) " >&6
4773 ax_check_save_flags=$LDFLAGS
4774 LDFLAGS="$LDFLAGS -Werror -fPIE -pie"
4775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4776 /* end confdefs.h. */
4786 if ac_fn_c_try_link "$LINENO"; then :
4787 ax_cv_check_ldflags__Werror___fPIE__pie=yes
4789 ax_cv_check_ldflags__Werror___fPIE__pie=no
4791 rm -f core conftest.err conftest.$ac_objext \
4792 conftest$ac_exeext conftest.$ac_ext
4793 LDFLAGS=$ax_check_save_flags
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags__Werror___fPIE__pie" >&5
4796 $as_echo "$ax_cv_check_ldflags__Werror___fPIE__pie" >&6; }
4797 if test x"$ax_cv_check_ldflags__Werror___fPIE__pie" = xyes; then :
4798 HARDEN_BINCFLAGS="-fPIE"
4799 HARDEN_BINLDFLAGS="-pie"
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fPIE -Wl,-pie" >&5
4802 $as_echo_n "checking whether the linker accepts -fPIE -Wl,-pie... " >&6; }
4803 if ${ax_cv_check_ldflags__Werror___fPIE__Wl__pie+:} false; then :
4804 $as_echo_n "(cached) " >&6
4807 ax_check_save_flags=$LDFLAGS
4808 LDFLAGS="$LDFLAGS -Werror -fPIE -Wl,-pie"
4809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4810 /* end confdefs.h. */
4820 if ac_fn_c_try_link "$LINENO"; then :
4821 ax_cv_check_ldflags__Werror___fPIE__Wl__pie=yes
4823 ax_cv_check_ldflags__Werror___fPIE__Wl__pie=no
4825 rm -f core conftest.err conftest.$ac_objext \
4826 conftest$ac_exeext conftest.$ac_ext
4827 LDFLAGS=$ax_check_save_flags
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags__Werror___fPIE__Wl__pie" >&5
4830 $as_echo "$ax_cv_check_ldflags__Werror___fPIE__Wl__pie" >&6; }
4831 if test x"$ax_cv_check_ldflags__Werror___fPIE__Wl__pie" = xyes; then :
4832 HARDEN_BINCFLAGS="-fPIE"
4833 HARDEN_BINLDFLAGS="-Wl,-pie"
4845 ac_cpp='$CPP $CPPFLAGS'
4846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4855 ac_cpp='$CPP $CPPFLAGS'
4856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,relro" >&5
4862 $as_echo_n "checking whether the linker accepts -Wl,-z,relro... " >&6; }
4863 if ${ax_cv_check_ldflags__Werror___Wl__z_relro+:} false; then :
4864 $as_echo_n "(cached) " >&6
4867 ax_check_save_flags=$LDFLAGS
4868 LDFLAGS="$LDFLAGS -Werror -Wl,-z,relro"
4869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4870 /* end confdefs.h. */
4880 if ac_fn_c_try_link "$LINENO"; then :
4881 ax_cv_check_ldflags__Werror___Wl__z_relro=yes
4883 ax_cv_check_ldflags__Werror___Wl__z_relro=no
4885 rm -f core conftest.err conftest.$ac_objext \
4886 conftest$ac_exeext conftest.$ac_ext
4887 LDFLAGS=$ax_check_save_flags
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags__Werror___Wl__z_relro" >&5
4890 $as_echo "$ax_cv_check_ldflags__Werror___Wl__z_relro" >&6; }
4891 if test x"$ax_cv_check_ldflags__Werror___Wl__z_relro" = xyes; then :
4892 HARDEN_LDFLAGS="$HARDEN_LDFLAGS -Wl,-z,relro"
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,now" >&5
4894 $as_echo_n "checking whether the linker accepts -Wl,-z,now... " >&6; }
4895 if ${ax_cv_check_ldflags__Werror___Wl__z_now+:} false; then :
4896 $as_echo_n "(cached) " >&6
4899 ax_check_save_flags=$LDFLAGS
4900 LDFLAGS="$LDFLAGS -Werror -Wl,-z,now"
4901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4902 /* end confdefs.h. */
4912 if ac_fn_c_try_link "$LINENO"; then :
4913 ax_cv_check_ldflags__Werror___Wl__z_now=yes
4915 ax_cv_check_ldflags__Werror___Wl__z_now=no
4917 rm -f core conftest.err conftest.$ac_objext \
4918 conftest$ac_exeext conftest.$ac_ext
4919 LDFLAGS=$ax_check_save_flags
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags__Werror___Wl__z_now" >&5
4922 $as_echo "$ax_cv_check_ldflags__Werror___Wl__z_now" >&6; }
4923 if test x"$ax_cv_check_ldflags__Werror___Wl__z_now" = xyes; then :
4924 HARDEN_LDFLAGS="$HARDEN_LDFLAGS -Wl,-z,now"
4939 # End of flag tests.
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system has IPv6 support" >&5
4947 $as_echo_n "checking if your system has IPv6 support... " >&6; }
4948 if ${ac_cv_ip6+:} false; then :
4949 $as_echo_n "(cached) " >&6
4953 LIBS="$LIBS $SOCKLIB"
4954 if test "$cross_compiling" = yes; then :
4955 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4957 as_fn_error $? "cannot run
test program
while cross compiling
4958 See \
`config.log' for more details" "$LINENO" 5; }
4960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4961 /* end confdefs.h. */
4963 #include <sys/types.h>
4964 #include <sys/socket.h>
4966 int s = socket(AF_INET6, SOCK_STREAM, 0);
4967 exit(0); /* We only check if the code compiles, that's enough. We can deal with missing runtime IPv6 */
4971 if ac_fn_c_try_run "$LINENO"; then :
4976 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4977 conftest.$ac_objext conftest.beam conftest.$ac_ext
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ip6" >&5
4983 $as_echo "$ac_cv_ip6" >&6; }
4984 if test "$ac_cv_ip6" = "no"; then
4985 as_fn_error $? "Your system does not support IPv6" "$LINENO" 5
4990 ac_cpp='$CPP $CPPFLAGS'
4991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4995 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4996 # On Suns, sometimes $CPP names a directory.
4997 if test -n "$CPP" && test -d "$CPP"; then
5000 if test -z "$CPP"; then
5001 if ${ac_cv_prog_CPP+:} false; then :
5002 $as_echo_n "(cached) " >&6
5004 # Double quotes because CPP needs to be expanded
5005 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5008 for ac_c_preproc_warn_flag in '' yes
5010 # Use a header file that comes with gcc, so configuring glibc
5011 # with a fresh cross-compiler works.
5012 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5013 # <limits.h> exists even on freestanding compilers.
5014 # On the NeXT, cc -E runs the code through the compiler's parser,
5015 # not just through cpp. "Syntax error" is here to catch this case.
5016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5017 /* end confdefs.h. */
5019 # include <limits.h>
5021 # include <assert.h>
5025 if ac_fn_c_try_cpp "$LINENO"; then :
5028 # Broken: fails on valid input.
5031 rm -f conftest.err conftest.i conftest.$ac_ext
5033 # OK, works on sane cases. Now check whether nonexistent headers
5034 # can be detected and how.
5035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5036 /* end confdefs.h. */
5037 #include <ac_nonexistent.h>
5039 if ac_fn_c_try_cpp "$LINENO"; then :
5040 # Broken: success on invalid input.
5043 # Passes both tests.
5047 rm -f conftest.err conftest.i conftest.$ac_ext
5050 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5051 rm -f conftest.i conftest.err conftest.
$ac_ext
5052 if $ac_preproc_ok; then :
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5065 $as_echo "$CPP" >&6; }
5067 for ac_c_preproc_warn_flag
in '' yes
5069 # Use a header file that comes with gcc, so configuring glibc
5070 # with a fresh cross-compiler works.
5071 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5072 # <limits.h> exists even on freestanding compilers.
5073 # On the NeXT, cc -E runs the code through the compiler's parser,
5074 # not just through cpp. "Syntax error" is here to catch this case.
5075 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5076 /* end confdefs.h. */
5078 # include <limits.h>
5080 # include <assert.h>
5084 if ac_fn_c_try_cpp
"$LINENO"; then :
5087 # Broken: fails on valid input.
5090 rm -f conftest.err conftest.i conftest.
$ac_ext
5092 # OK, works on sane cases. Now check whether nonexistent headers
5093 # can be detected and how.
5094 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5095 /* end confdefs.h. */
5096 #include <ac_nonexistent.h>
5098 if ac_fn_c_try_cpp
"$LINENO"; then :
5099 # Broken: success on invalid input.
5102 # Passes both tests.
5106 rm -f conftest.err conftest.i conftest.
$ac_ext
5109 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5110 rm -f conftest.i conftest.err conftest.
$ac_ext
5111 if $ac_preproc_ok; then :
5114 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5115 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5116 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5117 See \`config.log' for more details" "$LINENO" 5; }
5121 ac_cpp
='$CPP $CPPFLAGS'
5122 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5123 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5124 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5128 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5129 if ${ac_cv_path_GREP+:} false
; then :
5130 $as_echo_n "(cached) " >&6
5132 if test -z "$GREP"; then
5133 ac_path_GREP_found
=false
5134 # Loop through the user's path and test for each of PROGNAME-LIST
5135 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5136 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5139 test -z "$as_dir" && as_dir
=.
5140 for ac_prog
in grep ggrep
; do
5141 for ac_exec_ext
in '' $ac_executable_extensions; do
5142 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5143 as_fn_executable_p
"$ac_path_GREP" || continue
5144 # Check for GNU ac_path_GREP and select it if it is found.
5145 # Check for GNU $ac_path_GREP
5146 case `"$ac_path_GREP" --version 2>&1` in
5148 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5151 $as_echo_n 0123456789 >"conftest.in"
5154 cat "conftest.in" "conftest.in" >"conftest.tmp"
5155 mv "conftest.tmp" "conftest.in"
5156 cp "conftest.in" "conftest.nl"
5157 $as_echo 'GREP' >> "conftest.nl"
5158 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
5159 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
5160 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5161 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5162 # Best one so far, save it but keep looking for a better one
5163 ac_cv_path_GREP
="$ac_path_GREP"
5164 ac_path_GREP_max
=$ac_count
5166 # 10*(2^10) chars as input seems more than enough
5167 test $ac_count -gt 10 && break
5169 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5172 $ac_path_GREP_found && break 3
5177 if test -z "$ac_cv_path_GREP"; then
5178 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5181 ac_cv_path_GREP
=$GREP
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5186 $as_echo "$ac_cv_path_GREP" >&6; }
5187 GREP
="$ac_cv_path_GREP"
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5191 $as_echo_n "checking for egrep... " >&6; }
5192 if ${ac_cv_path_EGREP+:} false
; then :
5193 $as_echo_n "(cached) " >&6
5195 if echo a
| $GREP -E '(a|b)' >/dev
/null
2>&1
5196 then ac_cv_path_EGREP
="$GREP -E"
5198 if test -z "$EGREP"; then
5199 ac_path_EGREP_found
=false
5200 # Loop through the user's path and test for each of PROGNAME-LIST
5201 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5202 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5205 test -z "$as_dir" && as_dir
=.
5206 for ac_prog
in egrep; do
5207 for ac_exec_ext
in '' $ac_executable_extensions; do
5208 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5209 as_fn_executable_p
"$ac_path_EGREP" || continue
5210 # Check for GNU ac_path_EGREP and select it if it is found.
5211 # Check for GNU $ac_path_EGREP
5212 case `"$ac_path_EGREP" --version 2>&1` in
5214 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5217 $as_echo_n 0123456789 >"conftest.in"
5220 cat "conftest.in" "conftest.in" >"conftest.tmp"
5221 mv "conftest.tmp" "conftest.in"
5222 cp "conftest.in" "conftest.nl"
5223 $as_echo 'EGREP' >> "conftest.nl"
5224 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
5225 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
5226 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5227 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5228 # Best one so far, save it but keep looking for a better one
5229 ac_cv_path_EGREP
="$ac_path_EGREP"
5230 ac_path_EGREP_max
=$ac_count
5232 # 10*(2^10) chars as input seems more than enough
5233 test $ac_count -gt 10 && break
5235 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5238 $ac_path_EGREP_found && break 3
5243 if test -z "$ac_cv_path_EGREP"; then
5244 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5247 ac_cv_path_EGREP
=$EGREP
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5253 $as_echo "$ac_cv_path_EGREP" >&6; }
5254 EGREP
="$ac_cv_path_EGREP"
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5258 $as_echo_n "checking for ANSI C header files... " >&6; }
5259 if ${ac_cv_header_stdc+:} false
; then :
5260 $as_echo_n "(cached) " >&6
5262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5263 /* end confdefs.h. */
5277 if ac_fn_c_try_compile
"$LINENO"; then :
5278 ac_cv_header_stdc
=yes
5280 ac_cv_header_stdc
=no
5282 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5284 if test $ac_cv_header_stdc = yes; then
5285 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5287 /* end confdefs.h. */
5291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5292 $EGREP "memchr" >/dev
/null
2>&1; then :
5295 ac_cv_header_stdc
=no
5301 if test $ac_cv_header_stdc = yes; then
5302 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5303 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5304 /* end confdefs.h. */
5308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5309 $EGREP "free" >/dev
/null
2>&1; then :
5312 ac_cv_header_stdc
=no
5318 if test $ac_cv_header_stdc = yes; then
5319 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5320 if test "$cross_compiling" = yes; then :
5323 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5324 /* end confdefs.h. */
5327 #if ((' ' & 0x0FF) == 0x020)
5328 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5329 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5331 # define ISLOWER(c) \
5332 (('a' <= (c) && (c) <= 'i') \
5333 || ('j' <= (c) && (c) <= 'r') \
5334 || ('s' <= (c) && (c) <= 'z'))
5335 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5338 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5343 for (i = 0; i < 256; i++)
5344 if (XOR (islower (i), ISLOWER (i))
5345 || toupper (i) != TOUPPER (i))
5350 if ac_fn_c_try_run
"$LINENO"; then :
5353 ac_cv_header_stdc
=no
5355 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5356 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5362 $as_echo "$ac_cv_header_stdc" >&6; }
5363 if test $ac_cv_header_stdc = yes; then
5365 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5369 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5370 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5371 inttypes.h stdint.h unistd.h
5373 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5374 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5376 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5377 cat >>confdefs.h
<<_ACEOF
5378 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5386 ac_fn_c_check_header_mongrel
"$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
5387 if test "x$ac_cv_header_sys_param_h" = xyes
; then :
5389 $as_echo "#define PARAMH /**/" >>confdefs.h
5394 ac_fn_c_check_header_mongrel
"$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
5395 if test "x$ac_cv_header_stdlib_h" = xyes
; then :
5397 $as_echo "#define STDLIBH /**/" >>confdefs.h
5402 ac_fn_c_check_header_mongrel
"$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
5403 if test "x$ac_cv_header_stddef_h" = xyes
; then :
5405 $as_echo "#define STDDEFH /**/" >>confdefs.h
5410 ac_fn_c_check_header_mongrel
"$LINENO" "sys/syslog.h" "ac_cv_header_sys_syslog_h" "$ac_includes_default"
5411 if test "x$ac_cv_header_sys_syslog_h" = xyes
; then :
5413 $as_echo "#define SYSSYSLOGH /**/" >>confdefs.h
5418 ac_fn_c_check_header_mongrel
"$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
5419 if test "x$ac_cv_header_unistd_h" = xyes
; then :
5421 $as_echo "#define UNISTDH /**/" >>confdefs.h
5426 ac_fn_c_check_header_mongrel
"$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
5427 if test "x$ac_cv_header_string_h" = xyes
; then :
5429 $as_echo "#define STRINGH /**/" >>confdefs.h
5434 ac_fn_c_check_header_mongrel
"$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
5435 if test "x$ac_cv_header_strings_h" = xyes
; then :
5437 $as_echo "#define STRINGSH /**/" >>confdefs.h
5442 ac_fn_c_check_header_mongrel
"$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
5443 if test "x$ac_cv_header_malloc_h" = xyes
; then :
5445 $as_echo "#define MALLOCH <malloc.h>" >>confdefs.h
5450 ac_fn_c_check_header_mongrel
"$LINENO" "sys/rusage.h" "ac_cv_header_sys_rusage_h" "$ac_includes_default"
5451 if test "x$ac_cv_header_sys_rusage_h" = xyes
; then :
5453 $as_echo "#define RUSAGEH /**/" >>confdefs.h
5458 ac_fn_c_check_header_mongrel
"$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default"
5459 if test "x$ac_cv_header_glob_h" = xyes
; then :
5461 $as_echo "#define GLOBH /**/" >>confdefs.h
5466 for ac_header
in stdint.h inttypes.h
5468 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5469 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5470 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5471 cat >>confdefs.h
<<_ACEOF
5472 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5480 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5481 if ${ac_cv_c_const+:} false
; then :
5482 $as_echo_n "(cached) " >&6
5484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5485 /* end confdefs.h. */
5492 /* Ultrix mips cc rejects this sort of thing. */
5493 typedef int charset[2];
5494 const charset cs = { 0, 0 };
5495 /* SunOS 4.1.1 cc rejects this. */
5496 char const *const *pcpcc;
5498 /* NEC SVR4.0.2 mips cc rejects this. */
5499 struct point {int x, y;};
5500 static struct point const zero = {0,0};
5501 /* AIX XL C 1.02.0.0 rejects this.
5502 It does not let you subtract one const X* pointer from another in
5503 an arm of an if-expression whose if-part is not a constant
5505 const char *g = "string";
5506 pcpcc = &g + (g ? g-g : 0);
5507 /* HPUX 7.0 cc rejects these. */
5509 ppc = (char**) pcpcc;
5510 pcpcc = (char const *const *) ppc;
5511 { /* SCO 3.2v4 cc rejects this sort of thing. */
5514 char const *s = 0 ? (char *) 0 : (char const *) 0;
5519 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5521 const int *foo = &x[0];
5524 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5525 typedef const int *iptr;
5529 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
5530 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5531 struct s { int j; const int *ap[3]; } bx;
5532 struct s *b = &bx; b->j = 5;
5534 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5538 return !cs[0] && !zero.x;
5545 if ac_fn_c_try_compile
"$LINENO"; then :
5550 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5553 $as_echo "$ac_cv_c_const" >&6; }
5554 if test $ac_cv_c_const = no
; then
5556 $as_echo "#define const /**/" >>confdefs.h
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5561 $as_echo_n "checking for inline... " >&6; }
5562 if ${ac_cv_c_inline+:} false
; then :
5563 $as_echo_n "(cached) " >&6
5566 for ac_kw
in inline __inline__ __inline
; do
5567 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5568 /* end confdefs.h. */
5571 static $ac_kw foo_t static_foo () {return 0; }
5572 $ac_kw foo_t foo () {return 0; }
5576 if ac_fn_c_try_compile
"$LINENO"; then :
5577 ac_cv_c_inline
=$ac_kw
5579 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5580 test "$ac_cv_c_inline" != no
&& break
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5585 $as_echo "$ac_cv_c_inline" >&6; }
5587 case $ac_cv_c_inline in
5590 case $ac_cv_c_inline in
5592 *) ac_val
=$ac_cv_c_inline;;
5594 cat >>confdefs.h
<<_ACEOF
5596 #define inline $ac_val
5603 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5604 if test "x$ac_cv_type_mode_t" = xyes
; then :
5608 cat >>confdefs.h
<<_ACEOF
5614 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5615 if test "x$ac_cv_type_size_t" = xyes
; then :
5619 cat >>confdefs.h
<<_ACEOF
5620 #define size_t unsigned int
5626 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
5627 if test "x$ac_cv_type_intptr_t" = xyes
; then :
5629 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
5632 for ac_type
in 'int' 'long int' 'long long int'; do
5633 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5634 /* end confdefs.h. */
5635 $ac_includes_default
5639 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
5641 return test_array [0];
5647 if ac_fn_c_try_compile
"$LINENO"; then :
5649 cat >>confdefs.h
<<_ACEOF
5650 #define intptr_t $ac_type
5655 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5656 test -z "$ac_type" && break
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5663 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5664 if ${ac_cv_header_time+:} false
; then :
5665 $as_echo_n "(cached) " >&6
5667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5668 /* end confdefs.h. */
5669 #include <sys/types.h>
5670 #include <sys/time.h>
5676 if ((struct tm *) 0)
5682 if ac_fn_c_try_compile
"$LINENO"; then :
5683 ac_cv_header_time
=yes
5685 ac_cv_header_time
=no
5687 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5690 $as_echo "$ac_cv_header_time" >&6; }
5691 if test $ac_cv_header_time = yes; then
5693 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
5698 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
5699 if ${ac_cv_header_sys_wait_h+:} false
; then :
5700 $as_echo_n "(cached) " >&6
5702 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5703 /* end confdefs.h. */
5704 #include <sys/types.h>
5705 #include <sys/wait.h>
5707 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
5710 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5718 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5723 if ac_fn_c_try_compile
"$LINENO"; then :
5724 ac_cv_header_sys_wait_h
=yes
5726 ac_cv_header_sys_wait_h
=no
5728 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
5731 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
5732 if test $ac_cv_header_sys_wait_h = yes; then
5734 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5739 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5740 if ${ac_cv_struct_tm+:} false
; then :
5741 $as_echo_n "(cached) " >&6
5743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5744 /* end confdefs.h. */
5745 #include <sys/types.h>
5752 int *p = &tm.tm_sec;
5758 if ac_fn_c_try_compile
"$LINENO"; then :
5759 ac_cv_struct_tm
=time.h
5761 ac_cv_struct_tm
=sys
/time.h
5763 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5766 $as_echo "$ac_cv_struct_tm" >&6; }
5767 if test $ac_cv_struct_tm = sys
/time.h
; then
5769 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5774 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5775 if ${ac_cv_type_uid_t+:} false
; then :
5776 $as_echo_n "(cached) " >&6
5778 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5779 /* end confdefs.h. */
5780 #include <sys/types.h>
5783 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5784 $EGREP "uid_t" >/dev
/null
2>&1; then :
5785 ac_cv_type_uid_t
=yes
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5793 $as_echo "$ac_cv_type_uid_t" >&6; }
5794 if test $ac_cv_type_uid_t = no
; then
5796 $as_echo "#define uid_t int" >>confdefs.h
5799 $as_echo "#define gid_t int" >>confdefs.h
5803 # The cast to long int works around a bug in the HP C Compiler
5804 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5805 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5806 # This bug is HP SR number 8606223364.
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5808 $as_echo_n "checking size of short... " >&6; }
5809 if ${ac_cv_sizeof_short+:} false
; then :
5810 $as_echo_n "(cached) " >&6
5812 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5815 if test "$ac_cv_type_short" = yes; then
5816 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5817 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5818 as_fn_error
77 "cannot compute sizeof (short)
5819 See \`config.log' for more details" "$LINENO" 5; }
5821 ac_cv_sizeof_short
=0
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5827 $as_echo "$ac_cv_sizeof_short" >&6; }
5831 cat >>confdefs.h
<<_ACEOF
5832 #define SIZEOF_SHORT $ac_cv_sizeof_short
5836 # The cast to long int works around a bug in the HP C Compiler
5837 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5838 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5839 # This bug is HP SR number 8606223364.
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5841 $as_echo_n "checking size of int... " >&6; }
5842 if ${ac_cv_sizeof_int+:} false
; then :
5843 $as_echo_n "(cached) " >&6
5845 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5848 if test "$ac_cv_type_int" = yes; then
5849 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5850 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5851 as_fn_error
77 "cannot compute sizeof (int)
5852 See \`config.log' for more details" "$LINENO" 5; }
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5860 $as_echo "$ac_cv_sizeof_int" >&6; }
5864 cat >>confdefs.h
<<_ACEOF
5865 #define SIZEOF_INT $ac_cv_sizeof_int
5869 # The cast to long int works around a bug in the HP C Compiler
5870 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5871 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5872 # This bug is HP SR number 8606223364.
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5874 $as_echo_n "checking size of long... " >&6; }
5875 if ${ac_cv_sizeof_long+:} false
; then :
5876 $as_echo_n "(cached) " >&6
5878 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5881 if test "$ac_cv_type_long" = yes; then
5882 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5883 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5884 as_fn_error
77 "cannot compute sizeof (long)
5885 See \`config.log' for more details" "$LINENO" 5; }
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5893 $as_echo "$ac_cv_sizeof_long" >&6; }
5897 cat >>confdefs.h
<<_ACEOF
5898 #define SIZEOF_LONG $ac_cv_sizeof_long
5902 if test "$ac_cv_sizeof_int" = 2 ; then
5903 ac_fn_c_check_type
"$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
5904 if test "x$ac_cv_type_int16_t" = xyes
; then :
5908 cat >>confdefs.h
<<_ACEOF
5914 ac_fn_c_check_type
"$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
5915 if test "x$ac_cv_type_u_int16_t" = xyes
; then :
5919 cat >>confdefs.h
<<_ACEOF
5920 #define u_int16_t unsigned int
5925 elif test "$ac_cv_sizeof_short" = 2 ; then
5926 ac_fn_c_check_type
"$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
5927 if test "x$ac_cv_type_int16_t" = xyes
; then :
5931 cat >>confdefs.h
<<_ACEOF
5932 #define int16_t short
5937 ac_fn_c_check_type
"$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
5938 if test "x$ac_cv_type_u_int16_t" = xyes
; then :
5942 cat >>confdefs.h
<<_ACEOF
5943 #define u_int16_t unsigned short
5949 as_fn_error $?
"Cannot find a type with size of 16 bits" "$LINENO" 5
5951 if test "$ac_cv_sizeof_int" = 4 ; then
5952 ac_fn_c_check_type
"$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
5953 if test "x$ac_cv_type_int32_t" = xyes
; then :
5957 cat >>confdefs.h
<<_ACEOF
5963 ac_fn_c_check_type
"$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
5964 if test "x$ac_cv_type_u_int32_t" = xyes
; then :
5968 cat >>confdefs.h
<<_ACEOF
5969 #define u_int32_t unsigned int
5974 elif test "$ac_cv_sizeof_short" = 4 ; then
5975 ac_fn_c_check_type
"$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
5976 if test "x$ac_cv_type_int32_t" = xyes
; then :
5980 cat >>confdefs.h
<<_ACEOF
5981 #define int32_t short
5986 ac_fn_c_check_type
"$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
5987 if test "x$ac_cv_type_u_int32_t" = xyes
; then :
5991 cat >>confdefs.h
<<_ACEOF
5992 #define u_int32_t unsigned short
5997 elif test "$ac_cv_sizeof_long" = 4 ; then
5998 ac_fn_c_check_type
"$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
5999 if test "x$ac_cv_type_int32_t" = xyes
; then :
6003 cat >>confdefs.h
<<_ACEOF
6004 #define int32_t long
6009 ac_fn_c_check_type
"$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
6010 if test "x$ac_cv_type_u_int32_t" = xyes
; then :
6014 cat >>confdefs.h
<<_ACEOF
6015 #define u_int32_t unsigned long
6021 as_fn_error $?
"Cannot find a type with size of 32 bits" "$LINENO" 5
6023 # The cast to long int works around a bug in the HP C Compiler
6024 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6025 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6026 # This bug is HP SR number 8606223364.
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of rlim_t" >&5
6028 $as_echo_n "checking size of rlim_t... " >&6; }
6029 if ${ac_cv_sizeof_rlim_t+:} false
; then :
6030 $as_echo_n "(cached) " >&6
6032 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (rlim_t))" "ac_cv_sizeof_rlim_t" "$ac_includes_default"; then :
6035 if test "$ac_cv_type_rlim_t" = yes; then
6036 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6037 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6038 as_fn_error
77 "cannot compute sizeof (rlim_t)
6039 See \`config.log' for more details" "$LINENO" 5; }
6041 ac_cv_sizeof_rlim_t
=0
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_rlim_t" >&5
6047 $as_echo "$ac_cv_sizeof_rlim_t" >&6; }
6051 cat >>confdefs.h
<<_ACEOF
6052 #define SIZEOF_RLIM_T $ac_cv_sizeof_rlim_t
6056 if test "$ac_cv_sizeof_rlim_t" = 8 ; then
6058 $as_echo "#define LONG_LONG_RLIM_T /**/" >>confdefs.h
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of nonblocking sockets you have" >&5
6064 $as_echo_n "checking what kind of nonblocking sockets you have... " >&6; }
6065 if ${ac_cv_nonblocking+:} false
; then :
6066 $as_echo_n "(cached) " >&6
6070 LIBS
="$LIBS $SOCKLIB"
6071 if test "$cross_compiling" = yes; then :
6072 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6073 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6074 as_fn_error $?
"cannot run test program while cross compiling
6075 See \`config.log' for more details" "$LINENO" 5; }
6077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6078 /* end confdefs.h. */
6080 #include <sys/types.h>
6081 #include <sys/socket.h>
6083 #include <sys/ioctl.h>
6084 #include <sys/file.h>
6092 int f, l = sizeof(x);
6093 f = socket(AF_INET, SOCK_DGRAM, 0);
6094 if (f >= 0 && !(fcntl(f, F_SETFL, O_NONBLOCK))) {
6095 signal(SIGALRM, alarmed);
6097 recvfrom(f, b, 12, 0, (struct sockaddr *)x, &l);
6106 if ac_fn_c_try_run
"$LINENO"; then :
6107 ac_cv_nonblocking
=O_NONBLOCK
6110 if test "$cross_compiling" = yes; then :
6111 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6112 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6113 as_fn_error $?
"cannot run test program while cross compiling
6114 See \`config.log' for more details" "$LINENO" 5; }
6116 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6117 /* end confdefs.h. */
6119 #include <sys/types.h>
6120 #include <sys/socket.h>
6122 #include <sys/ioctl.h>
6123 #include <sys/file.h>
6131 int f, l = sizeof(x);
6132 f = socket(AF_INET, SOCK_DGRAM, 0);
6133 if (f >= 0 && !(fcntl(f, F_SETFL, O_NDELAY))) {
6134 signal(SIGALRM, alarmed);
6136 recvfrom(f, b, 12, 0, (struct sockaddr *)x, &l);
6144 if ac_fn_c_try_run
"$LINENO"; then :
6145 ac_cv_nonblocking
=O_NDELAY
6148 if test "$cross_compiling" = yes; then :
6149 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6150 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6151 as_fn_error $?
"cannot run test program while cross compiling
6152 See \`config.log' for more details" "$LINENO" 5; }
6154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6155 /* end confdefs.h. */
6157 #include <sys/types.h>
6158 #include <sys/socket.h>
6160 #include <sys/ioctl.h>
6161 #include <sys/file.h>
6169 int f, l = sizeof(x);
6170 f = socket(AF_INET, SOCK_DGRAM, 0);
6171 if (f >= 0 && !(fcntl(f, F_SETFL, FIONBIO))) {
6172 signal(SIGALRM, alarmed);
6174 recvfrom(f, b, 12, 0, (struct sockaddr *)x, &l);
6182 if ac_fn_c_try_run
"$LINENO"; then :
6183 ac_cv_nonblocking
=FIONBIO
6185 ac_cv_nonblocking
=none
6187 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6188 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6192 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6193 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6197 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6198 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_nonblocking" >&5
6203 $as_echo "$ac_cv_nonblocking" >&6; }
6204 if test "$ac_cv_nonblocking" = "O_NONBLOCK"; then
6206 $as_echo "#define NBLOCK_POSIX /**/" >>confdefs.h
6208 elif test "$ac_cv_nonblocking" = "O_NDELAY"; then
6210 $as_echo "#define NBLOCK_BSD /**/" >>confdefs.h
6212 elif test "$ac_cv_nonblocking" = "FIONBIO"; then
6214 $as_echo "#define NBLOCK_SYSV /**/" >>confdefs.h
6218 if test $ac_cv_c_compiler_gnu = yes; then
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
6220 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
6221 if ${ac_cv_prog_gcc_traditional+:} false
; then :
6222 $as_echo_n "(cached) " >&6
6224 ac_pattern
="Autoconf.*'x'"
6225 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6226 /* end confdefs.h. */
6230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6231 $EGREP "$ac_pattern" >/dev
/null
2>&1; then :
6232 ac_cv_prog_gcc_traditional
=yes
6234 ac_cv_prog_gcc_traditional
=no
6239 if test $ac_cv_prog_gcc_traditional = no
; then
6240 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6241 /* end confdefs.h. */
6245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6246 $EGREP "$ac_pattern" >/dev
/null
2>&1; then :
6247 ac_cv_prog_gcc_traditional
=yes
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
6254 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
6255 if test $ac_cv_prog_gcc_traditional = yes; then
6256 CC
="$CC -traditional"
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
6261 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
6262 if ${ac_cv_func_setpgrp_void+:} false
; then :
6263 $as_echo_n "(cached) " >&6
6265 if test "$cross_compiling" = yes; then :
6266 as_fn_error $?
"cannot check setpgrp when cross compiling" "$LINENO" 5
6268 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6269 /* end confdefs.h. */
6270 $ac_includes_default
6274 /* If this system has a BSD-style setpgrp which takes arguments,
6275 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
6276 exit successfully. */
6277 return setpgrp (1,1) != -1;
6282 if ac_fn_c_try_run
"$LINENO"; then :
6283 ac_cv_func_setpgrp_void
=no
6285 ac_cv_func_setpgrp_void
=yes
6287 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6288 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
6293 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
6294 if test $ac_cv_func_setpgrp_void = yes; then
6296 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
6300 if ${ac_cv_func_setvbuf_reversed+:} false
; then :
6301 $as_echo_n "(cached) " >&6
6303 ac_cv_func_setvbuf_reversed
=no
6307 for ac_func
in snprintf
6309 ac_fn_c_check_func
"$LINENO" "snprintf" "ac_cv_func_snprintf"
6310 if test "x$ac_cv_func_snprintf" = xyes
; then :
6311 cat >>confdefs.h
<<_ACEOF
6312 #define HAVE_SNPRINTF 1
6315 $as_echo "#define HAVE_SNPRINTF /**/" >>confdefs.h
6320 for ac_func
in vsnprintf
6322 ac_fn_c_check_func
"$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
6323 if test "x$ac_cv_func_vsnprintf" = xyes
; then :
6324 cat >>confdefs.h
<<_ACEOF
6325 #define HAVE_VSNPRINTF 1
6328 $as_echo "#define HAVE_VSNPRINTF /**/" >>confdefs.h
6333 for ac_func
in strlcpy
6335 ac_fn_c_check_func
"$LINENO" "strlcpy" "ac_cv_func_strlcpy"
6336 if test "x$ac_cv_func_strlcpy" = xyes
; then :
6337 cat >>confdefs.h
<<_ACEOF
6338 #define HAVE_STRLCPY 1
6341 $as_echo "#define HAVE_STRLCPY /**/" >>confdefs.h
6346 for ac_func
in strlcat
6348 ac_fn_c_check_func
"$LINENO" "strlcat" "ac_cv_func_strlcat"
6349 if test "x$ac_cv_func_strlcat" = xyes
; then :
6350 cat >>confdefs.h
<<_ACEOF
6351 #define HAVE_STRLCAT 1
6354 $as_echo "#define HAVE_STRLCAT /**/" >>confdefs.h
6359 for ac_func
in strlncat
6361 ac_fn_c_check_func
"$LINENO" "strlncat" "ac_cv_func_strlncat"
6362 if test "x$ac_cv_func_strlncat" = xyes
; then :
6363 cat >>confdefs.h
<<_ACEOF
6364 #define HAVE_STRLNCAT 1
6367 $as_echo "#define HAVE_STRLNCAT /**/" >>confdefs.h
6372 for ac_func
in inet_pton
6374 ac_fn_c_check_func
"$LINENO" "inet_pton" "ac_cv_func_inet_pton"
6375 if test "x$ac_cv_func_inet_pton" = xyes
; then :
6376 cat >>confdefs.h
<<_ACEOF
6377 #define HAVE_INET_PTON 1
6380 $as_echo "#define HAVE_INET_PTON /**/" >>confdefs.h
6385 for ac_func
in inet_ntop
6387 ac_fn_c_check_func
"$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
6388 if test "x$ac_cv_func_inet_ntop" = xyes
; then :
6389 cat >>confdefs.h
<<_ACEOF
6390 #define HAVE_INET_NTOP 1
6393 $as_echo "#define HAVE_INET_NTOP /**/" >>confdefs.h
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99 variable length arrays are supported" >&5
6399 $as_echo_n "checking if C99 variable length arrays are supported... " >&6; }
6400 if ${ac_cv_varlen_arrays+:} false
; then :
6401 $as_echo_n "(cached) " >&6
6404 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6405 /* end confdefs.h. */
6421 if ac_fn_c_try_compile
"$LINENO"; then :
6422 ac_cv_varlen_arrays
=yes
6424 ac_cv_varlen_arrays
=no
6426 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_varlen_arrays" >&5
6430 $as_echo "$ac_cv_varlen_arrays" >&6; }
6431 if test "$ac_cv_varlen_arrays" = "yes" ; then
6433 $as_echo "#define HAVE_C99_VARLEN_ARRAY /**/" >>confdefs.h
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can set the core size to unlimited" >&5
6438 $as_echo_n "checking if we can set the core size to unlimited... " >&6; }
6439 if ${ac_cv_force_core+:} false
; then :
6440 $as_echo_n "(cached) " >&6
6443 if test "$cross_compiling" = yes; then :
6444 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6445 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6446 as_fn_error $?
"cannot run test program while cross compiling
6447 See \`config.log' for more details" "$LINENO" 5; }
6449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6450 /* end confdefs.h. */
6452 #include <sys/time.h>
6453 #include <sys/resource.h>
6456 struct rlimit corelim;
6457 corelim.rlim_cur = corelim.rlim_max = RLIM_INFINITY;
6458 if (setrlimit(RLIMIT_CORE, &corelim))
6464 if ac_fn_c_try_run
"$LINENO"; then :
6465 ac_cv_force_core
=yes
6469 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6470 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_force_core" >&5
6476 $as_echo "$ac_cv_force_core" >&6; }
6477 if test "$ac_cv_force_core" = "yes"; then
6479 $as_echo "#define FORCE_CORE /**/" >>confdefs.h
6482 for ac_func
in vprintf
6484 ac_fn_c_check_func
"$LINENO" "vprintf" "ac_cv_func_vprintf"
6485 if test "x$ac_cv_func_vprintf" = xyes
; then :
6486 cat >>confdefs.h
<<_ACEOF
6487 #define HAVE_VPRINTF 1
6490 ac_fn_c_check_func
"$LINENO" "_doprnt" "ac_cv_func__doprnt"
6491 if test "x$ac_cv_func__doprnt" = xyes
; then :
6493 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
6501 for ac_func
in gettimeofday
6503 ac_fn_c_check_func
"$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
6504 if test "x$ac_cv_func_gettimeofday" = xyes
; then :
6505 cat >>confdefs.h
<<_ACEOF
6506 #define HAVE_GETTIMEOFDAY 1
6509 $as_echo "#define GETTIMEOFDAY /**/" >>confdefs.h
6512 for ac_func
in lrand48
6514 ac_fn_c_check_func
"$LINENO" "lrand48" "ac_cv_func_lrand48"
6515 if test "x$ac_cv_func_lrand48" = xyes
; then :
6516 cat >>confdefs.h
<<_ACEOF
6517 #define HAVE_LRAND48 1
6520 $as_echo "#define LRADN48 /**/" >>confdefs.h
6528 for ac_func
in getrusage
6530 ac_fn_c_check_func
"$LINENO" "getrusage" "ac_cv_func_getrusage"
6531 if test "x$ac_cv_func_getrusage" = xyes
; then :
6532 cat >>confdefs.h
<<_ACEOF
6533 #define HAVE_GETRUSAGE 1
6536 $as_echo "#define GETRUSAGE_2 /**/" >>confdefs.h
6539 for ac_func
in times
6541 ac_fn_c_check_func
"$LINENO" "times" "ac_cv_func_times"
6542 if test "x$ac_cv_func_times" = xyes
; then :
6543 cat >>confdefs.h
<<_ACEOF
6544 #define HAVE_TIMES 1
6547 $as_echo "#define TIMES_2 /**/" >>confdefs.h
6555 for ac_func
in setproctitle
6557 ac_fn_c_check_func
"$LINENO" "setproctitle" "ac_cv_func_setproctitle"
6558 if test "x$ac_cv_func_setproctitle" = xyes
; then :
6559 cat >>confdefs.h
<<_ACEOF
6560 #define HAVE_SETPROCTITLE 1
6563 $as_echo "#define HAVE_SETPROCTITLE /**/" >>confdefs.h
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproctitle in -lutil" >&5
6567 $as_echo_n "checking for setproctitle in -lutil... " >&6; }
6568 if ${ac_cv_lib_util_setproctitle+:} false
; then :
6569 $as_echo_n "(cached) " >&6
6571 ac_check_lib_save_LIBS
=$LIBS
6573 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6574 /* end confdefs.h. */
6576 /* Override any GCC internal prototype to avoid an error.
6577 Use char because int might match the return type of a GCC
6578 builtin and then its argument prototype would still apply. */
6582 char setproctitle ();
6586 return setproctitle ();
6591 if ac_fn_c_try_link
"$LINENO"; then :
6592 ac_cv_lib_util_setproctitle
=yes
6594 ac_cv_lib_util_setproctitle
=no
6596 rm -f core conftest.err conftest.
$ac_objext \
6597 conftest
$ac_exeext conftest.
$ac_ext
6598 LIBS
=$ac_check_lib_save_LIBS
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_setproctitle" >&5
6601 $as_echo "$ac_cv_lib_util_setproctitle" >&6; }
6602 if test "x$ac_cv_lib_util_setproctitle" = xyes
; then :
6604 $as_echo "#define HAVE_SETPROCTITLE /**/" >>confdefs.h
6606 IRCDLIBS
="$IRCDLIBS-lutil"
6609 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6610 /* end confdefs.h. */
6611 #include <sys/exec.h>
6614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6615 $EGREP "#define.*PS_STRINGS.*" >/dev
/null
2>&1; then :
6617 $as_echo "#define HAVE_PSSTRINGS /**/" >>confdefs.h
6620 for ac_func
in pstat
6622 ac_fn_c_check_func
"$LINENO" "pstat" "ac_cv_func_pstat"
6623 if test "x$ac_cv_func_pstat" = xyes
; then :
6624 cat >>confdefs.h
<<_ACEOF
6625 #define HAVE_PSTAT 1
6628 $as_echo "#define HAVE_PSTAT /**/" >>confdefs.h
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type of signals you have" >&5
6647 $as_echo_n "checking what type of signals you have... " >&6; }
6648 if ${ac_cv_sigtype+:} false
; then :
6649 $as_echo_n "(cached) " >&6
6652 if test "$cross_compiling" = yes; then :
6653 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6654 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6655 as_fn_error $?
"cannot run test program while cross compiling
6656 See \`config.log' for more details" "$LINENO" 5; }
6658 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6659 /* end confdefs.h. */
6663 sigaction(SIGTERM, (struct sigaction *)0L, (struct sigaction *)0L);
6667 if ac_fn_c_try_run
"$LINENO"; then :
6671 if test "$cross_compiling" = yes; then :
6672 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6673 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6674 as_fn_error $?
"cannot run test program while cross compiling
6675 See \`config.log' for more details" "$LINENO" 5; }
6677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6678 /* end confdefs.h. */
6687 kill(getpid(), SIGTERM);
6692 signal(SIGTERM, handler);
6693 kill(getpid(), SIGTERM);
6698 if ac_fn_c_try_run
"$LINENO"; then :
6703 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6704 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6708 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6709 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sigtype" >&5
6714 $as_echo "$ac_cv_sigtype" >&6; }
6716 if test "$ac_cv_sigtype" = "POSIX"; then
6718 $as_echo "#define POSIX_SIGNALS /**/" >>confdefs.h
6720 elif test "$ac_cv_sigtype" = "BSD"; then
6722 $as_echo "#define BSD_RELIABLE_SIGNALS /**/" >>confdefs.h
6726 $as_echo "#define SYSV_UNRELIABLE_SIGNALS /**/" >>confdefs.h
6729 for ac_func
in strtoken
6731 ac_fn_c_check_func
"$LINENO" "strtoken" "ac_cv_func_strtoken"
6732 if test "x$ac_cv_func_strtoken" = xyes
; then :
6733 cat >>confdefs.h
<<_ACEOF
6734 #define HAVE_STRTOKEN 1
6739 $as_echo "#define NEED_STRTOKEN /**/" >>confdefs.h
6744 for ac_func
in strtok
6746 ac_fn_c_check_func
"$LINENO" "strtok" "ac_cv_func_strtok"
6747 if test "x$ac_cv_func_strtok" = xyes
; then :
6748 cat >>confdefs.h
<<_ACEOF
6749 #define HAVE_STRTOK 1
6754 $as_echo "#define NEED_STRTOK /**/" >>confdefs.h
6759 for ac_func
in strerror
6761 ac_fn_c_check_func
"$LINENO" "strerror" "ac_cv_func_strerror"
6762 if test "x$ac_cv_func_strerror" = xyes
; then :
6763 cat >>confdefs.h
<<_ACEOF
6764 #define HAVE_STRERROR 1
6769 $as_echo "#define NEED_STRERROR /**/" >>confdefs.h
6774 for ac_func
in index
6776 ac_fn_c_check_func
"$LINENO" "index" "ac_cv_func_index"
6777 if test "x$ac_cv_func_index" = xyes
; then :
6778 cat >>confdefs.h
<<_ACEOF
6779 #define HAVE_INDEX 1
6784 $as_echo "#define NOINDEX /**/" >>confdefs.h
6789 for ac_func
in strtoul
6791 ac_fn_c_check_func
"$LINENO" "strtoul" "ac_cv_func_strtoul"
6792 if test "x$ac_cv_func_strtoul" = xyes
; then :
6793 cat >>confdefs.h
<<_ACEOF
6794 #define HAVE_STRTOUL 1
6802 for ac_func
in bcopy
6804 ac_fn_c_check_func
"$LINENO" "bcopy" "ac_cv_func_bcopy"
6805 if test "x$ac_cv_func_bcopy" = xyes
; then :
6806 cat >>confdefs.h
<<_ACEOF
6807 #define HAVE_BCOPY 1
6812 $as_echo "#define NEED_BCOPY /**/" >>confdefs.h
6819 ac_fn_c_check_func
"$LINENO" "bcmp" "ac_cv_func_bcmp"
6820 if test "x$ac_cv_func_bcmp" = xyes
; then :
6821 cat >>confdefs.h
<<_ACEOF
6827 $as_echo "#define NEED_BCMP /**/" >>confdefs.h
6832 for ac_func
in bzero
6834 ac_fn_c_check_func
"$LINENO" "bzero" "ac_cv_func_bzero"
6835 if test "x$ac_cv_func_bzero" = xyes
; then :
6836 cat >>confdefs.h
<<_ACEOF
6837 #define HAVE_BZERO 1
6842 $as_echo "#define NEED_BZERO /**/" >>confdefs.h
6847 for ac_func
in strcasecmp
6849 ac_fn_c_check_func
"$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
6850 if test "x$ac_cv_func_strcasecmp" = xyes
; then :
6851 cat >>confdefs.h
<<_ACEOF
6852 #define HAVE_STRCASECMP 1
6855 $as_echo "#define GOT_STRCASECMP /**/" >>confdefs.h
6861 LIBS
="$LIBS $SOCKLIB $INETLIB"
6862 for ac_func
in inet_addr
6864 ac_fn_c_check_func
"$LINENO" "inet_addr" "ac_cv_func_inet_addr"
6865 if test "x$ac_cv_func_inet_addr" = xyes
; then :
6866 cat >>confdefs.h
<<_ACEOF
6867 #define HAVE_INET_ADDR 1
6872 $as_echo "#define NEED_INET_ADDR /**/" >>confdefs.h
6877 for ac_func
in inet_ntoa
6879 ac_fn_c_check_func
"$LINENO" "inet_ntoa" "ac_cv_func_inet_ntoa"
6880 if test "x$ac_cv_func_inet_ntoa" = xyes
; then :
6881 cat >>confdefs.h
<<_ACEOF
6882 #define HAVE_INET_NTOA 1
6887 $as_echo "#define NEED_INET_NTOA /**/" >>confdefs.h
6893 for ac_func
in syslog
6895 ac_fn_c_check_func
"$LINENO" "syslog" "ac_cv_func_syslog"
6896 if test "x$ac_cv_func_syslog" = xyes
; then :
6897 cat >>confdefs.h
<<_ACEOF
6898 #define HAVE_SYSLOG 1
6901 $as_echo "#define HAVE_SYSLOG /**/" >>confdefs.h
6911 # Check whether --with-nick-history was given.
6912 if test "${with_nick_history+set}" = set; then :
6913 withval
=$with_nick_history;
6914 cat >>confdefs.h
<<_ACEOF
6915 #define NICKNAMEHISTORYLENGTH $withval
6920 $as_echo "#define NICKNAMEHISTORYLENGTH 2000" >>confdefs.h
6925 # Check whether --with-sendq was given.
6926 if test "${with_sendq+set}" = set; then :
6927 withval
=$with_sendq;
6928 cat >>confdefs.h
<<_ACEOF
6929 #define MAXSENDQLENGTH $withval
6934 $as_echo "#define MAXSENDQLENGTH 3000000" >>confdefs.h
6939 # Check whether --with-permissions was given.
6940 if test "${with_permissions+set}" = set; then :
6941 withval
=$with_permissions;
6942 cat >>confdefs.h
<<_ACEOF
6943 #define DEFAULT_PERMISSIONS 0$withval
6948 $as_echo "#define DEFAULT_PERMISSIONS 0600" >>confdefs.h
6954 # Check whether --with-bindir was given.
6955 if test "${with_bindir+set}" = set; then :
6956 withval
=$with_bindir;
6957 cat >>confdefs.h
<<_ACEOF
6958 #define BINDIR "$withval"
6964 cat >>confdefs.h
<<_ACEOF
6965 #define BINDIR "$HOME/unrealircd/bin"
6968 BINDIR
="$HOME/unrealircd/bin"
6973 # Check whether --with-scriptdir was given.
6974 if test "${with_scriptdir+set}" = set; then :
6975 withval
=$with_scriptdir;
6976 cat >>confdefs.h
<<_ACEOF
6977 #define SCRIPTDIR "$withval"
6980 SCRIPTDIR
="$withval"
6983 cat >>confdefs.h
<<_ACEOF
6984 #define SCRIPTDIR "$HOME/unrealircd"
6987 SCRIPTDIR
="$HOME/unrealircd"
6992 # Check whether --with-confdir was given.
6993 if test "${with_confdir+set}" = set; then :
6994 withval
=$with_confdir;
6995 cat >>confdefs.h
<<_ACEOF
6996 #define CONFDIR "$withval"
7002 cat >>confdefs.h
<<_ACEOF
7003 #define CONFDIR "$HOME/unrealircd/conf"
7006 CONFDIR
="$HOME/unrealircd/conf"
7011 # Check whether --with-modulesdir was given.
7012 if test "${with_modulesdir+set}" = set; then :
7013 withval
=$with_modulesdir;
7014 cat >>confdefs.h
<<_ACEOF
7015 #define MODULESDIR "$withval"
7018 MODULESDIR
="$withval"
7021 cat >>confdefs.h
<<_ACEOF
7022 #define MODULESDIR "$HOME/unrealircd/modules"
7025 MODULESDIR
="$HOME/unrealircd/modules"
7030 # Check whether --with-logdir was given.
7031 if test "${with_logdir+set}" = set; then :
7032 withval
=$with_logdir;
7033 cat >>confdefs.h
<<_ACEOF
7034 #define LOGDIR "$withval"
7040 cat >>confdefs.h
<<_ACEOF
7041 #define LOGDIR "$HOME/unrealircd/logs"
7044 LOGDIR
="$HOME/unrealircd/logs"
7049 # Check whether --with-cachedir was given.
7050 if test "${with_cachedir+set}" = set; then :
7051 withval
=$with_cachedir;
7052 cat >>confdefs.h
<<_ACEOF
7053 #define CACHEDIR "$withval"
7059 cat >>confdefs.h
<<_ACEOF
7060 #define CACHEDIR "$HOME/unrealircd/cache"
7063 CACHEDIR
="$HOME/unrealircd/cache"
7068 # Check whether --with-tmpdir was given.
7069 if test "${with_tmpdir+set}" = set; then :
7070 withval
=$with_tmpdir;
7071 cat >>confdefs.h
<<_ACEOF
7072 #define TMPDIR "$withval"
7078 cat >>confdefs.h
<<_ACEOF
7079 #define TMPDIR "$HOME/unrealircd/tmp"
7082 TMPDIR
="$HOME/unrealircd/tmp"
7087 # Check whether --with-datadir was given.
7088 if test "${with_datadir+set}" = set; then :
7089 withval
=$with_datadir;
7090 cat >>confdefs.h
<<_ACEOF
7091 #define PERMDATADIR "$withval"
7094 PERMDATADIR
="$withval"
7097 cat >>confdefs.h
<<_ACEOF
7098 #define DATADIR "$HOME/unrealircd/data"
7101 PERMDATADIR
="$HOME/unrealircd/data"
7106 # Check whether --with-docdir was given.
7107 if test "${with_docdir+set}" = set; then :
7108 withval
=$with_docdir;
7109 cat >>confdefs.h
<<_ACEOF
7110 #define DOCDIR "$withval"
7116 cat >>confdefs.h
<<_ACEOF
7117 #define DOCDIR "$HOME/unrealircd/doc"
7120 DOCDIR
="$HOME/unrealircd/doc"
7125 # Check whether --with-pidfile was given.
7126 if test "${with_pidfile+set}" = set; then :
7127 withval
=$with_pidfile;
7128 cat >>confdefs.h
<<_ACEOF
7129 #define PIDFILE "$withval"
7135 cat >>confdefs.h
<<_ACEOF
7136 #define PIDFILE "$HOME/unrealircd/data/unrealircd.pid"
7139 PIDFILE
="$HOME/unrealircd/data/unrealircd.pid"
7144 # Check whether --with-privatelibdir was given.
7145 if test "${with_privatelibdir+set}" = set; then :
7146 withval
=$with_privatelibdir;
7148 with_privatelibdir
="yes"
7151 if test "x$with_privatelibdir" = "xno"; then :
7153 elif test "x$with_privatelibdir" = "xyes"; then :
7154 PRIVATELIBDIR
="$HOME/unrealircd/lib"
7156 PRIVATELIBDIR
="$with_privatelibdir"
7158 if test "x$PRIVATELIBDIR" = "x"; then :
7159 LDFLAGS_PRIVATELIBS
=""
7162 cat >>confdefs.h
<<_ACEOF
7163 #define PRIVATELIBDIR "$PRIVATELIBDIR"
7166 LDFLAGS_PRIVATELIBS
="-Wl,-rpath,$PRIVATELIBDIR"
7167 LDFLAGS
="$LDFLAGS $LDFLAGS_PRIVATELIBS"
7184 # Check whether --with-fd-setsize was given.
7185 if test "${with_fd_setsize+set}" = set; then :
7186 withval
=$with_fd_setsize; ac_fd
=$withval
7192 cat >>confdefs.h
<<_ACEOF
7193 #define MAXCONNECTIONS $ac_fd
7197 # Check whether --enable-prefixaq was given.
7198 if test "${enable_prefixaq+set}" = set; then :
7199 enableval
=$enable_prefixaq;
7204 if test $enable_prefixaq = "yes"; then :
7206 $as_echo "#define PREFIX_AQ /**/" >>confdefs.h
7211 # Check whether --with-showlistmodes was given.
7212 if test "${with_showlistmodes+set}" = set; then :
7213 withval
=$with_showlistmodes; if test $withval = "yes"; then :
7215 $as_echo "#define LIST_SHOW_MODES /**/" >>confdefs.h
7221 # Check whether --with-topicisnuhost was given.
7222 if test "${with_topicisnuhost+set}" = set; then :
7223 withval
=$with_topicisnuhost; if test $withval = "yes"; then :
7225 $as_echo "#define TOPIC_NICK_IS_NUHOST /**/" >>confdefs.h
7231 # Check whether --with-shunnotices was given.
7232 if test "${with_shunnotices+set}" = set; then :
7233 withval
=$with_shunnotices; if test $withval = "yes"; then :
7235 $as_echo "#define SHUN_NOTICES /**/" >>confdefs.h
7241 # Check whether --with-no-operoverride was given.
7242 if test "${with_no_operoverride+set}" = set; then :
7243 withval
=$with_no_operoverride; if test $withval = "yes"; then :
7245 $as_echo "#define NO_OPEROVERRIDE /**/" >>confdefs.h
7251 # Check whether --with-disableusermod was given.
7252 if test "${with_disableusermod+set}" = set; then :
7253 withval
=$with_disableusermod; if test $withval = "yes"; then :
7255 $as_echo "#define DISABLE_USERMOD /**/" >>confdefs.h
7261 # Check whether --with-operoverride-verify was given.
7262 if test "${with_operoverride_verify+set}" = set; then :
7263 withval
=$with_operoverride_verify; if test $withval = "yes"; then :
7265 $as_echo "#define OPEROVERRIDE_VERIFY /**/" >>confdefs.h
7271 # Check whether --with-disable-extendedban-stacking was given.
7272 if test "${with_disable_extendedban_stacking+set}" = set; then :
7273 withval
=$with_disable_extendedban_stacking; if test $withval = "yes"; then :
7275 $as_echo "#define DISABLE_STACKED_EXTBANS /**/" >>confdefs.h
7281 # Check whether --with-system-tre was given.
7282 if test "${with_system_tre+set}" = set; then :
7283 withval
=$with_system_tre;
7289 # Check whether --with-system-pcre2 was given.
7290 if test "${with_system_pcre2+set}" = set; then :
7291 withval
=$with_system_pcre2;
7293 with_system_pcre2
=no
7297 # Check whether --with-system-cares was given.
7298 if test "${with_system_cares+set}" = set; then :
7299 withval
=$with_system_cares;
7301 with_system_cares
=yes
7305 # Check whether --enable-ssl was given.
7306 if test "${enable_ssl+set}" = set; then :
7307 enableval
=$enable_ssl;
7312 if test $enable_ssl != "no"; then :
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl" >&5
7315 $as_echo_n "checking for openssl... " >&6; }
7316 for dir
in $enable_ssl /usr
/local
/opt
/openssl
/usr
/local
/ssl
/usr
/lib
/ssl
/usr
/ssl
/usr
/pkg
/usr
/sfw
/usr
/local /usr
; do
7318 if test -f "$dir/include/openssl/ssl.h"; then
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir/include/openssl" >&5
7320 $as_echo "found in $ssldir/include/openssl" >&6; }
7322 if test ! "$ssldir" = "/usr" ; then
7323 CFLAGS
="$CFLAGS -I$ssldir/include";
7327 if test -f "$dir/include/ssl.h"; then
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir/include" >&5
7329 $as_echo "found in $ssldir/include" >&6; }
7331 if test ! "$ssldir" = "/usr" ; then
7332 CFLAGS
="$CFLAGS -I$ssldir/include";
7337 if test x_
$found_ssl != x_yes
; then
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7339 $as_echo "not found" >&6; }
7341 echo "Apparently you do not have both the openssl binary and openssl development libraries installed."
7342 echo "Please install the needed binaries and libraries."
7343 echo "The package is often called 'openssl-dev', 'openssl-devel' or 'libssl-dev'"
7344 echo "After doing so re-run ./Config"
7347 CRYPTOLIB
="-lssl -lcrypto";
7348 if test ! "$ssldir" = "/usr" ; then
7349 LDFLAGS
="$LDFLAGS -L$ssldir/lib";
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_set1_curves_list in SSL library" >&5
7357 $as_echo_n "checking for SSL_CTX_set1_curves_list in SSL library... " >&6; }
7359 ac_cpp
='$CPP $CPPFLAGS'
7360 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7361 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7362 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7365 LIBS
="$LIBS $CRYPTOLIB"
7366 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7367 /* end confdefs.h. */
7368 #include <openssl/ssl.h>
7372 SSL_CTX *ctx = NULL; SSL_CTX_set1_curves_list(ctx, "test");
7377 if ac_fn_c_try_link
"$LINENO"; then :
7382 rm -f core conftest.err conftest.
$ac_objext \
7383 conftest
$ac_exeext conftest.
$ac_ext
7386 ac_cpp
='$CPP $CPPFLAGS'
7387 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7388 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7389 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7391 if test $has_curves = 1; then
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7393 $as_echo "yes" >&6; }
7395 $as_echo "#define HAS_SSL_CTX_SET1_CURVES_LIST /**/" >>confdefs.h
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7399 $as_echo "no" >&6; }
7402 # Check whether --enable-dynamic-linking was given.
7403 if test "${enable_dynamic_linking+set}" = set; then :
7404 enableval
=$enable_dynamic_linking; enable_dynamic_linking
=$enableval
7406 enable_dynamic_linking
="yes"
7409 if test $enable_dynamic_linking = "yes"; then :
7411 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
7412 if test "x$ac_cv_func_dlopen" = xyes
; then :
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
7416 $as_echo_n "checking for dlopen in -ldl... " >&6; }
7417 if ${ac_cv_lib_dl_dlopen+:} false
; then :
7418 $as_echo_n "(cached) " >&6
7420 ac_check_lib_save_LIBS
=$LIBS
7422 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7423 /* end confdefs.h. */
7425 /* Override any GCC internal prototype to avoid an error.
7426 Use char because int might match the return type of a GCC
7427 builtin and then its argument prototype would still apply. */
7440 if ac_fn_c_try_link
"$LINENO"; then :
7441 ac_cv_lib_dl_dlopen
=yes
7443 ac_cv_lib_dl_dlopen
=no
7445 rm -f core conftest.err conftest.
$ac_objext \
7446 conftest
$ac_exeext conftest.
$ac_ext
7447 LIBS
=$ac_check_lib_save_LIBS
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
7450 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
7451 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
7452 IRCDLIBS
="$IRCDLIBS -ldl"
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Dynamic linking is not enabled because dlopen was not found" >&5
7456 $as_echo "$as_me: WARNING: Dynamic linking is not enabled because dlopen was not found" >&2;}
7457 $as_echo "#define STATIC_LINKING 1" >>confdefs.h
7467 CFLAGS
="$CFLAGS -Wl,-export-dynamic"
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need the -export-dynamic flag" >&5
7469 $as_echo_n "checking if we need the -export-dynamic flag... " >&6; }
7470 if ${ac_cv_export_dynamic+:} false
; then :
7471 $as_echo_n "(cached) " >&6
7474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7475 /* end confdefs.h. */
7485 if ac_fn_c_try_link
"$LINENO"; then :
7486 ac_cv_export_dynamic
=yes
7488 ac_cv_export_dynamic
=no
7490 rm -f core conftest.err conftest.
$ac_objext \
7491 conftest
$ac_exeext conftest.
$ac_ext
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_export_dynamic" >&5
7494 $as_echo "$ac_cv_export_dynamic" >&6; }
7496 if test "$ac_cv_export_dynamic" = "yes"; then
7497 DYNAMIC_LDFLAGS
="-Wl,-export-dynamic"
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option to produce PIC" >&5
7501 $as_echo_n "checking for compiler option to produce PIC... " >&6; }
7502 if ${ac_cv_pic+:} false
; then :
7503 $as_echo_n "(cached) " >&6
7506 if test "$ac_cv_c_compiler_gnu" = "yes"; then
7507 ac_cv_pic
="-fPIC -DPIC -shared"
7510 ac_cv_pic
="-std=gnu89 -bundle -flat_namespace -undefined suppress"
7519 ac_cv_pic
="-KPIC -DPIC -G"
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pic" >&5
7526 $as_echo "$ac_cv_pic" >&6; }
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system prepends an underscore on symbols" >&5
7528 $as_echo_n "checking if your system prepends an underscore on symbols... " >&6; }
7529 if ${ac_cv_underscore+:} false
; then :
7530 $as_echo_n "(cached) " >&6
7533 cat >uscore.c
<< __EOF__
7538 $CC -o uscore
$CFLAGS uscore.c
1>&5
7539 if test -z "`strings -a uscore |grep '^_main$'`"; then
7542 ac_cv_underscore
=yes
7544 rm -f uscore uscore.c
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_underscore" >&5
7548 $as_echo "$ac_cv_underscore" >&6; }
7549 if test "$ac_cv_underscore" = "yes"; then
7551 $as_echo "#define UNDERSCORE /**/" >>confdefs.h
7555 MODULEFLAGS
="$ac_cv_pic $DYNAMIC_LDFLAGS"
7559 $as_echo "#define STATIC_LINKING /**/" >>confdefs.h
7563 # Check whether --enable-werror was given.
7564 if test "${enable_werror+set}" = set; then :
7565 enableval
=$enable_werror; ac_cv_werror
="$enableval"
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FD_SETSIZE is large enough to allow $ac_fd file descriptors" >&5
7572 $as_echo_n "checking if FD_SETSIZE is large enough to allow $ac_fd file descriptors... " >&6; }
7573 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7574 /* end confdefs.h. */
7576 #include <sys/types.h>
7577 #include <sys/time.h>
7579 #if FD_SETSIZE < $ac_fd
7580 #error FD_SETSIZE is smaller than $ac_fd
7586 if ac_fn_c_try_compile
"$LINENO"; then :
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7588 $as_echo "yes" >&6; }
7591 # must be passed on the commandline to avoid a ``warning, you redefined something''
7592 FD_SETSIZE
="-DFD_SETSIZE=$ac_fd"
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7594 $as_echo "no" >&6; }
7597 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7603 $as_echo "#define _SOLARIS /**/" >>confdefs.h
7605 IRCDLIBS
="$IRCDLIBS -lresolv "
7611 ac_fn_c_check_func
"$LINENO" "poll" "ac_cv_func_poll"
7612 if test "x$ac_cv_func_poll" = xyes
; then :
7613 cat >>confdefs.h
<<_ACEOF
7617 $as_echo "#define HAVE_POLL /**/" >>confdefs.h
7622 for ac_func
in epoll_create epoll_ctl epoll_wait
7624 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7625 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7626 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7627 cat >>confdefs.h
<<_ACEOF
7628 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7631 $as_echo "#define HAVE_EPOLL /**/" >>confdefs.h
7636 for ac_func
in kqueue kevent
7638 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7639 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7640 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7641 cat >>confdefs.h
<<_ACEOF
7642 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7645 $as_echo "#define HAVE_KQUEUE /**/" >>confdefs.h
7651 export PATH_SEPARATOR
7660 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7661 if test -n "$ac_tool_prefix"; then
7662 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7663 set dummy
${ac_tool_prefix}pkg
-config; ac_word
=$2
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7665 $as_echo_n "checking for $ac_word... " >&6; }
7666 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
7667 $as_echo_n "(cached) " >&6
7671 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
7674 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7678 test -z "$as_dir" && as_dir
=.
7679 for ac_exec_ext
in '' $ac_executable_extensions; do
7680 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7681 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7692 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
7693 if test -n "$PKG_CONFIG"; then
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7695 $as_echo "$PKG_CONFIG" >&6; }
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7698 $as_echo "no" >&6; }
7703 if test -z "$ac_cv_path_PKG_CONFIG"; then
7704 ac_pt_PKG_CONFIG
=$PKG_CONFIG
7705 # Extract the first word of "pkg-config", so it can be a program name with args.
7706 set dummy pkg
-config; ac_word
=$2
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7708 $as_echo_n "checking for $ac_word... " >&6; }
7709 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
7710 $as_echo_n "(cached) " >&6
7712 case $ac_pt_PKG_CONFIG in
7714 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7717 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7721 test -z "$as_dir" && as_dir
=.
7722 for ac_exec_ext
in '' $ac_executable_extensions; do
7723 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7724 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7735 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
7736 if test -n "$ac_pt_PKG_CONFIG"; then
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7738 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7741 $as_echo "no" >&6; }
7744 if test "x$ac_pt_PKG_CONFIG" = x
; then
7747 case $cross_compiling:$ac_tool_warned in
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7750 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7751 ac_tool_warned
=yes ;;
7753 PKG_CONFIG
=$ac_pt_PKG_CONFIG
7756 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
7760 if test -n "$PKG_CONFIG"; then
7761 _pkg_min_version
=0.9.0
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7763 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7764 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7766 $as_echo "yes" >&6; }
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7769 $as_echo "no" >&6; }
7773 if test "x$with_system_tre" = "xno"; then :
7775 tre_version
="0.8.0-git"
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: extracting TRE regex library" >&5
7777 $as_echo "extracting TRE regex library" >&6; }
7780 rm -rf tre
-$tre_version regexp
7781 if test "x$ac_cv_path_GUNZIP" = "x" ; then
7784 cp tre.
tar.gz tre.
tar.gz.bak
7785 gunzip
-f tre.
tar.gz
7786 cp tre.
tar.gz.bak tre.
tar.gz
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: configuring TRE regex library" >&5
7790 $as_echo "configuring TRE regex library" >&6; }
7792 .
/configure
--disable-agrep --enable-shared --disable-system-abi --disable-wchar --disable-multibyte --prefix=$cur_dir/extras
/regexp
--libdir=$PRIVATELIBDIR || exit 1
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: compiling TRE regex library" >&5
7794 $as_echo "compiling TRE regex library" >&6; }
7795 $ac_cv_prog_MAKER || exit 1
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: installing TRE regex library" >&5
7797 $as_echo "installing TRE regex library" >&6; }
7798 $ac_cv_prog_MAKER install || exit 1
7799 TRE_CFLAGS
="-I$cur_dir/extras/regexp/include"
7803 if test -n "$ac_cv_path_PKGCONFIG"; then :
7804 TRE_LIBS
="`$ac_cv_path_PKGCONFIG --libs tre.pc`"
7806 if test -z "$TRE_LIBS"; then :
7807 TRE_LIBS
="$PRIVATELIBDIR/libtre.so"
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TRE" >&5
7817 $as_echo_n "checking for TRE... " >&6; }
7819 if test -n "$TRE_CFLAGS"; then
7820 pkg_cv_TRE_CFLAGS
="$TRE_CFLAGS"
7821 elif test -n "$PKG_CONFIG"; then
7822 if test -n "$PKG_CONFIG" && \
7823 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tre >= 0.7.5\""; } >&5
7824 ($PKG_CONFIG --exists --print-errors "tre >= 0.7.5") 2>&5
7826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7827 test $ac_status = 0; }; then
7828 pkg_cv_TRE_CFLAGS
=`$PKG_CONFIG --cflags "tre >= 0.7.5" 2>/dev/null`
7829 test "x$?" != "x0" && pkg_failed
=yes
7836 if test -n "$TRE_LIBS"; then
7837 pkg_cv_TRE_LIBS
="$TRE_LIBS"
7838 elif test -n "$PKG_CONFIG"; then
7839 if test -n "$PKG_CONFIG" && \
7840 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tre >= 0.7.5\""; } >&5
7841 ($PKG_CONFIG --exists --print-errors "tre >= 0.7.5") 2>&5
7843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7844 test $ac_status = 0; }; then
7845 pkg_cv_TRE_LIBS
=`$PKG_CONFIG --libs "tre >= 0.7.5" 2>/dev/null`
7846 test "x$?" != "x0" && pkg_failed
=yes
7856 if test $pkg_failed = yes; then
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7858 $as_echo "no" >&6; }
7860 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7861 _pkg_short_errors_supported
=yes
7863 _pkg_short_errors_supported
=no
7865 if test $_pkg_short_errors_supported = yes; then
7866 TRE_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "tre >= 0.7.5" 2>&1`
7868 TRE_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "tre >= 0.7.5" 2>&1`
7870 # Put the nasty error message in config.log where it belongs
7871 echo "$TRE_PKG_ERRORS" >&5
7873 as_fn_error $?
"Package requirements (tre >= 0.7.5) were not met:
7877 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7878 installed software in a non-standard prefix.
7880 Alternatively, you may set the environment variables TRE_CFLAGS
7881 and TRE_LIBS to avoid the need to call pkg-config.
7882 See the pkg-config man page for more details." "$LINENO" 5
7883 elif test $pkg_failed = untried
; then
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7885 $as_echo "no" >&6; }
7886 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7887 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7888 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
7889 is in your PATH or set the PKG_CONFIG environment variable to the full
7892 Alternatively, you may set the environment variables TRE_CFLAGS
7893 and TRE_LIBS to avoid the need to call pkg-config.
7894 See the pkg-config man page for more details.
7896 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7897 See \`config.log' for more details" "$LINENO" 5; }
7899 TRE_CFLAGS
=$pkg_cv_TRE_CFLAGS
7900 TRE_LIBS
=$pkg_cv_TRE_LIBS
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7902 $as_echo "yes" >&6; }
7908 if test "x$with_system_pcre2" = "xno"; then :
7910 pcre2_version
="10.30"
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: extracting PCRE2 regex library" >&5
7912 $as_echo "extracting PCRE2 regex library" >&6; }
7915 rm -rf pcre2
-$pcre2_version pcre2
7916 if test "x$ac_cv_path_GUNZIP" = "x" ; then
7917 tar xfz pcre2.
tar.gz
7919 cp pcre2.
tar.gz pcre2.
tar.gz.bak
7920 gunzip
-f pcre2.
tar.gz
7921 cp pcre2.
tar.gz.bak pcre2.
tar.gz
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: configuring PCRE2 regex library" >&5
7925 $as_echo "configuring PCRE2 regex library" >&6; }
7926 cd pcre2
-$pcre2_version
7927 .
/configure
--enable-jit --enable-shared --disable-unicode --prefix=$cur_dir/extras
/pcre2
--libdir=$PRIVATELIBDIR || exit 1
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: compiling PCRE2 regex library" >&5
7929 $as_echo "compiling PCRE2 regex library" >&6; }
7930 $ac_cv_prog_MAKER || exit 1
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: installing PCRE2 regex library" >&5
7932 $as_echo "installing PCRE2 regex library" >&6; }
7933 $ac_cv_prog_MAKER install || exit 1
7934 PCRE2_CFLAGS
="-I$cur_dir/extras/pcre2/include"
7938 if test -n "$ac_cv_path_PKGCONFIG"; then :
7939 PCRE2_LIBS
="`$ac_cv_path_PKGCONFIG --libs libpcre2-8.pc`"
7941 if test -z "$PCRE2_LIBS"; then :
7942 PCRE2_LIBS
="$PRIVATELIBDIR/libpcre2-8.so"
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRE2" >&5
7952 $as_echo_n "checking for PCRE2... " >&6; }
7954 if test -n "$PCRE2_CFLAGS"; then
7955 pkg_cv_PCRE2_CFLAGS
="$PCRE2_CFLAGS"
7956 elif test -n "$PKG_CONFIG"; then
7957 if test -n "$PKG_CONFIG" && \
7958 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre2-8 >= 10.00\""; } >&5
7959 ($PKG_CONFIG --exists --print-errors "libpcre2-8 >= 10.00") 2>&5
7961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7962 test $ac_status = 0; }; then
7963 pkg_cv_PCRE2_CFLAGS
=`$PKG_CONFIG --cflags "libpcre2-8 >= 10.00" 2>/dev/null`
7964 test "x$?" != "x0" && pkg_failed
=yes
7971 if test -n "$PCRE2_LIBS"; then
7972 pkg_cv_PCRE2_LIBS
="$PCRE2_LIBS"
7973 elif test -n "$PKG_CONFIG"; then
7974 if test -n "$PKG_CONFIG" && \
7975 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre2-8 >= 10.00\""; } >&5
7976 ($PKG_CONFIG --exists --print-errors "libpcre2-8 >= 10.00") 2>&5
7978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7979 test $ac_status = 0; }; then
7980 pkg_cv_PCRE2_LIBS
=`$PKG_CONFIG --libs "libpcre2-8 >= 10.00" 2>/dev/null`
7981 test "x$?" != "x0" && pkg_failed
=yes
7991 if test $pkg_failed = yes; then
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7993 $as_echo "no" >&6; }
7995 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7996 _pkg_short_errors_supported
=yes
7998 _pkg_short_errors_supported
=no
8000 if test $_pkg_short_errors_supported = yes; then
8001 PCRE2_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpcre2-8 >= 10.00" 2>&1`
8003 PCRE2_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libpcre2-8 >= 10.00" 2>&1`
8005 # Put the nasty error message in config.log where it belongs
8006 echo "$PCRE2_PKG_ERRORS" >&5
8008 as_fn_error $?
"Package requirements (libpcre2-8 >= 10.00) were not met:
8012 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8013 installed software in a non-standard prefix.
8015 Alternatively, you may set the environment variables PCRE2_CFLAGS
8016 and PCRE2_LIBS to avoid the need to call pkg-config.
8017 See the pkg-config man page for more details." "$LINENO" 5
8018 elif test $pkg_failed = untried
; then
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8020 $as_echo "no" >&6; }
8021 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8022 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8023 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
8024 is in your PATH or set the PKG_CONFIG environment variable to the full
8027 Alternatively, you may set the environment variables PCRE2_CFLAGS
8028 and PCRE2_LIBS to avoid the need to call pkg-config.
8029 See the pkg-config man page for more details.
8031 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8032 See \`config.log' for more details" "$LINENO" 5; }
8034 PCRE2_CFLAGS
=$pkg_cv_PCRE2_CFLAGS
8035 PCRE2_LIBS
=$pkg_cv_PCRE2_LIBS
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8037 $as_echo "yes" >&6; }
8043 has_system_cares
="no"
8044 if test "x$with_system_cares" = "xyes"; then :
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CARES" >&5
8049 $as_echo_n "checking for CARES... " >&6; }
8051 if test -n "$CARES_CFLAGS"; then
8052 pkg_cv_CARES_CFLAGS
="$CARES_CFLAGS"
8053 elif test -n "$PKG_CONFIG"; then
8054 if test -n "$PKG_CONFIG" && \
8055 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcares >= 1.6.0\""; } >&5
8056 ($PKG_CONFIG --exists --print-errors "libcares >= 1.6.0") 2>&5
8058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8059 test $ac_status = 0; }; then
8060 pkg_cv_CARES_CFLAGS
=`$PKG_CONFIG --cflags "libcares >= 1.6.0" 2>/dev/null`
8061 test "x$?" != "x0" && pkg_failed
=yes
8068 if test -n "$CARES_LIBS"; then
8069 pkg_cv_CARES_LIBS
="$CARES_LIBS"
8070 elif test -n "$PKG_CONFIG"; then
8071 if test -n "$PKG_CONFIG" && \
8072 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcares >= 1.6.0\""; } >&5
8073 ($PKG_CONFIG --exists --print-errors "libcares >= 1.6.0") 2>&5
8075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8076 test $ac_status = 0; }; then
8077 pkg_cv_CARES_LIBS
=`$PKG_CONFIG --libs "libcares >= 1.6.0" 2>/dev/null`
8078 test "x$?" != "x0" && pkg_failed
=yes
8088 if test $pkg_failed = yes; then
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8090 $as_echo "no" >&6; }
8092 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8093 _pkg_short_errors_supported
=yes
8095 _pkg_short_errors_supported
=no
8097 if test $_pkg_short_errors_supported = yes; then
8098 CARES_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcares >= 1.6.0" 2>&1`
8100 CARES_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libcares >= 1.6.0" 2>&1`
8102 # Put the nasty error message in config.log where it belongs
8103 echo "$CARES_PKG_ERRORS" >&5
8106 elif test $pkg_failed = untried
; then
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8108 $as_echo "no" >&6; }
8111 CARES_CFLAGS
=$pkg_cv_CARES_CFLAGS
8112 CARES_LIBS
=$pkg_cv_CARES_LIBS
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8114 $as_echo "yes" >&6; }
8115 has_system_cares
=yes
8116 if test "x$PRIVATELIBDIR" != "x"; then :
8117 rm -f "$PRIVATELIBDIR/"libcares
*
8122 if test "$has_system_cares" = "no"; then :
8124 cares_version
="1.13.0"
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: extracting c-ares resolver library" >&5
8126 $as_echo "extracting c-ares resolver library" >&6; }
8129 rm -rf c
-ares-$cares_version c
-ares
8130 if test "x$ac_cv_path_GUNZIP" = "x" ; then
8131 tar xfz c
-ares.
tar.gz
8133 cp c
-ares.
tar.gz c
-ares.
tar.gz.bak
8134 gunzip
-f c
-ares.
tar.gz
8135 cp c
-ares.
tar.gz.bak c
-ares.
tar.gz
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: configuring c-ares library" >&5
8139 $as_echo "configuring c-ares library" >&6; }
8140 cd c
-ares-$cares_version
8141 save_cflags
="$CFLAGS"
8142 CFLAGS
="$orig_cflags"
8144 .
/configure
--prefix=$cur_dir/extras
/c
-ares --libdir=$PRIVATELIBDIR --enable-shared || exit 1
8145 CFLAGS
="$save_cflags"
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: compiling c-ares resolver library" >&5
8147 $as_echo "compiling c-ares resolver library" >&6; }
8148 $ac_cv_prog_MAKER || exit 1
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: installing c-ares resolver library" >&5
8150 $as_echo "installing c-ares resolver library" >&6; }
8151 $ac_cv_prog_MAKER install || exit 1
8152 CARES_CFLAGS
="-I$cur_dir/extras/c-ares/include"
8154 CARES_LIBS
="-L$PRIVATELIBDIR"
8157 CARESLIBSALT
="$PRIVATELIBDIR/libcares.so"
8161 CARESLIBSALT
="$CARESLIBSALT"
8164 CARESLIBSALT
="$CARESLIBSALT -lrt"
8167 CARESLIBSALT
="$CARESLIBSALT -lrt"
8171 if test "x$ac_cv_path_PKGCONFIG" = "x" ; then
8172 CARES_LIBS
="$CARES_LIBS $CARESLIBSALT"
8174 CARES_LIBSPRE
="$CARES_LIBS"
8175 CARES_LIBS
="$CARES_LIBS `$ac_cv_path_PKGCONFIG --libs libcares.pc | sed -e 's,-L\([^ ]\+lib\) -lcares,\1/libcares.so,'`"
8176 if test "$CARES_LIBS" = "$CARES_LIBSPRE " ; then
8177 CARES_LIBS
="$CARES_LIBS $CARESLIBSALT"
8185 # Make sure we can run config.sub.
8186 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
8187 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
8190 $as_echo_n "checking build system type... " >&6; }
8191 if ${ac_cv_build+:} false
; then :
8192 $as_echo_n "(cached) " >&6
8194 ac_build_alias
=$build_alias
8195 test "x$ac_build_alias" = x
&&
8196 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
8197 test "x$ac_build_alias" = x
&&
8198 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
8199 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
8200 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
8204 $as_echo "$ac_cv_build" >&6; }
8205 case $ac_cv_build in
8207 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
8210 ac_save_IFS
=$IFS; IFS
='-'
8216 # Remember, the first character of IFS is used to create $*,
8217 # except with old shells:
8220 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
8224 $as_echo_n "checking host system type... " >&6; }
8225 if ${ac_cv_host+:} false
; then :
8226 $as_echo_n "(cached) " >&6
8228 if test "x$host_alias" = x
; then
8229 ac_cv_host
=$ac_cv_build
8231 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
8232 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
8237 $as_echo "$ac_cv_host" >&6; }
8240 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
8243 ac_save_IFS
=$IFS; IFS
='-'
8249 # Remember, the first character of IFS is used to create $*,
8250 # except with old shells:
8253 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
8259 ac_cpp
='$CPP $CPPFLAGS'
8260 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8261 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8262 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8266 # We used to check for pthread.h first, but this fails if pthread.h
8267 # requires special compiler flags (e.g. on True64 or Sequent).
8268 # It gets checked for in the link test anyway.
8270 # First of all, check if the user has set any of the PTHREAD_LIBS,
8271 # etcetera environment variables, and if threads linking works using
8273 if test x
"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x
; then
8274 save_CFLAGS
="$CFLAGS"
8275 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
8277 LIBS
="$PTHREAD_LIBS $LIBS"
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8279 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8280 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8281 /* end confdefs.h. */
8283 /* Override any GCC internal prototype to avoid an error.
8284 Use char because int might match the return type of a GCC
8285 builtin and then its argument prototype would still apply. */
8289 char pthread_join ();
8293 return pthread_join ();
8298 if ac_fn_c_try_link
"$LINENO"; then :
8301 rm -f core conftest.err conftest.
$ac_objext \
8302 conftest
$ac_exeext conftest.
$ac_ext
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8304 $as_echo "$ax_pthread_ok" >&6; }
8305 if test x
"$ax_pthread_ok" = xno
; then
8310 CFLAGS
="$save_CFLAGS"
8313 # We must check for the threads library under a number of different
8314 # names; the ordering is very important because some systems
8315 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8316 # libraries is broken (non-POSIX).
8318 # Create a list of thread flags to try. Items starting with a "-" are
8319 # C compiler flags, and other items are library names, except for "none"
8320 # which indicates that we try without any flags at all, and "pthread-config"
8321 # which is a program returning the flags for the Pth emulation library.
8323 ax_pthread_flags
="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8325 # The ordering *is* (sometimes) important. Some notes on the
8326 # individual items follow:
8328 # pthreads: AIX (must check this before -lpthread)
8329 # none: in case threads are in libc; should be tried before -Kthread and
8330 # other compiler flags to prevent continual compiler warnings
8331 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8332 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8333 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8334 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8335 # -pthreads: Solaris/gcc
8336 # -mthreads: Mingw32/gcc, Lynx/gcc
8337 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8338 # doesn't hurt to check since this sometimes defines pthreads too;
8339 # also defines -D_REENTRANT)
8340 # ... -mt is also the pthreads flag for HP/aCC
8341 # pthread: Linux, etcetera
8342 # --thread-safe: KAI C++
8343 # pthread-config: use pthread-config program (for GNU Pth library)
8348 # On Solaris (at least, for some versions), libc contains stubbed
8349 # (non-functional) versions of the pthreads routines, so link-based
8350 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8351 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8352 # a function called by this macro, so we could check for that, but
8353 # who knows whether they'll stub that too in a future libc.) So,
8354 # we'll just look for -pthreads and -lpthread first:
8356 ax_pthread_flags
="-pthreads pthread -mt -pthread $ax_pthread_flags"
8360 ax_pthread_flags
="-pthread $ax_pthread_flags"
8364 # Clang doesn't consider unrecognized options an error unless we specify
8365 # -Werror. We throw in some extra Clang-specific options to ensure that
8366 # this doesn't happen for GCC, which also accepts -Werror.
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
8369 $as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
8370 save_CFLAGS
="$CFLAGS"
8371 ax_pthread_extra_flags
="-Werror"
8372 CFLAGS
="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
8373 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8374 /* end confdefs.h. */
8384 if ac_fn_c_try_compile
"$LINENO"; then :
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8386 $as_echo "yes" >&6; }
8388 ax_pthread_extra_flags
=
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8390 $as_echo "no" >&6; }
8392 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8393 CFLAGS
="$save_CFLAGS"
8395 if test x
"$ax_pthread_ok" = xno
; then
8396 for flag
in $ax_pthread_flags; do
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8401 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8406 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
8407 PTHREAD_CFLAGS
="$flag"
8411 # Extract the first word of "pthread-config", so it can be a program name with args.
8412 set dummy pthread
-config; ac_word
=$2
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8414 $as_echo_n "checking for $ac_word... " >&6; }
8415 if ${ac_cv_prog_ax_pthread_config+:} false
; then :
8416 $as_echo_n "(cached) " >&6
8418 if test -n "$ax_pthread_config"; then
8419 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
8421 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8425 test -z "$as_dir" && as_dir
=.
8426 for ac_exec_ext
in '' $ac_executable_extensions; do
8427 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8428 ac_cv_prog_ax_pthread_config
="yes"
8429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8436 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
8439 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
8440 if test -n "$ax_pthread_config"; then
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8442 $as_echo "$ax_pthread_config" >&6; }
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8445 $as_echo "no" >&6; }
8449 if test x
"$ax_pthread_config" = xno
; then continue; fi
8450 PTHREAD_CFLAGS
="`pthread-config --cflags`"
8451 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8456 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8457 PTHREAD_LIBS
="-l$flag"
8462 save_CFLAGS
="$CFLAGS"
8463 LIBS
="$PTHREAD_LIBS $LIBS"
8464 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
8466 # Check for various functions. We must include pthread.h,
8467 # since some functions may be macros. (On the Sequent, we
8468 # need a special flag -Kthread to make this header compile.)
8469 # We check for pthread_join because it is in -lpthread on IRIX
8470 # while pthread_create is in libc. We check for pthread_attr_init
8471 # due to DEC craziness with -lpthreads. We check for
8472 # pthread_cleanup_push because it is one of the few pthread
8473 # functions on Solaris that doesn't have a non-functional libc stub.
8474 # We try pthread_create on general principles.
8475 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8476 /* end confdefs.h. */
8477 #include <pthread.h>
8478 static void routine(void *a) { a = 0; }
8479 static void *start_routine(void *a) { return a; }
8483 pthread_t th; pthread_attr_t attr;
8484 pthread_create(&th, 0, start_routine, 0);
8485 pthread_join(th, 0);
8486 pthread_attr_init(&attr);
8487 pthread_cleanup_push(routine, 0);
8488 pthread_cleanup_pop(0) /* ; */
8493 if ac_fn_c_try_link
"$LINENO"; then :
8496 rm -f core conftest.err conftest.
$ac_objext \
8497 conftest
$ac_exeext conftest.
$ac_ext
8500 CFLAGS
="$save_CFLAGS"
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8503 $as_echo "$ax_pthread_ok" >&6; }
8504 if test "x$ax_pthread_ok" = xyes
; then
8513 # Various other checks:
8514 if test "x$ax_pthread_ok" = xyes
; then
8516 LIBS
="$PTHREAD_LIBS $LIBS"
8517 save_CFLAGS
="$CFLAGS"
8518 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
8520 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8522 $as_echo_n "checking for joinable pthread attribute... " >&6; }
8524 for attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
8525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8526 /* end confdefs.h. */
8527 #include <pthread.h>
8531 int attr = $attr; return attr /* ; */
8536 if ac_fn_c_try_link
"$LINENO"; then :
8537 attr_name
=$attr; break
8539 rm -f core conftest.err conftest.
$ac_objext \
8540 conftest
$ac_exeext conftest.
$ac_ext
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8543 $as_echo "$attr_name" >&6; }
8544 if test "$attr_name" != PTHREAD_CREATE_JOINABLE
; then
8546 cat >>confdefs.h
<<_ACEOF
8547 #define PTHREAD_CREATE_JOINABLE $attr_name
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8553 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8556 aix
* | freebsd
* | darwin
*) flag
="-D_THREAD_SAFE";;
8557 osf
* | hpux
*) flag
="-D_REENTRANT";;
8559 if test "$GCC" = "yes"; then
8562 # TODO: What about Clang on Solaris?
8563 flag
="-mt -D_REENTRANT"
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
8568 $as_echo "$flag" >&6; }
8569 if test "x$flag" != xno
; then
8570 PTHREAD_CFLAGS
="$flag $PTHREAD_CFLAGS"
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
8574 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
8575 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false
; then :
8576 $as_echo_n "(cached) " >&6
8579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8580 /* end confdefs.h. */
8581 #include <pthread.h>
8585 int i = PTHREAD_PRIO_INHERIT;
8590 if ac_fn_c_try_link
"$LINENO"; then :
8591 ax_cv_PTHREAD_PRIO_INHERIT
=yes
8593 ax_cv_PTHREAD_PRIO_INHERIT
=no
8595 rm -f core conftest.err conftest.
$ac_objext \
8596 conftest
$ac_exeext conftest.
$ac_ext
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
8600 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
8601 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
8603 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
8608 CFLAGS
="$save_CFLAGS"
8610 # More AIX lossage: compile with *_r variant
8611 if test "x$GCC" != xyes
; then
8615 x
*/c89
|x
*/c89_128
|x
*/c99
|x
*/c99_128
|x
*/cc
|x
*/cc128
|x
*/xlc
|x
*/xlc_v6
|x
*/xlc128
|x
*/xlc128_v6
) :
8616 #handle absolute path differently from PATH based program lookup
8619 if as_fn_executable_p
${CC}_r
; then :
8620 PTHREAD_CC
="${CC}_r"
8623 for ac_prog
in ${CC}_r
8625 # Extract the first word of "$ac_prog", so it can be a program name with args.
8626 set dummy
$ac_prog; ac_word
=$2
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8628 $as_echo_n "checking for $ac_word... " >&6; }
8629 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
8630 $as_echo_n "(cached) " >&6
8632 if test -n "$PTHREAD_CC"; then
8633 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
8635 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8639 test -z "$as_dir" && as_dir
=.
8640 for ac_exec_ext
in '' $ac_executable_extensions; do
8641 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8642 ac_cv_prog_PTHREAD_CC
="$ac_prog"
8643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8652 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
8653 if test -n "$PTHREAD_CC"; then
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8655 $as_echo "$PTHREAD_CC" >&6; }
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8658 $as_echo "no" >&6; }
8662 test -n "$PTHREAD_CC" && break
8664 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
8675 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
8681 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8682 if test x
"$ax_pthread_ok" = xyes
; then
8684 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8692 ac_cpp
='$CPP $CPPFLAGS'
8693 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8694 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8695 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8700 # Check whether --enable-libcurl was given.
8701 if test "${enable_libcurl+set}" = set; then :
8702 enableval
=$enable_libcurl; enable_curl
=$enableval
8708 if test "x$enable_curl" != "xno"; then :
8710 CURLCONFIG
="curl-config"
8711 if test "x$enable_curl" != "xyes"; then :
8712 CURLCONFIG
="$enable_curl/bin/curl-config"
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $CURLCONFIG" >&5
8716 $as_echo_n "checking $CURLCONFIG... " >&6; }
8717 if $CURLCONFIG --version 2>/dev
/null
>/dev
/null
; then :
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8719 $as_echo "yes" >&6; }
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8722 $as_echo "no" >&6; }
8723 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8724 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8725 as_fn_error $?
"Could not find curl-config, try editing --enable-libcurl
8726 See \`config.log' for more details" "$LINENO" 5; }
8729 CURLCFLAG
="`$CURLCONFIG --cflags`"
8730 CURLLIBS
="`$CURLCONFIG --libs`"
8732 if $CURLCONFIG --libs | grep -q -e ares
; then :
8738 if test -z "${CURLLIBS}"; then :
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: CURLLIBS is empty, that probably means that I could not find $enable_curl/bin/curl-config" >&5
8740 $as_echo "$as_me: WARNING: CURLLIBS is empty, that probably means that I could not find $enable_curl/bin/curl-config" >&2;}
8744 if test "x$has_system_cares" = "xno" && test "x$BUILDDIR/extras/curl" != "x$enable_curl" && test "$CURLUSESCARES" != "0" ; then :
8748 You have decided to build unrealIRCd with libcURL (remote includes) support.
8749 However, you have system-installed c-ares support has either been disabled
8750 (--without-system-cares) or is unavailable.
8751 Because UnrealIRCd will use a bundled copy of c-ares which may be incompatible
8752 with the system-installed libcURL, this is a bad idea which may result in error
8753 messages looking like:
8755 \`\`[error] unrealircd.conf:9: include: error downloading '(http://example.net/ex.conf)': Could not resolve host: example.net (Successful completion)''
8757 Or UnrealIRCd might even crash.
8759 Please build UnrealIRCd with --with-system-cares when enabling --enable-libcurl
8764 IRCDLIBS
="$IRCDLIBS $CURLLIBS"
8765 CFLAGS
="$CFLAGS $CURLCFLAG"
8767 $as_echo "#define USE_LIBCURL /**/" >>confdefs.h
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking curl_easy_init() in $CURLLIBS" >&5
8771 $as_echo_n "checking curl_easy_init() in $CURLLIBS... " >&6; }
8773 CFLAGS_SAVEDA
="$CFLAGS"
8775 LIBS
="$IRCDLIBS $IRCDLIBS_CURL_CARES"
8776 CFLAGS
="$CFLAGS $CFLAGS_CURL_CARES"
8777 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8778 /* end confdefs.h. */
8780 #include <curl/curl.h>
8784 CURL *curl = curl_easy_init();
8790 if ac_fn_c_try_link
"$LINENO"; then :
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8792 $as_echo "yes" >&6; }
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8795 $as_echo "no" >&6; }
8796 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8797 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8798 as_fn_error $?
"You asked for libcURL (remote includes) support, but it can't be found at $enable_curl
8799 See \`config.log' for more details" "$LINENO" 5; }
8802 rm -f core conftest.err conftest.
$ac_objext \
8803 conftest
$ac_exeext conftest.
$ac_ext
8805 CFLAGS
="$CFLAGS_SAVEDA"
8812 UNRLINCDIR
="`pwd`/include"
8814 if test "$ac_cv_werror" = "yes" ; then
8815 CFLAGS
="$CFLAGS -Werror"
8820 ac_config_files
="$ac_config_files Makefile src/Makefile src/modules/Makefile src/modules/chanmodes/Makefile src/modules/usermodes/Makefile src/modules/snomasks/Makefile src/modules/extbans/Makefile src/modules/cap/Makefile src/modules/third/Makefile unrealircd"
8822 cat >confcache
<<\_ACEOF
8823 # This file is a shell script that caches the results of configure
8824 # tests run on this system so they can be shared between configure
8825 # scripts and configure runs, see configure's option --config-cache.
8826 # It is not useful on other systems. If it contains results you don't
8827 # want to keep, you may remove or edit it.
8829 # config.status only pays attention to the cache file if you give it
8830 # the --recheck option to rerun configure.
8832 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8833 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8838 # The following way of writing the cache mishandles newlines in values,
8839 # but we know of no workaround that is simple, portable, and efficient.
8840 # So, we kill variables containing newlines.
8841 # Ultrix sh set writes to stderr and can't be redirected directly,
8842 # and sets the high bit in the cache file unless we assign to the vars.
8844 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8845 eval ac_val
=\$
$ac_var
8849 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8850 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8853 _
| IFS
| as_nl
) ;; #(
8854 BASH_ARGV
| BASH_SOURCE
) eval $ac_var= ;; #(
8855 *) { eval $ac_var=; unset $ac_var;} ;;
8861 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8862 *${as_nl}ac_space
=\
*)
8863 # `set' does not quote correctly, so add quotes: double-quote
8864 # substitution turns \\\\ into \\, and sed turns \\ into \.
8867 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8870 # `set' quotes correctly as required by POSIX, so do not add quotes.
8871 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8880 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8882 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8884 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
8885 if test -w "$cache_file"; then
8886 if test "x$cache_file" != "x/dev/null"; then
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8888 $as_echo "$as_me: updating cache $cache_file" >&6;}
8889 if test ! -f "$cache_file" || test -h "$cache_file"; then
8890 cat confcache
>"$cache_file"
8892 case $cache_file in #(
8894 mv -f confcache
"$cache_file"$$
&&
8895 mv -f "$cache_file"$$
"$cache_file" ;; #(
8897 mv -f confcache
"$cache_file" ;;
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8903 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8908 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8909 # Let make expand exec_prefix.
8910 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8912 DEFS
=-DHAVE_CONFIG_H
8917 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
8918 # 1. Remove the extension, and $U if already installed.
8919 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
8920 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
8921 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8922 # will be set to the directory where LIBOBJS objects are built.
8923 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8924 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
8928 LTLIBOBJS
=$ac_ltlibobjs
8932 : "${CONFIG_STATUS=./config.status}"
8934 ac_clean_files_save
=$ac_clean_files
8935 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8937 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8939 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8941 # Generated by $as_me.
8942 # Run this file to recreate the current configuration.
8943 # Compiler output produced by configure, useful for debugging
8944 # configure, is in config.log if it exists.
8950 SHELL=\${CONFIG_SHELL-$SHELL}
8953 cat >>$CONFIG_STATUS <<\_ASEOF
|| as_write_fail
=1
8954 ## -------------------- ##
8955 ## M4sh Initialization. ##
8956 ## -------------------- ##
8958 # Be more Bourne compatible
8959 DUALCASE
=1; export DUALCASE
# for MKS sh
8960 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
8963 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8964 # is contrary to our usage. Disable this feature.
8965 alias -g '${1+"$@"}'='"$@"'
8966 setopt NO_GLOB_SUBST
8968 case `(set -o) 2>/dev/null` in #(
8980 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8981 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8982 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8983 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8984 # Prefer a ksh shell builtin over an external printf program on Solaris,
8985 # but without wasting forks for bash or zsh.
8986 if test -z "$BASH_VERSION$ZSH_VERSION" \
8987 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8988 as_echo='print
-r --'
8989 as_echo_n='print
-rn --'
8990 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8991 as_echo='printf %s
\n'
8992 as_echo_n='printf %s
'
8994 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8995 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
8996 as_echo_n='/usr
/ucb
/echo -n'
8998 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8999 as_echo_n_body='eval
9003 expr "X$arg" : "X\\(.*\\)$as_nl";
9004 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9006 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9008 export as_echo_n_body
9009 as_echo_n='sh
-c $as_echo_n_body as_echo
'
9012 as_echo='sh
-c $as_echo_body as_echo
'
9015 # The user is always right.
9016 if test "${PATH_SEPARATOR+set}" != set; then
9018 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9019 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9026 # We need space, tab and new line, in precisely that order. Quoting is
9027 # there to prevent editors from complaining about space-tab.
9028 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9029 # splitting by setting IFS to empty value.)
9032 # Find who we are. Look in the path if we contain no directory separator.
9035 *[\\/]* ) as_myself=$0 ;;
9036 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9040 test -z "$as_dir" && as_dir=.
9041 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9047 # We did not find ourselves, most probably we were run as `sh COMMAND'
9048 # in which case we are not to be found in the path.
9049 if test "x$as_myself" = x
; then
9052 if test ! -f "$as_myself"; then
9053 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9057 # Unset variables that we do not need and which cause bugs (e.g. in
9058 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9059 # suppresses any "Segmentation fault" message there. '((' could
9060 # trigger a bug in pdksh 5.2.14.
9061 for as_var
in BASH_ENV ENV MAIL MAILPATH
9062 do eval test x\
${$as_var+set} = xset \
9063 && ( (unset $as_var) || exit 1) >/dev
/null
2>&1 && unset $as_var || :
9076 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
9079 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9080 # ----------------------------------------
9081 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9082 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9083 # script with STATUS, using 1 if that was 0.
9086 as_status
=$1; test $as_status -eq 0 && as_status
=1
9088 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
9089 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9091 $as_echo "$as_me: error: $2" >&2
9092 as_fn_exit
$as_status
9096 # as_fn_set_status STATUS
9097 # -----------------------
9098 # Set $? to STATUS, without forking.
9102 } # as_fn_set_status
9106 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9116 # Portably unset VAR.
9119 { eval $1=; unset $1;}
9121 as_unset
=as_fn_unset
9122 # as_fn_append VAR VALUE
9123 # ----------------------
9124 # Append the text in VALUE to the end of the definition contained in VAR. Take
9125 # advantage of any shell optimizations that allow amortized linear growth over
9126 # repeated appends, instead of the typical quadratic growth present in naive
9128 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
9129 eval 'as_fn_append ()
9140 # as_fn_arith ARG...
9141 # ------------------
9142 # Perform arithmetic evaluation on the ARGs, and store the result in the
9143 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9144 # must be portable across $(()) and expr.
9145 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
9146 eval 'as_fn_arith ()
9153 as_val
=`expr "$@" || test $? -eq 1`
9158 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
9159 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
9165 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9166 as_basename
=basename
9171 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
9177 as_me
=`$as_basename -- "$0" ||
9178 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9179 X"$0" : 'X\(//\)$' \| \
9180 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9182 sed '/^.*\/\([^/][^/]*\)\/*$/{
9196 # Avoid depending upon Character Ranges.
9197 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
9198 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9199 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
9200 as_cr_digits
='0123456789'
9201 as_cr_alnum
=$as_cr_Letters$as_cr_digits
9203 ECHO_C
= ECHO_N
= ECHO_T
=
9204 case `echo -n x` in #(((((
9206 case `echo 'xy\c'` in
9207 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
9209 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
9216 rm -f conf$$ conf$$.exe conf$$.
file
9217 if test -d conf$$.dir
; then
9218 rm -f conf$$.dir
/conf$$.
file
9221 mkdir conf$$.dir
2>/dev
/null
9223 if (echo >conf$$.
file) 2>/dev
/null
; then
9224 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
9226 # ... but there are two gotchas:
9227 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9228 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9229 # In both cases, we have to default to `cp -pR'.
9230 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe
||
9232 elif ln conf$$.
file conf$$
2>/dev
/null
; then
9240 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
9241 rmdir conf$$.dir
2>/dev
/null
9246 # Create "$as_dir" as a directory, including parents if necessary.
9251 -*) as_dir
=.
/$as_dir;;
9253 test -d "$as_dir" || eval $as_mkdir_p || {
9257 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9258 *) as_qdir
=$as_dir;;
9260 as_dirs
="'$as_qdir' $as_dirs"
9261 as_dir
=`$as_dirname -- "$as_dir" ||
9262 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9263 X"$as_dir" : 'X\(//\)[^/]' \| \
9264 X"$as_dir" : 'X\(//\)$' \| \
9265 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9266 $as_echo X"$as_dir" |
9267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9284 test -d "$as_dir" && break
9286 test -z "$as_dirs" || eval "mkdir $as_dirs"
9287 } || test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
9291 if mkdir -p .
2>/dev
/null
; then
9292 as_mkdir_p
='mkdir -p "$as_dir"'
9294 test -d .
/-p && rmdir .
/-p
9299 # as_fn_executable_p FILE
9300 # -----------------------
9301 # Test if FILE is an executable regular file.
9302 as_fn_executable_p
()
9304 test -f "$1" && test -x "$1"
9305 } # as_fn_executable_p
9307 as_executable_p
=as_fn_executable_p
9309 # Sed expression to map a string onto a valid CPP name.
9310 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9312 # Sed expression to map a string onto a valid variable name.
9313 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9317 ## ----------------------------------- ##
9318 ## Main body of $CONFIG_STATUS script. ##
9319 ## ----------------------------------- ##
9321 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
9323 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
9324 # Save the log message, to keep $0 and so on meaningful, and to
9325 # report actual input values of CONFIG_FILES etc. instead of their
9326 # values after options handling.
9328 This file was extended by unrealircd $as_me 4.0.19-rc2, which was
9329 generated by GNU Autoconf 2.69. Invocation command line was
9331 CONFIG_FILES = $CONFIG_FILES
9332 CONFIG_HEADERS = $CONFIG_HEADERS
9333 CONFIG_LINKS = $CONFIG_LINKS
9334 CONFIG_COMMANDS = $CONFIG_COMMANDS
9337 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9342 case $ac_config_files in *"
9343 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
9346 case $ac_config_headers in *"
9347 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
9351 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9352 # Files that config.status was made for.
9353 config_files="$ac_config_files"
9354 config_headers="$ac_config_headers"
9358 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
9360 \`$as_me' instantiates files and other configuration actions
9361 from templates according to the current configuration. Unless the files
9362 and actions are specified as TAGs, all are instantiated by default.
9364 Usage: $0 [OPTION]... [TAG]...
9366 -h, --help print this help, then exit
9367 -V, --version print version number and configuration settings, then exit
9368 --config print configuration, then exit
9369 -q, --quiet, --silent
9370 do not print progress messages
9371 -d, --debug don't remove temporary files
9372 --recheck update $as_me by reconfiguring in the same conditions
9373 --file=FILE[:TEMPLATE]
9374 instantiate the configuration file FILE
9375 --header=FILE[:TEMPLATE]
9376 instantiate the configuration header FILE
9378 Configuration files:
9381 Configuration headers:
9384 Report bugs to <http://bugs.unrealircd.org/>.
9385 unrealircd home page: <http://unrealircd.org/>."
9388 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9389 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9391 unrealircd config.status 4.0.19-rc2
9392 configured by $0, generated by GNU Autoconf 2.69,
9393 with options \\"\$ac_cs_config\\"
9395 Copyright (C) 2012 Free Software Foundation, Inc.
9396 This config.status script is free software; the Free Software Foundation
9397 gives unlimited permission to copy, distribute and modify it."
9401 test -n "\$AWK" || AWK=awk
9404 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
9405 # The default lists apply if the user does not specify any file.
9411 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
9412 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
9416 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
9428 # Handling of the options.
9429 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9431 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9432 $as_echo "$ac_cs_version"; exit ;;
9433 --config | --confi | --conf | --con | --co | --c )
9434 $as_echo "$ac_cs_config"; exit ;;
9435 --debug | --debu | --deb | --de | --d | -d )
9437 --file | --fil | --fi | --f )
9440 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9441 '') as_fn_error $?
"missing file argument" ;;
9443 as_fn_append CONFIG_FILES
" '$ac_optarg'"
9444 ac_need_defaults
=false
;;
9445 --header | --heade | --head | --hea )
9448 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9450 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
9451 ac_need_defaults
=false
;;
9453 # Conflict between --help and --header
9454 as_fn_error $?
"ambiguous option: \`$1'
9455 Try \`$0 --help' for more information.";;
9456 --help | --hel | -h )
9457 $as_echo "$ac_cs_usage"; exit ;;
9458 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9459 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9463 -*) as_fn_error $?
"unrecognized option: \`$1'
9464 Try \`$0 --help' for more information." ;;
9466 *) as_fn_append ac_config_targets
" $1"
9467 ac_need_defaults
=false
;;
9473 ac_configure_extra_args
=
9475 if $ac_cs_silent; then
9477 ac_configure_extra_args
="$ac_configure_extra_args --silent"
9481 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9482 if \$ac_cs_recheck; then
9483 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9485 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9486 CONFIG_SHELL='$SHELL'
9492 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
9496 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9497 ## Running $as_me. ##
9503 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9506 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
9508 # Handling of arguments.
9509 for ac_config_target
in $ac_config_targets
9511 case $ac_config_target in
9512 "include/setup.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/setup.h" ;;
9513 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
9514 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
9515 "src/modules/Makefile") CONFIG_FILES
="$CONFIG_FILES src/modules/Makefile" ;;
9516 "src/modules/chanmodes/Makefile") CONFIG_FILES
="$CONFIG_FILES src/modules/chanmodes/Makefile" ;;
9517 "src/modules/usermodes/Makefile") CONFIG_FILES
="$CONFIG_FILES src/modules/usermodes/Makefile" ;;
9518 "src/modules/snomasks/Makefile") CONFIG_FILES
="$CONFIG_FILES src/modules/snomasks/Makefile" ;;
9519 "src/modules/extbans/Makefile") CONFIG_FILES
="$CONFIG_FILES src/modules/extbans/Makefile" ;;
9520 "src/modules/cap/Makefile") CONFIG_FILES
="$CONFIG_FILES src/modules/cap/Makefile" ;;
9521 "src/modules/third/Makefile") CONFIG_FILES
="$CONFIG_FILES src/modules/third/Makefile" ;;
9522 "unrealircd") CONFIG_FILES
="$CONFIG_FILES unrealircd" ;;
9524 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9529 # If the user did not use the arguments to specify the items to instantiate,
9530 # then the envvar interface is used. Set only those that are not.
9531 # We use the long form for the default assignment because of an extremely
9532 # bizarre bug on SunOS 4.1.3.
9533 if $ac_need_defaults; then
9534 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
9535 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
9538 # Have a temporary directory for convenience. Make it in the build tree
9539 # simply because there is no reason against having it here, and in addition,
9540 # creating and moving files from /tmp can sometimes cause problems.
9541 # Hook for its removal unless debugging.
9542 # Note that there is a small window in which the directory will not be cleaned:
9543 # after its creation but before its name has been assigned to `$tmp'.
9547 trap 'exit_status=$?
9549 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9551 trap 'as_fn_exit 1' 1 2 13 15
9553 # Create a (secure) tmp directory for tmp files.
9556 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9560 tmp
=.
/conf$$
-$RANDOM
9561 (umask 077 && mkdir "$tmp")
9562 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
9565 # Set up the scripts for CONFIG_FILES section.
9566 # No need to generate them if there are no CONFIG_FILES.
9567 # This happens for instance with `./config.status config.h'.
9568 if test -n "$CONFIG_FILES"; then
9571 ac_cr
=`echo X | tr X '\015'`
9572 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9573 # But we know of no other shell where ac_cr would be empty at this
9574 # point, so we can use a bashism as a fallback.
9575 if test "x$ac_cr" = x
; then
9576 eval ac_cr
=\$
\'\\r
\'
9578 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9579 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9585 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9590 echo "cat >conf$$subs.awk <<_ACEOF" &&
9591 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9594 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
9595 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9597 for ac_last_try in false false false false false :; do
9598 . ./conf$$subs.sh ||
9599 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
9601 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
9602 if test $ac_delim_n = $ac_delim_num; then
9604 elif $ac_last_try; then
9605 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
9607 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
9612 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9613 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
9617 s/^/S["/; s
/!.
*/"]=/
9627 s/\(.\{148\}\)..*/\1/
9629 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
9634 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
9641 s/\(.\{148\}\)..*/\1/
9643 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
9647 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
9652 ' <conf$$subs.awk | sed '
9657 ' >>$CONFIG_STATUS || ac_write_fail=1
9658 rm -f conf$$subs.awk
9659 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9661 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
9662 for (key in S) S_is_set[key] = 1
9668 nfields = split(line, field, "@
")
9670 len = length(field[1])
9671 for (i = 2; i < nfields; i++) {
9673 keylen = length(key)
9674 if (S_is_set[key]) {
9676 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9677 len += length(value) + length(field[++i])
9688 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9689 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9690 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
9693 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
9694 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
9697 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9698 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
9699 # trailing colons and then remove the whole line if VPATH becomes empty
9700 # (actually we leave an empty line to preserve line numbers).
9701 if test "x
$srcdir" = x.; then
9702 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9720 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9721 fi # test -n "$CONFIG_FILES"
9723 # Set up the scripts for CONFIG_HEADERS section.
9724 # No need to generate them if there are no CONFIG_HEADERS.
9725 # This happens for instance with `./config.status Makefile'.
9726 if test -n "$CONFIG_HEADERS"; then
9727 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
9731 # Transform confdefs.h into an awk script `defines.awk', embedded as
9732 # here-document in config.status, that substitutes the proper values into
9733 # config.h.in to produce config.h.
9735 # Create a delimiter string that does not exist in confdefs.h, to ease
9736 # handling of long lines.
9738 for ac_last_try in false false :; do
9739 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
9740 if test -z "$ac_tt"; then
9742 elif $ac_last_try; then
9743 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
9745 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
9749 # For the awk script, D is an array of macro values keyed by name,
9750 # likewise P contains macro parameters if any. Preserve backslash
9751 # newline sequences.
9753 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9755 s/.\{148\}/&'"$ac_delim"'/g
9758 s/^[ ]*#[ ]*define[ ][ ]*/ /
9765 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
9767 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
9771 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
9772 D["\
1"]=" \
3\\\\\\n
"\\/p
9774 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
9779 s/.\{148\}/&'"$ac_delim"'/g
9784 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
9787 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
9789 ' <confdefs.h | sed '
9790 s/'"$ac_delim"'/"\\\
9791 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9793 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9794 for (key in D) D_is_set[key] = 1
9797 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9799 split(line, arg, " ")
9800 if (arg[1] == "#") {
9804 defundef
= substr
(arg
[1], 2)
9807 split(mac1
, mac2
, "(") #)
9809 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
9810 if (D_is_set
[macro
]) {
9811 # Preserve the white space surrounding the "#".
9812 print prefix
"define", macro P
[macro
] D
[macro
]
9815 # Replace #undef with comments. This is necessary, for example,
9816 # in the case of _POSIX_SOURCE, which is predefined and required
9817 # on some systems where configure will not decide to define it.
9818 if (defundef
== "undef") {
9819 print
"/*", prefix defundef
, macro
, "*/"
9827 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
9828 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
9829 fi # test -n "$CONFIG_HEADERS"
9832 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
9837 :[FHLC
]) ac_mode
=$ac_tag; continue;;
9839 case $ac_mode$ac_tag in
9841 :L
* | :C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
9842 :[FH
]-) ac_tag
=-:-;;
9843 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
9860 -) ac_f
="$ac_tmp/stdin";;
9861 *) # Look for the file first in the build tree, then in the source tree
9862 # (if the path is not absolute). The absolute path cannot be DOS-style,
9863 # because $ac_f cannot contain `:'.
9867 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
9869 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9871 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9872 as_fn_append ac_file_inputs
" '$ac_f'"
9875 # Let's still pretend it is `configure' which instantiates (i.e., don't
9876 # use $as_me), people would be surprised to read:
9877 # /* config.h. Generated by config.status. */
9878 configure_input
='Generated from '`
9879 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9881 if test x
"$ac_file" != x
-; then
9882 configure_input
="$ac_file. $configure_input"
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9884 $as_echo "$as_me: creating $ac_file" >&6;}
9886 # Neutralize special characters interpreted by sed in replacement strings.
9887 case $configure_input in #(
9888 *\
&* | *\
|* | *\\* )
9889 ac_sed_conf_input
=`$as_echo "$configure_input" |
9890 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9891 *) ac_sed_conf_input
=$configure_input;;
9895 *:-:* | *:-) cat >"$ac_tmp/stdin" \
9896 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
9901 ac_dir
=`$as_dirname -- "$ac_file" ||
9902 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9903 X"$ac_file" : 'X\(//\)[^/]' \| \
9904 X"$ac_file" : 'X\(//\)$' \| \
9905 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9906 $as_echo X"$ac_file" |
9907 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9924 as_dir
="$ac_dir"; as_fn_mkdir_p
9928 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
9930 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9931 # A ".." for each directory in $ac_dir_suffix.
9932 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9933 case $ac_top_builddir_sub in
9934 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
9935 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
9938 ac_abs_top_builddir
=$ac_pwd
9939 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
9940 # for backward compatibility:
9941 ac_top_builddir
=$ac_top_build_prefix
9944 .
) # We are building in place.
9946 ac_top_srcdir
=$ac_top_builddir_sub
9947 ac_abs_top_srcdir
=$ac_pwd ;;
9948 [\\/]* | ?
:[\\/]* ) # Absolute name.
9949 ac_srcdir
=$srcdir$ac_dir_suffix;
9950 ac_top_srcdir
=$srcdir
9951 ac_abs_top_srcdir
=$srcdir ;;
9953 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
9954 ac_top_srcdir
=$ac_top_build_prefix$srcdir
9955 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
9957 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
9968 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
9969 # If the template does not know about datarootdir, expand it.
9970 # FIXME: This hack should be removed a few years after 2.60.
9971 ac_datarootdir_hack
=; ac_datarootdir_seen
=
9982 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9983 *datarootdir
*) ac_datarootdir_seen
=yes;;
9984 *@datadir@
*|*@docdir@
*|*@infodir@
*|*@localedir@
*|*@mandir@
*)
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9986 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9988 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9989 ac_datarootdir_hack='
9990 s&@datadir@&$datadir&g
9991 s&@docdir@&$docdir&g
9992 s&@infodir@&$infodir&g
9993 s&@localedir@&$localedir&g
9994 s&@mandir@&$mandir&g
9995 s&\\\${datarootdir}&$datarootdir&g' ;;
9999 # Neutralize VPATH when `$srcdir' = `.'.
10000 # Shell code in configure.ac might set extrasub.
10001 # FIXME: do we really want to maintain this feature?
10002 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10003 ac_sed_extra="$ac_vpsub
10006 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
10008 /@
[a
-zA-Z_][a
-zA-Z_0-9]*@
/!b
10009 s
|@configure_input@
|$ac_sed_conf_input|;t t
10010 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
10011 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
10012 s
&@srcdir@
&$ac_srcdir&;t t
10013 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
10014 s
&@top_srcdir@
&$ac_top_srcdir&;t t
10015 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
10016 s
&@builddir@
&$ac_builddir&;t t
10017 s
&@abs_builddir@
&$ac_abs_builddir&;t t
10018 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
10019 $ac_datarootdir_hack
10021 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
10022 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
10024 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10025 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
10026 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10027 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
10029 which seems to be undefined. Please make sure it is defined" >&5
10030 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
10031 which seems to be undefined. Please make sure it is defined" >&2;}
10033 rm -f "$ac_tmp/stdin"
10035 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10036 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10038 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10044 if test x"$ac_file" != x-; then
10046 $as_echo "/* $configure_input */" \
10047 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10048 } >"$ac_tmp/config.h" \
10049 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10050 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10052 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10055 mv "$ac_tmp/config.h" "$ac_file" \
10056 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10059 $as_echo "/* $configure_input */" \
10060 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10061 || as_fn_error $? "could not create -" "$LINENO" 5
10073 ac_clean_files=$ac_clean_files_save
10075 test $ac_write_fail = 0 ||
10076 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10079 # configure is writing to config.log, and then calls config.status.
10080 # config.status does its own redirection, appending to config.log.
10081 # Unfortunately, on DOS this fails, as config.log is still kept open
10082 # by configure, so config.status won't be able to
write to it
; its
10083 # output is simply discarded. So we exec the FD to /dev/null,
10084 # effectively closing config.log, so it can be properly (re)opened and
10085 # appended to by config.status. When coming back to configure, we
10086 # need to make the FD available again.
10087 if test "$no_create" != yes; then
10089 ac_config_status_args
=
10090 test "$silent" = yes &&
10091 ac_config_status_args
="$ac_config_status_args --quiet"
10093 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
10095 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10096 # would make configure fail if this is the last instruction.
10097 $ac_cs_success || as_fn_exit
1
10099 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10101 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10104 chmod 0700 unrealircd