2 # From configure.in Revision: 8122 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be more Bourne compatible
15 DUALCASE=1; export DUALCASE # for MKS sh
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
24 case `(set -o) 2>/dev/null` in
25 *posix*) set -o posix ;;
34 # Avoid depending upon Character Ranges.
35 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38 as_cr_digits='0123456789'
39 as_cr_alnum=$as_cr_Letters$as_cr_digits
41 # The user is always right.
42 if test "${PATH_SEPARATOR+set}" != set; then
43 echo "#! /bin/sh" >conf$$.sh
44 echo "exit 0" >>conf$$.sh
46 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
54 # Support unset when possible.
55 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
63 # We need space, tab and new line, in precisely that order. Quoting is
64 # there to prevent editors from complaining about space-tab.
65 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
66 # splitting by setting IFS to empty value.)
71 # Find who we are. Look in the path if we contain no directory separator.
73 *[\\/]* ) as_myself=$0 ;;
74 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
78 test -z "$as_dir" && as_dir=.
79 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
85 # We did not find ourselves, most probably we were run as `sh COMMAND'
86 # in which case we are not to be found in the path.
87 if test "x$as_myself" = x; then
90 if test ! -f "$as_myself"; then
91 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
95 # Work around bugs in pre-3.0 UWIN ksh.
96 for as_var in ENV MAIL MAILPATH
97 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
105 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
106 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
110 eval $as_var=C; export $as_var
112 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
116 # Required to use basename.
117 if expr a : '\(a\)' >/dev/null 2>&1 &&
118 test "X`expr 00001 : '.*\(...\)'`" = X001; then
124 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
131 # Name of the executable.
132 as_me=`$as_basename -- "$0" ||
133 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
134 X"$0" : 'X\(//\)$' \| \
135 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 sed '/^.*\/\([^/][^/]*\)\/*$/{
155 if test "x$CONFIG_SHELL" = x; then
156 if (eval ":") 2>/dev/null; then
162 if test $as_have_required = yes && (eval ":
172 as_func_ret_success () {
175 as_func_ret_failure () {
180 if as_func_success; then
184 echo as_func_success failed.
187 if as_func_failure; then
189 echo as_func_failure succeeded.
192 if as_func_ret_success; then
196 echo as_func_ret_success failed.
199 if as_func_ret_failure; then
201 echo as_func_ret_failure succeeded.
204 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
208 echo positional parameters were not saved.
211 test \$exitcode = 0) || { (exit 1); exit 1; }
216 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
217 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
218 ") 2> /dev/null; then
222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
223 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226 test -z "$as_dir" && as_dir=.
229 for as_base in sh bash ksh sh5; do
230 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
237 for as_shell in $as_candidate_shells $SHELL; do
238 # Try only shells that exist, to save several forks.
239 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
240 { ("$as_shell") 2> /dev/null <<\_ASEOF
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in
250 *posix*) set -o posix ;;
259 CONFIG_SHELL=$as_shell
261 if { "$as_shell" 2> /dev/null <<\_ASEOF
262 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
266 # is contrary to our usage. Disable this feature.
267 alias -g '${1+"$@"}'='"$@"'
270 case `(set -o) 2>/dev/null` in
271 *posix*) set -o posix ;;
287 as_func_ret_success () {
290 as_func_ret_failure () {
295 if as_func_success; then
299 echo as_func_success failed.
302 if as_func_failure; then
304 echo as_func_failure succeeded.
307 if as_func_ret_success; then
311 echo as_func_ret_success failed.
314 if as_func_ret_failure; then
316 echo as_func_ret_failure succeeded.
319 if ( set x; as_func_ret_success y && test x = "$1" ); then
323 echo positional parameters were not saved.
326 test $exitcode = 0) || { (exit 1); exit 1; }
331 test "x$as_lineno_1" != "x$as_lineno_2" &&
332 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
343 if test "x$CONFIG_SHELL" != x; then
344 for as_var in BASH_ENV ENV
345 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
352 if test $as_have_required = no; then
353 echo This script requires a shell more modern than all the
354 echo shells that I found on your system. Please install a
355 echo modern shell, or manually run the script under such a
356 echo shell if you do have one.
357 { (exit 1); exit 1; }
367 (eval "as_func_return () {
376 as_func_ret_success () {
379 as_func_ret_failure () {
384 if as_func_success; then
388 echo as_func_success failed.
391 if as_func_failure; then
393 echo as_func_failure succeeded.
396 if as_func_ret_success; then
400 echo as_func_ret_success failed.
403 if as_func_ret_failure; then
405 echo as_func_ret_failure succeeded.
408 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
412 echo positional parameters were not saved.
415 test \$exitcode = 0") || {
416 echo No shell found that supports shell functions.
417 echo Please tell autoconf@gnu.org about your system,
418 echo including any error possibly output before this
426 test "x$as_lineno_1" != "x$as_lineno_2" &&
427 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
430 # uniformly replaced by the line number. The first 'sed' inserts a
431 # line-number line after each line using $LINENO; the second 'sed'
432 # does the real work. The second script uses 'N' to pair each
433 # line-number line with the line containing $LINENO, and appends
434 # trailing '-' during substitution so that $LINENO is not a special
436 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
437 # scripts with optimization help from Paolo Bonzini. Blame Lee
438 # E. McMahon (1931-1989) for sed's syntax. :-)
450 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454 chmod +x "$as_me.lineno" ||
455 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
456 { (exit 1); exit 1; }; }
458 # Don't try to exec as it changes $[0], causing all sort of problems
459 # (the dirname of $[0] is not the place where we might find the
460 # original and so on. Autoconf is especially sensitive to this).
462 # Exit status is that of the last command.
467 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
473 ECHO_C= ECHO_N= ECHO_T=
477 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
484 if expr a : '\(a\)' >/dev/null 2>&1 &&
485 test "X`expr 00001 : '.*\(...\)'`" = X001; then
491 rm -f conf$$ conf$$.exe conf$$.file
492 if test -d conf$$.dir; then
493 rm -f conf$$.dir/conf$$.file
499 if ln -s conf$$.file conf$$ 2>/dev/null; then
501 # ... but there are two gotchas:
502 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
503 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
504 # In both cases, we have to default to `cp -p'.
505 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 elif ln conf$$.file conf$$ 2>/dev/null; then
512 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
513 rmdir conf$$.dir 2>/dev/null
515 if mkdir -p . 2>/dev/null; then
518 test -d ./-p && rmdir ./-p
522 if test -x / >/dev/null 2>&1; then
525 if ls -dL / >/dev/null 2>&1; then
532 if test -d "$1"; then
538 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
539 ???[sx]*):;;*)false;;esac;fi
543 as_executable_p=$as_test_x
545 # Sed expression to map a string onto a valid CPP name.
546 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548 # Sed expression to map a string onto a valid variable name.
549 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 exec 7<&0 </dev/null 6>&1
556 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
557 # so uname gets run too.
558 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
563 ac_default_prefix=/usr/local
565 ac_config_libobj_dir=.
571 SHELL=${CONFIG_SHELL-/bin/sh}
573 # Identity of this package.
580 ac_unique_file="src/common.h"
581 ac_default_prefix=/usr/local/mailman
582 # Factoring default headers for most tests.
583 ac_includes_default="\
585 #ifdef HAVE_SYS_TYPES_H
586 # include <sys/types.h>
588 #ifdef HAVE_SYS_STAT_H
589 # include <sys/stat.h>
595 # ifdef HAVE_STDLIB_H
600 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 #ifdef HAVE_STRINGS_H
606 # include <strings.h>
608 #ifdef HAVE_INTTYPES_H
609 # include <inttypes.h>
627 program_transform_name
685 ac_precious_vars='build_alias
696 # Initialize some variables set by options.
698 ac_init_version=false
699 # The variables have the same names as the options, with
700 # dashes changed to underlines.
708 program_transform_name=s,x,x,
716 # Installation directory options.
717 # These are left unexpanded so users can "make install exec_prefix=/foo"
718 # and all the variables that are supposed to be based on exec_prefix
719 # by default will actually change.
720 # Use braces instead of parens because sh, perl, etc. also accept them.
721 # (The list follows the same order as the GNU Coding Standards.)
722 bindir='${exec_prefix}/bin'
723 sbindir='${exec_prefix}/sbin'
724 libexecdir='${exec_prefix}/libexec'
725 datarootdir='${prefix}/share'
726 datadir='${datarootdir}'
727 sysconfdir='${prefix}/etc'
728 sharedstatedir='${prefix}/com'
729 localstatedir='${prefix}/var'
730 includedir='${prefix}/include'
731 oldincludedir='/usr/include'
732 docdir='${datarootdir}/doc/${PACKAGE}'
733 infodir='${datarootdir}/info'
738 libdir='${exec_prefix}/lib'
739 localedir='${datarootdir}/locale'
740 mandir='${datarootdir}/man'
746 # If the previous option needs an argument, assign it.
747 if test -n "$ac_prev"; then
748 eval $ac_prev=\$ac_option
754 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
758 # Accept the important Cygnus configure options, so we can diagnose typos.
760 case $ac_dashdash$ac_option in
764 -bindir | --bindir | --bindi | --bind | --bin | --bi)
766 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
769 -build | --build | --buil | --bui | --bu)
770 ac_prev=build_alias ;;
771 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
772 build_alias=$ac_optarg ;;
774 -cache-file | --cache-file | --cache-fil | --cache-fi \
775 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
776 ac_prev=cache_file ;;
777 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
778 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
779 cache_file=$ac_optarg ;;
782 cache_file=config.cache ;;
784 -datadir | --datadir | --datadi | --datad)
786 -datadir=* | --datadir=* | --datadi=* | --datad=*)
787 datadir=$ac_optarg ;;
789 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
790 | --dataroo | --dataro | --datar)
791 ac_prev=datarootdir ;;
792 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
793 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
794 datarootdir=$ac_optarg ;;
796 -disable-* | --disable-*)
797 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
798 # Reject names that are not valid shell variable names.
799 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
801 { (exit 1); exit 1; }; }
802 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
803 eval enable_$ac_feature=no ;;
805 -docdir | --docdir | --docdi | --doc | --do)
807 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
810 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
812 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
815 -enable-* | --enable-*)
816 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
817 # Reject names that are not valid shell variable names.
818 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
819 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
820 { (exit 1); exit 1; }; }
821 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
822 eval enable_$ac_feature=\$ac_optarg ;;
824 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
825 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
826 | --exec | --exe | --ex)
827 ac_prev=exec_prefix ;;
828 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
829 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
830 | --exec=* | --exe=* | --ex=*)
831 exec_prefix=$ac_optarg ;;
833 -gas | --gas | --ga | --g)
834 # Obsolete; use --with-gas.
837 -help | --help | --hel | --he | -h)
839 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
840 ac_init_help=recursive ;;
841 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
842 ac_init_help=short ;;
844 -host | --host | --hos | --ho)
845 ac_prev=host_alias ;;
846 -host=* | --host=* | --hos=* | --ho=*)
847 host_alias=$ac_optarg ;;
849 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
851 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
853 htmldir=$ac_optarg ;;
855 -includedir | --includedir | --includedi | --included | --include \
856 | --includ | --inclu | --incl | --inc)
857 ac_prev=includedir ;;
858 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
859 | --includ=* | --inclu=* | --incl=* | --inc=*)
860 includedir=$ac_optarg ;;
862 -infodir | --infodir | --infodi | --infod | --info | --inf)
864 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
865 infodir=$ac_optarg ;;
867 -libdir | --libdir | --libdi | --libd)
869 -libdir=* | --libdir=* | --libdi=* | --libd=*)
872 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
873 | --libexe | --libex | --libe)
874 ac_prev=libexecdir ;;
875 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
876 | --libexe=* | --libex=* | --libe=*)
877 libexecdir=$ac_optarg ;;
879 -localedir | --localedir | --localedi | --localed | --locale)
881 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
882 localedir=$ac_optarg ;;
884 -localstatedir | --localstatedir | --localstatedi | --localstated \
885 | --localstate | --localstat | --localsta | --localst | --locals)
886 ac_prev=localstatedir ;;
887 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
888 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
889 localstatedir=$ac_optarg ;;
891 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
893 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
897 # Obsolete; use --without-fp.
900 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
901 | --no-cr | --no-c | -n)
904 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
905 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
908 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
909 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
910 | --oldin | --oldi | --old | --ol | --o)
911 ac_prev=oldincludedir ;;
912 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
913 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
914 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
915 oldincludedir=$ac_optarg ;;
917 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
919 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
922 -program-prefix | --program-prefix | --program-prefi | --program-pref \
923 | --program-pre | --program-pr | --program-p)
924 ac_prev=program_prefix ;;
925 -program-prefix=* | --program-prefix=* | --program-prefi=* \
926 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
927 program_prefix=$ac_optarg ;;
929 -program-suffix | --program-suffix | --program-suffi | --program-suff \
930 | --program-suf | --program-su | --program-s)
931 ac_prev=program_suffix ;;
932 -program-suffix=* | --program-suffix=* | --program-suffi=* \
933 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
934 program_suffix=$ac_optarg ;;
936 -program-transform-name | --program-transform-name \
937 | --program-transform-nam | --program-transform-na \
938 | --program-transform-n | --program-transform- \
939 | --program-transform | --program-transfor \
940 | --program-transfo | --program-transf \
941 | --program-trans | --program-tran \
942 | --progr-tra | --program-tr | --program-t)
943 ac_prev=program_transform_name ;;
944 -program-transform-name=* | --program-transform-name=* \
945 | --program-transform-nam=* | --program-transform-na=* \
946 | --program-transform-n=* | --program-transform-=* \
947 | --program-transform=* | --program-transfor=* \
948 | --program-transfo=* | --program-transf=* \
949 | --program-trans=* | --program-tran=* \
950 | --progr-tra=* | --program-tr=* | --program-t=*)
951 program_transform_name=$ac_optarg ;;
953 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
955 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
958 -psdir | --psdir | --psdi | --psd | --ps)
960 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
963 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
964 | -silent | --silent | --silen | --sile | --sil)
967 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
969 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
971 sbindir=$ac_optarg ;;
973 -sharedstatedir | --sharedstatedir | --sharedstatedi \
974 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
975 | --sharedst | --shareds | --shared | --share | --shar \
977 ac_prev=sharedstatedir ;;
978 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
979 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
980 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
982 sharedstatedir=$ac_optarg ;;
984 -site | --site | --sit)
986 -site=* | --site=* | --sit=*)
989 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
991 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
994 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
995 | --syscon | --sysco | --sysc | --sys | --sy)
996 ac_prev=sysconfdir ;;
997 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
998 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
999 sysconfdir=$ac_optarg ;;
1001 -target | --target | --targe | --targ | --tar | --ta | --t)
1002 ac_prev=target_alias ;;
1003 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1004 target_alias=$ac_optarg ;;
1006 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1009 -version | --version | --versio | --versi | --vers | -V)
1010 ac_init_version=: ;;
1013 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1014 # Reject names that are not valid shell variable names.
1015 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1016 { echo "$as_me: error: invalid package name: $ac_package" >&2
1017 { (exit 1); exit 1; }; }
1018 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1019 eval with_$ac_package=\$ac_optarg ;;
1021 -without-* | --without-*)
1022 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1023 # Reject names that are not valid shell variable names.
1024 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1025 { echo "$as_me: error: invalid package name: $ac_package" >&2
1026 { (exit 1); exit 1; }; }
1027 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1028 eval with_$ac_package=no ;;
1031 # Obsolete; use --with-x.
1034 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1035 | --x-incl | --x-inc | --x-in | --x-i)
1036 ac_prev=x_includes ;;
1037 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1038 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1039 x_includes=$ac_optarg ;;
1041 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1042 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1043 ac_prev=x_libraries ;;
1044 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1045 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1046 x_libraries=$ac_optarg ;;
1048 -*) { echo "$as_me: error: unrecognized option: $ac_option
1049 Try \`$0 --help' for more information." >&2
1050 { (exit 1); exit 1; }; }
1054 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1055 # Reject names that are not valid shell variable names.
1056 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1057 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1058 { (exit 1); exit 1; }; }
1059 eval $ac_envvar=\$ac_optarg
1060 export $ac_envvar ;;
1063 # FIXME: should be removed in autoconf 3.0.
1064 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1065 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1066 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1067 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1073 if test -n "$ac_prev"; then
1074 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1075 { echo "$as_me: error: missing argument to $ac_option" >&2
1076 { (exit 1); exit 1; }; }
1079 # Be sure to have absolute directory names.
1080 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1081 datadir sysconfdir sharedstatedir localstatedir includedir \
1082 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1083 libdir localedir mandir
1085 eval ac_val=\$$ac_var
1087 [\\/$]* | ?:[\\/]* ) continue;;
1088 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1090 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1091 { (exit 1); exit 1; }; }
1094 # There might be people who depend on the old broken behavior: `$host'
1095 # used to hold the argument of --host etc.
1096 # FIXME: To remove some day.
1099 target=$target_alias
1101 # FIXME: To remove some day.
1102 if test "x$host_alias" != x; then
1103 if test "x$build_alias" = x; then
1104 cross_compiling=maybe
1105 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1106 If a cross compiler is detected then cross compile mode will be used." >&2
1107 elif test "x$build_alias" != "x$host_alias"; then
1113 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1115 test "$silent" = yes && exec 6>/dev/null
1118 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1119 ac_ls_di=`ls -di .` &&
1120 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1121 { echo "$as_me: error: Working directory cannot be determined" >&2
1122 { (exit 1); exit 1; }; }
1123 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1124 { echo "$as_me: error: pwd does not report name of working directory" >&2
1125 { (exit 1); exit 1; }; }
1128 # Find the source files, if location was not specified.
1129 if test -z "$srcdir"; then
1130 ac_srcdir_defaulted=yes
1131 # Try the directory containing this script, then the parent directory.
1132 ac_confdir=`$as_dirname -- "$0" ||
1133 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1134 X"$0" : 'X\(//\)[^/]' \| \
1135 X"$0" : 'X\(//\)$' \| \
1136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1138 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1156 if test ! -r "$srcdir/$ac_unique_file"; then
1160 ac_srcdir_defaulted=no
1162 if test ! -r "$srcdir/$ac_unique_file"; then
1163 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1164 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1165 { (exit 1); exit 1; }; }
1167 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1169 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1170 { (exit 1); exit 1; }; }
1172 # When building in place, set srcdir=.
1173 if test "$ac_abs_confdir" = "$ac_pwd"; then
1176 # Remove unnecessary trailing slashes from srcdir.
1177 # Double slashes in file names in object file debugging info
1178 # mess up M-x gdb in Emacs.
1180 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1182 for ac_var in $ac_precious_vars; do
1183 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1184 eval ac_env_${ac_var}_value=\$${ac_var}
1185 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1186 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1190 # Report the --help message.
1192 if test "$ac_init_help" = "long"; then
1193 # Omit some internal or obsolete options to make the list less imposing.
1194 # This message is too long to be a string in the A/UX 3.1 sh.
1196 \`configure' configures this package to adapt to many kinds of systems.
1198 Usage: $0 [OPTION]... [VAR=VALUE]...
1200 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1201 VAR=VALUE. See below for descriptions of some of the useful variables.
1203 Defaults for the options are specified in brackets.
1206 -h, --help display this help and exit
1207 --help=short display options specific to this package
1208 --help=recursive display the short help of all the included packages
1209 -V, --version display version information and exit
1210 -q, --quiet, --silent do not print \`checking...' messages
1211 --cache-file=FILE cache test results in FILE [disabled]
1212 -C, --config-cache alias for \`--cache-file=config.cache'
1213 -n, --no-create do not create output files
1214 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1216 Installation directories:
1217 --prefix=PREFIX install architecture-independent files in PREFIX
1218 [$ac_default_prefix]
1219 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1222 By default, \`make install' will install all the files in
1223 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1224 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1225 for instance \`--prefix=\$HOME'.
1227 For better control, use the options below.
1229 Fine tuning of the installation directories:
1230 --bindir=DIR user executables [EPREFIX/bin]
1231 --sbindir=DIR system admin executables [EPREFIX/sbin]
1232 --libexecdir=DIR program executables [EPREFIX/libexec]
1233 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1234 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1235 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1236 --libdir=DIR object code libraries [EPREFIX/lib]
1237 --includedir=DIR C header files [PREFIX/include]
1238 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1239 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1240 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1241 --infodir=DIR info documentation [DATAROOTDIR/info]
1242 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1243 --mandir=DIR man documentation [DATAROOTDIR/man]
1244 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1245 --htmldir=DIR html documentation [DOCDIR]
1246 --dvidir=DIR dvi documentation [DOCDIR]
1247 --pdfdir=DIR pdf documentation [DOCDIR]
1248 --psdir=DIR ps documentation [DOCDIR]
1255 if test -n "$ac_init_help"; then
1260 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1261 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1262 --with-python specify path to Python interpreter
1263 --without-gcc never use gcc
1264 --with-var-prefix directory for mutable data /var/mailman
1265 --without-permcheck skip the check for target directory permissions
1266 --with-username specify a user name other than \"mailman\"
1267 --with-groupname specify a group name other than \"mailman\"
1268 --with-mail-gid group name mail programs run as
1269 --with-cgi-gid group name CGI programs run as
1270 --with-cgi-ext specify extension for CGI programs (include dot)
1271 --with-mailhost specify the hostname part for outgoing email
1272 --with-urlhost specify the hostname part of urls
1274 Some influential environment variables:
1275 CC C compiler command
1276 CFLAGS C compiler flags
1277 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1278 nonstandard directory <lib dir>
1279 LIBS libraries to pass to the linker, e.g. -l<library>
1280 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1281 you have headers in a nonstandard directory <include dir>
1284 Use these variables to override the choices made by `configure' or to help
1285 it to find libraries and programs with nonstandard names/locations.
1291 if test "$ac_init_help" = "recursive"; then
1292 # If there are subdirs, report their specific --help.
1293 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1294 test -d "$ac_dir" || continue
1298 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1300 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1301 # A ".." for each directory in $ac_dir_suffix.
1302 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1303 case $ac_top_builddir_sub in
1304 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1305 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1308 ac_abs_top_builddir=$ac_pwd
1309 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1310 # for backward compatibility:
1311 ac_top_builddir=$ac_top_build_prefix
1314 .) # We are building in place.
1316 ac_top_srcdir=$ac_top_builddir_sub
1317 ac_abs_top_srcdir=$ac_pwd ;;
1318 [\\/]* | ?:[\\/]* ) # Absolute name.
1319 ac_srcdir=$srcdir$ac_dir_suffix;
1320 ac_top_srcdir=$srcdir
1321 ac_abs_top_srcdir=$srcdir ;;
1323 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1324 ac_top_srcdir=$ac_top_build_prefix$srcdir
1325 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1327 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1329 cd "$ac_dir" || { ac_status=$?; continue; }
1330 # Check for guested configure.
1331 if test -f "$ac_srcdir/configure.gnu"; then
1333 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1334 elif test -f "$ac_srcdir/configure"; then
1336 $SHELL "$ac_srcdir/configure" --help=recursive
1338 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1340 cd "$ac_pwd" || { ac_status=$?; break; }
1344 test -n "$ac_init_help" && exit $ac_status
1345 if $ac_init_version; then
1348 generated by GNU Autoconf 2.61
1350 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1351 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1352 This configure script is free software; the Free Software Foundation
1353 gives unlimited permission to copy, distribute and modify it.
1357 cat >config.log <<_ACEOF
1358 This file contains any messages produced by compilers while
1359 running configure, to aid debugging if configure makes a mistake.
1361 It was created by $as_me, which was
1362 generated by GNU Autoconf 2.61. Invocation command line was
1374 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1375 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1376 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1377 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1378 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1380 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1381 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1383 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1384 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1385 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1386 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1387 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1388 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1389 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1397 test -z "$as_dir" && as_dir=.
1398 echo "PATH: $as_dir"
1414 # Keep a trace of the command line.
1415 # Strip out --no-create and --no-recursion so they do not pile up.
1416 # Strip out --silent because we don't want to record it for future runs.
1417 # Also quote any args containing shell meta-characters.
1418 # Make two passes to allow for proper duplicate-argument suppression.
1422 ac_must_keep_next=false
1428 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1429 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1430 | -silent | --silent | --silen | --sile | --sil)
1433 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1436 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1438 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1439 if test $ac_must_keep_next = true; then
1440 ac_must_keep_next=false # Got value, back to normal.
1443 *=* | --config-cache | -C | -disable-* | --disable-* \
1444 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1445 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1446 | -with-* | --with-* | -without-* | --without-* | --x)
1447 case "$ac_configure_args0 " in
1448 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1451 -* ) ac_must_keep_next=true ;;
1454 ac_configure_args="$ac_configure_args '$ac_arg'"
1459 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1460 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1462 # When interrupted or exit'd, cleanup temporary files, and complete
1463 # config.log. We remove comments because anyway the quotes in there
1464 # would cause problems or look ugly.
1465 # WARNING: Use '\'' to represent an apostrophe within the trap.
1466 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1467 trap 'exit_status=$?
1468 # Save into config.log some information that might help in debugging.
1473 ## ---------------- ##
1474 ## Cache variables. ##
1475 ## ---------------- ##
1478 # The following way of writing the cache mishandles newlines in values,
1480 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1481 eval ac_val=\$$ac_var
1485 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1486 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1489 _ | IFS | as_nl) ;; #(
1490 *) $as_unset $ac_var ;;
1495 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1496 *${as_nl}ac_space=\ *)
1498 "s/'\''/'\''\\\\'\'''\''/g;
1499 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1502 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1510 ## ----------------- ##
1511 ## Output variables. ##
1512 ## ----------------- ##
1515 for ac_var in $ac_subst_vars
1517 eval ac_val=\$$ac_var
1519 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1521 echo "$ac_var='\''$ac_val'\''"
1525 if test -n "$ac_subst_files"; then
1527 ## ------------------- ##
1528 ## File substitutions. ##
1529 ## ------------------- ##
1532 for ac_var in $ac_subst_files
1534 eval ac_val=\$$ac_var
1536 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1538 echo "$ac_var='\''$ac_val'\''"
1543 if test -s confdefs.h; then
1553 test "$ac_signal" != 0 &&
1554 echo "$as_me: caught signal $ac_signal"
1555 echo "$as_me: exit $exit_status"
1557 rm -f core *.core core.conftest.* &&
1558 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1561 for ac_signal in 1 2 13 15; do
1562 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1566 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1567 rm -f -r conftest* confdefs.h
1569 # Predefined preprocessor variables.
1571 cat >>confdefs.h <<_ACEOF
1572 #define PACKAGE_NAME "$PACKAGE_NAME"
1576 cat >>confdefs.h <<_ACEOF
1577 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1581 cat >>confdefs.h <<_ACEOF
1582 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1586 cat >>confdefs.h <<_ACEOF
1587 #define PACKAGE_STRING "$PACKAGE_STRING"
1591 cat >>confdefs.h <<_ACEOF
1592 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1596 # Let the site file select an alternate cache file if it wants to.
1597 # Prefer explicitly selected file to automatically selected ones.
1598 if test -n "$CONFIG_SITE"; then
1599 set x "$CONFIG_SITE"
1600 elif test "x$prefix" != xNONE; then
1601 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1603 set x "$ac_default_prefix/share/config.site" \
1604 "$ac_default_prefix/etc/config.site"
1609 if test -r "$ac_site_file"; then
1610 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1611 echo "$as_me: loading site script $ac_site_file" >&6;}
1612 sed 's/^/| /' "$ac_site_file" >&5
1617 if test -r "$cache_file"; then
1618 # Some versions of bash will fail to source /dev/null (special
1619 # files actually), so we avoid doing that.
1620 if test -f "$cache_file"; then
1621 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1622 echo "$as_me: loading cache $cache_file" >&6;}
1624 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1625 *) . "./$cache_file";;
1629 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1630 echo "$as_me: creating cache $cache_file" >&6;}
1634 # Check that the precious variables saved in the cache have kept the same
1636 ac_cache_corrupted=false
1637 for ac_var in $ac_precious_vars; do
1638 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1639 eval ac_new_set=\$ac_env_${ac_var}_set
1640 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1641 eval ac_new_val=\$ac_env_${ac_var}_value
1642 case $ac_old_set,$ac_new_set in
1644 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1645 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1646 ac_cache_corrupted=: ;;
1648 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1649 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1650 ac_cache_corrupted=: ;;
1653 if test "x$ac_old_val" != "x$ac_new_val"; then
1654 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1655 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1656 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1657 echo "$as_me: former value: $ac_old_val" >&2;}
1658 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1659 echo "$as_me: current value: $ac_new_val" >&2;}
1660 ac_cache_corrupted=:
1663 # Pass precious variables to config.status.
1664 if test "$ac_new_set" = set; then
1666 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1667 *) ac_arg=$ac_var=$ac_new_val ;;
1669 case " $ac_configure_args " in
1670 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1671 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1675 if $ac_cache_corrupted; then
1676 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1677 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1678 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1679 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1680 { (exit 1); exit 1; }; }
1700 ac_cpp='$CPP $CPPFLAGS'
1701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1708 # /usr/local/mailman is the default installation directory
1712 # Check for Python! Better be found on $PATH
1713 { echo "$as_me:$LINENO: checking for --with-python" >&5
1714 echo $ECHO_N "checking for --with-python... $ECHO_C" >&6; }
1716 # Check whether --with-python was given.
1717 if test "${with_python+set}" = set; then
1718 withval=$with_python;
1721 case "$with_python" in
1723 *) ans="$with_python"
1725 { echo "$as_me:$LINENO: result: $ans" >&5
1726 echo "${ECHO_T}$ans" >&6; }
1728 if test -z "$with_python"
1730 # Extract the first word of "python", so it can be a program name with args.
1731 set dummy python; ac_word=$2
1732 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1734 if test "${ac_cv_path_with_python+set}" = set; then
1735 echo $ECHO_N "(cached) $ECHO_C" >&6
1737 case $with_python in
1739 ac_cv_path_with_python="$with_python" # Let the user override the test with a path.
1742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1746 test -z "$as_dir" && as_dir=.
1747 for ac_exec_ext in '' $ac_executable_extensions; do
1748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1749 ac_cv_path_with_python="$as_dir/$ac_word$ac_exec_ext"
1750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1757 test -z "$ac_cv_path_with_python" && ac_cv_path_with_python="/usr/local/bin/python"
1761 with_python=$ac_cv_path_with_python
1762 if test -n "$with_python"; then
1763 { echo "$as_me:$LINENO: result: $with_python" >&5
1764 echo "${ECHO_T}$with_python" >&6; }
1766 { echo "$as_me:$LINENO: result: no" >&5
1767 echo "${ECHO_T}no" >&6; }
1773 { echo "$as_me:$LINENO: checking Python interpreter" >&5
1774 echo $ECHO_N "checking Python interpreter... $ECHO_C" >&6; }
1775 if test ! -x $with_python
1777 { { echo "$as_me:$LINENO: error:
1779 ***** No Python interpreter found!
1780 ***** Try including the configure option
1781 ***** --with-python=/path/to/python/interpreter" >&5
1782 echo "$as_me: error:
1784 ***** No Python interpreter found!
1785 ***** Try including the configure option
1786 ***** --with-python=/path/to/python/interpreter" >&2;}
1787 { (exit 1); exit 1; }; }
1791 { echo "$as_me:$LINENO: result: $PYTHON" >&5
1792 echo "${ECHO_T}$PYTHON" >&6; }
1794 # See if Python is new enough. 2.1 or better is required, with 2.1.3
1796 { echo "$as_me:$LINENO: checking Python version" >&5
1797 echo $ECHO_N "checking Python version... $ECHO_C" >&6; }
1799 cat > conftest.py <<EOF
1803 except AttributeError:
1805 # int of hexversion 0x2010000
1807 s = sys.version.split()[0]
1810 fp = open("conftest.out", "w")
1811 fp.write("%s\n" % s)
1816 version=`cat conftest.out`
1817 rm -f conftest.out conftest.py
1818 if test -z "$version"
1820 { { echo "$as_me:$LINENO: error:
1822 ***** $PYTHON is too old (or broken)
1823 ***** Python 2.1 or newer is required
1824 ***** Python 2.1.3 or better is recommended" >&5
1825 echo "$as_me: error:
1827 ***** $PYTHON is too old (or broken)
1828 ***** Python 2.1 or newer is required
1829 ***** Python 2.1.3 or better is recommended" >&2;}
1830 { (exit 1); exit 1; }; }
1832 { echo "$as_me:$LINENO: result: $version" >&5
1833 echo "${ECHO_T}$version" >&6; }
1835 # Make sure distutils is available. Some Linux Python packages split
1836 # distutils into the "-devel" package, so they need both.
1837 { echo "$as_me:$LINENO: checking that Python has a working distutils" >&5
1838 echo $ECHO_N "checking that Python has a working distutils... $ECHO_C" >&6; }
1840 cat > conftest.py <<EOF
1842 import distutils.errors
1843 import distutils.sysconfig
1848 distutils.sysconfig.get_config_vars()
1849 except distutils.errors.DistutilsPlatformError:
1853 fp = open("conftest.out", "w")
1854 fp.write("%s\n" % res)
1859 havedistutils=`cat conftest.out`
1860 rm -f conftest.out conftest.py
1861 if test "$havedistutils" != "yes"
1863 { { echo "$as_me:$LINENO: error:
1865 ***** Distutils is not available or is incomplete for $PYTHON
1866 ***** If you installed Python from RPM (or other package manager)
1867 ***** be sure to install the -devel package, or install Python
1868 ***** from source. See README.LINUX for details" >&5
1869 echo "$as_me: error:
1871 ***** Distutils is not available or is incomplete for $PYTHON
1872 ***** If you installed Python from RPM (or other package manager)
1873 ***** be sure to install the -devel package, or install Python
1874 ***** from source. See README.LINUX for details" >&2;}
1875 { (exit 1); exit 1; }; }
1877 { echo "$as_me:$LINENO: result: $havedistutils" >&5
1878 echo "${ECHO_T}$havedistutils" >&6; }
1880 # Checks for programs.
1882 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1883 if test -f "$ac_dir/install-sh"; then
1885 ac_install_sh="$ac_aux_dir/install-sh -c"
1887 elif test -f "$ac_dir/install.sh"; then
1889 ac_install_sh="$ac_aux_dir/install.sh -c"
1891 elif test -f "$ac_dir/shtool"; then
1893 ac_install_sh="$ac_aux_dir/shtool install -c"
1897 if test -z "$ac_aux_dir"; then
1898 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1899 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1900 { (exit 1); exit 1; }; }
1903 # These three variables are undocumented and unsupported,
1904 # and are intended to be withdrawn in a future Autoconf release.
1905 # They can cause serious problems if a builder's source tree is in a directory
1906 # whose full name contains unusual characters.
1907 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1908 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1909 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1912 # Find a good install program. We prefer a C program (faster),
1913 # so one script is as good as another. But avoid the broken or
1914 # incompatible versions:
1915 # SysV /etc/install, /usr/sbin/install
1916 # SunOS /usr/etc/install
1917 # IRIX /sbin/install
1919 # AmigaOS /C/install, which installs bootblocks on floppy discs
1920 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1921 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1922 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1923 # OS/2's system install, which has a completely different semantic
1924 # ./install, which can be erroneously created by make from ./install.sh.
1925 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1926 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1927 if test -z "$INSTALL"; then
1928 if test "${ac_cv_path_install+set}" = set; then
1929 echo $ECHO_N "(cached) $ECHO_C" >&6
1931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1935 test -z "$as_dir" && as_dir=.
1936 # Account for people who put trailing slashes in PATH elements.
1938 ./ | .// | /cC/* | \
1939 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1940 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1943 # OSF1 and SCO ODT 3.0 have their own names for install.
1944 # Don't use installbsd from OSF since it installs stuff as root
1946 for ac_prog in ginstall scoinst install; do
1947 for ac_exec_ext in '' $ac_executable_extensions; do
1948 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1949 if test $ac_prog = install &&
1950 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1951 # AIX install. It has an incompatible calling convention.
1953 elif test $ac_prog = install &&
1954 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1955 # program-specific install script used by HP pwplus--don't use.
1958 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1971 if test "${ac_cv_path_install+set}" = set; then
1972 INSTALL=$ac_cv_path_install
1974 # As a last resort, use the slow shell script. Don't cache a
1975 # value for INSTALL within a source directory, because that will
1976 # break other packages using the cache if that directory is
1977 # removed, or if the value is a relative name.
1978 INSTALL=$ac_install_sh
1981 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1982 echo "${ECHO_T}$INSTALL" >&6; }
1984 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1985 # It thinks the first close brace ends the variable substitution.
1986 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1988 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1990 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1992 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1993 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
1994 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1995 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1996 echo $ECHO_N "(cached) $ECHO_C" >&6
1998 cat >conftest.make <<\_ACEOF
2001 @echo '@@@%%%=$(MAKE)=@@@%%%'
2003 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2004 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2006 eval ac_cv_prog_make_${ac_make}_set=yes;;
2008 eval ac_cv_prog_make_${ac_make}_set=no;;
2012 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2013 { echo "$as_me:$LINENO: result: yes" >&5
2014 echo "${ECHO_T}yes" >&6; }
2017 { echo "$as_me:$LINENO: result: no" >&5
2018 echo "${ECHO_T}no" >&6; }
2019 SET_MAKE="MAKE=${MAKE-make}"
2022 # Extract the first word of "true", so it can be a program name with args.
2023 set dummy true; ac_word=$2
2024 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2026 if test "${ac_cv_path_TRUE+set}" = set; then
2027 echo $ECHO_N "(cached) $ECHO_C" >&6
2031 ac_cv_path_TRUE="$TRUE" # Let the user override the test with a path.
2034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2035 as_dummy="$PATH:/bin:/usr/bin"
2036 for as_dir in $as_dummy
2039 test -z "$as_dir" && as_dir=.
2040 for ac_exec_ext in '' $ac_executable_extensions; do
2041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2042 ac_cv_path_TRUE="$as_dir/$ac_word$ac_exec_ext"
2043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2050 test -z "$ac_cv_path_TRUE" && ac_cv_path_TRUE="true"
2054 TRUE=$ac_cv_path_TRUE
2055 if test -n "$TRUE"; then
2056 { echo "$as_me:$LINENO: result: $TRUE" >&5
2057 echo "${ECHO_T}$TRUE" >&6; }
2059 { echo "$as_me:$LINENO: result: no" >&5
2060 echo "${ECHO_T}no" >&6; }
2065 # Find compiler, allow alternatives to gcc
2066 { echo "$as_me:$LINENO: checking for --without-gcc" >&5
2067 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
2069 # Check whether --with-gcc was given.
2070 if test "${with_gcc+set}" = set; then
2078 without_gcc=$withval;;
2084 { echo "$as_me:$LINENO: result: $without_gcc" >&5
2085 echo "${ECHO_T}$without_gcc" >&6; }
2087 # If the user switches compilers, we can't believe the cache
2088 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2090 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2091 (it is also a good idea to do 'make clean' before compiling)" >&5
2092 echo "$as_me: error: cached CC is different -- throw away $cache_file
2093 (it is also a good idea to do 'make clean' before compiling)" >&2;}
2094 { (exit 1); exit 1; }; }
2098 ac_cpp='$CPP $CPPFLAGS'
2099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2102 if test -n "$ac_tool_prefix"; then
2103 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2104 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2107 if test "${ac_cv_prog_CC+set}" = set; then
2108 echo $ECHO_N "(cached) $ECHO_C" >&6
2110 if test -n "$CC"; then
2111 ac_cv_prog_CC="$CC" # Let the user override the test.
2113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2117 test -z "$as_dir" && as_dir=.
2118 for ac_exec_ext in '' $ac_executable_extensions; do
2119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2120 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2131 if test -n "$CC"; then
2132 { echo "$as_me:$LINENO: result: $CC" >&5
2133 echo "${ECHO_T}$CC" >&6; }
2135 { echo "$as_me:$LINENO: result: no" >&5
2136 echo "${ECHO_T}no" >&6; }
2141 if test -z "$ac_cv_prog_CC"; then
2143 # Extract the first word of "gcc", so it can be a program name with args.
2144 set dummy gcc; ac_word=$2
2145 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2147 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2148 echo $ECHO_N "(cached) $ECHO_C" >&6
2150 if test -n "$ac_ct_CC"; then
2151 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2157 test -z "$as_dir" && as_dir=.
2158 for ac_exec_ext in '' $ac_executable_extensions; do
2159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2160 ac_cv_prog_ac_ct_CC="gcc"
2161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2170 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2171 if test -n "$ac_ct_CC"; then
2172 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2173 echo "${ECHO_T}$ac_ct_CC" >&6; }
2175 { echo "$as_me:$LINENO: result: no" >&5
2176 echo "${ECHO_T}no" >&6; }
2179 if test "x$ac_ct_CC" = x; then
2182 case $cross_compiling:$ac_tool_warned in
2184 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2185 whose name does not start with the host triplet. If you think this
2186 configuration is useful to you, please write to autoconf@gnu.org." >&5
2187 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2188 whose name does not start with the host triplet. If you think this
2189 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2190 ac_tool_warned=yes ;;
2198 if test -z "$CC"; then
2199 if test -n "$ac_tool_prefix"; then
2200 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2201 set dummy ${ac_tool_prefix}cc; ac_word=$2
2202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2204 if test "${ac_cv_prog_CC+set}" = set; then
2205 echo $ECHO_N "(cached) $ECHO_C" >&6
2207 if test -n "$CC"; then
2208 ac_cv_prog_CC="$CC" # Let the user override the test.
2210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2214 test -z "$as_dir" && as_dir=.
2215 for ac_exec_ext in '' $ac_executable_extensions; do
2216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2217 ac_cv_prog_CC="${ac_tool_prefix}cc"
2218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2228 if test -n "$CC"; then
2229 { echo "$as_me:$LINENO: result: $CC" >&5
2230 echo "${ECHO_T}$CC" >&6; }
2232 { echo "$as_me:$LINENO: result: no" >&5
2233 echo "${ECHO_T}no" >&6; }
2239 if test -z "$CC"; then
2240 # Extract the first word of "cc", so it can be a program name with args.
2241 set dummy cc; ac_word=$2
2242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2244 if test "${ac_cv_prog_CC+set}" = set; then
2245 echo $ECHO_N "(cached) $ECHO_C" >&6
2247 if test -n "$CC"; then
2248 ac_cv_prog_CC="$CC" # Let the user override the test.
2251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2255 test -z "$as_dir" && as_dir=.
2256 for ac_exec_ext in '' $ac_executable_extensions; do
2257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2258 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2259 ac_prog_rejected=yes
2263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2270 if test $ac_prog_rejected = yes; then
2271 # We found a bogon in the path, so make sure we never use it.
2272 set dummy $ac_cv_prog_CC
2274 if test $# != 0; then
2275 # We chose a different compiler from the bogus one.
2276 # However, it has the same basename, so the bogon will be chosen
2277 # first if we set CC to just the basename; use the full file name.
2279 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2285 if test -n "$CC"; then
2286 { echo "$as_me:$LINENO: result: $CC" >&5
2287 echo "${ECHO_T}$CC" >&6; }
2289 { echo "$as_me:$LINENO: result: no" >&5
2290 echo "${ECHO_T}no" >&6; }
2295 if test -z "$CC"; then
2296 if test -n "$ac_tool_prefix"; then
2297 for ac_prog in cl.exe
2299 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2300 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2303 if test "${ac_cv_prog_CC+set}" = set; then
2304 echo $ECHO_N "(cached) $ECHO_C" >&6
2306 if test -n "$CC"; then
2307 ac_cv_prog_CC="$CC" # Let the user override the test.
2309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2313 test -z "$as_dir" && as_dir=.
2314 for ac_exec_ext in '' $ac_executable_extensions; do
2315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2316 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2327 if test -n "$CC"; then
2328 { echo "$as_me:$LINENO: result: $CC" >&5
2329 echo "${ECHO_T}$CC" >&6; }
2331 { echo "$as_me:$LINENO: result: no" >&5
2332 echo "${ECHO_T}no" >&6; }
2336 test -n "$CC" && break
2339 if test -z "$CC"; then
2341 for ac_prog in cl.exe
2343 # Extract the first word of "$ac_prog", so it can be a program name with args.
2344 set dummy $ac_prog; ac_word=$2
2345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2347 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2348 echo $ECHO_N "(cached) $ECHO_C" >&6
2350 if test -n "$ac_ct_CC"; then
2351 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2357 test -z "$as_dir" && as_dir=.
2358 for ac_exec_ext in '' $ac_executable_extensions; do
2359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2360 ac_cv_prog_ac_ct_CC="$ac_prog"
2361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2370 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2371 if test -n "$ac_ct_CC"; then
2372 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2373 echo "${ECHO_T}$ac_ct_CC" >&6; }
2375 { echo "$as_me:$LINENO: result: no" >&5
2376 echo "${ECHO_T}no" >&6; }
2380 test -n "$ac_ct_CC" && break
2383 if test "x$ac_ct_CC" = x; then
2386 case $cross_compiling:$ac_tool_warned in
2388 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2389 whose name does not start with the host triplet. If you think this
2390 configuration is useful to you, please write to autoconf@gnu.org." >&5
2391 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2392 whose name does not start with the host triplet. If you think this
2393 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2394 ac_tool_warned=yes ;;
2403 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2404 See \`config.log' for more details." >&5
2405 echo "$as_me: error: no acceptable C compiler found in \$PATH
2406 See \`config.log' for more details." >&2;}
2407 { (exit 1); exit 1; }; }
2409 # Provide some information about the compiler.
2410 echo "$as_me:$LINENO: checking for C compiler version" >&5
2411 ac_compiler=`set X $ac_compile; echo $2`
2412 { (ac_try="$ac_compiler --version >&5"
2414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2415 *) ac_try_echo=$ac_try;;
2417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2418 (eval "$ac_compiler --version >&5") 2>&5
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); }
2422 { (ac_try="$ac_compiler -v >&5"
2424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2425 *) ac_try_echo=$ac_try;;
2427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2428 (eval "$ac_compiler -v >&5") 2>&5
2430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431 (exit $ac_status); }
2432 { (ac_try="$ac_compiler -V >&5"
2434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2435 *) ac_try_echo=$ac_try;;
2437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2438 (eval "$ac_compiler -V >&5") 2>&5
2440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441 (exit $ac_status); }
2443 cat >conftest.$ac_ext <<_ACEOF
2446 cat confdefs.h >>conftest.$ac_ext
2447 cat >>conftest.$ac_ext <<_ACEOF
2448 /* end confdefs.h. */
2458 ac_clean_files_save=$ac_clean_files
2459 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2460 # Try to create an executable without -o first, disregard a.out.
2461 # It will help us diagnose broken compilers, and finding out an intuition
2463 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2464 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2465 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2467 # List of possible output files, starting from the most likely.
2468 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2469 # only as a last resort. b.out is created by i960 compilers.
2470 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2472 # The IRIX 6 linker writes into existing files which may not be
2473 # executable, retaining their permissions. Remove them first so a
2474 # subsequent execution test works.
2476 for ac_file in $ac_files
2479 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2480 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2485 if { (ac_try="$ac_link_default"
2487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488 *) ac_try_echo=$ac_try;;
2490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2491 (eval "$ac_link_default") 2>&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); }; then
2495 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2496 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2497 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2498 # so that the user can short-circuit this test for compilers unknown to
2500 for ac_file in $ac_files ''
2502 test -f "$ac_file" || continue
2504 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2507 # We found the default executable, but exeext='' is most
2511 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2513 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2515 # We set ac_cv_exeext here because the later test for it is not
2516 # safe: cross compilers may not add the suffix if given an `-o'
2517 # argument, so we may need to know it at that point already.
2518 # Even if this section looks crufty: it has the advantage of
2525 test "$ac_cv_exeext" = no && ac_cv_exeext=
2531 { echo "$as_me:$LINENO: result: $ac_file" >&5
2532 echo "${ECHO_T}$ac_file" >&6; }
2533 if test -z "$ac_file"; then
2534 echo "$as_me: failed program was:" >&5
2535 sed 's/^/| /' conftest.$ac_ext >&5
2537 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2538 See \`config.log' for more details." >&5
2539 echo "$as_me: error: C compiler cannot create executables
2540 See \`config.log' for more details." >&2;}
2541 { (exit 77); exit 77; }; }
2544 ac_exeext=$ac_cv_exeext
2546 # Check that the compiler produces executables we can run. If not, either
2547 # the compiler is broken, or we cross compile.
2548 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2549 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2550 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2551 # If not cross compiling, check that we can run a simple program.
2552 if test "$cross_compiling" != yes; then
2553 if { ac_try='./$ac_file'
2554 { (case "(($ac_try" in
2555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2556 *) ac_try_echo=$ac_try;;
2558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2559 (eval "$ac_try") 2>&5
2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562 (exit $ac_status); }; }; then
2565 if test "$cross_compiling" = maybe; then
2568 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2569 If you meant to cross compile, use \`--host'.
2570 See \`config.log' for more details." >&5
2571 echo "$as_me: error: cannot run C compiled programs.
2572 If you meant to cross compile, use \`--host'.
2573 See \`config.log' for more details." >&2;}
2574 { (exit 1); exit 1; }; }
2578 { echo "$as_me:$LINENO: result: yes" >&5
2579 echo "${ECHO_T}yes" >&6; }
2581 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2582 ac_clean_files=$ac_clean_files_save
2583 # Check that the compiler produces executables we can run. If not, either
2584 # the compiler is broken, or we cross compile.
2585 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2586 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2587 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2588 echo "${ECHO_T}$cross_compiling" >&6; }
2590 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2591 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2592 if { (ac_try="$ac_link"
2594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2595 *) ac_try_echo=$ac_try;;
2597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2598 (eval "$ac_link") 2>&5
2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601 (exit $ac_status); }; then
2602 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2603 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2604 # work properly (i.e., refer to `conftest.exe'), while it won't with
2606 for ac_file in conftest.exe conftest conftest.*; do
2607 test -f "$ac_file" || continue
2609 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2610 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2616 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2617 See \`config.log' for more details." >&5
2618 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2619 See \`config.log' for more details." >&2;}
2620 { (exit 1); exit 1; }; }
2623 rm -f conftest$ac_cv_exeext
2624 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2625 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2627 rm -f conftest.$ac_ext
2628 EXEEXT=$ac_cv_exeext
2630 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2631 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2632 if test "${ac_cv_objext+set}" = set; then
2633 echo $ECHO_N "(cached) $ECHO_C" >&6
2635 cat >conftest.$ac_ext <<_ACEOF
2638 cat confdefs.h >>conftest.$ac_ext
2639 cat >>conftest.$ac_ext <<_ACEOF
2640 /* end confdefs.h. */
2650 rm -f conftest.o conftest.obj
2651 if { (ac_try="$ac_compile"
2653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2654 *) ac_try_echo=$ac_try;;
2656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2657 (eval "$ac_compile") 2>&5
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); }; then
2661 for ac_file in conftest.o conftest.obj conftest.*; do
2662 test -f "$ac_file" || continue;
2664 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2665 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2670 echo "$as_me: failed program was:" >&5
2671 sed 's/^/| /' conftest.$ac_ext >&5
2673 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2674 See \`config.log' for more details." >&5
2675 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2676 See \`config.log' for more details." >&2;}
2677 { (exit 1); exit 1; }; }
2680 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2682 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2683 echo "${ECHO_T}$ac_cv_objext" >&6; }
2684 OBJEXT=$ac_cv_objext
2686 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2687 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2688 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2689 echo $ECHO_N "(cached) $ECHO_C" >&6
2691 cat >conftest.$ac_ext <<_ACEOF
2694 cat confdefs.h >>conftest.$ac_ext
2695 cat >>conftest.$ac_ext <<_ACEOF
2696 /* end confdefs.h. */
2709 rm -f conftest.$ac_objext
2710 if { (ac_try="$ac_compile"
2712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2713 *) ac_try_echo=$ac_try;;
2715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2716 (eval "$ac_compile") 2>conftest.er1
2718 grep -v '^ *+' conftest.er1 >conftest.err
2720 cat conftest.err >&5
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); } && {
2723 test -z "$ac_c_werror_flag" ||
2724 test ! -s conftest.err
2725 } && test -s conftest.$ac_objext; then
2728 echo "$as_me: failed program was:" >&5
2729 sed 's/^/| /' conftest.$ac_ext >&5
2734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2735 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2738 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2739 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2740 GCC=`test $ac_compiler_gnu = yes && echo yes`
2741 ac_test_CFLAGS=${CFLAGS+set}
2742 ac_save_CFLAGS=$CFLAGS
2743 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2744 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2745 if test "${ac_cv_prog_cc_g+set}" = set; then
2746 echo $ECHO_N "(cached) $ECHO_C" >&6
2748 ac_save_c_werror_flag=$ac_c_werror_flag
2749 ac_c_werror_flag=yes
2752 cat >conftest.$ac_ext <<_ACEOF
2755 cat confdefs.h >>conftest.$ac_ext
2756 cat >>conftest.$ac_ext <<_ACEOF
2757 /* end confdefs.h. */
2767 rm -f conftest.$ac_objext
2768 if { (ac_try="$ac_compile"
2770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2771 *) ac_try_echo=$ac_try;;
2773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2774 (eval "$ac_compile") 2>conftest.er1
2776 grep -v '^ *+' conftest.er1 >conftest.err
2778 cat conftest.err >&5
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); } && {
2781 test -z "$ac_c_werror_flag" ||
2782 test ! -s conftest.err
2783 } && test -s conftest.$ac_objext; then
2786 echo "$as_me: failed program was:" >&5
2787 sed 's/^/| /' conftest.$ac_ext >&5
2790 cat >conftest.$ac_ext <<_ACEOF
2793 cat confdefs.h >>conftest.$ac_ext
2794 cat >>conftest.$ac_ext <<_ACEOF
2795 /* end confdefs.h. */
2805 rm -f conftest.$ac_objext
2806 if { (ac_try="$ac_compile"
2808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2809 *) ac_try_echo=$ac_try;;
2811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2812 (eval "$ac_compile") 2>conftest.er1
2814 grep -v '^ *+' conftest.er1 >conftest.err
2816 cat conftest.err >&5
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); } && {
2819 test -z "$ac_c_werror_flag" ||
2820 test ! -s conftest.err
2821 } && test -s conftest.$ac_objext; then
2824 echo "$as_me: failed program was:" >&5
2825 sed 's/^/| /' conftest.$ac_ext >&5
2827 ac_c_werror_flag=$ac_save_c_werror_flag
2829 cat >conftest.$ac_ext <<_ACEOF
2832 cat confdefs.h >>conftest.$ac_ext
2833 cat >>conftest.$ac_ext <<_ACEOF
2834 /* end confdefs.h. */
2844 rm -f conftest.$ac_objext
2845 if { (ac_try="$ac_compile"
2847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2848 *) ac_try_echo=$ac_try;;
2850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2851 (eval "$ac_compile") 2>conftest.er1
2853 grep -v '^ *+' conftest.er1 >conftest.err
2855 cat conftest.err >&5
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); } && {
2858 test -z "$ac_c_werror_flag" ||
2859 test ! -s conftest.err
2860 } && test -s conftest.$ac_objext; then
2863 echo "$as_me: failed program was:" >&5
2864 sed 's/^/| /' conftest.$ac_ext >&5
2869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2876 ac_c_werror_flag=$ac_save_c_werror_flag
2878 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2879 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2880 if test "$ac_test_CFLAGS" = set; then
2881 CFLAGS=$ac_save_CFLAGS
2882 elif test $ac_cv_prog_cc_g = yes; then
2883 if test "$GCC" = yes; then
2889 if test "$GCC" = yes; then
2895 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2896 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2897 if test "${ac_cv_prog_cc_c89+set}" = set; then
2898 echo $ECHO_N "(cached) $ECHO_C" >&6
2900 ac_cv_prog_cc_c89=no
2902 cat >conftest.$ac_ext <<_ACEOF
2905 cat confdefs.h >>conftest.$ac_ext
2906 cat >>conftest.$ac_ext <<_ACEOF
2907 /* end confdefs.h. */
2910 #include <sys/types.h>
2911 #include <sys/stat.h>
2912 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2913 struct buf { int x; };
2914 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2915 static char *e (p, i)
2921 static char *f (char * (*g) (char **, int), char **p, ...)
2926 s = g (p, va_arg (v,int));
2931 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2932 function prototypes and stuff, but not '\xHH' hex character constants.
2933 These don't provoke an error unfortunately, instead are silently treated
2934 as 'x'. The following induces an error, until -std is added to get
2935 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2936 array size at least. It's necessary to write '\x00'==0 to get something
2937 that's true only with -std. */
2938 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2940 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2941 inside strings and character constants. */
2943 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2945 int test (int i, double x);
2946 struct s1 {int (*f) (int a);};
2947 struct s2 {int (*f) (double a);};
2948 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2954 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2959 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2960 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2962 CC="$ac_save_CC $ac_arg"
2963 rm -f conftest.$ac_objext
2964 if { (ac_try="$ac_compile"
2966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2967 *) ac_try_echo=$ac_try;;
2969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2970 (eval "$ac_compile") 2>conftest.er1
2972 grep -v '^ *+' conftest.er1 >conftest.err
2974 cat conftest.err >&5
2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976 (exit $ac_status); } && {
2977 test -z "$ac_c_werror_flag" ||
2978 test ! -s conftest.err
2979 } && test -s conftest.$ac_objext; then
2980 ac_cv_prog_cc_c89=$ac_arg
2982 echo "$as_me: failed program was:" >&5
2983 sed 's/^/| /' conftest.$ac_ext >&5
2988 rm -f core conftest.err conftest.$ac_objext
2989 test "x$ac_cv_prog_cc_c89" != "xno" && break
2991 rm -f conftest.$ac_ext
2996 case "x$ac_cv_prog_cc_c89" in
2998 { echo "$as_me:$LINENO: result: none needed" >&5
2999 echo "${ECHO_T}none needed" >&6; } ;;
3001 { echo "$as_me:$LINENO: result: unsupported" >&5
3002 echo "${ECHO_T}unsupported" >&6; } ;;
3004 CC="$CC $ac_cv_prog_cc_c89"
3005 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3006 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3011 ac_cpp='$CPP $CPPFLAGS'
3012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3018 # Optimizer/debugger flags passed between Makefiles
3024 case $ac_cv_prog_cc_g in
3033 # We better be able to execute interpreters
3034 { echo "$as_me:$LINENO: checking whether #! works in shell scripts" >&5
3035 echo $ECHO_N "checking whether #! works in shell scripts... $ECHO_C" >&6; }
3036 if test "${ac_cv_sys_interpreter+set}" = set; then
3037 echo $ECHO_N "(cached) $ECHO_C" >&6
3043 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
3044 if test $? -ne 69; then
3045 ac_cv_sys_interpreter=yes
3047 ac_cv_sys_interpreter=no
3051 { echo "$as_me:$LINENO: result: $ac_cv_sys_interpreter" >&5
3052 echo "${ECHO_T}$ac_cv_sys_interpreter" >&6; }
3053 interpval=$ac_cv_sys_interpreter
3055 if test "$ac_cv_sys_interpreter" != "yes"
3057 { { echo "$as_me:$LINENO: error:
3059 ***** Cannot execute interpreter scripts?
3060 ***** Are you sure you system doesn't support this?" >&5
3061 echo "$as_me: error:
3063 ***** Cannot execute interpreter scripts?
3064 ***** Are you sure you system doesn't support this?" >&2;}
3065 { (exit 1); exit 1; }; }
3069 # Check for an alternate data directory, separate from installation dir.
3070 default_var_prefix="/var/mailman"
3072 { echo "$as_me:$LINENO: checking for --with-var-prefix" >&5
3073 echo $ECHO_N "checking for --with-var-prefix... $ECHO_C" >&6; }
3075 # Check whether --with-var-prefix was given.
3076 if test "${with_var_prefix+set}" = set; then
3077 withval=$with_var_prefix;
3080 case "$with_var_prefix" in
3081 yes) VAR_PREFIX="$default_var_prefix"; ans=$VAR_PREFIX;;
3082 ""|no) VAR_PREFIX="$prefix"; ans="no";;
3083 *) VAR_PREFIX="$with_var_prefix"; ans=$VAR_PREFIX;
3085 { echo "$as_me:$LINENO: result: $ans" >&5
3086 echo "${ECHO_T}$ans" >&6; }
3088 { echo "$as_me:$LINENO: checking for --with-permcheck" >&5
3089 echo $ECHO_N "checking for --with-permcheck... $ECHO_C" >&6; }
3091 # Check whether --with-permcheck was given.
3092 if test "${with_permcheck+set}" = set; then
3093 withval=$with_permcheck;
3096 if test -z "$with_permcheck"
3098 with_permcheck="yes"
3100 { echo "$as_me:$LINENO: result: $with_permcheck" >&5
3101 echo "${ECHO_T}$with_permcheck" >&6; }
3102 # Now make sure that $prefix is set up correctly. It must be group
3103 # owned by the target group, it must have the group sticky bit set, and
3105 if test "$VAR_PREFIX" = "NONE"
3107 VAR_PREFIX=$ac_default_prefix
3108 prefixcheck=$ac_default_prefix
3110 prefixcheck=$VAR_PREFIX
3113 # new macro for finding group names
3117 # new macro for finding UIDs
3120 # Check for some other uid to use than `mailman'
3121 { echo "$as_me:$LINENO: checking for --with-username" >&5
3122 echo $ECHO_N "checking for --with-username... $ECHO_C" >&6; }
3124 # Check whether --with-username was given.
3125 if test "${with_username+set}" = set; then
3126 withval=$with_username;
3130 if test -z "$with_username"
3132 with_username="mailman"
3134 USERNAME=$with_username
3135 { echo "$as_me:$LINENO: result: $USERNAME" >&5
3136 echo "${ECHO_T}$USERNAME" >&6; }
3138 # User `mailman' must exist
3140 { echo "$as_me:$LINENO: checking for user name \"$USERNAME\"" >&5
3141 echo $ECHO_N "checking for user name \"$USERNAME\"... $ECHO_C" >&6; }
3143 # MAILMAN_USER == variable name
3144 # $USERNAME == user id to check for
3147 if test -z "$MAILMAN_USER"
3149 cat > conftest.py <<EOF
3152 for user in "$USERNAME".split():
3155 uname = pwd.getpwuid(int(user))[0]
3158 uname = pwd.getpwnam(user)[0]
3162 fp = open("conftest.out", "w")
3163 fp.write("%s\n" % uname)
3167 MAILMAN_USER=`cat conftest.out`
3170 rm -f conftest.out conftest.py
3171 if test -z "$MAILMAN_USER"
3173 if test "$with_permcheck" = "yes"
3175 { { echo "$as_me:$LINENO: error:
3176 ***** No \"$USERNAME\" user found!
3177 ***** Your system must have a \"$USERNAME\" user defined
3178 ***** (usually in your /etc/passwd file). Please see the INSTALL
3179 ***** file for details." >&5
3180 echo "$as_me: error:
3181 ***** No \"$USERNAME\" user found!
3182 ***** Your system must have a \"$USERNAME\" user defined
3183 ***** (usually in your /etc/passwd file). Please see the INSTALL
3184 ***** file for details." >&2;}
3185 { (exit 1); exit 1; }; }
3188 { echo "$as_me:$LINENO: result: okay" >&5
3189 echo "${ECHO_T}okay" >&6; }
3192 # Check for some other gid to use than `mailman'
3193 { echo "$as_me:$LINENO: checking for --with-groupname" >&5
3194 echo $ECHO_N "checking for --with-groupname... $ECHO_C" >&6; }
3196 # Check whether --with-groupname was given.
3197 if test "${with_groupname+set}" = set; then
3198 withval=$with_groupname;
3202 if test -z "$with_groupname"
3204 with_groupname="mailman"
3206 GROUPNAME=$with_groupname
3207 { echo "$as_me:$LINENO: result: $GROUPNAME" >&5
3208 echo "${ECHO_T}$GROUPNAME" >&6; }
3211 # Target group must exist
3213 { echo "$as_me:$LINENO: checking for group name \"$GROUPNAME\"" >&5
3214 echo $ECHO_N "checking for group name \"$GROUPNAME\"... $ECHO_C" >&6; }
3216 # MAILMAN_GROUP == variable name
3217 # $GROUPNAME == user id to check for
3220 if test -z "$MAILMAN_GROUP"
3222 cat > conftest.py <<EOF
3225 for group in "$GROUPNAME".split():
3228 gname = grp.getgrgid(int(group))[0]
3231 gname = grp.getgrnam(group)[0]
3235 fp = open("conftest.out", "w")
3236 fp.write("%s\n" % gname)
3240 MAILMAN_GROUP=`cat conftest.out`
3243 rm -f conftest.out conftest.py
3244 if test -z "$MAILMAN_GROUP"
3246 if test "$with_permcheck" = "yes"
3248 { { echo "$as_me:$LINENO: error:
3249 ***** No \"$GROUPNAME\" group found!
3250 ***** Your system must have a \"$GROUPNAME\" group defined
3251 ***** (usually in your /etc/group file). Please see the INSTALL
3252 ***** file for details." >&5
3253 echo "$as_me: error:
3254 ***** No \"$GROUPNAME\" group found!
3255 ***** Your system must have a \"$GROUPNAME\" group defined
3256 ***** (usually in your /etc/group file). Please see the INSTALL
3257 ***** file for details." >&2;}
3258 { (exit 1); exit 1; }; }
3261 { echo "$as_me:$LINENO: result: okay" >&5
3262 echo "${ECHO_T}okay" >&6; }
3265 { echo "$as_me:$LINENO: checking permissions on $prefixcheck" >&5
3266 echo $ECHO_N "checking permissions on $prefixcheck... $ECHO_C" >&6; }
3268 cat > conftest.py <<EOF
3271 prefix = "$prefixcheck"
3272 groupname = "$GROUPNAME"
3273 mailmangroup = "$MAILMAN_GROUP"
3275 mailmangid = grp.getgrnam(mailmangroup)[2]
3279 try: statdata = os.stat(prefix)
3281 problems.append("Directory doesn't exist: " + prefix)
3283 mode = statdata[ST_MODE]
3284 gid = statdata[ST_GID]
3285 if mailmangid <> gid:
3286 problems.append("Directory must be owned by group " +
3287 groupname + ": " + prefix)
3288 if (mode & S_ISGID) <> S_ISGID:
3289 problems.append("Set-gid bit must be set for directory: " + prefix)
3290 perms = S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH
3291 if (mode & perms) <> perms:
3292 problems.append("Permissions should be at least 02775: " + prefix)
3296 msg = '***** ' + '\n***** '.join(problems) + '\n'
3297 fp = open("conftest.out", "w")
3303 status=`cat conftest.out`
3304 rm -f conftest.out conftest.py
3305 if test "$with_permcheck" = "yes"
3307 if test "$status" != "okay"
3309 { { echo "$as_me:$LINENO: error:
3310 ***** Installation directory $prefixcheck is not configured properly!
3312 echo "$as_me: error:
3313 ***** Installation directory $prefixcheck is not configured properly!
3315 { (exit 1); exit 1; }; }
3320 { echo "$as_me:$LINENO: result: $status" >&5
3321 echo "${ECHO_T}$status" >&6; }
3324 # Now find the UIDs and GIDs
3325 # Support --with-mail-gid and --with-cgi-gid
3326 { echo "$as_me:$LINENO: checking for mail wrapper group; i.e. --with-mail-gid" >&5
3327 echo $ECHO_N "checking for mail wrapper group; i.e. --with-mail-gid... $ECHO_C" >&6; }
3329 # Check whether --with-mail-gid was given.
3330 if test "${with_mail_gid+set}" = set; then
3331 withval=$with_mail_gid;
3334 if test -z "$with_mail_gid"
3336 with_mail_gid="mailman other mail daemon"
3339 # MAIL_GROUP == variable name
3340 # $with_mail_gid == user id to check for
3343 if test -z "$MAIL_GROUP"
3345 cat > conftest.py <<EOF
3348 for group in "$with_mail_gid".split():
3351 gname = grp.getgrgid(int(group))[0]
3354 gname = grp.getgrnam(group)[0]
3358 fp = open("conftest.out", "w")
3359 fp.write("%s\n" % gname)
3363 MAIL_GROUP=`cat conftest.out`
3366 rm -f conftest.out conftest.py
3367 if test -z "$MAIL_GROUP"
3369 if test "$with_permcheck" = "yes"
3371 { { echo "$as_me:$LINENO: error:
3372 ***** No group name \"$with_mail_gid\" found for the mail wrapper program.
3373 ***** This is the group that your mail server will use to run Mailman's
3374 ***** programs. You should specify an existing group with the
3375 ***** --with-mail-gid configure option, or use --without-permcheck to
3376 ***** skip this verification step. See also your mail server's documentation,
3377 ***** and Mailman's INSTALL file for details" >&5
3378 echo "$as_me: error:
3379 ***** No group name \"$with_mail_gid\" found for the mail wrapper program.
3380 ***** This is the group that your mail server will use to run Mailman's
3381 ***** programs. You should specify an existing group with the
3382 ***** --with-mail-gid configure option, or use --without-permcheck to
3383 ***** skip this verification step. See also your mail server's documentation,
3384 ***** and Mailman's INSTALL file for details" >&2;}
3385 { (exit 1); exit 1; }; }
3387 MAIL_GROUP=$with_mail_gid
3390 { echo "$as_me:$LINENO: result: $MAIL_GROUP" >&5
3391 echo "${ECHO_T}$MAIL_GROUP" >&6; }
3394 { echo "$as_me:$LINENO: checking for CGI wrapper group; i.e. --with-cgi-gid" >&5
3395 echo $ECHO_N "checking for CGI wrapper group; i.e. --with-cgi-gid... $ECHO_C" >&6; }
3397 # Check whether --with-cgi-gid was given.
3398 if test "${with_cgi_gid+set}" = set; then
3399 withval=$with_cgi_gid;
3402 if test -z "$with_cgi_gid"
3404 with_cgi_gid="www www-data nobody"
3408 # CGI_GROUP == variable name
3409 # $with_cgi_gid == user id to check for
3412 if test -z "$CGI_GROUP"
3414 cat > conftest.py <<EOF
3417 for group in "$with_cgi_gid".split():
3420 gname = grp.getgrgid(int(group))[0]
3423 gname = grp.getgrnam(group)[0]
3427 fp = open("conftest.out", "w")
3428 fp.write("%s\n" % gname)
3432 CGI_GROUP=`cat conftest.out`
3435 rm -f conftest.out conftest.py
3436 if test -z "$CGI_GROUP"
3438 if test "$with_permcheck" = "yes"
3440 { { echo "$as_me:$LINENO: error:
3441 ***** No group name \"$with_cgi_gid\" found for the CGI wrapper program.
3442 ***** This is the group that your web server will use to run Mailman's
3443 ***** programs. You should specify an existing group with the
3444 ***** --with-cgi-gid configure option, or use --without-permcheck to
3445 ***** skip this verification step. See also your web server's documentation,
3446 ***** and Mailman's INSTALL file for details" >&5
3447 echo "$as_me: error:
3448 ***** No group name \"$with_cgi_gid\" found for the CGI wrapper program.
3449 ***** This is the group that your web server will use to run Mailman's
3450 ***** programs. You should specify an existing group with the
3451 ***** --with-cgi-gid configure option, or use --without-permcheck to
3452 ***** skip this verification step. See also your web server's documentation,
3453 ***** and Mailman's INSTALL file for details" >&2;}
3454 { (exit 1); exit 1; }; }
3456 CGI_GROUP=$with_cgi_gid
3459 { echo "$as_me:$LINENO: result: $CGI_GROUP" >&5
3460 echo "${ECHO_T}$CGI_GROUP" >&6; }
3463 # Check for CGI extensions, required by some Web servers
3465 { echo "$as_me:$LINENO: checking for CGI extensions" >&5
3466 echo $ECHO_N "checking for CGI extensions... $ECHO_C" >&6; }
3468 # Check whether --with-cgi-ext was given.
3469 if test "${with_cgi_ext+set}" = set; then
3470 withval=$with_cgi_ext;
3473 if test -z "$with_cgi_ext"
3478 CGIEXT=$with_cgi_ext
3480 { echo "$as_me:$LINENO: result: $with_cgi_ext" >&5
3481 echo "${ECHO_T}$with_cgi_ext" >&6; }
3484 # figure out the default mail hostname and url host component
3486 { echo "$as_me:$LINENO: checking for --with-mailhost" >&5
3487 echo $ECHO_N "checking for --with-mailhost... $ECHO_C" >&6; }
3489 # Check whether --with-mailhost was given.
3490 if test "${with_mailhost+set}" = set; then
3491 withval=$with_mailhost;
3494 if test -z "$with_mailhost"
3499 MAILHOST=$with_mailhost
3501 { echo "$as_me:$LINENO: result: $with_mailhost" >&5
3502 echo "${ECHO_T}$with_mailhost" >&6; }
3505 { echo "$as_me:$LINENO: checking for --with-urlhost" >&5
3506 echo $ECHO_N "checking for --with-urlhost... $ECHO_C" >&6; }
3508 # Check whether --with-urlhost was given.
3509 if test "${with_urlhost+set}" = set; then
3510 withval=$with_urlhost;
3513 if test -z "$with_urlhost"
3518 URLHOST=$with_urlhost
3520 { echo "$as_me:$LINENO: result: $with_urlhost" >&5
3521 echo "${ECHO_T}$with_urlhost" >&6; }
3524 cat > conftest.py <<EOF
3526 from socket import *
3528 fp = open('conftest.out', 'w')
3535 { echo "$as_me:$LINENO: checking for default mail host name" >&5
3536 echo $ECHO_N "checking for default mail host name... $ECHO_C" >&6; }
3537 if test -z "$MAILHOST"
3539 MAILHOST=`sed q conftest.out`
3541 { echo "$as_me:$LINENO: result: $MAILHOST" >&5
3542 echo "${ECHO_T}$MAILHOST" >&6; }
3543 { echo "$as_me:$LINENO: checking for default URL host component" >&5
3544 echo $ECHO_N "checking for default URL host component... $ECHO_C" >&6; }
3545 if test -z "$URLHOST"
3547 URLHOST=`sed -n '$p' conftest.out`
3549 { echo "$as_me:$LINENO: result: $URLHOST" >&5
3550 echo "${ECHO_T}$URLHOST" >&6; }
3551 rm -f conftest.out conftest.py
3553 # Checks for libraries.
3558 for ac_func in strerror setregid syslog
3560 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3561 { echo "$as_me:$LINENO: checking for $ac_func" >&5
3562 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
3563 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
3564 echo $ECHO_N "(cached) $ECHO_C" >&6
3566 cat >conftest.$ac_ext <<_ACEOF
3569 cat confdefs.h >>conftest.$ac_ext
3570 cat >>conftest.$ac_ext <<_ACEOF
3571 /* end confdefs.h. */
3572 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3573 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3574 #define $ac_func innocuous_$ac_func
3576 /* System header to define __stub macros and hopefully few prototypes,
3577 which can conflict with char $ac_func (); below.
3578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3579 <limits.h> exists even on freestanding compilers. */
3582 # include <limits.h>
3584 # include <assert.h>
3589 /* Override any GCC internal prototype to avoid an error.
3590 Use char because int might match the return type of a GCC
3591 builtin and then its argument prototype would still apply. */
3596 /* The GNU C library defines this for functions which it implements
3597 to always fail with ENOSYS. Some functions are actually named
3598 something starting with __ and the normal name is an alias. */
3599 #if defined __stub_$ac_func || defined __stub___$ac_func
3611 rm -f conftest.$ac_objext conftest$ac_exeext
3612 if { (ac_try="$ac_link"
3614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3615 *) ac_try_echo=$ac_try;;
3617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3618 (eval "$ac_link") 2>conftest.er1
3620 grep -v '^ *+' conftest.er1 >conftest.err
3622 cat conftest.err >&5
3623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624 (exit $ac_status); } && {
3625 test -z "$ac_c_werror_flag" ||
3626 test ! -s conftest.err
3627 } && test -s conftest$ac_exeext &&
3628 $as_test_x conftest$ac_exeext; then
3629 eval "$as_ac_var=yes"
3631 echo "$as_me: failed program was:" >&5
3632 sed 's/^/| /' conftest.$ac_ext >&5
3634 eval "$as_ac_var=no"
3637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3638 conftest$ac_exeext conftest.$ac_ext
3640 ac_res=`eval echo '${'$as_ac_var'}'`
3641 { echo "$as_me:$LINENO: result: $ac_res" >&5
3642 echo "${ECHO_T}$ac_res" >&6; }
3643 if test `eval echo '${'$as_ac_var'}'` = yes; then
3644 cat >>confdefs.h <<_ACEOF
3645 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3651 if test $ac_cv_func_syslog = no; then
3652 # syslog is not in the default libraries. See if it's in some other.
3653 # Additionally, for at least SCO OpenServer, syslog() is #defined to
3654 # one of several _real_ functions in syslog.h, so we need to do the test
3655 # with the appropriate include.
3656 for lib in bsd socket inet; do
3657 { echo "$as_me:$LINENO: checking for syslog in -l$lib" >&5
3658 echo $ECHO_N "checking for syslog in -l$lib... $ECHO_C" >&6; }
3659 Mailman_LIBS_save="$LIBS"; LIBS="$LIBS -l$lib"
3660 cat >conftest.$ac_ext <<_ACEOF
3663 cat confdefs.h >>conftest.$ac_ext
3664 cat >>conftest.$ac_ext <<_ACEOF
3665 /* end confdefs.h. */
3670 syslog(LOG_DEBUG, "Just a test...");
3675 rm -f conftest.$ac_objext conftest$ac_exeext
3676 if { (ac_try="$ac_link"
3678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3679 *) ac_try_echo=$ac_try;;
3681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3682 (eval "$ac_link") 2>conftest.er1
3684 grep -v '^ *+' conftest.er1 >conftest.err
3686 cat conftest.err >&5
3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688 (exit $ac_status); } && {
3689 test -z "$ac_c_werror_flag" ||
3690 test ! -s conftest.err
3691 } && test -s conftest$ac_exeext &&
3692 $as_test_x conftest$ac_exeext; then
3693 { echo "$as_me:$LINENO: result: yes" >&5
3694 echo "${ECHO_T}yes" >&6; }
3695 cat >>confdefs.h <<\_ACEOF
3696 #define HAVE_SYSLOG 1
3701 echo "$as_me: failed program was:" >&5
3702 sed 's/^/| /' conftest.$ac_ext >&5
3704 { echo "$as_me:$LINENO: result: no" >&5
3705 echo "${ECHO_T}no" >&6; }
3706 LIBS="$Mailman_LIBS_save"
3709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3710 conftest$ac_exeext conftest.$ac_ext
3711 unset Mailman_LIBS_save
3715 # Checks for header files.
3717 ac_cpp='$CPP $CPPFLAGS'
3718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3721 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3722 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3723 # On Suns, sometimes $CPP names a directory.
3724 if test -n "$CPP" && test -d "$CPP"; then
3727 if test -z "$CPP"; then
3728 if test "${ac_cv_prog_CPP+set}" = set; then
3729 echo $ECHO_N "(cached) $ECHO_C" >&6
3731 # Double quotes because CPP needs to be expanded
3732 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3735 for ac_c_preproc_warn_flag in '' yes
3737 # Use a header file that comes with gcc, so configuring glibc
3738 # with a fresh cross-compiler works.
3739 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3740 # <limits.h> exists even on freestanding compilers.
3741 # On the NeXT, cc -E runs the code through the compiler's parser,
3742 # not just through cpp. "Syntax error" is here to catch this case.
3743 cat >conftest.$ac_ext <<_ACEOF
3746 cat confdefs.h >>conftest.$ac_ext
3747 cat >>conftest.$ac_ext <<_ACEOF
3748 /* end confdefs.h. */
3750 # include <limits.h>
3752 # include <assert.h>
3756 if { (ac_try="$ac_cpp conftest.$ac_ext"
3758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3759 *) ac_try_echo=$ac_try;;
3761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3762 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3764 grep -v '^ *+' conftest.er1 >conftest.err
3766 cat conftest.err >&5
3767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768 (exit $ac_status); } >/dev/null && {
3769 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3770 test ! -s conftest.err
3774 echo "$as_me: failed program was:" >&5
3775 sed 's/^/| /' conftest.$ac_ext >&5
3777 # Broken: fails on valid input.
3781 rm -f conftest.err conftest.$ac_ext
3783 # OK, works on sane cases. Now check whether nonexistent headers
3784 # can be detected and how.
3785 cat >conftest.$ac_ext <<_ACEOF
3788 cat confdefs.h >>conftest.$ac_ext
3789 cat >>conftest.$ac_ext <<_ACEOF
3790 /* end confdefs.h. */
3791 #include <ac_nonexistent.h>
3793 if { (ac_try="$ac_cpp conftest.$ac_ext"
3795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3796 *) ac_try_echo=$ac_try;;
3798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3799 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3801 grep -v '^ *+' conftest.er1 >conftest.err
3803 cat conftest.err >&5
3804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805 (exit $ac_status); } >/dev/null && {
3806 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3807 test ! -s conftest.err
3809 # Broken: success on invalid input.
3812 echo "$as_me: failed program was:" >&5
3813 sed 's/^/| /' conftest.$ac_ext >&5
3815 # Passes both tests.
3820 rm -f conftest.err conftest.$ac_ext
3823 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3824 rm -f conftest.err conftest.$ac_ext
3825 if $ac_preproc_ok; then
3837 { echo "$as_me:$LINENO: result: $CPP" >&5
3838 echo "${ECHO_T}$CPP" >&6; }
3840 for ac_c_preproc_warn_flag in '' yes
3842 # Use a header file that comes with gcc, so configuring glibc
3843 # with a fresh cross-compiler works.
3844 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3845 # <limits.h> exists even on freestanding compilers.
3846 # On the NeXT, cc -E runs the code through the compiler's parser,
3847 # not just through cpp. "Syntax error" is here to catch this case.
3848 cat >conftest.$ac_ext <<_ACEOF
3851 cat confdefs.h >>conftest.$ac_ext
3852 cat >>conftest.$ac_ext <<_ACEOF
3853 /* end confdefs.h. */
3855 # include <limits.h>
3857 # include <assert.h>
3861 if { (ac_try="$ac_cpp conftest.$ac_ext"
3863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3864 *) ac_try_echo=$ac_try;;
3866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3867 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3869 grep -v '^ *+' conftest.er1 >conftest.err
3871 cat conftest.err >&5
3872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873 (exit $ac_status); } >/dev/null && {
3874 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3875 test ! -s conftest.err
3879 echo "$as_me: failed program was:" >&5
3880 sed 's/^/| /' conftest.$ac_ext >&5
3882 # Broken: fails on valid input.
3886 rm -f conftest.err conftest.$ac_ext
3888 # OK, works on sane cases. Now check whether nonexistent headers
3889 # can be detected and how.
3890 cat >conftest.$ac_ext <<_ACEOF
3893 cat confdefs.h >>conftest.$ac_ext
3894 cat >>conftest.$ac_ext <<_ACEOF
3895 /* end confdefs.h. */
3896 #include <ac_nonexistent.h>
3898 if { (ac_try="$ac_cpp conftest.$ac_ext"
3900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3901 *) ac_try_echo=$ac_try;;
3903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3904 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3906 grep -v '^ *+' conftest.er1 >conftest.err
3908 cat conftest.err >&5
3909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3910 (exit $ac_status); } >/dev/null && {
3911 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3912 test ! -s conftest.err
3914 # Broken: success on invalid input.
3917 echo "$as_me: failed program was:" >&5
3918 sed 's/^/| /' conftest.$ac_ext >&5
3920 # Passes both tests.
3925 rm -f conftest.err conftest.$ac_ext
3928 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3929 rm -f conftest.err conftest.$ac_ext
3930 if $ac_preproc_ok; then
3933 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3934 See \`config.log' for more details." >&5
3935 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3936 See \`config.log' for more details." >&2;}
3937 { (exit 1); exit 1; }; }
3941 ac_cpp='$CPP $CPPFLAGS'
3942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3947 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3948 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3949 if test "${ac_cv_path_GREP+set}" = set; then
3950 echo $ECHO_N "(cached) $ECHO_C" >&6
3952 # Extract the first word of "grep ggrep" to use in msg output
3953 if test -z "$GREP"; then
3954 set dummy grep ggrep; ac_prog_name=$2
3955 if test "${ac_cv_path_GREP+set}" = set; then
3956 echo $ECHO_N "(cached) $ECHO_C" >&6
3958 ac_path_GREP_found=false
3959 # Loop through the user's path and test for each of PROGNAME-LIST
3960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3961 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3964 test -z "$as_dir" && as_dir=.
3965 for ac_prog in grep ggrep; do
3966 for ac_exec_ext in '' $ac_executable_extensions; do
3967 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3968 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3969 # Check for GNU ac_path_GREP and select it if it is found.
3970 # Check for GNU $ac_path_GREP
3971 case `"$ac_path_GREP" --version 2>&1` in
3973 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3976 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3979 cat "conftest.in" "conftest.in" >"conftest.tmp"
3980 mv "conftest.tmp" "conftest.in"
3981 cp "conftest.in" "conftest.nl"
3982 echo 'GREP' >> "conftest.nl"
3983 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3984 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3985 ac_count=`expr $ac_count + 1`
3986 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3987 # Best one so far, save it but keep looking for a better one
3988 ac_cv_path_GREP="$ac_path_GREP"
3989 ac_path_GREP_max=$ac_count
3991 # 10*(2^10) chars as input seems more than enough
3992 test $ac_count -gt 10 && break
3994 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3998 $ac_path_GREP_found && break 3
4008 GREP="$ac_cv_path_GREP"
4009 if test -z "$GREP"; then
4010 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4011 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4012 { (exit 1); exit 1; }; }
4016 ac_cv_path_GREP=$GREP
4021 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4022 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4023 GREP="$ac_cv_path_GREP"
4026 { echo "$as_me:$LINENO: checking for egrep" >&5
4027 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4028 if test "${ac_cv_path_EGREP+set}" = set; then
4029 echo $ECHO_N "(cached) $ECHO_C" >&6
4031 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4032 then ac_cv_path_EGREP="$GREP -E"