2 # From configure.in Revision: 1.44 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.68 for spamass-milter 0.3.2.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
28 case `(set -o) 2>/dev/null` in #(
40 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44 # Prefer a ksh shell builtin over an external printf program on Solaris,
45 # but without wasting forks for bash or zsh.
46 if test -z "$BASH_VERSION$ZSH_VERSION" \
47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo_n='print -rn --'
50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 as_echo_n='sh -c $as_echo_n_body as_echo'
72 as_echo='sh -c $as_echo_body as_echo'
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
86 # We need space, tab and new line, in precisely that order. Quoting is
87 # there to prevent editors from complaining about space-tab.
88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89 # splitting by setting IFS to empty value.)
92 # Find who we are. Look in the path if we contain no directory separator.
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
147 case \`(set -o) 2>/dev/null\` in #(
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169 exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190 test -z "$as_dir" && as_dir=.
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
219 # Preserve -v and -x to the replacement shell.
222 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
225 *v*x* | *x*v* ) as_opts=-vx ;;
230 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
233 if test x$as_have_required = xno; then :
234 $as_echo "$0: This script requires a shell more modern than all"
235 $as_echo "$0: the shells that I found on your system."
236 if test x${ZSH_VERSION+set} = xset ; then
237 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
238 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
241 $0: including any error possibly output before this
242 $0: message. Then install a modern shell, or manually run
243 $0: the script under such a shell if you do have one."
249 SHELL=${CONFIG_SHELL-/bin/sh}
251 # Unset more variables known to interfere with behavior of common tools.
252 CLICOLOR_FORCE= GREP_OPTIONS=
253 unset CLICOLOR_FORCE GREP_OPTIONS
255 ## --------------------- ##
256 ## M4sh Shell Functions. ##
257 ## --------------------- ##
260 # Portably unset VAR.
263 { eval $1=; unset $1;}
267 # as_fn_set_status STATUS
268 # -----------------------
269 # Set $? to STATUS, without forking.
277 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
287 # Create "$as_dir" as a directory, including parents if necessary.
292 -*) as_dir=./$as_dir;;
294 test -d "$as_dir" || eval $as_mkdir_p || {
298 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301 as_dirs="'$as_qdir' $as_dirs"
302 as_dir=`$as_dirname -- "$as_dir" ||
303 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
304 X"$as_dir" : 'X\(//\)[^/]' \| \
305 X"$as_dir" : 'X\(//\)$' \| \
306 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
307 $as_echo X"$as_dir" |
308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
325 test -d "$as_dir" && break
327 test -z "$as_dirs" || eval "mkdir $as_dirs"
328 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332 # as_fn_append VAR VALUE
333 # ----------------------
334 # Append the text in VALUE to the end of the definition contained in VAR. Take
335 # advantage of any shell optimizations that allow amortized linear growth over
336 # repeated appends, instead of the typical quadratic growth present in naive
338 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
339 eval 'as_fn_append ()
352 # Perform arithmetic evaluation on the ARGs, and store the result in the
353 # global $as_val. Take advantage of shells that can avoid forks. The arguments
354 # must be portable across $(()) and expr.
355 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
363 as_val=`expr "$@" || test $? -eq 1`
368 # as_fn_error STATUS ERROR [LINENO LOG_FD]
369 # ----------------------------------------
370 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
371 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
372 # script with STATUS, using 1 if that was 0.
375 as_status=$1; test $as_status -eq 0 && as_status=1
377 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
378 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
380 $as_echo "$as_me: error: $2" >&2
381 as_fn_exit $as_status
384 if expr a : '\(a\)' >/dev/null 2>&1 &&
385 test "X`expr 00001 : '.*\(...\)'`" = X001; then
391 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
397 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
403 as_me=`$as_basename -- "$0" ||
404 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
405 X"$0" : 'X\(//\)$' \| \
406 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
408 sed '/^.*\/\([^/][^/]*\)\/*$/{
422 # Avoid depending upon Character Ranges.
423 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
424 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
425 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
426 as_cr_digits='0123456789'
427 as_cr_alnum=$as_cr_Letters$as_cr_digits
430 as_lineno_1=$LINENO as_lineno_1a=$LINENO
431 as_lineno_2=$LINENO as_lineno_2a=$LINENO
432 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
433 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
434 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
446 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 chmod +x "$as_me.lineno" ||
451 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
453 # Don't try to exec as it changes $[0], causing all sort of problems
454 # (the dirname of $[0] is not the place where we might find the
455 # original and so on. Autoconf is especially sensitive to this).
457 # Exit status is that of the last command.
461 ECHO_C= ECHO_N= ECHO_T=
462 case `echo -n x` in #(((((
464 case `echo 'xy\c'` in
465 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
467 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
474 rm -f conf$$ conf$$.exe conf$$.file
475 if test -d conf$$.dir; then
476 rm -f conf$$.dir/conf$$.file
479 mkdir conf$$.dir 2>/dev/null
481 if (echo >conf$$.file) 2>/dev/null; then
482 if ln -s conf$$.file conf$$ 2>/dev/null; then
484 # ... but there are two gotchas:
485 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
486 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
487 # In both cases, we have to default to `cp -p'.
488 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
490 elif ln conf$$.file conf$$ 2>/dev/null; then
498 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
499 rmdir conf$$.dir 2>/dev/null
501 if mkdir -p . 2>/dev/null; then
502 as_mkdir_p='mkdir -p "$as_dir"'
504 test -d ./-p && rmdir ./-p
508 if test -x / >/dev/null 2>&1; then
511 if ls -dL / >/dev/null 2>&1; then
518 if test -d "$1"; then
524 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
525 ???[sx]*):;;*)false;;esac;fi
529 as_executable_p=$as_test_x
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538 test -n "$DJDIR" || exec 7<&0 </dev/null
542 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
543 # so uname gets run too.
544 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
549 ac_default_prefix=/usr/local
551 ac_config_libobj_dir=.
558 # Identity of this package.
559 PACKAGE_NAME='spamass-milter'
560 PACKAGE_TARNAME='spamass-milter'
561 PACKAGE_VERSION='0.3.2'
562 PACKAGE_STRING='spamass-milter 0.3.2'
566 ac_unique_file="spamass-milter.cpp"
567 # Factoring default headers for most tests.
568 ac_includes_default="\
570 #ifdef HAVE_SYS_TYPES_H
571 # include <sys/types.h>
573 #ifdef HAVE_SYS_STAT_H
574 # include <sys/stat.h>
580 # ifdef HAVE_STDLIB_H
585 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
590 #ifdef HAVE_STRINGS_H
591 # include <strings.h>
593 #ifdef HAVE_INTTYPES_H
594 # include <inttypes.h>
603 ac_subst_vars='am__EXEEXT_FALSE
657 INSTALL_STRIP_PROGRAM
699 program_transform_name
712 enable_option_checking
713 enable_dependency_tracking
717 ac_precious_vars='build_alias
737 # Initialize some variables set by options.
739 ac_init_version=false
740 ac_unrecognized_opts=
742 # The variables have the same names as the options, with
743 # dashes changed to underlines.
751 program_transform_name=s,x,x,
759 # Installation directory options.
760 # These are left unexpanded so users can "make install exec_prefix=/foo"
761 # and all the variables that are supposed to be based on exec_prefix
762 # by default will actually change.
763 # Use braces instead of parens because sh, perl, etc. also accept them.
764 # (The list follows the same order as the GNU Coding Standards.)
765 bindir='${exec_prefix}/bin'
766 sbindir='${exec_prefix}/sbin'
767 libexecdir='${exec_prefix}/libexec'
768 datarootdir='${prefix}/share'
769 datadir='${datarootdir}'
770 sysconfdir='${prefix}/etc'
771 sharedstatedir='${prefix}/com'
772 localstatedir='${prefix}/var'
773 includedir='${prefix}/include'
774 oldincludedir='/usr/include'
775 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
776 infodir='${datarootdir}/info'
781 libdir='${exec_prefix}/lib'
782 localedir='${datarootdir}/locale'
783 mandir='${datarootdir}/man'
789 # If the previous option needs an argument, assign it.
790 if test -n "$ac_prev"; then
791 eval $ac_prev=\$ac_option
797 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
802 # Accept the important Cygnus configure options, so we can diagnose typos.
804 case $ac_dashdash$ac_option in
808 -bindir | --bindir | --bindi | --bind | --bin | --bi)
810 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
813 -build | --build | --buil | --bui | --bu)
814 ac_prev=build_alias ;;
815 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
816 build_alias=$ac_optarg ;;
818 -cache-file | --cache-file | --cache-fil | --cache-fi \
819 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
820 ac_prev=cache_file ;;
821 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
822 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
823 cache_file=$ac_optarg ;;
826 cache_file=config.cache ;;
828 -datadir | --datadir | --datadi | --datad)
830 -datadir=* | --datadir=* | --datadi=* | --datad=*)
831 datadir=$ac_optarg ;;
833 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
834 | --dataroo | --dataro | --datar)
835 ac_prev=datarootdir ;;
836 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
837 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
838 datarootdir=$ac_optarg ;;
840 -disable-* | --disable-*)
841 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
842 # Reject names that are not valid shell variable names.
843 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
844 as_fn_error $? "invalid feature name: $ac_useropt"
845 ac_useropt_orig=$ac_useropt
846 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
847 case $ac_user_opts in
851 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
852 ac_unrecognized_sep=', ';;
854 eval enable_$ac_useropt=no ;;
856 -docdir | --docdir | --docdi | --doc | --do)
858 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
861 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
863 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
866 -enable-* | --enable-*)
867 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
868 # Reject names that are not valid shell variable names.
869 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
870 as_fn_error $? "invalid feature name: $ac_useropt"
871 ac_useropt_orig=$ac_useropt
872 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
873 case $ac_user_opts in
877 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
878 ac_unrecognized_sep=', ';;
880 eval enable_$ac_useropt=\$ac_optarg ;;
882 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
883 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
884 | --exec | --exe | --ex)
885 ac_prev=exec_prefix ;;
886 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
887 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
888 | --exec=* | --exe=* | --ex=*)
889 exec_prefix=$ac_optarg ;;
891 -gas | --gas | --ga | --g)
892 # Obsolete; use --with-gas.
895 -help | --help | --hel | --he | -h)
897 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
898 ac_init_help=recursive ;;
899 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
900 ac_init_help=short ;;
902 -host | --host | --hos | --ho)
903 ac_prev=host_alias ;;
904 -host=* | --host=* | --hos=* | --ho=*)
905 host_alias=$ac_optarg ;;
907 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
909 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
911 htmldir=$ac_optarg ;;
913 -includedir | --includedir | --includedi | --included | --include \
914 | --includ | --inclu | --incl | --inc)
915 ac_prev=includedir ;;
916 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
917 | --includ=* | --inclu=* | --incl=* | --inc=*)
918 includedir=$ac_optarg ;;
920 -infodir | --infodir | --infodi | --infod | --info | --inf)
922 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
923 infodir=$ac_optarg ;;
925 -libdir | --libdir | --libdi | --libd)
927 -libdir=* | --libdir=* | --libdi=* | --libd=*)
930 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
931 | --libexe | --libex | --libe)
932 ac_prev=libexecdir ;;
933 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
934 | --libexe=* | --libex=* | --libe=*)
935 libexecdir=$ac_optarg ;;
937 -localedir | --localedir | --localedi | --localed | --locale)
939 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
940 localedir=$ac_optarg ;;
942 -localstatedir | --localstatedir | --localstatedi | --localstated \
943 | --localstate | --localstat | --localsta | --localst | --locals)
944 ac_prev=localstatedir ;;
945 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
946 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
947 localstatedir=$ac_optarg ;;
949 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
951 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
955 # Obsolete; use --without-fp.
958 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
959 | --no-cr | --no-c | -n)
962 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
963 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
966 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
967 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
968 | --oldin | --oldi | --old | --ol | --o)
969 ac_prev=oldincludedir ;;
970 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
971 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
972 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
973 oldincludedir=$ac_optarg ;;
975 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
977 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
980 -program-prefix | --program-prefix | --program-prefi | --program-pref \
981 | --program-pre | --program-pr | --program-p)
982 ac_prev=program_prefix ;;
983 -program-prefix=* | --program-prefix=* | --program-prefi=* \
984 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
985 program_prefix=$ac_optarg ;;
987 -program-suffix | --program-suffix | --program-suffi | --program-suff \
988 | --program-suf | --program-su | --program-s)
989 ac_prev=program_suffix ;;
990 -program-suffix=* | --program-suffix=* | --program-suffi=* \
991 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
992 program_suffix=$ac_optarg ;;
994 -program-transform-name | --program-transform-name \
995 | --program-transform-nam | --program-transform-na \
996 | --program-transform-n | --program-transform- \
997 | --program-transform | --program-transfor \
998 | --program-transfo | --program-transf \
999 | --program-trans | --program-tran \
1000 | --progr-tra | --program-tr | --program-t)
1001 ac_prev=program_transform_name ;;
1002 -program-transform-name=* | --program-transform-name=* \
1003 | --program-transform-nam=* | --program-transform-na=* \
1004 | --program-transform-n=* | --program-transform-=* \
1005 | --program-transform=* | --program-transfor=* \
1006 | --program-transfo=* | --program-transf=* \
1007 | --program-trans=* | --program-tran=* \
1008 | --progr-tra=* | --program-tr=* | --program-t=*)
1009 program_transform_name=$ac_optarg ;;
1011 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1013 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1014 pdfdir=$ac_optarg ;;
1016 -psdir | --psdir | --psdi | --psd | --ps)
1018 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1021 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1022 | -silent | --silent | --silen | --sile | --sil)
1025 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1027 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1029 sbindir=$ac_optarg ;;
1031 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1032 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1033 | --sharedst | --shareds | --shared | --share | --shar \
1035 ac_prev=sharedstatedir ;;
1036 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1037 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1038 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1040 sharedstatedir=$ac_optarg ;;
1042 -site | --site | --sit)
1044 -site=* | --site=* | --sit=*)
1047 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1049 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1050 srcdir=$ac_optarg ;;
1052 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1053 | --syscon | --sysco | --sysc | --sys | --sy)
1054 ac_prev=sysconfdir ;;
1055 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1056 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1057 sysconfdir=$ac_optarg ;;
1059 -target | --target | --targe | --targ | --tar | --ta | --t)
1060 ac_prev=target_alias ;;
1061 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1062 target_alias=$ac_optarg ;;
1064 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1067 -version | --version | --versio | --versi | --vers | -V)
1068 ac_init_version=: ;;
1071 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1074 as_fn_error $? "invalid package name: $ac_useropt"
1075 ac_useropt_orig=$ac_useropt
1076 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1077 case $ac_user_opts in
1081 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1082 ac_unrecognized_sep=', ';;
1084 eval with_$ac_useropt=\$ac_optarg ;;
1086 -without-* | --without-*)
1087 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1088 # Reject names that are not valid shell variable names.
1089 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1090 as_fn_error $? "invalid package name: $ac_useropt"
1091 ac_useropt_orig=$ac_useropt
1092 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1093 case $ac_user_opts in
1097 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1098 ac_unrecognized_sep=', ';;
1100 eval with_$ac_useropt=no ;;
1103 # Obsolete; use --with-x.
1106 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1107 | --x-incl | --x-inc | --x-in | --x-i)
1108 ac_prev=x_includes ;;
1109 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1110 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1111 x_includes=$ac_optarg ;;
1113 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1114 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1115 ac_prev=x_libraries ;;
1116 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1117 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1118 x_libraries=$ac_optarg ;;
1120 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1121 Try \`$0 --help' for more information"
1125 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1126 # Reject names that are not valid shell variable names.
1127 case $ac_envvar in #(
1128 '' | [0-9]* | *[!_$as_cr_alnum]* )
1129 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1131 eval $ac_envvar=\$ac_optarg
1132 export $ac_envvar ;;
1135 # FIXME: should be removed in autoconf 3.0.
1136 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1137 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1138 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1139 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1145 if test -n "$ac_prev"; then
1146 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1147 as_fn_error $? "missing argument to $ac_option"
1150 if test -n "$ac_unrecognized_opts"; then
1151 case $enable_option_checking in
1153 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1154 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1158 # Check all directory arguments for consistency.
1159 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1160 datadir sysconfdir sharedstatedir localstatedir includedir \
1161 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1162 libdir localedir mandir
1164 eval ac_val=\$$ac_var
1165 # Remove trailing slashes.
1168 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1169 eval $ac_var=\$ac_val;;
1171 # Be sure to have absolute directory names.
1173 [\\/$]* | ?:[\\/]* ) continue;;
1174 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1176 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1179 # There might be people who depend on the old broken behavior: `$host'
1180 # used to hold the argument of --host etc.
1181 # FIXME: To remove some day.
1184 target=$target_alias
1186 # FIXME: To remove some day.
1187 if test "x$host_alias" != x; then
1188 if test "x$build_alias" = x; then
1189 cross_compiling=maybe
1190 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1191 If a cross compiler is detected then cross compile mode will be used" >&2
1192 elif test "x$build_alias" != "x$host_alias"; then
1198 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1200 test "$silent" = yes && exec 6>/dev/null
1203 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1204 ac_ls_di=`ls -di .` &&
1205 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1206 as_fn_error $? "working directory cannot be determined"
1207 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1208 as_fn_error $? "pwd does not report name of working directory"
1211 # Find the source files, if location was not specified.
1212 if test -z "$srcdir"; then
1213 ac_srcdir_defaulted=yes
1214 # Try the directory containing this script, then the parent directory.
1215 ac_confdir=`$as_dirname -- "$as_myself" ||
1216 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1217 X"$as_myself" : 'X\(//\)[^/]' \| \
1218 X"$as_myself" : 'X\(//\)$' \| \
1219 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1220 $as_echo X"$as_myself" |
1221 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1239 if test ! -r "$srcdir/$ac_unique_file"; then
1243 ac_srcdir_defaulted=no
1245 if test ! -r "$srcdir/$ac_unique_file"; then
1246 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1247 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1249 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1251 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1253 # When building in place, set srcdir=.
1254 if test "$ac_abs_confdir" = "$ac_pwd"; then
1257 # Remove unnecessary trailing slashes from srcdir.
1258 # Double slashes in file names in object file debugging info
1259 # mess up M-x gdb in Emacs.
1261 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1263 for ac_var in $ac_precious_vars; do
1264 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1265 eval ac_env_${ac_var}_value=\$${ac_var}
1266 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1267 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1271 # Report the --help message.
1273 if test "$ac_init_help" = "long"; then
1274 # Omit some internal or obsolete options to make the list less imposing.
1275 # This message is too long to be a string in the A/UX 3.1 sh.
1277 \`configure' configures spamass-milter 0.3.2 to adapt to many kinds of systems.
1279 Usage: $0 [OPTION]... [VAR=VALUE]...
1281 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1282 VAR=VALUE. See below for descriptions of some of the useful variables.
1284 Defaults for the options are specified in brackets.
1287 -h, --help display this help and exit
1288 --help=short display options specific to this package
1289 --help=recursive display the short help of all the included packages
1290 -V, --version display version information and exit
1291 -q, --quiet, --silent do not print \`checking ...' messages
1292 --cache-file=FILE cache test results in FILE [disabled]
1293 -C, --config-cache alias for \`--cache-file=config.cache'
1294 -n, --no-create do not create output files
1295 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1297 Installation directories:
1298 --prefix=PREFIX install architecture-independent files in PREFIX
1299 [$ac_default_prefix]
1300 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1303 By default, \`make install' will install all the files in
1304 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1305 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1306 for instance \`--prefix=\$HOME'.
1308 For better control, use the options below.
1310 Fine tuning of the installation directories:
1311 --bindir=DIR user executables [EPREFIX/bin]
1312 --sbindir=DIR system admin executables [EPREFIX/sbin]
1313 --libexecdir=DIR program executables [EPREFIX/libexec]
1314 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1315 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1316 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1317 --libdir=DIR object code libraries [EPREFIX/lib]
1318 --includedir=DIR C header files [PREFIX/include]
1319 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1320 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1321 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1322 --infodir=DIR info documentation [DATAROOTDIR/info]
1323 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1324 --mandir=DIR man documentation [DATAROOTDIR/man]
1325 --docdir=DIR documentation root [DATAROOTDIR/doc/spamass-milter]
1326 --htmldir=DIR html documentation [DOCDIR]
1327 --dvidir=DIR dvi documentation [DOCDIR]
1328 --pdfdir=DIR pdf documentation [DOCDIR]
1329 --psdir=DIR ps documentation [DOCDIR]
1335 --program-prefix=PREFIX prepend PREFIX to installed program names
1336 --program-suffix=SUFFIX append SUFFIX to installed program names
1337 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1340 --build=BUILD configure for building on BUILD [guessed]
1341 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1345 if test -n "$ac_init_help"; then
1346 case $ac_init_help in
1347 short | recursive ) echo "Configuration of spamass-milter 0.3.2:";;
1352 --disable-option-checking ignore unrecognized --enable/--with options
1353 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1354 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1355 --disable-dependency-tracking speeds up one-time build
1356 --enable-dependency-tracking do not reject slow dependency extractors
1357 --enable-emulate-poll use a select wrapper instead of poll (autodetected)
1360 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1361 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1362 --with-dmalloc use dmalloc ( http://www.dmalloc.com )
1364 Some influential environment variables:
1365 CXX C++ compiler command
1366 CXXFLAGS C++ compiler flags
1367 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1368 nonstandard directory <lib dir>
1369 LIBS libraries to pass to the linker, e.g. -l<library>
1370 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1371 you have headers in a nonstandard directory <include dir>
1372 CC C compiler command
1373 CFLAGS C compiler flags
1375 SENDMAIL Path to sendmail
1376 CXXCPP C++ preprocessor
1378 Use these variables to override the choices made by `configure' or to help
1379 it to find libraries and programs with nonstandard names/locations.
1381 Report bugs to the package provider.
1386 if test "$ac_init_help" = "recursive"; then
1387 # If there are subdirs, report their specific --help.
1388 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1389 test -d "$ac_dir" ||
1390 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1395 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1397 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1398 # A ".." for each directory in $ac_dir_suffix.
1399 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1400 case $ac_top_builddir_sub in
1401 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1402 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1405 ac_abs_top_builddir=$ac_pwd
1406 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1407 # for backward compatibility:
1408 ac_top_builddir=$ac_top_build_prefix
1411 .) # We are building in place.
1413 ac_top_srcdir=$ac_top_builddir_sub
1414 ac_abs_top_srcdir=$ac_pwd ;;
1415 [\\/]* | ?:[\\/]* ) # Absolute name.
1416 ac_srcdir=$srcdir$ac_dir_suffix;
1417 ac_top_srcdir=$srcdir
1418 ac_abs_top_srcdir=$srcdir ;;
1420 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1421 ac_top_srcdir=$ac_top_build_prefix$srcdir
1422 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1424 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1426 cd "$ac_dir" || { ac_status=$?; continue; }
1427 # Check for guested configure.
1428 if test -f "$ac_srcdir/configure.gnu"; then
1430 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1431 elif test -f "$ac_srcdir/configure"; then
1433 $SHELL "$ac_srcdir/configure" --help=recursive
1435 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1437 cd "$ac_pwd" || { ac_status=$?; break; }
1441 test -n "$ac_init_help" && exit $ac_status
1442 if $ac_init_version; then
1444 spamass-milter configure 0.3.2
1445 generated by GNU Autoconf 2.68
1447 Copyright (C) 2010 Free Software Foundation, Inc.
1448 This configure script is free software; the Free Software Foundation
1449 gives unlimited permission to copy, distribute and modify it.
1454 ## ------------------------ ##
1455 ## Autoconf initialization. ##
1456 ## ------------------------ ##
1458 # ac_fn_cxx_try_compile LINENO
1459 # ----------------------------
1460 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1461 ac_fn_cxx_try_compile ()
1463 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1464 rm -f conftest.$ac_objext
1465 if { { ac_try="$ac_compile"
1467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1468 *) ac_try_echo=$ac_try;;
1470 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1471 $as_echo "$ac_try_echo"; } >&5
1472 (eval "$ac_compile") 2>conftest.err
1474 if test -s conftest.err; then
1475 grep -v '^ *+' conftest.err >conftest.er1
1476 cat conftest.er1 >&5
1477 mv -f conftest.er1 conftest.err
1479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1480 test $ac_status = 0; } && {
1481 test -z "$ac_cxx_werror_flag" ||
1482 test ! -s conftest.err
1483 } && test -s conftest.$ac_objext; then :
1486 $as_echo "$as_me: failed program was:" >&5
1487 sed 's/^/| /' conftest.$ac_ext >&5
1491 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1492 as_fn_set_status $ac_retval
1494 } # ac_fn_cxx_try_compile
1496 # ac_fn_c_try_compile LINENO
1497 # --------------------------
1498 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1499 ac_fn_c_try_compile ()
1501 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1502 rm -f conftest.$ac_objext
1503 if { { ac_try="$ac_compile"
1505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1506 *) ac_try_echo=$ac_try;;
1508 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1509 $as_echo "$ac_try_echo"; } >&5
1510 (eval "$ac_compile") 2>conftest.err
1512 if test -s conftest.err; then
1513 grep -v '^ *+' conftest.err >conftest.er1
1514 cat conftest.er1 >&5
1515 mv -f conftest.er1 conftest.err
1517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1518 test $ac_status = 0; } && {
1519 test -z "$ac_c_werror_flag" ||
1520 test ! -s conftest.err
1521 } && test -s conftest.$ac_objext; then :
1524 $as_echo "$as_me: failed program was:" >&5
1525 sed 's/^/| /' conftest.$ac_ext >&5
1529 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1530 as_fn_set_status $ac_retval
1532 } # ac_fn_c_try_compile
1534 # ac_fn_cxx_try_link LINENO
1535 # -------------------------
1536 # Try to link conftest.$ac_ext, and return whether this succeeded.
1537 ac_fn_cxx_try_link ()
1539 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1540 rm -f conftest.$ac_objext conftest$ac_exeext
1541 if { { ac_try="$ac_link"
1543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1544 *) ac_try_echo=$ac_try;;
1546 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1547 $as_echo "$ac_try_echo"; } >&5
1548 (eval "$ac_link") 2>conftest.err
1550 if test -s conftest.err; then
1551 grep -v '^ *+' conftest.err >conftest.er1
1552 cat conftest.er1 >&5
1553 mv -f conftest.er1 conftest.err
1555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1556 test $ac_status = 0; } && {
1557 test -z "$ac_cxx_werror_flag" ||
1558 test ! -s conftest.err
1559 } && test -s conftest$ac_exeext && {
1560 test "$cross_compiling" = yes ||
1561 $as_test_x conftest$ac_exeext
1565 $as_echo "$as_me: failed program was:" >&5
1566 sed 's/^/| /' conftest.$ac_ext >&5
1570 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1571 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1572 # interfere with the next link command; also delete a directory that is
1573 # left behind by Apple's compiler. We do this before executing the actions.
1574 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1575 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1576 as_fn_set_status $ac_retval
1578 } # ac_fn_cxx_try_link
1580 # ac_fn_cxx_try_run LINENO
1581 # ------------------------
1582 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1583 # that executables *can* be run.
1584 ac_fn_cxx_try_run ()
1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587 if { { ac_try="$ac_link"
1589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1590 *) ac_try_echo=$ac_try;;
1592 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1593 $as_echo "$ac_try_echo"; } >&5
1594 (eval "$ac_link") 2>&5
1596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1597 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1598 { { case "(($ac_try" in
1599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600 *) ac_try_echo=$ac_try;;
1602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603 $as_echo "$ac_try_echo"; } >&5
1604 (eval "$ac_try") 2>&5
1606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1607 test $ac_status = 0; }; }; then :
1610 $as_echo "$as_me: program exited with status $ac_status" >&5
1611 $as_echo "$as_me: failed program was:" >&5
1612 sed 's/^/| /' conftest.$ac_ext >&5
1614 ac_retval=$ac_status
1616 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1617 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1618 as_fn_set_status $ac_retval
1620 } # ac_fn_cxx_try_run
1622 # ac_fn_c_try_link LINENO
1623 # -----------------------
1624 # Try to link conftest.$ac_ext, and return whether this succeeded.
1627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628 rm -f conftest.$ac_objext conftest$ac_exeext
1629 if { { ac_try="$ac_link"
1631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1632 *) ac_try_echo=$ac_try;;
1634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1635 $as_echo "$ac_try_echo"; } >&5
1636 (eval "$ac_link") 2>conftest.err
1638 if test -s conftest.err; then
1639 grep -v '^ *+' conftest.err >conftest.er1
1640 cat conftest.er1 >&5
1641 mv -f conftest.er1 conftest.err
1643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1644 test $ac_status = 0; } && {
1645 test -z "$ac_c_werror_flag" ||
1646 test ! -s conftest.err
1647 } && test -s conftest$ac_exeext && {
1648 test "$cross_compiling" = yes ||
1649 $as_test_x conftest$ac_exeext
1653 $as_echo "$as_me: failed program was:" >&5
1654 sed 's/^/| /' conftest.$ac_ext >&5
1658 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1659 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1660 # interfere with the next link command; also delete a directory that is
1661 # left behind by Apple's compiler. We do this before executing the actions.
1662 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1663 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1664 as_fn_set_status $ac_retval
1666 } # ac_fn_c_try_link
1668 # ac_fn_cxx_try_cpp LINENO
1669 # ------------------------
1670 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1671 ac_fn_cxx_try_cpp ()
1673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674 if { { ac_try="$ac_cpp conftest.$ac_ext"
1676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1677 *) ac_try_echo=$ac_try;;
1679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1680 $as_echo "$ac_try_echo"; } >&5
1681 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1683 if test -s conftest.err; then
1684 grep -v '^ *+' conftest.err >conftest.er1
1685 cat conftest.er1 >&5
1686 mv -f conftest.er1 conftest.err
1688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689 test $ac_status = 0; } > conftest.i && {
1690 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1691 test ! -s conftest.err
1695 $as_echo "$as_me: failed program was:" >&5
1696 sed 's/^/| /' conftest.$ac_ext >&5
1700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1701 as_fn_set_status $ac_retval
1703 } # ac_fn_cxx_try_cpp
1705 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1706 # ---------------------------------------------------------
1707 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1708 # the include files in INCLUDES and setting the cache variable VAR
1710 ac_fn_cxx_check_header_mongrel ()
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 if eval \${$3+:} false; then :
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1715 $as_echo_n "checking for $2... " >&6; }
1716 if eval \${$3+:} false; then :
1717 $as_echo_n "(cached) " >&6
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1721 $as_echo "$ac_res" >&6; }
1723 # Is the header compilable?
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1725 $as_echo_n "checking $2 usability... " >&6; }
1726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1727 /* end confdefs.h. */
1731 if ac_fn_cxx_try_compile "$LINENO"; then :
1732 ac_header_compiler=yes
1734 ac_header_compiler=no
1736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1738 $as_echo "$ac_header_compiler" >&6; }
1740 # Is the header present?
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1742 $as_echo_n "checking $2 presence... " >&6; }
1743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744 /* end confdefs.h. */
1747 if ac_fn_cxx_try_cpp "$LINENO"; then :
1748 ac_header_preproc=yes
1750 ac_header_preproc=no
1752 rm -f conftest.err conftest.i conftest.$ac_ext
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1754 $as_echo "$ac_header_preproc" >&6; }
1756 # So? What about this header?
1757 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1760 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1762 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1766 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1768 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1770 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1772 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1774 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1778 $as_echo_n "checking for $2... " >&6; }
1779 if eval \${$3+:} false; then :
1780 $as_echo_n "(cached) " >&6
1782 eval "$3=\$ac_header_compiler"
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786 $as_echo "$ac_res" >&6; }
1788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790 } # ac_fn_cxx_check_header_mongrel
1792 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1793 # ---------------------------------------------------------
1794 # Tests whether HEADER exists and can be compiled using the include files in
1795 # INCLUDES, setting the cache variable VAR accordingly.
1796 ac_fn_cxx_check_header_compile ()
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1800 $as_echo_n "checking for $2... " >&6; }
1801 if eval \${$3+:} false; then :
1802 $as_echo_n "(cached) " >&6
1804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1805 /* end confdefs.h. */
1809 if ac_fn_cxx_try_compile "$LINENO"; then :
1814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1818 $as_echo "$ac_res" >&6; }
1819 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1821 } # ac_fn_cxx_check_header_compile
1823 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
1824 # ---------------------------------------------
1825 # Tests whether TYPE exists after having included INCLUDES, setting cache
1826 # variable VAR accordingly.
1827 ac_fn_cxx_check_type ()
1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1831 $as_echo_n "checking for $2... " >&6; }
1832 if eval \${$3+:} false; then :
1833 $as_echo_n "(cached) " >&6
1836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1837 /* end confdefs.h. */
1848 if ac_fn_cxx_try_compile "$LINENO"; then :
1849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1850 /* end confdefs.h. */
1861 if ac_fn_cxx_try_compile "$LINENO"; then :
1866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1872 $as_echo "$ac_res" >&6; }
1873 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875 } # ac_fn_cxx_check_type
1877 # ac_fn_cxx_check_func LINENO FUNC VAR
1878 # ------------------------------------
1879 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1880 ac_fn_cxx_check_func ()
1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1884 $as_echo_n "checking for $2... " >&6; }
1885 if eval \${$3+:} false; then :
1886 $as_echo_n "(cached) " >&6
1888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889 /* end confdefs.h. */
1890 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1892 #define $2 innocuous_$2
1894 /* System header to define __stub macros and hopefully few prototypes,
1895 which can conflict with char $2 (); below.
1896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1897 <limits.h> exists even on freestanding compilers. */
1900 # include <limits.h>
1902 # include <assert.h>
1907 /* Override any GCC internal prototype to avoid an error.
1908 Use char because int might match the return type of a GCC
1909 builtin and then its argument prototype would still apply. */
1914 /* The GNU C library defines this for functions which it implements
1915 to always fail with ENOSYS. Some functions are actually named
1916 something starting with __ and the normal name is an alias. */
1917 #if defined __stub_$2 || defined __stub___$2
1929 if ac_fn_cxx_try_link "$LINENO"; then :
1934 rm -f core conftest.err conftest.$ac_objext \
1935 conftest$ac_exeext conftest.$ac_ext
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1939 $as_echo "$ac_res" >&6; }
1940 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1942 } # ac_fn_cxx_check_func
1944 # ac_fn_c_check_func LINENO FUNC VAR
1945 # ----------------------------------
1946 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1947 ac_fn_c_check_func ()
1949 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1951 $as_echo_n "checking for $2... " >&6; }
1952 if eval \${$3+:} false; then :
1953 $as_echo_n "(cached) " >&6
1955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1956 /* end confdefs.h. */
1957 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1958 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1959 #define $2 innocuous_$2
1961 /* System header to define __stub macros and hopefully few prototypes,
1962 which can conflict with char $2 (); below.
1963 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1964 <limits.h> exists even on freestanding compilers. */
1967 # include <limits.h>
1969 # include <assert.h>
1974 /* Override any GCC internal prototype to avoid an error.
1975 Use char because int might match the return type of a GCC
1976 builtin and then its argument prototype would still apply. */
1981 /* The GNU C library defines this for functions which it implements
1982 to always fail with ENOSYS. Some functions are actually named
1983 something starting with __ and the normal name is an alias. */
1984 #if defined __stub_$2 || defined __stub___$2
1996 if ac_fn_c_try_link "$LINENO"; then :
2001 rm -f core conftest.err conftest.$ac_objext \
2002 conftest$ac_exeext conftest.$ac_ext
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2006 $as_echo "$ac_res" >&6; }
2007 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2009 } # ac_fn_c_check_func
2011 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2012 # ---------------------------------------------
2013 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2015 ac_fn_c_check_decl ()
2017 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2018 as_decl_name=`echo $2|sed 's/ *(.*//'`
2019 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2021 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2022 if eval \${$3+:} false; then :
2023 $as_echo_n "(cached) " >&6
2025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026 /* end confdefs.h. */
2031 #ifndef $as_decl_name
2033 (void) $as_decl_use;
2035 (void) $as_decl_name;
2043 if ac_fn_c_try_compile "$LINENO"; then :
2048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2052 $as_echo "$ac_res" >&6; }
2053 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2055 } # ac_fn_c_check_decl
2056 cat >config.log <<_ACEOF
2057 This file contains any messages produced by compilers while
2058 running configure, to aid debugging if configure makes a mistake.
2060 It was created by spamass-milter $as_me 0.3.2, which was
2061 generated by GNU Autoconf 2.68. Invocation command line was
2073 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2074 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2075 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2076 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2077 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2079 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2080 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2082 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2083 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2084 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2085 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2086 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2087 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2088 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2096 test -z "$as_dir" && as_dir=.
2097 $as_echo "PATH: $as_dir"
2113 # Keep a trace of the command line.
2114 # Strip out --no-create and --no-recursion so they do not pile up.
2115 # Strip out --silent because we don't want to record it for future runs.
2116 # Also quote any args containing shell meta-characters.
2117 # Make two passes to allow for proper duplicate-argument suppression.
2121 ac_must_keep_next=false
2127 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2128 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2129 | -silent | --silent | --silen | --sile | --sil)
2132 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2135 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2137 as_fn_append ac_configure_args1 " '$ac_arg'"
2138 if test $ac_must_keep_next = true; then
2139 ac_must_keep_next=false # Got value, back to normal.
2142 *=* | --config-cache | -C | -disable-* | --disable-* \
2143 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2144 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2145 | -with-* | --with-* | -without-* | --without-* | --x)
2146 case "$ac_configure_args0 " in
2147 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2150 -* ) ac_must_keep_next=true ;;
2153 as_fn_append ac_configure_args " '$ac_arg'"
2158 { ac_configure_args0=; unset ac_configure_args0;}
2159 { ac_configure_args1=; unset ac_configure_args1;}
2161 # When interrupted or exit'd, cleanup temporary files, and complete
2162 # config.log. We remove comments because anyway the quotes in there
2163 # would cause problems or look ugly.
2164 # WARNING: Use '\'' to represent an apostrophe within the trap.
2165 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2166 trap 'exit_status=$?
2167 # Save into config.log some information that might help in debugging.
2171 $as_echo "## ---------------- ##
2172 ## Cache variables. ##
2173 ## ---------------- ##"
2175 # The following way of writing the cache mishandles newlines in values,
2177 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2178 eval ac_val=\$$ac_var
2182 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2183 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2186 _ | IFS | as_nl) ;; #(
2187 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2188 *) { eval $ac_var=; unset $ac_var;} ;;
2193 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2194 *${as_nl}ac_space=\ *)
2196 "s/'\''/'\''\\\\'\'''\''/g;
2197 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2200 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2207 $as_echo "## ----------------- ##
2208 ## Output variables. ##
2209 ## ----------------- ##"
2211 for ac_var in $ac_subst_vars
2213 eval ac_val=\$$ac_var
2215 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2217 $as_echo "$ac_var='\''$ac_val'\''"
2221 if test -n "$ac_subst_files"; then
2222 $as_echo "## ------------------- ##
2223 ## File substitutions. ##
2224 ## ------------------- ##"
2226 for ac_var in $ac_subst_files
2228 eval ac_val=\$$ac_var
2230 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2232 $as_echo "$ac_var='\''$ac_val'\''"
2237 if test -s confdefs.h; then
2238 $as_echo "## ----------- ##
2245 test "$ac_signal" != 0 &&
2246 $as_echo "$as_me: caught signal $ac_signal"
2247 $as_echo "$as_me: exit $exit_status"
2249 rm -f core *.core core.conftest.* &&
2250 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2253 for ac_signal in 1 2 13 15; do
2254 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2258 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2259 rm -f -r conftest* confdefs.h
2261 $as_echo "/* confdefs.h */" > confdefs.h
2263 # Predefined preprocessor variables.
2265 cat >>confdefs.h <<_ACEOF
2266 #define PACKAGE_NAME "$PACKAGE_NAME"
2269 cat >>confdefs.h <<_ACEOF
2270 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2273 cat >>confdefs.h <<_ACEOF
2274 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2277 cat >>confdefs.h <<_ACEOF
2278 #define PACKAGE_STRING "$PACKAGE_STRING"
2281 cat >>confdefs.h <<_ACEOF
2282 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2285 cat >>confdefs.h <<_ACEOF
2286 #define PACKAGE_URL "$PACKAGE_URL"
2290 # Let the site file select an alternate cache file if it wants to.
2291 # Prefer an explicitly selected file to automatically selected ones.
2294 if test -n "$CONFIG_SITE"; then
2295 # We do not want a PATH search for config.site.
2296 case $CONFIG_SITE in #((
2297 -*) ac_site_file1=./$CONFIG_SITE;;
2298 */*) ac_site_file1=$CONFIG_SITE;;
2299 *) ac_site_file1=./$CONFIG_SITE;;
2301 elif test "x$prefix" != xNONE; then
2302 ac_site_file1=$prefix/share/config.site
2303 ac_site_file2=$prefix/etc/config.site
2305 ac_site_file1=$ac_default_prefix/share/config.site
2306 ac_site_file2=$ac_default_prefix/etc/config.site
2308 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2310 test "x$ac_site_file" = xNONE && continue
2311 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2313 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2314 sed 's/^/| /' "$ac_site_file" >&5
2316 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2317 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2318 as_fn_error $? "failed to load site script $ac_site_file
2319 See \`config.log' for more details" "$LINENO" 5; }
2323 if test -r "$cache_file"; then
2324 # Some versions of bash will fail to source /dev/null (special files
2325 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2326 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2328 $as_echo "$as_me: loading cache $cache_file" >&6;}
2330 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2331 *) . "./$cache_file";;
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2336 $as_echo "$as_me: creating cache $cache_file" >&6;}
2340 # Check that the precious variables saved in the cache have kept the same
2342 ac_cache_corrupted=false
2343 for ac_var in $ac_precious_vars; do
2344 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2345 eval ac_new_set=\$ac_env_${ac_var}_set
2346 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2347 eval ac_new_val=\$ac_env_${ac_var}_value
2348 case $ac_old_set,$ac_new_set in
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2351 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2352 ac_cache_corrupted=: ;;
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2355 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2356 ac_cache_corrupted=: ;;
2359 if test "x$ac_old_val" != "x$ac_new_val"; then
2360 # differences in whitespace do not lead to failure.
2361 ac_old_val_w=`echo x $ac_old_val`
2362 ac_new_val_w=`echo x $ac_new_val`
2363 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2365 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2366 ac_cache_corrupted=:
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2369 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2370 eval $ac_var=\$ac_old_val
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2373 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2375 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2378 # Pass precious variables to config.status.
2379 if test "$ac_new_set" = set; then
2381 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2382 *) ac_arg=$ac_var=$ac_new_val ;;
2384 case " $ac_configure_args " in
2385 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2386 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2390 if $ac_cache_corrupted; then
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2392 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2394 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2395 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2397 ## -------------------- ##
2398 ## Main body of script. ##
2399 ## -------------------- ##
2402 ac_cpp='$CPP $CPPFLAGS'
2403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2412 # Initialize automake now
2413 ac_config_headers="$ac_config_headers config.h"
2415 am__api_version='1.11'
2418 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2419 if test -f "$ac_dir/install-sh"; then
2421 ac_install_sh="$ac_aux_dir/install-sh -c"
2423 elif test -f "$ac_dir/install.sh"; then
2425 ac_install_sh="$ac_aux_dir/install.sh -c"
2427 elif test -f "$ac_dir/shtool"; then
2429 ac_install_sh="$ac_aux_dir/shtool install -c"
2433 if test -z "$ac_aux_dir"; then
2434 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2437 # These three variables are undocumented and unsupported,
2438 # and are intended to be withdrawn in a future Autoconf release.
2439 # They can cause serious problems if a builder's source tree is in a directory
2440 # whose full name contains unusual characters.
2441 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2442 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2443 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2446 # Find a good install program. We prefer a C program (faster),
2447 # so one script is as good as another. But avoid the broken or
2448 # incompatible versions:
2449 # SysV /etc/install, /usr/sbin/install
2450 # SunOS /usr/etc/install
2451 # IRIX /sbin/install
2453 # AmigaOS /C/install, which installs bootblocks on floppy discs
2454 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2455 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2456 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2457 # OS/2's system install, which has a completely different semantic
2458 # ./install, which can be erroneously created by make from ./install.sh.
2459 # Reject install programs that cannot install multiple files.
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2461 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2462 if test -z "$INSTALL"; then
2463 if ${ac_cv_path_install+:} false; then :
2464 $as_echo_n "(cached) " >&6
2466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470 test -z "$as_dir" && as_dir=.
2471 # Account for people who put trailing slashes in PATH elements.
2472 case $as_dir/ in #((
2473 ./ | .// | /[cC]/* | \
2474 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2475 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2478 # OSF1 and SCO ODT 3.0 have their own names for install.
2479 # Don't use installbsd from OSF since it installs stuff as root
2481 for ac_prog in ginstall scoinst install; do
2482 for ac_exec_ext in '' $ac_executable_extensions; do
2483 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2484 if test $ac_prog = install &&
2485 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2486 # AIX install. It has an incompatible calling convention.
2488 elif test $ac_prog = install &&
2489 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2490 # program-specific install script used by HP pwplus--don't use.
2493 rm -rf conftest.one conftest.two conftest.dir
2494 echo one > conftest.one
2495 echo two > conftest.two
2497 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2498 test -s conftest.one && test -s conftest.two &&
2499 test -s conftest.dir/conftest.one &&
2500 test -s conftest.dir/conftest.two
2502 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2515 rm -rf conftest.one conftest.two conftest.dir
2518 if test "${ac_cv_path_install+set}" = set; then
2519 INSTALL=$ac_cv_path_install
2521 # As a last resort, use the slow shell script. Don't cache a
2522 # value for INSTALL within a source directory, because that will
2523 # break other packages using the cache if that directory is
2524 # removed, or if the value is a relative name.
2525 INSTALL=$ac_install_sh
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2529 $as_echo "$INSTALL" >&6; }
2531 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2532 # It thinks the first close brace ends the variable substitution.
2533 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2535 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2537 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2540 $as_echo_n "checking whether build environment is sane... " >&6; }
2543 echo timestamp > conftest.file
2544 # Reject unsafe characters in $srcdir or the absolute working directory
2545 # name. Accept space and tab only in the latter.
2549 *[\\\"\#\$\&\'\`$am_lf]*)
2550 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2553 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2554 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2557 # Do `set' in a subshell so we don't clobber the current shell's
2558 # arguments. Must try -L first in case configure is actually a
2559 # symlink; some systems play weird games with the mod time of symlinks
2560 # (eg FreeBSD returns the mod time of the symlink's containing
2563 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2564 if test "$*" = "X"; then
2566 set X `ls -t "$srcdir/configure" conftest.file`
2569 if test "$*" != "X $srcdir/configure conftest.file" \
2570 && test "$*" != "X conftest.file $srcdir/configure"; then
2572 # If neither matched, then we have a broken ls. This can happen
2573 # if, for instance, CONFIG_SHELL is bash and it inherits a
2574 # broken ls alias from the environment. This has actually
2575 # happened. Such a system could not be considered "sane".
2576 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2577 alias in your environment" "$LINENO" 5
2580 test "$2" = conftest.file
2586 as_fn_error $? "newly created file is older than distributed files!
2587 Check your system clock" "$LINENO" 5
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2590 $as_echo "yes" >&6; }
2591 test "$program_prefix" != NONE &&
2592 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2593 # Use a double $ so make ignores it.
2594 test "$program_suffix" != NONE &&
2595 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2596 # Double any \ or $.
2597 # By default was `s,x,x', remove it if useless.
2598 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2599 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2601 # expand $ac_aux_dir to an absolute path
2602 am_aux_dir=`cd $ac_aux_dir && pwd`
2604 if test x"${MISSING+set}" != xset; then
2607 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2609 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2612 # Use eval to expand $SHELL
2613 if eval "$MISSING --run true"; then
2614 am_missing_run="$MISSING --run "
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2618 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2621 if test x"${install_sh}" != xset; then
2624 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2626 install_sh="\${SHELL} $am_aux_dir/install-sh"
2630 # Installed binaries are usually stripped using `strip' when the user
2631 # run `make install-strip'. However `strip' might not be the right
2632 # tool to use in cross-compilation environments, therefore Automake
2633 # will honor the `STRIP' environment variable to overrule this program.
2634 if test "$cross_compiling" != no; then
2635 if test -n "$ac_tool_prefix"; then
2636 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2637 set dummy ${ac_tool_prefix}strip; ac_word=$2
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2639 $as_echo_n "checking for $ac_word... " >&6; }
2640 if ${ac_cv_prog_STRIP+:} false; then :
2641 $as_echo_n "(cached) " >&6
2643 if test -n "$STRIP"; then
2644 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650 test -z "$as_dir" && as_dir=.
2651 for ac_exec_ext in '' $ac_executable_extensions; do
2652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2653 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2663 STRIP=$ac_cv_prog_STRIP
2664 if test -n "$STRIP"; then
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2666 $as_echo "$STRIP" >&6; }
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2669 $as_echo "no" >&6; }
2674 if test -z "$ac_cv_prog_STRIP"; then
2676 # Extract the first word of "strip", so it can be a program name with args.
2677 set dummy strip; ac_word=$2
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2679 $as_echo_n "checking for $ac_word... " >&6; }
2680 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2681 $as_echo_n "(cached) " >&6
2683 if test -n "$ac_ct_STRIP"; then
2684 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690 test -z "$as_dir" && as_dir=.
2691 for ac_exec_ext in '' $ac_executable_extensions; do
2692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2693 ac_cv_prog_ac_ct_STRIP="strip"
2694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2703 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2704 if test -n "$ac_ct_STRIP"; then
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2706 $as_echo "$ac_ct_STRIP" >&6; }
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2709 $as_echo "no" >&6; }
2712 if test "x$ac_ct_STRIP" = x; then
2715 case $cross_compiling:$ac_tool_warned in
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2718 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2719 ac_tool_warned=yes ;;
2724 STRIP="$ac_cv_prog_STRIP"
2728 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2731 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2732 if test -z "$MKDIR_P"; then
2733 if ${ac_cv_path_mkdir+:} false; then :
2734 $as_echo_n "(cached) " >&6
2736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2737 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2740 test -z "$as_dir" && as_dir=.
2741 for ac_prog in mkdir gmkdir; do
2742 for ac_exec_ext in '' $ac_executable_extensions; do
2743 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2744 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2745 'mkdir (GNU coreutils) '* | \
2746 'mkdir (coreutils) '* | \
2747 'mkdir (fileutils) '4.1*)
2748 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2758 test -d ./--version && rmdir ./--version
2759 if test "${ac_cv_path_mkdir+set}" = set; then
2760 MKDIR_P="$ac_cv_path_mkdir -p"
2762 # As a last resort, use the slow shell script. Don't cache a
2763 # value for MKDIR_P within a source directory, because that will
2764 # break other packages using the cache if that directory is
2765 # removed, or if the value is a relative name.
2766 MKDIR_P="$ac_install_sh -d"
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2770 $as_echo "$MKDIR_P" >&6; }
2774 [\\/$]* | ?:[\\/]*) ;;
2775 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2778 for ac_prog in gawk mawk nawk awk
2780 # Extract the first word of "$ac_prog", so it can be a program name with args.
2781 set dummy $ac_prog; ac_word=$2
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2783 $as_echo_n "checking for $ac_word... " >&6; }
2784 if ${ac_cv_prog_AWK+:} false; then :
2785 $as_echo_n "(cached) " >&6
2787 if test -n "$AWK"; then
2788 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794 test -z "$as_dir" && as_dir=.
2795 for ac_exec_ext in '' $ac_executable_extensions; do
2796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2797 ac_cv_prog_AWK="$ac_prog"
2798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2808 if test -n "$AWK"; then
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2810 $as_echo "$AWK" >&6; }
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2813 $as_echo "no" >&6; }
2817 test -n "$AWK" && break
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2821 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2823 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2824 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2825 $as_echo_n "(cached) " >&6
2827 cat >conftest.make <<\_ACEOF
2830 @echo '@@@%%%=$(MAKE)=@@@%%%'
2832 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2833 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2835 eval ac_cv_prog_make_${ac_make}_set=yes;;
2837 eval ac_cv_prog_make_${ac_make}_set=no;;
2841 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2843 $as_echo "yes" >&6; }
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2847 $as_echo "no" >&6; }
2848 SET_MAKE="MAKE=${MAKE-make}"
2851 rm -rf .tst 2>/dev/null
2852 mkdir .tst 2>/dev/null
2853 if test -d .tst; then
2858 rmdir .tst 2>/dev/null
2860 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2861 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2862 # is not polluted with repeated "-I."
2863 am__isrc=' -I$(srcdir)'
2864 # test to see if srcdir already configured
2865 if test -f $srcdir/config.status; then
2866 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2870 # test whether we have cygpath
2871 if test -z "$CYGPATH_W"; then
2872 if (cygpath --version) >/dev/null 2>/dev/null; then
2873 CYGPATH_W='cygpath -w'
2880 # Define the identity of the package.
2881 PACKAGE=spamass-milter
2885 cat >>confdefs.h <<_ACEOF
2886 #define PACKAGE "$PACKAGE"
2890 cat >>confdefs.h <<_ACEOF
2891 #define VERSION "$VERSION"
2894 # Some tools Automake needs.
2896 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2899 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2902 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2905 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2908 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2910 # We need awk for the "check" target. The system "awk" is bad on
2912 # Always define AMTAR for backward compatibility.
2914 AMTAR=${AMTAR-"${am_missing_run}tar"}
2916 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2923 # Checks for programs.
2925 ac_cpp='$CXXCPP $CPPFLAGS'
2926 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2927 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2928 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2929 if test -z "$CXX"; then
2930 if test -n "$CCC"; then
2933 if test -n "$ac_tool_prefix"; then
2934 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2936 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2937 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2939 $as_echo_n "checking for $ac_word... " >&6; }
2940 if ${ac_cv_prog_CXX+:} false; then :
2941 $as_echo_n "(cached) " >&6
2943 if test -n "$CXX"; then
2944 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950 test -z "$as_dir" && as_dir=.
2951 for ac_exec_ext in '' $ac_executable_extensions; do
2952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2953 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2964 if test -n "$CXX"; then
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2966 $as_echo "$CXX" >&6; }
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2969 $as_echo "no" >&6; }
2973 test -n "$CXX" && break
2976 if test -z "$CXX"; then
2978 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2980 # Extract the first word of "$ac_prog", so it can be a program name with args.
2981 set dummy $ac_prog; ac_word=$2
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2983 $as_echo_n "checking for $ac_word... " >&6; }
2984 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2985 $as_echo_n "(cached) " >&6
2987 if test -n "$ac_ct_CXX"; then
2988 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2994 test -z "$as_dir" && as_dir=.
2995 for ac_exec_ext in '' $ac_executable_extensions; do
2996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2997 ac_cv_prog_ac_ct_CXX="$ac_prog"
2998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3007 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3008 if test -n "$ac_ct_CXX"; then
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3010 $as_echo "$ac_ct_CXX" >&6; }
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3013 $as_echo "no" >&6; }
3017 test -n "$ac_ct_CXX" && break
3020 if test "x$ac_ct_CXX" = x; then
3023 case $cross_compiling:$ac_tool_warned in
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3026 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3027 ac_tool_warned=yes ;;
3035 # Provide some information about the compiler.
3036 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3039 for ac_option in --version -v -V -qversion; do
3040 { { ac_try="$ac_compiler $ac_option >&5"
3042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043 *) ac_try_echo=$ac_try;;
3045 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3046 $as_echo "$ac_try_echo"; } >&5
3047 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3049 if test -s conftest.err; then
3051 ... rest of stderr output deleted ...
3052 10q' conftest.err >conftest.er1
3053 cat conftest.er1 >&5
3055 rm -f conftest.er1 conftest.err
3056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3057 test $ac_status = 0; }
3060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3061 /* end confdefs.h. */
3071 ac_clean_files_save=$ac_clean_files
3072 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3073 # Try to create an executable without -o first, disregard a.out.
3074 # It will help us diagnose broken compilers, and finding out an intuition
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3077 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3078 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3080 # The possible output files:
3081 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3084 for ac_file in $ac_files
3087 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3088 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3093 if { { ac_try="$ac_link_default"
3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096 *) ac_try_echo=$ac_try;;
3098 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3099 $as_echo "$ac_try_echo"; } >&5
3100 (eval "$ac_link_default") 2>&5
3102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3103 test $ac_status = 0; }; then :
3104 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3105 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3106 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3107 # so that the user can short-circuit this test for compilers unknown to
3109 for ac_file in $ac_files ''
3111 test -f "$ac_file" || continue
3113 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3116 # We found the default executable, but exeext='' is most
3120 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3122 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3124 # We set ac_cv_exeext here because the later test for it is not
3125 # safe: cross compilers may not add the suffix if given an `-o'
3126 # argument, so we may need to know it at that point already.
3127 # Even if this section looks crufty: it has the advantage of
3134 test "$ac_cv_exeext" = no && ac_cv_exeext=
3139 if test -z "$ac_file"; then :
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3141 $as_echo "no" >&6; }
3142 $as_echo "$as_me: failed program was:" >&5
3143 sed 's/^/| /' conftest.$ac_ext >&5
3145 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3146 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3147 as_fn_error 77 "C++ compiler cannot create executables
3148 See \`config.log' for more details" "$LINENO" 5; }
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3151 $as_echo "yes" >&6; }
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3154 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3156 $as_echo "$ac_file" >&6; }
3157 ac_exeext=$ac_cv_exeext
3159 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3160 ac_clean_files=$ac_clean_files_save
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3162 $as_echo_n "checking for suffix of executables... " >&6; }
3163 if { { ac_try="$ac_link"
3165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166 *) ac_try_echo=$ac_try;;
3168 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3169 $as_echo "$ac_try_echo"; } >&5
3170 (eval "$ac_link") 2>&5
3172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3173 test $ac_status = 0; }; then :
3174 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3175 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3176 # work properly (i.e., refer to `conftest.exe'), while it won't with
3178 for ac_file in conftest.exe conftest conftest.*; do
3179 test -f "$ac_file" || continue
3181 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3182 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3188 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3189 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3190 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3191 See \`config.log' for more details" "$LINENO" 5; }
3193 rm -f conftest conftest$ac_cv_exeext
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3195 $as_echo "$ac_cv_exeext" >&6; }
3197 rm -f conftest.$ac_ext
3198 EXEEXT=$ac_cv_exeext
3200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3201 /* end confdefs.h. */
3206 FILE *f = fopen ("conftest.out", "w");
3207 return ferror (f) || fclose (f) != 0;
3213 ac_clean_files="$ac_clean_files conftest.out"
3214 # Check that the compiler produces executables we can run. If not, either
3215 # the compiler is broken, or we cross compile.
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3217 $as_echo_n "checking whether we are cross compiling... " >&6; }
3218 if test "$cross_compiling" != yes; then
3219 { { ac_try="$ac_link"
3221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3222 *) ac_try_echo=$ac_try;;
3224 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3225 $as_echo "$ac_try_echo"; } >&5
3226 (eval "$ac_link") 2>&5
3228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3229 test $ac_status = 0; }
3230 if { ac_try='./conftest$ac_cv_exeext'
3231 { { case "(($ac_try" in
3232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233 *) ac_try_echo=$ac_try;;
3235 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3236 $as_echo "$ac_try_echo"; } >&5
3237 (eval "$ac_try") 2>&5
3239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3240 test $ac_status = 0; }; }; then
3243 if test "$cross_compiling" = maybe; then
3246 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3247 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3248 as_fn_error $? "cannot run C++ compiled programs.
3249 If you meant to cross compile, use \`--host'.
3250 See \`config.log' for more details" "$LINENO" 5; }
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3255 $as_echo "$cross_compiling" >&6; }
3257 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3258 ac_clean_files=$ac_clean_files_save
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3260 $as_echo_n "checking for suffix of object files... " >&6; }
3261 if ${ac_cv_objext+:} false; then :
3262 $as_echo_n "(cached) " >&6
3264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3265 /* end confdefs.h. */
3275 rm -f conftest.o conftest.obj
3276 if { { ac_try="$ac_compile"
3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279 *) ac_try_echo=$ac_try;;
3281 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3282 $as_echo "$ac_try_echo"; } >&5
3283 (eval "$ac_compile") 2>&5
3285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3286 test $ac_status = 0; }; then :
3287 for ac_file in conftest.o conftest.obj conftest.*; do
3288 test -f "$ac_file" || continue;
3290 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3291 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3296 $as_echo "$as_me: failed program was:" >&5
3297 sed 's/^/| /' conftest.$ac_ext >&5
3299 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3300 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3301 as_fn_error $? "cannot compute suffix of object files: cannot compile
3302 See \`config.log' for more details" "$LINENO" 5; }
3304 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3307 $as_echo "$ac_cv_objext" >&6; }
3308 OBJEXT=$ac_cv_objext
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3311 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3312 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3313 $as_echo_n "(cached) " >&6
3315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3316 /* end confdefs.h. */
3329 if ac_fn_cxx_try_compile "$LINENO"; then :
3334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3335 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3339 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3340 if test $ac_compiler_gnu = yes; then
3345 ac_test_CXXFLAGS=${CXXFLAGS+set}
3346 ac_save_CXXFLAGS=$CXXFLAGS
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3348 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3349 if ${ac_cv_prog_cxx_g+:} false; then :
3350 $as_echo_n "(cached) " >&6
3352 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3353 ac_cxx_werror_flag=yes
3356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3357 /* end confdefs.h. */
3367 if ac_fn_cxx_try_compile "$LINENO"; then :
3368 ac_cv_prog_cxx_g=yes
3371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3372 /* end confdefs.h. */
3382 if ac_fn_cxx_try_compile "$LINENO"; then :
3385 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3388 /* end confdefs.h. */
3398 if ac_fn_cxx_try_compile "$LINENO"; then :
3399 ac_cv_prog_cxx_g=yes
3401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3406 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3409 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3410 if test "$ac_test_CXXFLAGS" = set; then
3411 CXXFLAGS=$ac_save_CXXFLAGS
3412 elif test $ac_cv_prog_cxx_g = yes; then
3413 if test "$GXX" = yes; then
3419 if test "$GXX" = yes; then
3426 ac_cpp='$CPP $CPPFLAGS'
3427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3430 DEPDIR="${am__leading_dot}deps"
3432 ac_config_commands="$ac_config_commands depfiles"
3435 am_make=${MAKE-make}
3436 cat > confinc << 'END'
3438 @echo this is the am__doit target
3441 # If we don't find an include directive, just comment out the code.
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3443 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3447 # First try GNU make style include.
3448 echo "include confinc" > confmf
3449 # Ignore all kinds of additional output from `make'.
3450 case `$am_make -s -f confmf 2> /dev/null` in #(
3451 *the\ am__doit\ target*)
3457 # Now try BSD make style include.
3458 if test "$am__include" = "#"; then
3459 echo '.include "confinc"' > confmf
3460 case `$am_make -s -f confmf 2> /dev/null` in #(
3461 *the\ am__doit\ target*)
3462 am__include=.include
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3471 $as_echo "$_am_result" >&6; }
3472 rm -f confinc confmf
3474 # Check whether --enable-dependency-tracking was given.
3475 if test "${enable_dependency_tracking+set}" = set; then :
3476 enableval=$enable_dependency_tracking;
3479 if test "x$enable_dependency_tracking" != xno; then
3480 am_depcomp="$ac_aux_dir/depcomp"
3483 if test "x$enable_dependency_tracking" != xno; then
3493 depcc="$CXX" am_compiler_list=
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3496 $as_echo_n "checking dependency style of $depcc... " >&6; }
3497 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3498 $as_echo_n "(cached) " >&6
3500 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3501 # We make a subdir and do the tests there. Otherwise we can end up
3502 # making bogus files that we don't know about and never remove. For
3503 # instance it was reported that on HP-UX the gcc test will end up
3504 # making a dummy file named `D' -- because `-MD' means `put the output
3507 # Copy depcomp to subdir because otherwise we won't find it if we're
3508 # using a relative directory.
3509 cp "$am_depcomp" conftest.dir
3511 # We will build objects and dependencies in a subdirectory because
3512 # it helps to detect inapplicable dependency modes. For instance
3513 # both Tru64's cc and ICC support -MD to output dependencies as a
3514 # side effect of compilation, but ICC will put the dependencies in
3515 # the current directory while Tru64 will put them in the object
3519 am_cv_CXX_dependencies_compiler_type=none
3520 if test "$am_compiler_list" = ""; then
3521 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3524 case " $depcc " in #(
3525 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3528 for depmode in $am_compiler_list; do
3529 # Setup a source with many dependencies, because some compilers
3530 # like to wrap large dependency lists on column 80 (with \), and
3531 # we should not choose a depcomp mode which is confused by this.
3533 # We need to recreate these files for each test, as the compiler may
3534 # overwrite some of them when testing with obscure command lines.
3535 # This happens at least with the AIX C compiler.
3537 for i in 1 2 3 4 5 6; do
3538 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3539 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3540 # Solaris 8's {/usr,}/bin/sh.
3541 touch sub/conftst$i.h
3543 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3545 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3546 # mode. It turns out that the SunPro C++ compiler does not properly
3547 # handle `-M -o', and we need to detect this. Also, some Intel
3548 # versions had trouble with output in subdirs
3549 am__obj=sub/conftest.${OBJEXT-o}
3550 am__minus_obj="-o $am__obj"
3553 # This depmode causes a compiler race in universal mode.
3554 test "$am__universal" = false || continue
3557 # after this tag, mechanisms are not by side-effect, so they'll
3558 # only be used when explicitly requested
3559 if test "x$enable_dependency_tracking" = xyes; then
3565 msvisualcpp | msvcmsys)
3566 # This compiler won't grok `-c -o', but also, the minuso test has
3567 # not run yet. These depmodes are late enough in the game, and
3568 # so weak that their functioning should not be impacted.
3569 am__obj=conftest.${OBJEXT-o}
3574 if depmode=$depmode \
3575 source=sub/conftest.c object=$am__obj \
3576 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3577 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3578 >/dev/null 2>conftest.err &&
3579 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3580 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3581 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3582 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3583 # icc doesn't choke on unknown options, it will just issue warnings
3584 # or remarks (even with -Werror). So we grep stderr for any message
3585 # that says an option was ignored or not supported.
3586 # When given -MP, icc 7.0 and 7.1 complain thusly:
3587 # icc: Command line warning: ignoring option '-M'; no argument required
3588 # The diagnosis changed in icc 8.0:
3589 # icc: Command line remark: option '-MP' not supported
3590 if (grep 'ignoring option' conftest.err ||
3591 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3592 am_cv_CXX_dependencies_compiler_type=$depmode
3601 am_cv_CXX_dependencies_compiler_type=none
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3606 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3607 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3610 test "x$enable_dependency_tracking" != xno \
3611 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3612 am__fastdepCXX_TRUE=
3613 am__fastdepCXX_FALSE='#'
3615 am__fastdepCXX_TRUE='#'
3616 am__fastdepCXX_FALSE=
3621 ac_cpp='$CPP $CPPFLAGS'
3622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3625 if test -n "$ac_tool_prefix"; then
3626 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3627 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3629 $as_echo_n "checking for $ac_word... " >&6; }
3630 if ${ac_cv_prog_CC+:} false; then :
3631 $as_echo_n "(cached) " >&6
3633 if test -n "$CC"; then
3634 ac_cv_prog_CC="$CC" # Let the user override the test.
3636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3640 test -z "$as_dir" && as_dir=.
3641 for ac_exec_ext in '' $ac_executable_extensions; do
3642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3643 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3654 if test -n "$CC"; then
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3656 $as_echo "$CC" >&6; }
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3659 $as_echo "no" >&6; }
3664 if test -z "$ac_cv_prog_CC"; then
3666 # Extract the first word of "gcc", so it can be a program name with args.
3667 set dummy gcc; ac_word=$2
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3669 $as_echo_n "checking for $ac_word... " >&6; }
3670 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3671 $as_echo_n "(cached) " >&6
3673 if test -n "$ac_ct_CC"; then
3674 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3680 test -z "$as_dir" && as_dir=.
3681 for ac_exec_ext in '' $ac_executable_extensions; do
3682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3683 ac_cv_prog_ac_ct_CC="gcc"
3684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3693 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3694 if test -n "$ac_ct_CC"; then
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3696 $as_echo "$ac_ct_CC" >&6; }
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3699 $as_echo "no" >&6; }
3702 if test "x$ac_ct_CC" = x; then
3705 case $cross_compiling:$ac_tool_warned in
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3708 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3709 ac_tool_warned=yes ;;
3717 if test -z "$CC"; then
3718 if test -n "$ac_tool_prefix"; then
3719 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3720 set dummy ${ac_tool_prefix}cc; ac_word=$2
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3722 $as_echo_n "checking for $ac_word... " >&6; }
3723 if ${ac_cv_prog_CC+:} false; then :
3724 $as_echo_n "(cached) " >&6
3726 if test -n "$CC"; then
3727 ac_cv_prog_CC="$CC" # Let the user override the test.
3729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3733 test -z "$as_dir" && as_dir=.
3734 for ac_exec_ext in '' $ac_executable_extensions; do
3735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3736 ac_cv_prog_CC="${ac_tool_prefix}cc"
3737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3747 if test -n "$CC"; then
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3749 $as_echo "$CC" >&6; }
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3752 $as_echo "no" >&6; }
3758 if test -z "$CC"; then
3759 # Extract the first word of "cc", so it can be a program name with args.
3760 set dummy cc; ac_word=$2
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3762 $as_echo_n "checking for $ac_word... " >&6; }
3763 if ${ac_cv_prog_CC+:} false; then :
3764 $as_echo_n "(cached) " >&6
3766 if test -n "$CC"; then
3767 ac_cv_prog_CC="$CC" # Let the user override the test.
3770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3774 test -z "$as_dir" && as_dir=.
3775 for ac_exec_ext in '' $ac_executable_extensions; do
3776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3777 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3778 ac_prog_rejected=yes
3782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3789 if test $ac_prog_rejected = yes; then
3790 # We found a bogon in the path, so make sure we never use it.
3791 set dummy $ac_cv_prog_CC
3793 if test $# != 0; then
3794 # We chose a different compiler from the bogus one.
3795 # However, it has the same basename, so the bogon will be chosen
3796 # first if we set CC to just the basename; use the full file name.
3798 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3804 if test -n "$CC"; then
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3806 $as_echo "$CC" >&6; }
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3809 $as_echo "no" >&6; }
3814 if test -z "$CC"; then
3815 if test -n "$ac_tool_prefix"; then
3816 for ac_prog in cl.exe
3818 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3819 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3821 $as_echo_n "checking for $ac_word... " >&6; }
3822 if ${ac_cv_prog_CC+:} false; then :
3823 $as_echo_n "(cached) " >&6
3825 if test -n "$CC"; then
3826 ac_cv_prog_CC="$CC" # Let the user override the test.
3828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3832 test -z "$as_dir" && as_dir=.
3833 for ac_exec_ext in '' $ac_executable_extensions; do
3834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3835 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3846 if test -n "$CC"; then
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3848 $as_echo "$CC" >&6; }
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3851 $as_echo "no" >&6; }
3855 test -n "$CC" && break
3858 if test -z "$CC"; then
3860 for ac_prog in cl.exe
3862 # Extract the first word of "$ac_prog", so it can be a program name with args.
3863 set dummy $ac_prog; ac_word=$2
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3865 $as_echo_n "checking for $ac_word... " >&6; }
3866 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3867 $as_echo_n "(cached) " >&6
3869 if test -n "$ac_ct_CC"; then
3870 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3876 test -z "$as_dir" && as_dir=.
3877 for ac_exec_ext in '' $ac_executable_extensions; do
3878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3879 ac_cv_prog_ac_ct_CC="$ac_prog"
3880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3889 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3890 if test -n "$ac_ct_CC"; then
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3892 $as_echo "$ac_ct_CC" >&6; }
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3895 $as_echo "no" >&6; }
3899 test -n "$ac_ct_CC" && break
3902 if test "x$ac_ct_CC" = x; then
3905 case $cross_compiling:$ac_tool_warned in
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3908 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3909 ac_tool_warned=yes ;;
3918 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3919 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3920 as_fn_error $? "no acceptable C compiler found in \$PATH
3921 See \`config.log' for more details" "$LINENO" 5; }
3923 # Provide some information about the compiler.
3924 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3927 for ac_option in --version -v -V -qversion; do
3928 { { ac_try="$ac_compiler $ac_option >&5"
3930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3931 *) ac_try_echo=$ac_try;;
3933 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3934 $as_echo "$ac_try_echo"; } >&5
3935 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3937 if test -s conftest.err; then
3939 ... rest of stderr output deleted ...
3940 10q' conftest.err >conftest.er1
3941 cat conftest.er1 >&5
3943 rm -f conftest.er1 conftest.err
3944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3945 test $ac_status = 0; }
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3949 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3950 if ${ac_cv_c_compiler_gnu+:} false; then :
3951 $as_echo_n "(cached) " >&6
3953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3954 /* end confdefs.h. */
3967 if ac_fn_c_try_compile "$LINENO"; then :
3972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3973 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3977 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3978 if test $ac_compiler_gnu = yes; then
3983 ac_test_CFLAGS=${CFLAGS+set}
3984 ac_save_CFLAGS=$CFLAGS
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3986 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3987 if ${ac_cv_prog_cc_g+:} false; then :
3988 $as_echo_n "(cached) " >&6
3990 ac_save_c_werror_flag=$ac_c_werror_flag
3991 ac_c_werror_flag=yes
3994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3995 /* end confdefs.h. */
4005 if ac_fn_c_try_compile "$LINENO"; then :
4009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4010 /* end confdefs.h. */
4020 if ac_fn_c_try_compile "$LINENO"; then :
4023 ac_c_werror_flag=$ac_save_c_werror_flag
4025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4026 /* end confdefs.h. */
4036 if ac_fn_c_try_compile "$LINENO"; then :
4039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4044 ac_c_werror_flag=$ac_save_c_werror_flag
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4047 $as_echo "$ac_cv_prog_cc_g" >&6; }
4048 if test "$ac_test_CFLAGS" = set; then
4049 CFLAGS=$ac_save_CFLAGS
4050 elif test $ac_cv_prog_cc_g = yes; then
4051 if test "$GCC" = yes; then
4057 if test "$GCC" = yes; then
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4064 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4065 if ${ac_cv_prog_cc_c89+:} false; then :
4066 $as_echo_n "(cached) " >&6
4068 ac_cv_prog_cc_c89=no
4070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4071 /* end confdefs.h. */
4074 #include <sys/types.h>
4075 #include <sys/stat.h>
4076 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4077 struct buf { int x; };
4078 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4079 static char *e (p, i)
4085 static char *f (char * (*g) (char **, int), char **p, ...)
4090 s = g (p, va_arg (v,int));
4095 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4096 function prototypes and stuff, but not '\xHH' hex character constants.
4097 These don't provoke an error unfortunately, instead are silently treated
4098 as 'x'. The following induces an error, until -std is added to get
4099 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4100 array size at least. It's necessary to write '\x00'==0 to get something
4101 that's true only with -std. */
4102 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4104 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4105 inside strings and character constants. */
4107 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4109 int test (int i, double x);
4110 struct s1 {int (*f) (int a);};
4111 struct s2 {int (*f) (double a);};
4112 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4118 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4123 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4124 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4126 CC="$ac_save_CC $ac_arg"
4127 if ac_fn_c_try_compile "$LINENO"; then :
4128 ac_cv_prog_cc_c89=$ac_arg
4130 rm -f core conftest.err conftest.$ac_objext
4131 test "x$ac_cv_prog_cc_c89" != "xno" && break
4133 rm -f conftest.$ac_ext
4138 case "x$ac_cv_prog_cc_c89" in
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4141 $as_echo "none needed" >&6; } ;;
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4144 $as_echo "unsupported" >&6; } ;;
4146 CC="$CC $ac_cv_prog_cc_c89"
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4148 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4150 if test "x$ac_cv_prog_cc_c89" != xno; then :
4155 ac_cpp='$CPP $CPPFLAGS'
4156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4160 depcc="$CC" am_compiler_list=
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4163 $as_echo_n "checking dependency style of $depcc... " >&6; }
4164 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4165 $as_echo_n "(cached) " >&6
4167 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4168 # We make a subdir and do the tests there. Otherwise we can end up
4169 # making bogus files that we don't know about and never remove. For
4170 # instance it was reported that on HP-UX the gcc test will end up
4171 # making a dummy file named `D' -- because `-MD' means `put the output
4174 # Copy depcomp to subdir because otherwise we won't find it if we're
4175 # using a relative directory.
4176 cp "$am_depcomp" conftest.dir
4178 # We will build objects and dependencies in a subdirectory because
4179 # it helps to detect inapplicable dependency modes. For instance
4180 # both Tru64's cc and ICC support -MD to output dependencies as a
4181 # side effect of compilation, but ICC will put the dependencies in
4182 # the current directory while Tru64 will put them in the object
4186 am_cv_CC_dependencies_compiler_type=none
4187 if test "$am_compiler_list" = ""; then
4188 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4191 case " $depcc " in #(
4192 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4195 for depmode in $am_compiler_list; do
4196 # Setup a source with many dependencies, because some compilers
4197 # like to wrap large dependency lists on column 80 (with \), and
4198 # we should not choose a depcomp mode which is confused by this.
4200 # We need to recreate these files for each test, as the compiler may
4201 # overwrite some of them when testing with obscure command lines.
4202 # This happens at least with the AIX C compiler.
4204 for i in 1 2 3 4 5 6; do
4205 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4206 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4207 # Solaris 8's {/usr,}/bin/sh.
4208 touch sub/conftst$i.h
4210 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4212 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4213 # mode. It turns out that the SunPro C++ compiler does not properly
4214 # handle `-M -o', and we need to detect this. Also, some Intel
4215 # versions had trouble with output in subdirs
4216 am__obj=sub/conftest.${OBJEXT-o}
4217 am__minus_obj="-o $am__obj"
4220 # This depmode causes a compiler race in universal mode.
4221 test "$am__universal" = false || continue
4224 # after this tag, mechanisms are not by side-effect, so they'll
4225 # only be used when explicitly requested
4226 if test "x$enable_dependency_tracking" = xyes; then
4232 msvisualcpp | msvcmsys)
4233 # This compiler won't grok `-c -o', but also, the minuso test has
4234 # not run yet. These depmodes are late enough in the game, and
4235 # so weak that their functioning should not be impacted.
4236 am__obj=conftest.${OBJEXT-o}
4241 if depmode=$depmode \
4242 source=sub/conftest.c object=$am__obj \
4243 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4244 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4245 >/dev/null 2>conftest.err &&
4246 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4247 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4248 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4249 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4250 # icc doesn't choke on unknown options, it will just issue warnings
4251 # or remarks (even with -Werror). So we grep stderr for any message
4252 # that says an option was ignored or not supported.
4253 # When given -MP, icc 7.0 and 7.1 complain thusly:
4254 # icc: Command line warning: ignoring option '-M'; no argument required
4255 # The diagnosis changed in icc 8.0:
4256 # icc: Command line remark: option '-MP' not supported
4257 if (grep 'ignoring option' conftest.err ||
4258 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4259 am_cv_CC_dependencies_compiler_type=$depmode
4268 am_cv_CC_dependencies_compiler_type=none
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4273 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4274 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4277 test "x$enable_dependency_tracking" != xno \
4278 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4280 am__fastdepCC_FALSE='#'
4282 am__fastdepCC_TRUE='#'
4283 am__fastdepCC_FALSE=
4289 if test -z "$ansi"; then
4290 msg="for C compiler warning flags"
4292 msg="for C compiler warning and ANSI conformance flags"
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $msg" >&5
4295 $as_echo_n "checking $msg... " >&6; }
4296 if ${vl_cv_prog_cc_warnings+:} false; then :
4297 $as_echo_n "(cached) " >&6
4300 if test -n "$CC"; then
4301 cat > conftest.c <<EOF
4302 int main(int argc, char **argv) { return 0; }
4305 if test "$GCC" = "yes"; then
4306 if test -z "$ansi"; then
4307 vl_cv_prog_cc_warnings="-Wall"
4309 vl_cv_prog_cc_warnings="-Wall -ansi -pedantic"
4313 elif $CC -V 2>&1 | grep -i "WorkShop" > /dev/null 2>&1 &&
4314 $CC -c -v -Xc conftest.c > /dev/null 2>&1 &&
4315 test -f conftest.o; then
4316 if test -z "$ansi"; then
4317 vl_cv_prog_cc_warnings="-v"
4319 vl_cv_prog_cc_warnings="-v -Xc"
4322 elif $CC -V 2>&1 | grep -i "Digital UNIX Compiler" > /dev/null 2>&1 &&
4323 $CC -c -verbose -w0 -warnprotos -std1 conftest.c > /dev/null 2>&1 &&
4324 test -f conftest.o; then
4325 if test -z "$ansi"; then
4326 vl_cv_prog_cc_warnings="-verbose -w0 -warnprotos"
4328 vl_cv_prog_cc_warnings="-verbose -w0 -warnprotos -std1"
4331 elif $CC 2>&1 | grep -i "C for AIX Compiler" > /dev/null 2>&1 &&
4332 $CC -c -qlanglvl=ansi -qinfo=all conftest.c > /dev/null 2>&1 &&
4333 test -f conftest.o; then
4334 if test -z "$ansi"; then
4335 vl_cv_prog_cc_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd"
4337 vl_cv_prog_cc_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd -qlanglvl=ansi"
4340 elif $CC -version 2>&1 | grep -i "MIPSpro Compilers" > /dev/null 2>&1 &&
4341 $CC -c -fullwarn -ansi -ansiE conftest.c > /dev/null 2>&1 &&
4342 test -f conftest.o; then
4343 if test -z "$ansi"; then
4344 vl_cv_prog_cc_warnings="-fullwarn"
4346 vl_cv_prog_cc_warnings="-fullwarn -ansi -ansiE"
4349 elif what $CC 2>&1 | grep -i "HP C Compiler" > /dev/null 2>&1 &&
4350 $CC -c -Aa +w1 conftest.c > /dev/null 2>&1 &&
4351 test -f conftest.o; then
4352 if test -z "$ansi"; then
4353 vl_cv_prog_cc_warnings="+w1"
4355 vl_cv_prog_cc_warnings="+w1 -Aa"
4358 elif $CC -V 2>&1 | grep "/SX" > /dev/null 2>&1 &&
4359 $CC -c -pvctl,fullmsg -Xc conftest.c > /dev/null 2>&1 &&
4360 test -f conftest.o; then
4361 if test -z "$ansi"; then
4362 vl_cv_prog_cc_warnings="-pvctl,fullmsg"
4364 vl_cv_prog_cc_warnings="-pvctl,fullmsg -Xc"
4367 elif $CC -V 2>&1 | grep -i "Cray" > /dev/null 2>&1 &&
4368 $CC -c -h msglevel 2 conftest.c > /dev/null 2>&1 &&
4369 test -f conftest.o; then
4370 if test -z "$ansi"; then
4371 vl_cv_prog_cc_warnings="-h msglevel 2"
4373 vl_cv_prog_cc_warnings="-h msglevel 2 -h conform"
4376 elif $CC -V 2>&1 | grep -i "Intel(R) C++ Compiler" > /dev/null 2>&1 &&
4377 $CC -c -Wall -wd981,1418,193 conftest.c > /dev/null 2>&1 &&
4378 test -f conftest.o; then
4379 if test -z "$ansi"; then
4380 vl_cv_prog_cc_warnings="-Wall -wd981,1418,193"
4382 vl_cv_prog_cc_warnings="-Wall -wd981,1418,193 -Xc"
4388 if test -n "$vl_cv_prog_cc_warnings"; then
4389 VL_WARN_CFLAGS="$vl_cv_prog_cc_warnings"
4391 vl_cv_prog_cc_warnings="unknown"
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_prog_cc_warnings" >&5
4396 $as_echo "$vl_cv_prog_cc_warnings" >&6; }
4398 CFLAGS="$CFLAGS $VL_WARN_CFLAGS"
4399 CXXFLAGS="$CXXFLAGS $VL_WARN_CFLAGS"
4401 ac_cpp='$CXXCPP $CPPFLAGS'
4402 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4403 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4404 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4407 # Enable useable exception handler if it exists.
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports exceptions" >&5
4410 $as_echo_n "checking whether the compiler supports exceptions... " >&6; }
4411 if ${ac_cv_cxx_exceptions+:} false; then :
4412 $as_echo_n "(cached) " >&6
4416 ac_cpp='$CXXCPP $CPPFLAGS'
4417 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4418 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4419 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4422 /* end confdefs.h. */
4427 try { throw 1; } catch (int i) { return i; }
4432 if ac_fn_cxx_try_compile "$LINENO"; then :
4433 ac_cv_cxx_exceptions=yes
4435 ac_cv_cxx_exceptions=no
4437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4439 ac_cpp='$CXXCPP $CPPFLAGS'
4440 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4441 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4442 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_exceptions" >&5
4447 $as_echo "$ac_cv_cxx_exceptions" >&6; }
4448 if test "$ac_cv_cxx_exceptions" = yes; then
4450 $as_echo "#define HAVE_EXCEPTIONS /**/" >>confdefs.h
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
4455 $as_echo_n "checking whether the compiler implements namespaces... " >&6; }
4456 if ${ac_cv_cxx_namespaces+:} false; then :
4457 $as_echo_n "(cached) " >&6
4461 ac_cpp='$CXXCPP $CPPFLAGS'
4462 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4463 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4464 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4467 /* end confdefs.h. */
4468 namespace Outer { namespace Inner { int i = 0; }}
4472 using namespace Outer::Inner; return i;
4477 if ac_fn_cxx_try_compile "$LINENO"; then :
4478 ac_cv_cxx_namespaces=yes
4480 ac_cv_cxx_namespaces=no
4482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4484 ac_cpp='$CXXCPP $CPPFLAGS'
4485 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4486 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4487 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_namespaces" >&5
4492 $as_echo "$ac_cv_cxx_namespaces" >&6; }
4493 if test "$ac_cv_cxx_namespaces" = yes; then
4495 $as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler has __gnu_cxx::__verbose_terminate_handler" >&5
4500 $as_echo_n "checking whether the compiler has __gnu_cxx::__verbose_terminate_handler... " >&6; }
4501 if ${ac_cv_verbose_terminate_handler+:} false; then :
4502 $as_echo_n "(cached) " >&6
4509 ac_cpp='$CXXCPP $CPPFLAGS'
4510 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4511 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4512 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4515 /* end confdefs.h. */
4516 #include <exception>
4520 std::set_terminate(__gnu_cxx::__verbose_terminate_handler);
4525 if ac_fn_cxx_try_compile "$LINENO"; then :
4526 ac_cv_verbose_terminate_handler=yes
4528 ac_cv_verbose_terminate_handler=no
4531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4533 ac_cpp='$CXXCPP $CPPFLAGS'
4534 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4535 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4536 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_verbose_terminate_handler" >&5
4541 $as_echo "$ac_cv_verbose_terminate_handler" >&6; }
4542 if test "$ac_cv_verbose_terminate_handler" = yes; then
4544 $as_echo "#define HAVE_VERBOSE_TERMINATE_HANDLER /**/" >>confdefs.h
4549 # Try and disable all inlining; gdb shows the inlined function in a
4550 # stack trace and you lose the caller's frame. Bad for debugging.
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-default-inline" >&5
4553 $as_echo_n "checking for -fno-default-inline... " >&6; }
4554 if ${pike_cv_option_fno_default_inline+:} false; then :
4555 $as_echo_n "(cached) " >&6
4558 OLD_CPPFLAGS="$CPPFLAGS"
4559 CPPFLAGS="$OLD_CPPFLAGS -fno-default-inline"
4560 old_ac_link="$ac_link"
4561 ac_link="$old_ac_link 2>conftezt.out.2"
4562 if test "$cross_compiling" = yes; then :
4564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4565 /* end confdefs.h. */
4575 if ac_fn_cxx_try_link "$LINENO"; then :
4576 pike_cv_option_fno_default_inline=yes
4578 pike_cv_option_fno_default_inline=no
4580 rm -f core conftest.err conftest.$ac_objext \
4581 conftest$ac_exeext conftest.$ac_ext
4584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4585 /* end confdefs.h. */
4588 int main(int argc, char **argv)
4590 /* The following code triggs gcc:s generation of aline opcodes,
4591 * which some versions of as does not support.
4593 if (argc > 0) argc = 0;
4598 if ac_fn_cxx_try_run "$LINENO"; then :
4599 pike_cv_option_fno_default_inline=yes
4601 pike_cv_option_fno_default_inline=no
4603 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4604 conftest.$ac_objext conftest.beam conftest.$ac_ext
4607 if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
4608 pike_cv_option_fno_default_inline=no
4609 elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
4610 # cc/HPUX says the following regarding -q64:
4612 # cc: warning 422: Unknown option "6" ignored.
4613 # cc: warning 422: Unknown option "4" ignored.
4614 pike_cv_option_fno_default_inline=no
4615 elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
4616 # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
4620 # *** The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
4622 pike_cv_option_fno_default_inline=no
4623 elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
4624 # cc/AIX says the following regarding +O3:
4626 # cc: 1501-228 input file +O3 not found
4627 pike_cv_option_fno_default_inline=no
4628 elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
4629 # gcc/AIX says the following regarding -fpic:
4631 # cc1: warning: -fpic ignored (all code is position independent)
4632 pike_cv_option_fno_default_inline=no
4635 CPPFLAGS="$OLD_CPPFLAGS"
4636 ac_link="$old_ac_link"
4641 if test x"$pike_cv_option_fno_default_inline" = "xyes" ; then
4642 CXXFLAGS="$CXXFLAGS -fno-default-inline"
4645 CFLAGS="$CFLAGS -fno-default-inline"
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4649 $as_echo "yes" >&6; }
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4653 $as_echo "no" >&6; }
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-inline" >&5
4659 $as_echo_n "checking for -fno-inline... " >&6; }
4660 if ${pike_cv_option_fno_inline+:} false; then :
4661 $as_echo_n "(cached) " >&6
4664 OLD_CPPFLAGS="$CPPFLAGS"
4665 CPPFLAGS="$OLD_CPPFLAGS -fno-inline"
4666 old_ac_link="$ac_link"
4667 ac_link="$old_ac_link 2>conftezt.out.2"
4668 if test "$cross_compiling" = yes; then :
4670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4671 /* end confdefs.h. */
4681 if ac_fn_cxx_try_link "$LINENO"; then :
4682 pike_cv_option_fno_inline=yes
4684 pike_cv_option_fno_inline=no
4686 rm -f core conftest.err conftest.$ac_objext \
4687 conftest$ac_exeext conftest.$ac_ext
4690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4691 /* end confdefs.h. */
4694 int main(int argc, char **argv)
4696 /* The following code triggs gcc:s generation of aline opcodes,
4697 * which some versions of as does not support.
4699 if (argc > 0) argc = 0;
4704 if ac_fn_cxx_try_run "$LINENO"; then :
4705 pike_cv_option_fno_inline=yes
4707 pike_cv_option_fno_inline=no
4709 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4710 conftest.$ac_objext conftest.beam conftest.$ac_ext
4713 if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
4714 pike_cv_option_fno_inline=no
4715 elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
4716 # cc/HPUX says the following regarding -q64:
4718 # cc: warning 422: Unknown option "6" ignored.
4719 # cc: warning 422: Unknown option "4" ignored.
4720 pike_cv_option_fno_inline=no
4721 elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
4722 # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
4726 # *** The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
4728 pike_cv_option_fno_inline=no
4729 elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
4730 # cc/AIX says the following regarding +O3:
4732 # cc: 1501-228 input file +O3 not found
4733 pike_cv_option_fno_inline=no
4734 elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
4735 # gcc/AIX says the following regarding -fpic:
4737 # cc1: warning: -fpic ignored (all code is position independent)
4738 pike_cv_option_fno_inline=no
4741 CPPFLAGS="$OLD_CPPFLAGS"
4742 ac_link="$old_ac_link"
4747 if test x"$pike_cv_option_fno_inline" = "xyes" ; then
4748 CXXFLAGS="$CXXFLAGS -fno-inline"
4751 CFLAGS="$CFLAGS -fno-inline"
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4755 $as_echo "yes" >&6; }
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4759 $as_echo "no" >&6; }
4768 # Extract the first word of "spamc", so it can be a program name with args.
4769 set dummy spamc; ac_word=$2
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4771 $as_echo_n "checking for $ac_word... " >&6; }
4772 if ${ac_cv_path_SPAMC+:} false; then :
4773 $as_echo_n "(cached) " >&6
4777 ac_cv_path_SPAMC="$SPAMC" # Let the user override the test with a path.
4780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4784 test -z "$as_dir" && as_dir=.
4785 for ac_exec_ext in '' $ac_executable_extensions; do
4786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4787 ac_cv_path_SPAMC="$as_dir/$ac_word$ac_exec_ext"
4788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4798 SPAMC=$ac_cv_path_SPAMC
4799 if test -n "$SPAMC"; then
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPAMC" >&5
4801 $as_echo "$SPAMC" >&6; }
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4804 $as_echo "no" >&6; }
4808 if test "x$SPAMC" = x ; then
4809 as_fn_error $? "Spamc not found. Is SpamAssassin installed?" "$LINENO" 5
4813 cat >>confdefs.h <<_ACEOF
4814 #define SPAMC "$SPAMC"
4818 # Search for sendmail
4819 # Extract the first word of "sendmail", so it can be a program name with args.
4820 set dummy sendmail; ac_word=$2
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4822 $as_echo_n "checking for $ac_word... " >&6; }
4823 if ${ac_cv_path_SENDMAIL+:} false; then :
4824 $as_echo_n "(cached) " >&6
4828 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
4831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4832 as_dummy="$PATH:/usr/sbin:/usr/lib"
4833 for as_dir in $as_dummy
4836 test -z "$as_dir" && as_dir=.
4837 for ac_exec_ext in '' $ac_executable_extensions; do
4838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4839 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
4840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4850 SENDMAIL=$ac_cv_path_SENDMAIL
4851 if test -n "$SENDMAIL"; then
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5
4853 $as_echo "$SENDMAIL" >&6; }
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4856 $as_echo "no" >&6; }
4860 if test "x$SENDMAIL" = x ; then
4861 as_fn_error $? "Sendmail not found. Check your PATH variable" "$LINENO" 5
4865 cat >>confdefs.h <<_ACEOF
4866 #define SENDMAIL "$SENDMAIL"
4870 # Check nroff and the options it supports
4871 for ac_prog in nroff
4873 # Extract the first word of "$ac_prog", so it can be a program name with args.
4874 set dummy $ac_prog; ac_word=$2
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4876 $as_echo_n "checking for $ac_word... " >&6; }
4877 if ${ac_cv_prog_NROFF+:} false; then :
4878 $as_echo_n "(cached) " >&6
4880 if test -n "$NROFF"; then
4881 ac_cv_prog_NROFF="$NROFF" # Let the user override the test.
4883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4887 test -z "$as_dir" && as_dir=.
4888 for ac_exec_ext in '' $ac_executable_extensions; do
4889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4890 ac_cv_prog_NROFF="$ac_prog"
4891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4900 NROFF=$ac_cv_prog_NROFF
4901 if test -n "$NROFF"; then
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
4903 $as_echo "$NROFF" >&6; }
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4906 $as_echo "no" >&6; }
4910 test -n "$NROFF" && break
4915 if test "x$NROFF" != x; then
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mdoc nroff macros" >&5
4917 $as_echo_n "checking for mdoc nroff macros... " >&6; }
4918 if ${ac_cv_mdoc+:} false; then :
4919 $as_echo_n "(cached) " >&6
4922 nroff -mdoc < /dev/null > /dev/null 2>&1
4923 if test $? = 0; then
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MDOC" >&5
4933 $as_echo "$MDOC" >&6; }
4936 if test $MDOC = yes; then
4945 # Search for pthreads, and make them the default (have to do it here else
4946 # the -lmilter check will fail to link)
4947 # Make sure we can run config.sub.
4948 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4949 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4952 $as_echo_n "checking build system type... " >&6; }
4953 if ${ac_cv_build+:} false; then :
4954 $as_echo_n "(cached) " >&6
4956 ac_build_alias=$build_alias
4957 test "x$ac_build_alias" = x &&
4958 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4959 test "x$ac_build_alias" = x &&
4960 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4961 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4962 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4966 $as_echo "$ac_cv_build" >&6; }
4967 case $ac_cv_build in
4969 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4972 ac_save_IFS=$IFS; IFS='-'
4978 # Remember, the first character of IFS is used to create $*,
4979 # except with old shells:
4982 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4986 $as_echo_n "checking host system type... " >&6; }
4987 if ${ac_cv_host+:} false; then :
4988 $as_echo_n "(cached) " >&6
4990 if test "x$host_alias" = x; then
4991 ac_cv_host=$ac_cv_build
4993 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4994 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4999 $as_echo "$ac_cv_host" >&6; }
5002 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5005 ac_save_IFS=$IFS; IFS='-'
5011 # Remember, the first character of IFS is used to create $*,
5012 # except with old shells:
5015 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5023 ac_cpp='$CPP $CPPFLAGS'
5024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5030 # We used to check for pthread.h first, but this fails if pthread.h
5031 # requires special compiler flags (e.g. on True64 or Sequent).
5032 # It gets checked for in the link test anyway.
5034 # First of all, check if the user has set any of the PTHREAD_LIBS,
5035 # etcetera environment variables, and if threads linking works using
5037 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
5038 save_CFLAGS="$CFLAGS"
5039 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5041 LIBS="$PTHREAD_LIBS $LIBS"
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
5043 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
5044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5045 /* end confdefs.h. */
5047 /* Override any GCC internal prototype to avoid an error.
5048 Use char because int might match the return type of a GCC
5049 builtin and then its argument prototype would still apply. */
5053 char pthread_join ();
5057 return pthread_join ();
5062 if ac_fn_c_try_link "$LINENO"; then :
5065 rm -f core conftest.err conftest.$ac_objext \
5066 conftest$ac_exeext conftest.$ac_ext
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
5068 $as_echo "$acx_pthread_ok" >&6; }
5069 if test x"$acx_pthread_ok" = xno; then
5074 CFLAGS="$save_CFLAGS"
5077 # We must check for the threads library under a number of different
5078 # names; the ordering is very important because some systems
5079 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
5080 # libraries is broken (non-POSIX).
5082 # Create a list of thread flags to try. Items starting with a "-" are
5083 # C compiler flags, and other items are library names, except for "none"
5084 # which indicates that we try without any flags at all, and "pthread-config"
5085 # which is a program returning the flags for the Pth emulation library.
5087 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
5089 # The ordering *is* (sometimes) important. Some notes on the
5090 # individual items follow:
5092 # pthreads: AIX (must check this before -lpthread)
5093 # none: in case threads are in libc; should be tried before -Kthread and
5094 # other compiler flags to prevent continual compiler warnings
5095 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
5096 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
5097 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
5098 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
5099 # -pthreads: Solaris/gcc
5100 # -mthreads: Mingw32/gcc, Lynx/gcc
5101 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
5102 # doesn't hurt to check since this sometimes defines pthreads too;
5103 # also defines -D_REENTRANT)
5104 # pthread: Linux, etcetera
5105 # --thread-safe: KAI C++
5106 # pthread-config: use pthread-config program (for GNU Pth library)
5108 case "${host_cpu}-${host_os}" in
5111 # On Solaris (at least, for some versions), libc contains stubbed
5112 # (non-functional) versions of the pthreads routines, so link-based
5113 # tests will erroneously succeed. (We need to link with -pthread or
5114 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
5115 # a function called by this macro, so we could check for that, but
5116 # who knows whether they'll stub that too in a future libc.) So,
5117 # we'll just look for -pthreads and -lpthread first:
5119 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
5123 if test x"$acx_pthread_ok" = xno; then
5124 for flag in $acx_pthread_flags; do
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
5129 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
5134 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
5135 PTHREAD_CFLAGS="$flag"
5139 # Extract the first word of "pthread-config", so it can be a program name with args.
5140 set dummy pthread-config; ac_word=$2
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5142 $as_echo_n "checking for $ac_word... " >&6; }
5143 if ${ac_cv_prog_acx_pthread_config+:} false; then :
5144 $as_echo_n "(cached) " >&6
5146 if test -n "$acx_pthread_config"; then
5147 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
5149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5153 test -z "$as_dir" && as_dir=.
5154 for ac_exec_ext in '' $ac_executable_extensions; do
5155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5156 ac_cv_prog_acx_pthread_config="yes"
5157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5164 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
5167 acx_pthread_config=$ac_cv_prog_acx_pthread_config
5168 if test -n "$acx_pthread_config"; then
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
5170 $as_echo "$acx_pthread_config" >&6; }
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5173 $as_echo "no" >&6; }
5177 if test x"$acx_pthread_config" = xno; then continue; fi
5178 PTHREAD_CFLAGS="`pthread-config --cflags`"
5179 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
5184 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
5185 PTHREAD_LIBS="-l$flag"
5190 save_CFLAGS="$CFLAGS"
5191 LIBS="$PTHREAD_LIBS $LIBS"
5192 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5194 # Check for various functions. We must include pthread.h,
5195 # since some functions may be macros. (On the Sequent, we
5196 # need a special flag -Kthread to make this header compile.)
5197 # We check for pthread_join because it is in -lpthread on IRIX
5198 # while pthread_create is in libc. We check for pthread_attr_init
5199 # due to DEC craziness with -lpthreads. We check for
5200 # pthread_cleanup_push because it is one of the few pthread
5201 # functions on Solaris that doesn't have a non-functional libc stub.
5202 # We try pthread_create on general principles.
5203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5204 /* end confdefs.h. */
5205 #include <pthread.h>
5209 pthread_t th; pthread_join(th, 0);
5210 pthread_attr_init(0); pthread_cleanup_push(0, 0);
5211 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
5216 if ac_fn_c_try_link "$LINENO"; then :
5219 rm -f core conftest.err conftest.$ac_objext \
5220 conftest$ac_exeext conftest.$ac_ext
5223 CFLAGS="$save_CFLAGS"
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
5226 $as_echo "$acx_pthread_ok" >&6; }
5227 if test "x$acx_pthread_ok" = xyes; then
5236 # Various other checks:
5237 if test "x$acx_pthread_ok" = xyes; then
5239 LIBS="$PTHREAD_LIBS $LIBS"
5240 save_CFLAGS="$CFLAGS"
5241 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5243 # Detect AIX lossage: threads are created detached by default
5244 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
5246 $as_echo_n "checking for joinable pthread attribute... " >&6; }
5247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5248 /* end confdefs.h. */
5249 #include <pthread.h>
5253 int attr=PTHREAD_CREATE_JOINABLE;
5258 if ac_fn_c_try_link "$LINENO"; then :
5259 ok=PTHREAD_CREATE_JOINABLE
5263 rm -f core conftest.err conftest.$ac_objext \
5264 conftest$ac_exeext conftest.$ac_ext
5265 if test x"$ok" = xunknown; then
5266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5267 /* end confdefs.h. */
5268 #include <pthread.h>
5272 int attr=PTHREAD_CREATE_UNDETACHED;
5277 if ac_fn_c_try_link "$LINENO"; then :
5278 ok=PTHREAD_CREATE_UNDETACHED
5282 rm -f core conftest.err conftest.$ac_objext \
5283 conftest$ac_exeext conftest.$ac_ext
5285 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
5287 $as_echo "#define PTHREAD_CREATE_JOINABLE \$ok" >>confdefs.h
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ok}" >&5
5291 $as_echo "${ok}" >&6; }
5292 if test x"$ok" = xunknown; then
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: we do not know how to create joinable pthreads" >&5
5294 $as_echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
5298 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
5300 case "${host_cpu}-${host_os}" in
5301 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
5302 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
5305 $as_echo "${flag}" >&6; }
5306 if test "x$flag" != xno; then
5307 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
5311 CFLAGS="$save_CFLAGS"
5313 # More AIX lossage: must compile with cc_r
5314 # Extract the first word of "cc_r", so it can be a program name with args.
5315 set dummy cc_r; ac_word=$2
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5317 $as_echo_n "checking for $ac_word... " >&6; }
5318 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
5319 $as_echo_n "(cached) " >&6
5321 if test -n "$PTHREAD_CC"; then
5322 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
5324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5328 test -z "$as_dir" && as_dir=.
5329 for ac_exec_ext in '' $ac_executable_extensions; do
5330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5331 ac_cv_prog_PTHREAD_CC="cc_r"
5332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5339 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
5342 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
5343 if test -n "$PTHREAD_CC"; then
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
5345 $as_echo "$PTHREAD_CC" >&6; }
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5348 $as_echo "no" >&6; }
5360 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
5361 if test x"$acx_pthread_ok" = xyes; then
5363 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
5368 as_fn_error $? "Cannot determine how to use pthreads" "$LINENO" 5
5371 ac_cpp='$CXXCPP $CPPFLAGS'
5372 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5373 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5374 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5377 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5378 CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
5379 LIBS="$LIBS $PTHREAD_LIBS"
5381 # Checks for header files.
5383 ac_cpp='$CXXCPP $CPPFLAGS'
5384 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5385 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5386 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5388 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5389 if test -z "$CXXCPP"; then
5390 if ${ac_cv_prog_CXXCPP+:} false; then :
5391 $as_echo_n "(cached) " >&6
5393 # Double quotes because CXXCPP needs to be expanded
5394 for CXXCPP in "$CXX -E" "/lib/cpp"
5397 for ac_cxx_preproc_warn_flag in '' yes
5399 # Use a header file that comes with gcc, so configuring glibc
5400 # with a fresh cross-compiler works.
5401 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5402 # <limits.h> exists even on freestanding compilers.
5403 # On the NeXT, cc -E runs the code through the compiler's parser,
5404 # not just through cpp. "Syntax error" is here to catch this case.
5405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5406 /* end confdefs.h. */
5408 # include <limits.h>
5410 # include <assert.h>
5414 if ac_fn_cxx_try_cpp "$LINENO"; then :
5417 # Broken: fails on valid input.
5420 rm -f conftest.err conftest.i conftest.$ac_ext
5422 # OK, works on sane cases. Now check whether nonexistent headers
5423 # can be detected and how.
5424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5425 /* end confdefs.h. */
5426 #include <ac_nonexistent.h>
5428 if ac_fn_cxx_try_cpp "$LINENO"; then :
5429 # Broken: success on invalid input.
5432 # Passes both tests.
5436 rm -f conftest.err conftest.i conftest.$ac_ext
5439 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5440 rm -f conftest.i conftest.err conftest.$ac_ext
5441 if $ac_preproc_ok; then :
5446 ac_cv_prog_CXXCPP=$CXXCPP
5449 CXXCPP=$ac_cv_prog_CXXCPP
5451 ac_cv_prog_CXXCPP=$CXXCPP
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5454 $as_echo "$CXXCPP" >&6; }
5456 for ac_cxx_preproc_warn_flag in '' yes
5458 # Use a header file that comes with gcc, so configuring glibc
5459 # with a fresh cross-compiler works.
5460 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5461 # <limits.h> exists even on freestanding compilers.
5462 # On the NeXT, cc -E runs the code through the compiler's parser,
5463 # not just through cpp. "Syntax error" is here to catch this case.
5464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5465 /* end confdefs.h. */
5467 # include <limits.h>
5469 # include <assert.h>
5473 if ac_fn_cxx_try_cpp "$LINENO"; then :
5476 # Broken: fails on valid input.
5479 rm -f conftest.err conftest.i conftest.$ac_ext
5481 # OK, works on sane cases. Now check whether nonexistent headers
5482 # can be detected and how.
5483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5484 /* end confdefs.h. */
5485 #include <ac_nonexistent.h>
5487 if ac_fn_cxx_try_cpp "$LINENO"; then :
5488 # Broken: success on invalid input.
5491 # Passes both tests.
5495 rm -f conftest.err conftest.i conftest.$ac_ext
5498 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5499 rm -f conftest.i conftest.err conftest.$ac_ext
5500 if $ac_preproc_ok; then :
5503 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5504 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5505 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5506 See \`config.log' for more details" "$LINENO" 5; }
5510 ac_cpp='$CXXCPP $CPPFLAGS'
5511 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5512 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5513 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5517 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5518 if ${ac_cv_path_GREP+:} false; then :
5519 $as_echo_n "(cached) " >&6
5521 if test -z "$GREP"; then
5522 ac_path_GREP_found=false
5523 # Loop through the user's path and test for each of PROGNAME-LIST
5524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5525 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5528 test -z "$as_dir" && as_dir=.
5529 for ac_prog in grep ggrep; do
5530 for ac_exec_ext in '' $ac_executable_extensions; do
5531 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5532 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5533 # Check for GNU ac_path_GREP and select it if it is found.
5534 # Check for GNU $ac_path_GREP
5535 case `"$ac_path_GREP" --version 2>&1` in
5537 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5540 $as_echo_n 0123456789 >"conftest.in"
5543 cat "conftest.in" "conftest.in" >"conftest.tmp"
5544 mv "conftest.tmp" "conftest.in"
5545 cp "conftest.in" "conftest.nl"
5546 $as_echo 'GREP' >> "conftest.nl"
5547 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5548 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5549 as_fn_arith $ac_count + 1 && ac_count=$as_val
5550 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5551 # Best one so far, save it but keep looking for a better one
5552 ac_cv_path_GREP="$ac_path_GREP"
5553 ac_path_GREP_max=$ac_count
5555 # 10*(2^10) chars as input seems more than enough
5556 test $ac_count -gt 10 && break
5558 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5561 $ac_path_GREP_found && break 3
5566 if test -z "$ac_cv_path_GREP"; then
5567 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5570 ac_cv_path_GREP=$GREP
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5575 $as_echo "$ac_cv_path_GREP" >&6; }
5576 GREP="$ac_cv_path_GREP"
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5580 $as_echo_n "checking for egrep... " >&6; }
5581 if ${ac_cv_path_EGREP+:} false; then :
5582 $as_echo_n "(cached) " >&6
5584 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5585 then ac_cv_path_EGREP="$GREP -E"
5587 if test -z "$EGREP"; then
5588 ac_path_EGREP_found=false
5589 # Loop through the user's path and test for each of PROGNAME-LIST
5590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5591 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5594 test -z "$as_dir" && as_dir=.
5595 for ac_prog in egrep; do
5596 for ac_exec_ext in '' $ac_executable_extensions; do
5597 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5598 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5599 # Check for GNU ac_path_EGREP and select it if it is found.
5600 # Check for GNU $ac_path_EGREP
5601 case `"$ac_path_EGREP" --version 2>&1` in
5603 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5606 $as_echo_n 0123456789 >"conftest.in"
5609 cat "conftest.in" "conftest.in" >"conftest.tmp"
5610 mv "conftest.tmp" "conftest.in"
5611 cp "conftest.in" "conftest.nl"
5612 $as_echo 'EGREP' >> "conftest.nl"
5613 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5614 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5615 as_fn_arith $ac_count + 1 && ac_count=$as_val
5616 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5617 # Best one so far, save it but keep looking for a better one
5618 ac_cv_path_EGREP="$ac_path_EGREP"
5619 ac_path_EGREP_max=$ac_count
5621 # 10*(2^10) chars as input seems more than enough
5622 test $ac_count -gt 10 && break
5624 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5627 $ac_path_EGREP_found && break 3
5632 if test -z "$ac_cv_path_EGREP"; then
5633 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5636 ac_cv_path_EGREP=$EGREP
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5642 $as_echo "$ac_cv_path_EGREP" >&6; }
5643 EGREP="$ac_cv_path_EGREP"
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5647 $as_echo_n "checking for ANSI C header files... " >&6; }
5648 if ${ac_cv_header_stdc+:} false; then :
5649 $as_echo_n "(cached) " >&6
5651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5652 /* end confdefs.h. */
5666 if ac_fn_cxx_try_compile "$LINENO"; then :
5667 ac_cv_header_stdc=yes
5669 ac_cv_header_stdc=no
5671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5673 if test $ac_cv_header_stdc = yes; then
5674 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5676 /* end confdefs.h. */
5680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5681 $EGREP "memchr" >/dev/null 2>&1; then :
5684 ac_cv_header_stdc=no
5690 if test $ac_cv_header_stdc = yes; then
5691 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5693 /* end confdefs.h. */
5697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5698 $EGREP "free" >/dev/null 2>&1; then :
5701 ac_cv_header_stdc=no
5707 if test $ac_cv_header_stdc = yes; then
5708 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5709 if test "$cross_compiling" = yes; then :
5712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5713 /* end confdefs.h. */
5716 #if ((' ' & 0x0FF) == 0x020)
5717 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5718 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5720 # define ISLOWER(c) \
5721 (('a' <= (c) && (c) <= 'i') \
5722 || ('j' <= (c) && (c) <= 'r') \
5723 || ('s' <= (c) && (c) <= 'z'))
5724 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5727 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5732 for (i = 0; i < 256; i++)
5733 if (XOR (islower (i), ISLOWER (i))
5734 || toupper (i) != TOUPPER (i))
5739 if ac_fn_cxx_try_run "$LINENO"; then :
5742 ac_cv_header_stdc=no
5744 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5745 conftest.$ac_objext conftest.beam conftest.$ac_ext
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5751 $as_echo "$ac_cv_header_stdc" >&6; }
5752 if test $ac_cv_header_stdc = yes; then
5754 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
5759 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
5760 if ${ac_cv_header_sys_wait_h+:} false; then :
5761 $as_echo_n "(cached) " >&6
5763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5764 /* end confdefs.h. */
5765 #include <sys/types.h>
5766 #include <sys/wait.h>
5768 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
5771 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5779 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5784 if ac_fn_cxx_try_compile "$LINENO"; then :
5785 ac_cv_header_sys_wait_h=yes
5787 ac_cv_header_sys_wait_h=no
5789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
5792 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
5793 if test $ac_cv_header_sys_wait_h = yes; then
5795 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
5799 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5800 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5801 inttypes.h stdint.h unistd.h
5803 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5804 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5806 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5807 cat >>confdefs.h <<_ACEOF
5808 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5816 for ac_header in fcntl.h syslog.h sys/cdefs.h sys/select.h
5818 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5819 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5820 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5821 cat >>confdefs.h <<_ACEOF
5822 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5830 # Checks for typedefs, structures, and compiler characteristics.
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5832 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5833 if ${ac_cv_c_const+:} false; then :
5834 $as_echo_n "(cached) " >&6
5836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5837 /* end confdefs.h. */
5842 /* FIXME: Include the comments suggested by Paul. */
5844 /* Ultrix mips cc rejects this. */
5845 typedef int charset[2];
5847 /* SunOS 4.1.1 cc rejects this. */
5848 char const *const *pcpcc;
5850 /* NEC SVR4.0.2 mips cc rejects this. */
5851 struct point {int x, y;};
5852 static struct point const zero = {0,0};
5853 /* AIX XL C 1.02.0.0 rejects this.
5854 It does not let you subtract one const X* pointer from another in
5855 an arm of an if-expression whose if-part is not a constant
5857 const char *g = "string";
5858 pcpcc = &g + (g ? g-g : 0);
5859 /* HPUX 7.0 cc rejects these. */
5861 ppc = (char**) pcpcc;
5862 pcpcc = (char const *const *) ppc;
5863 { /* SCO 3.2v4 cc rejects this. */
5865 char const *s = 0 ? (char *) 0 : (char const *) 0;
5870 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5872 const int *foo = &x[0];
5875 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5876 typedef const int *iptr;
5880 { /* AIX XL C 1.02.0.0 rejects this saying
5881 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5882 struct s { int j; const int *ap[3]; };
5883 struct s *b; b->j = 5;
5885 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5889 return !cs[0] && !zero.x;
5896 if ac_fn_cxx_try_compile "$LINENO"; then :
5901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5904 $as_echo "$ac_cv_c_const" >&6; }
5905 if test $ac_cv_c_const = no; then
5907 $as_echo "#define const /**/" >>confdefs.h
5911 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5912 if test "x$ac_cv_type_pid_t" = xyes; then :
5916 cat >>confdefs.h <<_ACEOF
5922 ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5923 if test "x$ac_cv_type_size_t" = xyes; then :
5927 cat >>confdefs.h <<_ACEOF
5928 #define size_t unsigned int
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we must define _GNU_SOURCE" >&5
5936 $as_echo_n "checking if we must define _GNU_SOURCE... " >&6; }
5937 if ${cf_cv_gnu_source+:} false; then :
5938 $as_echo_n "(cached) " >&6
5941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5942 /* end confdefs.h. */
5943 #include <sys/types.h>
5948 #ifndef _XOPEN_SOURCE
5955 if ac_fn_cxx_try_compile "$LINENO"; then :
5959 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
5960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5961 /* end confdefs.h. */
5962 #include <sys/types.h>
5967 #ifdef _XOPEN_SOURCE
5974 if ac_fn_cxx_try_compile "$LINENO"; then :
5977 cf_cv_gnu_source=yes
5979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_cv_gnu_source" >&5
5987 $as_echo "$cf_cv_gnu_source" >&6; }
5988 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
5991 # Check whether --enable-emulate-poll was given.
5992 if test "${enable_emulate_poll+set}" = set; then :
5993 enableval=$enable_emulate_poll;
5997 # If the system doesn't have poll.h, or if the user forced it, provide
5998 # our own poll function
5999 if test x$enable_emulate_poll != xyes ; then
6000 for ac_header in poll.h
6002 ac_fn_cxx_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
6003 if test "x$ac_cv_header_poll_h" = xyes; then :
6004 cat >>confdefs.h <<_ACEOF
6005 #define HAVE_POLL_H 1
6014 if test x$enable_emulate_poll = xyes -o x$ac_cv_header_poll_h = xno ; then
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: Emulating poll with select" >&5
6016 $as_echo "$as_me: Emulating poll with select" >&6;}
6017 case " $LIBOBJS " in
6018 *" poll.$ac_objext "* ) ;;
6019 *) LIBOBJS="$LIBOBJS poll.$ac_objext"
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
6026 $as_echo_n "checking if malloc debugging is wanted... " >&6; }
6028 # Check whether --with-dmalloc was given.
6029 if test "${with_dmalloc+set}" = set; then :
6030 withval=$with_dmalloc; if test "$withval" = yes; then
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6032 $as_echo "yes" >&6; }
6034 $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
6036 for ac_header in dmalloc.h
6038 ac_fn_cxx_check_header_mongrel "$LINENO" "dmalloc.h" "ac_cv_header_dmalloc_h" "$ac_includes_default"
6039 if test "x$ac_cv_header_dmalloc_h" = xyes; then :
6040 cat >>confdefs.h <<_ACEOF
6041 #define HAVE_DMALLOC_H 1
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dmalloc_malloc in -ldmallocthcxx" >&5
6049 $as_echo_n "checking for dmalloc_malloc in -ldmallocthcxx... " >&6; }
6050 if ${ac_cv_lib_dmallocthcxx_dmalloc_malloc+:} false; then :
6051 $as_echo_n "(cached) " >&6
6053 ac_check_lib_save_LIBS=$LIBS
6054 LIBS="-ldmallocthcxx $LIBS"
6055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6056 /* end confdefs.h. */
6058 /* Override any GCC internal prototype to avoid an error.
6059 Use char because int might match the return type of a GCC
6060 builtin and then its argument prototype would still apply. */
6064 char dmalloc_malloc ();
6068 return dmalloc_malloc ();
6073 if ac_fn_cxx_try_link "$LINENO"; then :
6074 ac_cv_lib_dmallocthcxx_dmalloc_malloc=yes
6076 ac_cv_lib_dmallocthcxx_dmalloc_malloc=no
6078 rm -f core conftest.err conftest.$ac_objext \
6079 conftest$ac_exeext conftest.$ac_ext
6080 LIBS=$ac_check_lib_save_LIBS
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dmallocthcxx_dmalloc_malloc" >&5
6083 $as_echo "$ac_cv_lib_dmallocthcxx_dmalloc_malloc" >&6; }
6084 if test "x$ac_cv_lib_dmallocthcxx_dmalloc_malloc" = xyes; then :
6085 cat >>confdefs.h <<_ACEOF
6086 #define HAVE_LIBDMALLOCTHCXX 1
6089 LIBS="-ldmallocthcxx $LIBS"
6092 as_fn_error $? "Threaded C++ dmalloc library not found" "$LINENO" 5
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6097 $as_echo "no" >&6; }
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6101 $as_echo "no" >&6; }
6106 # Checks for library functions.
6107 for ac_func in vsyslog vasprintf vsnprintf
6109 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6110 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
6111 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6112 cat >>confdefs.h <<_ACEOF
6113 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6119 for ac_func in asprintf snprintf
6121 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6122 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
6123 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6124 cat >>confdefs.h <<_ACEOF
6125 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
6132 $as_echo_n "checking for library containing gethostbyname... " >&6; }
6133 if ${ac_cv_search_gethostbyname+:} false; then :
6134 $as_echo_n "(cached) " >&6
6136 ac_func_search_save_LIBS=$LIBS
6137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6138 /* end confdefs.h. */
6140 /* Override any GCC internal prototype to avoid an error.
6141 Use char because int might match the return type of a GCC
6142 builtin and then its argument prototype would still apply. */
6146 char gethostbyname ();
6150 return gethostbyname ();
6155 for ac_lib in '' nsl; do
6156 if test -z "$ac_lib"; then
6157 ac_res="none required"
6160 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6162 if ac_fn_cxx_try_link "$LINENO"; then :
6163 ac_cv_search_gethostbyname=$ac_res
6165 rm -f core conftest.err conftest.$ac_objext \
6167 if ${ac_cv_search_gethostbyname+:} false; then :
6171 if ${ac_cv_search_gethostbyname+:} false; then :
6174 ac_cv_search_gethostbyname=no
6177 LIBS=$ac_func_search_save_LIBS
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
6180 $as_echo "$ac_cv_search_gethostbyname" >&6; }
6181 ac_res=$ac_cv_search_gethostbyname
6182 if test "$ac_res" != no; then :
6183 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
6188 $as_echo_n "checking for library containing connect... " >&6; }
6189 if ${ac_cv_search_connect+:} false; then :
6190 $as_echo_n "(cached) " >&6
6192 ac_func_search_save_LIBS=$LIBS
6193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6194 /* end confdefs.h. */
6196 /* Override any GCC internal prototype to avoid an error.
6197 Use char because int might match the return type of a GCC
6198 builtin and then its argument prototype would still apply. */
6211 for ac_lib in '' socket; do
6212 if test -z "$ac_lib"; then
6213 ac_res="none required"
6216 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6218 if ac_fn_cxx_try_link "$LINENO"; then :
6219 ac_cv_search_connect=$ac_res
6221 rm -f core conftest.err conftest.$ac_objext \
6223 if ${ac_cv_search_connect+:} false; then :
6227 if ${ac_cv_search_connect+:} false; then :
6230 ac_cv_search_connect=no
6233 LIBS=$ac_func_search_save_LIBS
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
6236 $as_echo "$ac_cv_search_connect" >&6; }
6237 ac_res=$ac_cv_search_connect
6238 if test "$ac_res" != no; then :
6239 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
6244 $as_echo_n "checking for library containing inet_aton... " >&6; }
6245 if ${ac_cv_search_inet_aton+:} false; then :
6246 $as_echo_n "(cached) " >&6
6248 ac_func_search_save_LIBS=$LIBS
6249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6250 /* end confdefs.h. */
6252 /* Override any GCC internal prototype to avoid an error.
6253 Use char because int might match the return type of a GCC
6254 builtin and then its argument prototype would still apply. */
6262 return inet_aton ();
6267 for ac_lib in '' resolv; do
6268 if test -z "$ac_lib"; then
6269 ac_res="none required"
6272 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6274 if ac_fn_cxx_try_link "$LINENO"; then :
6275 ac_cv_search_inet_aton=$ac_res
6277 rm -f core conftest.err conftest.$ac_objext \
6279 if ${ac_cv_search_inet_aton+:} false; then :
6283 if ${ac_cv_search_inet_aton+:} false; then :
6286 ac_cv_search_inet_aton=no
6289 LIBS=$ac_func_search_save_LIBS
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
6292 $as_echo "$ac_cv_search_inet_aton" >&6; }
6293 ac_res=$ac_cv_search_inet_aton
6294 if test "$ac_res" != no; then :
6295 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6300 # Check for functions and verify that the system provides a prototype for them.
6301 # Switch to C linkage. Though the autoconf manual claims it does
6302 # automatically. It lies.
6304 ac_cpp='$CPP $CPPFLAGS'
6305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6309 ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
6310 if test "x$ac_cv_func_strsep" = xyes; then :
6311 $as_echo "#define HAVE_STRSEP 1" >>confdefs.h
6314 case " $LIBOBJS " in
6315 *" strsep.$ac_objext "* ) ;;
6316 *) LIBOBJS="$LIBOBJS strsep.$ac_objext"
6322 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
6323 if test "x$ac_cv_func_daemon" = xyes; then :
6324 $as_echo "#define HAVE_DAEMON 1" >>confdefs.h
6327 case " $LIBOBJS " in
6328 *" daemon.$ac_objext "* ) ;;
6329 *) LIBOBJS="$LIBOBJS daemon.$ac_objext"
6336 ac_fn_c_check_decl "$LINENO" "strsep" "ac_cv_have_decl_strsep" "$ac_includes_default"
6337 if test "x$ac_cv_have_decl_strsep" = xyes; then :
6343 cat >>confdefs.h <<_ACEOF
6344 #define HAVE_DECL_STRSEP $ac_have_decl
6346 ac_fn_c_check_decl "$LINENO" "daemon" "ac_cv_have_decl_daemon" "$ac_includes_default"
6347 if test "x$ac_cv_have_decl_daemon" = xyes; then :
6353 cat >>confdefs.h <<_ACEOF
6354 #define HAVE_DECL_DAEMON $ac_have_decl
6358 ac_cpp='$CXXCPP $CPPFLAGS'
6359 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6360 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6361 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6364 # Check for libmilter and its header files in the usual locations
6365 if test -d /usr/lib/libmilter ; then
6366 LDFLAGS="$LDFLAGS -L/usr/lib/libmilter"
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mi_stop in -lmilter" >&5
6369 $as_echo_n "checking for mi_stop in -lmilter... " >&6; }
6370 if ${ac_cv_lib_milter_mi_stop+:} false; then :
6371 $as_echo_n "(cached) " >&6
6373 ac_check_lib_save_LIBS=$LIBS
6374 LIBS="-lmilter $LIBS"
6375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6376 /* end confdefs.h. */
6378 /* Override any GCC internal prototype to avoid an error.
6379 Use char because int might match the return type of a GCC
6380 builtin and then its argument prototype would still apply. */
6393 if ac_fn_cxx_try_link "$LINENO"; then :
6394 ac_cv_lib_milter_mi_stop=yes
6396 ac_cv_lib_milter_mi_stop=no
6398 rm -f core conftest.err conftest.$ac_objext \
6399 conftest$ac_exeext conftest.$ac_ext
6400 LIBS=$ac_check_lib_save_LIBS
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_milter_mi_stop" >&5
6403 $as_echo "$ac_cv_lib_milter_mi_stop" >&6; }
6404 if test "x$ac_cv_lib_milter_mi_stop" = xyes; then :
6405 cat >>confdefs.h <<_ACEOF
6406 #define HAVE_LIBMILTER 1
6409 LIBS="-lmilter $LIBS"
6413 # Older sendmails require libsm for support functions
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strlcpy" >&5
6415 $as_echo_n "checking for library containing strlcpy... " >&6; }
6416 if ${ac_cv_search_strlcpy+:} false; then :
6417 $as_echo_n "(cached) " >&6
6419 ac_func_search_save_LIBS=$LIBS
6420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6421 /* end confdefs.h. */
6423 /* Override any GCC internal prototype to avoid an error.
6424 Use char because int might match the return type of a GCC
6425 builtin and then its argument prototype would still apply. */
6438 for ac_lib in '' sm smutil; do
6439 if test -z "$ac_lib"; then
6440 ac_res="none required"
6443 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6445 if ac_fn_cxx_try_link "$LINENO"; then :
6446 ac_cv_search_strlcpy=$ac_res
6448 rm -f core conftest.err conftest.$ac_objext \
6450 if ${ac_cv_search_strlcpy+:} false; then :
6454 if ${ac_cv_search_strlcpy+:} false; then :
6457 ac_cv_search_strlcpy=no
6460 LIBS=$ac_func_search_save_LIBS
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strlcpy" >&5
6463 $as_echo "$ac_cv_search_strlcpy" >&6; }
6464 ac_res=$ac_cv_search_strlcpy
6465 if test "$ac_res" != no; then :
6466 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6470 $as_unset ac_cv_lib_milter_mi_stop
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mi_stop in -lmilter" >&5
6472 $as_echo_n "checking for mi_stop in -lmilter... " >&6; }
6473 if ${ac_cv_lib_milter_mi_stop+:} false; then :
6474 $as_echo_n "(cached) " >&6
6476 ac_check_lib_save_LIBS=$LIBS
6477 LIBS="-lmilter $LIBS"
6478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6479 /* end confdefs.h. */
6481 /* Override any GCC internal prototype to avoid an error.
6482 Use char because int might match the return type of a GCC
6483 builtin and then its argument prototype would still apply. */
6496 if ac_fn_cxx_try_link "$LINENO"; then :
6497 ac_cv_lib_milter_mi_stop=yes
6499 ac_cv_lib_milter_mi_stop=no
6501 rm -f core conftest.err conftest.$ac_objext \
6502 conftest$ac_exeext conftest.$ac_ext
6503 LIBS=$ac_check_lib_save_LIBS
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_milter_mi_stop" >&5
6506 $as_echo "$ac_cv_lib_milter_mi_stop" >&6; }
6507 if test "x$ac_cv_lib_milter_mi_stop" = xyes; then :
6508 cat >>confdefs.h <<_ACEOF
6509 #define HAVE_LIBMILTER 1
6512 LIBS="-lmilter $LIBS"
6516 as_fn_error $? "Cannot find libmilter" "$LINENO" 5
6523 for ac_header in libmilter/mfapi.h
6525 ac_fn_cxx_check_header_mongrel "$LINENO" "libmilter/mfapi.h" "ac_cv_header_libmilter_mfapi_h" "$ac_includes_default"
6526 if test "x$ac_cv_header_libmilter_mfapi_h" = xyes; then :
6527 cat >>confdefs.h <<_ACEOF
6528 #define HAVE_LIBMILTER_MFAPI_H 1
6533 as_fn_error $? "Please install mfapi.h from the sendmail distribution" "$LINENO" 5
6540 # Files to create from .in templates:
6541 ac_config_files="$ac_config_files Makefile contrib/spamass-milter.spec spamass-milter.1"
6543 cat >confcache <<\_ACEOF
6544 # This file is a shell script that caches the results of configure
6545 # tests run on this system so they can be shared between configure
6546 # scripts and configure runs, see configure's option --config-cache.
6547 # It is not useful on other systems. If it contains results you don't
6548 # want to keep, you may remove or edit it.
6550 # config.status only pays attention to the cache file if you give it
6551 # the --recheck option to rerun configure.
6553 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6554 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6559 # The following way of writing the cache mishandles newlines in values,
6560 # but we know of no workaround that is simple, portable, and efficient.
6561 # So, we kill variables containing newlines.
6562 # Ultrix sh set writes to stderr and can't be redirected directly,
6563 # and sets the high bit in the cache file unless we assign to the vars.
6565 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6566 eval ac_val=\$$ac_var
6570 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6571 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6574 _ | IFS | as_nl) ;; #(
6575 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6576 *) { eval $ac_var=; unset $ac_var;} ;;
6582 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6583 *${as_nl}ac_space=\ *)
6584 # `set' does not quote correctly, so add quotes: double-quote
6585 # substitution turns \\\\ into \\, and sed turns \\ into \.
6588 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6591 # `set' quotes correctly as required by POSIX, so do not add quotes.
6592 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6601 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6603 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6605 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6606 if test -w "$cache_file"; then
6607 if test "x$cache_file" != "x/dev/null"; then
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6609 $as_echo "$as_me: updating cache $cache_file" >&6;}
6610 if test ! -f "$cache_file" || test -h "$cache_file"; then
6611 cat confcache >"$cache_file"
6613 case $cache_file in #(
6615 mv -f confcache "$cache_file"$$ &&
6616 mv -f "$cache_file"$$ "$cache_file" ;; #(
6618 mv -f confcache "$cache_file" ;;
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6624 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6629 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6630 # Let make expand exec_prefix.
6631 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6633 DEFS=-DHAVE_CONFIG_H
6638 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6639 # 1. Remove the extension, and $U if already installed.
6640 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6641 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6642 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6643 # will be set to the directory where LIBOBJS objects are built.
6644 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6645 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6649 LTLIBOBJS=$ac_ltlibobjs
6652 if test -n "$EXEEXT"; then
6654 am__EXEEXT_FALSE='#'
6660 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6661 as_fn_error $? "conditional \"AMDEP\" was never defined.
6662 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6664 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
6665 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
6666 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6668 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6669 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
6670 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6672 if test -z "${HAVE_MDOC_TRUE}" && test -z "${HAVE_MDOC_FALSE}"; then
6673 as_fn_error $? "conditional \"HAVE_MDOC\" was never defined.
6674 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6677 : "${CONFIG_STATUS=./config.status}"
6679 ac_clean_files_save=$ac_clean_files
6680 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6682 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6684 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6686 # Generated by $as_me.
6687 # Run this file to recreate the current configuration.
6688 # Compiler output produced by configure, useful for debugging
6689 # configure, is in config.log if it exists.
6695 SHELL=\${CONFIG_SHELL-$SHELL}
6698 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6699 ## -------------------- ##
6700 ## M4sh Initialization. ##
6701 ## -------------------- ##
6703 # Be more Bourne compatible
6704 DUALCASE=1; export DUALCASE # for MKS sh
6705 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6708 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6709 # is contrary to our usage. Disable this feature.
6710 alias -g '${1+"$@"}'='"$@"'
6711 setopt NO_GLOB_SUBST
6713 case `(set -o) 2>/dev/null` in #(
6725 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6726 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6727 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6728 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6729 # Prefer a ksh shell builtin over an external printf program on Solaris,
6730 # but without wasting forks for bash or zsh.
6731 if test -z "$BASH_VERSION$ZSH_VERSION" \
6732 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6733 as_echo='print -r --'
6734 as_echo_n='print -rn --'
6735 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6736 as_echo='printf %s\n'
6737 as_echo_n='printf %s'
6739 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6740 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6741 as_echo_n='/usr/ucb/echo -n'
6743 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6744 as_echo_n_body='eval
6748 expr "X$arg" : "X\\(.*\\)$as_nl";
6749 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6751 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6753 export as_echo_n_body
6754 as_echo_n='sh -c $as_echo_n_body as_echo'
6757 as_echo='sh -c $as_echo_body as_echo'
6760 # The user is always right.
6761 if test "${PATH_SEPARATOR+set}" != set; then
6763 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6764 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6771 # We need space, tab and new line, in precisely that order. Quoting is
6772 # there to prevent editors from complaining about space-tab.
6773 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6774 # splitting by setting IFS to empty value.)
6777 # Find who we are. Look in the path if we contain no directory separator.
6780 *[\\/]* ) as_myself=$0 ;;
6781 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6785 test -z "$as_dir" && as_dir=.
6786 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6792 # We did not find ourselves, most probably we were run as `sh COMMAND'
6793 # in which case we are not to be found in the path.
6794 if test "x$as_myself" = x; then
6797 if test ! -f "$as_myself"; then
6798 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6802 # Unset variables that we do not need and which cause bugs (e.g. in
6803 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6804 # suppresses any "Segmentation fault" message there. '((' could
6805 # trigger a bug in pdksh 5.2.14.
6806 for as_var in BASH_ENV ENV MAIL MAILPATH
6807 do eval test x\${$as_var+set} = xset \
6808 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6821 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6824 # as_fn_error STATUS ERROR [LINENO LOG_FD]
6825 # ----------------------------------------
6826 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6827 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6828 # script with STATUS, using 1 if that was 0.
6831 as_status=$1; test $as_status -eq 0 && as_status=1
6833 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6834 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6836 $as_echo "$as_me: error: $2" >&2
6837 as_fn_exit $as_status
6841 # as_fn_set_status STATUS
6842 # -----------------------
6843 # Set $? to STATUS, without forking.
6847 } # as_fn_set_status
6851 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6861 # Portably unset VAR.
6864 { eval $1=; unset $1;}
6866 as_unset=as_fn_unset
6867 # as_fn_append VAR VALUE
6868 # ----------------------
6869 # Append the text in VALUE to the end of the definition contained in VAR. Take
6870 # advantage of any shell optimizations that allow amortized linear growth over
6871 # repeated appends, instead of the typical quadratic growth present in naive
6873 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6874 eval 'as_fn_append ()
6885 # as_fn_arith ARG...
6886 # ------------------
6887 # Perform arithmetic evaluation on the ARGs, and store the result in the
6888 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6889 # must be portable across $(()) and expr.
6890 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6891 eval 'as_fn_arith ()
6898 as_val=`expr "$@" || test $? -eq 1`
6903 if expr a : '\(a\)' >/dev/null 2>&1 &&
6904 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6910 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6911 as_basename=basename
6916 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6922 as_me=`$as_basename -- "$0" ||
6923 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6924 X"$0" : 'X\(//\)$' \| \
6925 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6927 sed '/^.*\/\([^/][^/]*\)\/*$/{
6941 # Avoid depending upon Character Ranges.
6942 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6943 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6944 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6945 as_cr_digits='0123456789'
6946 as_cr_alnum=$as_cr_Letters$as_cr_digits
6948 ECHO_C= ECHO_N= ECHO_T=
6949 case `echo -n x` in #(((((
6951 case `echo 'xy\c'` in
6952 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6954 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6961 rm -f conf$$ conf$$.exe conf$$.file
6962 if test -d conf$$.dir; then
6963 rm -f conf$$.dir/conf$$.file
6966 mkdir conf$$.dir 2>/dev/null
6968 if (echo >conf$$.file) 2>/dev/null; then
6969 if ln -s conf$$.file conf$$ 2>/dev/null; then
6971 # ... but there are two gotchas:
6972 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6973 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6974 # In both cases, we have to default to `cp -p'.
6975 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6977 elif ln conf$$.file conf$$ 2>/dev/null; then
6985 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6986 rmdir conf$$.dir 2>/dev/null
6991 # Create "$as_dir" as a directory, including parents if necessary.
6996 -*) as_dir=./$as_dir;;
6998 test -d "$as_dir" || eval $as_mkdir_p || {
7002 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7003 *) as_qdir=$as_dir;;
7005 as_dirs="'$as_qdir' $as_dirs"
7006 as_dir=`$as_dirname -- "$as_dir" ||
7007 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7008 X"$as_dir" : 'X\(//\)[^/]' \| \
7009 X"$as_dir" : 'X\(//\)$' \| \
7010 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7011 $as_echo X"$as_dir" |
7012 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7029 test -d "$as_dir" && break
7031 test -z "$as_dirs" || eval "mkdir $as_dirs"
7032 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7036 if mkdir -p . 2>/dev/null; then
7037 as_mkdir_p='mkdir -p "$as_dir"'
7039 test -d ./-p && rmdir ./-p
7043 if test -x / >/dev/null 2>&1; then
7046 if ls -dL / >/dev/null 2>&1; then
7053 if test -d "$1"; then
7059 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
7060 ???[sx]*):;;*)false;;esac;fi
7064 as_executable_p=$as_test_x
7066 # Sed expression to map a string onto a valid CPP name.
7067 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7069 # Sed expression to map a string onto a valid variable name.
7070 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7074 ## ----------------------------------- ##
7075 ## Main body of $CONFIG_STATUS script. ##
7076 ## ----------------------------------- ##
7078 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7080 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7081 # Save the log message, to keep $0 and so on meaningful, and to
7082 # report actual input values of CONFIG_FILES etc. instead of their
7083 # values after options handling.
7085 This file was extended by spamass-milter $as_me 0.3.2, which was
7086 generated by GNU Autoconf 2.68. Invocation command line was
7088 CONFIG_FILES = $CONFIG_FILES
7089 CONFIG_HEADERS = $CONFIG_HEADERS
7090 CONFIG_LINKS = $CONFIG_LINKS
7091 CONFIG_COMMANDS = $CONFIG_COMMANDS
7094 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7099 case $ac_config_files in *"
7100 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7103 case $ac_config_headers in *"
7104 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7108 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7109 # Files that config.status was made for.
7110 config_files="$ac_config_files"
7111 config_headers="$ac_config_headers"
7112 config_commands="$ac_config_commands"
7116 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7118 \`$as_me' instantiates files and other configuration actions
7119 from templates according to the current configuration. Unless the files
7120 and actions are specified as TAGs, all are instantiated by default.
7122 Usage: $0 [OPTION]... [TAG]...
7124 -h, --help print this help, then exit
7125 -V, --version print version number and configuration settings, then exit
7126 --config print configuration, then exit
7127 -q, --quiet, --silent
7128 do not print progress messages
7129 -d, --debug don't remove temporary files
7130 --recheck update $as_me by reconfiguring in the same conditions
7131 --file=FILE[:TEMPLATE]
7132 instantiate the configuration file FILE
7133 --header=FILE[:TEMPLATE]
7134 instantiate the configuration header FILE
7136 Configuration files:
7139 Configuration headers:
7142 Configuration commands:
7145 Report bugs to the package provider."
7148 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7149 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7151 spamass-milter config.status 0.3.2
7152 configured by $0, generated by GNU Autoconf 2.68,
7153 with options \\"\$ac_cs_config\\"
7155 Copyright (C) 2010 Free Software Foundation, Inc.
7156 This config.status script is free software; the Free Software Foundation
7157 gives unlimited permission to copy, distribute and modify it."
7164 test -n "\$AWK" || AWK=awk
7167 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7168 # The default lists apply if the user does not specify any file.
7174 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7175 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7179 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7191 # Handling of the options.
7192 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7194 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7195 $as_echo "$ac_cs_version"; exit ;;
7196 --config | --confi | --conf | --con | --co | --c )
7197 $as_echo "$ac_cs_config"; exit ;;
7198 --debug | --debu | --deb | --de | --d | -d )
7200 --file | --fil | --fi | --f )
7203 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7204 '') as_fn_error $? "missing file argument" ;;
7206 as_fn_append CONFIG_FILES " '$ac_optarg'"
7207 ac_need_defaults=false;;
7208 --header | --heade | --head | --hea )
7211 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7213 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7214 ac_need_defaults=false;;
7216 # Conflict between --help and --header
7217 as_fn_error $? "ambiguous option: \`$1'
7218 Try \`$0 --help' for more information.";;
7219 --help | --hel | -h )
7220 $as_echo "$ac_cs_usage"; exit ;;
7221 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7222 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7226 -*) as_fn_error $? "unrecognized option: \`$1'
7227 Try \`$0 --help' for more information." ;;
7229 *) as_fn_append ac_config_targets " $1"
7230 ac_need_defaults=false ;;
7236 ac_configure_extra_args=
7238 if $ac_cs_silent; then
7240 ac_configure_extra_args="$ac_configure_extra_args --silent"
7244 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7245 if \$ac_cs_recheck; then
7246 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7248 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7249 CONFIG_SHELL='$SHELL'
7255 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7259 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7260 ## Running $as_me. ##
7266 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7270 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7274 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7276 # Handling of arguments.
7277 for ac_config_target in $ac_config_targets
7279 case $ac_config_target in
7280 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7281 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7282 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7283 "contrib/spamass-milter.spec") CONFIG_FILES="$CONFIG_FILES contrib/spamass-milter.spec" ;;
7284 "spamass-milter.1") CONFIG_FILES="$CONFIG_FILES spamass-milter.1" ;;
7286 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7291 # If the user did not use the arguments to specify the items to instantiate,
7292 # then the envvar interface is used. Set only those that are not.
7293 # We use the long form for the default assignment because of an extremely
7294 # bizarre bug on SunOS 4.1.3.
7295 if $ac_need_defaults; then
7296 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7297 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7298 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7301 # Have a temporary directory for convenience. Make it in the build tree
7302 # simply because there is no reason against having it here, and in addition,
7303 # creating and moving files from /tmp can sometimes cause problems.
7304 # Hook for its removal unless debugging.
7305 # Note that there is a small window in which the directory will not be cleaned:
7306 # after its creation but before its name has been assigned to `$tmp'.
7310 trap 'exit_status=$?
7312 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7314 trap 'as_fn_exit 1' 1 2 13 15
7316 # Create a (secure) tmp directory for tmp files.
7319 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7323 tmp=./conf$$-$RANDOM
7324 (umask 077 && mkdir "$tmp")
7325 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7328 # Set up the scripts for CONFIG_FILES section.
7329 # No need to generate them if there are no CONFIG_FILES.
7330 # This happens for instance with `./config.status config.h'.
7331 if test -n "$CONFIG_FILES"; then
7334 ac_cr=`echo X | tr X '\015'`
7335 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7336 # But we know of no other shell where ac_cr would be empty at this
7337 # point, so we can use a bashism as a fallback.
7338 if test "x$ac_cr" = x; then
7339 eval ac_cr=\$\'\\r\'
7341 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7342 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7348 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7353 echo "cat >conf$$subs.awk <<_ACEOF" &&
7354 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7357 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7358 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7360 for ac_last_try in false false false false false :; do
7361 . ./conf$$subs.sh ||
7362 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7364 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7365 if test $ac_delim_n = $ac_delim_num; then
7367 elif $ac_last_try; then
7368 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7370 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7375 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7376 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7380 s/^/S["/; s/!.*/"]=/
7390 s/\(.\{148\}\)..*/\1/
7392 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7397 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7404 s/\(.\{148\}\)..*/\1/
7406 s/["\\]/\\&/g; s/^/"/; s/$/"/
7410 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7415 ' <conf$$subs.awk | sed '
7420 ' >>$CONFIG_STATUS || ac_write_fail=1
7421 rm -f conf$$subs.awk
7422 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7424 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7425 for (key in S) S_is_set[key] = 1
7431 nfields = split(line, field, "@")
7433 len = length(field[1])
7434 for (i = 2; i < nfields; i++) {
7436 keylen = length(key)
7437 if (S_is_set[key]) {
7439 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7440 len += length(value) + length(field[++i])
7451 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7452 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7453 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7456 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7457 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7460 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7461 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7462 # trailing colons and then remove the whole line if VPATH becomes empty
7463 # (actually we leave an empty line to preserve line numbers).
7464 if test "x$srcdir" = x.; then
7465 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7483 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7484 fi # test -n "$CONFIG_FILES"
7486 # Set up the scripts for CONFIG_HEADERS section.
7487 # No need to generate them if there are no CONFIG_HEADERS.
7488 # This happens for instance with `./config.status Makefile'.
7489 if test -n "$CONFIG_HEADERS"; then
7490 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7494 # Transform confdefs.h into an awk script `defines.awk', embedded as
7495 # here-document in config.status, that substitutes the proper values into
7496 # config.h.in to produce config.h.
7498 # Create a delimiter string that does not exist in confdefs.h, to ease
7499 # handling of long lines.
7501 for ac_last_try in false false :; do
7502 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7503 if test -z "$ac_tt"; then
7505 elif $ac_last_try; then
7506 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7508 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7512 # For the awk script, D is an array of macro values keyed by name,
7513 # likewise P contains macro parameters if any. Preserve backslash
7514 # newline sequences.
7516 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7518 s/.\{148\}/&'"$ac_delim"'/g
7521 s/^[ ]*#[ ]*define[ ][ ]*/ /
7528 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7530 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7534 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7535 D["\1"]=" \3\\\\\\n"\\/p
7537 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7542 s/.\{148\}/&'"$ac_delim"'/g
7547 s/["\\]/\\&/g; s/^/"/; s/$/"/p
7550 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7552 ' <confdefs.h | sed '
7553 s/'"$ac_delim"'/"\\\
7554 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7556 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7557 for (key in D) D_is_set[key] = 1
7560 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7562 split(line, arg, " ")
7563 if (arg[1] == "#") {
7567 defundef = substr(arg[1], 2)
7570 split(mac1, mac2, "(") #)
7572 prefix = substr(line, 1, index(line, defundef) - 1)
7573 if (D_is_set[macro]) {
7574 # Preserve the white space surrounding the "#".
7575 print prefix "define", macro P[macro] D[macro]
7578 # Replace #undef with comments. This is necessary, for example,
7579 # in the case of _POSIX_SOURCE, which is predefined and required
7580 # on some systems where configure will not decide to define it.
7581 if (defundef == "undef") {
7582 print "/*", prefix defundef, macro, "*/"
7590 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7591 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7592 fi # test -n "$CONFIG_HEADERS"
7595 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7600 :[FHLC]) ac_mode=$ac_tag; continue;;
7602 case $ac_mode$ac_tag in
7604 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7605 :[FH]-) ac_tag=-:-;;
7606 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7623 -) ac_f="$ac_tmp/stdin";;
7624 *) # Look for the file first in the build tree, then in the source tree
7625 # (if the path is not absolute). The absolute path cannot be DOS-style,
7626 # because $ac_f cannot contain `:'.
7630 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7632 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7634 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7635 as_fn_append ac_file_inputs " '$ac_f'"
7638 # Let's still pretend it is `configure' which instantiates (i.e., don't
7639 # use $as_me), people would be surprised to read:
7640 # /* config.h. Generated by config.status. */
7641 configure_input='Generated from '`
7642 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7644 if test x"$ac_file" != x-; then
7645 configure_input="$ac_file. $configure_input"
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7647 $as_echo "$as_me: creating $ac_file" >&6;}
7649 # Neutralize special characters interpreted by sed in replacement strings.
7650 case $configure_input in #(
7651 *\&* | *\|* | *\\* )
7652 ac_sed_conf_input=`$as_echo "$configure_input" |
7653 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7654 *) ac_sed_conf_input=$configure_input;;
7658 *:-:* | *:-) cat >"$ac_tmp/stdin" \
7659 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7664 ac_dir=`$as_dirname -- "$ac_file" ||
7665 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7666 X"$ac_file" : 'X\(//\)[^/]' \| \
7667 X"$ac_file" : 'X\(//\)$' \| \
7668 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7669 $as_echo X"$ac_file" |
7670 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7687 as_dir="$ac_dir"; as_fn_mkdir_p
7691 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7693 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7694 # A ".." for each directory in $ac_dir_suffix.
7695 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7696 case $ac_top_builddir_sub in
7697 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7698 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7701 ac_abs_top_builddir=$ac_pwd
7702 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7703 # for backward compatibility:
7704 ac_top_builddir=$ac_top_build_prefix
7707 .) # We are building in place.
7709 ac_top_srcdir=$ac_top_builddir_sub
7710 ac_abs_top_srcdir=$ac_pwd ;;
7711 [\\/]* | ?:[\\/]* ) # Absolute name.
7712 ac_srcdir=$srcdir$ac_dir_suffix;
7713 ac_top_srcdir=$srcdir
7714 ac_abs_top_srcdir=$srcdir ;;
7716 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7717 ac_top_srcdir=$ac_top_build_prefix$srcdir
7718 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7720 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7730 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7731 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7735 [\\/$]* | ?:[\\/]* ) ;;
7736 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
7740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7741 # If the template does not know about datarootdir, expand it.
7742 # FIXME: This hack should be removed a few years after 2.60.
7743 ac_datarootdir_hack=; ac_datarootdir_seen=
7754 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7755 *datarootdir*) ac_datarootdir_seen=yes;;
7756 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7758 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7760 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7761 ac_datarootdir_hack='
7762 s&@datadir@&$datadir&g
7763 s&@docdir@&$docdir&g
7764 s&@infodir@&$infodir&g
7765 s&@localedir@&$localedir&g
7766 s&@mandir@&$mandir&g
7767 s&\\\${datarootdir}&$datarootdir&g' ;;
7771 # Neutralize VPATH when `$srcdir' = `.'.
7772 # Shell code in configure.ac might set extrasub.
7773 # FIXME: do we really want to maintain this feature?
7774 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7775 ac_sed_extra="$ac_vpsub
7778 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7780 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7781 s|@configure_input@|$ac_sed_conf_input|;t t
7782 s&@top_builddir@&$ac_top_builddir_sub&;t t
7783 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7784 s&@srcdir@&$ac_srcdir&;t t
7785 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7786 s&@top_srcdir@&$ac_top_srcdir&;t t
7787 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7788 s&@builddir@&$ac_builddir&;t t
7789 s&@abs_builddir@&$ac_abs_builddir&;t t
7790 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7791 s&@INSTALL@&$ac_INSTALL&;t t
7792 s&@MKDIR_P@&$ac_MKDIR_P&;t t
7793 $ac_datarootdir_hack
7795 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7796 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7798 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7799 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7800 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7801 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7803 which seems to be undefined. Please make sure it is defined" >&5
7804 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7805 which seems to be undefined. Please make sure it is defined" >&2;}
7807 rm -f "$ac_tmp/stdin"
7809 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7810 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7812 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7818 if test x"$ac_file" != x-; then
7820 $as_echo "/* $configure_input */" \
7821 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
7822 } >"$ac_tmp/config.h" \
7823 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7824 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7826 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7829 mv "$ac_tmp/config.h" "$ac_file" \
7830 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7833 $as_echo "/* $configure_input */" \
7834 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
7835 || as_fn_error $? "could not create -" "$LINENO" 5
7837 # Compute "$ac_file"'s index in $config_headers.
7840 for _am_header in $config_headers :; do
7842 $_am_arg | $_am_arg:* )
7845 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7848 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
7849 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7850 X"$_am_arg" : 'X\(//\)[^/]' \| \
7851 X"$_am_arg" : 'X\(//\)$' \| \
7852 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
7853 $as_echo X"$_am_arg" |
7854 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7870 s/.*/./; q'`/stamp-h$_am_stamp_count
7873 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7874 $as_echo "$as_me: executing $ac_file commands" >&6;}
7879 case $ac_file$ac_mode in
7880 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
7881 # Autoconf 2.62 quotes --file arguments for eval, but not when files
7882 # are listed without --file. Let's play safe and only enable the eval
7883 # if we detect the quoting.
7884 case $CONFIG_FILES in
7885 *\'*) eval set x "$CONFIG_FILES" ;;
7886 *) set x $CONFIG_FILES ;;
7891 # Strip MF so we end up with the name of the file.
7892 mf=`echo "$mf" | sed -e 's/:.*$//'`
7893 # Check whether this is an Automake generated Makefile or not.
7894 # We used to match only the files named `Makefile.in', but
7895 # some people rename them; so instead we look at the file content.
7896 # Grep'ing the first line is not enough: some people post-process
7897 # each Makefile.in and add a new line on top of each file to say so.
7898 # Grep'ing the whole file is not good either: AIX grep has a line
7899 # limit of 2048, but all sed's we know have understand at least 4000.
7900 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
7901 dirpart=`$as_dirname -- "$mf" ||
7902 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7903 X"$mf" : 'X\(//\)[^/]' \| \
7904 X"$mf" : 'X\(//\)$' \| \
7905 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
7907 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7927 # Extract the definition of DEPDIR, am__include, and am__quote
7928 # from the Makefile without running `make'.
7929 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7930 test -z "$DEPDIR" && continue
7931 am__include=`sed -n 's/^am__include = //p' < "$mf"`
7932 test -z "am__include" && continue
7933 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7934 # When using ansi2knr, U may be empty or an underscore; expand it
7935 U=`sed -n 's/^U = //p' < "$mf"`
7936 # Find all dependency output files, they are included files with
7937 # $(DEPDIR) in their names. We invoke sed twice because it is the
7938 # simplest approach to changing $(DEPDIR) to its actual value in the
7940 for file in `sed -n "
7941 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7942 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7943 # Make sure the directory exists.
7944 test -f "$dirpart/$file" && continue
7945 fdir=`$as_dirname -- "$file" ||
7946 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7947 X"$file" : 'X\(//\)[^/]' \| \
7948 X"$file" : 'X\(//\)$' \| \
7949 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
7951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7968 as_dir=$dirpart/$fdir; as_fn_mkdir_p
7969 # echo "creating $dirpart/$file"
7970 echo '# dummy' > "$dirpart/$file"
7982 ac_clean_files=$ac_clean_files_save
7984 test $ac_write_fail = 0 ||
7985 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7988 # configure is writing to config.log, and then calls config.status.
7989 # config.status does its own redirection, appending to config.log.
7990 # Unfortunately, on DOS this fails, as config.log is still kept open
7991 # by configure, so config.status won't be able to write to it; its
7992 # output is simply discarded. So we exec the FD to /dev/null,
7993 # effectively closing config.log, so it can be properly (re)opened and
7994 # appended to by config.status. When coming back to configure, we
7995 # need to make the FD available again.
7996 if test "$no_create" != yes; then
7998 ac_config_status_args=
7999 test "$silent" = yes &&
8000 ac_config_status_args="$ac_config_status_args --quiet"
8002 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8004 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8005 # would make configure fail if this is the last instruction.
8006 $ac_cs_success || as_fn_exit 1
8008 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8010 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}