2 # From configure.in Revision: 1.46 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for spamass-milter 0.4.0.
7 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in #(
38 # Printing a long string crashes Solaris 7 /usr/bin/printf.
39 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
42 # Prefer a ksh shell builtin over an external printf program on Solaris,
43 # but without wasting forks for bash or zsh.
44 if test -z "$BASH_VERSION$ZSH_VERSION" \
45 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo_n='print -rn --'
48 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
53 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
54 as_echo_n='/usr/ucb/echo -n'
56 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
61 expr "X$arg" : "X\\(.*\\)$as_nl";
62 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 as_echo_n='sh -c $as_echo_n_body as_echo'
70 as_echo='sh -c $as_echo_body as_echo'
73 # The user is always right.
74 if test "${PATH_SEPARATOR+set}" != set; then
76 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
77 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
84 # We need space, tab and new line, in precisely that order. Quoting is
85 # there to prevent editors from complaining about space-tab.
86 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
87 # splitting by setting IFS to empty value.)
90 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 # Use a proper internal environment variable to ensure we don't fall
137 # into an infinite loop, continuously re-executing ourselves.
138 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
139 _as_can_reexec=no; export _as_can_reexec;
140 # We cannot yet assume a decent shell, so we have to provide a
141 # neutralization value for shells without unset; and this also
142 # works around shells that cannot unset nonexistent variables.
143 # Preserve -v and -x to the replacement shell.
146 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 *v*x* | *x*v* ) as_opts=-vx ;;
153 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
154 # Admittedly, this is quite paranoid, since all the known shells bail
155 # out after a failed `exec'.
156 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
159 # We don't want this to propagate to other subprocesses.
160 { _as_can_reexec=; unset _as_can_reexec;}
161 if test "x$CONFIG_SHELL" = x; then
162 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
165 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
166 # is contrary to our usage. Disable this feature.
167 alias -g '\${1+\"\$@\"}'='\"\$@\"'
170 case \`(set -o) 2>/dev/null\` in #(
178 as_required="as_fn_return () { (exit \$1); }
179 as_fn_success () { as_fn_return 0; }
180 as_fn_failure () { as_fn_return 1; }
181 as_fn_ret_success () { return 0; }
182 as_fn_ret_failure () { return 1; }
185 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
186 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
187 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
188 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
189 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192 exitcode=1; echo positional parameters were not saved.
194 test x\$exitcode = x0 || exit 1
196 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
197 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
198 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
199 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
200 test \$(( 1 + 1 )) = 2 || 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 about your system,
269 $0: including any error possibly output before this
270 $0: message. Then install a modern shell, or manually run
271 $0: the script under such a shell if you do have one."
277 SHELL=${CONFIG_SHELL-/bin/sh}
279 # Unset more variables known to interfere with behavior of common tools.
280 CLICOLOR_FORCE= GREP_OPTIONS=
281 unset CLICOLOR_FORCE GREP_OPTIONS
283 ## --------------------- ##
284 ## M4sh Shell Functions. ##
285 ## --------------------- ##
288 # Portably unset VAR.
291 { eval $1=; unset $1;}
295 # as_fn_set_status STATUS
296 # -----------------------
297 # Set $? to STATUS, without forking.
305 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315 # Create "$as_dir" as a directory, including parents if necessary.
320 -*) as_dir=./$as_dir;;
322 test -d "$as_dir" || eval $as_mkdir_p || {
326 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 as_dirs="'$as_qdir' $as_dirs"
330 as_dir=`$as_dirname -- "$as_dir" ||
331 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
332 X"$as_dir" : 'X\(//\)[^/]' \| \
333 X"$as_dir" : 'X\(//\)$' \| \
334 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
335 $as_echo X"$as_dir" |
336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
353 test -d "$as_dir" && break
355 test -z "$as_dirs" || eval "mkdir $as_dirs"
356 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
361 # as_fn_executable_p FILE
362 # -----------------------
363 # Test if FILE is an executable regular file.
364 as_fn_executable_p ()
366 test -f "$1" && test -x "$1"
367 } # as_fn_executable_p
368 # as_fn_append VAR VALUE
369 # ----------------------
370 # Append the text in VALUE to the end of the definition contained in VAR. Take
371 # advantage of any shell optimizations that allow amortized linear growth over
372 # repeated appends, instead of the typical quadratic growth present in naive
374 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
375 eval 'as_fn_append ()
388 # Perform arithmetic evaluation on the ARGs, and store the result in the
389 # global $as_val. Take advantage of shells that can avoid forks. The arguments
390 # must be portable across $(()) and expr.
391 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 as_val=`expr "$@" || test $? -eq 1`
404 # as_fn_error STATUS ERROR [LINENO LOG_FD]
405 # ----------------------------------------
406 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
407 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
408 # script with STATUS, using 1 if that was 0.
411 as_status=$1; test $as_status -eq 0 && as_status=1
413 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
414 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
416 $as_echo "$as_me: error: $2" >&2
417 as_fn_exit $as_status
420 if expr a : '\(a\)' >/dev/null 2>&1 &&
421 test "X`expr 00001 : '.*\(...\)'`" = X001; then
427 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
433 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
439 as_me=`$as_basename -- "$0" ||
440 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
441 X"$0" : 'X\(//\)$' \| \
442 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
444 sed '/^.*\/\([^/][^/]*\)\/*$/{
458 # Avoid depending upon Character Ranges.
459 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
460 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
461 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
462 as_cr_digits='0123456789'
463 as_cr_alnum=$as_cr_Letters$as_cr_digits
466 as_lineno_1=$LINENO as_lineno_1a=$LINENO
467 as_lineno_2=$LINENO as_lineno_2a=$LINENO
468 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
469 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
470 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
486 chmod +x "$as_me.lineno" ||
487 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
489 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
490 # already done that, so ensure we don't try to do so again and fall
491 # in an infinite loop. This has already happened in practice.
492 _as_can_reexec=no; export _as_can_reexec
493 # Don't try to exec as it changes $[0], causing all sort of problems
494 # (the dirname of $[0] is not the place where we might find the
495 # original and so on. Autoconf is especially sensitive to this).
497 # Exit status is that of the last command.
501 ECHO_C= ECHO_N= ECHO_T=
502 case `echo -n x` in #(((((
504 case `echo 'xy\c'` in
505 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
507 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
514 rm -f conf$$ conf$$.exe conf$$.file
515 if test -d conf$$.dir; then
516 rm -f conf$$.dir/conf$$.file
519 mkdir conf$$.dir 2>/dev/null
521 if (echo >conf$$.file) 2>/dev/null; then
522 if ln -s conf$$.file conf$$ 2>/dev/null; then
524 # ... but there are two gotchas:
525 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
526 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
527 # In both cases, we have to default to `cp -pR'.
528 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
530 elif ln conf$$.file conf$$ 2>/dev/null; then
538 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
539 rmdir conf$$.dir 2>/dev/null
541 if mkdir -p . 2>/dev/null; then
542 as_mkdir_p='mkdir -p "$as_dir"'
544 test -d ./-p && rmdir ./-p
549 as_executable_p=as_fn_executable_p
551 # Sed expression to map a string onto a valid CPP name.
552 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
554 # Sed expression to map a string onto a valid variable name.
555 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558 test -n "$DJDIR" || exec 7<&0 </dev/null
562 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
563 # so uname gets run too.
564 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
569 ac_default_prefix=/usr/local
571 ac_config_libobj_dir=.
578 # Identity of this package.
579 PACKAGE_NAME='spamass-milter'
580 PACKAGE_TARNAME='spamass-milter'
581 PACKAGE_VERSION='0.4.0'
582 PACKAGE_STRING='spamass-milter 0.4.0'
586 ac_unique_file="spamass-milter.cpp"
587 # Factoring default headers for most tests.
588 ac_includes_default="\
590 #ifdef HAVE_SYS_TYPES_H
591 # include <sys/types.h>
593 #ifdef HAVE_SYS_STAT_H
594 # include <sys/stat.h>
600 # ifdef HAVE_STDLIB_H
605 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
610 #ifdef HAVE_STRINGS_H
611 # include <strings.h>
613 #ifdef HAVE_INTTYPES_H
614 # include <inttypes.h>
623 ac_subst_vars='am__EXEEXT_FALSE
682 INSTALL_STRIP_PROGRAM
724 program_transform_name
737 enable_option_checking
739 enable_dependency_tracking
743 ac_precious_vars='build_alias
759 # Initialize some variables set by options.
761 ac_init_version=false
762 ac_unrecognized_opts=
764 # The variables have the same names as the options, with
765 # dashes changed to underlines.
773 program_transform_name=s,x,x,
781 # Installation directory options.
782 # These are left unexpanded so users can "make install exec_prefix=/foo"
783 # and all the variables that are supposed to be based on exec_prefix
784 # by default will actually change.
785 # Use braces instead of parens because sh, perl, etc. also accept them.
786 # (The list follows the same order as the GNU Coding Standards.)
787 bindir='${exec_prefix}/bin'
788 sbindir='${exec_prefix}/sbin'
789 libexecdir='${exec_prefix}/libexec'
790 datarootdir='${prefix}/share'
791 datadir='${datarootdir}'
792 sysconfdir='${prefix}/etc'
793 sharedstatedir='${prefix}/com'
794 localstatedir='${prefix}/var'
795 includedir='${prefix}/include'
796 oldincludedir='/usr/include'
797 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
798 infodir='${datarootdir}/info'
803 libdir='${exec_prefix}/lib'
804 localedir='${datarootdir}/locale'
805 mandir='${datarootdir}/man'
811 # If the previous option needs an argument, assign it.
812 if test -n "$ac_prev"; then
813 eval $ac_prev=\$ac_option
819 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
824 # Accept the important Cygnus configure options, so we can diagnose typos.
826 case $ac_dashdash$ac_option in
830 -bindir | --bindir | --bindi | --bind | --bin | --bi)
832 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
835 -build | --build | --buil | --bui | --bu)
836 ac_prev=build_alias ;;
837 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
838 build_alias=$ac_optarg ;;
840 -cache-file | --cache-file | --cache-fil | --cache-fi \
841 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
842 ac_prev=cache_file ;;
843 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
844 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
845 cache_file=$ac_optarg ;;
848 cache_file=config.cache ;;
850 -datadir | --datadir | --datadi | --datad)
852 -datadir=* | --datadir=* | --datadi=* | --datad=*)
853 datadir=$ac_optarg ;;
855 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
856 | --dataroo | --dataro | --datar)
857 ac_prev=datarootdir ;;
858 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
859 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
860 datarootdir=$ac_optarg ;;
862 -disable-* | --disable-*)
863 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
864 # Reject names that are not valid shell variable names.
865 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
866 as_fn_error $? "invalid feature name: $ac_useropt"
867 ac_useropt_orig=$ac_useropt
868 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
869 case $ac_user_opts in
873 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
874 ac_unrecognized_sep=', ';;
876 eval enable_$ac_useropt=no ;;
878 -docdir | --docdir | --docdi | --doc | --do)
880 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
883 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
885 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
888 -enable-* | --enable-*)
889 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
890 # Reject names that are not valid shell variable names.
891 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
892 as_fn_error $? "invalid feature name: $ac_useropt"
893 ac_useropt_orig=$ac_useropt
894 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
895 case $ac_user_opts in
899 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
900 ac_unrecognized_sep=', ';;
902 eval enable_$ac_useropt=\$ac_optarg ;;
904 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
905 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
906 | --exec | --exe | --ex)
907 ac_prev=exec_prefix ;;
908 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
909 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
910 | --exec=* | --exe=* | --ex=*)
911 exec_prefix=$ac_optarg ;;
913 -gas | --gas | --ga | --g)
914 # Obsolete; use --with-gas.
917 -help | --help | --hel | --he | -h)
919 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
920 ac_init_help=recursive ;;
921 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
922 ac_init_help=short ;;
924 -host | --host | --hos | --ho)
925 ac_prev=host_alias ;;
926 -host=* | --host=* | --hos=* | --ho=*)
927 host_alias=$ac_optarg ;;
929 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
931 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
933 htmldir=$ac_optarg ;;
935 -includedir | --includedir | --includedi | --included | --include \
936 | --includ | --inclu | --incl | --inc)
937 ac_prev=includedir ;;
938 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
939 | --includ=* | --inclu=* | --incl=* | --inc=*)
940 includedir=$ac_optarg ;;
942 -infodir | --infodir | --infodi | --infod | --info | --inf)
944 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
945 infodir=$ac_optarg ;;
947 -libdir | --libdir | --libdi | --libd)
949 -libdir=* | --libdir=* | --libdi=* | --libd=*)
952 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
953 | --libexe | --libex | --libe)
954 ac_prev=libexecdir ;;
955 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
956 | --libexe=* | --libex=* | --libe=*)
957 libexecdir=$ac_optarg ;;
959 -localedir | --localedir | --localedi | --localed | --locale)
961 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
962 localedir=$ac_optarg ;;
964 -localstatedir | --localstatedir | --localstatedi | --localstated \
965 | --localstate | --localstat | --localsta | --localst | --locals)
966 ac_prev=localstatedir ;;
967 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
968 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
969 localstatedir=$ac_optarg ;;
971 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
973 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
977 # Obsolete; use --without-fp.
980 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
981 | --no-cr | --no-c | -n)
984 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
985 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
988 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
989 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
990 | --oldin | --oldi | --old | --ol | --o)
991 ac_prev=oldincludedir ;;
992 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
993 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
994 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
995 oldincludedir=$ac_optarg ;;
997 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
999 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1000 prefix=$ac_optarg ;;
1002 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1003 | --program-pre | --program-pr | --program-p)
1004 ac_prev=program_prefix ;;
1005 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1006 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1007 program_prefix=$ac_optarg ;;
1009 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1010 | --program-suf | --program-su | --program-s)
1011 ac_prev=program_suffix ;;
1012 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1013 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1014 program_suffix=$ac_optarg ;;
1016 -program-transform-name | --program-transform-name \
1017 | --program-transform-nam | --program-transform-na \
1018 | --program-transform-n | --program-transform- \
1019 | --program-transform | --program-transfor \
1020 | --program-transfo | --program-transf \
1021 | --program-trans | --program-tran \
1022 | --progr-tra | --program-tr | --program-t)
1023 ac_prev=program_transform_name ;;
1024 -program-transform-name=* | --program-transform-name=* \
1025 | --program-transform-nam=* | --program-transform-na=* \
1026 | --program-transform-n=* | --program-transform-=* \
1027 | --program-transform=* | --program-transfor=* \
1028 | --program-transfo=* | --program-transf=* \
1029 | --program-trans=* | --program-tran=* \
1030 | --progr-tra=* | --program-tr=* | --program-t=*)
1031 program_transform_name=$ac_optarg ;;
1033 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1035 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1036 pdfdir=$ac_optarg ;;
1038 -psdir | --psdir | --psdi | --psd | --ps)
1040 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1043 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1044 | -silent | --silent | --silen | --sile | --sil)
1047 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1049 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1051 sbindir=$ac_optarg ;;
1053 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1054 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1055 | --sharedst | --shareds | --shared | --share | --shar \
1057 ac_prev=sharedstatedir ;;
1058 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1059 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1060 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1062 sharedstatedir=$ac_optarg ;;
1064 -site | --site | --sit)
1066 -site=* | --site=* | --sit=*)
1069 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1071 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1072 srcdir=$ac_optarg ;;
1074 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1075 | --syscon | --sysco | --sysc | --sys | --sy)
1076 ac_prev=sysconfdir ;;
1077 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1078 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1079 sysconfdir=$ac_optarg ;;
1081 -target | --target | --targe | --targ | --tar | --ta | --t)
1082 ac_prev=target_alias ;;
1083 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1084 target_alias=$ac_optarg ;;
1086 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1089 -version | --version | --versio | --versi | --vers | -V)
1090 ac_init_version=: ;;
1093 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1094 # Reject names that are not valid shell variable names.
1095 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1096 as_fn_error $? "invalid package name: $ac_useropt"
1097 ac_useropt_orig=$ac_useropt
1098 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1099 case $ac_user_opts in
1103 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1104 ac_unrecognized_sep=', ';;
1106 eval with_$ac_useropt=\$ac_optarg ;;
1108 -without-* | --without-*)
1109 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1112 as_fn_error $? "invalid package name: $ac_useropt"
1113 ac_useropt_orig=$ac_useropt
1114 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1115 case $ac_user_opts in
1119 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1120 ac_unrecognized_sep=', ';;
1122 eval with_$ac_useropt=no ;;
1125 # Obsolete; use --with-x.
1128 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1129 | --x-incl | --x-inc | --x-in | --x-i)
1130 ac_prev=x_includes ;;
1131 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1132 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1133 x_includes=$ac_optarg ;;
1135 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1136 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1137 ac_prev=x_libraries ;;
1138 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1139 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1140 x_libraries=$ac_optarg ;;
1142 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1143 Try \`$0 --help' for more information"
1147 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1148 # Reject names that are not valid shell variable names.
1149 case $ac_envvar in #(
1150 '' | [0-9]* | *[!_$as_cr_alnum]* )
1151 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1153 eval $ac_envvar=\$ac_optarg
1154 export $ac_envvar ;;
1157 # FIXME: should be removed in autoconf 3.0.
1158 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1159 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1160 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1161 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1167 if test -n "$ac_prev"; then
1168 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1169 as_fn_error $? "missing argument to $ac_option"
1172 if test -n "$ac_unrecognized_opts"; then
1173 case $enable_option_checking in
1175 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1176 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1180 # Check all directory arguments for consistency.
1181 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1182 datadir sysconfdir sharedstatedir localstatedir includedir \
1183 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1184 libdir localedir mandir
1186 eval ac_val=\$$ac_var
1187 # Remove trailing slashes.
1190 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1191 eval $ac_var=\$ac_val;;
1193 # Be sure to have absolute directory names.
1195 [\\/$]* | ?:[\\/]* ) continue;;
1196 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1198 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1201 # There might be people who depend on the old broken behavior: `$host'
1202 # used to hold the argument of --host etc.
1203 # FIXME: To remove some day.
1206 target=$target_alias
1208 # FIXME: To remove some day.
1209 if test "x$host_alias" != x; then
1210 if test "x$build_alias" = x; then
1211 cross_compiling=maybe
1212 elif test "x$build_alias" != "x$host_alias"; then
1218 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1220 test "$silent" = yes && exec 6>/dev/null
1223 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1224 ac_ls_di=`ls -di .` &&
1225 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1226 as_fn_error $? "working directory cannot be determined"
1227 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1228 as_fn_error $? "pwd does not report name of working directory"
1231 # Find the source files, if location was not specified.
1232 if test -z "$srcdir"; then
1233 ac_srcdir_defaulted=yes
1234 # Try the directory containing this script, then the parent directory.
1235 ac_confdir=`$as_dirname -- "$as_myself" ||
1236 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1237 X"$as_myself" : 'X\(//\)[^/]' \| \
1238 X"$as_myself" : 'X\(//\)$' \| \
1239 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1240 $as_echo X"$as_myself" |
1241 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1259 if test ! -r "$srcdir/$ac_unique_file"; then
1263 ac_srcdir_defaulted=no
1265 if test ! -r "$srcdir/$ac_unique_file"; then
1266 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1267 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1269 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1271 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1273 # When building in place, set srcdir=.
1274 if test "$ac_abs_confdir" = "$ac_pwd"; then
1277 # Remove unnecessary trailing slashes from srcdir.
1278 # Double slashes in file names in object file debugging info
1279 # mess up M-x gdb in Emacs.
1281 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1283 for ac_var in $ac_precious_vars; do
1284 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1285 eval ac_env_${ac_var}_value=\$${ac_var}
1286 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1287 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1291 # Report the --help message.
1293 if test "$ac_init_help" = "long"; then
1294 # Omit some internal or obsolete options to make the list less imposing.
1295 # This message is too long to be a string in the A/UX 3.1 sh.
1297 \`configure' configures spamass-milter 0.4.0 to adapt to many kinds of systems.
1299 Usage: $0 [OPTION]... [VAR=VALUE]...
1301 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1302 VAR=VALUE. See below for descriptions of some of the useful variables.
1304 Defaults for the options are specified in brackets.
1307 -h, --help display this help and exit
1308 --help=short display options specific to this package
1309 --help=recursive display the short help of all the included packages
1310 -V, --version display version information and exit
1311 -q, --quiet, --silent do not print \`checking ...' messages
1312 --cache-file=FILE cache test results in FILE [disabled]
1313 -C, --config-cache alias for \`--cache-file=config.cache'
1314 -n, --no-create do not create output files
1315 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1317 Installation directories:
1318 --prefix=PREFIX install architecture-independent files in PREFIX
1319 [$ac_default_prefix]
1320 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1323 By default, \`make install' will install all the files in
1324 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1325 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1326 for instance \`--prefix=\$HOME'.
1328 For better control, use the options below.
1330 Fine tuning of the installation directories:
1331 --bindir=DIR user executables [EPREFIX/bin]
1332 --sbindir=DIR system admin executables [EPREFIX/sbin]
1333 --libexecdir=DIR program executables [EPREFIX/libexec]
1334 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1335 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1336 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1337 --libdir=DIR object code libraries [EPREFIX/lib]
1338 --includedir=DIR C header files [PREFIX/include]
1339 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1340 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1341 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1342 --infodir=DIR info documentation [DATAROOTDIR/info]
1343 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1344 --mandir=DIR man documentation [DATAROOTDIR/man]
1345 --docdir=DIR documentation root [DATAROOTDIR/doc/spamass-milter]
1346 --htmldir=DIR html documentation [DOCDIR]
1347 --dvidir=DIR dvi documentation [DOCDIR]
1348 --pdfdir=DIR pdf documentation [DOCDIR]
1349 --psdir=DIR ps documentation [DOCDIR]
1355 --program-prefix=PREFIX prepend PREFIX to installed program names
1356 --program-suffix=SUFFIX append SUFFIX to installed program names
1357 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1360 --build=BUILD configure for building on BUILD [guessed]
1361 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1365 if test -n "$ac_init_help"; then
1366 case $ac_init_help in
1367 short | recursive ) echo "Configuration of spamass-milter 0.4.0:";;
1372 --disable-option-checking ignore unrecognized --enable/--with options
1373 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1374 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1375 --enable-silent-rules less verbose build output (undo: "make V=1")
1376 --disable-silent-rules verbose build output (undo: "make V=0")
1377 --enable-dependency-tracking
1378 do not reject slow dependency extractors
1379 --disable-dependency-tracking
1380 speeds up one-time build
1381 --enable-emulate-poll use a select wrapper instead of poll (autodetected)
1384 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1385 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1386 --with-dmalloc use dmalloc ( http://www.dmalloc.com )
1388 Some influential environment variables:
1389 CXX C++ compiler command
1390 CXXFLAGS C++ compiler flags
1391 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1392 nonstandard directory <lib dir>
1393 LIBS libraries to pass to the linker, e.g. -l<library>
1394 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1395 you have headers in a nonstandard directory <include dir>
1396 CC C compiler command
1397 CFLAGS C compiler flags
1399 SENDMAIL Path to sendmail
1400 CXXCPP C++ preprocessor
1402 Use these variables to override the choices made by `configure' or to help
1403 it to find libraries and programs with nonstandard names/locations.
1405 Report bugs to the package provider.
1410 if test "$ac_init_help" = "recursive"; then
1411 # If there are subdirs, report their specific --help.
1412 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1413 test -d "$ac_dir" ||
1414 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1419 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1421 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1422 # A ".." for each directory in $ac_dir_suffix.
1423 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1424 case $ac_top_builddir_sub in
1425 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1426 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1429 ac_abs_top_builddir=$ac_pwd
1430 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1431 # for backward compatibility:
1432 ac_top_builddir=$ac_top_build_prefix
1435 .) # We are building in place.
1437 ac_top_srcdir=$ac_top_builddir_sub
1438 ac_abs_top_srcdir=$ac_pwd ;;
1439 [\\/]* | ?:[\\/]* ) # Absolute name.
1440 ac_srcdir=$srcdir$ac_dir_suffix;
1441 ac_top_srcdir=$srcdir
1442 ac_abs_top_srcdir=$srcdir ;;
1444 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1445 ac_top_srcdir=$ac_top_build_prefix$srcdir
1446 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1448 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1450 cd "$ac_dir" || { ac_status=$?; continue; }
1451 # Check for guested configure.
1452 if test -f "$ac_srcdir/configure.gnu"; then
1454 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1455 elif test -f "$ac_srcdir/configure"; then
1457 $SHELL "$ac_srcdir/configure" --help=recursive
1459 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1461 cd "$ac_pwd" || { ac_status=$?; break; }
1465 test -n "$ac_init_help" && exit $ac_status
1466 if $ac_init_version; then
1468 spamass-milter configure 0.4.0
1469 generated by GNU Autoconf 2.69
1471 Copyright (C) 2012 Free Software Foundation, Inc.
1472 This configure script is free software; the Free Software Foundation
1473 gives unlimited permission to copy, distribute and modify it.
1478 ## ------------------------ ##
1479 ## Autoconf initialization. ##
1480 ## ------------------------ ##
1482 # ac_fn_cxx_try_compile LINENO
1483 # ----------------------------
1484 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1485 ac_fn_cxx_try_compile ()
1487 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1488 rm -f conftest.$ac_objext
1489 if { { ac_try="$ac_compile"
1491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1492 *) ac_try_echo=$ac_try;;
1494 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1495 $as_echo "$ac_try_echo"; } >&5
1496 (eval "$ac_compile") 2>conftest.err
1498 if test -s conftest.err; then
1499 grep -v '^ *+' conftest.err >conftest.er1
1500 cat conftest.er1 >&5
1501 mv -f conftest.er1 conftest.err
1503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1504 test $ac_status = 0; } && {
1505 test -z "$ac_cxx_werror_flag" ||
1506 test ! -s conftest.err
1507 } && test -s conftest.$ac_objext; then :
1510 $as_echo "$as_me: failed program was:" >&5
1511 sed 's/^/| /' conftest.$ac_ext >&5
1515 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1516 as_fn_set_status $ac_retval
1518 } # ac_fn_cxx_try_compile
1520 # ac_fn_c_try_compile LINENO
1521 # --------------------------
1522 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1523 ac_fn_c_try_compile ()
1525 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1526 rm -f conftest.$ac_objext
1527 if { { ac_try="$ac_compile"
1529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1530 *) ac_try_echo=$ac_try;;
1532 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1533 $as_echo "$ac_try_echo"; } >&5
1534 (eval "$ac_compile") 2>conftest.err
1536 if test -s conftest.err; then
1537 grep -v '^ *+' conftest.err >conftest.er1
1538 cat conftest.er1 >&5
1539 mv -f conftest.er1 conftest.err
1541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1542 test $ac_status = 0; } && {
1543 test -z "$ac_c_werror_flag" ||
1544 test ! -s conftest.err
1545 } && test -s conftest.$ac_objext; then :
1548 $as_echo "$as_me: failed program was:" >&5
1549 sed 's/^/| /' conftest.$ac_ext >&5
1553 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1554 as_fn_set_status $ac_retval
1556 } # ac_fn_c_try_compile
1558 # ac_fn_cxx_try_link LINENO
1559 # -------------------------
1560 # Try to link conftest.$ac_ext, and return whether this succeeded.
1561 ac_fn_cxx_try_link ()
1563 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1564 rm -f conftest.$ac_objext conftest$ac_exeext
1565 if { { ac_try="$ac_link"
1567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1568 *) ac_try_echo=$ac_try;;
1570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1571 $as_echo "$ac_try_echo"; } >&5
1572 (eval "$ac_link") 2>conftest.err
1574 if test -s conftest.err; then
1575 grep -v '^ *+' conftest.err >conftest.er1
1576 cat conftest.er1 >&5
1577 mv -f conftest.er1 conftest.err
1579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1580 test $ac_status = 0; } && {
1581 test -z "$ac_cxx_werror_flag" ||
1582 test ! -s conftest.err
1583 } && test -s conftest$ac_exeext && {
1584 test "$cross_compiling" = yes ||
1585 test -x conftest$ac_exeext
1589 $as_echo "$as_me: failed program was:" >&5
1590 sed 's/^/| /' conftest.$ac_ext >&5
1594 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1595 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1596 # interfere with the next link command; also delete a directory that is
1597 # left behind by Apple's compiler. We do this before executing the actions.
1598 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1599 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1600 as_fn_set_status $ac_retval
1602 } # ac_fn_cxx_try_link
1604 # ac_fn_cxx_try_run LINENO
1605 # ------------------------
1606 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1607 # that executables *can* be run.
1608 ac_fn_cxx_try_run ()
1610 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1611 if { { ac_try="$ac_link"
1613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1614 *) ac_try_echo=$ac_try;;
1616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1617 $as_echo "$ac_try_echo"; } >&5
1618 (eval "$ac_link") 2>&5
1620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1621 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1622 { { case "(($ac_try" in
1623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1624 *) ac_try_echo=$ac_try;;
1626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1627 $as_echo "$ac_try_echo"; } >&5
1628 (eval "$ac_try") 2>&5
1630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1631 test $ac_status = 0; }; }; then :
1634 $as_echo "$as_me: program exited with status $ac_status" >&5
1635 $as_echo "$as_me: failed program was:" >&5
1636 sed 's/^/| /' conftest.$ac_ext >&5
1638 ac_retval=$ac_status
1640 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1641 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1642 as_fn_set_status $ac_retval
1644 } # ac_fn_cxx_try_run
1646 # ac_fn_c_try_link LINENO
1647 # -----------------------
1648 # Try to link conftest.$ac_ext, and return whether this succeeded.
1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652 rm -f conftest.$ac_objext conftest$ac_exeext
1653 if { { ac_try="$ac_link"
1655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656 *) ac_try_echo=$ac_try;;
1658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659 $as_echo "$ac_try_echo"; } >&5
1660 (eval "$ac_link") 2>conftest.err
1662 if test -s conftest.err; then
1663 grep -v '^ *+' conftest.err >conftest.er1
1664 cat conftest.er1 >&5
1665 mv -f conftest.er1 conftest.err
1667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668 test $ac_status = 0; } && {
1669 test -z "$ac_c_werror_flag" ||
1670 test ! -s conftest.err
1671 } && test -s conftest$ac_exeext && {
1672 test "$cross_compiling" = yes ||
1673 test -x conftest$ac_exeext
1677 $as_echo "$as_me: failed program was:" >&5
1678 sed 's/^/| /' conftest.$ac_ext >&5
1682 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1683 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1684 # interfere with the next link command; also delete a directory that is
1685 # left behind by Apple's compiler. We do this before executing the actions.
1686 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1687 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1688 as_fn_set_status $ac_retval
1690 } # ac_fn_c_try_link
1692 # ac_fn_cxx_try_cpp LINENO
1693 # ------------------------
1694 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1695 ac_fn_cxx_try_cpp ()
1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698 if { { ac_try="$ac_cpp conftest.$ac_ext"
1700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701 *) ac_try_echo=$ac_try;;
1703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704 $as_echo "$ac_try_echo"; } >&5
1705 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1707 if test -s conftest.err; then
1708 grep -v '^ *+' conftest.err >conftest.er1
1709 cat conftest.er1 >&5
1710 mv -f conftest.er1 conftest.err
1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713 test $ac_status = 0; } > conftest.i && {
1714 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1715 test ! -s conftest.err
1719 $as_echo "$as_me: failed program was:" >&5
1720 sed 's/^/| /' conftest.$ac_ext >&5
1724 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725 as_fn_set_status $ac_retval
1727 } # ac_fn_cxx_try_cpp
1729 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1730 # ---------------------------------------------------------
1731 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1732 # the include files in INCLUDES and setting the cache variable VAR
1734 ac_fn_cxx_check_header_mongrel ()
1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737 if eval \${$3+:} false; then :
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739 $as_echo_n "checking for $2... " >&6; }
1740 if eval \${$3+:} false; then :
1741 $as_echo_n "(cached) " >&6
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1745 $as_echo "$ac_res" >&6; }
1747 # Is the header compilable?
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1749 $as_echo_n "checking $2 usability... " >&6; }
1750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1751 /* end confdefs.h. */
1755 if ac_fn_cxx_try_compile "$LINENO"; then :
1756 ac_header_compiler=yes
1758 ac_header_compiler=no
1760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1762 $as_echo "$ac_header_compiler" >&6; }
1764 # Is the header present?
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1766 $as_echo_n "checking $2 presence... " >&6; }
1767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1768 /* end confdefs.h. */
1771 if ac_fn_cxx_try_cpp "$LINENO"; then :
1772 ac_header_preproc=yes
1774 ac_header_preproc=no
1776 rm -f conftest.err conftest.i conftest.$ac_ext
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1778 $as_echo "$ac_header_preproc" >&6; }
1780 # So? What about this header?
1781 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1784 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1786 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1790 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1792 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1794 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1796 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1798 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1802 $as_echo_n "checking for $2... " >&6; }
1803 if eval \${$3+:} false; then :
1804 $as_echo_n "(cached) " >&6
1806 eval "$3=\$ac_header_compiler"
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1810 $as_echo "$ac_res" >&6; }
1812 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1814 } # ac_fn_cxx_check_header_mongrel
1816 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1817 # ---------------------------------------------------------
1818 # Tests whether HEADER exists and can be compiled using the include files in
1819 # INCLUDES, setting the cache variable VAR accordingly.
1820 ac_fn_cxx_check_header_compile ()
1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1824 $as_echo_n "checking for $2... " >&6; }
1825 if eval \${$3+:} false; then :
1826 $as_echo_n "(cached) " >&6
1828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1829 /* end confdefs.h. */
1833 if ac_fn_cxx_try_compile "$LINENO"; then :
1838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1842 $as_echo "$ac_res" >&6; }
1843 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1845 } # ac_fn_cxx_check_header_compile
1847 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
1848 # ---------------------------------------------
1849 # Tests whether TYPE exists after having included INCLUDES, setting cache
1850 # variable VAR accordingly.
1851 ac_fn_cxx_check_type ()
1853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1855 $as_echo_n "checking for $2... " >&6; }
1856 if eval \${$3+:} false; then :
1857 $as_echo_n "(cached) " >&6
1860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1861 /* end confdefs.h. */
1872 if ac_fn_cxx_try_compile "$LINENO"; then :
1873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1874 /* end confdefs.h. */
1885 if ac_fn_cxx_try_compile "$LINENO"; then :
1890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1896 $as_echo "$ac_res" >&6; }
1897 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1899 } # ac_fn_cxx_check_type
1901 # ac_fn_cxx_check_func LINENO FUNC VAR
1902 # ------------------------------------
1903 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1904 ac_fn_cxx_check_func ()
1906 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1908 $as_echo_n "checking for $2... " >&6; }
1909 if eval \${$3+:} false; then :
1910 $as_echo_n "(cached) " >&6
1912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1913 /* end confdefs.h. */
1914 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1916 #define $2 innocuous_$2
1918 /* System header to define __stub macros and hopefully few prototypes,
1919 which can conflict with char $2 (); below.
1920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1921 <limits.h> exists even on freestanding compilers. */
1924 # include <limits.h>
1926 # include <assert.h>
1931 /* Override any GCC internal prototype to avoid an error.
1932 Use char because int might match the return type of a GCC
1933 builtin and then its argument prototype would still apply. */
1938 /* The GNU C library defines this for functions which it implements
1939 to always fail with ENOSYS. Some functions are actually named
1940 something starting with __ and the normal name is an alias. */
1941 #if defined __stub_$2 || defined __stub___$2
1953 if ac_fn_cxx_try_link "$LINENO"; then :
1958 rm -f core conftest.err conftest.$ac_objext \
1959 conftest$ac_exeext conftest.$ac_ext
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1963 $as_echo "$ac_res" >&6; }
1964 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1966 } # ac_fn_cxx_check_func
1968 # ac_fn_c_check_func LINENO FUNC VAR
1969 # ----------------------------------
1970 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1971 ac_fn_c_check_func ()
1973 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1975 $as_echo_n "checking for $2... " >&6; }
1976 if eval \${$3+:} false; then :
1977 $as_echo_n "(cached) " >&6
1979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1980 /* end confdefs.h. */
1981 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1982 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1983 #define $2 innocuous_$2
1985 /* System header to define __stub macros and hopefully few prototypes,
1986 which can conflict with char $2 (); below.
1987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1988 <limits.h> exists even on freestanding compilers. */
1991 # include <limits.h>
1993 # include <assert.h>
1998 /* Override any GCC internal prototype to avoid an error.
1999 Use char because int might match the return type of a GCC
2000 builtin and then its argument prototype would still apply. */
2005 /* The GNU C library defines this for functions which it implements
2006 to always fail with ENOSYS. Some functions are actually named
2007 something starting with __ and the normal name is an alias. */
2008 #if defined __stub_$2 || defined __stub___$2
2020 if ac_fn_c_try_link "$LINENO"; then :
2025 rm -f core conftest.err conftest.$ac_objext \
2026 conftest$ac_exeext conftest.$ac_ext
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2030 $as_echo "$ac_res" >&6; }
2031 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2033 } # ac_fn_c_check_func
2035 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2036 # ---------------------------------------------
2037 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2039 ac_fn_c_check_decl ()
2041 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2042 as_decl_name=`echo $2|sed 's/ *(.*//'`
2043 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2045 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2046 if eval \${$3+:} false; then :
2047 $as_echo_n "(cached) " >&6
2049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2050 /* end confdefs.h. */
2055 #ifndef $as_decl_name
2057 (void) $as_decl_use;
2059 (void) $as_decl_name;
2067 if ac_fn_c_try_compile "$LINENO"; then :
2072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2076 $as_echo "$ac_res" >&6; }
2077 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2079 } # ac_fn_c_check_decl
2080 cat >config.log <<_ACEOF
2081 This file contains any messages produced by compilers while
2082 running configure, to aid debugging if configure makes a mistake.
2084 It was created by spamass-milter $as_me 0.4.0, which was
2085 generated by GNU Autoconf 2.69. Invocation command line was
2097 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2098 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2099 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2100 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2101 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2103 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2104 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2106 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2107 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2108 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2109 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2110 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2111 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2112 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2120 test -z "$as_dir" && as_dir=.
2121 $as_echo "PATH: $as_dir"
2137 # Keep a trace of the command line.
2138 # Strip out --no-create and --no-recursion so they do not pile up.
2139 # Strip out --silent because we don't want to record it for future runs.
2140 # Also quote any args containing shell meta-characters.
2141 # Make two passes to allow for proper duplicate-argument suppression.
2145 ac_must_keep_next=false
2151 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2152 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2153 | -silent | --silent | --silen | --sile | --sil)
2156 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2159 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2161 as_fn_append ac_configure_args1 " '$ac_arg'"
2162 if test $ac_must_keep_next = true; then
2163 ac_must_keep_next=false # Got value, back to normal.
2166 *=* | --config-cache | -C | -disable-* | --disable-* \
2167 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2168 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2169 | -with-* | --with-* | -without-* | --without-* | --x)
2170 case "$ac_configure_args0 " in
2171 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2174 -* ) ac_must_keep_next=true ;;
2177 as_fn_append ac_configure_args " '$ac_arg'"
2182 { ac_configure_args0=; unset ac_configure_args0;}
2183 { ac_configure_args1=; unset ac_configure_args1;}
2185 # When interrupted or exit'd, cleanup temporary files, and complete
2186 # config.log. We remove comments because anyway the quotes in there
2187 # would cause problems or look ugly.
2188 # WARNING: Use '\'' to represent an apostrophe within the trap.
2189 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2190 trap 'exit_status=$?
2191 # Save into config.log some information that might help in debugging.
2195 $as_echo "## ---------------- ##
2196 ## Cache variables. ##
2197 ## ---------------- ##"
2199 # The following way of writing the cache mishandles newlines in values,
2201 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2202 eval ac_val=\$$ac_var
2206 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2207 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2210 _ | IFS | as_nl) ;; #(
2211 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2212 *) { eval $ac_var=; unset $ac_var;} ;;
2217 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2218 *${as_nl}ac_space=\ *)
2220 "s/'\''/'\''\\\\'\'''\''/g;
2221 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2224 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2231 $as_echo "## ----------------- ##
2232 ## Output variables. ##
2233 ## ----------------- ##"
2235 for ac_var in $ac_subst_vars
2237 eval ac_val=\$$ac_var
2239 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2241 $as_echo "$ac_var='\''$ac_val'\''"
2245 if test -n "$ac_subst_files"; then
2246 $as_echo "## ------------------- ##
2247 ## File substitutions. ##
2248 ## ------------------- ##"
2250 for ac_var in $ac_subst_files
2252 eval ac_val=\$$ac_var
2254 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2256 $as_echo "$ac_var='\''$ac_val'\''"
2261 if test -s confdefs.h; then
2262 $as_echo "## ----------- ##
2269 test "$ac_signal" != 0 &&
2270 $as_echo "$as_me: caught signal $ac_signal"
2271 $as_echo "$as_me: exit $exit_status"
2273 rm -f core *.core core.conftest.* &&
2274 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2277 for ac_signal in 1 2 13 15; do
2278 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2282 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2283 rm -f -r conftest* confdefs.h
2285 $as_echo "/* confdefs.h */" > confdefs.h
2287 # Predefined preprocessor variables.
2289 cat >>confdefs.h <<_ACEOF
2290 #define PACKAGE_NAME "$PACKAGE_NAME"
2293 cat >>confdefs.h <<_ACEOF
2294 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2297 cat >>confdefs.h <<_ACEOF
2298 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2301 cat >>confdefs.h <<_ACEOF
2302 #define PACKAGE_STRING "$PACKAGE_STRING"
2305 cat >>confdefs.h <<_ACEOF
2306 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2309 cat >>confdefs.h <<_ACEOF
2310 #define PACKAGE_URL "$PACKAGE_URL"
2314 # Let the site file select an alternate cache file if it wants to.
2315 # Prefer an explicitly selected file to automatically selected ones.
2318 if test -n "$CONFIG_SITE"; then
2319 # We do not want a PATH search for config.site.
2320 case $CONFIG_SITE in #((
2321 -*) ac_site_file1=./$CONFIG_SITE;;
2322 */*) ac_site_file1=$CONFIG_SITE;;
2323 *) ac_site_file1=./$CONFIG_SITE;;
2325 elif test "x$prefix" != xNONE; then
2326 ac_site_file1=$prefix/share/config.site
2327 ac_site_file2=$prefix/etc/config.site
2329 ac_site_file1=$ac_default_prefix/share/config.site
2330 ac_site_file2=$ac_default_prefix/etc/config.site
2332 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2334 test "x$ac_site_file" = xNONE && continue
2335 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2337 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2338 sed 's/^/| /' "$ac_site_file" >&5
2340 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2341 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2342 as_fn_error $? "failed to load site script $ac_site_file
2343 See \`config.log' for more details" "$LINENO" 5; }
2347 if test -r "$cache_file"; then
2348 # Some versions of bash will fail to source /dev/null (special files
2349 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2350 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2352 $as_echo "$as_me: loading cache $cache_file" >&6;}
2354 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2355 *) . "./$cache_file";;
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2360 $as_echo "$as_me: creating cache $cache_file" >&6;}
2364 # Check that the precious variables saved in the cache have kept the same
2366 ac_cache_corrupted=false
2367 for ac_var in $ac_precious_vars; do
2368 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2369 eval ac_new_set=\$ac_env_${ac_var}_set
2370 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2371 eval ac_new_val=\$ac_env_${ac_var}_value
2372 case $ac_old_set,$ac_new_set in
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2375 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2376 ac_cache_corrupted=: ;;
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2379 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2380 ac_cache_corrupted=: ;;
2383 if test "x$ac_old_val" != "x$ac_new_val"; then
2384 # differences in whitespace do not lead to failure.
2385 ac_old_val_w=`echo x $ac_old_val`
2386 ac_new_val_w=`echo x $ac_new_val`
2387 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2389 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2390 ac_cache_corrupted=:
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2393 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2394 eval $ac_var=\$ac_old_val
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2397 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2399 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2402 # Pass precious variables to config.status.
2403 if test "$ac_new_set" = set; then
2405 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2406 *) ac_arg=$ac_var=$ac_new_val ;;
2408 case " $ac_configure_args " in
2409 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2410 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2414 if $ac_cache_corrupted; then
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2416 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2418 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2419 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2421 ## -------------------- ##
2422 ## Main body of script. ##
2423 ## -------------------- ##
2426 ac_cpp='$CPP $CPPFLAGS'
2427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2436 # Initialize automake now
2437 ac_config_headers="$ac_config_headers config.h"
2439 am__api_version='1.14'
2442 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2443 if test -f "$ac_dir/install-sh"; then
2445 ac_install_sh="$ac_aux_dir/install-sh -c"
2447 elif test -f "$ac_dir/install.sh"; then
2449 ac_install_sh="$ac_aux_dir/install.sh -c"
2451 elif test -f "$ac_dir/shtool"; then
2453 ac_install_sh="$ac_aux_dir/shtool install -c"
2457 if test -z "$ac_aux_dir"; then
2458 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2461 # These three variables are undocumented and unsupported,
2462 # and are intended to be withdrawn in a future Autoconf release.
2463 # They can cause serious problems if a builder's source tree is in a directory
2464 # whose full name contains unusual characters.
2465 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2466 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2467 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2470 # Find a good install program. We prefer a C program (faster),
2471 # so one script is as good as another. But avoid the broken or
2472 # incompatible versions:
2473 # SysV /etc/install, /usr/sbin/install
2474 # SunOS /usr/etc/install
2475 # IRIX /sbin/install
2477 # AmigaOS /C/install, which installs bootblocks on floppy discs
2478 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2479 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2480 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2481 # OS/2's system install, which has a completely different semantic
2482 # ./install, which can be erroneously created by make from ./install.sh.
2483 # Reject install programs that cannot install multiple files.
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2485 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2486 if test -z "$INSTALL"; then
2487 if ${ac_cv_path_install+:} false; then :
2488 $as_echo_n "(cached) " >&6
2490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494 test -z "$as_dir" && as_dir=.
2495 # Account for people who put trailing slashes in PATH elements.
2496 case $as_dir/ in #((
2497 ./ | .// | /[cC]/* | \
2498 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2499 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2502 # OSF1 and SCO ODT 3.0 have their own names for install.
2503 # Don't use installbsd from OSF since it installs stuff as root
2505 for ac_prog in ginstall scoinst install; do
2506 for ac_exec_ext in '' $ac_executable_extensions; do
2507 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2508 if test $ac_prog = install &&
2509 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2510 # AIX install. It has an incompatible calling convention.
2512 elif test $ac_prog = install &&
2513 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2514 # program-specific install script used by HP pwplus--don't use.
2517 rm -rf conftest.one conftest.two conftest.dir
2518 echo one > conftest.one
2519 echo two > conftest.two
2521 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2522 test -s conftest.one && test -s conftest.two &&
2523 test -s conftest.dir/conftest.one &&
2524 test -s conftest.dir/conftest.two
2526 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2539 rm -rf conftest.one conftest.two conftest.dir
2542 if test "${ac_cv_path_install+set}" = set; then
2543 INSTALL=$ac_cv_path_install
2545 # As a last resort, use the slow shell script. Don't cache a
2546 # value for INSTALL within a source directory, because that will
2547 # break other packages using the cache if that directory is
2548 # removed, or if the value is a relative name.
2549 INSTALL=$ac_install_sh
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2553 $as_echo "$INSTALL" >&6; }
2555 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2556 # It thinks the first close brace ends the variable substitution.
2557 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2559 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2561 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2564 $as_echo_n "checking whether build environment is sane... " >&6; }
2565 # Reject unsafe characters in $srcdir or the absolute working directory
2566 # name. Accept space and tab only in the latter.
2570 *[\\\"\#\$\&\'\`$am_lf]*)
2571 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2574 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2575 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2578 # Do 'set' in a subshell so we don't clobber the current shell's
2579 # arguments. Must try -L first in case configure is actually a
2580 # symlink; some systems play weird games with the mod time of symlinks
2581 # (eg FreeBSD returns the mod time of the symlink's containing
2585 for am_try in 1 2; do
2586 echo "timestamp, slept: $am_has_slept" > conftest.file
2587 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2588 if test "$*" = "X"; then
2590 set X `ls -t "$srcdir/configure" conftest.file`
2592 if test "$*" != "X $srcdir/configure conftest.file" \
2593 && test "$*" != "X conftest.file $srcdir/configure"; then
2595 # If neither matched, then we have a broken ls. This can happen
2596 # if, for instance, CONFIG_SHELL is bash and it inherits a
2597 # broken ls alias from the environment. This has actually
2598 # happened. Such a system could not be considered "sane".
2599 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2600 alias in your environment" "$LINENO" 5
2602 if test "$2" = conftest.file || test $am_try -eq 2; then
2609 test "$2" = conftest.file
2615 as_fn_error $? "newly created file is older than distributed files!
2616 Check your system clock" "$LINENO" 5
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2619 $as_echo "yes" >&6; }
2620 # If we didn't sleep, we still need to ensure time stamps of config.status and
2621 # generated files are strictly newer.
2623 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2630 test "$program_prefix" != NONE &&
2631 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2632 # Use a double $ so make ignores it.
2633 test "$program_suffix" != NONE &&
2634 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2635 # Double any \ or $.
2636 # By default was `s,x,x', remove it if useless.
2637 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2638 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2640 # expand $ac_aux_dir to an absolute path
2641 am_aux_dir=`cd $ac_aux_dir && pwd`
2643 if test x"${MISSING+set}" != xset; then
2646 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2648 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2651 # Use eval to expand $SHELL
2652 if eval "$MISSING --is-lightweight"; then
2653 am_missing_run="$MISSING "
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2657 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2660 if test x"${install_sh}" != xset; then
2663 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2665 install_sh="\${SHELL} $am_aux_dir/install-sh"
2669 # Installed binaries are usually stripped using 'strip' when the user
2670 # run "make install-strip". However 'strip' might not be the right
2671 # tool to use in cross-compilation environments, therefore Automake
2672 # will honor the 'STRIP' environment variable to overrule this program.
2673 if test "$cross_compiling" != no; then
2674 if test -n "$ac_tool_prefix"; then
2675 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2676 set dummy ${ac_tool_prefix}strip; ac_word=$2
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2678 $as_echo_n "checking for $ac_word... " >&6; }
2679 if ${ac_cv_prog_STRIP+:} false; then :
2680 $as_echo_n "(cached) " >&6
2682 if test -n "$STRIP"; then
2683 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689 test -z "$as_dir" && as_dir=.
2690 for ac_exec_ext in '' $ac_executable_extensions; do
2691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2692 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2702 STRIP=$ac_cv_prog_STRIP
2703 if test -n "$STRIP"; then
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2705 $as_echo "$STRIP" >&6; }
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2708 $as_echo "no" >&6; }
2713 if test -z "$ac_cv_prog_STRIP"; then
2715 # Extract the first word of "strip", so it can be a program name with args.
2716 set dummy strip; ac_word=$2
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2718 $as_echo_n "checking for $ac_word... " >&6; }
2719 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2720 $as_echo_n "(cached) " >&6
2722 if test -n "$ac_ct_STRIP"; then
2723 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2729 test -z "$as_dir" && as_dir=.
2730 for ac_exec_ext in '' $ac_executable_extensions; do
2731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2732 ac_cv_prog_ac_ct_STRIP="strip"
2733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2742 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2743 if test -n "$ac_ct_STRIP"; then
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2745 $as_echo "$ac_ct_STRIP" >&6; }
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2748 $as_echo "no" >&6; }
2751 if test "x$ac_ct_STRIP" = x; then
2754 case $cross_compiling:$ac_tool_warned in
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2757 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2758 ac_tool_warned=yes ;;
2763 STRIP="$ac_cv_prog_STRIP"
2767 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2770 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2771 if test -z "$MKDIR_P"; then
2772 if ${ac_cv_path_mkdir+:} false; then :
2773 $as_echo_n "(cached) " >&6
2775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2779 test -z "$as_dir" && as_dir=.
2780 for ac_prog in mkdir gmkdir; do
2781 for ac_exec_ext in '' $ac_executable_extensions; do
2782 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2783 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2784 'mkdir (GNU coreutils) '* | \
2785 'mkdir (coreutils) '* | \
2786 'mkdir (fileutils) '4.1*)
2787 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2797 test -d ./--version && rmdir ./--version
2798 if test "${ac_cv_path_mkdir+set}" = set; then
2799 MKDIR_P="$ac_cv_path_mkdir -p"
2801 # As a last resort, use the slow shell script. Don't cache a
2802 # value for MKDIR_P within a source directory, because that will
2803 # break other packages using the cache if that directory is
2804 # removed, or if the value is a relative name.
2805 MKDIR_P="$ac_install_sh -d"
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2809 $as_echo "$MKDIR_P" >&6; }
2811 for ac_prog in gawk mawk nawk awk
2813 # Extract the first word of "$ac_prog", so it can be a program name with args.
2814 set dummy $ac_prog; ac_word=$2
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2816 $as_echo_n "checking for $ac_word... " >&6; }
2817 if ${ac_cv_prog_AWK+:} false; then :
2818 $as_echo_n "(cached) " >&6
2820 if test -n "$AWK"; then
2821 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827 test -z "$as_dir" && as_dir=.
2828 for ac_exec_ext in '' $ac_executable_extensions; do
2829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2830 ac_cv_prog_AWK="$ac_prog"
2831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2841 if test -n "$AWK"; then
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2843 $as_echo "$AWK" >&6; }
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2846 $as_echo "no" >&6; }
2850 test -n "$AWK" && break
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2854 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2856 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2857 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2858 $as_echo_n "(cached) " >&6
2860 cat >conftest.make <<\_ACEOF
2863 @echo '@@@%%%=$(MAKE)=@@@%%%'
2865 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2866 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2868 eval ac_cv_prog_make_${ac_make}_set=yes;;
2870 eval ac_cv_prog_make_${ac_make}_set=no;;
2874 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2876 $as_echo "yes" >&6; }
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2880 $as_echo "no" >&6; }
2881 SET_MAKE="MAKE=${MAKE-make}"
2884 rm -rf .tst 2>/dev/null
2885 mkdir .tst 2>/dev/null
2886 if test -d .tst; then
2891 rmdir .tst 2>/dev/null
2893 # Check whether --enable-silent-rules was given.
2894 if test "${enable_silent_rules+set}" = set; then :
2895 enableval=$enable_silent_rules;
2898 case $enable_silent_rules in # (((
2899 yes) AM_DEFAULT_VERBOSITY=0;;
2900 no) AM_DEFAULT_VERBOSITY=1;;
2901 *) AM_DEFAULT_VERBOSITY=1;;
2903 am_make=${MAKE-make}
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2905 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2906 if ${am_cv_make_support_nested_variables+:} false; then :
2907 $as_echo_n "(cached) " >&6
2909 if $as_echo 'TRUE=$(BAR$(V))
2915 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2916 am_cv_make_support_nested_variables=yes
2918 am_cv_make_support_nested_variables=no
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2922 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2923 if test $am_cv_make_support_nested_variables = yes; then
2925 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2927 AM_V=$AM_DEFAULT_VERBOSITY
2928 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2932 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2933 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2934 # is not polluted with repeated "-I."
2935 am__isrc=' -I$(srcdir)'
2936 # test to see if srcdir already configured
2937 if test -f $srcdir/config.status; then
2938 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2942 # test whether we have cygpath
2943 if test -z "$CYGPATH_W"; then
2944 if (cygpath --version) >/dev/null 2>/dev/null; then
2945 CYGPATH_W='cygpath -w'
2952 # Define the identity of the package.
2954 PACKAGE=spamass-milter
2958 cat >>confdefs.h <<_ACEOF
2959 #define PACKAGE "$PACKAGE"
2963 cat >>confdefs.h <<_ACEOF
2964 #define VERSION "$VERSION"
2967 # Some tools Automake needs.
2969 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2972 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2975 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2978 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2981 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2983 # For better backward compatibility. To be removed once Automake 1.9.x
2984 # dies out for good. For more background, see:
2985 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2986 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2987 mkdir_p='$(MKDIR_P)'
2989 # We need awk for the "check" target. The system "awk" is bad on
2991 # Always define AMTAR for backward compatibility. Yes, it's still used
2992 # in the wild :-( We should find a proper way to deprecate it ...
2996 # We'll loop over all known methods to create a tar archive until one works.
2997 _am_tools='gnutar pax cpio none'
2999 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3006 # POSIX will say in a future version that running "rm -f" with no argument
3007 # is OK; and we want to be able to make that assumption in our Makefile
3008 # recipes. So use an aggressive probe to check that the usage we want is
3009 # actually supported "in the wild" to an acceptable degree.
3010 # See automake bug#10828.
3011 # To make any issue more visible, cause the running configure to be aborted
3012 # by default if the 'rm' program in use doesn't match our expectations; the
3013 # user can still override this though.
3014 if rm -f && rm -fr && rm -rf; then : OK; else
3018 Your 'rm' program seems unable to run without file operands specified
3019 on the command line, even when the '-f' option is present. This is contrary
3020 to the behaviour of most rm programs out there, and not conforming with
3021 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3023 Please tell bug-automake@gnu.org about your system, including the value
3024 of your $PATH and any error possibly output before this message. This
3025 can help us improve future automake versions.
3028 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3029 echo 'Configuration will proceed anyway, since you have set the' >&2
3030 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3034 Aborting the configuration process, to ensure you take notice of the issue.
3036 You can download and install GNU coreutils to get an 'rm' implementation
3037 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3039 If you want to complete the configuration process using your problematic
3040 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3041 to "yes", and re-run configure.
3044 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3048 # Checks for programs.
3050 ac_cpp='$CXXCPP $CPPFLAGS'
3051 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3052 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3053 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3054 if test -z "$CXX"; then
3055 if test -n "$CCC"; then
3058 if test -n "$ac_tool_prefix"; then
3059 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3061 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3062 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3064 $as_echo_n "checking for $ac_word... " >&6; }
3065 if ${ac_cv_prog_CXX+:} false; then :
3066 $as_echo_n "(cached) " >&6
3068 if test -n "$CXX"; then
3069 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075 test -z "$as_dir" && as_dir=.
3076 for ac_exec_ext in '' $ac_executable_extensions; do
3077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3078 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3089 if test -n "$CXX"; then
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3091 $as_echo "$CXX" >&6; }
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3094 $as_echo "no" >&6; }
3098 test -n "$CXX" && break
3101 if test -z "$CXX"; then
3103 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3105 # Extract the first word of "$ac_prog", so it can be a program name with args.
3106 set dummy $ac_prog; ac_word=$2
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3108 $as_echo_n "checking for $ac_word... " >&6; }
3109 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3110 $as_echo_n "(cached) " >&6
3112 if test -n "$ac_ct_CXX"; then
3113 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3119 test -z "$as_dir" && as_dir=.
3120 for ac_exec_ext in '' $ac_executable_extensions; do
3121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3122 ac_cv_prog_ac_ct_CXX="$ac_prog"
3123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3132 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3133 if test -n "$ac_ct_CXX"; then
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3135 $as_echo "$ac_ct_CXX" >&6; }
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3138 $as_echo "no" >&6; }
3142 test -n "$ac_ct_CXX" && break
3145 if test "x$ac_ct_CXX" = x; then
3148 case $cross_compiling:$ac_tool_warned in
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3151 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3152 ac_tool_warned=yes ;;
3160 # Provide some information about the compiler.
3161 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3164 for ac_option in --version -v -V -qversion; do
3165 { { ac_try="$ac_compiler $ac_option >&5"
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3170 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3171 $as_echo "$ac_try_echo"; } >&5
3172 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3174 if test -s conftest.err; then
3176 ... rest of stderr output deleted ...
3177 10q' conftest.err >conftest.er1
3178 cat conftest.er1 >&5
3180 rm -f conftest.er1 conftest.err
3181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3182 test $ac_status = 0; }
3185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3186 /* end confdefs.h. */
3196 ac_clean_files_save=$ac_clean_files
3197 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3198 # Try to create an executable without -o first, disregard a.out.
3199 # It will help us diagnose broken compilers, and finding out an intuition
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3202 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3203 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3205 # The possible output files:
3206 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3209 for ac_file in $ac_files
3212 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3213 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3218 if { { ac_try="$ac_link_default"
3220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221 *) ac_try_echo=$ac_try;;
3223 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3224 $as_echo "$ac_try_echo"; } >&5
3225 (eval "$ac_link_default") 2>&5
3227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3228 test $ac_status = 0; }; then :
3229 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3230 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3231 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3232 # so that the user can short-circuit this test for compilers unknown to
3234 for ac_file in $ac_files ''
3236 test -f "$ac_file" || continue
3238 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3241 # We found the default executable, but exeext='' is most
3245 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3247 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3249 # We set ac_cv_exeext here because the later test for it is not
3250 # safe: cross compilers may not add the suffix if given an `-o'
3251 # argument, so we may need to know it at that point already.
3252 # Even if this section looks crufty: it has the advantage of
3259 test "$ac_cv_exeext" = no && ac_cv_exeext=
3264 if test -z "$ac_file"; then :
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3266 $as_echo "no" >&6; }
3267 $as_echo "$as_me: failed program was:" >&5
3268 sed 's/^/| /' conftest.$ac_ext >&5
3270 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3271 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3272 as_fn_error 77 "C++ compiler cannot create executables
3273 See \`config.log' for more details" "$LINENO" 5; }
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3276 $as_echo "yes" >&6; }
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3279 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3281 $as_echo "$ac_file" >&6; }
3282 ac_exeext=$ac_cv_exeext
3284 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3285 ac_clean_files=$ac_clean_files_save
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3287 $as_echo_n "checking for suffix of executables... " >&6; }
3288 if { { ac_try="$ac_link"
3290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291 *) ac_try_echo=$ac_try;;
3293 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3294 $as_echo "$ac_try_echo"; } >&5
3295 (eval "$ac_link") 2>&5
3297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3298 test $ac_status = 0; }; then :
3299 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3300 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3301 # work properly (i.e., refer to `conftest.exe'), while it won't with
3303 for ac_file in conftest.exe conftest conftest.*; do
3304 test -f "$ac_file" || continue
3306 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3307 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3313 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3314 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3315 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3316 See \`config.log' for more details" "$LINENO" 5; }
3318 rm -f conftest conftest$ac_cv_exeext
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3320 $as_echo "$ac_cv_exeext" >&6; }
3322 rm -f conftest.$ac_ext
3323 EXEEXT=$ac_cv_exeext
3325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3326 /* end confdefs.h. */
3331 FILE *f = fopen ("conftest.out", "w");
3332 return ferror (f) || fclose (f) != 0;
3338 ac_clean_files="$ac_clean_files conftest.out"
3339 # Check that the compiler produces executables we can run. If not, either
3340 # the compiler is broken, or we cross compile.
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3342 $as_echo_n "checking whether we are cross compiling... " >&6; }
3343 if test "$cross_compiling" != yes; then
3344 { { ac_try="$ac_link"
3346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3347 *) ac_try_echo=$ac_try;;
3349 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3350 $as_echo "$ac_try_echo"; } >&5
3351 (eval "$ac_link") 2>&5
3353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3354 test $ac_status = 0; }
3355 if { ac_try='./conftest$ac_cv_exeext'
3356 { { case "(($ac_try" in
3357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358 *) ac_try_echo=$ac_try;;
3360 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3361 $as_echo "$ac_try_echo"; } >&5
3362 (eval "$ac_try") 2>&5
3364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3365 test $ac_status = 0; }; }; then
3368 if test "$cross_compiling" = maybe; then
3371 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3373 as_fn_error $? "cannot run C++ compiled programs.
3374 If you meant to cross compile, use \`--host'.
3375 See \`config.log' for more details" "$LINENO" 5; }
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3380 $as_echo "$cross_compiling" >&6; }
3382 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3383 ac_clean_files=$ac_clean_files_save
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3385 $as_echo_n "checking for suffix of object files... " >&6; }
3386 if ${ac_cv_objext+:} false; then :
3387 $as_echo_n "(cached) " >&6
3389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3390 /* end confdefs.h. */
3400 rm -f conftest.o conftest.obj
3401 if { { ac_try="$ac_compile"
3403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404 *) ac_try_echo=$ac_try;;
3406 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3407 $as_echo "$ac_try_echo"; } >&5
3408 (eval "$ac_compile") 2>&5
3410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3411 test $ac_status = 0; }; then :
3412 for ac_file in conftest.o conftest.obj conftest.*; do
3413 test -f "$ac_file" || continue;
3415 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3416 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3421 $as_echo "$as_me: failed program was:" >&5
3422 sed 's/^/| /' conftest.$ac_ext >&5
3424 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3425 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3426 as_fn_error $? "cannot compute suffix of object files: cannot compile
3427 See \`config.log' for more details" "$LINENO" 5; }
3429 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3432 $as_echo "$ac_cv_objext" >&6; }
3433 OBJEXT=$ac_cv_objext
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3436 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3437 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3438 $as_echo_n "(cached) " >&6
3440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3441 /* end confdefs.h. */
3454 if ac_fn_cxx_try_compile "$LINENO"; then :
3459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3460 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3464 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3465 if test $ac_compiler_gnu = yes; then
3470 ac_test_CXXFLAGS=${CXXFLAGS+set}
3471 ac_save_CXXFLAGS=$CXXFLAGS
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3473 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3474 if ${ac_cv_prog_cxx_g+:} false; then :
3475 $as_echo_n "(cached) " >&6
3477 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3478 ac_cxx_werror_flag=yes
3481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3482 /* end confdefs.h. */
3492 if ac_fn_cxx_try_compile "$LINENO"; then :
3493 ac_cv_prog_cxx_g=yes
3496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3497 /* end confdefs.h. */
3507 if ac_fn_cxx_try_compile "$LINENO"; then :
3510 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3513 /* end confdefs.h. */
3523 if ac_fn_cxx_try_compile "$LINENO"; then :
3524 ac_cv_prog_cxx_g=yes
3526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3531 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3534 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3535 if test "$ac_test_CXXFLAGS" = set; then
3536 CXXFLAGS=$ac_save_CXXFLAGS
3537 elif test $ac_cv_prog_cxx_g = yes; then
3538 if test "$GXX" = yes; then
3544 if test "$GXX" = yes; then
3551 ac_cpp='$CPP $CPPFLAGS'
3552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3555 DEPDIR="${am__leading_dot}deps"
3557 ac_config_commands="$ac_config_commands depfiles"
3560 am_make=${MAKE-make}
3561 cat > confinc << 'END'
3563 @echo this is the am__doit target
3566 # If we don't find an include directive, just comment out the code.
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3568 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3572 # First try GNU make style include.
3573 echo "include confinc" > confmf
3574 # Ignore all kinds of additional output from 'make'.
3575 case `$am_make -s -f confmf 2> /dev/null` in #(
3576 *the\ am__doit\ target*)
3582 # Now try BSD make style include.
3583 if test "$am__include" = "#"; then
3584 echo '.include "confinc"' > confmf
3585 case `$am_make -s -f confmf 2> /dev/null` in #(
3586 *the\ am__doit\ target*)
3587 am__include=.include
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3596 $as_echo "$_am_result" >&6; }
3597 rm -f confinc confmf
3599 # Check whether --enable-dependency-tracking was given.
3600 if test "${enable_dependency_tracking+set}" = set; then :
3601 enableval=$enable_dependency_tracking;
3604 if test "x$enable_dependency_tracking" != xno; then
3605 am_depcomp="$ac_aux_dir/depcomp"
3609 if test "x$enable_dependency_tracking" != xno; then
3619 depcc="$CXX" am_compiler_list=
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3622 $as_echo_n "checking dependency style of $depcc... " >&6; }
3623 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3624 $as_echo_n "(cached) " >&6
3626 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3627 # We make a subdir and do the tests there. Otherwise we can end up
3628 # making bogus files that we don't know about and never remove. For
3629 # instance it was reported that on HP-UX the gcc test will end up
3630 # making a dummy file named 'D' -- because '-MD' means "put the output
3634 # Copy depcomp to subdir because otherwise we won't find it if we're
3635 # using a relative directory.
3636 cp "$am_depcomp" conftest.dir
3638 # We will build objects and dependencies in a subdirectory because
3639 # it helps to detect inapplicable dependency modes. For instance
3640 # both Tru64's cc and ICC support -MD to output dependencies as a
3641 # side effect of compilation, but ICC will put the dependencies in
3642 # the current directory while Tru64 will put them in the object
3646 am_cv_CXX_dependencies_compiler_type=none
3647 if test "$am_compiler_list" = ""; then
3648 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3651 case " $depcc " in #(
3652 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3655 for depmode in $am_compiler_list; do
3656 # Setup a source with many dependencies, because some compilers
3657 # like to wrap large dependency lists on column 80 (with \), and
3658 # we should not choose a depcomp mode which is confused by this.
3660 # We need to recreate these files for each test, as the compiler may
3661 # overwrite some of them when testing with obscure command lines.
3662 # This happens at least with the AIX C compiler.
3664 for i in 1 2 3 4 5 6; do
3665 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3666 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3667 # Solaris 10 /bin/sh.
3668 echo '/* dummy */' > sub/conftst$i.h
3670 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3672 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3673 # mode. It turns out that the SunPro C++ compiler does not properly
3674 # handle '-M -o', and we need to detect this. Also, some Intel
3675 # versions had trouble with output in subdirs.
3676 am__obj=sub/conftest.${OBJEXT-o}
3677 am__minus_obj="-o $am__obj"
3680 # This depmode causes a compiler race in universal mode.
3681 test "$am__universal" = false || continue
3684 # After this tag, mechanisms are not by side-effect, so they'll
3685 # only be used when explicitly requested.
3686 if test "x$enable_dependency_tracking" = xyes; then
3692 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3693 # This compiler won't grok '-c -o', but also, the minuso test has
3694 # not run yet. These depmodes are late enough in the game, and
3695 # so weak that their functioning should not be impacted.
3696 am__obj=conftest.${OBJEXT-o}
3701 if depmode=$depmode \
3702 source=sub/conftest.c object=$am__obj \
3703 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3704 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3705 >/dev/null 2>conftest.err &&
3706 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3707 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3708 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3709 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3710 # icc doesn't choke on unknown options, it will just issue warnings
3711 # or remarks (even with -Werror). So we grep stderr for any message
3712 # that says an option was ignored or not supported.
3713 # When given -MP, icc 7.0 and 7.1 complain thusly:
3714 # icc: Command line warning: ignoring option '-M'; no argument required
3715 # The diagnosis changed in icc 8.0:
3716 # icc: Command line remark: option '-MP' not supported
3717 if (grep 'ignoring option' conftest.err ||
3718 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3719 am_cv_CXX_dependencies_compiler_type=$depmode
3728 am_cv_CXX_dependencies_compiler_type=none
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3733 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3734 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3737 test "x$enable_dependency_tracking" != xno \
3738 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3739 am__fastdepCXX_TRUE=
3740 am__fastdepCXX_FALSE='#'
3742 am__fastdepCXX_TRUE='#'
3743 am__fastdepCXX_FALSE=
3748 ac_cpp='$CPP $CPPFLAGS'
3749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3752 if test -n "$ac_tool_prefix"; then
3753 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3754 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3756 $as_echo_n "checking for $ac_word... " >&6; }
3757 if ${ac_cv_prog_CC+:} false; then :
3758 $as_echo_n "(cached) " >&6
3760 if test -n "$CC"; then
3761 ac_cv_prog_CC="$CC" # Let the user override the test.
3763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3767 test -z "$as_dir" && as_dir=.
3768 for ac_exec_ext in '' $ac_executable_extensions; do
3769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3770 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3781 if test -n "$CC"; then
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3783 $as_echo "$CC" >&6; }
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3786 $as_echo "no" >&6; }
3791 if test -z "$ac_cv_prog_CC"; then
3793 # Extract the first word of "gcc", so it can be a program name with args.
3794 set dummy gcc; ac_word=$2
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3796 $as_echo_n "checking for $ac_word... " >&6; }
3797 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3798 $as_echo_n "(cached) " >&6
3800 if test -n "$ac_ct_CC"; then
3801 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3807 test -z "$as_dir" && as_dir=.
3808 for ac_exec_ext in '' $ac_executable_extensions; do
3809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3810 ac_cv_prog_ac_ct_CC="gcc"
3811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3820 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3821 if test -n "$ac_ct_CC"; then
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3823 $as_echo "$ac_ct_CC" >&6; }
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3826 $as_echo "no" >&6; }
3829 if test "x$ac_ct_CC" = x; then
3832 case $cross_compiling:$ac_tool_warned in
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3835 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3836 ac_tool_warned=yes ;;
3844 if test -z "$CC"; then
3845 if test -n "$ac_tool_prefix"; then
3846 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3847 set dummy ${ac_tool_prefix}cc; ac_word=$2
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3849 $as_echo_n "checking for $ac_word... " >&6; }
3850 if ${ac_cv_prog_CC+:} false; then :
3851 $as_echo_n "(cached) " >&6
3853 if test -n "$CC"; then
3854 ac_cv_prog_CC="$CC" # Let the user override the test.
3856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3860 test -z "$as_dir" && as_dir=.
3861 for ac_exec_ext in '' $ac_executable_extensions; do
3862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3863 ac_cv_prog_CC="${ac_tool_prefix}cc"
3864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3874 if test -n "$CC"; then
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3876 $as_echo "$CC" >&6; }
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3879 $as_echo "no" >&6; }
3885 if test -z "$CC"; then
3886 # Extract the first word of "cc", so it can be a program name with args.
3887 set dummy cc; ac_word=$2
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3889 $as_echo_n "checking for $ac_word... " >&6; }
3890 if ${ac_cv_prog_CC+:} false; then :
3891 $as_echo_n "(cached) " >&6
3893 if test -n "$CC"; then
3894 ac_cv_prog_CC="$CC" # Let the user override the test.
3897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3901 test -z "$as_dir" && as_dir=.
3902 for ac_exec_ext in '' $ac_executable_extensions; do
3903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3904 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3905 ac_prog_rejected=yes
3909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3916 if test $ac_prog_rejected = yes; then
3917 # We found a bogon in the path, so make sure we never use it.
3918 set dummy $ac_cv_prog_CC
3920 if test $# != 0; then
3921 # We chose a different compiler from the bogus one.
3922 # However, it has the same basename, so the bogon will be chosen
3923 # first if we set CC to just the basename; use the full file name.
3925 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3931 if test -n "$CC"; then
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3933 $as_echo "$CC" >&6; }
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3936 $as_echo "no" >&6; }
3941 if test -z "$CC"; then
3942 if test -n "$ac_tool_prefix"; then
3943 for ac_prog in cl.exe
3945 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3946 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3948 $as_echo_n "checking for $ac_word... " >&6; }
3949 if ${ac_cv_prog_CC+:} false; then :
3950 $as_echo_n "(cached) " >&6
3952 if test -n "$CC"; then
3953 ac_cv_prog_CC="$CC" # Let the user override the test.
3955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3959 test -z "$as_dir" && as_dir=.
3960 for ac_exec_ext in '' $ac_executable_extensions; do
3961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3962 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3973 if test -n "$CC"; then
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3975 $as_echo "$CC" >&6; }
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3978 $as_echo "no" >&6; }
3982 test -n "$CC" && break
3985 if test -z "$CC"; then
3987 for ac_prog in cl.exe
3989 # Extract the first word of "$ac_prog", so it can be a program name with args.
3990 set dummy $ac_prog; ac_word=$2
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3992 $as_echo_n "checking for $ac_word... " >&6; }
3993 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3994 $as_echo_n "(cached) " >&6
3996 if test -n "$ac_ct_CC"; then
3997 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4003 test -z "$as_dir" && as_dir=.
4004 for ac_exec_ext in '' $ac_executable_extensions; do
4005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4006 ac_cv_prog_ac_ct_CC="$ac_prog"
4007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4016 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4017 if test -n "$ac_ct_CC"; then
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4019 $as_echo "$ac_ct_CC" >&6; }
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4022 $as_echo "no" >&6; }
4026 test -n "$ac_ct_CC" && break
4029 if test "x$ac_ct_CC" = x; then
4032 case $cross_compiling:$ac_tool_warned in
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4035 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4036 ac_tool_warned=yes ;;
4045 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4046 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4047 as_fn_error $? "no acceptable C compiler found in \$PATH
4048 See \`config.log' for more details" "$LINENO" 5; }
4050 # Provide some information about the compiler.
4051 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4054 for ac_option in --version -v -V -qversion; do
4055 { { ac_try="$ac_compiler $ac_option >&5"
4057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4058 *) ac_try_echo=$ac_try;;
4060 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4061 $as_echo "$ac_try_echo"; } >&5
4062 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4064 if test -s conftest.err; then
4066 ... rest of stderr output deleted ...
4067 10q' conftest.err >conftest.er1
4068 cat conftest.er1 >&5
4070 rm -f conftest.er1 conftest.err
4071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4072 test $ac_status = 0; }
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4076 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4077 if ${ac_cv_c_compiler_gnu+:} false; then :
4078 $as_echo_n "(cached) " >&6
4080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4081 /* end confdefs.h. */
4094 if ac_fn_c_try_compile "$LINENO"; then :
4099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4100 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4104 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4105 if test $ac_compiler_gnu = yes; then
4110 ac_test_CFLAGS=${CFLAGS+set}
4111 ac_save_CFLAGS=$CFLAGS
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4113 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4114 if ${ac_cv_prog_cc_g+:} false; then :
4115 $as_echo_n "(cached) " >&6
4117 ac_save_c_werror_flag=$ac_c_werror_flag
4118 ac_c_werror_flag=yes
4121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4122 /* end confdefs.h. */
4132 if ac_fn_c_try_compile "$LINENO"; then :
4136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4137 /* end confdefs.h. */
4147 if ac_fn_c_try_compile "$LINENO"; then :
4150 ac_c_werror_flag=$ac_save_c_werror_flag
4152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4153 /* end confdefs.h. */
4163 if ac_fn_c_try_compile "$LINENO"; then :
4166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4171 ac_c_werror_flag=$ac_save_c_werror_flag
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4174 $as_echo "$ac_cv_prog_cc_g" >&6; }
4175 if test "$ac_test_CFLAGS" = set; then
4176 CFLAGS=$ac_save_CFLAGS
4177 elif test $ac_cv_prog_cc_g = yes; then
4178 if test "$GCC" = yes; then
4184 if test "$GCC" = yes; then
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4191 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4192 if ${ac_cv_prog_cc_c89+:} false; then :
4193 $as_echo_n "(cached) " >&6
4195 ac_cv_prog_cc_c89=no
4197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4198 /* end confdefs.h. */
4202 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4203 struct buf { int x; };
4204 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4205 static char *e (p, i)
4211 static char *f (char * (*g) (char **, int), char **p, ...)
4216 s = g (p, va_arg (v,int));
4221 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4222 function prototypes and stuff, but not '\xHH' hex character constants.
4223 These don't provoke an error unfortunately, instead are silently treated
4224 as 'x'. The following induces an error, until -std is added to get
4225 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4226 array size at least. It's necessary to write '\x00'==0 to get something
4227 that's true only with -std. */
4228 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4230 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4231 inside strings and character constants. */
4233 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4235 int test (int i, double x);
4236 struct s1 {int (*f) (int a);};
4237 struct s2 {int (*f) (double a);};
4238 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4244 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4249 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4250 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4252 CC="$ac_save_CC $ac_arg"
4253 if ac_fn_c_try_compile "$LINENO"; then :
4254 ac_cv_prog_cc_c89=$ac_arg
4256 rm -f core conftest.err conftest.$ac_objext
4257 test "x$ac_cv_prog_cc_c89" != "xno" && break
4259 rm -f conftest.$ac_ext
4264 case "x$ac_cv_prog_cc_c89" in
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4267 $as_echo "none needed" >&6; } ;;
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4270 $as_echo "unsupported" >&6; } ;;
4272 CC="$CC $ac_cv_prog_cc_c89"
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4274 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4276 if test "x$ac_cv_prog_cc_c89" != xno; then :
4281 ac_cpp='$CPP $CPPFLAGS'
4282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4287 ac_cpp='$CPP $CPPFLAGS'
4288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4292 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4293 if ${am_cv_prog_cc_c_o+:} false; then :
4294 $as_echo_n "(cached) " >&6
4296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4297 /* end confdefs.h. */
4307 # Make sure it works both with $CC and with simple cc.
4308 # Following AC_PROG_CC_C_O, we do the test twice because some
4309 # compilers refuse to overwrite an existing .o file with -o,
4310 # though they will create one.
4311 am_cv_prog_cc_c_o=yes
4313 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4314 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); } \
4318 && test -f conftest2.$ac_objext; then
4321 am_cv_prog_cc_c_o=no
4325 rm -f core conftest*
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4329 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4330 if test "$am_cv_prog_cc_c_o" != yes; then
4331 # Losing compiler, so override with the script.
4332 # FIXME: It is wrong to rewrite CC.
4333 # But if we don't then we get into trouble of one sort or another.
4334 # A longer-term fix would be to have automake use am__CC in this case,
4335 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4336 CC="$am_aux_dir/compile $CC"
4339 ac_cpp='$CPP $CPPFLAGS'
4340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4345 depcc="$CC" am_compiler_list=
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4348 $as_echo_n "checking dependency style of $depcc... " >&6; }
4349 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4350 $as_echo_n "(cached) " >&6
4352 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4353 # We make a subdir and do the tests there. Otherwise we can end up
4354 # making bogus files that we don't know about and never remove. For
4355 # instance it was reported that on HP-UX the gcc test will end up
4356 # making a dummy file named 'D' -- because '-MD' means "put the output
4360 # Copy depcomp to subdir because otherwise we won't find it if we're
4361 # using a relative directory.
4362 cp "$am_depcomp" conftest.dir
4364 # We will build objects and dependencies in a subdirectory because
4365 # it helps to detect inapplicable dependency modes. For instance
4366 # both Tru64's cc and ICC support -MD to output dependencies as a
4367 # side effect of compilation, but ICC will put the dependencies in
4368 # the current directory while Tru64 will put them in the object
4372 am_cv_CC_dependencies_compiler_type=none
4373 if test "$am_compiler_list" = ""; then
4374 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4377 case " $depcc " in #(
4378 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4381 for depmode in $am_compiler_list; do
4382 # Setup a source with many dependencies, because some compilers
4383 # like to wrap large dependency lists on column 80 (with \), and
4384 # we should not choose a depcomp mode which is confused by this.
4386 # We need to recreate these files for each test, as the compiler may
4387 # overwrite some of them when testing with obscure command lines.
4388 # This happens at least with the AIX C compiler.
4390 for i in 1 2 3 4 5 6; do
4391 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4392 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4393 # Solaris 10 /bin/sh.
4394 echo '/* dummy */' > sub/conftst$i.h
4396 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4398 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4399 # mode. It turns out that the SunPro C++ compiler does not properly
4400 # handle '-M -o', and we need to detect this. Also, some Intel
4401 # versions had trouble with output in subdirs.
4402 am__obj=sub/conftest.${OBJEXT-o}
4403 am__minus_obj="-o $am__obj"
4406 # This depmode causes a compiler race in universal mode.
4407 test "$am__universal" = false || continue
4410 # After this tag, mechanisms are not by side-effect, so they'll
4411 # only be used when explicitly requested.
4412 if test "x$enable_dependency_tracking" = xyes; then
4418 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4419 # This compiler won't grok '-c -o', but also, the minuso test has
4420 # not run yet. These depmodes are late enough in the game, and
4421 # so weak that their functioning should not be impacted.
4422 am__obj=conftest.${OBJEXT-o}
4427 if depmode=$depmode \
4428 source=sub/conftest.c object=$am__obj \
4429 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4430 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4431 >/dev/null 2>conftest.err &&
4432 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4433 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4434 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4435 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4436 # icc doesn't choke on unknown options, it will just issue warnings
4437 # or remarks (even with -Werror). So we grep stderr for any message
4438 # that says an option was ignored or not supported.
4439 # When given -MP, icc 7.0 and 7.1 complain thusly:
4440 # icc: Command line warning: ignoring option '-M'; no argument required
4441 # The diagnosis changed in icc 8.0:
4442 # icc: Command line remark: option '-MP' not supported
4443 if (grep 'ignoring option' conftest.err ||
4444 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4445 am_cv_CC_dependencies_compiler_type=$depmode
4454 am_cv_CC_dependencies_compiler_type=none
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4459 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4460 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4463 test "x$enable_dependency_tracking" != xno \
4464 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4466 am__fastdepCC_FALSE='#'
4468 am__fastdepCC_TRUE='#'
4469 am__fastdepCC_FALSE=
4475 if test -z "$ansi"; then
4476 msg="for C compiler warning flags"
4478 msg="for C compiler warning and ANSI conformance flags"
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $msg" >&5
4481 $as_echo_n "checking $msg... " >&6; }
4482 if ${vl_cv_prog_cc_warnings+:} false; then :
4483 $as_echo_n "(cached) " >&6
4486 if test -n "$CC"; then
4487 cat > conftest.c <<EOF
4488 int main(int argc, char **argv) { return 0; }
4491 if test "$GCC" = "yes"; then
4492 if test -z "$ansi"; then
4493 vl_cv_prog_cc_warnings="-Wall"
4495 vl_cv_prog_cc_warnings="-Wall -ansi -pedantic"
4499 elif $CC -V 2>&1 | grep -i "WorkShop" > /dev/null 2>&1 &&
4500 $CC -c -v -Xc conftest.c > /dev/null 2>&1 &&
4501 test -f conftest.o; then
4502 if test -z "$ansi"; then
4503 vl_cv_prog_cc_warnings="-v"
4505 vl_cv_prog_cc_warnings="-v -Xc"
4508 elif $CC -V 2>&1 | grep -i "Digital UNIX Compiler" > /dev/null 2>&1 &&
4509 $CC -c -verbose -w0 -warnprotos -std1 conftest.c > /dev/null 2>&1 &&
4510 test -f conftest.o; then
4511 if test -z "$ansi"; then
4512 vl_cv_prog_cc_warnings="-verbose -w0 -warnprotos"
4514 vl_cv_prog_cc_warnings="-verbose -w0 -warnprotos -std1"
4517 elif $CC 2>&1 | grep -i "C for AIX Compiler" > /dev/null 2>&1 &&
4518 $CC -c -qlanglvl=ansi -qinfo=all conftest.c > /dev/null 2>&1 &&
4519 test -f conftest.o; then
4520 if test -z "$ansi"; then
4521 vl_cv_prog_cc_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd"
4523 vl_cv_prog_cc_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd -qlanglvl=ansi"
4526 elif $CC -version 2>&1 | grep -i "MIPSpro Compilers" > /dev/null 2>&1 &&
4527 $CC -c -fullwarn -ansi -ansiE conftest.c > /dev/null 2>&1 &&
4528 test -f conftest.o; then
4529 if test -z "$ansi"; then
4530 vl_cv_prog_cc_warnings="-fullwarn"
4532 vl_cv_prog_cc_warnings="-fullwarn -ansi -ansiE"
4535 elif what $CC 2>&1 | grep -i "HP C Compiler" > /dev/null 2>&1 &&
4536 $CC -c -Aa +w1 conftest.c > /dev/null 2>&1 &&
4537 test -f conftest.o; then
4538 if test -z "$ansi"; then
4539 vl_cv_prog_cc_warnings="+w1"
4541 vl_cv_prog_cc_warnings="+w1 -Aa"
4544 elif $CC -V 2>&1 | grep "/SX" > /dev/null 2>&1 &&
4545 $CC -c -pvctl,fullmsg -Xc conftest.c > /dev/null 2>&1 &&
4546 test -f conftest.o; then
4547 if test -z "$ansi"; then
4548 vl_cv_prog_cc_warnings="-pvctl,fullmsg"
4550 vl_cv_prog_cc_warnings="-pvctl,fullmsg -Xc"
4553 elif $CC -V 2>&1 | grep -i "Cray" > /dev/null 2>&1 &&
4554 $CC -c -h msglevel 2 conftest.c > /dev/null 2>&1 &&
4555 test -f conftest.o; then
4556 if test -z "$ansi"; then
4557 vl_cv_prog_cc_warnings="-h msglevel 2"
4559 vl_cv_prog_cc_warnings="-h msglevel 2 -h conform"
4562 elif $CC -V 2>&1 | grep -i "Intel(R) C++ Compiler" > /dev/null 2>&1 &&
4563 $CC -c -Wall -wd981,1418,193 conftest.c > /dev/null 2>&1 &&
4564 test -f conftest.o; then
4565 if test -z "$ansi"; then
4566 vl_cv_prog_cc_warnings="-Wall -wd981,1418,193"
4568 vl_cv_prog_cc_warnings="-Wall -wd981,1418,193 -Xc"
4574 if test -n "$vl_cv_prog_cc_warnings"; then
4575 VL_WARN_CFLAGS="$vl_cv_prog_cc_warnings"
4577 vl_cv_prog_cc_warnings="unknown"
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_prog_cc_warnings" >&5
4582 $as_echo "$vl_cv_prog_cc_warnings" >&6; }
4584 CFLAGS="$CFLAGS $VL_WARN_CFLAGS"
4585 CXXFLAGS="$CXXFLAGS $VL_WARN_CFLAGS"
4587 ac_cpp='$CXXCPP $CPPFLAGS'
4588 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4589 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4590 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4593 # Enable useable exception handler if it exists.
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports exceptions" >&5
4596 $as_echo_n "checking whether the compiler supports exceptions... " >&6; }
4597 if ${ac_cv_cxx_exceptions+:} false; then :
4598 $as_echo_n "(cached) " >&6
4602 ac_cpp='$CXXCPP $CPPFLAGS'
4603 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4604 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4605 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4608 /* end confdefs.h. */
4613 try { throw 1; } catch (int i) { return i; }
4618 if ac_fn_cxx_try_compile "$LINENO"; then :
4619 ac_cv_cxx_exceptions=yes
4621 ac_cv_cxx_exceptions=no
4623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4625 ac_cpp='$CXXCPP $CPPFLAGS'
4626 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4627 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4628 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_exceptions" >&5
4633 $as_echo "$ac_cv_cxx_exceptions" >&6; }
4634 if test "$ac_cv_cxx_exceptions" = yes; then
4636 $as_echo "#define HAVE_EXCEPTIONS /**/" >>confdefs.h
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
4641 $as_echo_n "checking whether the compiler implements namespaces... " >&6; }
4642 if ${ac_cv_cxx_namespaces+:} false; then :
4643 $as_echo_n "(cached) " >&6
4647 ac_cpp='$CXXCPP $CPPFLAGS'
4648 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4649 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4650 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4653 /* end confdefs.h. */
4654 namespace Outer { namespace Inner { int i = 0; }}
4658 using namespace Outer::Inner; return i;
4663 if ac_fn_cxx_try_compile "$LINENO"; then :
4664 ac_cv_cxx_namespaces=yes
4666 ac_cv_cxx_namespaces=no
4668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4670 ac_cpp='$CXXCPP $CPPFLAGS'
4671 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4672 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4673 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_namespaces" >&5
4678 $as_echo "$ac_cv_cxx_namespaces" >&6; }
4679 if test "$ac_cv_cxx_namespaces" = yes; then
4681 $as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler has __gnu_cxx::__verbose_terminate_handler" >&5
4686 $as_echo_n "checking whether the compiler has __gnu_cxx::__verbose_terminate_handler... " >&6; }
4687 if ${ac_cv_verbose_terminate_handler+:} false; then :
4688 $as_echo_n "(cached) " >&6
4695 ac_cpp='$CXXCPP $CPPFLAGS'
4696 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4697 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4698 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4701 /* end confdefs.h. */
4702 #include <exception>
4706 std::set_terminate(__gnu_cxx::__verbose_terminate_handler);
4711 if ac_fn_cxx_try_compile "$LINENO"; then :
4712 ac_cv_verbose_terminate_handler=yes
4714 ac_cv_verbose_terminate_handler=no
4717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4719 ac_cpp='$CXXCPP $CPPFLAGS'
4720 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4721 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4722 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_verbose_terminate_handler" >&5
4727 $as_echo "$ac_cv_verbose_terminate_handler" >&6; }
4728 if test "$ac_cv_verbose_terminate_handler" = yes; then
4730 $as_echo "#define HAVE_VERBOSE_TERMINATE_HANDLER /**/" >>confdefs.h
4735 # Try and disable all inlining; gdb shows the inlined function in a
4736 # stack trace and you lose the caller's frame. Bad for debugging.
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-default-inline" >&5
4739 $as_echo_n "checking for -fno-default-inline... " >&6; }
4740 if ${pike_cv_option_fno_default_inline+:} false; then :
4741 $as_echo_n "(cached) " >&6
4744 OLD_CPPFLAGS="$CPPFLAGS"
4745 CPPFLAGS="$OLD_CPPFLAGS -fno-default-inline"
4746 old_ac_link="$ac_link"
4747 ac_link="$old_ac_link 2>conftezt.out.2"
4748 if test "$cross_compiling" = yes; then :
4750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4751 /* end confdefs.h. */
4761 if ac_fn_cxx_try_link "$LINENO"; then :
4762 pike_cv_option_fno_default_inline=yes
4764 pike_cv_option_fno_default_inline=no
4766 rm -f core conftest.err conftest.$ac_objext \
4767 conftest$ac_exeext conftest.$ac_ext
4770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4771 /* end confdefs.h. */
4774 int main(int argc, char **argv)
4776 /* The following code triggs gcc:s generation of aline opcodes,
4777 * which some versions of as does not support.
4779 if (argc > 0) argc = 0;
4784 if ac_fn_cxx_try_run "$LINENO"; then :
4785 pike_cv_option_fno_default_inline=yes
4787 pike_cv_option_fno_default_inline=no
4789 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4790 conftest.$ac_objext conftest.beam conftest.$ac_ext
4793 if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
4794 pike_cv_option_fno_default_inline=no
4795 elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
4796 # cc/HPUX says the following regarding -q64:
4798 # cc: warning 422: Unknown option "6" ignored.
4799 # cc: warning 422: Unknown option "4" ignored.
4800 pike_cv_option_fno_default_inline=no
4801 elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
4802 # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
4806 # *** The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
4808 pike_cv_option_fno_default_inline=no
4809 elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
4810 # cc/AIX says the following regarding +O3:
4812 # cc: 1501-228 input file +O3 not found
4813 pike_cv_option_fno_default_inline=no
4814 elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
4815 # gcc/AIX says the following regarding -fpic:
4817 # cc1: warning: -fpic ignored (all code is position independent)
4818 pike_cv_option_fno_default_inline=no
4821 CPPFLAGS="$OLD_CPPFLAGS"
4822 ac_link="$old_ac_link"
4827 if test x"$pike_cv_option_fno_default_inline" = "xyes" ; then
4828 CXXFLAGS="$CXXFLAGS -fno-default-inline"
4831 CFLAGS="$CFLAGS -fno-default-inline"
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4835 $as_echo "yes" >&6; }
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4839 $as_echo "no" >&6; }
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-inline" >&5
4845 $as_echo_n "checking for -fno-inline... " >&6; }
4846 if ${pike_cv_option_fno_inline+:} false; then :
4847 $as_echo_n "(cached) " >&6
4850 OLD_CPPFLAGS="$CPPFLAGS"
4851 CPPFLAGS="$OLD_CPPFLAGS -fno-inline"
4852 old_ac_link="$ac_link"
4853 ac_link="$old_ac_link 2>conftezt.out.2"
4854 if test "$cross_compiling" = yes; then :
4856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4857 /* end confdefs.h. */
4867 if ac_fn_cxx_try_link "$LINENO"; then :
4868 pike_cv_option_fno_inline=yes
4870 pike_cv_option_fno_inline=no
4872 rm -f core conftest.err conftest.$ac_objext \
4873 conftest$ac_exeext conftest.$ac_ext
4876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4877 /* end confdefs.h. */
4880 int main(int argc, char **argv)
4882 /* The following code triggs gcc:s generation of aline opcodes,
4883 * which some versions of as does not support.
4885 if (argc > 0) argc = 0;
4890 if ac_fn_cxx_try_run "$LINENO"; then :
4891 pike_cv_option_fno_inline=yes
4893 pike_cv_option_fno_inline=no
4895 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4896 conftest.$ac_objext conftest.beam conftest.$ac_ext
4899 if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
4900 pike_cv_option_fno_inline=no
4901 elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
4902 # cc/HPUX says the following regarding -q64:
4904 # cc: warning 422: Unknown option "6" ignored.
4905 # cc: warning 422: Unknown option "4" ignored.
4906 pike_cv_option_fno_inline=no
4907 elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
4908 # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
4912 # *** The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
4914 pike_cv_option_fno_inline=no
4915 elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
4916 # cc/AIX says the following regarding +O3:
4918 # cc: 1501-228 input file +O3 not found
4919 pike_cv_option_fno_inline=no
4920 elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
4921 # gcc/AIX says the following regarding -fpic:
4923 # cc1: warning: -fpic ignored (all code is position independent)
4924 pike_cv_option_fno_inline=no
4927 CPPFLAGS="$OLD_CPPFLAGS"
4928 ac_link="$old_ac_link"
4933 if test x"$pike_cv_option_fno_inline" = "xyes" ; then
4934 CXXFLAGS="$CXXFLAGS -fno-inline"
4937 CFLAGS="$CFLAGS -fno-inline"
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4941 $as_echo "yes" >&6; }
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4945 $as_echo "no" >&6; }
4954 # Extract the first word of "spamc", so it can be a program name with args.
4955 set dummy spamc; ac_word=$2
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4957 $as_echo_n "checking for $ac_word... " >&6; }
4958 if ${ac_cv_path_SPAMC+:} false; then :
4959 $as_echo_n "(cached) " >&6
4963 ac_cv_path_SPAMC="$SPAMC" # Let the user override the test with a path.
4966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4970 test -z "$as_dir" && as_dir=.
4971 for ac_exec_ext in '' $ac_executable_extensions; do
4972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4973 ac_cv_path_SPAMC="$as_dir/$ac_word$ac_exec_ext"
4974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4984 SPAMC=$ac_cv_path_SPAMC
4985 if test -n "$SPAMC"; then
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPAMC" >&5
4987 $as_echo "$SPAMC" >&6; }
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4990 $as_echo "no" >&6; }
4994 if test "x$SPAMC" = x ; then
4995 as_fn_error $? "Spamc not found. Is SpamAssassin installed?" "$LINENO" 5
4999 cat >>confdefs.h <<_ACEOF
5000 #define SPAMC "$SPAMC"
5004 # Search for sendmail
5005 # Extract the first word of "sendmail", so it can be a program name with args.
5006 set dummy sendmail; ac_word=$2
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5008 $as_echo_n "checking for $ac_word... " >&6; }
5009 if ${ac_cv_path_SENDMAIL+:} false; then :
5010 $as_echo_n "(cached) " >&6
5014 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
5017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5018 as_dummy="$PATH:/usr/sbin:/usr/lib"
5019 for as_dir in $as_dummy
5022 test -z "$as_dir" && as_dir=.
5023 for ac_exec_ext in '' $ac_executable_extensions; do
5024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5025 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
5026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5036 SENDMAIL=$ac_cv_path_SENDMAIL
5037 if test -n "$SENDMAIL"; then
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5
5039 $as_echo "$SENDMAIL" >&6; }
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5042 $as_echo "no" >&6; }
5046 if test "x$SENDMAIL" = x ; then
5047 as_fn_error $? "Sendmail not found. Check your PATH variable" "$LINENO" 5
5051 cat >>confdefs.h <<_ACEOF
5052 #define SENDMAIL "$SENDMAIL"
5056 # Check nroff and the options it supports
5057 for ac_prog in nroff
5059 # Extract the first word of "$ac_prog", so it can be a program name with args.
5060 set dummy $ac_prog; ac_word=$2
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5062 $as_echo_n "checking for $ac_word... " >&6; }
5063 if ${ac_cv_prog_NROFF+:} false; then :
5064 $as_echo_n "(cached) " >&6
5066 if test -n "$NROFF"; then
5067 ac_cv_prog_NROFF="$NROFF" # Let the user override the test.
5069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073 test -z "$as_dir" && as_dir=.
5074 for ac_exec_ext in '' $ac_executable_extensions; do
5075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5076 ac_cv_prog_NROFF="$ac_prog"
5077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5086 NROFF=$ac_cv_prog_NROFF
5087 if test -n "$NROFF"; then
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
5089 $as_echo "$NROFF" >&6; }
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5092 $as_echo "no" >&6; }
5096 test -n "$NROFF" && break
5101 if test "x$NROFF" != x; then
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mdoc nroff macros" >&5
5103 $as_echo_n "checking for mdoc nroff macros... " >&6; }
5104 if ${ac_cv_mdoc+:} false; then :
5105 $as_echo_n "(cached) " >&6
5108 nroff -mdoc < /dev/null > /dev/null 2>&1
5109 if test $? = 0; then
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MDOC" >&5
5119 $as_echo "$MDOC" >&6; }
5122 if test $MDOC = yes; then
5131 # Search for pthreads, and make them the default (have to do it here else
5132 # the -lmilter check will fail to link)
5133 # Make sure we can run config.sub.
5134 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5135 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5138 $as_echo_n "checking build system type... " >&6; }
5139 if ${ac_cv_build+:} false; then :
5140 $as_echo_n "(cached) " >&6
5142 ac_build_alias=$build_alias
5143 test "x$ac_build_alias" = x &&
5144 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5145 test "x$ac_build_alias" = x &&
5146 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5147 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5148 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5152 $as_echo "$ac_cv_build" >&6; }
5153 case $ac_cv_build in
5155 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5158 ac_save_IFS=$IFS; IFS='-'
5164 # Remember, the first character of IFS is used to create $*,
5165 # except with old shells:
5168 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5172 $as_echo_n "checking host system type... " >&6; }
5173 if ${ac_cv_host+:} false; then :
5174 $as_echo_n "(cached) " >&6
5176 if test "x$host_alias" = x; then
5177 ac_cv_host=$ac_cv_build
5179 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5180 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5185 $as_echo "$ac_cv_host" >&6; }
5188 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5191 ac_save_IFS=$IFS; IFS='-'
5197 # Remember, the first character of IFS is used to create $*,
5198 # except with old shells:
5201 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5209 ac_cpp='$CPP $CPPFLAGS'
5210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5216 # We used to check for pthread.h first, but this fails if pthread.h
5217 # requires special compiler flags (e.g. on True64 or Sequent).
5218 # It gets checked for in the link test anyway.
5220 # First of all, check if the user has set any of the PTHREAD_LIBS,
5221 # etcetera environment variables, and if threads linking works using
5223 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
5224 save_CFLAGS="$CFLAGS"
5225 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5227 LIBS="$PTHREAD_LIBS $LIBS"
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
5229 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
5230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5231 /* end confdefs.h. */
5233 /* Override any GCC internal prototype to avoid an error.
5234 Use char because int might match the return type of a GCC
5235 builtin and then its argument prototype would still apply. */
5239 char pthread_join ();
5243 return pthread_join ();
5248 if ac_fn_c_try_link "$LINENO"; then :
5251 rm -f core conftest.err conftest.$ac_objext \
5252 conftest$ac_exeext conftest.$ac_ext
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
5254 $as_echo "$acx_pthread_ok" >&6; }
5255 if test x"$acx_pthread_ok" = xno; then
5260 CFLAGS="$save_CFLAGS"
5263 # We must check for the threads library under a number of different
5264 # names; the ordering is very important because some systems
5265 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
5266 # libraries is broken (non-POSIX).
5268 # Create a list of thread flags to try. Items starting with a "-" are
5269 # C compiler flags, and other items are library names, except for "none"
5270 # which indicates that we try without any flags at all, and "pthread-config"
5271 # which is a program returning the flags for the Pth emulation library.
5273 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
5275 # The ordering *is* (sometimes) important. Some notes on the
5276 # individual items follow:
5278 # pthreads: AIX (must check this before -lpthread)
5279 # none: in case threads are in libc; should be tried before -Kthread and
5280 # other compiler flags to prevent continual compiler warnings
5281 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
5282 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
5283 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
5284 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
5285 # -pthreads: Solaris/gcc
5286 # -mthreads: Mingw32/gcc, Lynx/gcc
5287 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
5288 # doesn't hurt to check since this sometimes defines pthreads too;
5289 # also defines -D_REENTRANT)
5290 # pthread: Linux, etcetera
5291 # --thread-safe: KAI C++
5292 # pthread-config: use pthread-config program (for GNU Pth library)
5294 case "${host_cpu}-${host_os}" in
5297 # On Solaris (at least, for some versions), libc contains stubbed
5298 # (non-functional) versions of the pthreads routines, so link-based
5299 # tests will erroneously succeed. (We need to link with -pthread or
5300 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
5301 # a function called by this macro, so we could check for that, but
5302 # who knows whether they'll stub that too in a future libc.) So,
5303 # we'll just look for -pthreads and -lpthread first:
5305 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
5309 if test x"$acx_pthread_ok" = xno; then
5310 for flag in $acx_pthread_flags; do
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
5315 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
5320 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
5321 PTHREAD_CFLAGS="$flag"
5325 # Extract the first word of "pthread-config", so it can be a program name with args.
5326 set dummy pthread-config; ac_word=$2
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5328 $as_echo_n "checking for $ac_word... " >&6; }
5329 if ${ac_cv_prog_acx_pthread_config+:} false; then :
5330 $as_echo_n "(cached) " >&6
5332 if test -n "$acx_pthread_config"; then
5333 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
5335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5339 test -z "$as_dir" && as_dir=.
5340 for ac_exec_ext in '' $ac_executable_extensions; do
5341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5342 ac_cv_prog_acx_pthread_config="yes"
5343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5350 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
5353 acx_pthread_config=$ac_cv_prog_acx_pthread_config
5354 if test -n "$acx_pthread_config"; then
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
5356 $as_echo "$acx_pthread_config" >&6; }
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5359 $as_echo "no" >&6; }
5363 if test x"$acx_pthread_config" = xno; then continue; fi
5364 PTHREAD_CFLAGS="`pthread-config --cflags`"
5365 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
5370 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
5371 PTHREAD_LIBS="-l$flag"
5376 save_CFLAGS="$CFLAGS"
5377 LIBS="$PTHREAD_LIBS $LIBS"
5378 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5380 # Check for various functions. We must include pthread.h,
5381 # since some functions may be macros. (On the Sequent, we
5382 # need a special flag -Kthread to make this header compile.)
5383 # We check for pthread_join because it is in -lpthread on IRIX
5384 # while pthread_create is in libc. We check for pthread_attr_init
5385 # due to DEC craziness with -lpthreads. We check for
5386 # pthread_cleanup_push because it is one of the few pthread
5387 # functions on Solaris that doesn't have a non-functional libc stub.
5388 # We try pthread_create on general principles.
5389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5390 /* end confdefs.h. */
5391 #include <pthread.h>
5395 pthread_t th; pthread_join(th, 0);
5396 pthread_attr_init(0); pthread_cleanup_push(0, 0);
5397 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
5402 if ac_fn_c_try_link "$LINENO"; then :
5405 rm -f core conftest.err conftest.$ac_objext \
5406 conftest$ac_exeext conftest.$ac_ext
5409 CFLAGS="$save_CFLAGS"
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
5412 $as_echo "$acx_pthread_ok" >&6; }
5413 if test "x$acx_pthread_ok" = xyes; then
5422 # Various other checks:
5423 if test "x$acx_pthread_ok" = xyes; then
5425 LIBS="$PTHREAD_LIBS $LIBS"
5426 save_CFLAGS="$CFLAGS"
5427 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5429 # Detect AIX lossage: threads are created detached by default
5430 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
5432 $as_echo_n "checking for joinable pthread attribute... " >&6; }
5433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5434 /* end confdefs.h. */
5435 #include <pthread.h>
5439 int attr=PTHREAD_CREATE_JOINABLE;
5444 if ac_fn_c_try_link "$LINENO"; then :
5445 ok=PTHREAD_CREATE_JOINABLE
5449 rm -f core conftest.err conftest.$ac_objext \
5450 conftest$ac_exeext conftest.$ac_ext
5451 if test x"$ok" = xunknown; then
5452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5453 /* end confdefs.h. */
5454 #include <pthread.h>
5458 int attr=PTHREAD_CREATE_UNDETACHED;
5463 if ac_fn_c_try_link "$LINENO"; then :
5464 ok=PTHREAD_CREATE_UNDETACHED
5468 rm -f core conftest.err conftest.$ac_objext \
5469 conftest$ac_exeext conftest.$ac_ext
5471 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
5473 $as_echo "#define PTHREAD_CREATE_JOINABLE \$ok" >>confdefs.h
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ok}" >&5
5477 $as_echo "${ok}" >&6; }
5478 if test x"$ok" = xunknown; then
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: we do not know how to create joinable pthreads" >&5
5480 $as_echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
5484 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
5486 case "${host_cpu}-${host_os}" in
5487 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
5488 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
5491 $as_echo "${flag}" >&6; }
5492 if test "x$flag" != xno; then
5493 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
5497 CFLAGS="$save_CFLAGS"
5499 # More AIX lossage: must compile with cc_r
5500 # Extract the first word of "cc_r", so it can be a program name with args.
5501 set dummy cc_r; ac_word=$2
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5503 $as_echo_n "checking for $ac_word... " >&6; }
5504 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
5505 $as_echo_n "(cached) " >&6
5507 if test -n "$PTHREAD_CC"; then
5508 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
5510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514 test -z "$as_dir" && as_dir=.
5515 for ac_exec_ext in '' $ac_executable_extensions; do
5516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5517 ac_cv_prog_PTHREAD_CC="cc_r"
5518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5525 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
5528 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
5529 if test -n "$PTHREAD_CC"; then
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
5531 $as_echo "$PTHREAD_CC" >&6; }
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5534 $as_echo "no" >&6; }
5546 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
5547 if test x"$acx_pthread_ok" = xyes; then
5549 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
5554 as_fn_error $? "Cannot determine how to use pthreads" "$LINENO" 5
5557 ac_cpp='$CXXCPP $CPPFLAGS'
5558 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5559 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5560 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5563 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5564 CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
5565 LIBS="$LIBS $PTHREAD_LIBS"
5567 # Checks for header files.
5569 ac_cpp='$CXXCPP $CPPFLAGS'
5570 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5571 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5572 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5574 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5575 if test -z "$CXXCPP"; then
5576 if ${ac_cv_prog_CXXCPP+:} false; then :
5577 $as_echo_n "(cached) " >&6
5579 # Double quotes because CXXCPP needs to be expanded
5580 for CXXCPP in "$CXX -E" "/lib/cpp"
5583 for ac_cxx_preproc_warn_flag in '' yes
5585 # Use a header file that comes with gcc, so configuring glibc
5586 # with a fresh cross-compiler works.
5587 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5588 # <limits.h> exists even on freestanding compilers.
5589 # On the NeXT, cc -E runs the code through the compiler's parser,
5590 # not just through cpp. "Syntax error" is here to catch this case.
5591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5592 /* end confdefs.h. */
5594 # include <limits.h>
5596 # include <assert.h>
5600 if ac_fn_cxx_try_cpp "$LINENO"; then :
5603 # Broken: fails on valid input.
5606 rm -f conftest.err conftest.i conftest.$ac_ext
5608 # OK, works on sane cases. Now check whether nonexistent headers
5609 # can be detected and how.
5610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5611 /* end confdefs.h. */
5612 #include <ac_nonexistent.h>
5614 if ac_fn_cxx_try_cpp "$LINENO"; then :
5615 # Broken: success on invalid input.
5618 # Passes both tests.
5622 rm -f conftest.err conftest.i conftest.$ac_ext
5625 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5626 rm -f conftest.i conftest.err conftest.$ac_ext
5627 if $ac_preproc_ok; then :
5632 ac_cv_prog_CXXCPP=$CXXCPP
5635 CXXCPP=$ac_cv_prog_CXXCPP
5637 ac_cv_prog_CXXCPP=$CXXCPP
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5640 $as_echo "$CXXCPP" >&6; }
5642 for ac_cxx_preproc_warn_flag in '' yes
5644 # Use a header file that comes with gcc, so configuring glibc
5645 # with a fresh cross-compiler works.
5646 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5647 # <limits.h> exists even on freestanding compilers.
5648 # On the NeXT, cc -E runs the code through the compiler's parser,
5649 # not just through cpp. "Syntax error" is here to catch this case.
5650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5651 /* end confdefs.h. */
5653 # include <limits.h>
5655 # include <assert.h>
5659 if ac_fn_cxx_try_cpp "$LINENO"; then :
5662 # Broken: fails on valid input.
5665 rm -f conftest.err conftest.i conftest.$ac_ext
5667 # OK, works on sane cases. Now check whether nonexistent headers
5668 # can be detected and how.
5669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5670 /* end confdefs.h. */
5671 #include <ac_nonexistent.h>
5673 if ac_fn_cxx_try_cpp "$LINENO"; then :
5674 # Broken: success on invalid input.
5677 # Passes both tests.
5681 rm -f conftest.err conftest.i conftest.$ac_ext
5684 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5685 rm -f conftest.i conftest.err conftest.$ac_ext
5686 if $ac_preproc_ok; then :
5689 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5690 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5691 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5692 See \`config.log' for more details" "$LINENO" 5; }
5696 ac_cpp='$CXXCPP $CPPFLAGS'
5697 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5698 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5699 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5703 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5704 if ${ac_cv_path_GREP+:} false; then :
5705 $as_echo_n "(cached) " >&6
5707 if test -z "$GREP"; then
5708 ac_path_GREP_found=false
5709 # Loop through the user's path and test for each of PROGNAME-LIST
5710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5711 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5714 test -z "$as_dir" && as_dir=.
5715 for ac_prog in grep ggrep; do
5716 for ac_exec_ext in '' $ac_executable_extensions; do
5717 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5718 as_fn_executable_p "$ac_path_GREP" || continue
5719 # Check for GNU ac_path_GREP and select it if it is found.
5720 # Check for GNU $ac_path_GREP
5721 case `"$ac_path_GREP" --version 2>&1` in
5723 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5726 $as_echo_n 0123456789 >"conftest.in"
5729 cat "conftest.in" "conftest.in" >"conftest.tmp"
5730 mv "conftest.tmp" "conftest.in"
5731 cp "conftest.in" "conftest.nl"
5732 $as_echo 'GREP' >> "conftest.nl"
5733 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5734 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5735 as_fn_arith $ac_count + 1 && ac_count=$as_val
5736 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5737 # Best one so far, save it but keep looking for a better one
5738 ac_cv_path_GREP="$ac_path_GREP"
5739 ac_path_GREP_max=$ac_count
5741 # 10*(2^10) chars as input seems more than enough
5742 test $ac_count -gt 10 && break
5744 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5747 $ac_path_GREP_found && break 3
5752 if test -z "$ac_cv_path_GREP"; then
5753 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5756 ac_cv_path_GREP=$GREP
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5761 $as_echo "$ac_cv_path_GREP" >&6; }
5762 GREP="$ac_cv_path_GREP"
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5766 $as_echo_n "checking for egrep... " >&6; }
5767 if ${ac_cv_path_EGREP+:} false; then :
5768 $as_echo_n "(cached) " >&6
5770 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5771 then ac_cv_path_EGREP="$GREP -E"
5773 if test -z "$EGREP"; then
5774 ac_path_EGREP_found=false
5775 # Loop through the user's path and test for each of PROGNAME-LIST
5776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5777 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5780 test -z "$as_dir" && as_dir=.
5781 for ac_prog in egrep; do
5782 for ac_exec_ext in '' $ac_executable_extensions; do
5783 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5784 as_fn_executable_p "$ac_path_EGREP" || continue
5785 # Check for GNU ac_path_EGREP and select it if it is found.
5786 # Check for GNU $ac_path_EGREP
5787 case `"$ac_path_EGREP" --version 2>&1` in
5789 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5792 $as_echo_n 0123456789 >"conftest.in"
5795 cat "conftest.in" "conftest.in" >"conftest.tmp"
5796 mv "conftest.tmp" "conftest.in"
5797 cp "conftest.in" "conftest.nl"
5798 $as_echo 'EGREP' >> "conftest.nl"
5799 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5800 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5801 as_fn_arith $ac_count + 1 && ac_count=$as_val
5802 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5803 # Best one so far, save it but keep looking for a better one
5804 ac_cv_path_EGREP="$ac_path_EGREP"
5805 ac_path_EGREP_max=$ac_count
5807 # 10*(2^10) chars as input seems more than enough
5808 test $ac_count -gt 10 && break
5810 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5813 $ac_path_EGREP_found && break 3
5818 if test -z "$ac_cv_path_EGREP"; then
5819 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5822 ac_cv_path_EGREP=$EGREP
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5828 $as_echo "$ac_cv_path_EGREP" >&6; }
5829 EGREP="$ac_cv_path_EGREP"
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5833 $as_echo_n "checking for ANSI C header files... " >&6; }
5834 if ${ac_cv_header_stdc+:} false; then :
5835 $as_echo_n "(cached) " >&6
5837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5838 /* end confdefs.h. */
5852 if ac_fn_cxx_try_compile "$LINENO"; then :
5853 ac_cv_header_stdc=yes
5855 ac_cv_header_stdc=no
5857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5859 if test $ac_cv_header_stdc = yes; then
5860 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5862 /* end confdefs.h. */
5866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5867 $EGREP "memchr" >/dev/null 2>&1; then :
5870 ac_cv_header_stdc=no
5876 if test $ac_cv_header_stdc = yes; then
5877 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5879 /* end confdefs.h. */
5883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5884 $EGREP "free" >/dev/null 2>&1; then :
5887 ac_cv_header_stdc=no
5893 if test $ac_cv_header_stdc = yes; then
5894 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5895 if test "$cross_compiling" = yes; then :
5898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5899 /* end confdefs.h. */
5902 #if ((' ' & 0x0FF) == 0x020)
5903 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5904 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5906 # define ISLOWER(c) \
5907 (('a' <= (c) && (c) <= 'i') \
5908 || ('j' <= (c) && (c) <= 'r') \
5909 || ('s' <= (c) && (c) <= 'z'))
5910 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5913 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5918 for (i = 0; i < 256; i++)
5919 if (XOR (islower (i), ISLOWER (i))
5920 || toupper (i) != TOUPPER (i))
5925 if ac_fn_cxx_try_run "$LINENO"; then :
5928 ac_cv_header_stdc=no
5930 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5931 conftest.$ac_objext conftest.beam conftest.$ac_ext
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5937 $as_echo "$ac_cv_header_stdc" >&6; }
5938 if test $ac_cv_header_stdc = yes; then
5940 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
5945 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
5946 if ${ac_cv_header_sys_wait_h+:} false; then :
5947 $as_echo_n "(cached) " >&6
5949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5950 /* end confdefs.h. */
5951 #include <sys/types.h>
5952 #include <sys/wait.h>
5954 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
5957 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5965 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5970 if ac_fn_cxx_try_compile "$LINENO"; then :
5971 ac_cv_header_sys_wait_h=yes
5973 ac_cv_header_sys_wait_h=no
5975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
5978 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
5979 if test $ac_cv_header_sys_wait_h = yes; then
5981 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
5985 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5986 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5987 inttypes.h stdint.h unistd.h
5989 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5990 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5992 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5993 cat >>confdefs.h <<_ACEOF
5994 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6002 for ac_header in fcntl.h syslog.h sys/cdefs.h sys/select.h
6004 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6005 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6006 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6007 cat >>confdefs.h <<_ACEOF
6008 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6016 # Checks for typedefs, structures, and compiler characteristics.
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6018 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6019 if ${ac_cv_c_const+:} false; then :
6020 $as_echo_n "(cached) " >&6
6022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6023 /* end confdefs.h. */
6030 /* Ultrix mips cc rejects this sort of thing. */
6031 typedef int charset[2];
6032 const charset cs = { 0, 0 };
6033 /* SunOS 4.1.1 cc rejects this. */
6034 char const *const *pcpcc;
6036 /* NEC SVR4.0.2 mips cc rejects this. */
6037 struct point {int x, y;};
6038 static struct point const zero = {0,0};
6039 /* AIX XL C 1.02.0.0 rejects this.
6040 It does not let you subtract one const X* pointer from another in
6041 an arm of an if-expression whose if-part is not a constant
6043 const char *g = "string";
6044 pcpcc = &g + (g ? g-g : 0);
6045 /* HPUX 7.0 cc rejects these. */
6047 ppc = (char**) pcpcc;
6048 pcpcc = (char const *const *) ppc;
6049 { /* SCO 3.2v4 cc rejects this sort of thing. */
6052 char const *s = 0 ? (char *) 0 : (char const *) 0;
6057 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6059 const int *foo = &x[0];
6062 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6063 typedef const int *iptr;
6067 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
6068 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6069 struct s { int j; const int *ap[3]; } bx;
6070 struct s *b = &bx; b->j = 5;
6072 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6076 return !cs[0] && !zero.x;
6083 if ac_fn_cxx_try_compile "$LINENO"; then :
6088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6091 $as_echo "$ac_cv_c_const" >&6; }
6092 if test $ac_cv_c_const = no; then
6094 $as_echo "#define const /**/" >>confdefs.h
6098 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6099 if test "x$ac_cv_type_pid_t" = xyes; then :
6103 cat >>confdefs.h <<_ACEOF
6109 ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6110 if test "x$ac_cv_type_size_t" = xyes; then :
6114 cat >>confdefs.h <<_ACEOF
6115 #define size_t unsigned int
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we must define _GNU_SOURCE" >&5
6123 $as_echo_n "checking if we must define _GNU_SOURCE... " >&6; }
6124 if ${cf_cv_gnu_source+:} false; then :
6125 $as_echo_n "(cached) " >&6
6128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6129 /* end confdefs.h. */
6130 #include <sys/types.h>
6135 #ifndef _XOPEN_SOURCE
6142 if ac_fn_cxx_try_compile "$LINENO"; then :
6146 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
6147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6148 /* end confdefs.h. */
6149 #include <sys/types.h>
6154 #ifdef _XOPEN_SOURCE
6161 if ac_fn_cxx_try_compile "$LINENO"; then :
6164 cf_cv_gnu_source=yes
6166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_cv_gnu_source" >&5
6174 $as_echo "$cf_cv_gnu_source" >&6; }
6175 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
6178 # Check whether --enable-emulate-poll was given.
6179 if test "${enable_emulate_poll+set}" = set; then :
6180 enableval=$enable_emulate_poll;
6184 # If the system doesn't have poll.h, or if the user forced it, provide
6185 # our own poll function
6186 if test x$enable_emulate_poll != xyes ; then
6187 for ac_header in poll.h
6189 ac_fn_cxx_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
6190 if test "x$ac_cv_header_poll_h" = xyes; then :
6191 cat >>confdefs.h <<_ACEOF
6192 #define HAVE_POLL_H 1
6201 if test x$enable_emulate_poll = xyes -o x$ac_cv_header_poll_h = xno ; then
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: Emulating poll with select" >&5
6203 $as_echo "$as_me: Emulating poll with select" >&6;}
6204 case " $LIBOBJS " in
6205 *" poll.$ac_objext "* ) ;;
6206 *) LIBOBJS="$LIBOBJS poll.$ac_objext"
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
6213 $as_echo_n "checking if malloc debugging is wanted... " >&6; }
6215 # Check whether --with-dmalloc was given.
6216 if test "${with_dmalloc+set}" = set; then :
6217 withval=$with_dmalloc; if test "$withval" = yes; then
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6219 $as_echo "yes" >&6; }
6221 $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
6223 for ac_header in dmalloc.h
6225 ac_fn_cxx_check_header_mongrel "$LINENO" "dmalloc.h" "ac_cv_header_dmalloc_h" "$ac_includes_default"
6226 if test "x$ac_cv_header_dmalloc_h" = xyes; then :
6227 cat >>confdefs.h <<_ACEOF
6228 #define HAVE_DMALLOC_H 1
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dmalloc_malloc in -ldmallocthcxx" >&5
6236 $as_echo_n "checking for dmalloc_malloc in -ldmallocthcxx... " >&6; }
6237 if ${ac_cv_lib_dmallocthcxx_dmalloc_malloc+:} false; then :
6238 $as_echo_n "(cached) " >&6
6240 ac_check_lib_save_LIBS=$LIBS
6241 LIBS="-ldmallocthcxx $LIBS"
6242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6243 /* end confdefs.h. */
6245 /* Override any GCC internal prototype to avoid an error.
6246 Use char because int might match the return type of a GCC
6247 builtin and then its argument prototype would still apply. */
6251 char dmalloc_malloc ();
6255 return dmalloc_malloc ();
6260 if ac_fn_cxx_try_link "$LINENO"; then :
6261 ac_cv_lib_dmallocthcxx_dmalloc_malloc=yes
6263 ac_cv_lib_dmallocthcxx_dmalloc_malloc=no
6265 rm -f core conftest.err conftest.$ac_objext \
6266 conftest$ac_exeext conftest.$ac_ext
6267 LIBS=$ac_check_lib_save_LIBS
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dmallocthcxx_dmalloc_malloc" >&5
6270 $as_echo "$ac_cv_lib_dmallocthcxx_dmalloc_malloc" >&6; }
6271 if test "x$ac_cv_lib_dmallocthcxx_dmalloc_malloc" = xyes; then :
6272 cat >>confdefs.h <<_ACEOF
6273 #define HAVE_LIBDMALLOCTHCXX 1
6276 LIBS="-ldmallocthcxx $LIBS"
6279 as_fn_error $? "Threaded C++ dmalloc library not found" "$LINENO" 5
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6284 $as_echo "no" >&6; }
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6288 $as_echo "no" >&6; }
6293 # Checks for library functions.
6294 for ac_func in vsyslog vasprintf vsnprintf
6296 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6297 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
6298 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6299 cat >>confdefs.h <<_ACEOF
6300 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6306 for ac_func in asprintf snprintf
6308 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6309 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
6310 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6311 cat >>confdefs.h <<_ACEOF
6312 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
6319 $as_echo_n "checking for library containing gethostbyname... " >&6; }
6320 if ${ac_cv_search_gethostbyname+:} false; then :
6321 $as_echo_n "(cached) " >&6
6323 ac_func_search_save_LIBS=$LIBS
6324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6325 /* end confdefs.h. */
6327 /* Override any GCC internal prototype to avoid an error.
6328 Use char because int might match the return type of a GCC
6329 builtin and then its argument prototype would still apply. */
6333 char gethostbyname ();
6337 return gethostbyname ();
6342 for ac_lib in '' nsl; do
6343 if test -z "$ac_lib"; then
6344 ac_res="none required"
6347 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6349 if ac_fn_cxx_try_link "$LINENO"; then :
6350 ac_cv_search_gethostbyname=$ac_res
6352 rm -f core conftest.err conftest.$ac_objext \
6354 if ${ac_cv_search_gethostbyname+:} false; then :
6358 if ${ac_cv_search_gethostbyname+:} false; then :
6361 ac_cv_search_gethostbyname=no
6364 LIBS=$ac_func_search_save_LIBS
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
6367 $as_echo "$ac_cv_search_gethostbyname" >&6; }
6368 ac_res=$ac_cv_search_gethostbyname
6369 if test "$ac_res" != no; then :
6370 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
6375 $as_echo_n "checking for library containing connect... " >&6; }
6376 if ${ac_cv_search_connect+:} false; then :
6377 $as_echo_n "(cached) " >&6
6379 ac_func_search_save_LIBS=$LIBS
6380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6381 /* end confdefs.h. */
6383 /* Override any GCC internal prototype to avoid an error.
6384 Use char because int might match the return type of a GCC
6385 builtin and then its argument prototype would still apply. */
6398 for ac_lib in '' socket; do
6399 if test -z "$ac_lib"; then
6400 ac_res="none required"
6403 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6405 if ac_fn_cxx_try_link "$LINENO"; then :
6406 ac_cv_search_connect=$ac_res
6408 rm -f core conftest.err conftest.$ac_objext \
6410 if ${ac_cv_search_connect+:} false; then :
6414 if ${ac_cv_search_connect+:} false; then :
6417 ac_cv_search_connect=no
6420 LIBS=$ac_func_search_save_LIBS
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
6423 $as_echo "$ac_cv_search_connect" >&6; }
6424 ac_res=$ac_cv_search_connect
6425 if test "$ac_res" != no; then :
6426 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
6431 $as_echo_n "checking for library containing inet_aton... " >&6; }
6432 if ${ac_cv_search_inet_aton+:} false; then :
6433 $as_echo_n "(cached) " >&6
6435 ac_func_search_save_LIBS=$LIBS
6436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6437 /* end confdefs.h. */
6439 /* Override any GCC internal prototype to avoid an error.
6440 Use char because int might match the return type of a GCC
6441 builtin and then its argument prototype would still apply. */
6449 return inet_aton ();
6454 for ac_lib in '' resolv; do
6455 if test -z "$ac_lib"; then
6456 ac_res="none required"
6459 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6461 if ac_fn_cxx_try_link "$LINENO"; then :
6462 ac_cv_search_inet_aton=$ac_res
6464 rm -f core conftest.err conftest.$ac_objext \
6466 if ${ac_cv_search_inet_aton+:} false; then :
6470 if ${ac_cv_search_inet_aton+:} false; then :
6473 ac_cv_search_inet_aton=no
6476 LIBS=$ac_func_search_save_LIBS
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
6479 $as_echo "$ac_cv_search_inet_aton" >&6; }
6480 ac_res=$ac_cv_search_inet_aton
6481 if test "$ac_res" != no; then :
6482 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6487 # Check for functions and verify that the system provides a prototype for them.
6488 # Switch to C linkage. Though the autoconf manual claims it does
6489 # automatically. It lies.
6491 ac_cpp='$CPP $CPPFLAGS'
6492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6496 ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
6497 if test "x$ac_cv_func_strsep" = xyes; then :
6498 $as_echo "#define HAVE_STRSEP 1" >>confdefs.h
6501 case " $LIBOBJS " in
6502 *" strsep.$ac_objext "* ) ;;
6503 *) LIBOBJS="$LIBOBJS strsep.$ac_objext"
6509 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
6510 if test "x$ac_cv_func_daemon" = xyes; then :
6511 $as_echo "#define HAVE_DAEMON 1" >>confdefs.h
6514 case " $LIBOBJS " in
6515 *" daemon.$ac_objext "* ) ;;
6516 *) LIBOBJS="$LIBOBJS daemon.$ac_objext"
6523 ac_fn_c_check_decl "$LINENO" "strsep" "ac_cv_have_decl_strsep" "$ac_includes_default"
6524 if test "x$ac_cv_have_decl_strsep" = xyes; then :
6530 cat >>confdefs.h <<_ACEOF
6531 #define HAVE_DECL_STRSEP $ac_have_decl
6533 ac_fn_c_check_decl "$LINENO" "daemon" "ac_cv_have_decl_daemon" "$ac_includes_default"
6534 if test "x$ac_cv_have_decl_daemon" = xyes; then :
6540 cat >>confdefs.h <<_ACEOF
6541 #define HAVE_DECL_DAEMON $ac_have_decl
6545 ac_cpp='$CXXCPP $CPPFLAGS'
6546 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6547 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6548 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6551 # Check for libmilter and its header files in the usual locations
6552 if test -d /usr/lib/libmilter ; then
6553 LDFLAGS="$LDFLAGS -L/usr/lib/libmilter"
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mi_stop in -lmilter" >&5
6556 $as_echo_n "checking for mi_stop in -lmilter... " >&6; }
6557 if ${ac_cv_lib_milter_mi_stop+:} false; then :
6558 $as_echo_n "(cached) " >&6
6560 ac_check_lib_save_LIBS=$LIBS
6561 LIBS="-lmilter $LIBS"
6562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6563 /* end confdefs.h. */
6565 /* Override any GCC internal prototype to avoid an error.
6566 Use char because int might match the return type of a GCC
6567 builtin and then its argument prototype would still apply. */
6580 if ac_fn_cxx_try_link "$LINENO"; then :
6581 ac_cv_lib_milter_mi_stop=yes
6583 ac_cv_lib_milter_mi_stop=no
6585 rm -f core conftest.err conftest.$ac_objext \
6586 conftest$ac_exeext conftest.$ac_ext
6587 LIBS=$ac_check_lib_save_LIBS
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_milter_mi_stop" >&5
6590 $as_echo "$ac_cv_lib_milter_mi_stop" >&6; }
6591 if test "x$ac_cv_lib_milter_mi_stop" = xyes; then :
6592 cat >>confdefs.h <<_ACEOF
6593 #define HAVE_LIBMILTER 1
6596 LIBS="-lmilter $LIBS"
6600 # Older sendmails require libsm for support functions
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strlcpy" >&5
6602 $as_echo_n "checking for library containing strlcpy... " >&6; }
6603 if ${ac_cv_search_strlcpy+:} false; then :
6604 $as_echo_n "(cached) " >&6
6606 ac_func_search_save_LIBS=$LIBS
6607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6608 /* end confdefs.h. */
6610 /* Override any GCC internal prototype to avoid an error.
6611 Use char because int might match the return type of a GCC
6612 builtin and then its argument prototype would still apply. */
6625 for ac_lib in '' sm smutil; do
6626 if test -z "$ac_lib"; then
6627 ac_res="none required"
6630 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6632 if ac_fn_cxx_try_link "$LINENO"; then :
6633 ac_cv_search_strlcpy=$ac_res
6635 rm -f core conftest.err conftest.$ac_objext \
6637 if ${ac_cv_search_strlcpy+:} false; then :
6641 if ${ac_cv_search_strlcpy+:} false; then :
6644 ac_cv_search_strlcpy=no
6647 LIBS=$ac_func_search_save_LIBS
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strlcpy" >&5
6650 $as_echo "$ac_cv_search_strlcpy" >&6; }
6651 ac_res=$ac_cv_search_strlcpy
6652 if test "$ac_res" != no; then :
6653 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6657 $as_unset ac_cv_lib_milter_mi_stop
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mi_stop in -lmilter" >&5
6659 $as_echo_n "checking for mi_stop in -lmilter... " >&6; }
6660 if ${ac_cv_lib_milter_mi_stop+:} false; then :
6661 $as_echo_n "(cached) " >&6
6663 ac_check_lib_save_LIBS=$LIBS
6664 LIBS="-lmilter $LIBS"
6665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6666 /* end confdefs.h. */
6668 /* Override any GCC internal prototype to avoid an error.
6669 Use char because int might match the return type of a GCC
6670 builtin and then its argument prototype would still apply. */
6683 if ac_fn_cxx_try_link "$LINENO"; then :
6684 ac_cv_lib_milter_mi_stop=yes
6686 ac_cv_lib_milter_mi_stop=no
6688 rm -f core conftest.err conftest.$ac_objext \
6689 conftest$ac_exeext conftest.$ac_ext
6690 LIBS=$ac_check_lib_save_LIBS
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_milter_mi_stop" >&5
6693 $as_echo "$ac_cv_lib_milter_mi_stop" >&6; }
6694 if test "x$ac_cv_lib_milter_mi_stop" = xyes; then :
6695 cat >>confdefs.h <<_ACEOF
6696 #define HAVE_LIBMILTER 1
6699 LIBS="-lmilter $LIBS"
6703 as_fn_error $? "Cannot find libmilter" "$LINENO" 5
6710 for ac_header in libmilter/mfapi.h
6712 ac_fn_cxx_check_header_mongrel "$LINENO" "libmilter/mfapi.h" "ac_cv_header_libmilter_mfapi_h" "$ac_includes_default"
6713 if test "x$ac_cv_header_libmilter_mfapi_h" = xyes; then :
6714 cat >>confdefs.h <<_ACEOF
6715 #define HAVE_LIBMILTER_MFAPI_H 1
6720 as_fn_error $? "Please install mfapi.h from the sendmail distribution" "$LINENO" 5
6727 # Files to create from .in templates:
6728 ac_config_files="$ac_config_files Makefile contrib/spamass-milter.spec spamass-milter.1"
6730 cat >confcache <<\_ACEOF
6731 # This file is a shell script that caches the results of configure
6732 # tests run on this system so they can be shared between configure
6733 # scripts and configure runs, see configure's option --config-cache.
6734 # It is not useful on other systems. If it contains results you don't
6735 # want to keep, you may remove or edit it.
6737 # config.status only pays attention to the cache file if you give it
6738 # the --recheck option to rerun configure.
6740 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6741 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6746 # The following way of writing the cache mishandles newlines in values,
6747 # but we know of no workaround that is simple, portable, and efficient.
6748 # So, we kill variables containing newlines.
6749 # Ultrix sh set writes to stderr and can't be redirected directly,
6750 # and sets the high bit in the cache file unless we assign to the vars.
6752 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6753 eval ac_val=\$$ac_var
6757 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6758 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6761 _ | IFS | as_nl) ;; #(
6762 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6763 *) { eval $ac_var=; unset $ac_var;} ;;
6769 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6770 *${as_nl}ac_space=\ *)
6771 # `set' does not quote correctly, so add quotes: double-quote
6772 # substitution turns \\\\ into \\, and sed turns \\ into \.
6775 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6778 # `set' quotes correctly as required by POSIX, so do not add quotes.
6779 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6788 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6790 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6792 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6793 if test -w "$cache_file"; then
6794 if test "x$cache_file" != "x/dev/null"; then
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6796 $as_echo "$as_me: updating cache $cache_file" >&6;}
6797 if test ! -f "$cache_file" || test -h "$cache_file"; then
6798 cat confcache >"$cache_file"
6800 case $cache_file in #(
6802 mv -f confcache "$cache_file"$$ &&
6803 mv -f "$cache_file"$$ "$cache_file" ;; #(
6805 mv -f confcache "$cache_file" ;;
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6811 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6816 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6817 # Let make expand exec_prefix.
6818 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6820 DEFS=-DHAVE_CONFIG_H
6824 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6825 # 1. Remove the extension, and $U if already installed.
6826 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6827 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6828 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6829 # will be set to the directory where LIBOBJS objects are built.
6830 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6831 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6835 LTLIBOBJS=$ac_ltlibobjs
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
6839 $as_echo_n "checking that generated files are newer than configure... " >&6; }
6840 if test -n "$am_sleep_pid"; then
6841 # Hide warnings about reused PIDs.
6842 wait $am_sleep_pid 2>/dev/null
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
6845 $as_echo "done" >&6; }
6846 if test -n "$EXEEXT"; then
6848 am__EXEEXT_FALSE='#'
6854 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6855 as_fn_error $? "conditional \"AMDEP\" was never defined.
6856 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6858 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
6859 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
6860 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6862 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6863 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
6864 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6866 if test -z "${HAVE_MDOC_TRUE}" && test -z "${HAVE_MDOC_FALSE}"; then
6867 as_fn_error $? "conditional \"HAVE_MDOC\" was never defined.
6868 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6871 : "${CONFIG_STATUS=./config.status}"
6873 ac_clean_files_save=$ac_clean_files
6874 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6876 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6878 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6880 # Generated by $as_me.
6881 # Run this file to recreate the current configuration.
6882 # Compiler output produced by configure, useful for debugging
6883 # configure, is in config.log if it exists.
6889 SHELL=\${CONFIG_SHELL-$SHELL}
6892 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6893 ## -------------------- ##
6894 ## M4sh Initialization. ##
6895 ## -------------------- ##
6897 # Be more Bourne compatible
6898 DUALCASE=1; export DUALCASE # for MKS sh
6899 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6902 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6903 # is contrary to our usage. Disable this feature.
6904 alias -g '${1+"$@"}'='"$@"'
6905 setopt NO_GLOB_SUBST
6907 case `(set -o) 2>/dev/null` in #(
6919 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6920 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6921 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6922 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6923 # Prefer a ksh shell builtin over an external printf program on Solaris,
6924 # but without wasting forks for bash or zsh.
6925 if test -z "$BASH_VERSION$ZSH_VERSION" \
6926 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6927 as_echo='print -r --'
6928 as_echo_n='print -rn --'
6929 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6930 as_echo='printf %s\n'
6931 as_echo_n='printf %s'
6933 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6934 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6935 as_echo_n='/usr/ucb/echo -n'
6937 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6938 as_echo_n_body='eval
6942 expr "X$arg" : "X\\(.*\\)$as_nl";
6943 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6945 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6947 export as_echo_n_body
6948 as_echo_n='sh -c $as_echo_n_body as_echo'
6951 as_echo='sh -c $as_echo_body as_echo'
6954 # The user is always right.
6955 if test "${PATH_SEPARATOR+set}" != set; then
6957 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6958 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6965 # We need space, tab and new line, in precisely that order. Quoting is
6966 # there to prevent editors from complaining about space-tab.
6967 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6968 # splitting by setting IFS to empty value.)
6971 # Find who we are. Look in the path if we contain no directory separator.
6974 *[\\/]* ) as_myself=$0 ;;
6975 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6979 test -z "$as_dir" && as_dir=.
6980 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6986 # We did not find ourselves, most probably we were run as `sh COMMAND'
6987 # in which case we are not to be found in the path.
6988 if test "x$as_myself" = x; then
6991 if test ! -f "$as_myself"; then
6992 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6996 # Unset variables that we do not need and which cause bugs (e.g. in
6997 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6998 # suppresses any "Segmentation fault" message there. '((' could
6999 # trigger a bug in pdksh 5.2.14.
7000 for as_var in BASH_ENV ENV MAIL MAILPATH
7001 do eval test x\${$as_var+set} = xset \
7002 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7015 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7018 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7019 # ----------------------------------------
7020 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7021 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7022 # script with STATUS, using 1 if that was 0.
7025 as_status=$1; test $as_status -eq 0 && as_status=1
7027 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7028 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7030 $as_echo "$as_me: error: $2" >&2
7031 as_fn_exit $as_status
7035 # as_fn_set_status STATUS
7036 # -----------------------
7037 # Set $? to STATUS, without forking.
7041 } # as_fn_set_status
7045 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7055 # Portably unset VAR.
7058 { eval $1=; unset $1;}
7060 as_unset=as_fn_unset
7061 # as_fn_append VAR VALUE
7062 # ----------------------
7063 # Append the text in VALUE to the end of the definition contained in VAR. Take
7064 # advantage of any shell optimizations that allow amortized linear growth over
7065 # repeated appends, instead of the typical quadratic growth present in naive
7067 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7068 eval 'as_fn_append ()
7079 # as_fn_arith ARG...
7080 # ------------------
7081 # Perform arithmetic evaluation on the ARGs, and store the result in the
7082 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7083 # must be portable across $(()) and expr.
7084 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7085 eval 'as_fn_arith ()
7092 as_val=`expr "$@" || test $? -eq 1`
7097 if expr a : '\(a\)' >/dev/null 2>&1 &&
7098 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7104 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7105 as_basename=basename
7110 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7116 as_me=`$as_basename -- "$0" ||
7117 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7118 X"$0" : 'X\(//\)$' \| \
7119 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7121 sed '/^.*\/\([^/][^/]*\)\/*$/{
7135 # Avoid depending upon Character Ranges.
7136 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7137 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7138 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7139 as_cr_digits='0123456789'
7140 as_cr_alnum=$as_cr_Letters$as_cr_digits
7142 ECHO_C= ECHO_N= ECHO_T=
7143 case `echo -n x` in #(((((
7145 case `echo 'xy\c'` in
7146 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7148 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7155 rm -f conf$$ conf$$.exe conf$$.file
7156 if test -d conf$$.dir; then
7157 rm -f conf$$.dir/conf$$.file
7160 mkdir conf$$.dir 2>/dev/null
7162 if (echo >conf$$.file) 2>/dev/null; then
7163 if ln -s conf$$.file conf$$ 2>/dev/null; then
7165 # ... but there are two gotchas:
7166 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7167 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7168 # In both cases, we have to default to `cp -pR'.
7169 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7171 elif ln conf$$.file conf$$ 2>/dev/null; then
7179 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7180 rmdir conf$$.dir 2>/dev/null
7185 # Create "$as_dir" as a directory, including parents if necessary.
7190 -*) as_dir=./$as_dir;;
7192 test -d "$as_dir" || eval $as_mkdir_p || {
7196 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7197 *) as_qdir=$as_dir;;
7199 as_dirs="'$as_qdir' $as_dirs"
7200 as_dir=`$as_dirname -- "$as_dir" ||
7201 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7202 X"$as_dir" : 'X\(//\)[^/]' \| \
7203 X"$as_dir" : 'X\(//\)$' \| \
7204 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7205 $as_echo X"$as_dir" |
7206 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7223 test -d "$as_dir" && break
7225 test -z "$as_dirs" || eval "mkdir $as_dirs"
7226 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7230 if mkdir -p . 2>/dev/null; then
7231 as_mkdir_p='mkdir -p "$as_dir"'
7233 test -d ./-p && rmdir ./-p
7238 # as_fn_executable_p FILE
7239 # -----------------------
7240 # Test if FILE is an executable regular file.
7241 as_fn_executable_p ()
7243 test -f "$1" && test -x "$1"
7244 } # as_fn_executable_p
7246 as_executable_p=as_fn_executable_p
7248 # Sed expression to map a string onto a valid CPP name.
7249 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7251 # Sed expression to map a string onto a valid variable name.
7252 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7256 ## ----------------------------------- ##
7257 ## Main body of $CONFIG_STATUS script. ##
7258 ## ----------------------------------- ##
7260 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7262 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7263 # Save the log message, to keep $0 and so on meaningful, and to
7264 # report actual input values of CONFIG_FILES etc. instead of their
7265 # values after options handling.
7267 This file was extended by spamass-milter $as_me 0.4.0, which was
7268 generated by GNU Autoconf 2.69. Invocation command line was
7270 CONFIG_FILES = $CONFIG_FILES
7271 CONFIG_HEADERS = $CONFIG_HEADERS
7272 CONFIG_LINKS = $CONFIG_LINKS
7273 CONFIG_COMMANDS = $CONFIG_COMMANDS
7276 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7281 case $ac_config_files in *"
7282 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7285 case $ac_config_headers in *"
7286 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7290 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7291 # Files that config.status was made for.
7292 config_files="$ac_config_files"
7293 config_headers="$ac_config_headers"
7294 config_commands="$ac_config_commands"
7298 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7300 \`$as_me' instantiates files and other configuration actions
7301 from templates according to the current configuration. Unless the files
7302 and actions are specified as TAGs, all are instantiated by default.
7304 Usage: $0 [OPTION]... [TAG]...
7306 -h, --help print this help, then exit
7307 -V, --version print version number and configuration settings, then exit
7308 --config print configuration, then exit
7309 -q, --quiet, --silent
7310 do not print progress messages
7311 -d, --debug don't remove temporary files
7312 --recheck update $as_me by reconfiguring in the same conditions
7313 --file=FILE[:TEMPLATE]
7314 instantiate the configuration file FILE
7315 --header=FILE[:TEMPLATE]
7316 instantiate the configuration header FILE
7318 Configuration files:
7321 Configuration headers:
7324 Configuration commands:
7327 Report bugs to the package provider."
7330 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7331 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7333 spamass-milter config.status 0.4.0
7334 configured by $0, generated by GNU Autoconf 2.69,
7335 with options \\"\$ac_cs_config\\"
7337 Copyright (C) 2012 Free Software Foundation, Inc.
7338 This config.status script is free software; the Free Software Foundation
7339 gives unlimited permission to copy, distribute and modify it."
7346 test -n "\$AWK" || AWK=awk
7349 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7350 # The default lists apply if the user does not specify any file.
7356 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7357 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7361 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7373 # Handling of the options.
7374 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7376 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7377 $as_echo "$ac_cs_version"; exit ;;
7378 --config | --confi | --conf | --con | --co | --c )
7379 $as_echo "$ac_cs_config"; exit ;;
7380 --debug | --debu | --deb | --de | --d | -d )
7382 --file | --fil | --fi | --f )
7385 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7386 '') as_fn_error $? "missing file argument" ;;
7388 as_fn_append CONFIG_FILES " '$ac_optarg'"
7389 ac_need_defaults=false;;
7390 --header | --heade | --head | --hea )
7393 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7395 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7396 ac_need_defaults=false;;
7398 # Conflict between --help and --header
7399 as_fn_error $? "ambiguous option: \`$1'
7400 Try \`$0 --help' for more information.";;
7401 --help | --hel | -h )
7402 $as_echo "$ac_cs_usage"; exit ;;
7403 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7404 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7408 -*) as_fn_error $? "unrecognized option: \`$1'
7409 Try \`$0 --help' for more information." ;;
7411 *) as_fn_append ac_config_targets " $1"
7412 ac_need_defaults=false ;;
7418 ac_configure_extra_args=
7420 if $ac_cs_silent; then
7422 ac_configure_extra_args="$ac_configure_extra_args --silent"
7426 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7427 if \$ac_cs_recheck; then
7428 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7430 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7431 CONFIG_SHELL='$SHELL'
7437 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7441 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7442 ## Running $as_me. ##
7448 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7452 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7456 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7458 # Handling of arguments.
7459 for ac_config_target in $ac_config_targets
7461 case $ac_config_target in
7462 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7463 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7464 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7465 "contrib/spamass-milter.spec") CONFIG_FILES="$CONFIG_FILES contrib/spamass-milter.spec" ;;
7466 "spamass-milter.1") CONFIG_FILES="$CONFIG_FILES spamass-milter.1" ;;
7468 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7473 # If the user did not use the arguments to specify the items to instantiate,
7474 # then the envvar interface is used. Set only those that are not.
7475 # We use the long form for the default assignment because of an extremely
7476 # bizarre bug on SunOS 4.1.3.
7477 if $ac_need_defaults; then
7478 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7479 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7480 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7483 # Have a temporary directory for convenience. Make it in the build tree
7484 # simply because there is no reason against having it here, and in addition,
7485 # creating and moving files from /tmp can sometimes cause problems.
7486 # Hook for its removal unless debugging.
7487 # Note that there is a small window in which the directory will not be cleaned:
7488 # after its creation but before its name has been assigned to `$tmp'.
7492 trap 'exit_status=$?
7494 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7496 trap 'as_fn_exit 1' 1 2 13 15
7498 # Create a (secure) tmp directory for tmp files.
7501 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7505 tmp=./conf$$-$RANDOM
7506 (umask 077 && mkdir "$tmp")
7507 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7510 # Set up the scripts for CONFIG_FILES section.
7511 # No need to generate them if there are no CONFIG_FILES.
7512 # This happens for instance with `./config.status config.h'.
7513 if test -n "$CONFIG_FILES"; then
7516 ac_cr=`echo X | tr X '\015'`
7517 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7518 # But we know of no other shell where ac_cr would be empty at this
7519 # point, so we can use a bashism as a fallback.
7520 if test "x$ac_cr" = x; then
7521 eval ac_cr=\$\'\\r\'
7523 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7524 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7530 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7535 echo "cat >conf$$subs.awk <<_ACEOF" &&
7536 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7539 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7540 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7542 for ac_last_try in false false false false false :; do
7543 . ./conf$$subs.sh ||
7544 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7546 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7547 if test $ac_delim_n = $ac_delim_num; then
7549 elif $ac_last_try; then
7550 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7552 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7557 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7558 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7562 s/^/S["/; s/!.*/"]=/
7572 s/\(.\{148\}\)..*/\1/
7574 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7579 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7586 s/\(.\{148\}\)..*/\1/
7588 s/["\\]/\\&/g; s/^/"/; s/$/"/
7592 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7597 ' <conf$$subs.awk | sed '
7602 ' >>$CONFIG_STATUS || ac_write_fail=1
7603 rm -f conf$$subs.awk
7604 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7606 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7607 for (key in S) S_is_set[key] = 1
7613 nfields = split(line, field, "@")
7615 len = length(field[1])
7616 for (i = 2; i < nfields; i++) {
7618 keylen = length(key)
7619 if (S_is_set[key]) {
7621 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7622 len += length(value) + length(field[++i])
7633 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7634 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7635 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7638 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7639 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7642 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7643 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7644 # trailing colons and then remove the whole line if VPATH becomes empty
7645 # (actually we leave an empty line to preserve line numbers).
7646 if test "x$srcdir" = x.; then
7647 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7665 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7666 fi # test -n "$CONFIG_FILES"
7668 # Set up the scripts for CONFIG_HEADERS section.
7669 # No need to generate them if there are no CONFIG_HEADERS.
7670 # This happens for instance with `./config.status Makefile'.
7671 if test -n "$CONFIG_HEADERS"; then
7672 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7676 # Transform confdefs.h into an awk script `defines.awk', embedded as
7677 # here-document in config.status, that substitutes the proper values into
7678 # config.h.in to produce config.h.
7680 # Create a delimiter string that does not exist in confdefs.h, to ease
7681 # handling of long lines.
7683 for ac_last_try in false false :; do
7684 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7685 if test -z "$ac_tt"; then
7687 elif $ac_last_try; then
7688 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7690 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7694 # For the awk script, D is an array of macro values keyed by name,
7695 # likewise P contains macro parameters if any. Preserve backslash
7696 # newline sequences.
7698 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7700 s/.\{148\}/&'"$ac_delim"'/g
7703 s/^[ ]*#[ ]*define[ ][ ]*/ /
7710 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7712 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7716 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7717 D["\1"]=" \3\\\\\\n"\\/p
7719 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7724 s/.\{148\}/&'"$ac_delim"'/g
7729 s/["\\]/\\&/g; s/^/"/; s/$/"/p
7732 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7734 ' <confdefs.h | sed '
7735 s/'"$ac_delim"'/"\\\
7736 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7738 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7739 for (key in D) D_is_set[key] = 1
7742 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7744 split(line, arg, " ")
7745 if (arg[1] == "#") {
7749 defundef = substr(arg[1], 2)
7752 split(mac1, mac2, "(") #)
7754 prefix = substr(line, 1, index(line, defundef) - 1)
7755 if (D_is_set[macro]) {
7756 # Preserve the white space surrounding the "#".
7757 print prefix "define", macro P[macro] D[macro]
7760 # Replace #undef with comments. This is necessary, for example,
7761 # in the case of _POSIX_SOURCE, which is predefined and required
7762 # on some systems where configure will not decide to define it.
7763 if (defundef == "undef") {
7764 print "/*", prefix defundef, macro, "*/"
7772 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7773 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7774 fi # test -n "$CONFIG_HEADERS"
7777 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7782 :[FHLC]) ac_mode=$ac_tag; continue;;
7784 case $ac_mode$ac_tag in
7786 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7787 :[FH]-) ac_tag=-:-;;
7788 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7805 -) ac_f="$ac_tmp/stdin";;
7806 *) # Look for the file first in the build tree, then in the source tree
7807 # (if the path is not absolute). The absolute path cannot be DOS-style,
7808 # because $ac_f cannot contain `:'.
7812 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7814 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7816 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7817 as_fn_append ac_file_inputs " '$ac_f'"
7820 # Let's still pretend it is `configure' which instantiates (i.e., don't
7821 # use $as_me), people would be surprised to read:
7822 # /* config.h. Generated by config.status. */
7823 configure_input='Generated from '`
7824 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7826 if test x"$ac_file" != x-; then
7827 configure_input="$ac_file. $configure_input"
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7829 $as_echo "$as_me: creating $ac_file" >&6;}
7831 # Neutralize special characters interpreted by sed in replacement strings.
7832 case $configure_input in #(
7833 *\&* | *\|* | *\\* )
7834 ac_sed_conf_input=`$as_echo "$configure_input" |
7835 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7836 *) ac_sed_conf_input=$configure_input;;
7840 *:-:* | *:-) cat >"$ac_tmp/stdin" \
7841 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7846 ac_dir=`$as_dirname -- "$ac_file" ||
7847 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7848 X"$ac_file" : 'X\(//\)[^/]' \| \
7849 X"$ac_file" : 'X\(//\)$' \| \
7850 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7851 $as_echo X"$ac_file" |
7852 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7869 as_dir="$ac_dir"; as_fn_mkdir_p
7873 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7875 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7876 # A ".." for each directory in $ac_dir_suffix.
7877 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7878 case $ac_top_builddir_sub in
7879 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7880 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7883 ac_abs_top_builddir=$ac_pwd
7884 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7885 # for backward compatibility:
7886 ac_top_builddir=$ac_top_build_prefix
7889 .) # We are building in place.
7891 ac_top_srcdir=$ac_top_builddir_sub
7892 ac_abs_top_srcdir=$ac_pwd ;;
7893 [\\/]* | ?:[\\/]* ) # Absolute name.
7894 ac_srcdir=$srcdir$ac_dir_suffix;
7895 ac_top_srcdir=$srcdir
7896 ac_abs_top_srcdir=$srcdir ;;
7898 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7899 ac_top_srcdir=$ac_top_build_prefix$srcdir
7900 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7902 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7912 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7913 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7917 [\\/$]* | ?:[\\/]* ) ;;
7918 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
7922 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7923 # If the template does not know about datarootdir, expand it.
7924 # FIXME: This hack should be removed a few years after 2.60.
7925 ac_datarootdir_hack=; ac_datarootdir_seen=
7936 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7937 *datarootdir*) ac_datarootdir_seen=yes;;
7938 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7940 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7942 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7943 ac_datarootdir_hack='
7944 s&@datadir@&$datadir&g
7945 s&@docdir@&$docdir&g
7946 s&@infodir@&$infodir&g
7947 s&@localedir@&$localedir&g
7948 s&@mandir@&$mandir&g
7949 s&\\\${datarootdir}&$datarootdir&g' ;;
7953 # Neutralize VPATH when `$srcdir' = `.'.
7954 # Shell code in configure.ac might set extrasub.
7955 # FIXME: do we really want to maintain this feature?
7956 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7957 ac_sed_extra="$ac_vpsub
7960 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7962 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7963 s|@configure_input@|$ac_sed_conf_input|;t t
7964 s&@top_builddir@&$ac_top_builddir_sub&;t t
7965 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7966 s&@srcdir@&$ac_srcdir&;t t
7967 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7968 s&@top_srcdir@&$ac_top_srcdir&;t t
7969 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7970 s&@builddir@&$ac_builddir&;t t
7971 s&@abs_builddir@&$ac_abs_builddir&;t t
7972 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7973 s&@INSTALL@&$ac_INSTALL&;t t
7974 s&@MKDIR_P@&$ac_MKDIR_P&;t t
7975 $ac_datarootdir_hack
7977 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7978 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7980 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7981 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7982 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7983 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7985 which seems to be undefined. Please make sure it is defined" >&5
7986 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7987 which seems to be undefined. Please make sure it is defined" >&2;}
7989 rm -f "$ac_tmp/stdin"
7991 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7992 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7994 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8000 if test x"$ac_file" != x-; then
8002 $as_echo "/* $configure_input */" \
8003 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8004 } >"$ac_tmp/config.h" \
8005 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8006 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8008 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8011 mv "$ac_tmp/config.h" "$ac_file" \
8012 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8015 $as_echo "/* $configure_input */" \
8016 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8017 || as_fn_error $? "could not create -" "$LINENO" 5
8019 # Compute "$ac_file"'s index in $config_headers.
8022 for _am_header in $config_headers :; do
8024 $_am_arg | $_am_arg:* )
8027 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8030 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
8031 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8032 X"$_am_arg" : 'X\(//\)[^/]' \| \
8033 X"$_am_arg" : 'X\(//\)$' \| \
8034 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
8035 $as_echo X"$_am_arg" |
8036 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8052 s/.*/./; q'`/stamp-h$_am_stamp_count
8055 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8056 $as_echo "$as_me: executing $ac_file commands" >&6;}
8061 case $ac_file$ac_mode in
8062 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
8063 # Older Autoconf quotes --file arguments for eval, but not when files
8064 # are listed without --file. Let's play safe and only enable the eval
8065 # if we detect the quoting.
8066 case $CONFIG_FILES in
8067 *\'*) eval set x "$CONFIG_FILES" ;;
8068 *) set x $CONFIG_FILES ;;
8073 # Strip MF so we end up with the name of the file.
8074 mf=`echo "$mf" | sed -e 's/:.*$//'`
8075 # Check whether this is an Automake generated Makefile or not.
8076 # We used to match only the files named 'Makefile.in', but
8077 # some people rename them; so instead we look at the file content.
8078 # Grep'ing the first line is not enough: some people post-process
8079 # each Makefile.in and add a new line on top of each file to say so.
8080 # Grep'ing the whole file is not good either: AIX grep has a line
8081 # limit of 2048, but all sed's we know have understand at least 4000.
8082 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
8083 dirpart=`$as_dirname -- "$mf" ||
8084 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8085 X"$mf" : 'X\(//\)[^/]' \| \
8086 X"$mf" : 'X\(//\)$' \| \
8087 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8089 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8109 # Extract the definition of DEPDIR, am__include, and am__quote
8110 # from the Makefile without running 'make'.
8111 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8112 test -z "$DEPDIR" && continue
8113 am__include=`sed -n 's/^am__include = //p' < "$mf"`
8114 test -z "$am__include" && continue
8115 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8116 # Find all dependency output files, they are included files with
8117 # $(DEPDIR) in their names. We invoke sed twice because it is the
8118 # simplest approach to changing $(DEPDIR) to its actual value in the
8120 for file in `sed -n "
8121 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8122 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
8123 # Make sure the directory exists.
8124 test -f "$dirpart/$file" && continue
8125 fdir=`$as_dirname -- "$file" ||
8126 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8127 X"$file" : 'X\(//\)[^/]' \| \
8128 X"$file" : 'X\(//\)$' \| \
8129 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8131 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8148 as_dir=$dirpart/$fdir; as_fn_mkdir_p
8149 # echo "creating $dirpart/$file"
8150 echo '# dummy' > "$dirpart/$file"
8162 ac_clean_files=$ac_clean_files_save
8164 test $ac_write_fail = 0 ||
8165 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8168 # configure is writing to config.log, and then calls config.status.
8169 # config.status does its own redirection, appending to config.log.
8170 # Unfortunately, on DOS this fails, as config.log is still kept open
8171 # by configure, so config.status won't be able to write to it; its
8172 # output is simply discarded. So we exec the FD to /dev/null,
8173 # effectively closing config.log, so it can be properly (re)opened and
8174 # appended to by config.status. When coming back to configure, we
8175 # need to make the FD available again.
8176 if test "$no_create" != yes; then
8178 ac_config_status_args=
8179 test "$silent" = yes &&
8180 ac_config_status_args="$ac_config_status_args --quiet"
8182 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8184 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8185 # would make configure fail if this is the last instruction.
8186 $ac_cs_success || as_fn_exit 1
8188 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8190 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}