2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir=.
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
277 CONFIG_SHELL=$as_shell
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
305 as_func_ret_success () {
308 as_func_ret_failure () {
313 if as_func_success; then
317 echo as_func_success failed.
320 if as_func_failure; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
481 # Exit status is that of the last command.
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
492 ECHO_C= ECHO_N= ECHO_T=
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
525 elif ln conf$$.file conf$$ 2>/dev/null; then
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
539 test -d ./-p && rmdir ./-p
543 if test -x / >/dev/null 2>&1; then
546 if ls -dL / >/dev/null 2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev/null 6>&1
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
584 ac_default_prefix=/usr/local
586 ac_config_libobj_dir=.
592 SHELL=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
601 ac_unique_file="quota.c"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
615 # ifdef HAVE_STDLIB_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
638 ac_subst_vars='LTLIBOBJS
690 program_transform_name
702 enable_option_checking
716 ac_precious_vars='build_alias
730 # Initialize some variables set by options.
732 ac_init_version=false
733 ac_unrecognized_opts=
735 # The variables have the same names as the options, with
736 # dashes changed to underlines.
744 program_transform_name=s,x,x,
752 # Installation directory options.
753 # These are left unexpanded so users can "make install exec_prefix=/foo"
754 # and all the variables that are supposed to be based on exec_prefix
755 # by default will actually change.
756 # Use braces instead of parens because sh, perl, etc. also accept them.
757 # (The list follows the same order as the GNU Coding Standards.)
758 bindir='${exec_prefix}/bin'
759 sbindir='${exec_prefix}/sbin'
760 libexecdir='${exec_prefix}/libexec'
761 datarootdir='${prefix}/share'
762 datadir='${datarootdir}'
763 sysconfdir='${prefix}/etc'
764 sharedstatedir='${prefix}/com'
765 localstatedir='${prefix}/var'
766 includedir='${prefix}/include'
767 oldincludedir='/usr/include'
768 docdir='${datarootdir}/doc/${PACKAGE}'
769 infodir='${datarootdir}/info'
774 libdir='${exec_prefix}/lib'
775 localedir='${datarootdir}/locale'
776 mandir='${datarootdir}/man'
782 # If the previous option needs an argument, assign it.
783 if test -n "$ac_prev"; then
784 eval $ac_prev=\$ac_option
790 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
794 # Accept the important Cygnus configure options, so we can diagnose typos.
796 case $ac_dashdash$ac_option in
800 -bindir | --bindir | --bindi | --bind | --bin | --bi)
802 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
805 -build | --build | --buil | --bui | --bu)
806 ac_prev=build_alias ;;
807 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
808 build_alias=$ac_optarg ;;
810 -cache-file | --cache-file | --cache-fil | --cache-fi \
811 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
812 ac_prev=cache_file ;;
813 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
814 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
815 cache_file=$ac_optarg ;;
818 cache_file=config.cache ;;
820 -datadir | --datadir | --datadi | --datad)
822 -datadir=* | --datadir=* | --datadi=* | --datad=*)
823 datadir=$ac_optarg ;;
825 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
826 | --dataroo | --dataro | --datar)
827 ac_prev=datarootdir ;;
828 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
829 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
830 datarootdir=$ac_optarg ;;
832 -disable-* | --disable-*)
833 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
834 # Reject names that are not valid shell variable names.
835 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
836 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
837 { (exit 1); exit 1; }; }
838 ac_useropt_orig=$ac_useropt
839 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
840 case $ac_user_opts in
844 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
845 ac_unrecognized_sep=', ';;
847 eval enable_$ac_useropt=no ;;
849 -docdir | --docdir | --docdi | --doc | --do)
851 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
854 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
856 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
859 -enable-* | --enable-*)
860 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
861 # Reject names that are not valid shell variable names.
862 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
863 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
864 { (exit 1); exit 1; }; }
865 ac_useropt_orig=$ac_useropt
866 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
867 case $ac_user_opts in
871 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
872 ac_unrecognized_sep=', ';;
874 eval enable_$ac_useropt=\$ac_optarg ;;
876 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
877 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
878 | --exec | --exe | --ex)
879 ac_prev=exec_prefix ;;
880 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
881 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
882 | --exec=* | --exe=* | --ex=*)
883 exec_prefix=$ac_optarg ;;
885 -gas | --gas | --ga | --g)
886 # Obsolete; use --with-gas.
889 -help | --help | --hel | --he | -h)
891 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
892 ac_init_help=recursive ;;
893 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
894 ac_init_help=short ;;
896 -host | --host | --hos | --ho)
897 ac_prev=host_alias ;;
898 -host=* | --host=* | --hos=* | --ho=*)
899 host_alias=$ac_optarg ;;
901 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
903 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
905 htmldir=$ac_optarg ;;
907 -includedir | --includedir | --includedi | --included | --include \
908 | --includ | --inclu | --incl | --inc)
909 ac_prev=includedir ;;
910 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
911 | --includ=* | --inclu=* | --incl=* | --inc=*)
912 includedir=$ac_optarg ;;
914 -infodir | --infodir | --infodi | --infod | --info | --inf)
916 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
917 infodir=$ac_optarg ;;
919 -libdir | --libdir | --libdi | --libd)
921 -libdir=* | --libdir=* | --libdi=* | --libd=*)
924 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
925 | --libexe | --libex | --libe)
926 ac_prev=libexecdir ;;
927 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
928 | --libexe=* | --libex=* | --libe=*)
929 libexecdir=$ac_optarg ;;
931 -localedir | --localedir | --localedi | --localed | --locale)
933 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
934 localedir=$ac_optarg ;;
936 -localstatedir | --localstatedir | --localstatedi | --localstated \
937 | --localstate | --localstat | --localsta | --localst | --locals)
938 ac_prev=localstatedir ;;
939 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
940 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
941 localstatedir=$ac_optarg ;;
943 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
945 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
949 # Obsolete; use --without-fp.
952 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
953 | --no-cr | --no-c | -n)
956 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
957 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
960 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
961 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
962 | --oldin | --oldi | --old | --ol | --o)
963 ac_prev=oldincludedir ;;
964 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
965 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
966 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
967 oldincludedir=$ac_optarg ;;
969 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
971 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
974 -program-prefix | --program-prefix | --program-prefi | --program-pref \
975 | --program-pre | --program-pr | --program-p)
976 ac_prev=program_prefix ;;
977 -program-prefix=* | --program-prefix=* | --program-prefi=* \
978 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
979 program_prefix=$ac_optarg ;;
981 -program-suffix | --program-suffix | --program-suffi | --program-suff \
982 | --program-suf | --program-su | --program-s)
983 ac_prev=program_suffix ;;
984 -program-suffix=* | --program-suffix=* | --program-suffi=* \
985 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
986 program_suffix=$ac_optarg ;;
988 -program-transform-name | --program-transform-name \
989 | --program-transform-nam | --program-transform-na \
990 | --program-transform-n | --program-transform- \
991 | --program-transform | --program-transfor \
992 | --program-transfo | --program-transf \
993 | --program-trans | --program-tran \
994 | --progr-tra | --program-tr | --program-t)
995 ac_prev=program_transform_name ;;
996 -program-transform-name=* | --program-transform-name=* \
997 | --program-transform-nam=* | --program-transform-na=* \
998 | --program-transform-n=* | --program-transform-=* \
999 | --program-transform=* | --program-transfor=* \
1000 | --program-transfo=* | --program-transf=* \
1001 | --program-trans=* | --program-tran=* \
1002 | --progr-tra=* | --program-tr=* | --program-t=*)
1003 program_transform_name=$ac_optarg ;;
1005 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1007 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1008 pdfdir=$ac_optarg ;;
1010 -psdir | --psdir | --psdi | --psd | --ps)
1012 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1015 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1016 | -silent | --silent | --silen | --sile | --sil)
1019 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1021 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1023 sbindir=$ac_optarg ;;
1025 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1026 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1027 | --sharedst | --shareds | --shared | --share | --shar \
1029 ac_prev=sharedstatedir ;;
1030 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1031 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1032 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1034 sharedstatedir=$ac_optarg ;;
1036 -site | --site | --sit)
1038 -site=* | --site=* | --sit=*)
1041 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1043 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1044 srcdir=$ac_optarg ;;
1046 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1047 | --syscon | --sysco | --sysc | --sys | --sy)
1048 ac_prev=sysconfdir ;;
1049 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1050 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1051 sysconfdir=$ac_optarg ;;
1053 -target | --target | --targe | --targ | --tar | --ta | --t)
1054 ac_prev=target_alias ;;
1055 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1056 target_alias=$ac_optarg ;;
1058 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1061 -version | --version | --versio | --versi | --vers | -V)
1062 ac_init_version=: ;;
1065 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1066 # Reject names that are not valid shell variable names.
1067 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1068 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1069 { (exit 1); exit 1; }; }
1070 ac_useropt_orig=$ac_useropt
1071 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1072 case $ac_user_opts in
1076 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1077 ac_unrecognized_sep=', ';;
1079 eval with_$ac_useropt=\$ac_optarg ;;
1081 -without-* | --without-*)
1082 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1083 # Reject names that are not valid shell variable names.
1084 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1085 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1086 { (exit 1); exit 1; }; }
1087 ac_useropt_orig=$ac_useropt
1088 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1089 case $ac_user_opts in
1093 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1094 ac_unrecognized_sep=', ';;
1096 eval with_$ac_useropt=no ;;
1099 # Obsolete; use --with-x.
1102 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1103 | --x-incl | --x-inc | --x-in | --x-i)
1104 ac_prev=x_includes ;;
1105 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1106 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1107 x_includes=$ac_optarg ;;
1109 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1110 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1111 ac_prev=x_libraries ;;
1112 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1113 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1114 x_libraries=$ac_optarg ;;
1116 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1117 Try \`$0 --help' for more information." >&2
1118 { (exit 1); exit 1; }; }
1122 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1123 # Reject names that are not valid shell variable names.
1124 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1125 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1126 { (exit 1); exit 1; }; }
1127 eval $ac_envvar=\$ac_optarg
1128 export $ac_envvar ;;
1131 # FIXME: should be removed in autoconf 3.0.
1132 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1133 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1134 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1135 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1141 if test -n "$ac_prev"; then
1142 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1143 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1144 { (exit 1); exit 1; }; }
1147 if test -n "$ac_unrecognized_opts"; then
1148 case $enable_option_checking in
1150 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1151 { (exit 1); exit 1; }; } ;;
1152 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1156 # Check all directory arguments for consistency.
1157 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1158 datadir sysconfdir sharedstatedir localstatedir includedir \
1159 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1160 libdir localedir mandir
1162 eval ac_val=\$$ac_var
1163 # Remove trailing slashes.
1166 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1167 eval $ac_var=\$ac_val;;
1169 # Be sure to have absolute directory names.
1171 [\\/$]* | ?:[\\/]* ) continue;;
1172 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1174 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1175 { (exit 1); exit 1; }; }
1178 # There might be people who depend on the old broken behavior: `$host'
1179 # used to hold the argument of --host etc.
1180 # FIXME: To remove some day.
1183 target=$target_alias
1185 # FIXME: To remove some day.
1186 if test "x$host_alias" != x; then
1187 if test "x$build_alias" = x; then
1188 cross_compiling=maybe
1189 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1190 If a cross compiler is detected then cross compile mode will be used." >&2
1191 elif test "x$build_alias" != "x$host_alias"; then
1197 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1199 test "$silent" = yes && exec 6>/dev/null
1202 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1203 ac_ls_di=`ls -di .` &&
1204 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1205 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1206 { (exit 1); exit 1; }; }
1207 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1208 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1209 { (exit 1); exit 1; }; }
1212 # Find the source files, if location was not specified.
1213 if test -z "$srcdir"; then
1214 ac_srcdir_defaulted=yes
1215 # Try the directory containing this script, then the parent directory.
1216 ac_confdir=`$as_dirname -- "$as_myself" ||
1217 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1218 X"$as_myself" : 'X\(//\)[^/]' \| \
1219 X"$as_myself" : 'X\(//\)$' \| \
1220 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1221 $as_echo X"$as_myself" |
1222 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1240 if test ! -r "$srcdir/$ac_unique_file"; then
1244 ac_srcdir_defaulted=no
1246 if test ! -r "$srcdir/$ac_unique_file"; then
1247 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1248 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1249 { (exit 1); exit 1; }; }
1251 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1253 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1254 { (exit 1); exit 1; }; }
1256 # When building in place, set srcdir=.
1257 if test "$ac_abs_confdir" = "$ac_pwd"; then
1260 # Remove unnecessary trailing slashes from srcdir.
1261 # Double slashes in file names in object file debugging info
1262 # mess up M-x gdb in Emacs.
1264 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1266 for ac_var in $ac_precious_vars; do
1267 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1268 eval ac_env_${ac_var}_value=\$${ac_var}
1269 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1270 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1274 # Report the --help message.
1276 if test "$ac_init_help" = "long"; then
1277 # Omit some internal or obsolete options to make the list less imposing.
1278 # This message is too long to be a string in the A/UX 3.1 sh.
1280 \`configure' configures this package to adapt to many kinds of systems.
1282 Usage: $0 [OPTION]... [VAR=VALUE]...
1284 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1285 VAR=VALUE. See below for descriptions of some of the useful variables.
1287 Defaults for the options are specified in brackets.
1290 -h, --help display this help and exit
1291 --help=short display options specific to this package
1292 --help=recursive display the short help of all the included packages
1293 -V, --version display version information and exit
1294 -q, --quiet, --silent do not print \`checking...' messages
1295 --cache-file=FILE cache test results in FILE [disabled]
1296 -C, --config-cache alias for \`--cache-file=config.cache'
1297 -n, --no-create do not create output files
1298 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1300 Installation directories:
1301 --prefix=PREFIX install architecture-independent files in PREFIX
1302 [$ac_default_prefix]
1303 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1306 By default, \`make install' will install all the files in
1307 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1308 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1309 for instance \`--prefix=\$HOME'.
1311 For better control, use the options below.
1313 Fine tuning of the installation directories:
1314 --bindir=DIR user executables [EPREFIX/bin]
1315 --sbindir=DIR system admin executables [EPREFIX/sbin]
1316 --libexecdir=DIR program executables [EPREFIX/libexec]
1317 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1318 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1319 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1320 --libdir=DIR object code libraries [EPREFIX/lib]
1321 --includedir=DIR C header files [PREFIX/include]
1322 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1323 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1324 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1325 --infodir=DIR info documentation [DATAROOTDIR/info]
1326 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1327 --mandir=DIR man documentation [DATAROOTDIR/man]
1328 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1329 --htmldir=DIR html documentation [DOCDIR]
1330 --dvidir=DIR dvi documentation [DOCDIR]
1331 --pdfdir=DIR pdf documentation [DOCDIR]
1332 --psdir=DIR ps documentation [DOCDIR]
1339 if test -n "$ac_init_help"; then
1344 --disable-option-checking ignore unrecognized --enable/--with options
1345 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1346 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1347 --enable-ldapmail=yes/no/try Enable ldap mail address lookups default=no.
1348 --enable-ext2direct=yes/no/try Enable scanning of EXT2/EXT3 filesystem using e2fslib default=try.
1349 --enable-netlink=yes/no/try Compile daemon receiving quota messages via netlink default=no.
1350 --enable-altformat=yes/no Enable alternative format used by edquota default=yes.
1351 --enable-rpc=yes/no Enable RPC support default=yes.
1352 --enable-rpcsetquota=yes/no Use RPC for setting quotas default=no.
1353 --enable-xfs_roothack=yes/no Support old XFS root filesystems default=no.
1354 --enable-bsd_behaviour=yes/no Mimic BSD behaviour default=yes.
1355 --enable-libefence=yes/no Use Electric Fence memory checks default=no.
1356 --enable-nls=yes/no Enable gettext default=yes.
1357 --enable-rootsbin=yes/no Use /sbin for some important binaries regardless $prefix default=no.
1358 --enable-proc-mounts=path Use alternate file instead of /etc/mtab default=/proc/mounts.
1360 Some influential environment variables:
1361 CC C compiler command
1362 CFLAGS C compiler flags
1363 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1364 nonstandard directory <lib dir>
1365 LIBS libraries to pass to the linker, e.g. -l<library>
1366 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1367 you have headers in a nonstandard directory <include dir>
1369 PKG_CONFIG path to pkg-config utility
1370 DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
1371 DBUS_LIBS linker flags for DBUS, overriding pkg-config
1373 Use these variables to override the choices made by `configure' or to help
1374 it to find libraries and programs with nonstandard names/locations.
1380 if test "$ac_init_help" = "recursive"; then
1381 # If there are subdirs, report their specific --help.
1382 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1383 test -d "$ac_dir" ||
1384 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1389 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1391 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1392 # A ".." for each directory in $ac_dir_suffix.
1393 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1394 case $ac_top_builddir_sub in
1395 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1396 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1399 ac_abs_top_builddir=$ac_pwd
1400 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1401 # for backward compatibility:
1402 ac_top_builddir=$ac_top_build_prefix
1405 .) # We are building in place.
1407 ac_top_srcdir=$ac_top_builddir_sub
1408 ac_abs_top_srcdir=$ac_pwd ;;
1409 [\\/]* | ?:[\\/]* ) # Absolute name.
1410 ac_srcdir=$srcdir$ac_dir_suffix;
1411 ac_top_srcdir=$srcdir
1412 ac_abs_top_srcdir=$srcdir ;;
1414 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1415 ac_top_srcdir=$ac_top_build_prefix$srcdir
1416 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1418 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1420 cd "$ac_dir" || { ac_status=$?; continue; }
1421 # Check for guested configure.
1422 if test -f "$ac_srcdir/configure.gnu"; then
1424 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1425 elif test -f "$ac_srcdir/configure"; then
1427 $SHELL "$ac_srcdir/configure" --help=recursive
1429 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1431 cd "$ac_pwd" || { ac_status=$?; break; }
1435 test -n "$ac_init_help" && exit $ac_status
1436 if $ac_init_version; then
1439 generated by GNU Autoconf 2.63
1441 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1442 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1443 This configure script is free software; the Free Software Foundation
1444 gives unlimited permission to copy, distribute and modify it.
1448 cat >config.log <<_ACEOF
1449 This file contains any messages produced by compilers while
1450 running configure, to aid debugging if configure makes a mistake.
1452 It was created by $as_me, which was
1453 generated by GNU Autoconf 2.63. Invocation command line was
1465 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1466 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1467 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1468 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1469 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1471 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1472 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1474 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1475 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1476 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1477 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1478 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1479 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1480 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1488 test -z "$as_dir" && as_dir=.
1489 $as_echo "PATH: $as_dir"
1505 # Keep a trace of the command line.
1506 # Strip out --no-create and --no-recursion so they do not pile up.
1507 # Strip out --silent because we don't want to record it for future runs.
1508 # Also quote any args containing shell meta-characters.
1509 # Make two passes to allow for proper duplicate-argument suppression.
1513 ac_must_keep_next=false
1519 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1520 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1521 | -silent | --silent | --silen | --sile | --sil)
1524 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1527 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1529 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1530 if test $ac_must_keep_next = true; then
1531 ac_must_keep_next=false # Got value, back to normal.
1534 *=* | --config-cache | -C | -disable-* | --disable-* \
1535 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1536 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1537 | -with-* | --with-* | -without-* | --without-* | --x)
1538 case "$ac_configure_args0 " in
1539 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1542 -* ) ac_must_keep_next=true ;;
1545 ac_configure_args="$ac_configure_args '$ac_arg'"
1550 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1551 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1553 # When interrupted or exit'd, cleanup temporary files, and complete
1554 # config.log. We remove comments because anyway the quotes in there
1555 # would cause problems or look ugly.
1556 # WARNING: Use '\'' to represent an apostrophe within the trap.
1557 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1558 trap 'exit_status=$?
1559 # Save into config.log some information that might help in debugging.
1564 ## ---------------- ##
1565 ## Cache variables. ##
1566 ## ---------------- ##
1569 # The following way of writing the cache mishandles newlines in values,
1571 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1572 eval ac_val=\$$ac_var
1576 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1577 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1580 _ | IFS | as_nl) ;; #(
1581 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1582 *) $as_unset $ac_var ;;
1587 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1588 *${as_nl}ac_space=\ *)
1590 "s/'\''/'\''\\\\'\'''\''/g;
1591 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1594 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1602 ## ----------------- ##
1603 ## Output variables. ##
1604 ## ----------------- ##
1607 for ac_var in $ac_subst_vars
1609 eval ac_val=\$$ac_var
1611 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1613 $as_echo "$ac_var='\''$ac_val'\''"
1617 if test -n "$ac_subst_files"; then
1619 ## ------------------- ##
1620 ## File substitutions. ##
1621 ## ------------------- ##
1624 for ac_var in $ac_subst_files
1626 eval ac_val=\$$ac_var
1628 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1630 $as_echo "$ac_var='\''$ac_val'\''"
1635 if test -s confdefs.h; then
1645 test "$ac_signal" != 0 &&
1646 $as_echo "$as_me: caught signal $ac_signal"
1647 $as_echo "$as_me: exit $exit_status"
1649 rm -f core *.core core.conftest.* &&
1650 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1653 for ac_signal in 1 2 13 15; do
1654 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1658 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1659 rm -f -r conftest* confdefs.h
1661 # Predefined preprocessor variables.
1663 cat >>confdefs.h <<_ACEOF
1664 #define PACKAGE_NAME "$PACKAGE_NAME"
1668 cat >>confdefs.h <<_ACEOF
1669 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1673 cat >>confdefs.h <<_ACEOF
1674 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1678 cat >>confdefs.h <<_ACEOF
1679 #define PACKAGE_STRING "$PACKAGE_STRING"
1683 cat >>confdefs.h <<_ACEOF
1684 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1688 # Let the site file select an alternate cache file if it wants to.
1689 # Prefer an explicitly selected file to automatically selected ones.
1692 if test -n "$CONFIG_SITE"; then
1693 ac_site_file1=$CONFIG_SITE
1694 elif test "x$prefix" != xNONE; then
1695 ac_site_file1=$prefix/share/config.site
1696 ac_site_file2=$prefix/etc/config.site
1698 ac_site_file1=$ac_default_prefix/share/config.site
1699 ac_site_file2=$ac_default_prefix/etc/config.site
1701 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1703 test "x$ac_site_file" = xNONE && continue
1704 if test -r "$ac_site_file"; then
1705 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1706 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1707 sed 's/^/| /' "$ac_site_file" >&5
1712 if test -r "$cache_file"; then
1713 # Some versions of bash will fail to source /dev/null (special
1714 # files actually), so we avoid doing that.
1715 if test -f "$cache_file"; then
1716 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1717 $as_echo "$as_me: loading cache $cache_file" >&6;}
1719 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1720 *) . "./$cache_file";;
1724 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1725 $as_echo "$as_me: creating cache $cache_file" >&6;}
1729 # Check that the precious variables saved in the cache have kept the same
1731 ac_cache_corrupted=false
1732 for ac_var in $ac_precious_vars; do
1733 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1734 eval ac_new_set=\$ac_env_${ac_var}_set
1735 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1736 eval ac_new_val=\$ac_env_${ac_var}_value
1737 case $ac_old_set,$ac_new_set in
1739 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1740 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1741 ac_cache_corrupted=: ;;
1743 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1744 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1745 ac_cache_corrupted=: ;;
1748 if test "x$ac_old_val" != "x$ac_new_val"; then
1749 # differences in whitespace do not lead to failure.
1750 ac_old_val_w=`echo x $ac_old_val`
1751 ac_new_val_w=`echo x $ac_new_val`
1752 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1753 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1754 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1755 ac_cache_corrupted=:
1757 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1758 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1759 eval $ac_var=\$ac_old_val
1761 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1762 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1763 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1764 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1767 # Pass precious variables to config.status.
1768 if test "$ac_new_set" = set; then
1770 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1771 *) ac_arg=$ac_var=$ac_new_val ;;
1773 case " $ac_configure_args " in
1774 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1775 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1779 if $ac_cache_corrupted; then
1780 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1781 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1782 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1783 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1784 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1785 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1786 { (exit 1); exit 1; }; }
1806 ac_cpp='$CPP $CPPFLAGS'
1807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1812 ac_config_headers="$ac_config_headers config.h"
1816 ac_cpp='$CPP $CPPFLAGS'
1817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1820 if test -n "$ac_tool_prefix"; then
1821 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1822 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1823 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1824 $as_echo_n "checking for $ac_word... " >&6; }
1825 if test "${ac_cv_prog_CC+set}" = set; then
1826 $as_echo_n "(cached) " >&6
1828 if test -n "$CC"; then
1829 ac_cv_prog_CC="$CC" # Let the user override the test.
1831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1835 test -z "$as_dir" && as_dir=.
1836 for ac_exec_ext in '' $ac_executable_extensions; do
1837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1838 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1839 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1849 if test -n "$CC"; then
1850 { $as_echo "$as_me:$LINENO: result: $CC" >&5
1851 $as_echo "$CC" >&6; }
1853 { $as_echo "$as_me:$LINENO: result: no" >&5
1854 $as_echo "no" >&6; }
1859 if test -z "$ac_cv_prog_CC"; then
1861 # Extract the first word of "gcc", so it can be a program name with args.
1862 set dummy gcc; ac_word=$2
1863 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1864 $as_echo_n "checking for $ac_word... " >&6; }
1865 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1866 $as_echo_n "(cached) " >&6
1868 if test -n "$ac_ct_CC"; then
1869 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1875 test -z "$as_dir" && as_dir=.
1876 for ac_exec_ext in '' $ac_executable_extensions; do
1877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1878 ac_cv_prog_ac_ct_CC="gcc"
1879 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1888 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1889 if test -n "$ac_ct_CC"; then
1890 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1891 $as_echo "$ac_ct_CC" >&6; }
1893 { $as_echo "$as_me:$LINENO: result: no" >&5
1894 $as_echo "no" >&6; }
1897 if test "x$ac_ct_CC" = x; then
1900 case $cross_compiling:$ac_tool_warned in
1902 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
1903 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1904 ac_tool_warned=yes ;;
1912 if test -z "$CC"; then
1913 if test -n "$ac_tool_prefix"; then
1914 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1915 set dummy ${ac_tool_prefix}cc; ac_word=$2
1916 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1917 $as_echo_n "checking for $ac_word... " >&6; }
1918 if test "${ac_cv_prog_CC+set}" = set; then
1919 $as_echo_n "(cached) " >&6
1921 if test -n "$CC"; then
1922 ac_cv_prog_CC="$CC" # Let the user override the test.
1924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1928 test -z "$as_dir" && as_dir=.
1929 for ac_exec_ext in '' $ac_executable_extensions; do
1930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1931 ac_cv_prog_CC="${ac_tool_prefix}cc"
1932 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1942 if test -n "$CC"; then
1943 { $as_echo "$as_me:$LINENO: result: $CC" >&5
1944 $as_echo "$CC" >&6; }
1946 { $as_echo "$as_me:$LINENO: result: no" >&5
1947 $as_echo "no" >&6; }
1953 if test -z "$CC"; then
1954 # Extract the first word of "cc", so it can be a program name with args.
1955 set dummy cc; ac_word=$2
1956 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1957 $as_echo_n "checking for $ac_word... " >&6; }
1958 if test "${ac_cv_prog_CC+set}" = set; then
1959 $as_echo_n "(cached) " >&6
1961 if test -n "$CC"; then
1962 ac_cv_prog_CC="$CC" # Let the user override the test.
1965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1969 test -z "$as_dir" && as_dir=.
1970 for ac_exec_ext in '' $ac_executable_extensions; do
1971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1972 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1973 ac_prog_rejected=yes
1977 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1984 if test $ac_prog_rejected = yes; then
1985 # We found a bogon in the path, so make sure we never use it.
1986 set dummy $ac_cv_prog_CC
1988 if test $# != 0; then
1989 # We chose a different compiler from the bogus one.
1990 # However, it has the same basename, so the bogon will be chosen
1991 # first if we set CC to just the basename; use the full file name.
1993 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1999 if test -n "$CC"; then
2000 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2001 $as_echo "$CC" >&6; }
2003 { $as_echo "$as_me:$LINENO: result: no" >&5
2004 $as_echo "no" >&6; }
2009 if test -z "$CC"; then
2010 if test -n "$ac_tool_prefix"; then
2011 for ac_prog in cl.exe
2013 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2014 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2015 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2016 $as_echo_n "checking for $ac_word... " >&6; }
2017 if test "${ac_cv_prog_CC+set}" = set; then
2018 $as_echo_n "(cached) " >&6
2020 if test -n "$CC"; then
2021 ac_cv_prog_CC="$CC" # Let the user override the test.
2023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2027 test -z "$as_dir" && as_dir=.
2028 for ac_exec_ext in '' $ac_executable_extensions; do
2029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2030 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2031 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2041 if test -n "$CC"; then
2042 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2043 $as_echo "$CC" >&6; }
2045 { $as_echo "$as_me:$LINENO: result: no" >&5
2046 $as_echo "no" >&6; }
2050 test -n "$CC" && break
2053 if test -z "$CC"; then
2055 for ac_prog in cl.exe
2057 # Extract the first word of "$ac_prog", so it can be a program name with args.
2058 set dummy $ac_prog; ac_word=$2
2059 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2060 $as_echo_n "checking for $ac_word... " >&6; }
2061 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2062 $as_echo_n "(cached) " >&6
2064 if test -n "$ac_ct_CC"; then
2065 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2071 test -z "$as_dir" && as_dir=.
2072 for ac_exec_ext in '' $ac_executable_extensions; do
2073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2074 ac_cv_prog_ac_ct_CC="$ac_prog"
2075 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2084 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2085 if test -n "$ac_ct_CC"; then
2086 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2087 $as_echo "$ac_ct_CC" >&6; }
2089 { $as_echo "$as_me:$LINENO: result: no" >&5
2090 $as_echo "no" >&6; }
2094 test -n "$ac_ct_CC" && break
2097 if test "x$ac_ct_CC" = x; then
2100 case $cross_compiling:$ac_tool_warned in
2102 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2103 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2104 ac_tool_warned=yes ;;
2113 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2114 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2115 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2116 See \`config.log' for more details." >&5
2117 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2118 See \`config.log' for more details." >&2;}
2119 { (exit 1); exit 1; }; }; }
2121 # Provide some information about the compiler.
2122 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2125 { (ac_try="$ac_compiler --version >&5"
2127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2128 *) ac_try_echo=$ac_try;;
2130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2131 $as_echo "$ac_try_echo") >&5
2132 (eval "$ac_compiler --version >&5") 2>&5
2134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135 (exit $ac_status); }
2136 { (ac_try="$ac_compiler -v >&5"
2138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2139 *) ac_try_echo=$ac_try;;
2141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2142 $as_echo "$ac_try_echo") >&5
2143 (eval "$ac_compiler -v >&5") 2>&5
2145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146 (exit $ac_status); }
2147 { (ac_try="$ac_compiler -V >&5"
2149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2150 *) ac_try_echo=$ac_try;;
2152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2153 $as_echo "$ac_try_echo") >&5
2154 (eval "$ac_compiler -V >&5") 2>&5
2156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157 (exit $ac_status); }
2159 cat >conftest.$ac_ext <<_ACEOF
2162 cat confdefs.h >>conftest.$ac_ext
2163 cat >>conftest.$ac_ext <<_ACEOF
2164 /* end confdefs.h. */
2174 ac_clean_files_save=$ac_clean_files
2175 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2176 # Try to create an executable without -o first, disregard a.out.
2177 # It will help us diagnose broken compilers, and finding out an intuition
2179 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2180 $as_echo_n "checking for C compiler default output file name... " >&6; }
2181 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2183 # The possible output files:
2184 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2187 for ac_file in $ac_files
2190 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2191 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2196 if { (ac_try="$ac_link_default"
2198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2199 *) ac_try_echo=$ac_try;;
2201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2202 $as_echo "$ac_try_echo") >&5
2203 (eval "$ac_link_default") 2>&5
2205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206 (exit $ac_status); }; then
2207 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2208 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2209 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2210 # so that the user can short-circuit this test for compilers unknown to
2212 for ac_file in $ac_files ''
2214 test -f "$ac_file" || continue
2216 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2219 # We found the default executable, but exeext='' is most
2223 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2225 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2227 # We set ac_cv_exeext here because the later test for it is not
2228 # safe: cross compilers may not add the suffix if given an `-o'
2229 # argument, so we may need to know it at that point already.
2230 # Even if this section looks crufty: it has the advantage of
2237 test "$ac_cv_exeext" = no && ac_cv_exeext=
2243 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2244 $as_echo "$ac_file" >&6; }
2245 if test -z "$ac_file"; then
2246 $as_echo "$as_me: failed program was:" >&5
2247 sed 's/^/| /' conftest.$ac_ext >&5
2249 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2250 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2251 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2252 See \`config.log' for more details." >&5
2253 $as_echo "$as_me: error: C compiler cannot create executables
2254 See \`config.log' for more details." >&2;}
2255 { (exit 77); exit 77; }; }; }
2258 ac_exeext=$ac_cv_exeext
2260 # Check that the compiler produces executables we can run. If not, either
2261 # the compiler is broken, or we cross compile.
2262 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2263 $as_echo_n "checking whether the C compiler works... " >&6; }
2264 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2265 # If not cross compiling, check that we can run a simple program.
2266 if test "$cross_compiling" != yes; then
2267 if { ac_try='./$ac_file'
2268 { (case "(($ac_try" in
2269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2270 *) ac_try_echo=$ac_try;;
2272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2273 $as_echo "$ac_try_echo") >&5
2274 (eval "$ac_try") 2>&5
2276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); }; }; then
2280 if test "$cross_compiling" = maybe; then
2283 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2284 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2285 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2286 If you meant to cross compile, use \`--host'.
2287 See \`config.log' for more details." >&5
2288 $as_echo "$as_me: error: cannot run C compiled programs.
2289 If you meant to cross compile, use \`--host'.
2290 See \`config.log' for more details." >&2;}
2291 { (exit 1); exit 1; }; }; }
2295 { $as_echo "$as_me:$LINENO: result: yes" >&5
2296 $as_echo "yes" >&6; }
2298 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2299 ac_clean_files=$ac_clean_files_save
2300 # Check that the compiler produces executables we can run. If not, either
2301 # the compiler is broken, or we cross compile.
2302 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2303 $as_echo_n "checking whether we are cross compiling... " >&6; }
2304 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2305 $as_echo "$cross_compiling" >&6; }
2307 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2308 $as_echo_n "checking for suffix of executables... " >&6; }
2309 if { (ac_try="$ac_link"
2311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2312 *) ac_try_echo=$ac_try;;
2314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2315 $as_echo "$ac_try_echo") >&5
2316 (eval "$ac_link") 2>&5
2318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); }; then
2320 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2321 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2322 # work properly (i.e., refer to `conftest.exe'), while it won't with
2324 for ac_file in conftest.exe conftest conftest.*; do
2325 test -f "$ac_file" || continue
2327 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2328 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2334 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2335 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2336 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2337 See \`config.log' for more details." >&5
2338 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2339 See \`config.log' for more details." >&2;}
2340 { (exit 1); exit 1; }; }; }
2343 rm -f conftest$ac_cv_exeext
2344 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2345 $as_echo "$ac_cv_exeext" >&6; }
2347 rm -f conftest.$ac_ext
2348 EXEEXT=$ac_cv_exeext
2350 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2351 $as_echo_n "checking for suffix of object files... " >&6; }
2352 if test "${ac_cv_objext+set}" = set; then
2353 $as_echo_n "(cached) " >&6
2355 cat >conftest.$ac_ext <<_ACEOF
2358 cat confdefs.h >>conftest.$ac_ext
2359 cat >>conftest.$ac_ext <<_ACEOF
2360 /* end confdefs.h. */
2370 rm -f conftest.o conftest.obj
2371 if { (ac_try="$ac_compile"
2373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2374 *) ac_try_echo=$ac_try;;
2376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2377 $as_echo "$ac_try_echo") >&5
2378 (eval "$ac_compile") 2>&5
2380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); }; then
2382 for ac_file in conftest.o conftest.obj conftest.*; do
2383 test -f "$ac_file" || continue;
2385 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2386 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2391 $as_echo "$as_me: failed program was:" >&5
2392 sed 's/^/| /' conftest.$ac_ext >&5
2394 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2395 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2396 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2397 See \`config.log' for more details." >&5
2398 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2399 See \`config.log' for more details." >&2;}
2400 { (exit 1); exit 1; }; }; }
2403 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2405 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2406 $as_echo "$ac_cv_objext" >&6; }
2407 OBJEXT=$ac_cv_objext
2409 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2410 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2411 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2412 $as_echo_n "(cached) " >&6
2414 cat >conftest.$ac_ext <<_ACEOF
2417 cat confdefs.h >>conftest.$ac_ext
2418 cat >>conftest.$ac_ext <<_ACEOF
2419 /* end confdefs.h. */
2432 rm -f conftest.$ac_objext
2433 if { (ac_try="$ac_compile"
2435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2436 *) ac_try_echo=$ac_try;;
2438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2439 $as_echo "$ac_try_echo") >&5
2440 (eval "$ac_compile") 2>conftest.er1
2442 grep -v '^ *+' conftest.er1 >conftest.err
2444 cat conftest.err >&5
2445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446 (exit $ac_status); } && {
2447 test -z "$ac_c_werror_flag" ||
2448 test ! -s conftest.err
2449 } && test -s conftest.$ac_objext; then
2452 $as_echo "$as_me: failed program was:" >&5
2453 sed 's/^/| /' conftest.$ac_ext >&5
2458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2459 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2462 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2463 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2464 if test $ac_compiler_gnu = yes; then
2469 ac_test_CFLAGS=${CFLAGS+set}
2470 ac_save_CFLAGS=$CFLAGS
2471 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2472 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2473 if test "${ac_cv_prog_cc_g+set}" = set; then
2474 $as_echo_n "(cached) " >&6
2476 ac_save_c_werror_flag=$ac_c_werror_flag
2477 ac_c_werror_flag=yes
2480 cat >conftest.$ac_ext <<_ACEOF
2483 cat confdefs.h >>conftest.$ac_ext
2484 cat >>conftest.$ac_ext <<_ACEOF
2485 /* end confdefs.h. */
2495 rm -f conftest.$ac_objext
2496 if { (ac_try="$ac_compile"
2498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2499 *) ac_try_echo=$ac_try;;
2501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2502 $as_echo "$ac_try_echo") >&5
2503 (eval "$ac_compile") 2>conftest.er1
2505 grep -v '^ *+' conftest.er1 >conftest.err
2507 cat conftest.err >&5
2508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); } && {
2510 test -z "$ac_c_werror_flag" ||
2511 test ! -s conftest.err
2512 } && test -s conftest.$ac_objext; then
2515 $as_echo "$as_me: failed program was:" >&5
2516 sed 's/^/| /' conftest.$ac_ext >&5
2519 cat >conftest.$ac_ext <<_ACEOF
2522 cat confdefs.h >>conftest.$ac_ext
2523 cat >>conftest.$ac_ext <<_ACEOF
2524 /* end confdefs.h. */
2534 rm -f conftest.$ac_objext
2535 if { (ac_try="$ac_compile"
2537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2538 *) ac_try_echo=$ac_try;;
2540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2541 $as_echo "$ac_try_echo") >&5
2542 (eval "$ac_compile") 2>conftest.er1
2544 grep -v '^ *+' conftest.er1 >conftest.err
2546 cat conftest.err >&5
2547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); } && {
2549 test -z "$ac_c_werror_flag" ||
2550 test ! -s conftest.err
2551 } && test -s conftest.$ac_objext; then
2554 $as_echo "$as_me: failed program was:" >&5
2555 sed 's/^/| /' conftest.$ac_ext >&5
2557 ac_c_werror_flag=$ac_save_c_werror_flag
2559 cat >conftest.$ac_ext <<_ACEOF
2562 cat confdefs.h >>conftest.$ac_ext
2563 cat >>conftest.$ac_ext <<_ACEOF
2564 /* end confdefs.h. */
2574 rm -f conftest.$ac_objext
2575 if { (ac_try="$ac_compile"
2577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2578 *) ac_try_echo=$ac_try;;
2580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2581 $as_echo "$ac_try_echo") >&5
2582 (eval "$ac_compile") 2>conftest.er1
2584 grep -v '^ *+' conftest.er1 >conftest.err
2586 cat conftest.err >&5
2587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); } && {
2589 test -z "$ac_c_werror_flag" ||
2590 test ! -s conftest.err
2591 } && test -s conftest.$ac_objext; then
2594 $as_echo "$as_me: failed program was:" >&5
2595 sed 's/^/| /' conftest.$ac_ext >&5
2600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2607 ac_c_werror_flag=$ac_save_c_werror_flag
2609 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2610 $as_echo "$ac_cv_prog_cc_g" >&6; }
2611 if test "$ac_test_CFLAGS" = set; then
2612 CFLAGS=$ac_save_CFLAGS
2613 elif test $ac_cv_prog_cc_g = yes; then
2614 if test "$GCC" = yes; then
2620 if test "$GCC" = yes; then
2626 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2627 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2628 if test "${ac_cv_prog_cc_c89+set}" = set; then
2629 $as_echo_n "(cached) " >&6
2631 ac_cv_prog_cc_c89=no
2633 cat >conftest.$ac_ext <<_ACEOF
2636 cat confdefs.h >>conftest.$ac_ext
2637 cat >>conftest.$ac_ext <<_ACEOF
2638 /* end confdefs.h. */
2641 #include <sys/types.h>
2642 #include <sys/stat.h>
2643 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2644 struct buf { int x; };
2645 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2646 static char *e (p, i)
2652 static char *f (char * (*g) (char **, int), char **p, ...)
2657 s = g (p, va_arg (v,int));
2662 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2663 function prototypes and stuff, but not '\xHH' hex character constants.
2664 These don't provoke an error unfortunately, instead are silently treated
2665 as 'x'. The following induces an error, until -std is added to get
2666 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2667 array size at least. It's necessary to write '\x00'==0 to get something
2668 that's true only with -std. */
2669 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2671 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2672 inside strings and character constants. */
2674 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2676 int test (int i, double x);
2677 struct s1 {int (*f) (int a);};
2678 struct s2 {int (*f) (double a);};
2679 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2685 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2690 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2691 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2693 CC="$ac_save_CC $ac_arg"
2694 rm -f conftest.$ac_objext
2695 if { (ac_try="$ac_compile"
2697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2698 *) ac_try_echo=$ac_try;;
2700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2701 $as_echo "$ac_try_echo") >&5
2702 (eval "$ac_compile") 2>conftest.er1
2704 grep -v '^ *+' conftest.er1 >conftest.err
2706 cat conftest.err >&5
2707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); } && {
2709 test -z "$ac_c_werror_flag" ||
2710 test ! -s conftest.err
2711 } && test -s conftest.$ac_objext; then
2712 ac_cv_prog_cc_c89=$ac_arg
2714 $as_echo "$as_me: failed program was:" >&5
2715 sed 's/^/| /' conftest.$ac_ext >&5
2720 rm -f core conftest.err conftest.$ac_objext
2721 test "x$ac_cv_prog_cc_c89" != "xno" && break
2723 rm -f conftest.$ac_ext
2728 case "x$ac_cv_prog_cc_c89" in
2730 { $as_echo "$as_me:$LINENO: result: none needed" >&5
2731 $as_echo "none needed" >&6; } ;;
2733 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2734 $as_echo "unsupported" >&6; } ;;
2736 CC="$CC $ac_cv_prog_cc_c89"
2737 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2738 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2743 ac_cpp='$CPP $CPPFLAGS'
2744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2750 ac_cpp='$CPP $CPPFLAGS'
2751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2754 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2755 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2756 # On Suns, sometimes $CPP names a directory.
2757 if test -n "$CPP" && test -d "$CPP"; then
2760 if test -z "$CPP"; then
2761 if test "${ac_cv_prog_CPP+set}" = set; then
2762 $as_echo_n "(cached) " >&6
2764 # Double quotes because CPP needs to be expanded
2765 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2768 for ac_c_preproc_warn_flag in '' yes
2770 # Use a header file that comes with gcc, so configuring glibc
2771 # with a fresh cross-compiler works.
2772 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2773 # <limits.h> exists even on freestanding compilers.
2774 # On the NeXT, cc -E runs the code through the compiler's parser,
2775 # not just through cpp. "Syntax error" is here to catch this case.
2776 cat >conftest.$ac_ext <<_ACEOF
2779 cat confdefs.h >>conftest.$ac_ext
2780 cat >>conftest.$ac_ext <<_ACEOF
2781 /* end confdefs.h. */
2783 # include <limits.h>
2785 # include <assert.h>
2789 if { (ac_try="$ac_cpp conftest.$ac_ext"
2791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2792 *) ac_try_echo=$ac_try;;
2794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2795 $as_echo "$ac_try_echo") >&5
2796 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2798 grep -v '^ *+' conftest.er1 >conftest.err
2800 cat conftest.err >&5
2801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); } >/dev/null && {
2803 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2804 test ! -s conftest.err
2808 $as_echo "$as_me: failed program was:" >&5
2809 sed 's/^/| /' conftest.$ac_ext >&5
2811 # Broken: fails on valid input.
2815 rm -f conftest.err conftest.$ac_ext
2817 # OK, works on sane cases. Now check whether nonexistent headers
2818 # can be detected and how.
2819 cat >conftest.$ac_ext <<_ACEOF
2822 cat confdefs.h >>conftest.$ac_ext
2823 cat >>conftest.$ac_ext <<_ACEOF
2824 /* end confdefs.h. */
2825 #include <ac_nonexistent.h>
2827 if { (ac_try="$ac_cpp conftest.$ac_ext"
2829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2830 *) ac_try_echo=$ac_try;;
2832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2833 $as_echo "$ac_try_echo") >&5
2834 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2836 grep -v '^ *+' conftest.er1 >conftest.err
2838 cat conftest.err >&5
2839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); } >/dev/null && {
2841 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2842 test ! -s conftest.err
2844 # Broken: success on invalid input.
2847 $as_echo "$as_me: failed program was:" >&5
2848 sed 's/^/| /' conftest.$ac_ext >&5
2850 # Passes both tests.
2855 rm -f conftest.err conftest.$ac_ext
2858 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2859 rm -f conftest.err conftest.$ac_ext
2860 if $ac_preproc_ok; then
2872 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
2873 $as_echo "$CPP" >&6; }
2875 for ac_c_preproc_warn_flag in '' yes
2877 # Use a header file that comes with gcc, so configuring glibc
2878 # with a fresh cross-compiler works.
2879 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2880 # <limits.h> exists even on freestanding compilers.
2881 # On the NeXT, cc -E runs the code through the compiler's parser,
2882 # not just through cpp. "Syntax error" is here to catch this case.
2883 cat >conftest.$ac_ext <<_ACEOF
2886 cat confdefs.h >>conftest.$ac_ext
2887 cat >>conftest.$ac_ext <<_ACEOF
2888 /* end confdefs.h. */
2890 # include <limits.h>
2892 # include <assert.h>
2896 if { (ac_try="$ac_cpp conftest.$ac_ext"
2898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899 *) ac_try_echo=$ac_try;;
2901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2902 $as_echo "$ac_try_echo") >&5
2903 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2905 grep -v '^ *+' conftest.er1 >conftest.err
2907 cat conftest.err >&5
2908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); } >/dev/null && {
2910 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2911 test ! -s conftest.err
2915 $as_echo "$as_me: failed program was:" >&5
2916 sed 's/^/| /' conftest.$ac_ext >&5
2918 # Broken: fails on valid input.
2922 rm -f conftest.err conftest.$ac_ext
2924 # OK, works on sane cases. Now check whether nonexistent headers
2925 # can be detected and how.
2926 cat >conftest.$ac_ext <<_ACEOF
2929 cat confdefs.h >>conftest.$ac_ext
2930 cat >>conftest.$ac_ext <<_ACEOF
2931 /* end confdefs.h. */
2932 #include <ac_nonexistent.h>
2934 if { (ac_try="$ac_cpp conftest.$ac_ext"
2936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2937 *) ac_try_echo=$ac_try;;
2939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2940 $as_echo "$ac_try_echo") >&5
2941 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2943 grep -v '^ *+' conftest.er1 >conftest.err
2945 cat conftest.err >&5
2946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); } >/dev/null && {
2948 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2949 test ! -s conftest.err
2951 # Broken: success on invalid input.
2954 $as_echo "$as_me: failed program was:" >&5
2955 sed 's/^/| /' conftest.$ac_ext >&5
2957 # Passes both tests.
2962 rm -f conftest.err conftest.$ac_ext
2965 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2966 rm -f conftest.err conftest.$ac_ext
2967 if $ac_preproc_ok; then
2970 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2972 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2973 See \`config.log' for more details." >&5
2974 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2975 See \`config.log' for more details." >&2;}
2976 { (exit 1); exit 1; }; }; }
2980 ac_cpp='$CPP $CPPFLAGS'
2981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2986 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
2987 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
2988 if test "${ac_cv_path_GREP+set}" = set; then
2989 $as_echo_n "(cached) " >&6
2991 if test -z "$GREP"; then
2992 ac_path_GREP_found=false
2993 # Loop through the user's path and test for each of PROGNAME-LIST
2994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2995 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
2998 test -z "$as_dir" && as_dir=.
2999 for ac_prog in grep ggrep; do
3000 for ac_exec_ext in '' $ac_executable_extensions; do
3001 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3002 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3003 # Check for GNU ac_path_GREP and select it if it is found.
3004 # Check for GNU $ac_path_GREP
3005 case `"$ac_path_GREP" --version 2>&1` in
3007 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3010 $as_echo_n 0123456789 >"conftest.in"
3013 cat "conftest.in" "conftest.in" >"conftest.tmp"
3014 mv "conftest.tmp" "conftest.in"
3015 cp "conftest.in" "conftest.nl"
3016 $as_echo 'GREP' >> "conftest.nl"
3017 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3018 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3019 ac_count=`expr $ac_count + 1`
3020 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3021 # Best one so far, save it but keep looking for a better one
3022 ac_cv_path_GREP="$ac_path_GREP"
3023 ac_path_GREP_max=$ac_count
3025 # 10*(2^10) chars as input seems more than enough
3026 test $ac_count -gt 10 && break
3028 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3031 $ac_path_GREP_found && break 3
3036 if test -z "$ac_cv_path_GREP"; then
3037 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3038 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3039 { (exit 1); exit 1; }; }
3042 ac_cv_path_GREP=$GREP
3046 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3047 $as_echo "$ac_cv_path_GREP" >&6; }
3048 GREP="$ac_cv_path_GREP"
3051 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3052 $as_echo_n "checking for egrep... " >&6; }
3053 if test "${ac_cv_path_EGREP+set}" = set; then
3054 $as_echo_n "(cached) " >&6
3056 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3057 then ac_cv_path_EGREP="$GREP -E"
3059 if test -z "$EGREP"; then
3060 ac_path_EGREP_found=false
3061 # Loop through the user's path and test for each of PROGNAME-LIST
3062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3063 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3066 test -z "$as_dir" && as_dir=.
3067 for ac_prog in egrep; do
3068 for ac_exec_ext in '' $ac_executable_extensions; do
3069 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3070 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3071 # Check for GNU ac_path_EGREP and select it if it is found.
3072 # Check for GNU $ac_path_EGREP
3073 case `"$ac_path_EGREP" --version 2>&1` in
3075 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3078 $as_echo_n 0123456789 >"conftest.in"
3081 cat "conftest.in" "conftest.in" >"conftest.tmp"
3082 mv "conftest.tmp" "conftest.in"
3083 cp "conftest.in" "conftest.nl"
3084 $as_echo 'EGREP' >> "conftest.nl"
3085 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3086 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3087 ac_count=`expr $ac_count + 1`
3088 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3089 # Best one so far, save it but keep looking for a better one
3090 ac_cv_path_EGREP="$ac_path_EGREP"
3091 ac_path_EGREP_max=$ac_count
3093 # 10*(2^10) chars as input seems more than enough
3094 test $ac_count -gt 10 && break
3096 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3099 $ac_path_EGREP_found && break 3
3104 if test -z "$ac_cv_path_EGREP"; then
3105 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3106 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3107 { (exit 1); exit 1; }; }
3110 ac_cv_path_EGREP=$EGREP
3115 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3116 $as_echo "$ac_cv_path_EGREP" >&6; }
3117 EGREP="$ac_cv_path_EGREP"
3120 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3121 $as_echo_n "checking for ANSI C header files... " >&6; }
3122 if test "${ac_cv_header_stdc+set}" = set; then
3123 $as_echo_n "(cached) " >&6
3125 cat >conftest.$ac_ext <<_ACEOF
3128 cat confdefs.h >>conftest.$ac_ext
3129 cat >>conftest.$ac_ext <<_ACEOF
3130 /* end confdefs.h. */
3144 rm -f conftest.$ac_objext
3145 if { (ac_try="$ac_compile"
3147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148 *) ac_try_echo=$ac_try;;
3150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3151 $as_echo "$ac_try_echo") >&5
3152 (eval "$ac_compile") 2>conftest.er1
3154 grep -v '^ *+' conftest.er1 >conftest.err
3156 cat conftest.err >&5
3157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); } && {
3159 test -z "$ac_c_werror_flag" ||
3160 test ! -s conftest.err
3161 } && test -s conftest.$ac_objext; then
3162 ac_cv_header_stdc=yes
3164 $as_echo "$as_me: failed program was:" >&5
3165 sed 's/^/| /' conftest.$ac_ext >&5
3167 ac_cv_header_stdc=no
3170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3172 if test $ac_cv_header_stdc = yes; then
3173 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3174 cat >conftest.$ac_ext <<_ACEOF
3177 cat confdefs.h >>conftest.$ac_ext
3178 cat >>conftest.$ac_ext <<_ACEOF
3179 /* end confdefs.h. */
3183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3184 $EGREP "memchr" >/dev/null 2>&1; then
3187 ac_cv_header_stdc=no
3193 if test $ac_cv_header_stdc = yes; then
3194 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3195 cat >conftest.$ac_ext <<_ACEOF
3198 cat confdefs.h >>conftest.$ac_ext
3199 cat >>conftest.$ac_ext <<_ACEOF
3200 /* end confdefs.h. */
3204 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3205 $EGREP "free" >/dev/null 2>&1; then
3208 ac_cv_header_stdc=no
3214 if test $ac_cv_header_stdc = yes; then
3215 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3216 if test "$cross_compiling" = yes; then
3219 cat >conftest.$ac_ext <<_ACEOF
3222 cat confdefs.h >>conftest.$ac_ext
3223 cat >>conftest.$ac_ext <<_ACEOF
3224 /* end confdefs.h. */
3227 #if ((' ' & 0x0FF) == 0x020)
3228 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3229 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3231 # define ISLOWER(c) \
3232 (('a' <= (c) && (c) <= 'i') \
3233 || ('j' <= (c) && (c) <= 'r') \
3234 || ('s' <= (c) && (c) <= 'z'))
3235 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3238 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3243 for (i = 0; i < 256; i++)
3244 if (XOR (islower (i), ISLOWER (i))
3245 || toupper (i) != TOUPPER (i))
3250 rm -f conftest$ac_exeext
3251 if { (ac_try="$ac_link"
3253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3254 *) ac_try_echo=$ac_try;;
3256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3257 $as_echo "$ac_try_echo") >&5
3258 (eval "$ac_link") 2>&5
3260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3262 { (case "(($ac_try" in
3263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3264 *) ac_try_echo=$ac_try;;
3266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3267 $as_echo "$ac_try_echo") >&5
3268 (eval "$ac_try") 2>&5
3270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271 (exit $ac_status); }; }; then
3274 $as_echo "$as_me: program exited with status $ac_status" >&5
3275 $as_echo "$as_me: failed program was:" >&5
3276 sed 's/^/| /' conftest.$ac_ext >&5
3279 ac_cv_header_stdc=no
3281 rm -rf conftest.dSYM
3282 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3288 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3289 $as_echo "$ac_cv_header_stdc" >&6; }
3290 if test $ac_cv_header_stdc = yes; then
3292 cat >>confdefs.h <<\_ACEOF
3293 #define STDC_HEADERS 1
3299 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3300 if test -f "$ac_dir/install-sh"; then
3302 ac_install_sh="$ac_aux_dir/install-sh -c"
3304 elif test -f "$ac_dir/install.sh"; then
3306 ac_install_sh="$ac_aux_dir/install.sh -c"
3308 elif test -f "$ac_dir/shtool"; then
3310 ac_install_sh="$ac_aux_dir/shtool install -c"
3314 if test -z "$ac_aux_dir"; then
3315 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
3316 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
3317 { (exit 1); exit 1; }; }
3320 # These three variables are undocumented and unsupported,
3321 # and are intended to be withdrawn in a future Autoconf release.
3322 # They can cause serious problems if a builder's source tree is in a directory
3323 # whose full name contains unusual characters.
3324 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3325 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3326 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3329 # Find a good install program. We prefer a C program (faster),
3330 # so one script is as good as another. But avoid the broken or
3331 # incompatible versions:
3332 # SysV /etc/install, /usr/sbin/install
3333 # SunOS /usr/etc/install
3334 # IRIX /sbin/install
3336 # AmigaOS /C/install, which installs bootblocks on floppy discs
3337 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3338 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3339 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3340 # OS/2's system install, which has a completely different semantic
3341 # ./install, which can be erroneously created by make from ./install.sh.
3342 # Reject install programs that cannot install multiple files.
3343 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3344 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3345 if test -z "$INSTALL"; then
3346 if test "${ac_cv_path_install+set}" = set; then
3347 $as_echo_n "(cached) " >&6
3349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3353 test -z "$as_dir" && as_dir=.
3354 # Account for people who put trailing slashes in PATH elements.
3356 ./ | .// | /cC/* | \
3357 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3358 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3361 # OSF1 and SCO ODT 3.0 have their own names for install.
3362 # Don't use installbsd from OSF since it installs stuff as root
3364 for ac_prog in ginstall scoinst install; do
3365 for ac_exec_ext in '' $ac_executable_extensions; do
3366 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3367 if test $ac_prog = install &&
3368 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3369 # AIX install. It has an incompatible calling convention.
3371 elif test $ac_prog = install &&
3372 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3373 # program-specific install script used by HP pwplus--don't use.
3376 rm -rf conftest.one conftest.two conftest.dir
3377 echo one > conftest.one
3378 echo two > conftest.two
3380 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3381 test -s conftest.one && test -s conftest.two &&
3382 test -s conftest.dir/conftest.one &&
3383 test -s conftest.dir/conftest.two
3385 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3398 rm -rf conftest.one conftest.two conftest.dir
3401 if test "${ac_cv_path_install+set}" = set; then
3402 INSTALL=$ac_cv_path_install
3404 # As a last resort, use the slow shell script. Don't cache a
3405 # value for INSTALL within a source directory, because that will
3406 # break other packages using the cache if that directory is
3407 # removed, or if the value is a relative name.
3408 INSTALL=$ac_install_sh
3411 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3412 $as_echo "$INSTALL" >&6; }
3414 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3415 # It thinks the first close brace ends the variable substitution.
3416 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3418 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3420 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3423 { $as_echo "$as_me:$LINENO: checking whether compiler supports PIE" >&5
3424 $as_echo_n "checking whether compiler supports PIE... " >&6; }
3426 CFLAGS="$CFLAGS -fPIE"
3427 oldLDFLAGS="$LDFLAGS"
3428 LDFLAGS="$LDFLAGS -pie"
3429 cat >conftest.$ac_ext <<_ACEOF
3432 cat confdefs.h >>conftest.$ac_ext
3433 cat >>conftest.$ac_ext <<_ACEOF
3434 /* end confdefs.h. */
3444 rm -f conftest.$ac_objext conftest$ac_exeext
3445 if { (ac_try="$ac_link"
3447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448 *) ac_try_echo=$ac_try;;
3450 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3451 $as_echo "$ac_try_echo") >&5
3452 (eval "$ac_link") 2>conftest.er1
3454 grep -v '^ *+' conftest.er1 >conftest.err
3456 cat conftest.err >&5
3457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); } && {
3459 test -z "$ac_c_werror_flag" ||
3460 test ! -s conftest.err
3461 } && test -s conftest$ac_exeext && {
3462 test "$cross_compiling" = yes ||
3463 $as_test_x conftest$ac_exeext
3467 $as_echo "$as_me: failed program was:" >&5
3468 sed 's/^/| /' conftest.$ac_ext >&5
3473 rm -rf conftest.dSYM
3474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3475 conftest$ac_exeext conftest.$ac_ext
3476 if test "x$compilepie" != "xyes"; then
3478 LDFLAGS="$oldLDFLAGS"
3479 { $as_echo "$as_me:$LINENO: result: no" >&5
3480 $as_echo "no" >&6; }
3482 { $as_echo "$as_me:$LINENO: result: yes" >&5
3483 $as_echo "yes" >&6; }
3486 # Check whether --enable-ldapmail was given.
3487 if test "${enable_ldapmail+set}" = set; then
3488 enableval=$enable_ldapmail;
3490 enable_ldapmail="no"
3493 if test "x$enable_ldapmail" != "xno"; then
3496 { $as_echo "$as_me:$LINENO: checking for ldap_initialize in -lldap" >&5
3497 $as_echo_n "checking for ldap_initialize in -lldap... " >&6; }
3498 if test "${ac_cv_lib_ldap_ldap_initialize+set}" = set; then
3499 $as_echo_n "(cached) " >&6
3501 ac_check_lib_save_LIBS=$LIBS
3503 cat >conftest.$ac_ext <<_ACEOF
3506 cat confdefs.h >>conftest.$ac_ext
3507 cat >>conftest.$ac_ext <<_ACEOF
3508 /* end confdefs.h. */
3510 /* Override any GCC internal prototype to avoid an error.
3511 Use char because int might match the return type of a GCC
3512 builtin and then its argument prototype would still apply. */
3516 char ldap_initialize ();
3520 return ldap_initialize ();
3525 rm -f conftest.$ac_objext conftest$ac_exeext
3526 if { (ac_try="$ac_link"
3528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3529 *) ac_try_echo=$ac_try;;
3531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3532 $as_echo "$ac_try_echo") >&5
3533 (eval "$ac_link") 2>conftest.er1
3535 grep -v '^ *+' conftest.er1 >conftest.err
3537 cat conftest.err >&5
3538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539 (exit $ac_status); } && {
3540 test -z "$ac_c_werror_flag" ||
3541 test ! -s conftest.err
3542 } && test -s conftest$ac_exeext && {
3543 test "$cross_compiling" = yes ||
3544 $as_test_x conftest$ac_exeext
3546 ac_cv_lib_ldap_ldap_initialize=yes
3548 $as_echo "$as_me: failed program was:" >&5
3549 sed 's/^/| /' conftest.$ac_ext >&5
3551 ac_cv_lib_ldap_ldap_initialize=no
3554 rm -rf conftest.dSYM
3555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3556 conftest$ac_exeext conftest.$ac_ext
3557 LIBS=$ac_check_lib_save_LIBS
3559 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_initialize" >&5
3560 $as_echo "$ac_cv_lib_ldap_ldap_initialize" >&6; }
3561 if test "x$ac_cv_lib_ldap_ldap_initialize" = x""yes; then
3564 { $as_echo "$as_me:$LINENO: checking for ldap_init in -lldap" >&5
3565 $as_echo_n "checking for ldap_init in -lldap... " >&6; }
3566 if test "${ac_cv_lib_ldap_ldap_init+set}" = set; then
3567 $as_echo_n "(cached) " >&6
3569 ac_check_lib_save_LIBS=$LIBS
3571 cat >conftest.$ac_ext <<_ACEOF
3574 cat confdefs.h >>conftest.$ac_ext
3575 cat >>conftest.$ac_ext <<_ACEOF
3576 /* end confdefs.h. */
3578 /* Override any GCC internal prototype to avoid an error.
3579 Use char because int might match the return type of a GCC
3580 builtin and then its argument prototype would still apply. */
3588 return ldap_init ();
3593 rm -f conftest.$ac_objext conftest$ac_exeext
3594 if { (ac_try="$ac_link"
3596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3597 *) ac_try_echo=$ac_try;;
3599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3600 $as_echo "$ac_try_echo") >&5
3601 (eval "$ac_link") 2>conftest.er1
3603 grep -v '^ *+' conftest.er1 >conftest.err
3605 cat conftest.err >&5
3606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); } && {
3608 test -z "$ac_c_werror_flag" ||
3609 test ! -s conftest.err
3610 } && test -s conftest$ac_exeext && {
3611 test "$cross_compiling" = yes ||
3612 $as_test_x conftest$ac_exeext
3614 ac_cv_lib_ldap_ldap_init=yes
3616 $as_echo "$as_me: failed program was:" >&5
3617 sed 's/^/| /' conftest.$ac_ext >&5
3619 ac_cv_lib_ldap_ldap_init=no
3622 rm -rf conftest.dSYM
3623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3624 conftest$ac_exeext conftest.$ac_ext
3625 LIBS=$ac_check_lib_save_LIBS
3627 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_init" >&5
3628 $as_echo "$ac_cv_lib_ldap_ldap_init" >&6; }
3629 if test "x$ac_cv_lib_ldap_ldap_init" = x""yes; then
3635 if test "x$have_new_ldap" != "xno" -o "x$have_old_ldap" != "xno"; then
3636 LDAPLIBS="-L/usr/lib -lldap -llber"
3638 cat >>confdefs.h <<\_ACEOF
3639 #define USE_LDAP_MAIL_LOOKUP 1
3642 COMPILE_OPTS="$COMPILE_OPTS USE_LDAP_MAIL_LOOKUP"
3643 if test "x$have_new_ldap" = "xyes"; then
3645 cat >>confdefs.h <<\_ACEOF
3646 #define USE_LDAP_23 1
3649 { $as_echo "$as_me:$LINENO: checking whether ldap_perror is declared" >&5
3650 $as_echo_n "checking whether ldap_perror is declared... " >&6; }
3651 if test "${ac_cv_have_decl_ldap_perror+set}" = set; then
3652 $as_echo_n "(cached) " >&6
3654 cat >conftest.$ac_ext <<_ACEOF
3657 cat confdefs.h >>conftest.$ac_ext
3658 cat >>conftest.$ac_ext <<_ACEOF
3659 /* end confdefs.h. */
3673 rm -f conftest.$ac_objext
3674 if { (ac_try="$ac_compile"
3676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3677 *) ac_try_echo=$ac_try;;
3679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3680 $as_echo "$ac_try_echo") >&5
3681 (eval "$ac_compile") 2>conftest.er1
3683 grep -v '^ *+' conftest.er1 >conftest.err
3685 cat conftest.err >&5
3686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); } && {
3688 test -z "$ac_c_werror_flag" ||
3689 test ! -s conftest.err
3690 } && test -s conftest.$ac_objext; then
3691 ac_cv_have_decl_ldap_perror=yes
3693 $as_echo "$as_me: failed program was:" >&5
3694 sed 's/^/| /' conftest.$ac_ext >&5
3696 ac_cv_have_decl_ldap_perror=no
3699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3701 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_ldap_perror" >&5
3702 $as_echo "$ac_cv_have_decl_ldap_perror" >&6; }
3703 if test "x$ac_cv_have_decl_ldap_perror" = x""yes; then
3707 cat >>confdefs.h <<\_ACEOF
3708 #define NEED_LDAP_PERROR 1
3715 if test "x$enable_ldapmail" = "xyes"; then
3716 { { $as_echo "$as_me:$LINENO: error: LDAP support required but library not found." >&5
3717 $as_echo "$as_me: error: LDAP support required but library not found." >&2;}
3718 { (exit 1); exit 1; }; };
3725 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3735 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3736 inttypes.h stdint.h unistd.h
3738 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3739 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3740 $as_echo_n "checking for $ac_header... " >&6; }
3741 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3742 $as_echo_n "(cached) " >&6
3744 cat >conftest.$ac_ext <<_ACEOF
3747 cat confdefs.h >>conftest.$ac_ext
3748 cat >>conftest.$ac_ext <<_ACEOF
3749 /* end confdefs.h. */
3750 $ac_includes_default
3752 #include <$ac_header>
3754 rm -f conftest.$ac_objext
3755 if { (ac_try="$ac_compile"
3757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3758 *) ac_try_echo=$ac_try;;
3760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3761 $as_echo "$ac_try_echo") >&5
3762 (eval "$ac_compile") 2>conftest.er1
3764 grep -v '^ *+' conftest.er1 >conftest.err
3766 cat conftest.err >&5
3767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768 (exit $ac_status); } && {
3769 test -z "$ac_c_werror_flag" ||
3770 test ! -s conftest.err
3771 } && test -s conftest.$ac_objext; then
3772 eval "$as_ac_Header=yes"
3774 $as_echo "$as_me: failed program was:" >&5
3775 sed 's/^/| /' conftest.$ac_ext >&5
3777 eval "$as_ac_Header=no"
3780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3782 ac_res=`eval 'as_val=${'$as_ac_Header'}
3783 $as_echo "$as_val"'`
3784 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3785 $as_echo "$ac_res" >&6; }
3786 as_val=`eval 'as_val=${'$as_ac_Header'}
3787 $as_echo "$as_val"'`
3788 if test "x$as_val" = x""yes; then
3789 cat >>confdefs.h <<_ACEOF
3790 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3798 if test "${ac_cv_header_ext2fs_ext2fs_h+set}" = set; then
3799 { $as_echo "$as_me:$LINENO: checking for ext2fs/ext2fs.h" >&5
3800 $as_echo_n "checking for ext2fs/ext2fs.h... " >&6; }
3801 if test "${ac_cv_header_ext2fs_ext2fs_h+set}" = set; then
3802 $as_echo_n "(cached) " >&6
3804 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_ext2fs_ext2fs_h" >&5
3805 $as_echo "$ac_cv_header_ext2fs_ext2fs_h" >&6; }
3807 # Is the header compilable?
3808 { $as_echo "$as_me:$LINENO: checking ext2fs/ext2fs.h usability" >&5
3809 $as_echo_n "checking ext2fs/ext2fs.h usability... " >&6; }
3810 cat >conftest.$ac_ext <<_ACEOF
3813 cat confdefs.h >>conftest.$ac_ext
3814 cat >>conftest.$ac_ext <<_ACEOF
3815 /* end confdefs.h. */
3816 $ac_includes_default
3817 #include <ext2fs/ext2fs.h>
3819 rm -f conftest.$ac_objext
3820 if { (ac_try="$ac_compile"
3822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3823 *) ac_try_echo=$ac_try;;
3825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3826 $as_echo "$ac_try_echo") >&5
3827 (eval "$ac_compile") 2>conftest.er1
3829 grep -v '^ *+' conftest.er1 >conftest.err
3831 cat conftest.err >&5
3832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833 (exit $ac_status); } && {
3834 test -z "$ac_c_werror_flag" ||
3835 test ! -s conftest.err
3836 } && test -s conftest.$ac_objext; then
3837 ac_header_compiler=yes
3839 $as_echo "$as_me: failed program was:" >&5
3840 sed 's/^/| /' conftest.$ac_ext >&5
3842 ac_header_compiler=no
3845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3846 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3847 $as_echo "$ac_header_compiler" >&6; }
3849 # Is the header present?
3850 { $as_echo "$as_me:$LINENO: checking ext2fs/ext2fs.h presence" >&5
3851 $as_echo_n "checking ext2fs/ext2fs.h presence... " >&6; }
3852 cat >conftest.$ac_ext <<_ACEOF
3855 cat confdefs.h >>conftest.$ac_ext
3856 cat >>conftest.$ac_ext <<_ACEOF
3857 /* end confdefs.h. */
3858 #include <ext2fs/ext2fs.h>
3860 if { (ac_try="$ac_cpp conftest.$ac_ext"
3862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3863 *) ac_try_echo=$ac_try;;
3865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3866 $as_echo "$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 $as_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
3877 ac_header_preproc=yes
3879 $as_echo "$as_me: failed program was:" >&5
3880 sed 's/^/| /' conftest.$ac_ext >&5
3882 ac_header_preproc=no
3885 rm -f conftest.err conftest.$ac_ext
3886 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3887 $as_echo "$ac_header_preproc" >&6; }
3889 # So? What about this header?
3890 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3892 { $as_echo "$as_me:$LINENO: WARNING: ext2fs/ext2fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3893 $as_echo "$as_me: WARNING: ext2fs/ext2fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3894 { $as_echo "$as_me:$LINENO: WARNING: ext2fs/ext2fs.h: proceeding with the compiler's result" >&5
3895 $as_echo "$as_me: WARNING: ext2fs/ext2fs.h: proceeding with the compiler's result" >&2;}
3896 ac_header_preproc=yes
3899 { $as_echo "$as_me:$LINENO: WARNING: ext2fs/ext2fs.h: present but cannot be compiled" >&5
3900 $as_echo "$as_me: WARNING: ext2fs/ext2fs.h: present but cannot be compiled" >&2;}
3901 { $as_echo "$as_me:$LINENO: WARNING: ext2fs/ext2fs.h: check for missing prerequisite headers?" >&5
3902 $as_echo "$as_me: WARNING: ext2fs/ext2fs.h: check for missing prerequisite headers?" >&2;}
3903 { $as_echo "$as_me:$LINENO: WARNING: ext2fs/ext2fs.h: see the Autoconf documentation" >&5
3904 $as_echo "$as_me: WARNING: ext2fs/ext2fs.h: see the Autoconf documentation" >&2;}
3905 { $as_echo "$as_me:$LINENO: WARNING: ext2fs/ext2fs.h: section \"Present But Cannot Be Compiled\"" >&5
3906 $as_echo "$as_me: WARNING: ext2fs/ext2fs.h: section \"Present But Cannot Be Compiled\"" >&2;}
3907 { $as_echo "$as_me:$LINENO: WARNING: ext2fs/ext2fs.h: proceeding with the preprocessor's result" >&5
3908 $as_echo "$as_me: WARNING: ext2fs/ext2fs.h: proceeding with the preprocessor's result" >&2;}
3909 { $as_echo "$as_me:$LINENO: WARNING: ext2fs/ext2fs.h: in the future, the compiler will take precedence" >&5
3910 $as_echo "$as_me: WARNING: ext2fs/ext2fs.h: in the future, the compiler will take precedence" >&2;}
3914 { $as_echo "$as_me:$LINENO: checking for ext2fs/ext2fs.h" >&5
3915 $as_echo_n "checking for ext2fs/ext2fs.h... " >&6; }
3916 if test "${ac_cv_header_ext2fs_ext2fs_h+set}" = set; then
3917 $as_echo_n "(cached) " >&6
3919 ac_cv_header_ext2fs_ext2fs_h=$ac_header_preproc
3921 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_ext2fs_ext2fs_h" >&5
3922 $as_echo "$ac_cv_header_ext2fs_ext2fs_h" >&6; }
3925 if test "x$ac_cv_header_ext2fs_ext2fs_h" = x""yes; then
3930 if test "x$ext2fshead" = "xyes"; then
3932 cat >>confdefs.h <<\_ACEOF
3933 #define HAVE_EXT2_INCLUDE 1
3936 { $as_echo "$as_me:$LINENO: checking for ext2_ino_t" >&5
3937 $as_echo_n "checking for ext2_ino_t... " >&6; }
3938 have_ext2_ino_t="no"
3939 cat >conftest.$ac_ext <<_ACEOF
3942 cat confdefs.h >>conftest.$ac_ext
3943 cat >>conftest.$ac_ext <<_ACEOF
3944 /* end confdefs.h. */
3945 #include <ext2fs/ext2fs.h>
3948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3949 $EGREP "ext2_ino_t" >/dev/null 2>&1; then
3950 have_ext2_ino_t="yes"
3954 if test "x$have_ext2_ino_t" != "xyes"; then
3955 { $as_echo "$as_me:$LINENO: result: not found" >&5
3956 $as_echo "not found" >&6; }
3958 { $as_echo "$as_me:$LINENO: result: found" >&5
3959 $as_echo "found" >&6; }
3961 cat >>confdefs.h <<\_ACEOF
3962 #define HAVE_EXT2_INO_T 1
3968 # Check whether --enable-ext2direct was given.
3969 if test "${enable_ext2direct+set}" = set; then
3970 enableval=$enable_ext2direct;
3972 enable_ext2direct="try"
3975 if test "x$enable_ext2direct" != "xno"; then
3976 { $as_echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
3977 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
3978 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
3979 $as_echo_n "(cached) " >&6
3981 ac_check_lib_save_LIBS=$LIBS
3982 LIBS="-lcom_err $LIBS"
3983 cat >conftest.$ac_ext <<_ACEOF
3986 cat confdefs.h >>conftest.$ac_ext
3987 cat >>conftest.$ac_ext <<_ACEOF
3988 /* end confdefs.h. */
3990 /* Override any GCC internal prototype to avoid an error.
3991 Use char because int might match the return type of a GCC
3992 builtin and then its argument prototype would still apply. */
4005 rm -f conftest.$ac_objext conftest$ac_exeext
4006 if { (ac_try="$ac_link"
4008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4009 *) ac_try_echo=$ac_try;;
4011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4012 $as_echo "$ac_try_echo") >&5
4013 (eval "$ac_link") 2>conftest.er1
4015 grep -v '^ *+' conftest.er1 >conftest.err
4017 cat conftest.err >&5
4018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); } && {
4020 test -z "$ac_c_werror_flag" ||
4021 test ! -s conftest.err
4022 } && test -s conftest$ac_exeext && {
4023 test "$cross_compiling" = yes ||
4024 $as_test_x conftest$ac_exeext
4026 ac_cv_lib_com_err_com_err=yes
4028 $as_echo "$as_me: failed program was:" >&5
4029 sed 's/^/| /' conftest.$ac_ext >&5
4031 ac_cv_lib_com_err_com_err=no
4034 rm -rf conftest.dSYM
4035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4036 conftest$ac_exeext conftest.$ac_ext
4037 LIBS=$ac_check_lib_save_LIBS
4039 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
4040 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
4041 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then
4042 EXT2LIBS="-lcom_err $EXT2LIBS"
4045 { $as_echo "$as_me:$LINENO: checking for ext2fs_initialize in -lext2fs" >&5
4046 $as_echo_n "checking for ext2fs_initialize in -lext2fs... " >&6; }
4047 if test "${ac_cv_lib_ext2fs_ext2fs_initialize+set}" = set; then
4048 $as_echo_n "(cached) " >&6
4050 ac_check_lib_save_LIBS=$LIBS
4051 LIBS="-lext2fs "-lcom_err" $LIBS"
4052 cat >conftest.$ac_ext <<_ACEOF
4055 cat confdefs.h >>conftest.$ac_ext
4056 cat >>conftest.$ac_ext <<_ACEOF
4057 /* end confdefs.h. */
4059 /* Override any GCC internal prototype to avoid an error.
4060 Use char because int might match the return type of a GCC
4061 builtin and then its argument prototype would still apply. */
4065 char ext2fs_initialize ();
4069 return ext2fs_initialize ();
4074 rm -f conftest.$ac_objext conftest$ac_exeext
4075 if { (ac_try="$ac_link"
4077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4078 *) ac_try_echo=$ac_try;;
4080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4081 $as_echo "$ac_try_echo") >&5
4082 (eval "$ac_link") 2>conftest.er1
4084 grep -v '^ *+' conftest.er1 >conftest.err
4086 cat conftest.err >&5
4087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); } && {
4089 test -z "$ac_c_werror_flag" ||
4090 test ! -s conftest.err
4091 } && test -s conftest$ac_exeext && {
4092 test "$cross_compiling" = yes ||
4093 $as_test_x conftest$ac_exeext
4095 ac_cv_lib_ext2fs_ext2fs_initialize=yes
4097 $as_echo "$as_me: failed program was:" >&5
4098 sed 's/^/| /' conftest.$ac_ext >&5
4100 ac_cv_lib_ext2fs_ext2fs_initialize=no
4103 rm -rf conftest.dSYM
4104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4105 conftest$ac_exeext conftest.$ac_ext
4106 LIBS=$ac_check_lib_save_LIBS
4108 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ext2fs_ext2fs_initialize" >&5
4109 $as_echo "$ac_cv_lib_ext2fs_ext2fs_initialize" >&6; }
4110 if test "x$ac_cv_lib_ext2fs_ext2fs_initialize" = x""yes; then
4111 EXT2LIBS="-lext2fs $EXT2LIBS"
4114 if test "${ac_cv_lib_com_err_com_err}" != "yes" -o "${ac_cv_lib_ext2fs_ext2fs_initialize}" != "yes"; then
4115 if test "x$enable_ext2direct" = "xyes"; then
4116 { { $as_echo "$as_me:$LINENO: error: Ext2 direct support required but libraries not found." >&5
4117 $as_echo "$as_me: error: Ext2 direct support required but libraries not found." >&2;}
4118 { (exit 1); exit 1; }; }
4120 { $as_echo "$as_me:$LINENO: WARNING: Ext2 direct support won't be compiled. Libraries not found." >&5
4121 $as_echo "$as_me: WARNING: Ext2 direct support won't be compiled. Libraries not found." >&2;}
4123 enable_ext2direct="no"
4126 if test "x$ext2fshead" != "xyes"; then
4127 if test "x$enable_ext2direct" = "xyes"; then
4128 { { $as_echo "$as_me:$LINENO: error: Ext2 direct support required but header files not found." >&5
4129 $as_echo "$as_me: error: Ext2 direct support required but header files not found." >&2;}
4130 { (exit 1); exit 1; }; }
4132 { $as_echo "$as_me:$LINENO: WARNING: Ext2 direct support won't be compiled. Header files not found." >&5
4133 $as_echo "$as_me: WARNING: Ext2 direct support won't be compiled. Header files not found." >&2;}
4135 enable_ext2direct="no"
4138 enable_ext2direct="yes"
4141 if test "x$enable_ext2direct" = "xyes"; then
4143 cat >>confdefs.h <<\_ACEOF
4144 #define EXT2_DIRECT 1
4147 COMPILE_OPTS="$COMPILE_OPTS EXT2_DIRECT"
4152 # Check whether --enable-netlink was given.
4153 if test "${enable_netlink+set}" = set; then
4154 enableval=$enable_netlink;
4159 if test "x$enable_netlink" != "xno"; then
4162 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4163 if test -n "$ac_tool_prefix"; then
4164 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4165 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4166 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4167 $as_echo_n "checking for $ac_word... " >&6; }
4168 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4169 $as_echo_n "(cached) " >&6
4173 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4180 test -z "$as_dir" && as_dir=.
4181 for ac_exec_ext in '' $ac_executable_extensions; do
4182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4183 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4184 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4194 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4195 if test -n "$PKG_CONFIG"; then
4196 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4197 $as_echo "$PKG_CONFIG" >&6; }
4199 { $as_echo "$as_me:$LINENO: result: no" >&5
4200 $as_echo "no" >&6; }
4205 if test -z "$ac_cv_path_PKG_CONFIG"; then
4206 ac_pt_PKG_CONFIG=$PKG_CONFIG
4207 # Extract the first word of "pkg-config", so it can be a program name with args.
4208 set dummy pkg-config; ac_word=$2
4209 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4210 $as_echo_n "checking for $ac_word... " >&6; }
4211 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4212 $as_echo_n "(cached) " >&6
4214 case $ac_pt_PKG_CONFIG in
4216 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4223 test -z "$as_dir" && as_dir=.
4224 for ac_exec_ext in '' $ac_executable_extensions; do
4225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4226 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4227 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4237 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4238 if test -n "$ac_pt_PKG_CONFIG"; then
4239 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4240 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4242 { $as_echo "$as_me:$LINENO: result: no" >&5
4243 $as_echo "no" >&6; }
4246 if test "x$ac_pt_PKG_CONFIG" = x; then
4249 case $cross_compiling:$ac_tool_warned in
4251 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4252 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4253 ac_tool_warned=yes ;;
4255 PKG_CONFIG=$ac_pt_PKG_CONFIG
4258 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4262 if test -n "$PKG_CONFIG"; then
4263 _pkg_min_version=0.9.0
4264 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4265 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4266 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4267 { $as_echo "$as_me:$LINENO: result: yes" >&5
4268 $as_echo "yes" >&6; }
4270 { $as_echo "$as_me:$LINENO: result: no" >&5
4271 $as_echo "no" >&6; }
4278 { $as_echo "$as_me:$LINENO: checking for DBUS" >&5
4279 $as_echo_n "checking for DBUS... " >&6; }
4281 if test -n "$PKG_CONFIG"; then
4282 if test -n "$DBUS_CFLAGS"; then
4283 pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
4285 if test -n "$PKG_CONFIG" && \
4286 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-1\"") >&5
4287 ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
4289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); }; then
4291 pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
4299 if test -n "$PKG_CONFIG"; then
4300 if test -n "$DBUS_LIBS"; then
4301 pkg_cv_DBUS_LIBS="$DBUS_LIBS"
4303 if test -n "$PKG_CONFIG" && \
4304 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-1\"") >&5
4305 ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
4307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); }; then
4309 pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
4320 if test $pkg_failed = yes; then
4322 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4323 _pkg_short_errors_supported=yes
4325 _pkg_short_errors_supported=no
4327 if test $_pkg_short_errors_supported = yes; then
4328 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "dbus-1"`
4330 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1"`
4332 # Put the nasty error message in config.log where it belongs
4333 echo "$DBUS_PKG_ERRORS" >&5
4335 { { $as_echo "$as_me:$LINENO: error: Package requirements (dbus-1) were not met:
4339 Consider adjusting the PKG_CONFIG_PATH environment variable if you
4340 installed software in a non-standard prefix.
4342 Alternatively, you may set the environment variables DBUS_CFLAGS
4343 and DBUS_LIBS to avoid the need to call pkg-config.
4344 See the pkg-config man page for more details.
4346 $as_echo "$as_me: error: Package requirements (dbus-1) were not met:
4350 Consider adjusting the PKG_CONFIG_PATH environment variable if you
4351 installed software in a non-standard prefix.
4353 Alternatively, you may set the environment variables DBUS_CFLAGS
4354 and DBUS_LIBS to avoid the need to call pkg-config.
4355 See the pkg-config man page for more details.
4357 { (exit 1); exit 1; }; }
4358 elif test $pkg_failed = untried; then
4359 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4360 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4361 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
4362 is in your PATH or set the PKG_CONFIG environment variable to the full
4365 Alternatively, you may set the environment variables DBUS_CFLAGS
4366 and DBUS_LIBS to avoid the need to call pkg-config.
4367 See the pkg-config man page for more details.
4369 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
4370 See \`config.log' for more details." >&5
4371 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
4372 is in your PATH or set the PKG_CONFIG environment variable to the full
4375 Alternatively, you may set the environment variables DBUS_CFLAGS
4376 and DBUS_LIBS to avoid the need to call pkg-config.
4377 See the pkg-config man page for more details.
4379 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
4380 See \`config.log' for more details." >&2;}
4381 { (exit 1); exit 1; }; }; }
4383 DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
4384 DBUS_LIBS=$pkg_cv_DBUS_LIBS
4385 { $as_echo "$as_me:$LINENO: result: yes" >&5
4386 $as_echo "yes" >&6; }
4390 { $as_echo "$as_me:$LINENO: checking for genl_register in -lnl" >&5
4391 $as_echo_n "checking for genl_register in -lnl... " >&6; }
4392 if test "${ac_cv_lib_nl_genl_register+set}" = set; then
4393 $as_echo_n "(cached) " >&6
4395 ac_check_lib_save_LIBS=$LIBS
4397 cat >conftest.$ac_ext <<_ACEOF
4400 cat confdefs.h >>conftest.$ac_ext
4401 cat >>conftest.$ac_ext <<_ACEOF
4402 /* end confdefs.h. */
4404 /* Override any GCC internal prototype to avoid an error.
4405 Use char because int might match the return type of a GCC
4406 builtin and then its argument prototype would still apply. */
4410 char genl_register ();
4414 return genl_register ();
4419 rm -f conftest.$ac_objext conftest$ac_exeext
4420 if { (ac_try="$ac_link"
4422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4423 *) ac_try_echo=$ac_try;;
4425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4426 $as_echo "$ac_try_echo") >&5
4427 (eval "$ac_link") 2>conftest.er1
4429 grep -v '^ *+' conftest.er1 >conftest.err
4431 cat conftest.err >&5
4432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433 (exit $ac_status); } && {
4434 test -z "$ac_c_werror_flag" ||
4435 test ! -s conftest.err
4436 } && test -s conftest$ac_exeext && {
4437 test "$cross_compiling" = yes ||
4438 $as_test_x conftest$ac_exeext
4440 ac_cv_lib_nl_genl_register=yes
4442 $as_echo "$as_me: failed program was:" >&5
4443 sed 's/^/| /' conftest.$ac_ext >&5
4445 ac_cv_lib_nl_genl_register=no
4448 rm -rf conftest.dSYM
4449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4450 conftest$ac_exeext conftest.$ac_ext
4451 LIBS=$ac_check_lib_save_LIBS
4453 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nl_genl_register" >&5
4454 $as_echo "$ac_cv_lib_nl_genl_register" >&6; }
4455 if test "x$ac_cv_lib_nl_genl_register" = x""yes; then
4456 NETLINKLIBS="-lnl $DBUS_LIBS"
4459 if test -z "$NETLINKLIBS" -o -z "$DBUS_LIBS"; then
4460 if test "x$enable_netlink" = "xyes"; then
4461 { { $as_echo "$as_me:$LINENO: error: Required libraries for quota netlink daemon not found." >&5
4462 $as_echo "$as_me: error: Required libraries for quota netlink daemon not found." >&2;}
4463 { (exit 1); exit 1; }; }
4465 { $as_echo "$as_me:$LINENO: WARNING: Quota netlink daemon won't be compiled. Required libraries not found." >&5
4466 $as_echo "$as_me: WARNING: Quota netlink daemon won't be compiled. Required libraries not found." >&2;}
4471 CPPFLAGS="$DBUS_CFLAGS $CPPFLAGS"
4472 if test -z "$DBUS_LIBS"; then
4473 if test "x$enable_netlink" = "xyes"; then
4474 { { $as_echo "$as_me:$LINENO: error: Required headers for quota netlink daemon not found." >&5
4475 $as_echo "$as_me: error: Required headers for quota netlink daemon not found." >&2;}
4476 { (exit 1); exit 1; }; }
4478 { $as_echo "$as_me:$LINENO: WARNING: Quota netlink daemon won't be compiled. Required headers not found." >&5
4479 $as_echo "$as_me: WARNING: Quota netlink daemon won't be compiled. Required headers not found." >&2;}
4484 QUOTA_NETLINK_PROG=quota_nld
4491 { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
4492 $as_echo_n "checking for library containing gethostbyname... " >&6; }
4493 if test "${ac_cv_search_gethostbyname+set}" = set; then
4494 $as_echo_n "(cached) " >&6
4496 ac_func_search_save_LIBS=$LIBS
4497 cat >conftest.$ac_ext <<_ACEOF
4500 cat confdefs.h >>conftest.$ac_ext
4501 cat >>conftest.$ac_ext <<_ACEOF
4502 /* end confdefs.h. */
4504 /* Override any GCC internal prototype to avoid an error.
4505 Use char because int might match the return type of a GCC
4506 builtin and then its argument prototype would still apply. */
4510 char gethostbyname ();
4514 return gethostbyname ();
4519 for ac_lib in '' nsl; do
4520 if test -z "$ac_lib"; then
4521 ac_res="none required"
4524 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4526 rm -f conftest.$ac_objext conftest$ac_exeext
4527 if { (ac_try="$ac_link"
4529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4530 *) ac_try_echo=$ac_try;;
4532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4533 $as_echo "$ac_try_echo") >&5
4534 (eval "$ac_link") 2>conftest.er1
4536 grep -v '^ *+' conftest.er1 >conftest.err
4538 cat conftest.err >&5
4539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); } && {
4541 test -z "$ac_c_werror_flag" ||
4542 test ! -s conftest.err
4543 } && test -s conftest$ac_exeext && {
4544 test "$cross_compiling" = yes ||
4545 $as_test_x conftest$ac_exeext
4547 ac_cv_search_gethostbyname=$ac_res
4549 $as_echo "$as_me: failed program was:" >&5
4550 sed 's/^/| /' conftest.$ac_ext >&5
4555 rm -rf conftest.dSYM
4556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4558 if test "${ac_cv_search_gethostbyname+set}" = set; then
4562 if test "${ac_cv_search_gethostbyname+set}" = set; then
4565 ac_cv_search_gethostbyname=no
4568 LIBS=$ac_func_search_save_LIBS
4570 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
4571 $as_echo "$ac_cv_search_gethostbyname" >&6; }
4572 ac_res=$ac_cv_search_gethostbyname
4573 if test "$ac_res" != no; then
4574 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4578 { $as_echo "$as_me:$LINENO: checking for host_access in -lwrap" >&5
4579 $as_echo_n "checking for host_access in -lwrap... " >&6; }
4580 if test "${ac_cv_lib_wrap_main+set}" = set; then
4581 $as_echo_n "(cached) " >&6
4585 cat >conftest.$ac_ext <<_ACEOF
4588 cat confdefs.h >>conftest.$ac_ext
4589 cat >>conftest.$ac_ext <<_ACEOF
4590 /* end confdefs.h. */
4593 #include <sys/types.h>
4594 #include <sys/socket.h>
4595 #include <netinet/in.h>
4597 struct request_info request;
4598 int deny_severity, allow_severity;
4602 hosts_access(&request);
4607 rm -f conftest.$ac_objext conftest$ac_exeext
4608 if { (ac_try="$ac_link"
4610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4611 *) ac_try_echo=$ac_try;;
4613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4614 $as_echo "$ac_try_echo") >&5
4615 (eval "$ac_link") 2>conftest.er1
4617 grep -v '^ *+' conftest.er1 >conftest.err
4619 cat conftest.err >&5
4620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621 (exit $ac_status); } && {
4622 test -z "$ac_c_werror_flag" ||
4623 test ! -s conftest.err
4624 } && test -s conftest$ac_exeext && {
4625 test "$cross_compiling" = yes ||
4626 $as_test_x conftest$ac_exeext
4628 ac_cv_lib_wrap_main=yes; LIBS="$saved_LIBS"; { $as_echo "$as_me:$LINENO: result: yes" >&5
4629 $as_echo "yes" >&6; }
4631 $as_echo "$as_me: failed program was:" >&5
4632 sed 's/^/| /' conftest.$ac_ext >&5
4634 ac_cv_lib_wrap_main=no; LIBS="$saved_LIBS"; { $as_echo "$as_me:$LINENO: result: no" >&5
4635 $as_echo "no" >&6; }
4638 rm -rf conftest.dSYM
4639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4640 conftest$ac_exeext conftest.$ac_ext
4645 if test ${ac_cv_lib_wrap_main} = yes; then
4646 if test "${ac_cv_header_tcpd_h+set}" = set; then
4647 { $as_echo "$as_me:$LINENO: checking for tcpd.h" >&5
4648 $as_echo_n "checking for tcpd.h... " >&6; }
4649 if test "${ac_cv_header_tcpd_h+set}" = set; then
4650 $as_echo_n "(cached) " >&6
4652 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcpd_h" >&5
4653 $as_echo "$ac_cv_header_tcpd_h" >&6; }
4655 # Is the header compilable?
4656 { $as_echo "$as_me:$LINENO: checking tcpd.h usability" >&5
4657 $as_echo_n "checking tcpd.h usability... " >&6; }
4658 cat >conftest.$ac_ext <<_ACEOF
4661 cat confdefs.h >>conftest.$ac_ext
4662 cat >>conftest.$ac_ext <<_ACEOF
4663 /* end confdefs.h. */
4664 $ac_includes_default
4667 rm -f conftest.$ac_objext
4668 if { (ac_try="$ac_compile"
4670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4671 *) ac_try_echo=$ac_try;;
4673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4674 $as_echo "$ac_try_echo") >&5
4675 (eval "$ac_compile") 2>conftest.er1
4677 grep -v '^ *+' conftest.er1 >conftest.err
4679 cat conftest.err >&5
4680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); } && {
4682 test -z "$ac_c_werror_flag" ||
4683 test ! -s conftest.err
4684 } && test -s conftest.$ac_objext; then
4685 ac_header_compiler=yes
4687 $as_echo "$as_me: failed program was:" >&5
4688 sed 's/^/| /' conftest.$ac_ext >&5
4690 ac_header_compiler=no
4693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4694 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4695 $as_echo "$ac_header_compiler" >&6; }
4697 # Is the header present?
4698 { $as_echo "$as_me:$LINENO: checking tcpd.h presence" >&5
4699 $as_echo_n "checking tcpd.h presence... " >&6; }
4700 cat >conftest.$ac_ext <<_ACEOF
4703 cat confdefs.h >>conftest.$ac_ext
4704 cat >>conftest.$ac_ext <<_ACEOF
4705 /* end confdefs.h. */
4708 if { (ac_try="$ac_cpp conftest.$ac_ext"
4710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4711 *) ac_try_echo=$ac_try;;
4713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4714 $as_echo "$ac_try_echo") >&5
4715 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4717 grep -v '^ *+' conftest.er1 >conftest.err
4719 cat conftest.err >&5
4720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721 (exit $ac_status); } >/dev/null && {
4722 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4723 test ! -s conftest.err
4725 ac_header_preproc=yes
4727 $as_echo "$as_me: failed program was:" >&5
4728 sed 's/^/| /' conftest.$ac_ext >&5
4730 ac_header_preproc=no
4733 rm -f conftest.err conftest.$ac_ext
4734 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4735 $as_echo "$ac_header_preproc" >&6; }
4737 # So? What about this header?
4738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4740 { $as_echo "$as_me:$LINENO: WARNING: tcpd.h: accepted by the compiler, rejected by the preprocessor!" >&5
4741 $as_echo "$as_me: WARNING: tcpd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4742 { $as_echo "$as_me:$LINENO: WARNING: tcpd.h: proceeding with the compiler's result" >&5
4743 $as_echo "$as_me: WARNING: tcpd.h: proceeding with the compiler's result" >&2;}
4744 ac_header_preproc=yes
4747 { $as_echo "$as_me:$LINENO: WARNING: tcpd.h: present but cannot be compiled" >&5
4748 $as_echo "$as_me: WARNING: tcpd.h: present but cannot be compiled" >&2;}
4749 { $as_echo "$as_me:$LINENO: WARNING: tcpd.h: check for missing prerequisite headers?" >&5
4750 $as_echo "$as_me: WARNING: tcpd.h: check for missing prerequisite headers?" >&2;}
4751 { $as_echo "$as_me:$LINENO: WARNING: tcpd.h: see the Autoconf documentation" >&5
4752 $as_echo "$as_me: WARNING: tcpd.h: see the Autoconf documentation" >&2;}
4753 { $as_echo "$as_me:$LINENO: WARNING: tcpd.h: section \"Present But Cannot Be Compiled\"" >&5
4754 $as_echo "$as_me: WARNING: tcpd.h: section \"Present But Cannot Be Compiled\"" >&2;}
4755 { $as_echo "$as_me:$LINENO: WARNING: tcpd.h: proceeding with the preprocessor's result" >&5
4756 $as_echo "$as_me: WARNING: tcpd.h: proceeding with the preprocessor's result" >&2;}
4757 { $as_echo "$as_me:$LINENO: WARNING: tcpd.h: in the future, the compiler will take precedence" >&5
4758 $as_echo "$as_me: WARNING: tcpd.h: in the future, the compiler will take precedence" >&2;}
4762 { $as_echo "$as_me:$LINENO: checking for tcpd.h" >&5
4763 $as_echo_n "checking for tcpd.h... " >&6; }
4764 if test "${ac_cv_header_tcpd_h+set}" = set; then
4765 $as_echo_n "(cached) " >&6
4767 ac_cv_header_tcpd_h=$ac_header_preproc
4769 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcpd_h" >&5
4770 $as_echo "$ac_cv_header_tcpd_h" >&6; }
4773 if test "x$ac_cv_header_tcpd_h" = x""yes; then
4777 echo 'ERROR: could not find tcpd.h - missing TCP wrappers package'
4785 cat >>confdefs.h <<\_ACEOF
4786 #define HOSTS_ACCESS 1
4789 COMPILE_OPTS="$COMPILE_OPTS HOSTS_ACCESS"
4792 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4793 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4794 if test "${ac_cv_c_const+set}" = set; then
4795 $as_echo_n "(cached) " >&6
4797 cat >conftest.$ac_ext <<_ACEOF
4800 cat confdefs.h >>conftest.$ac_ext
4801 cat >>conftest.$ac_ext <<_ACEOF
4802 /* end confdefs.h. */
4807 /* FIXME: Include the comments suggested by Paul. */
4809 /* Ultrix mips cc rejects this. */
4810 typedef int charset[2];
4812 /* SunOS 4.1.1 cc rejects this. */
4813 char const *const *pcpcc;
4815 /* NEC SVR4.0.2 mips cc rejects this. */
4816 struct point {int x, y;};
4817 static struct point const zero = {0,0};
4818 /* AIX XL C 1.02.0.0 rejects this.
4819 It does not let you subtract one const X* pointer from another in
4820 an arm of an if-expression whose if-part is not a constant
4822 const char *g = "string";
4823 pcpcc = &g + (g ? g-g : 0);
4824 /* HPUX 7.0 cc rejects these. */
4826 ppc = (char**) pcpcc;
4827 pcpcc = (char const *const *) ppc;
4828 { /* SCO 3.2v4 cc rejects this. */
4830 char const *s = 0 ? (char *) 0 : (char const *) 0;
4835 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4837 const int *foo = &x[0];
4840 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4841 typedef const int *iptr;
4845 { /* AIX XL C 1.02.0.0 rejects this saying
4846 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4847 struct s { int j; const int *ap[3]; };
4848 struct s *b; b->j = 5;
4850 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4854 return !cs[0] && !zero.x;
4861 rm -f conftest.$ac_objext
4862 if { (ac_try="$ac_compile"
4864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4865 *) ac_try_echo=$ac_try;;
4867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4868 $as_echo "$ac_try_echo") >&5
4869 (eval "$ac_compile") 2>conftest.er1
4871 grep -v '^ *+' conftest.er1 >conftest.err
4873 cat conftest.err >&5
4874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); } && {
4876 test -z "$ac_c_werror_flag" ||
4877 test ! -s conftest.err
4878 } && test -s conftest.$ac_objext; then
4881 $as_echo "$as_me: failed program was:" >&5
4882 sed 's/^/| /' conftest.$ac_ext >&5
4887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4889 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4890 $as_echo "$ac_cv_c_const" >&6; }
4891 if test $ac_cv_c_const = no; then
4893 cat >>confdefs.h <<\_ACEOF
4899 { $as_echo "$as_me:$LINENO: checking for inline" >&5
4900 $as_echo_n "checking for inline... " >&6; }
4901 if test "${ac_cv_c_inline+set}" = set; then
4902 $as_echo_n "(cached) " >&6
4905 for ac_kw in inline __inline__ __inline; do
4906 cat >conftest.$ac_ext <<_ACEOF
4909 cat confdefs.h >>conftest.$ac_ext
4910 cat >>conftest.$ac_ext <<_ACEOF
4911 /* end confdefs.h. */
4914 static $ac_kw foo_t static_foo () {return 0; }
4915 $ac_kw foo_t foo () {return 0; }
4919 rm -f conftest.$ac_objext
4920 if { (ac_try="$ac_compile"
4922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4923 *) ac_try_echo=$ac_try;;
4925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4926 $as_echo "$ac_try_echo") >&5
4927 (eval "$ac_compile") 2>conftest.er1
4929 grep -v '^ *+' conftest.er1 >conftest.err
4931 cat conftest.err >&5
4932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); } && {
4934 test -z "$ac_c_werror_flag" ||
4935 test ! -s conftest.err
4936 } && test -s conftest.$ac_objext; then
4937 ac_cv_c_inline=$ac_kw
4939 $as_echo "$as_me: failed program was:" >&5
4940 sed 's/^/| /' conftest.$ac_ext >&5
4945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4946 test "$ac_cv_c_inline" != no && break
4950 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4951 $as_echo "$ac_cv_c_inline" >&6; }
4954 case $ac_cv_c_inline in
4957 case $ac_cv_c_inline in
4959 *) ac_val=$ac_cv_c_inline;;
4961 cat >>confdefs.h <<_ACEOF
4963 #define inline $ac_val
4970 # Check whether --enable-altformat was given.
4971 if test "${enable_altformat+set}" = set; then
4972 enableval=$enable_altformat;
4974 enable_altformat="yes"
4977 # Check whether --enable-rpc was given.
4978 if test "${enable_rpc+set}" = set; then
4979 enableval=$enable_rpc;
4984 # Check whether --enable-rpcsetquota was given.
4985 if test "${enable_rpcsetquota+set}" = set; then
4986 enableval=$enable_rpcsetquota;
4988 enable_rpcsetquota="no"
4991 # Check whether --enable-xfs_roothack was given.
4992 if test "${enable_xfs_roothack+set}" = set; then
4993 enableval=$enable_xfs_roothack;
4995 enable_xfs_roothack="no"
4998 # Check whether --enable-bsd_behaviour was given.
4999 if test "${enable_bsd_behaviour+set}" = set; then
5000 enableval=$enable_bsd_behaviour;
5002 enable_bsd_behaviour="yes"
5005 # Check whether --enable-libefence was given.
5006 if test "${enable_libefence+set}" = set; then
5007 enableval=$enable_libefence;
5009 enable_libefence="no"
5013 # Check whether --enable-nls was given.
5014 if test "${enable_nls+set}" = set; then
5015 enableval=$enable_nls;
5020 # Check whether --enable-rootsbin was given.
5021 if test "${enable_rootsbin+set}" = set; then
5022 enableval=$enable_rootsbin;
5024 enable_rootsbin="no"
5027 # Check whether --enable-proc-mounts was given.
5028 if test "${enable_proc_mounts+set}" = set; then
5029 enableval=$enable_proc_mounts;
5031 enable_proc_mounts="/proc/mounts"
5035 if test "$enable_altformat" = "yes" ; then
5037 cat >>confdefs.h <<\_ACEOF
5038 #define ALT_FORMAT 1
5041 COMPILE_OPTS="$COMPILE_OPTS ALT_FORMAT"
5043 if test "$enable_rpc" = "yes" ; then
5045 cat >>confdefs.h <<\_ACEOF
5049 COMPILE_OPTS="$COMPILE_OPTS RPC"
5051 if test "$enable_rpcsetquota" = "yes" ; then
5053 cat >>confdefs.h <<\_ACEOF
5054 #define RPC_SETQUOTA 1
5057 COMPILE_OPTS="$COMPILE_OPTS RPC_SETQUOTA"
5059 if test "$enable_xfs_roothack" = "yes" ; then
5061 cat >>confdefs.h <<\_ACEOF
5062 #define XFS_ROOTHACK 1
5065 COMPILE_OPTS="$COMPILE_OPTS XFS_ROOTHACK"
5067 if test "$enable_bsd_behaviour" = "yes" ; then
5069 cat >>confdefs.h <<\_ACEOF
5070 #define BSD_BEHAVIOUR 1
5073 COMPILE_OPTS="$COMPILE_OPTS BSD_BEHAVIOUR"
5075 if test "$enable_libefence" = "yes" ; then
5076 LIBMALLOC="/usr/lib/libefence.a"
5078 if test "$enable_nls" = "yes" ; then
5080 cat >>confdefs.h <<\_ACEOF
5081 #define USE_GETTEXT 1
5086 if test "$enable_proc_mounts" != "no"; then
5088 cat >>confdefs.h <<_ACEOF
5089 #define ALT_MTAB "$enable_proc_mounts"
5093 if test "$enable_rootsbin" = "yes" ; then
5096 ROOTSBIN='$(prefix)/sbin'
5100 cat >>confdefs.h <<_ACEOF
5101 #define COMPILE_OPTS "$COMPILE_OPTS"
5105 cat >>confdefs.h <<\_ACEOF
5106 #define PACKAGE_VERSION "4.00-pre1"
5115 ac_config_files="$ac_config_files Makefile"
5117 cat >confcache <<\_ACEOF
5118 # This file is a shell script that caches the results of configure
5119 # tests run on this system so they can be shared between configure
5120 # scripts and configure runs, see configure's option --config-cache.
5121 # It is not useful on other systems. If it contains results you don't
5122 # want to keep, you may remove or edit it.
5124 # config.status only pays attention to the cache file if you give it
5125 # the --recheck option to rerun configure.
5127 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5128 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5133 # The following way of writing the cache mishandles newlines in values,
5134 # but we know of no workaround that is simple, portable, and efficient.
5135 # So, we kill variables containing newlines.
5136 # Ultrix sh set writes to stderr and can't be redirected directly,
5137 # and sets the high bit in the cache file unless we assign to the vars.
5139 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5140 eval ac_val=\$$ac_var
5144 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
5145 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5148 _ | IFS | as_nl) ;; #(
5149 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5150 *) $as_unset $ac_var ;;
5156 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5157 *${as_nl}ac_space=\ *)
5158 # `set' does not quote correctly, so add quotes (double-quote
5159 # substitution turns \\\\ into \\, and sed turns \\ into \).
5162 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5165 # `set' quotes correctly as required by POSIX, so do not add quotes.
5166 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5175 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5177 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5179 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5180 if test -w "$cache_file"; then
5181 test "x$cache_file" != "x/dev/null" &&
5182 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
5183 $as_echo "$as_me: updating cache $cache_file" >&6;}
5184 cat confcache >$cache_file
5186 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
5187 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5192 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5193 # Let make expand exec_prefix.
5194 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5196 DEFS=-DHAVE_CONFIG_H
5200 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5201 # 1. Remove the extension, and $U if already installed.
5202 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5203 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5204 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5205 # will be set to the directory where LIBOBJS objects are built.
5206 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5207 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
5211 LTLIBOBJS=$ac_ltlibobjs
5215 : ${CONFIG_STATUS=./config.status}
5217 ac_clean_files_save=$ac_clean_files
5218 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5219 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5220 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5221 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5223 # Generated by $as_me.
5224 # Run this file to recreate the current configuration.
5225 # Compiler output produced by configure, useful for debugging
5226 # configure, is in config.log if it exists.
5231 SHELL=\${CONFIG_SHELL-$SHELL}
5234 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5235 ## --------------------- ##
5236 ## M4sh Initialization. ##
5237 ## --------------------- ##
5239 # Be more Bourne compatible
5240 DUALCASE=1; export DUALCASE # for MKS sh
5241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5244 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5245 # is contrary to our usage. Disable this feature.
5246 alias -g '${1+"$@"}'='"$@"'
5247 setopt NO_GLOB_SUBST
5249 case `(set -o) 2>/dev/null` in
5250 *posix*) set -o posix ;;
5259 # Avoid depending upon Character Ranges.
5260 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5261 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5262 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5263 as_cr_digits='0123456789'
5264 as_cr_alnum=$as_cr_Letters$as_cr_digits
5269 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5270 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5271 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5272 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5273 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5274 as_echo='printf %s\n'
5275 as_echo_n='printf %s'
5277 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5278 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5279 as_echo_n='/usr/ucb/echo -n'
5281 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5282 as_echo_n_body='eval
5286 expr "X$arg" : "X\\(.*\\)$as_nl";
5287 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5289 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5291 export as_echo_n_body
5292 as_echo_n='sh -c $as_echo_n_body as_echo'
5295 as_echo='sh -c $as_echo_body as_echo'
5298 # The user is always right.
5299 if test "${PATH_SEPARATOR+set}" != set; then
5301 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5302 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5307 # Support unset when possible.
5308 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5316 # We need space, tab and new line, in precisely that order. Quoting is
5317 # there to prevent editors from complaining about space-tab.
5318 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5319 # splitting by setting IFS to empty value.)
5322 # Find who we are. Look in the path if we contain no directory separator.
5324 *[\\/]* ) as_myself=$0 ;;
5325 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5329 test -z "$as_dir" && as_dir=.
5330 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5336 # We did not find ourselves, most probably we were run as `sh COMMAND'
5337 # in which case we are not to be found in the path.
5338 if test "x$as_myself" = x; then
5341 if test ! -f "$as_myself"; then
5342 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5343 { (exit 1); exit 1; }
5346 # Work around bugs in pre-3.0 UWIN ksh.
5347 for as_var in ENV MAIL MAILPATH
5348 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5360 # Required to use basename.
5361 if expr a : '\(a\)' >/dev/null 2>&1 &&
5362 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5368 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5369 as_basename=basename
5375 # Name of the executable.
5376 as_me=`$as_basename -- "$0" ||
5377 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5378 X"$0" : 'X\(//\)$' \| \
5379 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5381 sed '/^.*\/\([^/][^/]*\)\/*$/{
5402 test "x$as_lineno_1" != "x$as_lineno_2" &&
5403 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
5405 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5406 # uniformly replaced by the line number. The first 'sed' inserts a
5407 # line-number line after each line using $LINENO; the second 'sed'
5408 # does the real work. The second script uses 'N' to pair each
5409 # line-number line with the line containing $LINENO, and appends
5410 # trailing '-' during substitution so that $LINENO is not a special
5412 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5413 # scripts with optimization help from Paolo Bonzini. Blame Lee
5414 # E. McMahon (1931-1989) for sed's syntax. :-)
5426 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
5430 chmod +x "$as_me.lineno" ||
5431 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
5432 { (exit 1); exit 1; }; }
5434 # Don't try to exec as it changes $[0], causing all sort of problems
5435 # (the dirname of $[0] is not the place where we might find the
5436 # original and so on. Autoconf is especially sensitive to this).
5438 # Exit status is that of the last command.
5443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5449 ECHO_C= ECHO_N= ECHO_T=
5452 case `echo 'x\c'` in
5453 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5459 if expr a : '\(a\)' >/dev/null 2>&1 &&
5460 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5466 rm -f conf$$ conf$$.exe conf$$.file
5467 if test -d conf$$.dir; then
5468 rm -f conf$$.dir/conf$$.file
5471 mkdir conf$$.dir 2>/dev/null
5473 if (echo >conf$$.file) 2>/dev/null; then
5474 if ln -s conf$$.file conf$$ 2>/dev/null; then
5476 # ... but there are two gotchas:
5477 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5478 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5479 # In both cases, we have to default to `cp -p'.
5480 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5482 elif ln conf$$.file conf$$ 2>/dev/null; then
5490 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5491 rmdir conf$$.dir 2>/dev/null
5493 if mkdir -p . 2>/dev/null; then
5496 test -d ./-p && rmdir ./-p
5500 if test -x / >/dev/null 2>&1; then
5503 if ls -dL / >/dev/null 2>&1; then
5510 if test -d "$1"; then
5516 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
5517 ???[sx]*):;;*)false;;esac;fi
5521 as_executable_p=$as_test_x
5523 # Sed expression to map a string onto a valid CPP name.
5524 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5526 # Sed expression to map a string onto a valid variable name.
5527 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5532 # Save the log message, to keep $[0] and so on meaningful, and to
5533 # report actual input values of CONFIG_FILES etc. instead of their
5534 # values after options handling.
5536 This file was extended by $as_me, which was
5537 generated by GNU Autoconf 2.63. Invocation command line was
5539 CONFIG_FILES = $CONFIG_FILES
5540 CONFIG_HEADERS = $CONFIG_HEADERS
5541 CONFIG_LINKS = $CONFIG_LINKS
5542 CONFIG_COMMANDS = $CONFIG_COMMANDS
5545 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5550 case $ac_config_files in *"
5551 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5554 case $ac_config_headers in *"
5555 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5559 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5560 # Files that config.status was made for.
5561 config_files="$ac_config_files"
5562 config_headers="$ac_config_headers"
5566 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5568 \`$as_me' instantiates files from templates according to the
5569 current configuration.
5571 Usage: $0 [OPTION]... [FILE]...
5573 -h, --help print this help, then exit
5574 -V, --version print version number and configuration settings, then exit
5575 -q, --quiet, --silent
5576 do not print progress messages
5577 -d, --debug don't remove temporary files
5578 --recheck update $as_me by reconfiguring in the same conditions
5579 --file=FILE[:TEMPLATE]
5580 instantiate the configuration file FILE
5581 --header=FILE[:TEMPLATE]
5582 instantiate the configuration header FILE
5584 Configuration files:
5587 Configuration headers:
5590 Report bugs to <bug-autoconf@gnu.org>."
5593 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5596 configured by $0, generated by GNU Autoconf 2.63,
5597 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
5599 Copyright (C) 2008 Free Software Foundation, Inc.
5600 This config.status script is free software; the Free Software Foundation
5601 gives unlimited permission to copy, distribute and modify it."
5606 test -n "\$AWK" || AWK=awk
5609 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5610 # The default lists apply if the user does not specify any file.
5616 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5617 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5628 # Handling of the options.
5629 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5631 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5632 $as_echo "$ac_cs_version"; exit ;;
5633 --debug | --debu | --deb | --de | --d | -d )
5635 --file | --fil | --fi | --f )
5638 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5640 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
5641 ac_need_defaults=false;;
5642 --header | --heade | --head | --hea )
5645 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5647 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
5648 ac_need_defaults=false;;
5650 # Conflict between --help and --header
5651 { $as_echo "$as_me: error: ambiguous option: $1
5652 Try \`$0 --help' for more information." >&2
5653 { (exit 1); exit 1; }; };;
5654 --help | --hel | -h )
5655 $as_echo "$ac_cs_usage"; exit ;;
5656 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5657 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5661 -*) { $as_echo "$as_me: error: unrecognized option: $1
5662 Try \`$0 --help' for more information." >&2
5663 { (exit 1); exit 1; }; } ;;
5665 *) ac_config_targets="$ac_config_targets $1"
5666 ac_need_defaults=false ;;
5672 ac_configure_extra_args=
5674 if $ac_cs_silent; then
5676 ac_configure_extra_args="$ac_configure_extra_args --silent"
5680 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5681 if \$ac_cs_recheck; then
5682 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5684 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5685 CONFIG_SHELL='$SHELL'
5691 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5695 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5696 ## Running $as_me. ##
5702 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5705 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5707 # Handling of arguments.
5708 for ac_config_target in $ac_config_targets
5710 case $ac_config_target in
5711 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5712 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5714 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5715 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5716 { (exit 1); exit 1; }; };;
5721 # If the user did not use the arguments to specify the items to instantiate,
5722 # then the envvar interface is used. Set only those that are not.
5723 # We use the long form for the default assignment because of an extremely
5724 # bizarre bug on SunOS 4.1.3.
5725 if $ac_need_defaults; then
5726 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5727 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5730 # Have a temporary directory for convenience. Make it in the build tree
5731 # simply because there is no reason against having it here, and in addition,
5732 # creating and moving files from /tmp can sometimes cause problems.
5733 # Hook for its removal unless debugging.
5734 # Note that there is a small window in which the directory will not be cleaned:
5735 # after its creation but before its name has been assigned to `$tmp'.
5739 trap 'exit_status=$?
5740 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5742 trap '{ (exit 1); exit 1; }' 1 2 13 15
5744 # Create a (secure) tmp directory for tmp files.
5747 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5748 test -n "$tmp" && test -d "$tmp"
5751 tmp=./conf$$-$RANDOM
5752 (umask 077 && mkdir "$tmp")
5755 $as_echo "$as_me: cannot create a temporary directory in ." >&2
5756 { (exit 1); exit 1; }
5759 # Set up the scripts for CONFIG_FILES section.
5760 # No need to generate them if there are no CONFIG_FILES.
5761 # This happens for instance with `./config.status config.h'.
5762 if test -n "$CONFIG_FILES"; then
5766 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5767 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5773 echo 'BEGIN {' >"$tmp/subs1.awk" &&
5778 echo "cat >conf$$subs.awk <<_ACEOF" &&
5779 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5782 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
5783 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
5784 { (exit 1); exit 1; }; }
5785 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
5787 for ac_last_try in false false false false false :; do
5788 . ./conf$$subs.sh ||
5789 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
5790 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
5791 { (exit 1); exit 1; }; }
5793 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5794 if test $ac_delim_n = $ac_delim_num; then
5796 elif $ac_last_try; then
5797 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
5798 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
5799 { (exit 1); exit 1; }; }
5801 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5806 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5807 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
5811 s/^/S["/; s/!.*/"]=/
5821 s/\(.\{148\}\).*/\1/
5823 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5828 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5835 s/\(.\{148\}\).*/\1/
5837 s/["\\]/\\&/g; s/^/"/; s/$/"/
5841 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5846 ' <conf$$subs.awk | sed '
5851 ' >>$CONFIG_STATUS || ac_write_fail=1
5852 rm -f conf$$subs.awk
5853 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5855 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
5856 for (key in S) S_is_set[key] = 1
5862 nfields = split(line, field, "@")
5864 len = length(field[1])
5865 for (i = 2; i < nfields; i++) {
5867 keylen = length(key)
5868 if (S_is_set[key]) {
5870 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5871 len += length(value) + length(field[++i])
5882 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5883 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5884 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5887 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
5888 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
5889 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
5890 { (exit 1); exit 1; }; }
5893 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5894 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5895 # trailing colons and then remove the whole line if VPATH becomes empty
5896 # (actually we leave an empty line to preserve line numbers).
5897 if test "x$srcdir" = x.; then
5898 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5902 s/^\([^=]*=[ ]*\):*/\1/
5908 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5909 fi # test -n "$CONFIG_FILES"
5911 # Set up the scripts for CONFIG_HEADERS section.
5912 # No need to generate them if there are no CONFIG_HEADERS.
5913 # This happens for instance with `./config.status Makefile'.
5914 if test -n "$CONFIG_HEADERS"; then
5915 cat >"$tmp/defines.awk" <<\_ACAWK ||
5919 # Transform confdefs.h into an awk script `defines.awk', embedded as
5920 # here-document in config.status, that substitutes the proper values into
5921 # config.h.in to produce config.h.
5923 # Create a delimiter string that does not exist in confdefs.h, to ease
5924 # handling of long lines.
5926 for ac_last_try in false false :; do
5927 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
5928 if test -z "$ac_t"; then
5930 elif $ac_last_try; then
5931 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
5932 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
5933 { (exit 1); exit 1; }; }
5935 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5939 # For the awk script, D is an array of macro values keyed by name,
5940 # likewise P contains macro parameters if any. Preserve backslash
5941 # newline sequences.
5943 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5945 s/.\{148\}/&'"$ac_delim"'/g
5948 s/^[ ]*#[ ]*define[ ][ ]*/ /
5955 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5957 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5961 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5962 D["\1"]=" \3\\\\\\n"\\/p
5964 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5969 s/.\{148\}/&'"$ac_delim"'/g
5974 s/["\\]/\\&/g; s/^/"/; s/$/"/p
5977 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5979 ' <confdefs.h | sed '
5980 s/'"$ac_delim"'/"\\\
5981 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5983 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5984 for (key in D) D_is_set[key] = 1
5987 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5989 split(line, arg, " ")
5990 if (arg[1] == "#") {
5994 defundef = substr(arg[1], 2)
5997 split(mac1, mac2, "(") #)
5999 prefix = substr(line, 1, index(line, defundef) - 1)
6000 if (D_is_set[macro]) {
6001 # Preserve the white space surrounding the "#".
6002 print prefix "define", macro P[macro] D[macro]
6005 # Replace #undef with comments. This is necessary, for example,
6006 # in the case of _POSIX_SOURCE, which is predefined and required
6007 # on some systems where configure will not decide to define it.
6008 if (defundef == "undef") {
6009 print "/*", prefix defundef, macro, "*/"
6017 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6018 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
6019 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
6020 { (exit 1); exit 1; }; }
6021 fi # test -n "$CONFIG_HEADERS"
6024 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
6029 :[FHLC]) ac_mode=$ac_tag; continue;;
6031 case $ac_mode$ac_tag in
6033 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
6034 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
6035 { (exit 1); exit 1; }; };;
6036 :[FH]-) ac_tag=-:-;;
6037 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6054 -) ac_f="$tmp/stdin";;
6055 *) # Look for the file first in the build tree, then in the source tree
6056 # (if the path is not absolute). The absolute path cannot be DOS-style,
6057 # because $ac_f cannot contain `:'.
6061 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6063 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
6064 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
6065 { (exit 1); exit 1; }; };;
6067 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6068 ac_file_inputs="$ac_file_inputs '$ac_f'"
6071 # Let's still pretend it is `configure' which instantiates (i.e., don't
6072 # use $as_me), people would be surprised to read:
6073 # /* config.h. Generated by config.status. */
6074 configure_input='Generated from '`
6075 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6077 if test x"$ac_file" != x-; then
6078 configure_input="$ac_file. $configure_input"
6079 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
6080 $as_echo "$as_me: creating $ac_file" >&6;}
6082 # Neutralize special characters interpreted by sed in replacement strings.
6083 case $configure_input in #(
6084 *\&* | *\|* | *\\* )
6085 ac_sed_conf_input=`$as_echo "$configure_input" |
6086 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6087 *) ac_sed_conf_input=$configure_input;;
6091 *:-:* | *:-) cat >"$tmp/stdin" \
6092 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6093 $as_echo "$as_me: error: could not create $ac_file" >&2;}
6094 { (exit 1); exit 1; }; } ;;
6099 ac_dir=`$as_dirname -- "$ac_file" ||
6100 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6101 X"$ac_file" : 'X\(//\)[^/]' \| \
6102 X"$ac_file" : 'X\(//\)$' \| \
6103 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6104 $as_echo X"$ac_file" |
6105 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6124 -*) as_dir=./$as_dir;;
6126 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
6130 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6131 *) as_qdir=$as_dir;;
6133 as_dirs="'$as_qdir' $as_dirs"
6134 as_dir=`$as_dirname -- "$as_dir" ||
6135 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6136 X"$as_dir" : 'X\(//\)[^/]' \| \
6137 X"$as_dir" : 'X\(//\)$' \| \
6138 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6139 $as_echo X"$as_dir" |
6140 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6157 test -d "$as_dir" && break
6159 test -z "$as_dirs" || eval "mkdir $as_dirs"
6160 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
6161 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
6162 { (exit 1); exit 1; }; }; }
6166 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6168 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6169 # A ".." for each directory in $ac_dir_suffix.
6170 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6171 case $ac_top_builddir_sub in
6172 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6173 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6176 ac_abs_top_builddir=$ac_pwd
6177 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6178 # for backward compatibility:
6179 ac_top_builddir=$ac_top_build_prefix
6182 .) # We are building in place.
6184 ac_top_srcdir=$ac_top_builddir_sub
6185 ac_abs_top_srcdir=$ac_pwd ;;
6186 [\\/]* | ?:[\\/]* ) # Absolute name.
6187 ac_srcdir=$srcdir$ac_dir_suffix;
6188 ac_top_srcdir=$srcdir
6189 ac_abs_top_srcdir=$srcdir ;;
6191 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6192 ac_top_srcdir=$ac_top_build_prefix$srcdir
6193 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6195 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6205 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6206 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6210 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6211 # If the template does not know about datarootdir, expand it.
6212 # FIXME: This hack should be removed a few years after 2.60.
6213 ac_datarootdir_hack=; ac_datarootdir_seen=
6226 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6227 *datarootdir*) ac_datarootdir_seen=yes;;
6228 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6229 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6230 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6232 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6233 ac_datarootdir_hack='
6234 s&@datadir@&$datadir&g
6235 s&@docdir@&$docdir&g
6236 s&@infodir@&$infodir&g
6237 s&@localedir@&$localedir&g
6238 s&@mandir@&$mandir&g
6239 s&\\\${datarootdir}&$datarootdir&g' ;;
6243 # Neutralize VPATH when `$srcdir' = `.'.
6244 # Shell code in configure.ac might set extrasub.
6245 # FIXME: do we really want to maintain this feature?
6246 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6247 ac_sed_extra="$ac_vpsub
6250 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6252 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6253 s|@configure_input@|$ac_sed_conf_input|;t t
6254 s&@top_builddir@&$ac_top_builddir_sub&;t t
6255 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6256 s&@srcdir@&$ac_srcdir&;t t
6257 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6258 s&@top_srcdir@&$ac_top_srcdir&;t t
6259 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6260 s&@builddir@&$ac_builddir&;t t
6261 s&@abs_builddir@&$ac_abs_builddir&;t t
6262 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6263 s&@INSTALL@&$ac_INSTALL&;t t
6264 $ac_datarootdir_hack
6266 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
6267 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6268 $as_echo "$as_me: error: could not create $ac_file" >&2;}
6269 { (exit 1); exit 1; }; }
6271 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6272 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6273 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6274 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6275 which seems to be undefined. Please make sure it is defined." >&5
6276 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6277 which seems to be undefined. Please make sure it is defined." >&2;}
6281 -) cat "$tmp/out" && rm -f "$tmp/out";;
6282 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
6284 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6285 $as_echo "$as_me: error: could not create $ac_file" >&2;}
6286 { (exit 1); exit 1; }; }
6292 if test x"$ac_file" != x-; then
6294 $as_echo "/* $configure_input */" \
6295 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
6296 } >"$tmp/config.h" \
6297 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6298 $as_echo "$as_me: error: could not create $ac_file" >&2;}
6299 { (exit 1); exit 1; }; }
6300 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
6301 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6302 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6305 mv "$tmp/config.h" "$ac_file" \
6306 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6307 $as_echo "$as_me: error: could not create $ac_file" >&2;}
6308 { (exit 1); exit 1; }; }
6311 $as_echo "/* $configure_input */" \
6312 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
6313 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
6314 $as_echo "$as_me: error: could not create -" >&2;}
6315 { (exit 1); exit 1; }; }
6325 { (exit 0); exit 0; }
6327 chmod +x $CONFIG_STATUS
6328 ac_clean_files=$ac_clean_files_save
6330 test $ac_write_fail = 0 ||
6331 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
6332 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
6333 { (exit 1); exit 1; }; }
6336 # configure is writing to config.log, and then calls config.status.
6337 # config.status does its own redirection, appending to config.log.
6338 # Unfortunately, on DOS this fails, as config.log is still kept open
6339 # by configure, so config.status won't be able to write to it; its
6340 # output is simply discarded. So we exec the FD to /dev/null,
6341 # effectively closing config.log, so it can be properly (re)opened and
6342 # appended to by config.status. When coming back to configure, we
6343 # need to make the FD available again.
6344 if test "$no_create" != yes; then
6346 ac_config_status_args=
6347 test "$silent" = yes &&
6348 ac_config_status_args="$ac_config_status_args --quiet"
6350 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6352 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6353 # would make configure fail if this is the last instruction.
6354 $ac_cs_success || { (exit 1); exit 1; }
6356 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6357 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6358 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}