2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Atheme IRC Services Contrib Modules 1.0.
5 # Report bugs to <https://github.com/atheme/atheme-contrib-modules/issues/>.
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 if (eval "$as_required") 2>/dev
/null
; then :
206 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
209 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
211 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
214 test -z "$as_dir" && as_dir
=.
218 for as_base
in sh bash ksh sh5
; do
219 # Try only shells that exist, to save several forks.
220 as_shell
=$as_dir/$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
223 CONFIG_SHELL
=$as_shell as_have_required
=yes
224 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
232 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
233 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
234 CONFIG_SHELL
=$SHELL as_have_required
=yes
239 if test "x$CONFIG_SHELL" != x
; then :
241 # We cannot yet assume a decent shell, so we have to provide a
242 # neutralization value for shells without unset; and this also
243 # works around shells that cannot unset nonexistent variables.
244 # Preserve -v and -x to the replacement shell.
247 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
249 *v
*x
* | *x
*v
* ) as_opts
=-vx ;;
254 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
255 # Admittedly, this is quite paranoid, since all the known shells bail
256 # out after a failed `exec'.
257 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
261 if test x
$as_have_required = xno
; then :
262 $as_echo "$0: This script requires a shell more modern than all"
263 $as_echo "$0: the shells that I found on your system."
264 if test x
${ZSH_VERSION+set} = xset
; then
265 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
266 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 $as_echo "$0: Please tell bug-autoconf@gnu.org and
269 $0: https://github.com/atheme/atheme-contrib-modules/issues/
270 $0: about your system, including any error possibly output
271 $0: before this message. Then install a modern shell, or
272 $0: manually run the script under such a shell if you do
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
='Atheme IRC Services Contrib Modules'
582 PACKAGE_TARNAME
='atheme-contrib-modules'
583 PACKAGE_VERSION
='1.0'
584 PACKAGE_STRING
='Atheme IRC Services Contrib Modules 1.0'
585 PACKAGE_BUGREPORT
='https://github.com/atheme/atheme-contrib-modules/issues/'
586 PACKAGE_URL
='https://atheme.github.io/'
588 ac_unique_file
="src/atheme-compat.h"
589 ac_default_prefix
=~
/atheme
590 ac_subst_vars
='LTLIBOBJS
672 program_transform_name
685 enable_option_checking
687 ac_precious_vars
='build_alias
697 # Initialize some variables set by options.
699 ac_init_version
=false
700 ac_unrecognized_opts
=
702 # The variables have the same names as the options, with
703 # dashes changed to underlines.
711 program_transform_name
=s
,x
,x
,
719 # Installation directory options.
720 # These are left unexpanded so users can "make install exec_prefix=/foo"
721 # and all the variables that are supposed to be based on exec_prefix
722 # by default will actually change.
723 # Use braces instead of parens because sh, perl, etc. also accept them.
724 # (The list follows the same order as the GNU Coding Standards.)
725 bindir
='${exec_prefix}/bin'
726 sbindir
='${exec_prefix}/sbin'
727 libexecdir
='${exec_prefix}/libexec'
728 datarootdir
='${prefix}/share'
729 datadir
='${datarootdir}'
730 sysconfdir
='${prefix}/etc'
731 sharedstatedir
='${prefix}/com'
732 localstatedir
='${prefix}/var'
733 runstatedir
='${localstatedir}/run'
734 includedir
='${prefix}/include'
735 oldincludedir
='/usr/include'
736 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
737 infodir
='${datarootdir}/info'
742 libdir
='${exec_prefix}/lib'
743 localedir
='${datarootdir}/locale'
744 mandir
='${datarootdir}/man'
750 # If the previous option needs an argument, assign it.
751 if test -n "$ac_prev"; then
752 eval $ac_prev=\
$ac_option
758 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
763 # Accept the important Cygnus configure options, so we can diagnose typos.
765 case $ac_dashdash$ac_option in
769 -bindir | --bindir | --bindi | --bind | --bin | --bi)
771 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
774 -build | --build | --buil | --bui | --bu)
775 ac_prev
=build_alias
;;
776 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
777 build_alias
=$ac_optarg ;;
779 -cache-file | --cache-file | --cache-fil | --cache-fi \
780 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
781 ac_prev
=cache_file
;;
782 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
783 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
784 cache_file
=$ac_optarg ;;
787 cache_file
=config.cache
;;
789 -datadir | --datadir | --datadi | --datad)
791 -datadir=* | --datadir=* | --datadi=* | --datad=*)
792 datadir
=$ac_optarg ;;
794 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
795 | --dataroo | --dataro | --datar)
796 ac_prev
=datarootdir
;;
797 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
798 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
799 datarootdir
=$ac_optarg ;;
801 -disable-* | --disable-*)
802 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
803 # Reject names that are not valid shell variable names.
804 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
805 as_fn_error $?
"invalid feature name: $ac_useropt"
806 ac_useropt_orig
=$ac_useropt
807 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
808 case $ac_user_opts in
812 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
813 ac_unrecognized_sep
=', ';;
815 eval enable_
$ac_useropt=no
;;
817 -docdir | --docdir | --docdi | --doc | --do)
819 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
822 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
824 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
827 -enable-* | --enable-*)
828 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
829 # Reject names that are not valid shell variable names.
830 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
831 as_fn_error $?
"invalid feature name: $ac_useropt"
832 ac_useropt_orig
=$ac_useropt
833 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
834 case $ac_user_opts in
838 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
839 ac_unrecognized_sep
=', ';;
841 eval enable_
$ac_useropt=\
$ac_optarg ;;
843 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
844 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
845 | --exec | --exe | --ex)
846 ac_prev
=exec_prefix
;;
847 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
848 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
849 | --exec=* | --exe=* | --ex=*)
850 exec_prefix
=$ac_optarg ;;
852 -gas | --gas | --ga | --g)
853 # Obsolete; use --with-gas.
856 -help | --help | --hel | --he | -h)
858 -help=r
* | --help=r
* | --hel=r
* | --he=r
* | -hr*)
859 ac_init_help
=recursive
;;
860 -help=s
* | --help=s
* | --hel=s
* | --he=s
* | -hs*)
861 ac_init_help
=short
;;
863 -host | --host | --hos | --ho)
864 ac_prev
=host_alias
;;
865 -host=* | --host=* | --hos=* | --ho=*)
866 host_alias
=$ac_optarg ;;
868 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
870 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
872 htmldir
=$ac_optarg ;;
874 -includedir | --includedir | --includedi | --included | --include \
875 | --includ | --inclu | --incl | --inc)
876 ac_prev
=includedir
;;
877 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
878 | --includ=* | --inclu=* | --incl=* | --inc=*)
879 includedir
=$ac_optarg ;;
881 -infodir | --infodir | --infodi | --infod | --info | --inf)
883 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
884 infodir
=$ac_optarg ;;
886 -libdir | --libdir | --libdi | --libd)
888 -libdir=* | --libdir=* | --libdi=* | --libd=*)
891 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
892 | --libexe | --libex | --libe)
893 ac_prev
=libexecdir
;;
894 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
895 | --libexe=* | --libex=* | --libe=*)
896 libexecdir
=$ac_optarg ;;
898 -localedir | --localedir | --localedi | --localed | --locale)
900 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
901 localedir
=$ac_optarg ;;
903 -localstatedir | --localstatedir | --localstatedi | --localstated \
904 | --localstate | --localstat | --localsta | --localst | --locals)
905 ac_prev
=localstatedir
;;
906 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
907 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
908 localstatedir
=$ac_optarg ;;
910 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
912 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
916 # Obsolete; use --without-fp.
919 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
920 | --no-cr | --no-c | -n)
923 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
924 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
927 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
928 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
929 | --oldin | --oldi | --old | --ol | --o)
930 ac_prev
=oldincludedir
;;
931 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
932 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
933 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
934 oldincludedir
=$ac_optarg ;;
936 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
938 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
941 -program-prefix | --program-prefix | --program-prefi | --program-pref \
942 | --program-pre | --program-pr | --program-p)
943 ac_prev
=program_prefix
;;
944 -program-prefix=* | --program-prefix=* | --program-prefi=* \
945 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
946 program_prefix
=$ac_optarg ;;
948 -program-suffix | --program-suffix | --program-suffi | --program-suff \
949 | --program-suf | --program-su | --program-s)
950 ac_prev
=program_suffix
;;
951 -program-suffix=* | --program-suffix=* | --program-suffi=* \
952 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
953 program_suffix
=$ac_optarg ;;
955 -program-transform-name | --program-transform-name \
956 | --program-transform-nam | --program-transform-na \
957 | --program-transform-n | --program-transform- \
958 | --program-transform | --program-transfor \
959 | --program-transfo | --program-transf \
960 | --program-trans | --program-tran \
961 | --progr-tra | --program-tr | --program-t)
962 ac_prev
=program_transform_name
;;
963 -program-transform-name=* | --program-transform-name=* \
964 | --program-transform-nam=* | --program-transform-na=* \
965 | --program-transform-n=* | --program-transform-=* \
966 | --program-transform=* | --program-transfor=* \
967 | --program-transfo=* | --program-transf=* \
968 | --program-trans=* | --program-tran=* \
969 | --progr-tra=* | --program-tr=* | --program-t=*)
970 program_transform_name
=$ac_optarg ;;
972 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
974 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
977 -psdir | --psdir | --psdi | --psd | --ps)
979 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
982 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
983 | -silent | --silent | --silen | --sile | --sil)
986 -runstatedir | --runstatedir | --runstatedi | --runstated \
987 | --runstate | --runstat | --runsta | --runst | --runs \
988 | --run | --ru | --r)
989 ac_prev
=runstatedir
;;
990 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
991 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
992 | --run=* | --ru=* | --r=*)
993 runstatedir
=$ac_optarg ;;
995 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
997 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
999 sbindir
=$ac_optarg ;;
1001 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1002 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1003 | --sharedst | --shareds | --shared | --share | --shar \
1005 ac_prev
=sharedstatedir
;;
1006 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1007 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1008 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1010 sharedstatedir
=$ac_optarg ;;
1012 -site | --site | --sit)
1014 -site=* | --site=* | --sit=*)
1017 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1019 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1020 srcdir
=$ac_optarg ;;
1022 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1023 | --syscon | --sysco | --sysc | --sys | --sy)
1024 ac_prev
=sysconfdir
;;
1025 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1026 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1027 sysconfdir
=$ac_optarg ;;
1029 -target | --target | --targe | --targ | --tar | --ta | --t)
1030 ac_prev
=target_alias
;;
1031 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1032 target_alias
=$ac_optarg ;;
1034 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1037 -version | --version | --versio | --versi | --vers | -V)
1038 ac_init_version
=: ;;
1041 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1042 # Reject names that are not valid shell variable names.
1043 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1044 as_fn_error $?
"invalid package name: $ac_useropt"
1045 ac_useropt_orig
=$ac_useropt
1046 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1047 case $ac_user_opts in
1051 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1052 ac_unrecognized_sep
=', ';;
1054 eval with_
$ac_useropt=\
$ac_optarg ;;
1056 -without-* | --without-*)
1057 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1058 # Reject names that are not valid shell variable names.
1059 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1060 as_fn_error $?
"invalid package name: $ac_useropt"
1061 ac_useropt_orig
=$ac_useropt
1062 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1063 case $ac_user_opts in
1067 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1068 ac_unrecognized_sep
=', ';;
1070 eval with_
$ac_useropt=no
;;
1073 # Obsolete; use --with-x.
1076 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1077 | --x-incl | --x-inc | --x-in | --x-i)
1078 ac_prev
=x_includes
;;
1079 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1080 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1081 x_includes
=$ac_optarg ;;
1083 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1084 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1085 ac_prev
=x_libraries
;;
1086 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1087 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1088 x_libraries
=$ac_optarg ;;
1090 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1091 Try \`$0 --help' for more information"
1095 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1096 # Reject names that are not valid shell variable names.
1097 case $ac_envvar in #(
1098 '' | [0-9]* | *[!_$as_cr_alnum]* )
1099 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1101 eval $ac_envvar=\
$ac_optarg
1102 export $ac_envvar ;;
1105 # FIXME: should be removed in autoconf 3.0.
1106 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1107 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1108 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1109 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1115 if test -n "$ac_prev"; then
1116 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1117 as_fn_error $?
"missing argument to $ac_option"
1120 if test -n "$ac_unrecognized_opts"; then
1121 case $enable_option_checking in
1123 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1124 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1128 # Check all directory arguments for consistency.
1129 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1130 datadir sysconfdir sharedstatedir localstatedir includedir \
1131 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1132 libdir localedir mandir runstatedir
1134 eval ac_val
=\$
$ac_var
1135 # Remove trailing slashes.
1138 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1139 eval $ac_var=\
$ac_val;;
1141 # Be sure to have absolute directory names.
1143 [\\/$
]* | ?
:[\\/]* ) continue;;
1144 NONE
| '' ) case $ac_var in *prefix
) continue;; esac;;
1146 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1149 # There might be people who depend on the old broken behavior: `$host'
1150 # used to hold the argument of --host etc.
1151 # FIXME: To remove some day.
1154 target
=$target_alias
1156 # FIXME: To remove some day.
1157 if test "x$host_alias" != x
; then
1158 if test "x$build_alias" = x
; then
1159 cross_compiling
=maybe
1160 elif test "x$build_alias" != "x$host_alias"; then
1166 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1168 test "$silent" = yes && exec 6>/dev
/null
1171 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1172 ac_ls_di
=`ls -di .` &&
1173 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1174 as_fn_error $?
"working directory cannot be determined"
1175 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1176 as_fn_error $?
"pwd does not report name of working directory"
1179 # Find the source files, if location was not specified.
1180 if test -z "$srcdir"; then
1181 ac_srcdir_defaulted
=yes
1182 # Try the directory containing this script, then the parent directory.
1183 ac_confdir
=`$as_dirname -- "$as_myself" ||
1184 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1185 X"$as_myself" : 'X\(//\)[^/]' \| \
1186 X"$as_myself" : 'X\(//\)$' \| \
1187 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1188 $as_echo X"$as_myself" |
1189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1207 if test ! -r "$srcdir/$ac_unique_file"; then
1211 ac_srcdir_defaulted
=no
1213 if test ! -r "$srcdir/$ac_unique_file"; then
1214 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1215 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1217 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1219 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1221 # When building in place, set srcdir=.
1222 if test "$ac_abs_confdir" = "$ac_pwd"; then
1225 # Remove unnecessary trailing slashes from srcdir.
1226 # Double slashes in file names in object file debugging info
1227 # mess up M-x gdb in Emacs.
1229 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1231 for ac_var
in $ac_precious_vars; do
1232 eval ac_env_
${ac_var}_set
=\
${${ac_var}+set}
1233 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1234 eval ac_cv_env_
${ac_var}_set
=\
${${ac_var}+set}
1235 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1239 # Report the --help message.
1241 if test "$ac_init_help" = "long"; then
1242 # Omit some internal or obsolete options to make the list less imposing.
1243 # This message is too long to be a string in the A/UX 3.1 sh.
1245 \`configure' configures Atheme IRC Services Contrib Modules 1.0 to adapt to many kinds of systems.
1247 Usage: $0 [OPTION]... [VAR=VALUE]...
1249 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1250 VAR=VALUE. See below for descriptions of some of the useful variables.
1252 Defaults for the options are specified in brackets.
1255 -h, --help display this help and exit
1256 --help=short display options specific to this package
1257 --help=recursive display the short help of all the included packages
1258 -V, --version display version information and exit
1259 -q, --quiet, --silent do not print \`checking ...' messages
1260 --cache-file=FILE cache test results in FILE [disabled]
1261 -C, --config-cache alias for \`--cache-file=config.cache'
1262 -n, --no-create do not create output files
1263 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1265 Installation directories:
1266 --prefix=PREFIX install architecture-independent files in PREFIX
1267 [$ac_default_prefix]
1268 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1271 By default, \`make install' will install all the files in
1272 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1273 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1274 for instance \`--prefix=\$HOME'.
1276 For better control, use the options below.
1278 Fine tuning of the installation directories:
1279 --bindir=DIR user executables [EPREFIX/bin]
1280 --sbindir=DIR system admin executables [EPREFIX/sbin]
1281 --libexecdir=DIR program executables [EPREFIX/libexec]
1282 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1283 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1284 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1285 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1286 --libdir=DIR object code libraries [EPREFIX/lib]
1287 --includedir=DIR C header files [PREFIX/include]
1288 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1289 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1290 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1291 --infodir=DIR info documentation [DATAROOTDIR/info]
1292 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1293 --mandir=DIR man documentation [DATAROOTDIR/man]
1294 --docdir=DIR documentation root
1295 [DATAROOTDIR/doc/atheme-contrib-modules]
1296 --htmldir=DIR html documentation [DOCDIR]
1297 --dvidir=DIR dvi documentation [DOCDIR]
1298 --pdfdir=DIR pdf documentation [DOCDIR]
1299 --psdir=DIR ps documentation [DOCDIR]
1305 --build=BUILD configure
for building on BUILD
[guessed
]
1306 --host=HOST cross
-compile to build programs to run on HOST
[BUILD
]
1310 if test -n "$ac_init_help"; then
1311 case $ac_init_help in
1312 short
| recursive
) echo "Configuration of Atheme IRC Services Contrib Modules 1.0:";;
1316 Some influential environment variables
:
1317 CC C compiler
command
1318 CFLAGS C compiler flags
1319 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1320 nonstandard directory
<lib dir
>
1321 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1322 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1323 you have headers
in a nonstandard directory
<include dir
>
1325 Use these variables to override the choices made by
`configure' or to help
1326 it to find libraries and programs with nonstandard names/locations.
1328 Report bugs to <https://github.com/atheme/atheme-contrib-modules/issues/>.
1329 Atheme IRC Services Contrib Modules home page: <https://atheme.github.io/>.
1334 if test "$ac_init_help" = "recursive"; then
1335 # If there are subdirs, report their specific --help.
1336 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1337 test -d "$ac_dir" ||
1338 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1343 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1345 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1346 # A ".." for each directory in $ac_dir_suffix.
1347 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1348 case $ac_top_builddir_sub in
1349 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1350 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1353 ac_abs_top_builddir=$ac_pwd
1354 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1355 # for backward compatibility:
1356 ac_top_builddir=$ac_top_build_prefix
1359 .) # We are building in place.
1361 ac_top_srcdir=$ac_top_builddir_sub
1362 ac_abs_top_srcdir=$ac_pwd ;;
1363 [\\/]* | ?:[\\/]* ) # Absolute name.
1364 ac_srcdir=$srcdir$ac_dir_suffix;
1365 ac_top_srcdir=$srcdir
1366 ac_abs_top_srcdir=$srcdir ;;
1368 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1369 ac_top_srcdir=$ac_top_build_prefix$srcdir
1370 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1372 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1374 cd "$ac_dir" || { ac_status=$?; continue; }
1375 # Check for guested configure.
1376 if test -f "$ac_srcdir/configure.gnu"; then
1378 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1379 elif test -f "$ac_srcdir/configure"; then
1381 $SHELL "$ac_srcdir/configure" --help=recursive
1383 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1385 cd "$ac_pwd" || { ac_status=$?; break; }
1389 test -n "$ac_init_help" && exit $ac_status
1390 if $ac_init_version; then
1392 Atheme IRC Services Contrib Modules configure 1.0
1393 generated by GNU Autoconf 2.69
1395 Copyright (C) 2012 Free Software Foundation, Inc.
1396 This configure script is free software; the Free Software Foundation
1397 gives unlimited permission to copy, distribute and modify it.
1402 ## ------------------------ ##
1403 ## Autoconf initialization. ##
1404 ## ------------------------ ##
1406 # ac_fn_c_try_compile LINENO
1407 # --------------------------
1408 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1409 ac_fn_c_try_compile ()
1411 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1412 rm -f conftest.$ac_objext
1413 if { { ac_try="$ac_compile"
1415 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
1416 *) ac_try_echo
=$ac_try;;
1418 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1419 $as_echo "$ac_try_echo"; } >&5
1420 (eval "$ac_compile") 2>conftest.err
1422 if test -s conftest.err
; then
1423 grep -v '^ *+' conftest.err
>conftest.er1
1424 cat conftest.er1
>&5
1425 mv -f conftest.er1 conftest.err
1427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1428 test $ac_status = 0; } && {
1429 test -z "$ac_c_werror_flag" ||
1430 test ! -s conftest.err
1431 } && test -s conftest.
$ac_objext; then :
1434 $as_echo "$as_me: failed program was:" >&5
1435 sed 's/^/| /' conftest.
$ac_ext >&5
1439 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1440 as_fn_set_status
$ac_retval
1442 } # ac_fn_c_try_compile
1444 # ac_fn_c_try_link LINENO
1445 # -----------------------
1446 # Try to link conftest.$ac_ext, and return whether this succeeded.
1449 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1450 rm -f conftest.
$ac_objext conftest
$ac_exeext
1451 if { { ac_try
="$ac_link"
1453 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
1454 *) ac_try_echo=$ac_try;;
1456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1457 $as_echo "$ac_try_echo"; } >&5
1458 (eval "$ac_link") 2>conftest.err
1460 if test -s conftest.err; then
1461 grep -v '^ *+' conftest.err >conftest.er1
1462 cat conftest.er1 >&5
1463 mv -f conftest.er1 conftest.err
1465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1466 test $ac_status = 0; } && {
1467 test -z "$ac_c_werror_flag" ||
1468 test ! -s conftest.err
1469 } && test -s conftest$ac_exeext && {
1470 test "$cross_compiling" = yes ||
1471 test -x conftest$ac_exeext
1475 $as_echo "$as_me: failed program was:" >&5
1476 sed 's/^/| /' conftest.$ac_ext >&5
1480 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1481 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1482 # interfere with the next link command; also delete a directory that is
1483 # left behind by Apple's compiler. We do this before executing the actions.
1484 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1485 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1486 as_fn_set_status $ac_retval
1488 } # ac_fn_c_try_link
1490 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1491 # -------------------------------------------------------
1492 # Tests whether HEADER exists and can be compiled using the include files in
1493 # INCLUDES, setting the cache variable VAR accordingly.
1494 ac_fn_c_check_header_compile ()
1496 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1498 $as_echo_n "checking for $2... " >&6; }
1499 if eval \${$3+:} false; then :
1500 $as_echo_n "(cached) " >&6
1502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1503 /* end confdefs.h. */
1507 if ac_fn_c_try_compile "$LINENO"; then :
1512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1516 $as_echo "$ac_res" >&6; }
1517 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1519 } # ac_fn_c_check_header_compile
1520 cat >config.log <<_ACEOF
1521 This file contains any messages produced by compilers while
1522 running configure, to aid debugging if configure makes a mistake.
1524 It was created by Atheme IRC Services Contrib Modules $as_me 1.0, which was
1525 generated by GNU Autoconf 2.69. Invocation command line was
1537 hostname = `(hostname
|| uname
-n) 2>/dev
/null
| sed 1q
`
1538 uname -m = `(uname
-m) 2>/dev
/null
|| echo unknown
`
1539 uname -r = `(uname
-r) 2>/dev
/null
|| echo unknown
`
1540 uname -s = `(uname
-s) 2>/dev
/null
|| echo unknown
`
1541 uname -v = `(uname
-v) 2>/dev
/null
|| echo unknown
`
1543 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null
|| echo unknown
`
1544 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null
|| echo unknown
`
1546 /bin/arch = `(/bin
/arch
) 2>/dev
/null
|| echo unknown
`
1547 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null
|| echo unknown
`
1548 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null
|| echo unknown
`
1549 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null
|| echo unknown
`
1550 /bin/machine = `(/bin
/machine
) 2>/dev
/null
|| echo unknown
`
1551 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null
|| echo unknown
`
1552 /bin/universe = `(/bin
/universe
) 2>/dev
/null
|| echo unknown
`
1556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1560 test -z "$as_dir" && as_dir=.
1561 $as_echo "PATH: $as_dir"
1577 # Keep a trace of the command line.
1578 # Strip out --no-create and --no-recursion so they do not pile up.
1579 # Strip out --silent because we don't want to record it for future runs.
1580 # Also quote any args containing shell meta-characters.
1581 # Make two passes to allow for proper duplicate-argument suppression.
1585 ac_must_keep_next=false
1591 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1592 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1593 | -silent | --silent | --silen | --sile | --sil)
1596 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1599 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1601 as_fn_append ac_configure_args1 " '$ac_arg'"
1602 if test $ac_must_keep_next = true; then
1603 ac_must_keep_next=false # Got value, back to normal.
1606 *=* | --config-cache | -C | -disable-* | --disable-* \
1607 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1608 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1609 | -with-* | --with-* | -without-* | --without-* | --x)
1610 case "$ac_configure_args0 " in
1611 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1614 -* ) ac_must_keep_next=true ;;
1617 as_fn_append ac_configure_args " '$ac_arg'"
1622 { ac_configure_args0=; unset ac_configure_args0;}
1623 { ac_configure_args1=; unset ac_configure_args1;}
1625 # When interrupted or exit'd, cleanup temporary files, and complete
1626 # config.log. We remove comments because anyway the quotes in there
1627 # would cause problems or look ugly.
1628 # WARNING: Use '\'' to represent an apostrophe within the trap.
1629 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1630 trap 'exit_status=$?
1631 # Save into config.log some information that might help in debugging.
1635 $as_echo "## ---------------- ##
1636 ## Cache variables. ##
1637 ## ---------------- ##"
1639 # The following way of writing the cache mishandles newlines in values,
1641 for ac_var in `(set) 2>&1 | sed -n '\''s
/^\
([a
-zA-Z_][a
-zA-Z0-9_]*\
)=.
*/\
1/p
'\''`; do
1642 eval ac_val=\$$ac_var
1646 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1647 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1650 _ | IFS | as_nl) ;; #(
1651 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1652 *) { eval $ac_var=; unset $ac_var;} ;;
1657 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1658 *${as_nl}ac_space=\ *)
1660 "s/'\''/'\''\\\\'\'''\''/g;
1661 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1664 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1671 $as_echo "## ----------------- ##
1672 ## Output variables. ##
1673 ## ----------------- ##"
1675 for ac_var in $ac_subst_vars
1677 eval ac_val=\$$ac_var
1679 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1681 $as_echo "$ac_var='\''$ac_val'\''"
1685 if test -n "$ac_subst_files"; then
1686 $as_echo "## ------------------- ##
1687 ## File substitutions. ##
1688 ## ------------------- ##"
1690 for ac_var in $ac_subst_files
1692 eval ac_val=\$$ac_var
1694 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1696 $as_echo "$ac_var='\''$ac_val'\''"
1701 if test -s confdefs.h; then
1702 $as_echo "## ----------- ##
1709 test "$ac_signal" != 0 &&
1710 $as_echo "$as_me: caught signal $ac_signal"
1711 $as_echo "$as_me: exit $exit_status"
1713 rm -f core *.core core.conftest.* &&
1714 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1717 for ac_signal in 1 2 13 15; do
1718 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1722 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1723 rm -f -r conftest* confdefs.h
1725 $as_echo "/* confdefs.h */" > confdefs.h
1727 # Predefined preprocessor variables.
1729 cat >>confdefs.h <<_ACEOF
1730 #define PACKAGE_NAME "$PACKAGE_NAME"
1733 cat >>confdefs.h <<_ACEOF
1734 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1737 cat >>confdefs.h <<_ACEOF
1738 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1741 cat >>confdefs.h <<_ACEOF
1742 #define PACKAGE_STRING "$PACKAGE_STRING"
1745 cat >>confdefs.h <<_ACEOF
1746 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1749 cat >>confdefs.h <<_ACEOF
1750 #define PACKAGE_URL "$PACKAGE_URL"
1754 # Let the site file select an alternate cache file if it wants to.
1755 # Prefer an explicitly selected file to automatically selected ones.
1758 if test -n "$CONFIG_SITE"; then
1759 # We do not want a PATH search for config.site.
1760 case $CONFIG_SITE in #((
1761 -*) ac_site_file1=./$CONFIG_SITE;;
1762 */*) ac_site_file1=$CONFIG_SITE;;
1763 *) ac_site_file1=./$CONFIG_SITE;;
1765 elif test "x$prefix" != xNONE; then
1766 ac_site_file1=$prefix/share/config.site
1767 ac_site_file2=$prefix/etc/config.site
1769 ac_site_file1=$ac_default_prefix/share/config.site
1770 ac_site_file2=$ac_default_prefix/etc/config.site
1772 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1774 test "x$ac_site_file" = xNONE && continue
1775 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1777 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1778 sed 's/^/| /' "$ac_site_file" >&5
1780 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1781 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1782 as_fn_error $? "failed to load site
script $ac_site_file
1783 See \
`config.log' for more details" "$LINENO" 5; }
1787 if test -r "$cache_file"; then
1788 # Some versions of bash will fail to source /dev/null (special files
1789 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1790 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1792 $as_echo "$as_me: loading cache $cache_file" >&6;}
1794 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1795 *) . "./$cache_file";;
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1800 $as_echo "$as_me: creating cache $cache_file" >&6;}
1804 # Check that the precious variables saved in the cache have kept the same
1806 ac_cache_corrupted=false
1807 for ac_var in $ac_precious_vars; do
1808 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1809 eval ac_new_set=\$ac_env_${ac_var}_set
1810 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1811 eval ac_new_val=\$ac_env_${ac_var}_value
1812 case $ac_old_set,$ac_new_set in
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1815 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1816 ac_cache_corrupted=: ;;
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
1819 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1820 ac_cache_corrupted=: ;;
1823 if test "x$ac_old_val" != "x$ac_new_val"; then
1824 # differences in whitespace do not lead to failure.
1825 ac_old_val_w=`echo x
$ac_old_val`
1826 ac_new_val_w=`echo x
$ac_new_val`
1827 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1829 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1830 ac_cache_corrupted=:
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
1833 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1834 eval $ac_var=\$ac_old_val
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1837 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1839 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1842 # Pass precious variables to config.status.
1843 if test "$ac_new_set" = set; then
1845 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1846 *) ac_arg=$ac_var=$ac_new_val ;;
1848 case " $ac_configure_args " in
1849 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1850 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1854 if $ac_cache_corrupted; then
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
1856 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1858 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1859 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
1861 ## -------------------- ##
1862 ## Main body of script. ##
1863 ## -------------------- ##
1866 ac_cpp='$CPP $CPPFLAGS'
1867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1874 for ac_dir in build-aux "$srcdir"/build-aux; do
1875 if test -f "$ac_dir/install-sh"; then
1877 ac_install_sh="$ac_aux_dir/install-sh -c"
1879 elif test -f "$ac_dir/install.sh"; then
1881 ac_install_sh="$ac_aux_dir/install.sh -c"
1883 elif test -f "$ac_dir/shtool"; then
1885 ac_install_sh="$ac_aux_dir/shtool install -c"
1889 if test -z "$ac_aux_dir"; then
1890 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
1893 # These three variables are undocumented and unsupported,
1894 # and are intended to be withdrawn in a future Autoconf release.
1895 # They can cause serious problems if a builder's source tree is in a directory
1896 # whose full name contains unusual characters.
1897 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1898 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1899 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1902 ac_config_files="$ac_config_files buildsys.mk extra.mk"
1904 ac_config_headers="$ac_config_headers src/contrib-sysconf.h"
1909 if test "x${prefix}" = "xNONE"; then :
1910 prefix="${ac_default_prefix}"
1913 # Programs required by the build system
1915 ac_cpp='$CPP $CPPFLAGS'
1916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1919 if test -n "$ac_tool_prefix"; then
1920 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1921 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1923 $as_echo_n "checking for $ac_word... " >&6; }
1924 if ${ac_cv_prog_CC+:} false; then :
1925 $as_echo_n "(cached) " >&6
1927 if test -n "$CC"; then
1928 ac_cv_prog_CC="$CC" # Let the user override the test.
1930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1934 test -z "$as_dir" && as_dir=.
1935 for ac_exec_ext in '' $ac_executable_extensions; do
1936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1937 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1948 if test -n "$CC"; then
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1950 $as_echo "$CC" >&6; }
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1953 $as_echo "no" >&6; }
1958 if test -z "$ac_cv_prog_CC"; then
1960 # Extract the first word of "gcc", so it can be a program name with args.
1961 set dummy gcc; ac_word=$2
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1963 $as_echo_n "checking for $ac_word... " >&6; }
1964 if ${ac_cv_prog_ac_ct_CC+:} false; then :
1965 $as_echo_n "(cached) " >&6
1967 if test -n "$ac_ct_CC"; then
1968 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1974 test -z "$as_dir" && as_dir=.
1975 for ac_exec_ext in '' $ac_executable_extensions; do
1976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1977 ac_cv_prog_ac_ct_CC="gcc"
1978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1987 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1988 if test -n "$ac_ct_CC"; then
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
1990 $as_echo "$ac_ct_CC" >&6; }
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1993 $as_echo "no" >&6; }
1996 if test "x$ac_ct_CC" = x; then
1999 case $cross_compiling:$ac_tool_warned in
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2003 ac_tool_warned=yes ;;
2011 if test -z "$CC"; then
2012 if test -n "$ac_tool_prefix"; then
2013 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2014 set dummy ${ac_tool_prefix}cc; ac_word=$2
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2016 $as_echo_n "checking for $ac_word... " >&6; }
2017 if ${ac_cv_prog_CC+:} false; then :
2018 $as_echo_n "(cached) " >&6
2020 if test -n "$CC"; then
2021 ac_cv_prog_CC="$CC" # Let the user override the test.
2023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2027 test -z "$as_dir" && as_dir=.
2028 for ac_exec_ext in '' $ac_executable_extensions; do
2029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2030 ac_cv_prog_CC="${ac_tool_prefix}cc"
2031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2041 if test -n "$CC"; then
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2043 $as_echo "$CC" >&6; }
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2046 $as_echo "no" >&6; }
2052 if test -z "$CC"; then
2053 # Extract the first word of "cc", so it can be a program name with args.
2054 set dummy cc; ac_word=$2
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2056 $as_echo_n "checking for $ac_word... " >&6; }
2057 if ${ac_cv_prog_CC+:} false; then :
2058 $as_echo_n "(cached) " >&6
2060 if test -n "$CC"; then
2061 ac_cv_prog_CC="$CC" # Let the user override the test.
2064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2068 test -z "$as_dir" && as_dir=.
2069 for ac_exec_ext in '' $ac_executable_extensions; do
2070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2071 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2072 ac_prog_rejected=yes
2076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2083 if test $ac_prog_rejected = yes; then
2084 # We found a bogon in the path, so make sure we never use it.
2085 set dummy $ac_cv_prog_CC
2087 if test $# != 0; then
2088 # We chose a different compiler from the bogus one.
2089 # However, it has the same basename, so the bogon will be chosen
2090 # first if we set CC to just the basename; use the full file name.
2092 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2098 if test -n "$CC"; then
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2100 $as_echo "$CC" >&6; }
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2103 $as_echo "no" >&6; }
2108 if test -z "$CC"; then
2109 if test -n "$ac_tool_prefix"; then
2110 for ac_prog in cl.exe
2112 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2113 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2115 $as_echo_n "checking for $ac_word... " >&6; }
2116 if ${ac_cv_prog_CC+:} false; then :
2117 $as_echo_n "(cached) " >&6
2119 if test -n "$CC"; then
2120 ac_cv_prog_CC="$CC" # Let the user override the test.
2122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2126 test -z "$as_dir" && as_dir=.
2127 for ac_exec_ext in '' $ac_executable_extensions; do
2128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2129 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2140 if test -n "$CC"; then
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2142 $as_echo "$CC" >&6; }
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2145 $as_echo "no" >&6; }
2149 test -n "$CC" && break
2152 if test -z "$CC"; then
2154 for ac_prog in cl.exe
2156 # Extract the first word of "$ac_prog", so it can be a program name with args.
2157 set dummy $ac_prog; ac_word=$2
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2159 $as_echo_n "checking for $ac_word... " >&6; }
2160 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2161 $as_echo_n "(cached) " >&6
2163 if test -n "$ac_ct_CC"; then
2164 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2170 test -z "$as_dir" && as_dir=.
2171 for ac_exec_ext in '' $ac_executable_extensions; do
2172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2173 ac_cv_prog_ac_ct_CC="$ac_prog"
2174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2183 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2184 if test -n "$ac_ct_CC"; then
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2186 $as_echo "$ac_ct_CC" >&6; }
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2189 $as_echo "no" >&6; }
2193 test -n "$ac_ct_CC" && break
2196 if test "x$ac_ct_CC" = x; then
2199 case $cross_compiling:$ac_tool_warned in
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2202 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2203 ac_tool_warned=yes ;;
2212 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2213 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2214 as_fn_error $? "no acceptable C compiler found
in \
$PATH
2215 See \
`config.log' for more details" "$LINENO" 5; }
2217 # Provide some information about the compiler.
2218 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2221 for ac_option in --version -v -V -qversion; do
2222 { { ac_try="$ac_compiler $ac_option >&5"
2224 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
2225 *) ac_try_echo
=$ac_try;;
2227 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2228 $as_echo "$ac_try_echo"; } >&5
2229 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2231 if test -s conftest.err
; then
2233 ... rest of stderr output deleted ...
2234 10q' conftest.err
>conftest.er1
2235 cat conftest.er1
>&5
2237 rm -f conftest.er1 conftest.err
2238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2239 test $ac_status = 0; }
2242 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2243 /* end confdefs.h. */
2253 ac_clean_files_save
=$ac_clean_files
2254 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2255 # Try to create an executable without -o first, disregard a.out.
2256 # It will help us diagnose broken compilers, and finding out an intuition
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2259 $as_echo_n "checking whether the C compiler works... " >&6; }
2260 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2262 # The possible output files:
2263 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2266 for ac_file
in $ac_files
2269 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.map
| *.inf
| *.dSYM
| *.o
| *.obj
) ;;
2270 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2275 if { { ac_try
="$ac_link_default"
2277 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
2278 *) ac_try_echo=$ac_try;;
2280 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2281 $as_echo "$ac_try_echo"; } >&5
2282 (eval "$ac_link_default") 2>&5
2284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2285 test $ac_status = 0; }; then :
2286 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2287 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2288 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2289 # so that the user can short-circuit this test for compilers unknown to
2291 for ac_file in $ac_files ''
2293 test -f "$ac_file" || continue
2295 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2298 # We found the default executable, but exeext='' is most
2302 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2304 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2306 # We set ac_cv_exeext here because the later test for it is not
2307 # safe: cross compilers may not add the suffix if given an `-o'
2308 # argument, so we may need to know it at that point already.
2309 # Even if this section looks crufty: it has the advantage of
2316 test "$ac_cv_exeext" = no && ac_cv_exeext=
2321 if test -z "$ac_file"; then :
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2323 $as_echo "no" >&6; }
2324 $as_echo "$as_me: failed program was:" >&5
2325 sed 's
/^
/| /' conftest.$ac_ext >&5
2327 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2328 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2329 as_fn_error 77 "C compiler cannot create executables
2330 See \`config.log
' for more details" "$LINENO" 5; }
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2333 $as_echo "yes" >&6; }
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2336 $as_echo_n "checking for C compiler default output file name... " >&6; }
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2338 $as_echo "$ac_file" >&6; }
2339 ac_exeext=$ac_cv_exeext
2341 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2342 ac_clean_files=$ac_clean_files_save
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2344 $as_echo_n "checking for suffix of executables... " >&6; }
2345 if { { ac_try="$ac_link"
2347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2348 *) ac_try_echo=$ac_try;;
2350 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2351 $as_echo "$ac_try_echo"; } >&5
2352 (eval "$ac_link") 2>&5
2354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2355 test $ac_status = 0; }; then :
2356 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2357 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2358 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2360 for ac_file
in conftest.exe conftest conftest.
*; do
2361 test -f "$ac_file" || continue
2363 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.map
| *.inf
| *.dSYM
| *.o
| *.obj
) ;;
2364 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2370 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2371 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2372 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
2373 See \`config.log' for more details" "$LINENO" 5; }
2375 rm -f conftest conftest
$ac_cv_exeext
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2377 $as_echo "$ac_cv_exeext" >&6; }
2379 rm -f conftest.
$ac_ext
2380 EXEEXT
=$ac_cv_exeext
2382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2383 /* end confdefs.h. */
2388 FILE *f = fopen ("conftest.out", "w");
2389 return ferror (f) || fclose (f) != 0;
2395 ac_clean_files
="$ac_clean_files conftest.out"
2396 # Check that the compiler produces executables we can run. If not, either
2397 # the compiler is broken, or we cross compile.
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2399 $as_echo_n "checking whether we are cross compiling... " >&6; }
2400 if test "$cross_compiling" != yes; then
2401 { { ac_try
="$ac_link"
2403 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
2404 *) ac_try_echo=$ac_try;;
2406 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2407 $as_echo "$ac_try_echo"; } >&5
2408 (eval "$ac_link") 2>&5
2410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2411 test $ac_status = 0; }
2412 if { ac_try='./conftest$ac_cv_exeext'
2413 { { case "(($ac_try" in
2414 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
2415 *) ac_try_echo
=$ac_try;;
2417 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2418 $as_echo "$ac_try_echo"; } >&5
2419 (eval "$ac_try") 2>&5
2421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2422 test $ac_status = 0; }; }; then
2425 if test "$cross_compiling" = maybe
; then
2428 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2429 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2430 as_fn_error $?
"cannot run C compiled programs.
2431 If you meant to cross compile, use \`--host'.
2432 See \`config.log' for more details" "$LINENO" 5; }
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2437 $as_echo "$cross_compiling" >&6; }
2439 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
2440 ac_clean_files
=$ac_clean_files_save
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2442 $as_echo_n "checking for suffix of object files... " >&6; }
2443 if ${ac_cv_objext+:} false
; then :
2444 $as_echo_n "(cached) " >&6
2446 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2447 /* end confdefs.h. */
2457 rm -f conftest.o conftest.obj
2458 if { { ac_try
="$ac_compile"
2460 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
2461 *) ac_try_echo=$ac_try;;
2463 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2464 $as_echo "$ac_try_echo"; } >&5
2465 (eval "$ac_compile") 2>&5
2467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2468 test $ac_status = 0; }; then :
2469 for ac_file in conftest.o conftest.obj conftest.*; do
2470 test -f "$ac_file" || continue;
2472 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2473 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2478 $as_echo "$as_me: failed program was:" >&5
2479 sed 's/^/| /' conftest.$ac_ext >&5
2481 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2483 as_fn_error $? "cannot compute suffix of object files
: cannot compile
2484 See \
`config.log' for more details" "$LINENO" 5; }
2486 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2489 $as_echo "$ac_cv_objext" >&6; }
2490 OBJEXT=$ac_cv_objext
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2493 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2494 if ${ac_cv_c_compiler_gnu+:} false; then :
2495 $as_echo_n "(cached) " >&6
2497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2498 /* end confdefs.h. */
2511 if ac_fn_c_try_compile "$LINENO"; then :
2516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2517 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2521 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2522 if test $ac_compiler_gnu = yes; then
2527 ac_test_CFLAGS=${CFLAGS+set}
2528 ac_save_CFLAGS=$CFLAGS
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2530 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2531 if ${ac_cv_prog_cc_g+:} false; then :
2532 $as_echo_n "(cached) " >&6
2534 ac_save_c_werror_flag=$ac_c_werror_flag
2535 ac_c_werror_flag=yes
2538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2539 /* end confdefs.h. */
2549 if ac_fn_c_try_compile "$LINENO"; then :
2553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2554 /* end confdefs.h. */
2564 if ac_fn_c_try_compile "$LINENO"; then :
2567 ac_c_werror_flag=$ac_save_c_werror_flag
2569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2570 /* end confdefs.h. */
2580 if ac_fn_c_try_compile "$LINENO"; then :
2583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2588 ac_c_werror_flag=$ac_save_c_werror_flag
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2591 $as_echo "$ac_cv_prog_cc_g" >&6; }
2592 if test "$ac_test_CFLAGS" = set; then
2593 CFLAGS=$ac_save_CFLAGS
2594 elif test $ac_cv_prog_cc_g = yes; then
2595 if test "$GCC" = yes; then
2601 if test "$GCC" = yes; then
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2608 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2609 if ${ac_cv_prog_cc_c89+:} false; then :
2610 $as_echo_n "(cached) " >&6
2612 ac_cv_prog_cc_c89=no
2614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2615 /* end confdefs.h. */
2619 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2620 struct buf { int x; };
2621 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2622 static char *e (p, i)
2628 static char *f (char * (*g) (char **, int), char **p, ...)
2633 s = g (p, va_arg (v,int));
2638 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2639 function prototypes and stuff, but not '\xHH' hex character constants.
2640 These don't provoke an error unfortunately, instead are silently treated
2641 as 'x'. The following induces an error, until -std is added to get
2642 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2643 array size at least. It's necessary to write '\x00'==0 to get something
2644 that's true only with -std. */
2645 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2647 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2648 inside strings and character constants. */
2650 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2652 int test (int i, double x);
2653 struct s1 {int (*f) (int a);};
2654 struct s2 {int (*f) (double a);};
2655 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2661 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2666 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2667 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2669 CC="$ac_save_CC $ac_arg"
2670 if ac_fn_c_try_compile "$LINENO"; then :
2671 ac_cv_prog_cc_c89=$ac_arg
2673 rm -f core conftest.err conftest.$ac_objext
2674 test "x$ac_cv_prog_cc_c89" != "xno" && break
2676 rm -f conftest.$ac_ext
2681 case "x$ac_cv_prog_cc_c89" in
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2684 $as_echo "none needed" >&6; } ;;
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2687 $as_echo "unsupported" >&6; } ;;
2689 CC="$CC $ac_cv_prog_cc_c89"
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2691 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2693 if test "x$ac_cv_prog_cc_c89" != xno; then :
2698 ac_cpp='$CPP $CPPFLAGS'
2699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
2704 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
2705 if ${ac_cv_prog_cc_c99+:} false; then :
2706 $as_echo_n "(cached) " >&6
2708 ac_cv_prog_cc_c99=no
2710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2711 /* end confdefs.h. */
2713 #include <stdbool.h>
2718 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2719 #define debug(...) fprintf (stderr, __VA_ARGS__)
2720 #define showlist(...) puts (#__VA_ARGS__)
2721 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2723 test_varargs_macros (void)
2728 debug ("X = %d\n", x);
2729 showlist (The first, second, and third items.);
2730 report (x>y, "x is %d but y is %d", x, y);
2733 // Check long long types.
2734 #define BIG64 18446744073709551615ull
2735 #define BIG32 4294967295ul
2736 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2738 your preprocessor is broken;
2742 your preprocessor is broken;
2744 static long long int bignum = -9223372036854775807LL;
2745 static unsigned long long int ubignum = BIG64;
2747 struct incomplete_array
2755 const wchar_t *name;
2759 typedef const char *ccp;
2762 test_restrict (ccp restrict text)
2764 // See if C++-style comments work.
2765 // Iterate through items via the restricted pointer.
2766 // Also check for declarations in for loops.
2767 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
2772 // Check varargs and va_copy.
2774 test_varargs (const char *format, ...)
2777 va_start (args, format);
2779 va_copy (args_copy, args);
2790 str = va_arg (args_copy, const char *);
2793 number = va_arg (args_copy, int);
2796 fnumber = va_arg (args_copy, double);
2811 _Bool success = false;
2814 if (test_restrict ("String literal") == 0)
2816 char *restrict newvar = "Another string";
2819 test_varargs ("s, d' f .", "string", 65, 34.234);
2820 test_varargs_macros ();
2822 // Check flexible array members.
2823 struct incomplete_array *ia =
2824 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2826 for (int i = 0; i < ia->datasize; ++i)
2827 ia->data[i] = i * 1.234;
2829 // Check named initializers.
2830 struct named_init ni = {
2832 .name = L"Test wide string",
2833 .average = 543.34343,
2838 int dynamic_array[ni.number];
2839 dynamic_array[ni.number - 1] = 543;
2841 // work around unused variable warnings
2842 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
2843 || dynamic_array[ni.number - 1] != 543);
2849 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
2851 CC="$ac_save_CC $ac_arg"
2852 if ac_fn_c_try_compile "$LINENO"; then :
2853 ac_cv_prog_cc_c99=$ac_arg
2855 rm -f core conftest.err conftest.$ac_objext
2856 test "x$ac_cv_prog_cc_c99" != "xno" && break
2858 rm -f conftest.$ac_ext
2863 case "x$ac_cv_prog_cc_c99" in
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2866 $as_echo "none needed" >&6; } ;;
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2869 $as_echo "unsupported" >&6; } ;;
2871 CC="$CC $ac_cv_prog_cc_c99"
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
2873 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
2875 if test "x$ac_cv_prog_cc_c99" != xno; then :
2880 if test "x${ac_cv_prog_cc_c99}" = "xno"; then :
2882 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2883 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2884 as_fn_error $? "This program requires a C99 compiler
2885 See \
`config.log' for more details" "$LINENO" 5; }
2888 if test -n "$ac_tool_prefix"; then
2889 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2890 set dummy ${ac_tool_prefix}ar; ac_word=$2
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2892 $as_echo_n "checking for $ac_word... " >&6; }
2893 if ${ac_cv_prog_AR+:} false; then :
2894 $as_echo_n "(cached) " >&6
2896 if test -n "$AR"; then
2897 ac_cv_prog_AR="$AR" # Let the user override the test.
2899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903 test -z "$as_dir" && as_dir=.
2904 for ac_exec_ext in '' $ac_executable_extensions; do
2905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2906 ac_cv_prog_AR="${ac_tool_prefix}ar"
2907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2917 if test -n "$AR"; then
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
2919 $as_echo "$AR" >&6; }
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2922 $as_echo "no" >&6; }
2927 if test -z "$ac_cv_prog_AR"; then
2929 # Extract the first word of "ar", so it can be a program name with args.
2930 set dummy ar; ac_word=$2
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2932 $as_echo_n "checking for $ac_word... " >&6; }
2933 if ${ac_cv_prog_ac_ct_AR+:} false; then :
2934 $as_echo_n "(cached) " >&6
2936 if test -n "$ac_ct_AR"; then
2937 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943 test -z "$as_dir" && as_dir=.
2944 for ac_exec_ext in '' $ac_executable_extensions; do
2945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2946 ac_cv_prog_ac_ct_AR="ar"
2947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2956 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2957 if test -n "$ac_ct_AR"; then
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
2959 $as_echo "$ac_ct_AR" >&6; }
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2962 $as_echo "no" >&6; }
2965 if test "x$ac_ct_AR" = x; then
2968 case $cross_compiling:$ac_tool_warned in
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2971 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2972 ac_tool_warned=yes ;;
2980 # Extract the first word of "cp", so it can be a program name with args.
2981 set dummy cp; ac_word=$2
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2983 $as_echo_n "checking for $ac_word... " >&6; }
2984 if ${ac_cv_path_CP+:} false; then :
2985 $as_echo_n "(cached) " >&6
2989 ac_cv_path_CP="$CP" # Let the user override the test with a path.
2992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996 test -z "$as_dir" && as_dir=.
2997 for ac_exec_ext in '' $ac_executable_extensions; do
2998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2999 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3011 if test -n "$CP"; then
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
3013 $as_echo "$CP" >&6; }
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3016 $as_echo "no" >&6; }
3020 # Find a good install program. We prefer a C program (faster),
3021 # so one script is as good as another. But avoid the broken or
3022 # incompatible versions:
3023 # SysV /etc/install, /usr/sbin/install
3024 # SunOS /usr/etc/install
3025 # IRIX /sbin/install
3027 # AmigaOS /C/install, which installs bootblocks on floppy discs
3028 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3029 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3030 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3031 # OS/2's system install, which has a completely different semantic
3032 # ./install, which can be erroneously created by make from ./install.sh.
3033 # Reject install programs that cannot install multiple files.
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3035 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3036 if test -z "$INSTALL"; then
3037 if ${ac_cv_path_install+:} false; then :
3038 $as_echo_n "(cached) " >&6
3040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3044 test -z "$as_dir" && as_dir=.
3045 # Account for people who put trailing slashes in PATH elements.
3046 case $as_dir/ in #((
3047 ./ | .// | /[cC]/* | \
3048 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3049 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3052 # OSF1 and SCO ODT 3.0 have their own names for install.
3053 # Don't use installbsd from OSF since it installs stuff as root
3055 for ac_prog in ginstall scoinst install; do
3056 for ac_exec_ext in '' $ac_executable_extensions; do
3057 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3058 if test $ac_prog = install &&
3059 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3060 # AIX install. It has an incompatible calling convention.
3062 elif test $ac_prog = install &&
3063 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3064 # program-specific install script used by HP pwplus--don't use.
3067 rm -rf conftest.one conftest.two conftest.dir
3068 echo one > conftest.one
3069 echo two > conftest.two
3071 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3072 test -s conftest.one && test -s conftest.two &&
3073 test -s conftest.dir/conftest.one &&
3074 test -s conftest.dir/conftest.two
3076 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3089 rm -rf conftest.one conftest.two conftest.dir
3092 if test "${ac_cv_path_install+set}" = set; then
3093 INSTALL=$ac_cv_path_install
3095 # As a last resort, use the slow shell script. Don't cache a
3096 # value for INSTALL within a source directory, because that will
3097 # break other packages using the cache if that directory is
3098 # removed, or if the value is a relative name.
3099 INSTALL=$ac_install_sh
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3103 $as_echo "$INSTALL" >&6; }
3105 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3106 # It thinks the first close brace ends the variable substitution.
3107 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3109 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3111 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3113 # Extract the first word of "ln", so it can be a program name with args.
3114 set dummy ln; ac_word=$2
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3116 $as_echo_n "checking for $ac_word... " >&6; }
3117 if ${ac_cv_path_LN+:} false; then :
3118 $as_echo_n "(cached) " >&6
3122 ac_cv_path_LN="$LN" # Let the user override the test with a path.
3125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129 test -z "$as_dir" && as_dir=.
3130 for ac_exec_ext in '' $ac_executable_extensions; do
3131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3132 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
3133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3144 if test -n "$LN"; then
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
3146 $as_echo "$LN" >&6; }
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3149 $as_echo "no" >&6; }
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3154 $as_echo_n "checking whether ln -s works... " >&6; }
3156 if test "$LN_S" = "ln -s"; then
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3158 $as_echo "yes" >&6; }
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3161 $as_echo "no, using $LN_S" >&6; }
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3165 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3167 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3168 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3169 $as_echo_n "(cached) " >&6
3171 cat >conftest.make <<\_ACEOF
3174 @echo '@@@%%%=$(MAKE)=@@@%%%'
3176 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3177 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
3179 eval ac_cv_prog_make_${ac_make}_set=yes;;
3181 eval ac_cv_prog_make_${ac_make}_set=no;;
3185 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3187 $as_echo "yes" >&6; }
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3191 $as_echo "no" >&6; }
3192 SET_MAKE="MAKE=${MAKE-make}"
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3196 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3197 if test -z "$MKDIR_P"; then
3198 if ${ac_cv_path_mkdir+:} false; then :
3199 $as_echo_n "(cached) " >&6
3201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3202 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3205 test -z "$as_dir" && as_dir=.
3206 for ac_prog in mkdir gmkdir; do
3207 for ac_exec_ext in '' $ac_executable_extensions; do
3208 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3209 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3210 'mkdir (GNU coreutils) '* | \
3211 'mkdir (coreutils) '* | \
3212 'mkdir (fileutils) '4.1*)
3213 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3223 test -d ./--version && rmdir ./--version
3224 if test "${ac_cv_path_mkdir+set}" = set; then
3225 MKDIR_P="$ac_cv_path_mkdir -p"
3227 # As a last resort, use the slow shell script. Don't cache a
3228 # value for MKDIR_P within a source directory, because that will
3229 # break other packages using the cache if that directory is
3230 # removed, or if the value is a relative name.
3231 MKDIR_P="$ac_install_sh -d"
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3235 $as_echo "$MKDIR_P" >&6; }
3237 # Extract the first word of "mv", so it can be a program name with args.
3238 set dummy mv; ac_word=$2
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3240 $as_echo_n "checking for $ac_word... " >&6; }
3241 if ${ac_cv_path_MV+:} false; then :
3242 $as_echo_n "(cached) " >&6
3246 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253 test -z "$as_dir" && as_dir=.
3254 for ac_exec_ext in '' $ac_executable_extensions; do
3255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3256 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3268 if test -n "$MV"; then
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
3270 $as_echo "$MV" >&6; }
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3273 $as_echo "no" >&6; }
3277 if test -n "$ac_tool_prefix"; then
3278 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3279 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3281 $as_echo_n "checking for $ac_word... " >&6; }
3282 if ${ac_cv_prog_RANLIB+:} false; then :
3283 $as_echo_n "(cached) " >&6
3285 if test -n "$RANLIB"; then
3286 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3292 test -z "$as_dir" && as_dir=.
3293 for ac_exec_ext in '' $ac_executable_extensions; do
3294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3295 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3305 RANLIB=$ac_cv_prog_RANLIB
3306 if test -n "$RANLIB"; then
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3308 $as_echo "$RANLIB" >&6; }
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3311 $as_echo "no" >&6; }
3316 if test -z "$ac_cv_prog_RANLIB"; then
3317 ac_ct_RANLIB=$RANLIB
3318 # Extract the first word of "ranlib", so it can be a program name with args.
3319 set dummy ranlib; ac_word=$2
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3321 $as_echo_n "checking for $ac_word... " >&6; }
3322 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3323 $as_echo_n "(cached) " >&6
3325 if test -n "$ac_ct_RANLIB"; then
3326 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3332 test -z "$as_dir" && as_dir=.
3333 for ac_exec_ext in '' $ac_executable_extensions; do
3334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3335 ac_cv_prog_ac_ct_RANLIB="ranlib"
3336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3345 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3346 if test -n "$ac_ct_RANLIB"; then
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3348 $as_echo "$ac_ct_RANLIB" >&6; }
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3351 $as_echo "no" >&6; }
3354 if test "x$ac_ct_RANLIB" = x; then
3357 case $cross_compiling:$ac_tool_warned in
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3360 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3361 ac_tool_warned=yes ;;
3363 RANLIB=$ac_ct_RANLIB
3366 RANLIB="$ac_cv_prog_RANLIB"
3369 # Extract the first word of "rm", so it can be a program name with args.
3370 set dummy rm; ac_word=$2
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3372 $as_echo_n "checking for $ac_word... " >&6; }
3373 if ${ac_cv_path_RM+:} false; then :
3374 $as_echo_n "(cached) " >&6
3378 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3385 test -z "$as_dir" && as_dir=.
3386 for ac_exec_ext in '' $ac_executable_extensions; do
3387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3388 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3400 if test -n "$RM"; then
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
3402 $as_echo "$RM" >&6; }
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3405 $as_echo "no" >&6; }
3409 # Extract the first word of "tar", so it can be a program name with args.
3410 set dummy tar; ac_word=$2
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3412 $as_echo_n "checking for $ac_word... " >&6; }
3413 if ${ac_cv_path_TAR+:} false; then :
3414 $as_echo_n "(cached) " >&6
3418 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
3421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3425 test -z "$as_dir" && as_dir=.
3426 for ac_exec_ext in '' $ac_executable_extensions; do
3427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3428 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
3429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3440 if test -n "$TAR"; then
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
3442 $as_echo "$TAR" >&6; }
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3445 $as_echo "no" >&6; }
3450 # Does what its name implies. The above block can't be put into this function
3451 # because of autotools black magic voodoo crap that no-one understands ...
3452 # Make sure we can run config.sub.
3453 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3454 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3457 $as_echo_n "checking build system type... " >&6; }
3458 if ${ac_cv_build+:} false; then :
3459 $as_echo_n "(cached) " >&6
3461 ac_build_alias=$build_alias
3462 test "x$ac_build_alias" = x &&
3463 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3464 test "x$ac_build_alias" = x &&
3465 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3466 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3467 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3471 $as_echo "$ac_cv_build" >&6; }
3472 case $ac_cv_build in
3474 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3477 ac_save_IFS=$IFS; IFS='-'
3483 # Remember, the first character of IFS is used to create $*,
3484 # except with old shells:
3487 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3491 $as_echo_n "checking host system type... " >&6; }
3492 if ${ac_cv_host+:} false; then :
3493 $as_echo_n "(cached) " >&6
3495 if test "x$host_alias" = x; then
3496 ac_cv_host=$ac_cv_build
3498 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3499 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3504 $as_echo "$ac_cv_host" >&6; }
3507 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3510 ac_save_IFS=$IFS; IFS='-'
3516 # Remember, the first character of IFS is used to create $*,
3517 # except with old shells:
3520 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3525 # Initialise our build system
3527 # Extract the first word of "tput", so it can be a program name with args.
3528 set dummy tput; ac_word=$2
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3530 $as_echo_n "checking for $ac_word... " >&6; }
3531 if ${ac_cv_path_TPUT+:} false; then :
3532 $as_echo_n "(cached) " >&6
3536 ac_cv_path_TPUT="$TPUT" # Let the user override the test with a path.
3539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3543 test -z "$as_dir" && as_dir=.
3544 for ac_exec_ext in '' $ac_executable_extensions; do
3545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3546 ac_cv_path_TPUT="$as_dir/$ac_word$ac_exec_ext"
3547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3557 TPUT=$ac_cv_path_TPUT
3558 if test -n "$TPUT"; then
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TPUT" >&5
3560 $as_echo "$TPUT" >&6; }
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3563 $as_echo "no" >&6; }
3568 if test x"$TPUT" != x""; then :
3570 if x=$($TPUT el 2>/dev/null); then
3574 TERM_EL="$($TPUT ce 2>/dev/null)"
3578 if x=$($TPUT sgr0 2>/dev/null); then
3582 TERM_SGR0="$($TPUT me 2>/dev/null)"
3586 if x=$($TPUT bold 2>/dev/null); then
3590 TERM_BOLD="$($TPUT md 2>/dev/null)"
3594 if x=$($TPUT setaf 1 2>/dev/null); then
3597 TERM_SETAF2="$($TPUT setaf 2 2>/dev/null)"
3599 TERM_SETAF3="$($TPUT setaf 3 2>/dev/null)"
3601 TERM_SETAF4="$($TPUT setaf 4 2>/dev/null)"
3603 TERM_SETAF6="$($TPUT setaf 6 2>/dev/null)"
3606 TERM_SETAF1="$($TPUT AF 1 2>/dev/null)"
3608 TERM_SETAF2="$($TPUT AF 2 2>/dev/null)"
3610 TERM_SETAF3="$($TPUT AF 3 2>/dev/null)"
3612 TERM_SETAF4="$($TPUT AF 4 2>/dev/null)"
3614 TERM_SETAF6="$($TPUT AF 6 2>/dev/null)"
3622 TERM_SGR0='\033\133m'
3624 TERM_BOLD='\033\1331m'
3626 TERM_SETAF1='\033\13331m'
3628 TERM_SETAF2='\033\13332m'
3630 TERM_SETAF3='\033\13333m'
3632 TERM_SETAF4='\033\13334m'
3634 TERM_SETAF6='\033\13336m'
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library system" >&5
3642 $as_echo_n "checking for shared library system... " >&6; }
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5
3646 $as_echo "Darwin" >&6; }
3647 LIB_CFLAGS='-fPIC -DPIC'
3648 LIB_LDFLAGS='-dynamiclib -current_version ${LIB_MAJOR}.${LIB_MINOR} -compatibility_version ${LIB_MAJOR} -install_name @rpath/${SHARED_LIB}'
3651 LDFLAGS_RPATH='-Wl,-rpath,${libdir}'
3652 PLUGIN_CFLAGS='-fPIC -DPIC'
3653 PLUGIN_LDFLAGS='-shared -undefined dynamic_lookup'
3655 INSTALL_LIB='&& ${INSTALL} -m 755 $$i ${DESTDIR}${libdir}/$${i%.dylib}.${LIB_MAJOR}.${LIB_MINOR}.dylib && ${LN_S} -f $${i%.dylib}.${LIB_MAJOR}.${LIB_MINOR}.dylib ${DESTDIR}${libdir}/$${i%.dylib}.${LIB_MAJOR}.dylib && ${LN_S} -f $${i%.dylib}.${LIB_MAJOR}.${LIB_MINOR}.dylib ${DESTDIR}${libdir}/$$i'
3656 UNINSTALL_LIB='&& rm -f ${DESTDIR}${libdir}/$$i ${DESTDIR}${libdir}/$${i%.dylib}.${LIB_MAJOR}.dylib ${DESTDIR}${libdir}/$${i%.dylib}.${LIB_MAJOR}.${LIB_MINOR}.dylib'
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris" >&5
3661 $as_echo "Solaris" >&6; }
3662 LIB_CFLAGS='-fPIC -DPIC'
3663 LIB_LDFLAGS='-shared -Wl,-soname=${SHARED_LIB}.${LIB_MAJOR}.${LIB_MINOR}'
3666 LDFLAGS_RPATH='-Wl,-rpath,${libdir}'
3667 PLUGIN_CFLAGS='-fPIC -DPIC'
3668 PLUGIN_LDFLAGS='-shared'
3670 INSTALL_LIB='&& ${INSTALL} -m 755 $$i ${DESTDIR}${libdir}/$$i.${LIB_MAJOR}.${LIB_MINOR} && rm -f ${DESTDIR}${libdir}/$$i && ${LN_S} $$i.${LIB_MAJOR}.${LIB_MINOR} ${DESTDIR}${libdir}/$$i'
3671 UNINSTALL_LIB='&& rm -f ${DESTDIR}${libdir}/$$i ${DESTDIR}${libdir}/$$i.${LIB_MAJOR}.${LIB_MINOR}'
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenBSD" >&5
3676 $as_echo "OpenBSD" >&6; }
3677 LIB_CFLAGS='-fPIC -DPIC'
3678 LIB_LDFLAGS='-shared'
3680 LIB_SUFFIX='.so.${LIB_MAJOR}.${LIB_MINOR}'
3681 LDFLAGS_RPATH='-Wl,-rpath,${libdir}'
3682 PLUGIN_CFLAGS='-fPIC -DPIC'
3683 PLUGIN_LDFLAGS='-shared'
3685 INSTALL_LIB='&& ${INSTALL} -m 755 $$i ${DESTDIR}${libdir}/$$i'
3686 UNINSTALL_LIB='&& rm -f ${DESTDIR}${libdir}/$$i'
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Win32" >&5
3691 $as_echo "Win32" >&6; }
3693 LIB_LDFLAGS='-shared -Wl,--out-implib,${SHARED_LIB}.a'
3696 LDFLAGS_RPATH='-Wl,-rpath,${libdir}'
3698 PLUGIN_LDFLAGS='-shared'
3699 PLUGIN_SUFFIX='.dll'
3700 INSTALL_LIB='&& ${MKDIR_P} ${DESTDIR}${bindir} && ${INSTALL} -m 755 $$i ${DESTDIR}${bindir}/$$i && ${INSTALL} -m 755 $$i.a ${DESTDIR}${libdir}/$$i.a'
3701 UNINSTALL_LIB='&& rm -f ${DESTDIR}${bindir}/$$i ${DESTDIR}${libdir}/$$i.a'
3702 CLEAN_LIB='${SHARED_LIB}.a'
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GNU" >&5
3706 $as_echo "GNU" >&6; }
3707 LIB_CFLAGS='-fPIC -DPIC'
3708 LIB_LDFLAGS='-shared -Wl,-soname=${SHARED_LIB}.${LIB_MAJOR}'
3711 LDFLAGS_RPATH='-Wl,-rpath,${libdir}'
3712 PLUGIN_CFLAGS='-fPIC -DPIC'
3713 PLUGIN_LDFLAGS='-shared'
3715 INSTALL_LIB='&& ${INSTALL} -m 755 $$i ${DESTDIR}${libdir}/$$i.${LIB_MAJOR}.${LIB_MINOR}.0 && ${LN_S} -f $$i.${LIB_MAJOR}.${LIB_MINOR}.0 ${DESTDIR}${libdir}/$$i.${LIB_MAJOR} && ${LN_S} -f $$i.${LIB_MAJOR}.${LIB_MINOR}.0 ${DESTDIR}${libdir}/$$i'
3716 UNINSTALL_LIB='&& rm -f ${DESTDIR}${libdir}/$$i ${DESTDIR}${libdir}/$$i.${LIB_MAJOR} ${DESTDIR}${libdir}/$$i.${LIB_MAJOR}.${LIB_MINOR}.0'
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need an implib" >&5
3736 $as_echo_n "checking whether we need an implib... " >&6; }
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3740 $as_echo "yes" >&6; }
3741 PROG_IMPLIB_NEEDED='yes'
3742 PROG_IMPLIB_LDFLAGS='-Wl,-export-all-symbols,--out-implib,lib${PROG}.a'
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3746 $as_echo "no" >&6; }
3747 PROG_IMPLIB_NEEDED='no'
3748 PROG_IMPLIB_LDFLAGS=''
3757 # Automake compatibility. --nenolod
3758 PACKAGE=atheme-contrib-modules
3763 cat >>confdefs.h <<_ACEOF
3764 #define PACKAGE "${PACKAGE}"
3768 cat >>confdefs.h <<_ACEOF
3769 #define VERSION "${VERSION}"
3773 # This should be before any library tests so that insufficient header
3774 # inclusions in those tests are caught before they become a runtime
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler flag(s) -Werror=implicit " >&5
3780 $as_echo_n "checking for C compiler flag(s) -Werror=implicit ... " >&6; }
3782 CFLAGS_SAVED="${CFLAGS:-}"
3783 CFLAGS="${CFLAGS:-}${CFLAGS:+ }-Werror=implicit"
3785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3786 /* end confdefs.h. */
3789 #ifdef HAVE_STDDEF_H
3790 # include <stddef.h>
3802 int zero = return_zero();
3809 if ac_fn_c_try_compile "$LINENO"; then :
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3812 $as_echo "yes" >&6; }
3813 ATHEME_CONTRIB_TEST_CC_FLAGS_RESULT="yes"
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3818 $as_echo "no" >&6; }
3819 ATHEME_CONTRIB_TEST_CC_FLAGS_RESULT="no"
3820 CFLAGS="${CFLAGS_SAVED}"
3823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3828 # Some modules use platform-specific functionality and thus need checks that
3829 # the functionality is available
3832 LIBS_SAVED="${LIBS}"
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
3835 $as_echo_n "checking for library containing gethostbyname... " >&6; }
3836 if ${ac_cv_search_gethostbyname+:} false; then :
3837 $as_echo_n "(cached) " >&6
3839 ac_func_search_save_LIBS=$LIBS
3840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3841 /* end confdefs.h. */
3843 /* Override any GCC internal prototype to avoid an error.
3844 Use char because int might match the return type of a GCC
3845 builtin and then its argument prototype would still apply. */
3849 char gethostbyname ();
3853 return gethostbyname ();
3858 for ac_lib in '' nsl; do
3859 if test -z "$ac_lib"; then
3860 ac_res="none required"
3863 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3865 if ac_fn_c_try_link "$LINENO"; then :
3866 ac_cv_search_gethostbyname=$ac_res
3868 rm -f core conftest.err conftest.$ac_objext \
3870 if ${ac_cv_search_gethostbyname+:} false; then :
3874 if ${ac_cv_search_gethostbyname+:} false; then :
3877 ac_cv_search_gethostbyname=no
3880 LIBS=$ac_func_search_save_LIBS
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
3883 $as_echo "$ac_cv_search_gethostbyname" >&6; }
3884 ac_res=$ac_cv_search_gethostbyname
3885 if test "$ac_res" != no; then :
3886 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3889 for ac_header in sys/types.h netinet/in.h arpa/nameser.h netdb.h resolv.h
3891 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3892 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TYPES_H
3893 # include <sys/types.h>
3895 #ifdef HAVE_NETINET_IN_H
3896 # include <netinet/in.h> /* inet_ functions / structs */
3898 #ifdef HAVE_ARPA_NAMESER_H
3899 # include <arpa/nameser.h> /* DNS HEADER struct */
3905 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3906 cat >>confdefs.h <<_ACEOF
3907 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking a program using res_query(3) works" >&5
3916 $as_echo_n "checking whether compiling and linking a program using res_query(3) works... " >&6; }
3920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3921 /* end confdefs.h. */
3924 #ifdef HAVE_STDDEF_H
3925 # include <stddef.h>
3927 #ifdef HAVE_SYS_TYPES_H
3928 # include <sys/types.h>
3930 #ifdef HAVE_NETINET_IN_H
3931 # include <netinet/in.h>
3933 #ifdef HAVE_ARPA_NAMESER_H
3934 # include <arpa/nameser.h>
3939 #ifdef HAVE_RESOLV_H
3940 # include <resolv.h>
3943 # define C_ANY ns_c_any
3946 # define T_MX ns_t_mx
3949 # define S_AN ns_s_an
3957 const int ret = res_query(NULL, C_ANY, T_MX, NULL, 0);
3958 (void) ns_initparse(NULL, ret, &amsg);
3959 const int cnt = ns_msg_count(amsg, S_AN);
3966 if ac_fn_c_try_link "$LINENO"; then :
3968 ATHEME_CONTRIB_LIBTEST_RES_QUERY_RESULT="yes"
3972 ATHEME_CONTRIB_LIBTEST_RES_QUERY_RESULT="no"
3975 rm -f core conftest.err conftest.$ac_objext \
3976 conftest$ac_exeext conftest.$ac_ext
3978 if test "${ATHEME_CONTRIB_LIBTEST_RES_QUERY_RESULT}" = "yes"; then :
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3981 $as_echo "yes" >&6; }
3985 $as_echo "#define HAVE_RES_QUERY 1" >>confdefs.h
3991 LIBS="-lresolv ${LIBS}"
3994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3995 /* end confdefs.h. */
3998 #ifdef HAVE_STDDEF_H
3999 # include <stddef.h>
4001 #ifdef HAVE_SYS_TYPES_H
4002 # include <sys/types.h>
4004 #ifdef HAVE_NETINET_IN_H
4005 # include <netinet/in.h>
4007 #ifdef HAVE_ARPA_NAMESER_H
4008 # include <arpa/nameser.h>
4013 #ifdef HAVE_RESOLV_H
4014 # include <resolv.h>
4017 # define C_ANY ns_c_any
4020 # define T_MX ns_t_mx
4023 # define S_AN ns_s_an
4031 const int ret = res_query(NULL, C_ANY, T_MX, NULL, 0);
4032 (void) ns_initparse(NULL, ret, &amsg);
4033 const int cnt = ns_msg_count(amsg, S_AN);
4040 if ac_fn_c_try_link "$LINENO"; then :
4042 ATHEME_CONTRIB_LIBTEST_RES_QUERY_RESULT="yes"
4046 ATHEME_CONTRIB_LIBTEST_RES_QUERY_RESULT="no"
4049 rm -f core conftest.err conftest.$ac_objext \
4050 conftest$ac_exeext conftest.$ac_ext
4052 if test "${ATHEME_CONTRIB_LIBTEST_RES_QUERY_RESULT}" = "yes"; then :
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4055 $as_echo "yes" >&6; }
4059 $as_echo "#define HAVE_RES_QUERY 1" >>confdefs.h
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4066 $as_echo "no" >&6; }
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the ns_mxcheck and ns_mxcheck_async modules will not be available" >&5
4070 $as_echo "$as_me: WARNING: the ns_mxcheck and ns_mxcheck_async modules will not be available" >&2;}
4072 LIBS="${LIBS_SAVED}"
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the ns_mxcheck and ns_mxcheck_async modules will not be available" >&5
4083 $as_echo "$as_me: WARNING: the ns_mxcheck and ns_mxcheck_async modules will not be available" >&2;}
4094 cat >confcache <<\_ACEOF
4095 # This file is a shell script that caches the results of configure
4096 # tests run on this system so they can be shared between configure
4097 # scripts and configure runs, see configure's option --config-cache.
4098 # It is not useful on other systems. If it contains results you don't
4099 # want to keep, you may remove or edit it.
4101 # config.status only pays attention to the cache file if you give it
4102 # the --recheck option to rerun configure.
4104 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
4105 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4110 # The following way of writing the cache mishandles newlines in values,
4111 # but we know of no workaround that is simple, portable, and efficient.
4112 # So, we kill variables containing newlines.
4113 # Ultrix sh set writes to stderr and can't be redirected directly,
4114 # and sets the high bit in the cache file unless we assign to the vars.
4116 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4117 eval ac_val
=\$
$ac_var
4121 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4122 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4125 _
| IFS
| as_nl
) ;; #(
4126 BASH_ARGV
| BASH_SOURCE
) eval $ac_var= ;; #(
4127 *) { eval $ac_var=; unset $ac_var;} ;;
4133 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4134 *${as_nl}ac_space
=\
*)
4135 # `set' does not quote correctly, so add quotes: double-quote
4136 # substitution turns \\\\ into \\, and sed turns \\ into \.
4139 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4142 # `set' quotes correctly as required by POSIX, so do not add quotes.
4143 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4152 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4154 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4156 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
4157 if test -w "$cache_file"; then
4158 if test "x$cache_file" != "x/dev/null"; then
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4160 $as_echo "$as_me: updating cache $cache_file" >&6;}
4161 if test ! -f "$cache_file" || test -h "$cache_file"; then
4162 cat confcache
>"$cache_file"
4164 case $cache_file in #(
4166 mv -f confcache
"$cache_file"$$
&&
4167 mv -f "$cache_file"$$
"$cache_file" ;; #(
4169 mv -f confcache
"$cache_file" ;;
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4175 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4180 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4181 # Let make expand exec_prefix.
4182 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4184 DEFS
=-DHAVE_CONFIG_H
4189 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
4190 # 1. Remove the extension, and $U if already installed.
4191 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
4192 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
4193 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4194 # will be set to the directory where LIBOBJS objects are built.
4195 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4196 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
4200 LTLIBOBJS
=$ac_ltlibobjs
4204 : "${CONFIG_STATUS=./config.status}"
4206 ac_clean_files_save
=$ac_clean_files
4207 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4209 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4211 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4213 # Generated by $as_me.
4214 # Run this file to recreate the current configuration.
4215 # Compiler output produced by configure, useful for debugging
4216 # configure, is in config.log if it exists.
4222 SHELL=\${CONFIG_SHELL-$SHELL}
4225 cat >>$CONFIG_STATUS <<\_ASEOF
|| as_write_fail
=1
4226 ## -------------------- ##
4227 ## M4sh Initialization. ##
4228 ## -------------------- ##
4230 # Be more Bourne compatible
4231 DUALCASE
=1; export DUALCASE
# for MKS sh
4232 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
4235 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4236 # is contrary to our usage. Disable this feature.
4237 alias -g '${1+"$@"}'='"$@"'
4238 setopt NO_GLOB_SUBST
4240 case `(set -o) 2>/dev/null` in #(
4252 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4253 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4254 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4255 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4256 # Prefer a ksh shell builtin over an external printf program on Solaris,
4257 # but without wasting forks for bash or zsh.
4258 if test -z "$BASH_VERSION$ZSH_VERSION" \
4259 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4260 as_echo='print
-r --'
4261 as_echo_n='print
-rn --'
4262 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4263 as_echo='printf %s
\n'
4264 as_echo_n='printf %s
'
4266 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4267 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
4268 as_echo_n='/usr
/ucb
/echo -n'
4270 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4271 as_echo_n_body='eval
4275 expr "X$arg" : "X\\(.*\\)$as_nl";
4276 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4278 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4280 export as_echo_n_body
4281 as_echo_n='sh
-c $as_echo_n_body as_echo
'
4284 as_echo='sh
-c $as_echo_body as_echo
'
4287 # The user is always right.
4288 if test "${PATH_SEPARATOR+set}" != set; then
4290 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4291 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4298 # We need space, tab and new line, in precisely that order. Quoting is
4299 # there to prevent editors from complaining about space-tab.
4300 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4301 # splitting by setting IFS to empty value.)
4304 # Find who we are. Look in the path if we contain no directory separator.
4307 *[\\/]* ) as_myself=$0 ;;
4308 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4312 test -z "$as_dir" && as_dir=.
4313 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4319 # We did not find ourselves, most probably we were run as `sh COMMAND'
4320 # in which case we are not to be found in the path.
4321 if test "x$as_myself" = x
; then
4324 if test ! -f "$as_myself"; then
4325 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4329 # Unset variables that we do not need and which cause bugs (e.g. in
4330 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4331 # suppresses any "Segmentation fault" message there. '((' could
4332 # trigger a bug in pdksh 5.2.14.
4333 for as_var
in BASH_ENV ENV MAIL MAILPATH
4334 do eval test x\
${$as_var+set} = xset \
4335 && ( (unset $as_var) || exit 1) >/dev
/null
2>&1 && unset $as_var || :
4348 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
4351 # as_fn_error STATUS ERROR [LINENO LOG_FD]
4352 # ----------------------------------------
4353 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4354 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4355 # script with STATUS, using 1 if that was 0.
4358 as_status
=$1; test $as_status -eq 0 && as_status
=1
4360 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
4361 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4363 $as_echo "$as_me: error: $2" >&2
4364 as_fn_exit
$as_status
4368 # as_fn_set_status STATUS
4369 # -----------------------
4370 # Set $? to STATUS, without forking.
4374 } # as_fn_set_status
4378 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4388 # Portably unset VAR.
4391 { eval $1=; unset $1;}
4393 as_unset
=as_fn_unset
4394 # as_fn_append VAR VALUE
4395 # ----------------------
4396 # Append the text in VALUE to the end of the definition contained in VAR. Take
4397 # advantage of any shell optimizations that allow amortized linear growth over
4398 # repeated appends, instead of the typical quadratic growth present in naive
4400 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
4401 eval 'as_fn_append ()
4412 # as_fn_arith ARG...
4413 # ------------------
4414 # Perform arithmetic evaluation on the ARGs, and store the result in the
4415 # global $as_val. Take advantage of shells that can avoid forks. The arguments
4416 # must be portable across $(()) and expr.
4417 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
4418 eval 'as_fn_arith ()
4425 as_val
=`expr "$@" || test $? -eq 1`
4430 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
4431 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
4437 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4438 as_basename
=basename
4443 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
4449 as_me
=`$as_basename -- "$0" ||
4450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4451 X"$0" : 'X\(//\)$' \| \
4452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4454 sed '/^.*\/\([^/][^/]*\)\/*$/{
4468 # Avoid depending upon Character Ranges.
4469 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
4470 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4471 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
4472 as_cr_digits
='0123456789'
4473 as_cr_alnum
=$as_cr_Letters$as_cr_digits
4475 ECHO_C
= ECHO_N
= ECHO_T
=
4476 case `echo -n x` in #(((((
4478 case `echo 'xy\c'` in
4479 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
4481 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
4488 rm -f conf$$ conf$$.exe conf$$.
file
4489 if test -d conf$$.dir
; then
4490 rm -f conf$$.dir
/conf$$.
file
4493 mkdir conf$$.dir
2>/dev
/null
4495 if (echo >conf$$.
file) 2>/dev
/null
; then
4496 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
4498 # ... but there are two gotchas:
4499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4501 # In both cases, we have to default to `cp -pR'.
4502 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe
||
4504 elif ln conf$$.
file conf$$
2>/dev
/null
; then
4512 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
4513 rmdir conf$$.dir
2>/dev
/null
4518 # Create "$as_dir" as a directory, including parents if necessary.
4523 -*) as_dir
=.
/$as_dir;;
4525 test -d "$as_dir" || eval $as_mkdir_p || {
4529 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4530 *) as_qdir
=$as_dir;;
4532 as_dirs
="'$as_qdir' $as_dirs"
4533 as_dir
=`$as_dirname -- "$as_dir" ||
4534 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4535 X"$as_dir" : 'X\(//\)[^/]' \| \
4536 X"$as_dir" : 'X\(//\)$' \| \
4537 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4538 $as_echo X"$as_dir" |
4539 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4556 test -d "$as_dir" && break
4558 test -z "$as_dirs" || eval "mkdir $as_dirs"
4559 } || test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
4563 if mkdir -p .
2>/dev
/null
; then
4564 as_mkdir_p
='mkdir -p "$as_dir"'
4566 test -d .
/-p && rmdir .
/-p
4571 # as_fn_executable_p FILE
4572 # -----------------------
4573 # Test if FILE is an executable regular file.
4574 as_fn_executable_p
()
4576 test -f "$1" && test -x "$1"
4577 } # as_fn_executable_p
4579 as_executable_p
=as_fn_executable_p
4581 # Sed expression to map a string onto a valid CPP name.
4582 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4584 # Sed expression to map a string onto a valid variable name.
4585 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4589 ## ----------------------------------- ##
4590 ## Main body of $CONFIG_STATUS script. ##
4591 ## ----------------------------------- ##
4593 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
4595 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
4596 # Save the log message, to keep $0 and so on meaningful, and to
4597 # report actual input values of CONFIG_FILES etc. instead of their
4598 # values after options handling.
4600 This file was extended by Atheme IRC Services Contrib Modules $as_me 1.0, which was
4601 generated by GNU Autoconf 2.69. Invocation command line was
4603 CONFIG_FILES = $CONFIG_FILES
4604 CONFIG_HEADERS = $CONFIG_HEADERS
4605 CONFIG_LINKS = $CONFIG_LINKS
4606 CONFIG_COMMANDS = $CONFIG_COMMANDS
4609 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4614 case $ac_config_files in *"
4615 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
4618 case $ac_config_headers in *"
4619 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
4623 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4624 # Files that config.status was made for.
4625 config_files="$ac_config_files"
4626 config_headers="$ac_config_headers"
4630 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
4632 \`$as_me' instantiates files and other configuration actions
4633 from templates according to the current configuration. Unless the files
4634 and actions are specified as TAGs, all are instantiated by default.
4636 Usage: $0 [OPTION]... [TAG]...
4638 -h, --help print this help, then exit
4639 -V, --version print version number and configuration settings, then exit
4640 --config print configuration, then exit
4641 -q, --quiet, --silent
4642 do not print progress messages
4643 -d, --debug don't remove temporary files
4644 --recheck update $as_me by reconfiguring in the same conditions
4645 --file=FILE[:TEMPLATE]
4646 instantiate the configuration file FILE
4647 --header=FILE[:TEMPLATE]
4648 instantiate the configuration header FILE
4650 Configuration files:
4653 Configuration headers:
4656 Report bugs to <https://github.com/atheme/atheme-contrib-modules/issues/>.
4657 Atheme IRC Services Contrib Modules home page: <https://atheme.github.io/>."
4660 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4661 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4663 Atheme IRC Services Contrib Modules config.status 1.0
4664 configured by $0, generated by GNU Autoconf 2.69,
4665 with options \\"\$ac_cs_config\\"
4667 Copyright (C) 2012 Free Software Foundation, Inc.
4668 This config.status script is free software; the Free Software Foundation
4669 gives unlimited permission to copy, distribute and modify it."
4675 test -n "\$AWK" || AWK=awk
4678 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
4679 # The default lists apply if the user does not specify any file.
4685 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
4686 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
4690 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
4702 # Handling of the options.
4703 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4705 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4706 $as_echo "$ac_cs_version"; exit ;;
4707 --config | --confi | --conf | --con | --co | --c )
4708 $as_echo "$ac_cs_config"; exit ;;
4709 --debug | --debu | --deb | --de | --d | -d )
4711 --file | --fil | --fi | --f )
4714 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4715 '') as_fn_error $?
"missing file argument" ;;
4717 as_fn_append CONFIG_FILES
" '$ac_optarg'"
4718 ac_need_defaults
=false
;;
4719 --header | --heade | --head | --hea )
4722 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4724 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
4725 ac_need_defaults
=false
;;
4727 # Conflict between --help and --header
4728 as_fn_error $?
"ambiguous option: \`$1'
4729 Try \`$0 --help' for more information.";;
4730 --help | --hel | -h )
4731 $as_echo "$ac_cs_usage"; exit ;;
4732 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4733 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4737 -*) as_fn_error $?
"unrecognized option: \`$1'
4738 Try \`$0 --help' for more information." ;;
4740 *) as_fn_append ac_config_targets
" $1"
4741 ac_need_defaults
=false
;;
4747 ac_configure_extra_args
=
4749 if $ac_cs_silent; then
4751 ac_configure_extra_args
="$ac_configure_extra_args --silent"
4755 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4756 if \$ac_cs_recheck; then
4757 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4759 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4760 CONFIG_SHELL='$SHELL'
4766 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
4770 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4771 ## Running $as_me. ##
4777 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4780 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
4782 # Handling of arguments.
4783 for ac_config_target
in $ac_config_targets
4785 case $ac_config_target in
4786 "buildsys.mk") CONFIG_FILES
="$CONFIG_FILES buildsys.mk" ;;
4787 "extra.mk") CONFIG_FILES
="$CONFIG_FILES extra.mk" ;;
4788 "src/contrib-sysconf.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/contrib-sysconf.h" ;;
4790 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4795 # If the user did not use the arguments to specify the items to instantiate,
4796 # then the envvar interface is used. Set only those that are not.
4797 # We use the long form for the default assignment because of an extremely
4798 # bizarre bug on SunOS 4.1.3.
4799 if $ac_need_defaults; then
4800 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
4801 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
4804 # Have a temporary directory for convenience. Make it in the build tree
4805 # simply because there is no reason against having it here, and in addition,
4806 # creating and moving files from /tmp can sometimes cause problems.
4807 # Hook for its removal unless debugging.
4808 # Note that there is a small window in which the directory will not be cleaned:
4809 # after its creation but before its name has been assigned to `$tmp'.
4813 trap 'exit_status=$?
4815 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
4817 trap 'as_fn_exit 1' 1 2 13 15
4819 # Create a (secure) tmp directory for tmp files.
4822 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4826 tmp
=.
/conf$$
-$RANDOM
4827 (umask 077 && mkdir "$tmp")
4828 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
4831 # Set up the scripts for CONFIG_FILES section.
4832 # No need to generate them if there are no CONFIG_FILES.
4833 # This happens for instance with `./config.status config.h'.
4834 if test -n "$CONFIG_FILES"; then
4837 ac_cr
=`echo X | tr X '\015'`
4838 # On cygwin, bash can eat \r inside `` if the user requested igncr.
4839 # But we know of no other shell where ac_cr would be empty at this
4840 # point, so we can use a bashism as a fallback.
4841 if test "x$ac_cr" = x
; then
4842 eval ac_cr
=\$
\'\\r
\'
4844 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4845 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4851 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
4856 echo "cat >conf$$subs.awk <<_ACEOF" &&
4857 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4860 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
4861 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
4863 for ac_last_try in false false false false false :; do
4864 . ./conf$$subs.sh ||
4865 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
4867 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
4868 if test $ac_delim_n = $ac_delim_num; then
4870 elif $ac_last_try; then
4871 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
4873 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
4878 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4879 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
4883 s/^/S["/; s
/!.
*/"]=/
4893 s/\(.\{148\}\)..*/\1/
4895 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
4900 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
4907 s/\(.\{148\}\)..*/\1/
4909 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
4913 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
4918 ' <conf$$subs.awk | sed '
4923 ' >>$CONFIG_STATUS || ac_write_fail=1
4924 rm -f conf$$subs.awk
4925 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4927 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
4928 for (key in S) S_is_set[key] = 1
4934 nfields = split(line, field, "@
")
4936 len = length(field[1])
4937 for (i = 2; i < nfields; i++) {
4939 keylen = length(key)
4940 if (S_is_set[key]) {
4942 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4943 len += length(value) + length(field[++i])
4954 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4955 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4956 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
4959 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
4960 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
4963 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
4964 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
4965 # trailing colons and then remove the whole line if VPATH becomes empty
4966 # (actually we leave an empty line to preserve line numbers).
4967 if test "x
$srcdir" = x.; then
4968 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
4986 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4987 fi # test -n "$CONFIG_FILES"
4989 # Set up the scripts for CONFIG_HEADERS section.
4990 # No need to generate them if there are no CONFIG_HEADERS.
4991 # This happens for instance with `./config.status Makefile'.
4992 if test -n "$CONFIG_HEADERS"; then
4993 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
4997 # Transform confdefs.h into an awk script `defines.awk', embedded as
4998 # here-document in config.status, that substitutes the proper values into
4999 # config.h.in to produce config.h.
5001 # Create a delimiter string that does not exist in confdefs.h, to ease
5002 # handling of long lines.
5004 for ac_last_try in false false :; do
5005 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
5006 if test -z "$ac_tt"; then
5008 elif $ac_last_try; then
5009 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
5011 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
5015 # For the awk script, D is an array of macro values keyed by name,
5016 # likewise P contains macro parameters if any. Preserve backslash
5017 # newline sequences.
5019 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5021 s/.\{148\}/&'"$ac_delim"'/g
5024 s/^[ ]*#[ ]*define[ ][ ]*/ /
5031 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
5033 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
5037 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
5038 D["\
1"]=" \
3\\\\\\n
"\\/p
5040 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
5045 s/.\{148\}/&'"$ac_delim"'/g
5050 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
5053 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
5055 ' <confdefs.h | sed '
5056 s/'"$ac_delim"'/"\\\
5057 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5060 for (key in D) D_is_set[key] = 1
5063 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5065 split(line, arg, " ")
5066 if (arg[1] == "#") {
5070 defundef
= substr
(arg
[1], 2)
5073 split(mac1
, mac2
, "(") #)
5075 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
5076 if (D_is_set
[macro
]) {
5077 # Preserve the white space surrounding the "#".
5078 print prefix
"define", macro P
[macro
] D
[macro
]
5081 # Replace #undef with comments. This is necessary, for example,
5082 # in the case of _POSIX_SOURCE, which is predefined and required
5083 # on some systems where configure will not decide to define it.
5084 if (defundef
== "undef") {
5085 print
"/*", prefix defundef
, macro
, "*/"
5093 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
5094 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
5095 fi # test -n "$CONFIG_HEADERS"
5098 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
5103 :[FHLC
]) ac_mode
=$ac_tag; continue;;
5105 case $ac_mode$ac_tag in
5107 :L
* | :C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
5108 :[FH
]-) ac_tag
=-:-;;
5109 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
5126 -) ac_f
="$ac_tmp/stdin";;
5127 *) # Look for the file first in the build tree, then in the source tree
5128 # (if the path is not absolute). The absolute path cannot be DOS-style,
5129 # because $ac_f cannot contain `:'.
5133 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
5135 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5137 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5138 as_fn_append ac_file_inputs
" '$ac_f'"
5141 # Let's still pretend it is `configure' which instantiates (i.e., don't
5142 # use $as_me), people would be surprised to read:
5143 # /* config.h. Generated by config.status. */
5144 configure_input
='Generated from '`
5145 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5147 if test x
"$ac_file" != x
-; then
5148 configure_input
="$ac_file. $configure_input"
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5150 $as_echo "$as_me: creating $ac_file" >&6;}
5152 # Neutralize special characters interpreted by sed in replacement strings.
5153 case $configure_input in #(
5154 *\
&* | *\
|* | *\\* )
5155 ac_sed_conf_input
=`$as_echo "$configure_input" |
5156 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5157 *) ac_sed_conf_input
=$configure_input;;
5161 *:-:* | *:-) cat >"$ac_tmp/stdin" \
5162 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
5167 ac_dir
=`$as_dirname -- "$ac_file" ||
5168 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5169 X"$ac_file" : 'X\(//\)[^/]' \| \
5170 X"$ac_file" : 'X\(//\)$' \| \
5171 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5172 $as_echo X"$ac_file" |
5173 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5190 as_dir
="$ac_dir"; as_fn_mkdir_p
5194 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
5196 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5197 # A ".." for each directory in $ac_dir_suffix.
5198 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5199 case $ac_top_builddir_sub in
5200 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
5201 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
5204 ac_abs_top_builddir
=$ac_pwd
5205 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
5206 # for backward compatibility:
5207 ac_top_builddir
=$ac_top_build_prefix
5210 .
) # We are building in place.
5212 ac_top_srcdir
=$ac_top_builddir_sub
5213 ac_abs_top_srcdir
=$ac_pwd ;;
5214 [\\/]* | ?
:[\\/]* ) # Absolute name.
5215 ac_srcdir
=$srcdir$ac_dir_suffix;
5216 ac_top_srcdir
=$srcdir
5217 ac_abs_top_srcdir
=$srcdir ;;
5219 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
5220 ac_top_srcdir
=$ac_top_build_prefix$srcdir
5221 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
5223 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
5233 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
5234 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
5238 [\\/$
]* | ?
:[\\/]* ) ;;
5239 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
5243 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
5244 # If the template does not know about datarootdir, expand it.
5245 # FIXME: This hack should be removed a few years after 2.60.
5246 ac_datarootdir_hack
=; ac_datarootdir_seen
=
5257 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5258 *datarootdir
*) ac_datarootdir_seen
=yes;;
5259 *@datadir@
*|*@docdir@
*|*@infodir@
*|*@localedir@
*|*@mandir@
*)
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5261 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5263 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5264 ac_datarootdir_hack='
5265 s&@datadir@&$datadir&g
5266 s&@docdir@&$docdir&g
5267 s&@infodir@&$infodir&g
5268 s&@localedir@&$localedir&g
5269 s&@mandir@&$mandir&g
5270 s&\\\${datarootdir}&$datarootdir&g' ;;
5274 # Neutralize VPATH when `$srcdir' = `.'.
5275 # Shell code in configure.ac might set extrasub.
5276 # FIXME: do we really want to maintain this feature?
5277 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5278 ac_sed_extra="$ac_vpsub
5281 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
5283 /@
[a
-zA-Z_][a
-zA-Z_0-9]*@
/!b
5284 s
|@configure_input@
|$ac_sed_conf_input|;t t
5285 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
5286 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
5287 s
&@srcdir@
&$ac_srcdir&;t t
5288 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
5289 s
&@top_srcdir@
&$ac_top_srcdir&;t t
5290 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
5291 s
&@builddir@
&$ac_builddir&;t t
5292 s
&@abs_builddir@
&$ac_abs_builddir&;t t
5293 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
5294 s
&@INSTALL@
&$ac_INSTALL&;t t
5295 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
5296 $ac_datarootdir_hack
5298 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
5299 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
5301 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5302 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
5303 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
5304 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
5306 which seems to be undefined. Please make sure it is defined" >&5
5307 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
5308 which seems to be undefined. Please make sure it is defined" >&2;}
5310 rm -f "$ac_tmp/stdin"
5312 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5313 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5315 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5321 if test x"$ac_file" != x-; then
5323 $as_echo "/* $configure_input */" \
5324 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
5325 } >"$ac_tmp/config.h" \
5326 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5327 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5329 $as_echo "$as_me: $ac_file is unchanged" >&6;}
5332 mv "$ac_tmp/config.h" "$ac_file" \
5333 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5336 $as_echo "/* $configure_input */" \
5337 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
5338 || as_fn_error $? "could not create -" "$LINENO" 5
5350 ac_clean_files=$ac_clean_files_save
5352 test $ac_write_fail = 0 ||
5353 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5356 # configure is writing to config.log, and then calls config.status.
5357 # config.status does its own redirection, appending to config.log.
5358 # Unfortunately, on DOS this fails, as config.log is still kept open
5359 # by configure, so config.status won't be able to
write to it
; its
5360 # output is simply discarded. So we exec the FD to /dev/null,
5361 # effectively closing config.log, so it can be properly (re)opened and
5362 # appended to by config.status. When coming back to configure, we
5363 # need to make the FD available again.
5364 if test "$no_create" != yes; then
5366 ac_config_status_args
=
5367 test "$silent" = yes &&
5368 ac_config_status_args
="$ac_config_status_args --quiet"
5370 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
5372 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5373 # would make configure fail if this is the last instruction.
5374 $ac_cs_success || as_fn_exit
1
5376 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5378 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5382 ${as_echo:="echo"} ${as_me:="configure"}": touching .deps files"
5383 for i
in $(find . -name Makefile); do
5384 DEPSFILE
="$(dirname $i)/.deps"
5385 test -f "$DEPSFILE" && rm "$DEPSFILE"
5386 touch -t 0001010000 "$DEPSFILE"