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="export_vars.sh.in"
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
644 APRUTIL_PRIV_INCLUDES
666 apu_has_ldap_starttls
667 apu_has_ldap_netscape_ssl
684 APRUTIL_MAJOR_VERSION
685 APRUTIL_DOTTED_VERSION
729 program_transform_name
741 enable_option_checking
754 ac_precious_vars='build_alias
765 # Initialize some variables set by options.
767 ac_init_version=false
768 ac_unrecognized_opts=
770 # The variables have the same names as the options, with
771 # dashes changed to underlines.
779 program_transform_name=s,x,x,
787 # Installation directory options.
788 # These are left unexpanded so users can "make install exec_prefix=/foo"
789 # and all the variables that are supposed to be based on exec_prefix
790 # by default will actually change.
791 # Use braces instead of parens because sh, perl, etc. also accept them.
792 # (The list follows the same order as the GNU Coding Standards.)
793 bindir='${exec_prefix}/bin'
794 sbindir='${exec_prefix}/sbin'
795 libexecdir='${exec_prefix}/libexec'
796 datarootdir='${prefix}/share'
797 datadir='${datarootdir}'
798 sysconfdir='${prefix}/etc'
799 sharedstatedir='${prefix}/com'
800 localstatedir='${prefix}/var'
801 includedir='${prefix}/include'
802 oldincludedir='/usr/include'
803 docdir='${datarootdir}/doc/${PACKAGE}'
804 infodir='${datarootdir}/info'
809 libdir='${exec_prefix}/lib'
810 localedir='${datarootdir}/locale'
811 mandir='${datarootdir}/man'
817 # If the previous option needs an argument, assign it.
818 if test -n "$ac_prev"; then
819 eval $ac_prev=\$ac_option
825 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
829 # Accept the important Cygnus configure options, so we can diagnose typos.
831 case $ac_dashdash$ac_option in
835 -bindir | --bindir | --bindi | --bind | --bin | --bi)
837 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
840 -build | --build | --buil | --bui | --bu)
841 ac_prev=build_alias ;;
842 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
843 build_alias=$ac_optarg ;;
845 -cache-file | --cache-file | --cache-fil | --cache-fi \
846 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
847 ac_prev=cache_file ;;
848 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
849 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
850 cache_file=$ac_optarg ;;
853 cache_file=config.cache ;;
855 -datadir | --datadir | --datadi | --datad)
857 -datadir=* | --datadir=* | --datadi=* | --datad=*)
858 datadir=$ac_optarg ;;
860 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
861 | --dataroo | --dataro | --datar)
862 ac_prev=datarootdir ;;
863 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
864 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
865 datarootdir=$ac_optarg ;;
867 -disable-* | --disable-*)
868 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
869 # Reject names that are not valid shell variable names.
870 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
871 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
872 { (exit 1); exit 1; }; }
873 ac_useropt_orig=$ac_useropt
874 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
875 case $ac_user_opts in
879 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
880 ac_unrecognized_sep=', ';;
882 eval enable_$ac_useropt=no ;;
884 -docdir | --docdir | --docdi | --doc | --do)
886 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
889 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
891 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
894 -enable-* | --enable-*)
895 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
896 # Reject names that are not valid shell variable names.
897 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
898 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
899 { (exit 1); exit 1; }; }
900 ac_useropt_orig=$ac_useropt
901 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
902 case $ac_user_opts in
906 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
907 ac_unrecognized_sep=', ';;
909 eval enable_$ac_useropt=\$ac_optarg ;;
911 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
912 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
913 | --exec | --exe | --ex)
914 ac_prev=exec_prefix ;;
915 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
916 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
917 | --exec=* | --exe=* | --ex=*)
918 exec_prefix=$ac_optarg ;;
920 -gas | --gas | --ga | --g)
921 # Obsolete; use --with-gas.
924 -help | --help | --hel | --he | -h)
926 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
927 ac_init_help=recursive ;;
928 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
929 ac_init_help=short ;;
931 -host | --host | --hos | --ho)
932 ac_prev=host_alias ;;
933 -host=* | --host=* | --hos=* | --ho=*)
934 host_alias=$ac_optarg ;;
936 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
938 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
940 htmldir=$ac_optarg ;;
942 -includedir | --includedir | --includedi | --included | --include \
943 | --includ | --inclu | --incl | --inc)
944 ac_prev=includedir ;;
945 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
946 | --includ=* | --inclu=* | --incl=* | --inc=*)
947 includedir=$ac_optarg ;;
949 -infodir | --infodir | --infodi | --infod | --info | --inf)
951 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
952 infodir=$ac_optarg ;;
954 -libdir | --libdir | --libdi | --libd)
956 -libdir=* | --libdir=* | --libdi=* | --libd=*)
959 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
960 | --libexe | --libex | --libe)
961 ac_prev=libexecdir ;;
962 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
963 | --libexe=* | --libex=* | --libe=*)
964 libexecdir=$ac_optarg ;;
966 -localedir | --localedir | --localedi | --localed | --locale)
968 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
969 localedir=$ac_optarg ;;
971 -localstatedir | --localstatedir | --localstatedi | --localstated \
972 | --localstate | --localstat | --localsta | --localst | --locals)
973 ac_prev=localstatedir ;;
974 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
975 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
976 localstatedir=$ac_optarg ;;
978 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
980 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
984 # Obsolete; use --without-fp.
987 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
988 | --no-cr | --no-c | -n)
991 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
992 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
995 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
996 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
997 | --oldin | --oldi | --old | --ol | --o)
998 ac_prev=oldincludedir ;;
999 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1000 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1001 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1002 oldincludedir=$ac_optarg ;;
1004 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1006 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1007 prefix=$ac_optarg ;;
1009 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1010 | --program-pre | --program-pr | --program-p)
1011 ac_prev=program_prefix ;;
1012 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1013 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1014 program_prefix=$ac_optarg ;;
1016 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1017 | --program-suf | --program-su | --program-s)
1018 ac_prev=program_suffix ;;
1019 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1020 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1021 program_suffix=$ac_optarg ;;
1023 -program-transform-name | --program-transform-name \
1024 | --program-transform-nam | --program-transform-na \
1025 | --program-transform-n | --program-transform- \
1026 | --program-transform | --program-transfor \
1027 | --program-transfo | --program-transf \
1028 | --program-trans | --program-tran \
1029 | --progr-tra | --program-tr | --program-t)
1030 ac_prev=program_transform_name ;;
1031 -program-transform-name=* | --program-transform-name=* \
1032 | --program-transform-nam=* | --program-transform-na=* \
1033 | --program-transform-n=* | --program-transform-=* \
1034 | --program-transform=* | --program-transfor=* \
1035 | --program-transfo=* | --program-transf=* \
1036 | --program-trans=* | --program-tran=* \
1037 | --progr-tra=* | --program-tr=* | --program-t=*)
1038 program_transform_name=$ac_optarg ;;
1040 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1042 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1043 pdfdir=$ac_optarg ;;
1045 -psdir | --psdir | --psdi | --psd | --ps)
1047 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1050 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1051 | -silent | --silent | --silen | --sile | --sil)
1054 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1056 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1058 sbindir=$ac_optarg ;;
1060 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1061 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1062 | --sharedst | --shareds | --shared | --share | --shar \
1064 ac_prev=sharedstatedir ;;
1065 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1066 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1067 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1069 sharedstatedir=$ac_optarg ;;
1071 -site | --site | --sit)
1073 -site=* | --site=* | --sit=*)
1076 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1078 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1079 srcdir=$ac_optarg ;;
1081 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1082 | --syscon | --sysco | --sysc | --sys | --sy)
1083 ac_prev=sysconfdir ;;
1084 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1085 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1086 sysconfdir=$ac_optarg ;;
1088 -target | --target | --targe | --targ | --tar | --ta | --t)
1089 ac_prev=target_alias ;;
1090 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1091 target_alias=$ac_optarg ;;
1093 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1096 -version | --version | --versio | --versi | --vers | -V)
1097 ac_init_version=: ;;
1100 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1101 # Reject names that are not valid shell variable names.
1102 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1103 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1104 { (exit 1); exit 1; }; }
1105 ac_useropt_orig=$ac_useropt
1106 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1107 case $ac_user_opts in
1111 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1112 ac_unrecognized_sep=', ';;
1114 eval with_$ac_useropt=\$ac_optarg ;;
1116 -without-* | --without-*)
1117 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1118 # Reject names that are not valid shell variable names.
1119 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1120 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1121 { (exit 1); exit 1; }; }
1122 ac_useropt_orig=$ac_useropt
1123 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1124 case $ac_user_opts in
1128 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1129 ac_unrecognized_sep=', ';;
1131 eval with_$ac_useropt=no ;;
1134 # Obsolete; use --with-x.
1137 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1138 | --x-incl | --x-inc | --x-in | --x-i)
1139 ac_prev=x_includes ;;
1140 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1141 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1142 x_includes=$ac_optarg ;;
1144 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1145 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1146 ac_prev=x_libraries ;;
1147 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1148 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1149 x_libraries=$ac_optarg ;;
1151 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1152 Try \`$0 --help' for more information." >&2
1153 { (exit 1); exit 1; }; }
1157 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1158 # Reject names that are not valid shell variable names.
1159 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1160 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1161 { (exit 1); exit 1; }; }
1162 eval $ac_envvar=\$ac_optarg
1163 export $ac_envvar ;;
1166 # FIXME: should be removed in autoconf 3.0.
1167 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1168 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1169 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1170 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1176 if test -n "$ac_prev"; then
1177 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1178 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1179 { (exit 1); exit 1; }; }
1182 if test -n "$ac_unrecognized_opts"; then
1183 case $enable_option_checking in
1185 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1186 { (exit 1); exit 1; }; } ;;
1187 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1191 # Check all directory arguments for consistency.
1192 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1193 datadir sysconfdir sharedstatedir localstatedir includedir \
1194 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1195 libdir localedir mandir
1197 eval ac_val=\$$ac_var
1198 # Remove trailing slashes.
1201 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1202 eval $ac_var=\$ac_val;;
1204 # Be sure to have absolute directory names.
1206 [\\/$]* | ?:[\\/]* ) continue;;
1207 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1209 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1210 { (exit 1); exit 1; }; }
1213 # There might be people who depend on the old broken behavior: `$host'
1214 # used to hold the argument of --host etc.
1215 # FIXME: To remove some day.
1218 target=$target_alias
1220 # FIXME: To remove some day.
1221 if test "x$host_alias" != x; then
1222 if test "x$build_alias" = x; then
1223 cross_compiling=maybe
1224 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1225 If a cross compiler is detected then cross compile mode will be used." >&2
1226 elif test "x$build_alias" != "x$host_alias"; then
1232 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1234 test "$silent" = yes && exec 6>/dev/null
1237 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1238 ac_ls_di=`ls -di .` &&
1239 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1240 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1241 { (exit 1); exit 1; }; }
1242 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1243 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1244 { (exit 1); exit 1; }; }
1247 # Find the source files, if location was not specified.
1248 if test -z "$srcdir"; then
1249 ac_srcdir_defaulted=yes
1250 # Try the directory containing this script, then the parent directory.
1251 ac_confdir=`$as_dirname -- "$as_myself" ||
1252 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1253 X"$as_myself" : 'X\(//\)[^/]' \| \
1254 X"$as_myself" : 'X\(//\)$' \| \
1255 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1256 $as_echo X"$as_myself" |
1257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1275 if test ! -r "$srcdir/$ac_unique_file"; then
1279 ac_srcdir_defaulted=no
1281 if test ! -r "$srcdir/$ac_unique_file"; then
1282 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1283 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1284 { (exit 1); exit 1; }; }
1286 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1288 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1289 { (exit 1); exit 1; }; }
1291 # When building in place, set srcdir=.
1292 if test "$ac_abs_confdir" = "$ac_pwd"; then
1295 # Remove unnecessary trailing slashes from srcdir.
1296 # Double slashes in file names in object file debugging info
1297 # mess up M-x gdb in Emacs.
1299 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1301 for ac_var in $ac_precious_vars; do
1302 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1303 eval ac_env_${ac_var}_value=\$${ac_var}
1304 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1305 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1309 # Report the --help message.
1311 if test "$ac_init_help" = "long"; then
1312 # Omit some internal or obsolete options to make the list less imposing.
1313 # This message is too long to be a string in the A/UX 3.1 sh.
1315 \`configure' configures this package to adapt to many kinds of systems.
1317 Usage: $0 [OPTION]... [VAR=VALUE]...
1319 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1320 VAR=VALUE. See below for descriptions of some of the useful variables.
1322 Defaults for the options are specified in brackets.
1325 -h, --help display this help and exit
1326 --help=short display options specific to this package
1327 --help=recursive display the short help of all the included packages
1328 -V, --version display version information and exit
1329 -q, --quiet, --silent do not print \`checking...' messages
1330 --cache-file=FILE cache test results in FILE [disabled]
1331 -C, --config-cache alias for \`--cache-file=config.cache'
1332 -n, --no-create do not create output files
1333 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1335 Installation directories:
1336 --prefix=PREFIX install architecture-independent files in PREFIX
1337 [$ac_default_prefix]
1338 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1341 By default, \`make install' will install all the files in
1342 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1343 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1344 for instance \`--prefix=\$HOME'.
1346 For better control, use the options below.
1348 Fine tuning of the installation directories:
1349 --bindir=DIR user executables [EPREFIX/bin]
1350 --sbindir=DIR system admin executables [EPREFIX/sbin]
1351 --libexecdir=DIR program executables [EPREFIX/libexec]
1352 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1353 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1354 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1355 --libdir=DIR object code libraries [EPREFIX/lib]
1356 --includedir=DIR C header files [PREFIX/include]
1357 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1358 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1359 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1360 --infodir=DIR info documentation [DATAROOTDIR/info]
1361 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1362 --mandir=DIR man documentation [DATAROOTDIR/man]
1363 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1364 --htmldir=DIR html documentation [DOCDIR]
1365 --dvidir=DIR dvi documentation [DOCDIR]
1366 --pdfdir=DIR pdf documentation [DOCDIR]
1367 --psdir=DIR ps documentation [DOCDIR]
1373 --build=BUILD configure for building on BUILD [guessed]
1374 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1375 --target=TARGET configure for building compilers for TARGET [HOST]
1379 if test -n "$ac_init_help"; then
1384 --disable-option-checking ignore unrecognized --enable/--with options
1385 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1386 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1387 --enable-layout=LAYOUT
1390 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1391 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1392 --with-apr=DIR|FILE prefix for installed APR, path to APR build tree,
1393 or the full path to apr-config
1394 --with-ldap-include=path path to ldap include files with trailing slash
1395 --with-ldap-lib=path path to ldap lib file
1396 --with-ldap=library ldap library to use
1398 --with-dbm=DBM choose the DBM type to use.
1399 DBM={sdbm,gdbm,ndbm,db,db1,db185,db2,db3,db4,db41,db42,db43,db44,db45,db46,db47,db48}
1402 --with-gdbm=DIR specify GDBM location
1406 Find the NDBM header and library in \`PATH/include' and
1407 \`PATH/lib'. If PATH is of the form \`HEADER:LIB', then search
1408 for header files in HEADER, and the library in LIB. If you omit
1409 the \`=PATH' part completely, the configure script will search
1410 for NDBM in a number of standard places.
1413 --with-berkeley-db=PATH
1414 Find the Berkeley DB header and library in \`PATH/include' and
1415 \`PATH/lib'. If PATH is of the form \`HEADER:LIB', then search
1416 for header files in HEADER, and the library in LIB. If you omit
1417 the \`=PATH' part completely, the configure script will search
1418 for Berkeley DB in a number of standard places.
1420 --with-expat=DIR specify Expat location or 'builtin'
1421 --with-iconv=DIR path to iconv installation
1423 Some influential environment variables:
1424 CC C compiler command
1425 CFLAGS C compiler flags
1426 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1427 nonstandard directory <lib dir>
1428 LIBS libraries to pass to the linker, e.g. -l<library>
1429 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1430 you have headers in a nonstandard directory <include dir>
1433 Use these variables to override the choices made by `configure' or to help
1434 it to find libraries and programs with nonstandard names/locations.
1440 if test "$ac_init_help" = "recursive"; then
1441 # If there are subdirs, report their specific --help.
1442 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1443 test -d "$ac_dir" ||
1444 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1449 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1451 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1452 # A ".." for each directory in $ac_dir_suffix.
1453 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1454 case $ac_top_builddir_sub in
1455 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1456 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1459 ac_abs_top_builddir=$ac_pwd
1460 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1461 # for backward compatibility:
1462 ac_top_builddir=$ac_top_build_prefix
1465 .) # We are building in place.
1467 ac_top_srcdir=$ac_top_builddir_sub
1468 ac_abs_top_srcdir=$ac_pwd ;;
1469 [\\/]* | ?:[\\/]* ) # Absolute name.
1470 ac_srcdir=$srcdir$ac_dir_suffix;
1471 ac_top_srcdir=$srcdir
1472 ac_abs_top_srcdir=$srcdir ;;
1474 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1475 ac_top_srcdir=$ac_top_build_prefix$srcdir
1476 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1478 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1480 cd "$ac_dir" || { ac_status=$?; continue; }
1481 # Check for guested configure.
1482 if test -f "$ac_srcdir/configure.gnu"; then
1484 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1485 elif test -f "$ac_srcdir/configure"; then
1487 $SHELL "$ac_srcdir/configure" --help=recursive
1489 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1491 cd "$ac_pwd" || { ac_status=$?; break; }
1495 test -n "$ac_init_help" && exit $ac_status
1496 if $ac_init_version; then
1499 generated by GNU Autoconf 2.63
1501 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1502 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1503 This configure script is free software; the Free Software Foundation
1504 gives unlimited permission to copy, distribute and modify it.
1508 cat >config.log <<_ACEOF
1509 This file contains any messages produced by compilers while
1510 running configure, to aid debugging if configure makes a mistake.
1512 It was created by $as_me, which was
1513 generated by GNU Autoconf 2.63. Invocation command line was
1525 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1526 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1527 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1528 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1529 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1531 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1532 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1534 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1535 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1536 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1537 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1538 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1539 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1540 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1548 test -z "$as_dir" && as_dir=.
1549 $as_echo "PATH: $as_dir"
1565 # Keep a trace of the command line.
1566 # Strip out --no-create and --no-recursion so they do not pile up.
1567 # Strip out --silent because we don't want to record it for future runs.
1568 # Also quote any args containing shell meta-characters.
1569 # Make two passes to allow for proper duplicate-argument suppression.
1573 ac_must_keep_next=false
1579 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1580 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1581 | -silent | --silent | --silen | --sile | --sil)
1584 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1587 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1589 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1590 if test $ac_must_keep_next = true; then
1591 ac_must_keep_next=false # Got value, back to normal.
1594 *=* | --config-cache | -C | -disable-* | --disable-* \
1595 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1596 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1597 | -with-* | --with-* | -without-* | --without-* | --x)
1598 case "$ac_configure_args0 " in
1599 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1602 -* ) ac_must_keep_next=true ;;
1605 ac_configure_args="$ac_configure_args '$ac_arg'"
1610 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1611 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1613 # When interrupted or exit'd, cleanup temporary files, and complete
1614 # config.log. We remove comments because anyway the quotes in there
1615 # would cause problems or look ugly.
1616 # WARNING: Use '\'' to represent an apostrophe within the trap.
1617 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1618 trap 'exit_status=$?
1619 # Save into config.log some information that might help in debugging.
1624 ## ---------------- ##
1625 ## Cache variables. ##
1626 ## ---------------- ##
1629 # The following way of writing the cache mishandles newlines in values,
1631 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1632 eval ac_val=\$$ac_var
1636 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1637 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1640 _ | IFS | as_nl) ;; #(
1641 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1642 *) $as_unset $ac_var ;;
1647 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1648 *${as_nl}ac_space=\ *)
1650 "s/'\''/'\''\\\\'\'''\''/g;
1651 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1654 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1662 ## ----------------- ##
1663 ## Output variables. ##
1664 ## ----------------- ##
1667 for ac_var in $ac_subst_vars
1669 eval ac_val=\$$ac_var
1671 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1673 $as_echo "$ac_var='\''$ac_val'\''"
1677 if test -n "$ac_subst_files"; then
1679 ## ------------------- ##
1680 ## File substitutions. ##
1681 ## ------------------- ##
1684 for ac_var in $ac_subst_files
1686 eval ac_val=\$$ac_var
1688 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1690 $as_echo "$ac_var='\''$ac_val'\''"
1695 if test -s confdefs.h; then
1705 test "$ac_signal" != 0 &&
1706 $as_echo "$as_me: caught signal $ac_signal"
1707 $as_echo "$as_me: exit $exit_status"
1709 rm -f core *.core core.conftest.* &&
1710 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1713 for ac_signal in 1 2 13 15; do
1714 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1718 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1719 rm -f -r conftest* confdefs.h
1721 # Predefined preprocessor variables.
1723 cat >>confdefs.h <<_ACEOF
1724 #define PACKAGE_NAME "$PACKAGE_NAME"
1728 cat >>confdefs.h <<_ACEOF
1729 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1733 cat >>confdefs.h <<_ACEOF
1734 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1738 cat >>confdefs.h <<_ACEOF
1739 #define PACKAGE_STRING "$PACKAGE_STRING"
1743 cat >>confdefs.h <<_ACEOF
1744 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1748 # Let the site file select an alternate cache file if it wants to.
1749 # Prefer an explicitly selected file to automatically selected ones.
1752 if test -n "$CONFIG_SITE"; then
1753 ac_site_file1=$CONFIG_SITE
1754 elif test "x$prefix" != xNONE; then
1755 ac_site_file1=$prefix/share/config.site
1756 ac_site_file2=$prefix/etc/config.site
1758 ac_site_file1=$ac_default_prefix/share/config.site
1759 ac_site_file2=$ac_default_prefix/etc/config.site
1761 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1763 test "x$ac_site_file" = xNONE && continue
1764 if test -r "$ac_site_file"; then
1765 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1766 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1767 sed 's/^/| /' "$ac_site_file" >&5
1772 if test -r "$cache_file"; then
1773 # Some versions of bash will fail to source /dev/null (special
1774 # files actually), so we avoid doing that.
1775 if test -f "$cache_file"; then
1776 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1777 $as_echo "$as_me: loading cache $cache_file" >&6;}
1779 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1780 *) . "./$cache_file";;
1784 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1785 $as_echo "$as_me: creating cache $cache_file" >&6;}
1789 # Check that the precious variables saved in the cache have kept the same
1791 ac_cache_corrupted=false
1792 for ac_var in $ac_precious_vars; do
1793 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1794 eval ac_new_set=\$ac_env_${ac_var}_set
1795 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1796 eval ac_new_val=\$ac_env_${ac_var}_value
1797 case $ac_old_set,$ac_new_set in
1799 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1800 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1801 ac_cache_corrupted=: ;;
1803 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1804 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1805 ac_cache_corrupted=: ;;
1808 if test "x$ac_old_val" != "x$ac_new_val"; then
1809 # differences in whitespace do not lead to failure.
1810 ac_old_val_w=`echo x $ac_old_val`
1811 ac_new_val_w=`echo x $ac_new_val`
1812 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1813 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1814 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1815 ac_cache_corrupted=:
1817 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1818 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1819 eval $ac_var=\$ac_old_val
1821 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1822 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1823 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1824 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1827 # Pass precious variables to config.status.
1828 if test "$ac_new_set" = set; then
1830 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1831 *) ac_arg=$ac_var=$ac_new_val ;;
1833 case " $ac_configure_args " in
1834 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1835 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1839 if $ac_cache_corrupted; then
1840 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1841 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1842 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1843 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1844 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1845 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1846 { (exit 1); exit 1; }; }
1866 ac_cpp='$CPP $CPPFLAGS'
1867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1873 ac_config_headers="$ac_config_headers include/private/apu_config.h"
1876 for ac_dir in build "$srcdir"/build; do
1877 if test -f "$ac_dir/install-sh"; then
1879 ac_install_sh="$ac_aux_dir/install-sh -c"
1881 elif test -f "$ac_dir/install.sh"; then
1883 ac_install_sh="$ac_aux_dir/install.sh -c"
1885 elif test -f "$ac_dir/shtool"; then
1887 ac_install_sh="$ac_aux_dir/shtool install -c"
1891 if test -z "$ac_aux_dir"; then
1892 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&5
1893 $as_echo "$as_me: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&2;}
1894 { (exit 1); exit 1; }; }
1897 # These three variables are undocumented and unsupported,
1898 # and are intended to be withdrawn in a future Autoconf release.
1899 # They can cause serious problems if a builder's source tree is in a directory
1900 # whose full name contains unusual characters.
1901 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1902 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1903 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2060 cat >config.nice<<EOF
2063 # Created by configure
2066 if test -n "$CC"; then
2067 echo "CC=\"$CC\"; export CC" >> config.nice
2069 if test -n "$CFLAGS"; then
2070 echo "CFLAGS=\"$CFLAGS\"; export CFLAGS" >> config.nice
2072 if test -n "$CPPFLAGS"; then
2073 echo "CPPFLAGS=\"$CPPFLAGS\"; export CPPFLAGS" >> config.nice
2075 if test -n "$LDFLAGS"; then
2076 echo "LDFLAGS=\"$LDFLAGS\"; export LDFLAGS" >> config.nice
2078 if test -n "$LIBS"; then
2079 echo "LIBS=\"$LIBS\"; export LIBS" >> config.nice
2081 if test -n "$INCLUDES"; then
2082 echo "INCLUDES=\"$INCLUDES\"; export INCLUDES" >> config.nice
2084 if test -n "$NOTEST_CFLAGS"; then
2085 echo "NOTEST_CFLAGS=\"$NOTEST_CFLAGS\"; export NOTEST_CFLAGS" >> config.nice
2087 if test -n "$NOTEST_CPPFLAGS"; then
2088 echo "NOTEST_CPPFLAGS=\"$NOTEST_CPPFLAGS\"; export NOTEST_CPPFLAGS" >> config.nice
2090 if test -n "$NOTEST_LDFLAGS"; then
2091 echo "NOTEST_LDFLAGS=\"$NOTEST_LDFLAGS\"; export NOTEST_LDFLAGS" >> config.nice
2093 if test -n "$NOTEST_LIBS"; then
2094 echo "NOTEST_LIBS=\"$NOTEST_LIBS\"; export NOTEST_LIBS" >> config.nice
2097 # Retrieve command-line arguments.
2098 eval "set x $0 $ac_configure_args"
2106 while test "x${ap_cur}" != "x${ap_last}";
2109 ap_cur=`eval "echo ${ap_cur}"`
2113 echo "\"$arg\" \\" >> config.nice
2115 echo '"$@"' >> config.nice
2116 chmod +x config.nice
2120 abs_srcdir=`(cd $srcdir && pwd)`
2123 if test "$abs_builddir" != "$abs_srcdir"; then
2125 APU_CONFIG_LOCATION=build
2127 APU_CONFIG_LOCATION=source
2132 # Make sure we can run config.sub.
2133 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2134 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2135 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2136 { (exit 1); exit 1; }; }
2138 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2139 $as_echo_n "checking build system type... " >&6; }
2140 if test "${ac_cv_build+set}" = set; then
2141 $as_echo_n "(cached) " >&6
2143 ac_build_alias=$build_alias
2144 test "x$ac_build_alias" = x &&
2145 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2146 test "x$ac_build_alias" = x &&
2147 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2148 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2149 { (exit 1); exit 1; }; }
2150 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2151 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2152 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2153 { (exit 1); exit 1; }; }
2156 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2157 $as_echo "$ac_cv_build" >&6; }
2158 case $ac_cv_build in
2160 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2161 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2162 { (exit 1); exit 1; }; };;
2165 ac_save_IFS=$IFS; IFS='-'
2171 # Remember, the first character of IFS is used to create $*,
2172 # except with old shells:
2175 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2178 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2179 $as_echo_n "checking host system type... " >&6; }
2180 if test "${ac_cv_host+set}" = set; then
2181 $as_echo_n "(cached) " >&6
2183 if test "x$host_alias" = x; then
2184 ac_cv_host=$ac_cv_build
2186 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2187 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2188 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2189 { (exit 1); exit 1; }; }
2193 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2194 $as_echo "$ac_cv_host" >&6; }
2197 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2198 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2199 { (exit 1); exit 1; }; };;
2202 ac_save_IFS=$IFS; IFS='-'
2208 # Remember, the first character of IFS is used to create $*,
2209 # except with old shells:
2212 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2215 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2216 $as_echo_n "checking target system type... " >&6; }
2217 if test "${ac_cv_target+set}" = set; then
2218 $as_echo_n "(cached) " >&6
2220 if test "x$target_alias" = x; then
2221 ac_cv_target=$ac_cv_host
2223 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2224 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2225 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2226 { (exit 1); exit 1; }; }
2230 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2231 $as_echo "$ac_cv_target" >&6; }
2232 case $ac_cv_target in
2234 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2235 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2236 { (exit 1); exit 1; }; };;
2238 target=$ac_cv_target
2239 ac_save_IFS=$IFS; IFS='-'
2245 # Remember, the first character of IFS is used to create $*,
2246 # except with old shells:
2249 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2252 # The aliases save the names the user supplied, while $host etc.
2253 # will get canonicalized.
2254 test -n "$target_alias" &&
2255 test "$program_prefix$program_suffix$program_transform_name" = \
2257 program_prefix=${target_alias}-
2259 top_builddir="$abs_builddir"
2265 { $as_echo "$as_me:$LINENO: checking for working mkdir -p" >&5
2266 $as_echo_n "checking for working mkdir -p... " >&6; }
2267 if test "${ac_cv_mkdir_p+set}" = set; then
2268 $as_echo_n "(cached) " >&6
2271 test -d conftestdir && rm -rf conftestdir
2272 mkdir -p conftestdir/somedir >/dev/null 2>&1
2273 if test -d conftestdir/somedir; then
2281 { $as_echo "$as_me:$LINENO: result: $ac_cv_mkdir_p" >&5
2282 $as_echo "$ac_cv_mkdir_p" >&6; }
2283 if test "$ac_cv_mkdir_p" = "yes"; then
2286 mkdir_p="$abs_srcdir/build/mkdir.sh"
2290 get_version="$abs_srcdir/build/get-version.sh"
2291 version_hdr="$abs_srcdir/include/apu_version.h"
2292 APRUTIL_MAJOR_VERSION="`$get_version major $version_hdr APU`"
2293 APRUTIL_DOTTED_VERSION="`$get_version all $version_hdr APU`"
2298 echo "APR-util Version: ${APRUTIL_DOTTED_VERSION}"
2301 # Check whether --enable-layout was given.
2302 if test "${enable_layout+set}" = set; then
2303 enableval=$enable_layout;
2309 if test -z "$LAYOUT"; then
2313 if test ! -f $srcdir/config.layout; then
2314 echo "** Error: Layout file $srcdir/config.layout not found"
2315 echo "** Error: Cannot use undefined layout '$LAYOUT'"
2318 pldconf=./config.pld
2320 sed -e "1s/[ ]*<[lL]ayout[ ]*$LAYOUT[ ]*>[ ]*//;1t" \
2321 -e "1,/[ ]*<[lL]ayout[ ]*$LAYOUT[ ]*>[ ]*/d" \
2322 -e '/[ ]*<\/Layout>[ ]*/,$d' \
2324 -e "s/:[ ]*/=\'/g" \
2326 $srcdir/config.layout > $pldconf
2328 if test ! -s $pldconf; then
2329 echo "** Error: unable to find layout $layout_name"
2334 for var in prefix exec_prefix bindir sbindir libexecdir mandir \
2335 sysconfdir datadir includedir localstatedir runtimedir \
2336 logfiledir libdir installbuilddir libsuffix ; do
2337 eval "val=\"\$$var\""
2340 val=`echo $val | sed -e 's;\+$;;'`
2341 eval "$var=\"\$val\""
2348 val=`echo $val | sed -e 's:\(.\)/*$:\1:'`
2349 val=`echo $val | sed -e 's:[\$]\([a-z_]*\):$\1:g'`
2350 if test "$autosuffix" = "yes"; then
2351 if echo $val | grep apache >/dev/null; then
2356 if test "$addtarget" = "yes"; then
2365 { $as_echo "$as_me:$LINENO: checking for chosen layout" >&5
2366 $as_echo_n "checking for chosen layout... " >&6; }
2367 { $as_echo "$as_me:$LINENO: result: $layout_name" >&5
2368 $as_echo "$layout_name" >&6; }
2372 # Retrieve the command-line arguments. The eval is needed because
2373 # the arguments are quoted to preserve accuracy.
2374 eval "set x $ac_configure_args"
2378 # If the previous option needs an argument, assign it.
2379 if test -n "$ac_prev"; then
2380 eval "$ac_prev=\$ac_option"
2385 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
2389 -bindir | --bindir | --bindi | --bind | --bin | --bi)
2391 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
2392 bindir="$ac_optarg" ;;
2394 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
2396 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
2398 datadir="$ac_optarg" ;;
2400 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
2401 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
2402 | --exec | --exe | --ex)
2403 ac_prev=exec_prefix ;;
2404 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
2405 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
2406 | --exec=* | --exe=* | --ex=*)
2407 exec_prefix="$ac_optarg" ;;
2409 -includedir | --includedir | --includedi | --included | --include \
2410 | --includ | --inclu | --incl | --inc)
2411 ac_prev=includedir ;;
2412 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
2413 | --includ=* | --inclu=* | --incl=* | --inc=*)
2414 includedir="$ac_optarg" ;;
2416 -infodir | --infodir | --infodi | --infod | --info | --inf)
2418 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
2419 infodir="$ac_optarg" ;;
2421 -libdir | --libdir | --libdi | --libd)
2423 -libdir=* | --libdir=* | --libdi=* | --libd=*)
2424 libdir="$ac_optarg" ;;
2426 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
2427 | --libexe | --libex | --libe)
2428 ac_prev=libexecdir ;;
2429 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
2430 | --libexe=* | --libex=* | --libe=*)
2431 libexecdir="$ac_optarg" ;;
2433 -localstatedir | --localstatedir | --localstatedi | --localstated \
2434 | --localstate | --localstat | --localsta | --localst \
2435 | --locals | --local | --loca | --loc | --lo)
2436 ac_prev=localstatedir ;;
2437 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
2438 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
2439 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
2440 localstatedir="$ac_optarg" ;;
2442 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
2444 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
2445 mandir="$ac_optarg" ;;
2447 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
2449 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
2450 prefix="$ac_optarg" ;;
2452 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
2454 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
2456 sbindir="$ac_optarg" ;;
2458 -sharedstatedir | --sharedstatedir | --sharedstatedi \
2459 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
2460 | --sharedst | --shareds | --shared | --share | --shar \
2462 ac_prev=sharedstatedir ;;
2463 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
2464 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
2465 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
2467 sharedstatedir="$ac_optarg" ;;
2469 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
2470 | --syscon | --sysco | --sysc | --sys | --sy)
2471 ac_prev=sysconfdir ;;
2472 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
2473 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
2474 sysconfdir="$ac_optarg" ;;
2479 # Be sure to have absolute paths.
2480 for ac_var in exec_prefix prefix
2482 eval ac_val=$`echo $ac_var`
2484 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
2485 *) { { $as_echo "$as_me:$LINENO: error: expected an absolute path for --$ac_var: $ac_val" >&5
2486 $as_echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2;}
2487 { (exit 1); exit 1; }; };;
2494 if test "x$apu_preload_done" != "xyes" ; then
2495 apu_preload_done="yes"
2497 echo "Applying apr-util hints file rules for $host"
2502 if test -z "$apu_crypt_threadsafe"; then
2503 echo " setting apu_crypt_threadsafe to \"1\""
2504 apu_crypt_threadsafe="1"
2510 if test -z "$apu_crypt_threadsafe"; then
2511 echo " setting apu_crypt_threadsafe to \"1\""
2512 apu_crypt_threadsafe="1"
2516 *-ibm-aix4*|*-ibm-aix5.1*)
2518 if test -z "$apu_iconv_inbuf_const"; then
2519 echo " setting apu_iconv_inbuf_const to \"1\""
2520 apu_iconv_inbuf_const="1"
2526 if test -z "$apu_crypt_threadsafe"; then
2527 echo " setting apu_crypt_threadsafe to \"1\""
2528 apu_crypt_threadsafe="1"
2534 if test -z "$apu_iconv_inbuf_const"; then
2535 echo " setting apu_iconv_inbuf_const to \"1\""
2536 apu_iconv_inbuf_const="1"
2540 if test -z "$apu_crypt_threadsafe"; then
2541 echo " setting apu_crypt_threadsafe to \"1\""
2542 apu_crypt_threadsafe="1"
2548 if test -z "$apu_db_xtra_libs"; then
2549 echo " setting apu_db_xtra_libs to \"-lsocket\""
2550 apu_db_xtra_libs="-lsocket"
2561 APRUTIL_PRIV_INCLUDES="-I$top_builddir/include -I$top_builddir/include/private"
2562 if test -n "$USE_VPATH"; then
2563 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES -I$abs_srcdir/include/private -I$abs_srcdir/include"
2571 if test "$ac_cv_emxos2" = "yes"; then
2572 # Scripts don't pass test -x on OS/2
2578 { $as_echo "$as_me:$LINENO: checking for APR" >&5
2579 $as_echo_n "checking for APR... " >&6; }
2581 # Check whether --with-apr was given.
2582 if test "${with_apr+set}" = set; then
2584 if test "$withval" = "no" || test "$withval" = "yes"; then
2585 { { $as_echo "$as_me:$LINENO: error: --with-apr requires a directory to be provided" >&5
2586 $as_echo "$as_me: error: --with-apr requires a directory to be provided" >&2;}
2587 { (exit 1); exit 1; }; }
2590 if $TEST_X "$withval/bin/apr-config"; then
2592 apr_config="$withval/bin/apr-config"
2593 elif $TEST_X "$withval/apr-config"; then
2595 apr_config="$withval/apr-config"
2596 elif $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
2598 apr_config="$withval"
2601 if test "$apr_found" != "yes"; then
2602 { { $as_echo "$as_me:$LINENO: error: the --with-apr parameter is incorrect. It must specify an install prefix, a
2603 build directory, or an apr-config file." >&5
2604 $as_echo "$as_me: error: the --with-apr parameter is incorrect. It must specify an install prefix, a
2605 build directory, or an apr-config file." >&2;}
2606 { (exit 1); exit 1; }; }
2612 apr_temp_abs_srcdir="`cd && pwd`"
2613 apr_found="reconfig"
2615 apr_config="/apr-config"
2617 apr_config="/apr-config"
2620 if test "$apr_found" = "no" && test -n "" && test "" = "1"; then
2621 if apr-config --help > /dev/null 2>&1 ; then
2623 apr_config="apr-config"
2625 for lookdir in /usr /usr/local /opt/apr /usr/local/apache2 ; do
2626 if $TEST_X "$lookdir/bin/apr-config"; then
2628 apr_config="$lookdir/bin/apr-config"
2638 { $as_echo "$as_me:$LINENO: result: $apr_found" >&5
2639 $as_echo "$apr_found" >&6; }
2641 if test "$apr_found" = "no"; then
2642 { { $as_echo "$as_me:$LINENO: error: APR could not be located. Please use the --with-apr option." >&5
2643 $as_echo "$as_me: error: APR could not be located. Please use the --with-apr option." >&2;}
2644 { (exit 1); exit 1; }; }
2647 APR_BUILD_DIR="`$apr_config --installbuilddir`"
2649 APR_BUILD_DIR="`cd $APR_BUILD_DIR && pwd`"
2651 APR_INCLUDES="`$apr_config --includes`"
2652 APR_LIBS="`$apr_config --link-libtool --libs`"
2653 APR_SO_EXT="`$apr_config --apr-so-ext`"
2654 APR_LIB_TARGET="`$apr_config --apr-lib-target`"
2662 if test -z "$CC"; then
2663 echo " setting CC to \"`$apr_config --cc`\""
2664 CC="`$apr_config --cc`"
2668 if test -z "$CPP"; then
2669 echo " setting CPP to \"`$apr_config --cpp`\""
2670 CPP="`$apr_config --cpp`"
2674 if test "x$CFLAGS" = "x"; then
2675 echo " setting CFLAGS to \"`$apr_config --cflags`\""
2676 CFLAGS="`$apr_config --cflags`"
2678 apr_addto_bugger="`$apr_config --cflags`"
2679 for i in $apr_addto_bugger; do
2680 apr_addto_duplicate="0"
2681 for j in $CFLAGS; do
2682 if test "x$i" = "x$j"; then
2683 apr_addto_duplicate="1"
2687 if test $apr_addto_duplicate = "0"; then
2688 echo " adding \"$i\" to CFLAGS"
2695 if test "x$CPPFLAGS" = "x"; then
2696 echo " setting CPPFLAGS to \"`$apr_config --cppflags`\""
2697 CPPFLAGS="`$apr_config --cppflags`"
2699 apr_addto_bugger="`$apr_config --cppflags`"
2700 for i in $apr_addto_bugger; do
2701 apr_addto_duplicate="0"
2702 for j in $CPPFLAGS; do
2703 if test "x$i" = "x$j"; then
2704 apr_addto_duplicate="1"
2708 if test $apr_addto_duplicate = "0"; then
2709 echo " adding \"$i\" to CPPFLAGS"
2710 CPPFLAGS="$CPPFLAGS $i"
2717 ac_cpp='$CPP $CPPFLAGS'
2718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2721 if test -n "$ac_tool_prefix"; then
2722 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2723 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2724 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2725 $as_echo_n "checking for $ac_word... " >&6; }
2726 if test "${ac_cv_prog_CC+set}" = set; then
2727 $as_echo_n "(cached) " >&6
2729 if test -n "$CC"; then
2730 ac_cv_prog_CC="$CC" # Let the user override the test.
2732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2736 test -z "$as_dir" && as_dir=.
2737 for ac_exec_ext in '' $ac_executable_extensions; do
2738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2739 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2740 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2750 if test -n "$CC"; then
2751 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2752 $as_echo "$CC" >&6; }
2754 { $as_echo "$as_me:$LINENO: result: no" >&5
2755 $as_echo "no" >&6; }
2760 if test -z "$ac_cv_prog_CC"; then
2762 # Extract the first word of "gcc", so it can be a program name with args.
2763 set dummy gcc; ac_word=$2
2764 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2765 $as_echo_n "checking for $ac_word... " >&6; }
2766 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2767 $as_echo_n "(cached) " >&6
2769 if test -n "$ac_ct_CC"; then
2770 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776 test -z "$as_dir" && as_dir=.
2777 for ac_exec_ext in '' $ac_executable_extensions; do
2778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2779 ac_cv_prog_ac_ct_CC="gcc"
2780 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2789 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2790 if test -n "$ac_ct_CC"; then
2791 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2792 $as_echo "$ac_ct_CC" >&6; }
2794 { $as_echo "$as_me:$LINENO: result: no" >&5
2795 $as_echo "no" >&6; }
2798 if test "x$ac_ct_CC" = x; then
2801 case $cross_compiling:$ac_tool_warned in
2803 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2804 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2805 ac_tool_warned=yes ;;
2813 if test -z "$CC"; then
2814 if test -n "$ac_tool_prefix"; then
2815 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2816 set dummy ${ac_tool_prefix}cc; ac_word=$2
2817 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2818 $as_echo_n "checking for $ac_word... " >&6; }
2819 if test "${ac_cv_prog_CC+set}" = set; then
2820 $as_echo_n "(cached) " >&6
2822 if test -n "$CC"; then
2823 ac_cv_prog_CC="$CC" # Let the user override the test.
2825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829 test -z "$as_dir" && as_dir=.
2830 for ac_exec_ext in '' $ac_executable_extensions; do
2831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2832 ac_cv_prog_CC="${ac_tool_prefix}cc"
2833 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2843 if test -n "$CC"; then
2844 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2845 $as_echo "$CC" >&6; }
2847 { $as_echo "$as_me:$LINENO: result: no" >&5
2848 $as_echo "no" >&6; }
2854 if test -z "$CC"; then
2855 # Extract the first word of "cc", so it can be a program name with args.
2856 set dummy cc; ac_word=$2
2857 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2858 $as_echo_n "checking for $ac_word... " >&6; }
2859 if test "${ac_cv_prog_CC+set}" = set; then
2860 $as_echo_n "(cached) " >&6
2862 if test -n "$CC"; then
2863 ac_cv_prog_CC="$CC" # Let the user override the test.
2866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2870 test -z "$as_dir" && as_dir=.
2871 for ac_exec_ext in '' $ac_executable_extensions; do
2872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2873 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2874 ac_prog_rejected=yes
2878 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2885 if test $ac_prog_rejected = yes; then
2886 # We found a bogon in the path, so make sure we never use it.
2887 set dummy $ac_cv_prog_CC
2889 if test $# != 0; then
2890 # We chose a different compiler from the bogus one.
2891 # However, it has the same basename, so the bogon will be chosen
2892 # first if we set CC to just the basename; use the full file name.
2894 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2900 if test -n "$CC"; then
2901 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2902 $as_echo "$CC" >&6; }
2904 { $as_echo "$as_me:$LINENO: result: no" >&5
2905 $as_echo "no" >&6; }
2910 if test -z "$CC"; then
2911 if test -n "$ac_tool_prefix"; then
2912 for ac_prog in cl.exe
2914 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2915 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2916 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2917 $as_echo_n "checking for $ac_word... " >&6; }
2918 if test "${ac_cv_prog_CC+set}" = set; then
2919 $as_echo_n "(cached) " >&6
2921 if test -n "$CC"; then
2922 ac_cv_prog_CC="$CC" # Let the user override the test.
2924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2928 test -z "$as_dir" && as_dir=.
2929 for ac_exec_ext in '' $ac_executable_extensions; do
2930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2931 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2932 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2942 if test -n "$CC"; then
2943 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2944 $as_echo "$CC" >&6; }
2946 { $as_echo "$as_me:$LINENO: result: no" >&5
2947 $as_echo "no" >&6; }
2951 test -n "$CC" && break
2954 if test -z "$CC"; then
2956 for ac_prog in cl.exe
2958 # Extract the first word of "$ac_prog", so it can be a program name with args.
2959 set dummy $ac_prog; ac_word=$2
2960 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2961 $as_echo_n "checking for $ac_word... " >&6; }
2962 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2963 $as_echo_n "(cached) " >&6
2965 if test -n "$ac_ct_CC"; then
2966 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2972 test -z "$as_dir" && as_dir=.
2973 for ac_exec_ext in '' $ac_executable_extensions; do
2974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2975 ac_cv_prog_ac_ct_CC="$ac_prog"
2976 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2985 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2986 if test -n "$ac_ct_CC"; then
2987 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2988 $as_echo "$ac_ct_CC" >&6; }
2990 { $as_echo "$as_me:$LINENO: result: no" >&5
2991 $as_echo "no" >&6; }
2995 test -n "$ac_ct_CC" && break
2998 if test "x$ac_ct_CC" = x; then
3001 case $cross_compiling:$ac_tool_warned in
3003 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3005 ac_tool_warned=yes ;;
3014 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3015 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3016 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3017 See \`config.log' for more details." >&5
3018 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3019 See \`config.log' for more details." >&2;}
3020 { (exit 1); exit 1; }; }; }
3022 # Provide some information about the compiler.
3023 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3026 { (ac_try="$ac_compiler --version >&5"
3028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029 *) ac_try_echo=$ac_try;;
3031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3032 $as_echo "$ac_try_echo") >&5
3033 (eval "$ac_compiler --version >&5") 2>&5
3035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); }
3037 { (ac_try="$ac_compiler -v >&5"
3039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3040 *) ac_try_echo=$ac_try;;
3042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3043 $as_echo "$ac_try_echo") >&5
3044 (eval "$ac_compiler -v >&5") 2>&5
3046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }
3048 { (ac_try="$ac_compiler -V >&5"
3050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3051 *) ac_try_echo=$ac_try;;
3053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3054 $as_echo "$ac_try_echo") >&5
3055 (eval "$ac_compiler -V >&5") 2>&5
3057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); }
3060 cat >conftest.$ac_ext <<_ACEOF
3063 cat confdefs.h >>conftest.$ac_ext
3064 cat >>conftest.$ac_ext <<_ACEOF
3065 /* end confdefs.h. */
3075 ac_clean_files_save=$ac_clean_files
3076 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3077 # Try to create an executable without -o first, disregard a.out.
3078 # It will help us diagnose broken compilers, and finding out an intuition
3080 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3081 $as_echo_n "checking for C compiler default output file name... " >&6; }
3082 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3084 # The possible output files:
3085 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3088 for ac_file in $ac_files
3091 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3092 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3097 if { (ac_try="$ac_link_default"
3099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100 *) ac_try_echo=$ac_try;;
3102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3103 $as_echo "$ac_try_echo") >&5
3104 (eval "$ac_link_default") 2>&5
3106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); }; then
3108 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3109 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3110 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3111 # so that the user can short-circuit this test for compilers unknown to
3113 for ac_file in $ac_files ''
3115 test -f "$ac_file" || continue
3117 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3120 # We found the default executable, but exeext='' is most
3124 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3126 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3128 # We set ac_cv_exeext here because the later test for it is not
3129 # safe: cross compilers may not add the suffix if given an `-o'
3130 # argument, so we may need to know it at that point already.
3131 # Even if this section looks crufty: it has the advantage of
3138 test "$ac_cv_exeext" = no && ac_cv_exeext=
3144 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3145 $as_echo "$ac_file" >&6; }
3146 if test -z "$ac_file"; then
3147 $as_echo "$as_me: failed program was:" >&5
3148 sed 's/^/| /' conftest.$ac_ext >&5
3150 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3151 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3152 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3153 See \`config.log' for more details." >&5
3154 $as_echo "$as_me: error: C compiler cannot create executables
3155 See \`config.log' for more details." >&2;}
3156 { (exit 77); exit 77; }; }; }
3159 ac_exeext=$ac_cv_exeext
3161 # Check that the compiler produces executables we can run. If not, either
3162 # the compiler is broken, or we cross compile.
3163 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3164 $as_echo_n "checking whether the C compiler works... " >&6; }
3165 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3166 # If not cross compiling, check that we can run a simple program.
3167 if test "$cross_compiling" != yes; then
3168 if { ac_try='./$ac_file'
3169 { (case "(($ac_try" in
3170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3171 *) ac_try_echo=$ac_try;;
3173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3174 $as_echo "$ac_try_echo") >&5
3175 (eval "$ac_try") 2>&5
3177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); }; }; then
3181 if test "$cross_compiling" = maybe; then
3184 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3186 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3187 If you meant to cross compile, use \`--host'.
3188 See \`config.log' for more details." >&5
3189 $as_echo "$as_me: error: cannot run C compiled programs.
3190 If you meant to cross compile, use \`--host'.
3191 See \`config.log' for more details." >&2;}
3192 { (exit 1); exit 1; }; }; }
3196 { $as_echo "$as_me:$LINENO: result: yes" >&5
3197 $as_echo "yes" >&6; }
3199 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3200 ac_clean_files=$ac_clean_files_save
3201 # Check that the compiler produces executables we can run. If not, either
3202 # the compiler is broken, or we cross compile.
3203 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3204 $as_echo_n "checking whether we are cross compiling... " >&6; }
3205 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3206 $as_echo "$cross_compiling" >&6; }
3208 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3209 $as_echo_n "checking for suffix of executables... " >&6; }
3210 if { (ac_try="$ac_link"
3212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3213 *) ac_try_echo=$ac_try;;
3215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3216 $as_echo "$ac_try_echo") >&5
3217 (eval "$ac_link") 2>&5
3219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220 (exit $ac_status); }; then
3221 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3222 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3223 # work properly (i.e., refer to `conftest.exe'), while it won't with
3225 for ac_file in conftest.exe conftest conftest.*; do
3226 test -f "$ac_file" || continue
3228 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3229 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3235 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3236 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3237 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3238 See \`config.log' for more details." >&5
3239 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3240 See \`config.log' for more details." >&2;}
3241 { (exit 1); exit 1; }; }; }
3244 rm -f conftest$ac_cv_exeext
3245 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3246 $as_echo "$ac_cv_exeext" >&6; }
3248 rm -f conftest.$ac_ext
3249 EXEEXT=$ac_cv_exeext
3251 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3252 $as_echo_n "checking for suffix of object files... " >&6; }
3253 if test "${ac_cv_objext+set}" = set; then
3254 $as_echo_n "(cached) " >&6
3256 cat >conftest.$ac_ext <<_ACEOF
3259 cat confdefs.h >>conftest.$ac_ext
3260 cat >>conftest.$ac_ext <<_ACEOF
3261 /* end confdefs.h. */
3271 rm -f conftest.o conftest.obj
3272 if { (ac_try="$ac_compile"
3274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3275 *) ac_try_echo=$ac_try;;
3277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3278 $as_echo "$ac_try_echo") >&5
3279 (eval "$ac_compile") 2>&5
3281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); }; then
3283 for ac_file in conftest.o conftest.obj conftest.*; do
3284 test -f "$ac_file" || continue;
3286 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3287 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3292 $as_echo "$as_me: failed program was:" >&5
3293 sed 's/^/| /' conftest.$ac_ext >&5
3295 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3296 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3297 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3298 See \`config.log' for more details." >&5
3299 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3300 See \`config.log' for more details." >&2;}
3301 { (exit 1); exit 1; }; }; }
3304 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3306 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3307 $as_echo "$ac_cv_objext" >&6; }
3308 OBJEXT=$ac_cv_objext
3310 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3311 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3312 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3313 $as_echo_n "(cached) " >&6
3315 cat >conftest.$ac_ext <<_ACEOF
3318 cat confdefs.h >>conftest.$ac_ext
3319 cat >>conftest.$ac_ext <<_ACEOF
3320 /* end confdefs.h. */
3333 rm -f conftest.$ac_objext
3334 if { (ac_try="$ac_compile"
3336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337 *) ac_try_echo=$ac_try;;
3339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3340 $as_echo "$ac_try_echo") >&5
3341 (eval "$ac_compile") 2>conftest.er1
3343 grep -v '^ *+' conftest.er1 >conftest.err
3345 cat conftest.err >&5
3346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); } && {
3348 test -z "$ac_c_werror_flag" ||
3349 test ! -s conftest.err
3350 } && test -s conftest.$ac_objext; then
3353 $as_echo "$as_me: failed program was:" >&5
3354 sed 's/^/| /' conftest.$ac_ext >&5
3359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3360 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3363 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3364 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3365 if test $ac_compiler_gnu = yes; then
3370 ac_test_CFLAGS=${CFLAGS+set}
3371 ac_save_CFLAGS=$CFLAGS
3372 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3373 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3374 if test "${ac_cv_prog_cc_g+set}" = set; then
3375 $as_echo_n "(cached) " >&6
3377 ac_save_c_werror_flag=$ac_c_werror_flag
3378 ac_c_werror_flag=yes
3381 cat >conftest.$ac_ext <<_ACEOF
3384 cat confdefs.h >>conftest.$ac_ext
3385 cat >>conftest.$ac_ext <<_ACEOF
3386 /* end confdefs.h. */
3396 rm -f conftest.$ac_objext
3397 if { (ac_try="$ac_compile"
3399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400 *) ac_try_echo=$ac_try;;
3402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3403 $as_echo "$ac_try_echo") >&5
3404 (eval "$ac_compile") 2>conftest.er1
3406 grep -v '^ *+' conftest.er1 >conftest.err
3408 cat conftest.err >&5
3409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); } && {
3411 test -z "$ac_c_werror_flag" ||
3412 test ! -s conftest.err
3413 } && test -s conftest.$ac_objext; then
3416 $as_echo "$as_me: failed program was:" >&5
3417 sed 's/^/| /' conftest.$ac_ext >&5
3420 cat >conftest.$ac_ext <<_ACEOF
3423 cat confdefs.h >>conftest.$ac_ext
3424 cat >>conftest.$ac_ext <<_ACEOF
3425 /* end confdefs.h. */
3435 rm -f conftest.$ac_objext
3436 if { (ac_try="$ac_compile"
3438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3439 *) ac_try_echo=$ac_try;;
3441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3442 $as_echo "$ac_try_echo") >&5
3443 (eval "$ac_compile") 2>conftest.er1
3445 grep -v '^ *+' conftest.er1 >conftest.err
3447 cat conftest.err >&5
3448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); } && {
3450 test -z "$ac_c_werror_flag" ||
3451 test ! -s conftest.err
3452 } && test -s conftest.$ac_objext; then
3455 $as_echo "$as_me: failed program was:" >&5
3456 sed 's/^/| /' conftest.$ac_ext >&5
3458 ac_c_werror_flag=$ac_save_c_werror_flag
3460 cat >conftest.$ac_ext <<_ACEOF
3463 cat confdefs.h >>conftest.$ac_ext
3464 cat >>conftest.$ac_ext <<_ACEOF
3465 /* end confdefs.h. */
3475 rm -f conftest.$ac_objext
3476 if { (ac_try="$ac_compile"
3478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3479 *) ac_try_echo=$ac_try;;
3481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3482 $as_echo "$ac_try_echo") >&5
3483 (eval "$ac_compile") 2>conftest.er1
3485 grep -v '^ *+' conftest.er1 >conftest.err
3487 cat conftest.err >&5
3488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); } && {
3490 test -z "$ac_c_werror_flag" ||
3491 test ! -s conftest.err
3492 } && test -s conftest.$ac_objext; then
3495 $as_echo "$as_me: failed program was:" >&5
3496 sed 's/^/| /' conftest.$ac_ext >&5
3501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3508 ac_c_werror_flag=$ac_save_c_werror_flag
3510 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3511 $as_echo "$ac_cv_prog_cc_g" >&6; }
3512 if test "$ac_test_CFLAGS" = set; then
3513 CFLAGS=$ac_save_CFLAGS
3514 elif test $ac_cv_prog_cc_g = yes; then
3515 if test "$GCC" = yes; then
3521 if test "$GCC" = yes; then
3527 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3528 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3529 if test "${ac_cv_prog_cc_c89+set}" = set; then
3530 $as_echo_n "(cached) " >&6
3532 ac_cv_prog_cc_c89=no
3534 cat >conftest.$ac_ext <<_ACEOF
3537 cat confdefs.h >>conftest.$ac_ext
3538 cat >>conftest.$ac_ext <<_ACEOF
3539 /* end confdefs.h. */
3542 #include <sys/types.h>
3543 #include <sys/stat.h>
3544 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3545 struct buf { int x; };
3546 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3547 static char *e (p, i)
3553 static char *f (char * (*g) (char **, int), char **p, ...)
3558 s = g (p, va_arg (v,int));
3563 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3564 function prototypes and stuff, but not '\xHH' hex character constants.
3565 These don't provoke an error unfortunately, instead are silently treated
3566 as 'x'. The following induces an error, until -std is added to get
3567 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3568 array size at least. It's necessary to write '\x00'==0 to get something
3569 that's true only with -std. */
3570 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3572 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3573 inside strings and character constants. */
3575 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3577 int test (int i, double x);
3578 struct s1 {int (*f) (int a);};
3579 struct s2 {int (*f) (double a);};
3580 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3586 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3591 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3592 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3594 CC="$ac_save_CC $ac_arg"
3595 rm -f conftest.$ac_objext
3596 if { (ac_try="$ac_compile"
3598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599 *) ac_try_echo=$ac_try;;
3601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3602 $as_echo "$ac_try_echo") >&5
3603 (eval "$ac_compile") 2>conftest.er1
3605 grep -v '^ *+' conftest.er1 >conftest.err
3607 cat conftest.err >&5
3608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); } && {
3610 test -z "$ac_c_werror_flag" ||
3611 test ! -s conftest.err
3612 } && test -s conftest.$ac_objext; then
3613 ac_cv_prog_cc_c89=$ac_arg
3615 $as_echo "$as_me: failed program was:" >&5
3616 sed 's/^/| /' conftest.$ac_ext >&5
3621 rm -f core conftest.err conftest.$ac_objext
3622 test "x$ac_cv_prog_cc_c89" != "xno" && break
3624 rm -f conftest.$ac_ext
3629 case "x$ac_cv_prog_cc_c89" in
3631 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3632 $as_echo "none needed" >&6; } ;;
3634 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3635 $as_echo "unsupported" >&6; } ;;
3637 CC="$CC $ac_cv_prog_cc_c89"
3638 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3639 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3644 ac_cpp='$CPP $CPPFLAGS'
3645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3651 ac_cpp='$CPP $CPPFLAGS'
3652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3655 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3656 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3657 # On Suns, sometimes $CPP names a directory.
3658 if test -n "$CPP" && test -d "$CPP"; then
3661 if test -z "$CPP"; then
3662 if test "${ac_cv_prog_CPP+set}" = set; then
3663 $as_echo_n "(cached) " >&6
3665 # Double quotes because CPP needs to be expanded
3666 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3669 for ac_c_preproc_warn_flag in '' yes
3671 # Use a header file that comes with gcc, so configuring glibc
3672 # with a fresh cross-compiler works.
3673 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3674 # <limits.h> exists even on freestanding compilers.
3675 # On the NeXT, cc -E runs the code through the compiler's parser,
3676 # not just through cpp. "Syntax error" is here to catch this case.
3677 cat >conftest.$ac_ext <<_ACEOF
3680 cat confdefs.h >>conftest.$ac_ext
3681 cat >>conftest.$ac_ext <<_ACEOF
3682 /* end confdefs.h. */
3684 # include <limits.h>
3686 # include <assert.h>
3690 if { (ac_try="$ac_cpp conftest.$ac_ext"
3692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3693 *) ac_try_echo=$ac_try;;
3695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3696 $as_echo "$ac_try_echo") >&5
3697 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3699 grep -v '^ *+' conftest.er1 >conftest.err
3701 cat conftest.err >&5
3702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); } >/dev/null && {
3704 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3705 test ! -s conftest.err
3709 $as_echo "$as_me: failed program was:" >&5
3710 sed 's/^/| /' conftest.$ac_ext >&5
3712 # Broken: fails on valid input.
3716 rm -f conftest.err conftest.$ac_ext
3718 # OK, works on sane cases. Now check whether nonexistent headers
3719 # can be detected and how.
3720 cat >conftest.$ac_ext <<_ACEOF
3723 cat confdefs.h >>conftest.$ac_ext
3724 cat >>conftest.$ac_ext <<_ACEOF
3725 /* end confdefs.h. */
3726 #include <ac_nonexistent.h>
3728 if { (ac_try="$ac_cpp conftest.$ac_ext"
3730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3731 *) ac_try_echo=$ac_try;;
3733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3734 $as_echo "$ac_try_echo") >&5
3735 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3737 grep -v '^ *+' conftest.er1 >conftest.err
3739 cat conftest.err >&5
3740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); } >/dev/null && {
3742 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3743 test ! -s conftest.err
3745 # Broken: success on invalid input.
3748 $as_echo "$as_me: failed program was:" >&5
3749 sed 's/^/| /' conftest.$ac_ext >&5
3751 # Passes both tests.
3756 rm -f conftest.err conftest.$ac_ext
3759 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3760 rm -f conftest.err conftest.$ac_ext
3761 if $ac_preproc_ok; then
3773 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3774 $as_echo "$CPP" >&6; }
3776 for ac_c_preproc_warn_flag in '' yes
3778 # Use a header file that comes with gcc, so configuring glibc
3779 # with a fresh cross-compiler works.
3780 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3781 # <limits.h> exists even on freestanding compilers.
3782 # On the NeXT, cc -E runs the code through the compiler's parser,
3783 # not just through cpp. "Syntax error" is here to catch this case.
3784 cat >conftest.$ac_ext <<_ACEOF
3787 cat confdefs.h >>conftest.$ac_ext
3788 cat >>conftest.$ac_ext <<_ACEOF
3789 /* end confdefs.h. */
3791 # include <limits.h>
3793 # include <assert.h>
3797 if { (ac_try="$ac_cpp conftest.$ac_ext"
3799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3800 *) ac_try_echo=$ac_try;;
3802 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3803 $as_echo "$ac_try_echo") >&5
3804 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3806 grep -v '^ *+' conftest.er1 >conftest.err
3808 cat conftest.err >&5
3809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810 (exit $ac_status); } >/dev/null && {
3811 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3812 test ! -s conftest.err
3816 $as_echo "$as_me: failed program was:" >&5
3817 sed 's/^/| /' conftest.$ac_ext >&5
3819 # Broken: fails on valid input.
3823 rm -f conftest.err conftest.$ac_ext
3825 # OK, works on sane cases. Now check whether nonexistent headers
3826 # can be detected and how.
3827 cat >conftest.$ac_ext <<_ACEOF
3830 cat confdefs.h >>conftest.$ac_ext
3831 cat >>conftest.$ac_ext <<_ACEOF
3832 /* end confdefs.h. */
3833 #include <ac_nonexistent.h>
3835 if { (ac_try="$ac_cpp conftest.$ac_ext"
3837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3838 *) ac_try_echo=$ac_try;;
3840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3841 $as_echo "$ac_try_echo") >&5
3842 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3844 grep -v '^ *+' conftest.er1 >conftest.err
3846 cat conftest.err >&5
3847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 (exit $ac_status); } >/dev/null && {
3849 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3850 test ! -s conftest.err
3852 # Broken: success on invalid input.
3855 $as_echo "$as_me: failed program was:" >&5
3856 sed 's/^/| /' conftest.$ac_ext >&5
3858 # Passes both tests.
3863 rm -f conftest.err conftest.$ac_ext
3866 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3867 rm -f conftest.err conftest.$ac_ext
3868 if $ac_preproc_ok; then
3871 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3872 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3873 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3874 See \`config.log' for more details." >&5
3875 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3876 See \`config.log' for more details." >&2;}
3877 { (exit 1); exit 1; }; }; }
3881 ac_cpp='$CPP $CPPFLAGS'
3882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3887 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3888 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3889 if test "${ac_cv_path_GREP+set}" = set; then
3890 $as_echo_n "(cached) " >&6
3892 if test -z "$GREP"; then
3893 ac_path_GREP_found=false
3894 # Loop through the user's path and test for each of PROGNAME-LIST
3895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3896 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3899 test -z "$as_dir" && as_dir=.
3900 for ac_prog in grep ggrep; do
3901 for ac_exec_ext in '' $ac_executable_extensions; do
3902 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3903 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3904 # Check for GNU ac_path_GREP and select it if it is found.
3905 # Check for GNU $ac_path_GREP
3906 case `"$ac_path_GREP" --version 2>&1` in
3908 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3911 $as_echo_n 0123456789 >"conftest.in"
3914 cat "conftest.in" "conftest.in" >"conftest.tmp"
3915 mv "conftest.tmp" "conftest.in"
3916 cp "conftest.in" "conftest.nl"
3917 $as_echo 'GREP' >> "conftest.nl"
3918 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3919 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3920 ac_count=`expr $ac_count + 1`
3921 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3922 # Best one so far, save it but keep looking for a better one
3923 ac_cv_path_GREP="$ac_path_GREP"
3924 ac_path_GREP_max=$ac_count
3926 # 10*(2^10) chars as input seems more than enough
3927 test $ac_count -gt 10 && break
3929 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3932 $ac_path_GREP_found && break 3
3937 if test -z "$ac_cv_path_GREP"; then
3938 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3939 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3940 { (exit 1); exit 1; }; }
3943 ac_cv_path_GREP=$GREP
3947 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3948 $as_echo "$ac_cv_path_GREP" >&6; }
3949 GREP="$ac_cv_path_GREP"
3952 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3953 $as_echo_n "checking for egrep... " >&6; }
3954 if test "${ac_cv_path_EGREP+set}" = set; then
3955 $as_echo_n "(cached) " >&6
3957 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3958 then ac_cv_path_EGREP="$GREP -E"
3960 if test -z "$EGREP"; then
3961 ac_path_EGREP_found=false
3962 # Loop through the user's path and test for each of PROGNAME-LIST
3963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3964 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3967 test -z "$as_dir" && as_dir=.
3968 for ac_prog in egrep; do
3969 for ac_exec_ext in '' $ac_executable_extensions; do
3970 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3971 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3972 # Check for GNU ac_path_EGREP and select it if it is found.
3973 # Check for GNU $ac_path_EGREP
3974 case `"$ac_path_EGREP" --version 2>&1` in
3976 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3979 $as_echo_n 0123456789 >"conftest.in"
3982 cat "conftest.in" "conftest.in" >"conftest.tmp"
3983 mv "conftest.tmp" "conftest.in"
3984 cp "conftest.in" "conftest.nl"
3985 $as_echo 'EGREP' >> "conftest.nl"
3986 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3987 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3988 ac_count=`expr $ac_count + 1`
3989 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3990 # Best one so far, save it but keep looking for a better one
3991 ac_cv_path_EGREP="$ac_path_EGREP"
3992 ac_path_EGREP_max=$ac_count
3994 # 10*(2^10) chars as input seems more than enough
3995 test $ac_count -gt 10 && break
3997 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4000 $ac_path_EGREP_found && break 3
4005 if test -z "$ac_cv_path_EGREP"; then
4006 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4007 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4008 { (exit 1); exit 1; }; }
4011 ac_cv_path_EGREP=$EGREP
4016 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4017 $as_echo "$ac_cv_path_EGREP" >&6; }
4018 EGREP="$ac_cv_path_EGREP"
4021 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4022 $as_echo_n "checking for ANSI C header files... " >&6; }
4023 if test "${ac_cv_header_stdc+set}" = set; then
4024 $as_echo_n "(cached) " >&6
4026 cat >conftest.$ac_ext <<_ACEOF
4029 cat confdefs.h >>conftest.$ac_ext
4030 cat >>conftest.$ac_ext <<_ACEOF
4031 /* end confdefs.h. */
4045 rm -f conftest.$ac_objext
4046 if { (ac_try="$ac_compile"
4048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4049 *) ac_try_echo=$ac_try;;
4051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4052 $as_echo "$ac_try_echo") >&5
4053 (eval "$ac_compile") 2>conftest.er1
4055 grep -v '^ *+' conftest.er1 >conftest.err
4057 cat conftest.err >&5
4058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059 (exit $ac_status); } && {
4060 test -z "$ac_c_werror_flag" ||
4061 test ! -s conftest.err
4062 } && test -s conftest.$ac_objext; then
4063 ac_cv_header_stdc=yes
4065 $as_echo "$as_me: failed program was:" >&5
4066 sed 's/^/| /' conftest.$ac_ext >&5
4068 ac_cv_header_stdc=no
4071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4073 if test $ac_cv_header_stdc = yes; then
4074 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4075 cat >conftest.$ac_ext <<_ACEOF
4078 cat confdefs.h >>conftest.$ac_ext
4079 cat >>conftest.$ac_ext <<_ACEOF
4080 /* end confdefs.h. */
4084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4085 $EGREP "memchr" >/dev/null 2>&1; then
4088 ac_cv_header_stdc=no
4094 if test $ac_cv_header_stdc = yes; then
4095 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4096 cat >conftest.$ac_ext <<_ACEOF
4099 cat confdefs.h >>conftest.$ac_ext
4100 cat >>conftest.$ac_ext <<_ACEOF
4101 /* end confdefs.h. */
4105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4106 $EGREP "free" >/dev/null 2>&1; then
4109 ac_cv_header_stdc=no
4115 if test $ac_cv_header_stdc = yes; then
4116 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4117 if test "$cross_compiling" = yes; then
4120 cat >conftest.$ac_ext <<_ACEOF
4123 cat confdefs.h >>conftest.$ac_ext
4124 cat >>conftest.$ac_ext <<_ACEOF
4125 /* end confdefs.h. */
4128 #if ((' ' & 0x0FF) == 0x020)
4129 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4130 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4132 # define ISLOWER(c) \
4133 (('a' <= (c) && (c) <= 'i') \
4134 || ('j' <= (c) && (c) <= 'r') \
4135 || ('s' <= (c) && (c) <= 'z'))
4136 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4139 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4144 for (i = 0; i < 256; i++)
4145 if (XOR (islower (i), ISLOWER (i))
4146 || toupper (i) != TOUPPER (i))
4151 rm -f conftest$ac_exeext
4152 if { (ac_try="$ac_link"
4154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4155 *) ac_try_echo=$ac_try;;
4157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4158 $as_echo "$ac_try_echo") >&5
4159 (eval "$ac_link") 2>&5
4161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4163 { (case "(($ac_try" in
4164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4165 *) ac_try_echo=$ac_try;;
4167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4168 $as_echo "$ac_try_echo") >&5
4169 (eval "$ac_try") 2>&5
4171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); }; }; then
4175 $as_echo "$as_me: program exited with status $ac_status" >&5
4176 $as_echo "$as_me: failed program was:" >&5
4177 sed 's/^/| /' conftest.$ac_ext >&5
4180 ac_cv_header_stdc=no
4182 rm -rf conftest.dSYM
4183 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4189 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4190 $as_echo "$ac_cv_header_stdc" >&6; }
4191 if test $ac_cv_header_stdc = yes; then
4193 cat >>confdefs.h <<\_ACEOF
4194 #define STDC_HEADERS 1
4199 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4209 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4210 inttypes.h stdint.h unistd.h
4212 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4213 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4214 $as_echo_n "checking for $ac_header... " >&6; }
4215 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4216 $as_echo_n "(cached) " >&6
4218 cat >conftest.$ac_ext <<_ACEOF
4221 cat confdefs.h >>conftest.$ac_ext
4222 cat >>conftest.$ac_ext <<_ACEOF
4223 /* end confdefs.h. */
4224 $ac_includes_default
4226 #include <$ac_header>
4228 rm -f conftest.$ac_objext
4229 if { (ac_try="$ac_compile"
4231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4232 *) ac_try_echo=$ac_try;;
4234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4235 $as_echo "$ac_try_echo") >&5
4236 (eval "$ac_compile") 2>conftest.er1
4238 grep -v '^ *+' conftest.er1 >conftest.err
4240 cat conftest.err >&5
4241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242 (exit $ac_status); } && {
4243 test -z "$ac_c_werror_flag" ||
4244 test ! -s conftest.err
4245 } && test -s conftest.$ac_objext; then
4246 eval "$as_ac_Header=yes"
4248 $as_echo "$as_me: failed program was:" >&5
4249 sed 's/^/| /' conftest.$ac_ext >&5
4251 eval "$as_ac_Header=no"
4254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4256 ac_res=`eval 'as_val=${'$as_ac_Header'}
4257 $as_echo "$as_val"'`
4258 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4259 $as_echo "$ac_res" >&6; }
4260 as_val=`eval 'as_val=${'$as_ac_Header'}
4261 $as_echo "$as_val"'`
4262 if test "x$as_val" = x""yes; then
4263 cat >>confdefs.h <<_ACEOF
4264 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4274 echo $ac_n "${nl}checking for ldap support..."
4277 apu_has_ldap_netscape_ssl="0"
4278 apu_has_ldap_starttls="0"
4281 # Check whether --with-ldap-include was given.
4282 if test "${with_ldap_include+set}" = set; then
4283 withval=$with_ldap_include;
4287 # Check whether --with-ldap-lib was given.
4288 if test "${with_ldap_lib+set}" = set; then
4289 withval=$with_ldap_lib;
4293 # Check whether --with-ldap was given.
4294 if test "${with_ldap+set}" = set; then
4296 save_cppflags="$CPPFLAGS"
4297 save_ldflags="$LDFLAGS"
4299 if test -n "$with_ldap_include"; then
4300 CPPFLAGS="$CPPFLAGS -I$with_ldap_include"
4302 if test "x$APRUTIL_INCLUDES" = "x"; then
4303 echo " setting APRUTIL_INCLUDES to \"-I$with_ldap_include\""
4304 APRUTIL_INCLUDES="-I$with_ldap_include"
4306 apr_addto_bugger="-I$with_ldap_include"
4307 for i in $apr_addto_bugger; do
4308 apr_addto_duplicate="0"
4309 for j in $APRUTIL_INCLUDES; do
4310 if test "x$i" = "x$j"; then
4311 apr_addto_duplicate="1"
4315 if test $apr_addto_duplicate = "0"; then
4316 echo " adding \"$i\" to APRUTIL_INCLUDES"
4317 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
4323 if test -n "$with_ldap_lib"; then
4324 LDFLAGS="$LDFLAGS -L$with_ldap_lib"
4326 if test "x$APRUTIL_LDFLAGS" = "x"; then
4327 echo " setting APRUTIL_LDFLAGS to \"-L$with_ldap_lib\""
4328 APRUTIL_LDFLAGS="-L$with_ldap_lib"
4330 apr_addto_bugger="-L$with_ldap_lib"
4331 for i in $apr_addto_bugger; do
4332 apr_addto_duplicate="0"
4333 for j in $APRUTIL_LDFLAGS; do
4334 if test "x$i" = "x$j"; then
4335 apr_addto_duplicate="1"
4339 if test $apr_addto_duplicate = "0"; then
4340 echo " adding \"$i\" to APRUTIL_LDFLAGS"
4341 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
4349 if test "$LIBLDAP" = "yes"; then
4351 if test ${apu_has_ldap} != "1"; then
4353 extralib="-lnspr4 -lplc4 -lplds4 -liutil50 -llber50 -lldif50 -lnss3 -lprldap50 -lssl3 -lssldap50"
4354 unset ac_cv_lib_${ldaplib}_ldap_init
4355 unset ac_cv_lib_${ldaplib}___ldap_init
4356 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh`
4357 { $as_echo "$as_me:$LINENO: checking for ldap_init in -l${ldaplib}" >&5
4358 $as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; }
4359 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
4360 $as_echo_n "(cached) " >&6
4362 ac_check_lib_save_LIBS=$LIBS
4363 LIBS="-l${ldaplib} ${extralib} $LIBS"
4364 cat >conftest.$ac_ext <<_ACEOF
4367 cat confdefs.h >>conftest.$ac_ext
4368 cat >>conftest.$ac_ext <<_ACEOF
4369 /* end confdefs.h. */
4371 /* Override any GCC internal prototype to avoid an error.
4372 Use char because int might match the return type of a GCC
4373 builtin and then its argument prototype would still apply. */
4381 return ldap_init ();
4386 rm -f conftest.$ac_objext conftest$ac_exeext
4387 if { (ac_try="$ac_link"
4389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4390 *) ac_try_echo=$ac_try;;
4392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4393 $as_echo "$ac_try_echo") >&5
4394 (eval "$ac_link") 2>conftest.er1
4396 grep -v '^ *+' conftest.er1 >conftest.err
4398 cat conftest.err >&5
4399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); } && {
4401 test -z "$ac_c_werror_flag" ||
4402 test ! -s conftest.err
4403 } && test -s conftest$ac_exeext && {
4404 test "$cross_compiling" = yes ||
4405 $as_test_x conftest$ac_exeext
4407 eval "$as_ac_Lib=yes"
4409 $as_echo "$as_me: failed program was:" >&5
4410 sed 's/^/| /' conftest.$ac_ext >&5
4412 eval "$as_ac_Lib=no"
4415 rm -rf conftest.dSYM
4416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4417 conftest$ac_exeext conftest.$ac_ext
4418 LIBS=$ac_check_lib_save_LIBS
4420 ac_res=`eval 'as_val=${'$as_ac_Lib'}
4421 $as_echo "$as_val"'`
4422 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4423 $as_echo "$ac_res" >&6; }
4424 as_val=`eval 'as_val=${'$as_ac_Lib'}
4425 $as_echo "$as_val"'`
4426 if test "x$as_val" = x""yes; then
4429 if test "x$APRUTIL_EXPORT_LIBS" = "x"; then
4430 echo " setting APRUTIL_EXPORT_LIBS to \"-l${ldaplib} ${extralib}\""
4431 APRUTIL_EXPORT_LIBS="-l${ldaplib} ${extralib}"
4433 apr_addto_bugger="-l${ldaplib} ${extralib}"
4434 for i in $apr_addto_bugger; do
4435 apr_addto_duplicate="0"
4436 for j in $APRUTIL_EXPORT_LIBS; do
4437 if test "x$i" = "x$j"; then
4438 apr_addto_duplicate="1"
4442 if test $apr_addto_duplicate = "0"; then
4443 echo " adding \"$i\" to APRUTIL_EXPORT_LIBS"
4444 APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $i"
4450 if test "x$APRUTIL_LIBS" = "x"; then
4451 echo " setting APRUTIL_LIBS to \"-l${ldaplib} ${extralib}\""
4452 APRUTIL_LIBS="-l${ldaplib} ${extralib}"
4454 apr_addto_bugger="-l${ldaplib} ${extralib}"
4455 for i in $apr_addto_bugger; do
4456 apr_addto_duplicate="0"
4457 for j in $APRUTIL_LIBS; do
4458 if test "x$i" = "x$j"; then
4459 apr_addto_duplicate="1"
4463 if test $apr_addto_duplicate = "0"; then
4464 echo " adding \"$i\" to APRUTIL_LIBS"
4465 APRUTIL_LIBS="$APRUTIL_LIBS $i"
4470 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh`
4471 { $as_echo "$as_me:$LINENO: checking for ldapssl_install_routines in -l${ldaplib}" >&5
4472 $as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; }
4473 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
4474 $as_echo_n "(cached) " >&6
4476 ac_check_lib_save_LIBS=$LIBS
4477 LIBS="-l${ldaplib} ${extralib} $LIBS"
4478 cat >conftest.$ac_ext <<_ACEOF
4481 cat confdefs.h >>conftest.$ac_ext
4482 cat >>conftest.$ac_ext <<_ACEOF
4483 /* end confdefs.h. */
4485 /* Override any GCC internal prototype to avoid an error.
4486 Use char because int might match the return type of a GCC
4487 builtin and then its argument prototype would still apply. */
4491 char ldapssl_install_routines ();
4495 return ldapssl_install_routines ();
4500 rm -f conftest.$ac_objext conftest$ac_exeext
4501 if { (ac_try="$ac_link"
4503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4504 *) ac_try_echo=$ac_try;;
4506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4507 $as_echo "$ac_try_echo") >&5
4508 (eval "$ac_link") 2>conftest.er1
4510 grep -v '^ *+' conftest.er1 >conftest.err
4512 cat conftest.err >&5
4513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); } && {
4515 test -z "$ac_c_werror_flag" ||
4516 test ! -s conftest.err
4517 } && test -s conftest$ac_exeext && {
4518 test "$cross_compiling" = yes ||
4519 $as_test_x conftest$ac_exeext
4521 eval "$as_ac_Lib=yes"
4523 $as_echo "$as_me: failed program was:" >&5
4524 sed 's/^/| /' conftest.$ac_ext >&5
4526 eval "$as_ac_Lib=no"
4529 rm -rf conftest.dSYM
4530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4531 conftest$ac_exeext conftest.$ac_ext
4532 LIBS=$ac_check_lib_save_LIBS
4534 ac_res=`eval 'as_val=${'$as_ac_Lib'}
4535 $as_echo "$as_val"'`
4536 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4537 $as_echo "$ac_res" >&6; }
4538 as_val=`eval 'as_val=${'$as_ac_Lib'}
4539 $as_echo "$as_val"'`
4540 if test "x$as_val" = x""yes; then
4541 apu_has_ldap_netscape_ssl="1"
4544 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh`
4545 { $as_echo "$as_me:$LINENO: checking for ldap_start_tls_s in -l${ldaplib}" >&5
4546 $as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; }
4547 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
4548 $as_echo_n "(cached) " >&6
4550 ac_check_lib_save_LIBS=$LIBS
4551 LIBS="-l${ldaplib} ${extralib} $LIBS"
4552 cat >conftest.$ac_ext <<_ACEOF
4555 cat confdefs.h >>conftest.$ac_ext
4556 cat >>conftest.$ac_ext <<_ACEOF
4557 /* end confdefs.h. */
4559 /* Override any GCC internal prototype to avoid an error.
4560 Use char because int might match the return type of a GCC
4561 builtin and then its argument prototype would still apply. */
4565 char ldap_start_tls_s ();
4569 return ldap_start_tls_s ();
4574 rm -f conftest.$ac_objext conftest$ac_exeext
4575 if { (ac_try="$ac_link"
4577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4578 *) ac_try_echo=$ac_try;;
4580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4581 $as_echo "$ac_try_echo") >&5
4582 (eval "$ac_link") 2>conftest.er1
4584 grep -v '^ *+' conftest.er1 >conftest.err
4586 cat conftest.err >&5
4587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588 (exit $ac_status); } && {
4589 test -z "$ac_c_werror_flag" ||
4590 test ! -s conftest.err
4591 } && test -s conftest$ac_exeext && {
4592 test "$cross_compiling" = yes ||
4593 $as_test_x conftest$ac_exeext
4595 eval "$as_ac_Lib=yes"
4597 $as_echo "$as_me: failed program was:" >&5
4598 sed 's/^/| /' conftest.$ac_ext >&5
4600 eval "$as_ac_Lib=no"
4603 rm -rf conftest.dSYM
4604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4605 conftest$ac_exeext conftest.$ac_ext
4606 LIBS=$ac_check_lib_save_LIBS
4608 ac_res=`eval 'as_val=${'$as_ac_Lib'}
4609 $as_echo "$as_val"'`
4610 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4611 $as_echo "$ac_res" >&6; }
4612 as_val=`eval 'as_val=${'$as_ac_Lib'}
4613 $as_echo "$as_val"'`
4614 if test "x$as_val" = x""yes; then
4615 apu_has_ldap_starttls="1"
4625 if test ${apu_has_ldap} != "1"; then
4627 extralib="-lnspr3 -lplc3 -lplds3"
4628 unset ac_cv_lib_${ldaplib}_ldap_init
4629 unset ac_cv_lib_${ldaplib}___ldap_init
4630 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh`
4631 { $as_echo "$as_me:$LINENO: checking for ldap_init in -l${ldaplib}" >&5
4632 $as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; }
4633 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
4634 $as_echo_n "(cached) " >&6
4636 ac_check_lib_save_LIBS=$LIBS
4637 LIBS="-l${ldaplib} ${extralib} $LIBS"
4638 cat >conftest.$ac_ext <<_ACEOF
4641 cat confdefs.h >>conftest.$ac_ext
4642 cat >>conftest.$ac_ext <<_ACEOF
4643 /* end confdefs.h. */
4645 /* Override any GCC internal prototype to avoid an error.
4646 Use char because int might match the return type of a GCC
4647 builtin and then its argument prototype would still apply. */
4655 return ldap_init ();
4660 rm -f conftest.$ac_objext conftest$ac_exeext
4661 if { (ac_try="$ac_link"
4663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4664 *) ac_try_echo=$ac_try;;
4666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4667 $as_echo "$ac_try_echo") >&5
4668 (eval "$ac_link") 2>conftest.er1
4670 grep -v '^ *+' conftest.er1 >conftest.err
4672 cat conftest.err >&5
4673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); } && {
4675 test -z "$ac_c_werror_flag" ||
4676 test ! -s conftest.err
4677 } && test -s conftest$ac_exeext && {
4678 test "$cross_compiling" = yes ||
4679 $as_test_x conftest$ac_exeext
4681 eval "$as_ac_Lib=yes"
4683 $as_echo "$as_me: failed program was:" >&5
4684 sed 's/^/| /' conftest.$ac_ext >&5
4686 eval "$as_ac_Lib=no"
4689 rm -rf conftest.dSYM
4690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4691 conftest$ac_exeext conftest.$ac_ext
4692 LIBS=$ac_check_lib_save_LIBS
4694 ac_res=`eval 'as_val=${'$as_ac_Lib'}
4695 $as_echo "$as_val"'`
4696 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4697 $as_echo "$ac_res" >&6; }
4698 as_val=`eval 'as_val=${'$as_ac_Lib'}
4699 $as_echo "$as_val"'`
4700 if test "x$as_val" = x""yes; then
4703 if test "x$APRUTIL_EXPORT_LIBS" = "x"; then
4704 echo " setting APRUTIL_EXPORT_LIBS to \"-l${ldaplib} ${extralib}\""
4705 APRUTIL_EXPORT_LIBS="-l${ldaplib} ${extralib}"
4707 apr_addto_bugger="-l${ldaplib} ${extralib}"
4708 for i in $apr_addto_bugger; do
4709 apr_addto_duplicate="0"
4710 for j in $APRUTIL_EXPORT_LIBS; do
4711 if test "x$i" = "x$j"; then
4712 apr_addto_duplicate="1"
4716 if test $apr_addto_duplicate = "0"; then
4717 echo " adding \"$i\" to APRUTIL_EXPORT_LIBS"
4718 APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $i"
4724 if test "x$APRUTIL_LIBS" = "x"; then
4725 echo " setting APRUTIL_LIBS to \"-l${ldaplib} ${extralib}\""
4726 APRUTIL_LIBS="-l${ldaplib} ${extralib}"
4728 apr_addto_bugger="-l${ldaplib} ${extralib}"
4729 for i in $apr_addto_bugger; do
4730 apr_addto_duplicate="0"
4731 for j in $APRUTIL_LIBS; do
4732 if test "x$i" = "x$j"; then
4733 apr_addto_duplicate="1"
4737 if test $apr_addto_duplicate = "0"; then
4738 echo " adding \"$i\" to APRUTIL_LIBS"
4739 APRUTIL_LIBS="$APRUTIL_LIBS $i"
4744 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh`
4745 { $as_echo "$as_me:$LINENO: checking for ldapssl_install_routines in -l${ldaplib}" >&5
4746 $as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; }
4747 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
4748 $as_echo_n "(cached) " >&6
4750 ac_check_lib_save_LIBS=$LIBS
4751 LIBS="-l${ldaplib} ${extralib} $LIBS"
4752 cat >conftest.$ac_ext <<_ACEOF
4755 cat confdefs.h >>conftest.$ac_ext
4756 cat >>conftest.$ac_ext <<_ACEOF
4757 /* end confdefs.h. */
4759 /* Override any GCC internal prototype to avoid an error.
4760 Use char because int might match the return type of a GCC
4761 builtin and then its argument prototype would still apply. */
4765 char ldapssl_install_routines ();
4769 return ldapssl_install_routines ();
4774 rm -f conftest.$ac_objext conftest$ac_exeext
4775 if { (ac_try="$ac_link"
4777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4778 *) ac_try_echo=$ac_try;;
4780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4781 $as_echo "$ac_try_echo") >&5
4782 (eval "$ac_link") 2>conftest.er1
4784 grep -v '^ *+' conftest.er1 >conftest.err
4786 cat conftest.err >&5
4787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788 (exit $ac_status); } && {
4789 test -z "$ac_c_werror_flag" ||
4790 test ! -s conftest.err
4791 } && test -s conftest$ac_exeext && {
4792 test "$cross_compiling" = yes ||
4793 $as_test_x conftest$ac_exeext
4795 eval "$as_ac_Lib=yes"
4797 $as_echo "$as_me: failed program was:" >&5
4798 sed 's/^/| /' conftest.$ac_ext >&5
4800 eval "$as_ac_Lib=no"
4803 rm -rf conftest.dSYM
4804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4805 conftest$ac_exeext conftest.$ac_ext
4806 LIBS=$ac_check_lib_save_LIBS
4808 ac_res=`eval 'as_val=${'$as_ac_Lib'}
4809 $as_echo "$as_val"'`
4810 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4811 $as_echo "$ac_res" >&6; }
4812 as_val=`eval 'as_val=${'$as_ac_Lib'}
4813 $as_echo "$as_val"'`
4814 if test "x$as_val" = x""yes; then
4815 apu_has_ldap_netscape_ssl="1"
4818 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh`
4819 { $as_echo "$as_me:$LINENO: checking for ldap_start_tls_s in -l${ldaplib}" >&5
4820 $as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; }
4821 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
4822 $as_echo_n "(cached) " >&6
4824 ac_check_lib_save_LIBS=$LIBS
4825 LIBS="-l${ldaplib} ${extralib} $LIBS"
4826 cat >conftest.$ac_ext <<_ACEOF
4829 cat confdefs.h >>conftest.$ac_ext
4830 cat >>conftest.$ac_ext <<_ACEOF
4831 /* end confdefs.h. */
4833 /* Override any GCC internal prototype to avoid an error.
4834 Use char because int might match the return type of a GCC
4835 builtin and then its argument prototype would still apply. */
4839 char ldap_start_tls_s ();
4843 return ldap_start_tls_s ();
4848 rm -f conftest.$ac_objext conftest$ac_exeext
4849 if { (ac_try="$ac_link"
4851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4852 *) ac_try_echo=$ac_try;;
4854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4855 $as_echo "$ac_try_echo") >&5
4856 (eval "$ac_link") 2>conftest.er1
4858 grep -v '^ *+' conftest.er1 >conftest.err
4860 cat conftest.err >&5
4861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); } && {
4863 test -z "$ac_c_werror_flag" ||
4864 test ! -s conftest.err
4865 } && test -s conftest$ac_exeext && {
4866 test "$cross_compiling" = yes ||
4867 $as_test_x conftest$ac_exeext
4869 eval "$as_ac_Lib=yes"
4871 $as_echo "$as_me: failed program was:" >&5
4872 sed 's/^/| /' conftest.$ac_ext >&5
4874 eval "$as_ac_Lib=no"
4877 rm -rf conftest.dSYM
4878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4879 conftest$ac_exeext conftest.$ac_ext
4880 LIBS=$ac_check_lib_save_LIBS
4882 ac_res=`eval 'as_val=${'$as_ac_Lib'}
4883 $as_echo "$as_val"'`
4884 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4885 $as_echo "$ac_res" >&6; }
4886 as_val=`eval 'as_val=${'$as_ac_Lib'}
4887 $as_echo "$as_val"'`
4888 if test "x$as_val" = x""yes; then
4889 apu_has_ldap_starttls="1"
4899 if test ${apu_has_ldap} != "1"; then
4902 unset ac_cv_lib_${ldaplib}_ldap_init
4903 unset ac_cv_lib_${ldaplib}___ldap_init
4904 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh`
4905 { $as_echo "$as_me:$LINENO: checking for ldap_init in -l${ldaplib}" >&5
4906 $as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; }
4907 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
4908 $as_echo_n "(cached) " >&6
4910 ac_check_lib_save_LIBS=$LIBS
4911 LIBS="-l${ldaplib} ${extralib} $LIBS"
4912 cat >conftest.$ac_ext <<_ACEOF
4915 cat confdefs.h >>conftest.$ac_ext
4916 cat >>conftest.$ac_ext <<_ACEOF
4917 /* end confdefs.h. */
4919 /* Override any GCC internal prototype to avoid an error.
4920 Use char because int might match the return type of a GCC
4921 builtin and then its argument prototype would still apply. */
4929 return ldap_init ();
4934 rm -f conftest.$ac_objext conftest$ac_exeext
4935 if { (ac_try="$ac_link"
4937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4938 *) ac_try_echo=$ac_try;;
4940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4941 $as_echo "$ac_try_echo") >&5
4942 (eval "$ac_link") 2>conftest.er1
4944 grep -v '^ *+' conftest.er1 >conftest.err
4946 cat conftest.err >&5
4947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 (exit $ac_status); } && {
4949 test -z "$ac_c_werror_flag" ||
4950 test ! -s conftest.err
4951 } && test -s conftest$ac_exeext && {
4952 test "$cross_compiling" = yes ||
4953 $as_test_x conftest$ac_exeext
4955 eval "$as_ac_Lib=yes"
4957 $as_echo "$as_me: failed program was:" >&5
4958 sed 's/^/| /' conftest.$ac_ext >&5
4960 eval "$as_ac_Lib=no"
4963 rm -rf conftest.dSYM
4964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4965 conftest$ac_exeext conftest.$ac_ext
4966 LIBS=$ac_check_lib_save_LIBS
4968 ac_res=`eval 'as_val=${'$as_ac_Lib'}
4969 $as_echo "$as_val"'`
4970 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4971 $as_echo "$ac_res" >&6; }
4972 as_val=`eval 'as_val=${'$as_ac_Lib'}
4973 $as_echo "$as_val"'`
4974 if test "x$as_val" = x""yes; then
4977 if test "x$APRUTIL_EXPORT_LIBS" = "x"; then
4978 echo " setting APRUTIL_EXPORT_LIBS to \"-l${ldaplib} ${extralib}\""
4979 APRUTIL_EXPORT_LIBS="-l${ldaplib} ${extralib}"
4981 apr_addto_bugger="-l${ldaplib} ${extralib}"
4982 for i in $apr_addto_bugger; do
4983 apr_addto_duplicate="0"
4984 for j in $APRUTIL_EXPORT_LIBS; do
4985 if test "x$i" = "x$j"; then
4986 apr_addto_duplicate="1"
4990 if test $apr_addto_duplicate = "0"; then
4991 echo " adding \"$i\" to APRUTIL_EXPORT_LIBS"
4992 APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $i"
4998 if test "x$APRUTIL_LIBS" = "x"; then
4999 echo " setting APRUTIL_LIBS to \"-l${ldaplib} ${extralib}\""
5000 APRUTIL_LIBS="-l${ldaplib} ${extralib}"
5002 apr_addto_bugger="-l${ldaplib} ${extralib}"
5003 for i in $apr_addto_bugger; do
5004 apr_addto_duplicate="0"
5005 for j in $APRUTIL_LIBS; do
5006 if test "x$i" = "x$j"; then
5007 apr_addto_duplicate="1"
5011 if test $apr_addto_duplicate = "0"; then
5012 echo " adding \"$i\" to APRUTIL_LIBS"
5013 APRUTIL_LIBS="$APRUTIL_LIBS $i"
5018 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh`
5019 { $as_echo "$as_me:$LINENO: checking for ldapssl_install_routines in -l${ldaplib}" >&5
5020 $as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; }
5021 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
5022 $as_echo_n "(cached) " >&6
5024 ac_check_lib_save_LIBS=$LIBS
5025 LIBS="-l${ldaplib} ${extralib} $LIBS"
5026 cat >conftest.$ac_ext <<_ACEOF
5029 cat confdefs.h >>conftest.$ac_ext
5030 cat >>conftest.$ac_ext <<_ACEOF
5031 /* end confdefs.h. */
5033 /* Override any GCC internal prototype to avoid an error.
5034 Use char because int might match the return type of a GCC
5035 builtin and then its argument prototype would still apply. */
5039 char ldapssl_install_routines ();
5043 return ldapssl_install_routines ();
5048 rm -f conftest.$ac_objext conftest$ac_exeext
5049 if { (ac_try="$ac_link"
5051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5052 *) ac_try_echo=$ac_try;;
5054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5055 $as_echo "$ac_try_echo") >&5
5056 (eval "$ac_link") 2>conftest.er1
5058 grep -v '^ *+' conftest.er1 >conftest.err
5060 cat conftest.err >&5
5061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); } && {
5063 test -z "$ac_c_werror_flag" ||
5064 test ! -s conftest.err
5065 } && test -s conftest$ac_exeext && {
5066 test "$cross_compiling" = yes ||
5067 $as_test_x conftest$ac_exeext
5069 eval "$as_ac_Lib=yes"
5071 $as_echo "$as_me: failed program was:" >&5
5072 sed 's/^/| /' conftest.$ac_ext >&5
5074 eval "$as_ac_Lib=no"
5077 rm -rf conftest.dSYM
5078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5079 conftest$ac_exeext conftest.$ac_ext
5080 LIBS=$ac_check_lib_save_LIBS
5082 ac_res=`eval 'as_val=${'$as_ac_Lib'}
5083 $as_echo "$as_val"'`
5084 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5085 $as_echo "$ac_res" >&6; }
5086 as_val=`eval 'as_val=${'$as_ac_Lib'}
5087 $as_echo "$as_val"'`
5088 if test "x$as_val" = x""yes; then
5089 apu_has_ldap_netscape_ssl="1"
5092 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh`
5093 { $as_echo "$as_me:$LINENO: checking for ldap_start_tls_s in -l${ldaplib}" >&5
5094 $as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; }
5095 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
5096 $as_echo_n "(cached) " >&6
5098 ac_check_lib_save_LIBS=$LIBS
5099 LIBS="-l${ldaplib} ${extralib} $LIBS"
5100 cat >conftest.$ac_ext <<_ACEOF
5103 cat confdefs.h >>conftest.$ac_ext
5104 cat >>conftest.$ac_ext <<_ACEOF
5105 /* end confdefs.h. */
5107 /* Override any GCC internal prototype to avoid an error.
5108 Use char because int might match the return type of a GCC
5109 builtin and then its argument prototype would still apply. */
5113 char ldap_start_tls_s ();
5117 return ldap_start_tls_s ();
5122 rm -f conftest.$ac_objext conftest$ac_exeext
5123 if { (ac_try="$ac_link"
5125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5126 *) ac_try_echo=$ac_try;;
5128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5129 $as_echo "$ac_try_echo") >&5
5130 (eval "$ac_link") 2>conftest.er1
5132 grep -v '^ *+' conftest.er1 >conftest.err
5134 cat conftest.err >&5
5135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); } && {
5137 test -z "$ac_c_werror_flag" ||
5138 test ! -s conftest.err
5139 } && test -s conftest$ac_exeext && {
5140 test "$cross_compiling" = yes ||
5141 $as_test_x conftest$ac_exeext
5143 eval "$as_ac_Lib=yes"
5145 $as_echo "$as_me: failed program was:" >&5
5146 sed 's/^/| /' conftest.$ac_ext >&5
5148 eval "$as_ac_Lib=no"
5151 rm -rf conftest.dSYM
5152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5153 conftest$ac_exeext conftest.$ac_ext
5154 LIBS=$ac_check_lib_save_LIBS
5156 ac_res=`eval 'as_val=${'$as_ac_Lib'}
5157 $as_echo "$as_val"'`
5158 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5159 $as_echo "$ac_res" >&6; }
5160 as_val=`eval 'as_val=${'$as_ac_Lib'}
5161 $as_echo "$as_val"'`
5162 if test "x$as_val" = x""yes; then
5163 apu_has_ldap_starttls="1"
5173 if test ${apu_has_ldap} != "1"; then
5176 unset ac_cv_lib_${ldaplib}_ldap_init
5177 unset ac_cv_lib_${ldaplib}___ldap_init
5178 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh`
5179 { $as_echo "$as_me:$LINENO: checking for ldap_init in -l${ldaplib}" >&5
5180 $as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; }
5181 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
5182 $as_echo_n "(cached) " >&6
5184 ac_check_lib_save_LIBS=$LIBS
5185 LIBS="-l${ldaplib} ${extralib} $LIBS"
5186 cat >conftest.$ac_ext <<_ACEOF
5189 cat confdefs.h >>conftest.$ac_ext
5190 cat >>conftest.$ac_ext <<_ACEOF
5191 /* end confdefs.h. */
5193 /* Override any GCC internal prototype to avoid an error.
5194 Use char because int might match the return type of a GCC
5195 builtin and then its argument prototype would still apply. */
5203 return ldap_init ();
5208 rm -f conftest.$ac_objext conftest$ac_exeext
5209 if { (ac_try="$ac_link"
5211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5212 *) ac_try_echo=$ac_try;;
5214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5215 $as_echo "$ac_try_echo") >&5
5216 (eval "$ac_link") 2>conftest.er1
5218 grep -v '^ *+' conftest.er1 >conftest.err
5220 cat conftest.err >&5
5221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); } && {
5223 test -z "$ac_c_werror_flag" ||
5224 test ! -s conftest.err
5225 } && test -s conftest$ac_exeext && {
5226 test "$cross_compiling" = yes ||
5227 $as_test_x conftest$ac_exeext
5229 eval "$as_ac_Lib=yes"
5231 $as_echo "$as_me: failed program was:" >&5
5232 sed 's/^/| /' conftest.$ac_ext >&5
5234 eval "$as_ac_Lib=no"
5237 rm -rf conftest.dSYM
5238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5239 conftest$ac_exeext conftest.$ac_ext
5240 LIBS=$ac_check_lib_save_LIBS
5242 ac_res=`eval 'as_val=${'$as_ac_Lib'}
5243 $as_echo "$as_val"'`
5244 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5245 $as_echo "$ac_res" >&6; }
5246 as_val=`eval 'as_val=${'$as_ac_Lib'}
5247 $as_echo "$as_val"'`
5248 if test "x$as_val" = x""yes; then
5251 if test "x$APRUTIL_EXPORT_LIBS" = "x"; then
5252 echo " setting APRUTIL_EXPORT_LIBS to \"-l${ldaplib} ${extralib}\""
5253 APRUTIL_EXPORT_LIBS="-l${ldaplib} ${extralib}"
5255 apr_addto_bugger="-l${ldaplib} ${extralib}"
5256 for i in $apr_addto_bugger; do
5257 apr_addto_duplicate="0"
5258 for j in $APRUTIL_EXPORT_LIBS; do
5259 if test "x$i" = "x$j"; then
5260 apr_addto_duplicate="1"
5264 if test $apr_addto_duplicate = "0"; then
5265 echo " adding \"$i\" to APRUTIL_EXPORT_LIBS"
5266 APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $i"
5272 if test "x$APRUTIL_LIBS" = "x"; then
5273 echo " setting APRUTIL_LIBS to \"-l${ldaplib} ${extralib}\""
5274 APRUTIL_LIBS="-l${ldaplib} ${extralib}"
5276 apr_addto_bugger="-l${ldaplib} ${extralib}"
5277 for i in $apr_addto_bugger; do
5278 apr_addto_duplicate="0"
5279 for j in $APRUTIL_LIBS; do
5280 if test "x$i" = "x$j"; then
5281 apr_addto_duplicate="1"
5285 if test $apr_addto_duplicate = "0"; then
5286 echo " adding \"$i\" to APRUTIL_LIBS"
5287 APRUTIL_LIBS="$APRUTIL_LIBS $i"
5292 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh`
5293 { $as_echo "$as_me:$LINENO: checking for ldapssl_install_routines in -l${ldaplib}" >&5
5294 $as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; }
5295 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
5296 $as_echo_n "(cached) " >&6
5298 ac_check_lib_save_LIBS=$LIBS
5299 LIBS="-l${ldaplib} ${extralib} $LIBS"
5300 cat >conftest.$ac_ext <<_ACEOF
5303 cat confdefs.h >>conftest.$ac_ext
5304 cat >>conftest.$ac_ext <<_ACEOF
5305 /* end confdefs.h. */
5307 /* Override any GCC internal prototype to avoid an error.
5308 Use char because int might match the return type of a GCC
5309 builtin and then its argument prototype would still apply. */
5313 char ldapssl_install_routines ();
5317 return ldapssl_install_routines ();
5322 rm -f conftest.$ac_objext conftest$ac_exeext
5323 if { (ac_try="$ac_link"
5325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5326 *) ac_try_echo=$ac_try;;
5328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5329 $as_echo "$ac_try_echo") >&5
5330 (eval "$ac_link") 2>conftest.er1
5332 grep -v '^ *+' conftest.er1 >conftest.err
5334 cat conftest.err >&5
5335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); } && {
5337 test -z "$ac_c_werror_flag" ||
5338 test ! -s conftest.err
5339 } && test -s conftest$ac_exeext && {
5340 test "$cross_compiling" = yes ||
5341 $as_test_x conftest$ac_exeext
5343 eval "$as_ac_Lib=yes"
5345 $as_echo "$as_me: failed program was:" >&5
5346 sed 's/^/| /' conftest.$ac_ext >&5
5348 eval "$as_ac_Lib=no"
5351 rm -rf conftest.dSYM
5352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5353 conftest$ac_exeext conftest.$ac_ext
5354 LIBS=$ac_check_lib_save_LIBS
5356 ac_res=`eval 'as_val=${'$as_ac_Lib'}
5357 $as_echo "$as_val"'`
5358 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5359 $as_echo "$ac_res" >&6; }
5360 as_val=`eval 'as_val=${'$as_ac_Lib'}
5361 $as_echo "$as_val"'`
5362 if test "x$as_val" = x""yes; then
5363 apu_has_ldap_netscape_ssl="1"
5366 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh`
5367 { $as_echo "$as_me:$LINENO: checking for ldap_start_tls_s in -l${ldaplib}" >&5
5368 $as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; }
5369 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
5370 $as_echo_n "(cached) " >&6
5372 ac_check_lib_save_LIBS=$LIBS
5373 LIBS="-l${ldaplib} ${extralib} $LIBS"
5374 cat >conftest.$ac_ext <<_ACEOF
5377 cat confdefs.h >>conftest.$ac_ext
5378 cat >>conftest.$ac_ext <<_ACEOF
5379 /* end confdefs.h. */
5381 /* Override any GCC internal prototype to avoid an error.
5382 Use char because int might match the return type of a GCC
5383 builtin and then its argument prototype would still apply. */
5387 char ldap_start_tls_s ();
5391 return ldap_start_tls_s ();
5396 rm -f conftest.$ac_objext conftest$ac_exeext
5397 if { (ac_try="$ac_link"
5399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5400 *) ac_try_echo=$ac_try;;
5402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5403 $as_echo "$ac_try_echo") >&5
5404 (eval "$ac_link") 2>conftest.er1
5406 grep -v '^ *+' conftest.er1 >conftest.err
5408 cat conftest.err >&5
5409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); } && {
5411 test -z "$ac_c_werror_flag" ||
5412 test ! -s conftest.err
5413 } && test -s conftest$ac_exeext && {
5414 test "$cross_compiling" = yes ||
5415 $as_test_x conftest$ac_exeext
5417 eval "$as_ac_Lib=yes"
5419 $as_echo "$as_me: failed program was:" >&5
5420 sed 's/^/| /' conftest.$ac_ext >&5
5422 eval "$as_ac_Lib=no"
5425 rm -rf conftest.dSYM
5426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5427 conftest$ac_exeext conftest.$ac_ext
5428 LIBS=$ac_check_lib_save_LIBS
5430 ac_res=`eval 'as_val=${'$as_ac_Lib'}
5431 $as_echo "$as_val"'`
5432 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5433 $as_echo "$ac_res" >&6; }
5434 as_val=`eval 'as_val=${'$as_ac_Lib'}
5435 $as_echo "$as_val"'`
5436 if test "x$as_val" = x""yes; then
5437 apu_has_ldap_starttls="1"
5447 if test ${apu_has_ldap} != "1"; then
5450 unset ac_cv_lib_${ldaplib}_ldap_init
5451 unset ac_cv_lib_${ldaplib}___ldap_init
5452 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh`
5453 { $as_echo "$as_me:$LINENO: checking for ldap_init in -l${ldaplib}" >&5
5454 $as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; }
5455 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
5456 $as_echo_n "(cached) " >&6
5458 ac_check_lib_save_LIBS=$LIBS
5459 LIBS="-l${ldaplib} ${extralib} $LIBS"
5460 cat >conftest.$ac_ext <<_ACEOF
5463 cat confdefs.h >>conftest.$ac_ext
5464 cat >>conftest.$ac_ext <<_ACEOF
5465 /* end confdefs.h. */
5467 /* Override any GCC internal prototype to avoid an error.
5468 Use char because int might match the return type of a GCC
5469 builtin and then its argument prototype would still apply. */
5477 return ldap_init ();
5482 rm -f conftest.$ac_objext conftest$ac_exeext
5483 if { (ac_try="$ac_link"
5485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5486 *) ac_try_echo=$ac_try;;
5488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5489 $as_echo "$ac_try_echo") >&5
5490 (eval "$ac_link") 2>conftest.er1
5492 grep -v '^ *+' conftest.er1 >conftest.err
5494 cat conftest.err >&5
5495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496 (exit $ac_status); } && {
5497 test -z "$ac_c_werror_flag" ||
5498 test ! -s conftest.err
5499 } && test -s conftest$ac_exeext && {
5500 test "$cross_compiling" = yes ||
5501 $as_test_x conftest$ac_exeext
5503 eval "$as_ac_Lib=yes"
5505 $as_echo "$as_me: failed program was:" >&5
5506 sed 's/^/| /' conftest.$ac_ext >&5
5508 eval "$as_ac_Lib=no"
5511 rm -rf conftest.dSYM
5512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5513 conftest$ac_exeext conftest.$ac_ext
5514 LIBS=$ac_check_lib_save_LIBS
5516 ac_res=`eval 'as_val=${'$as_ac_Lib'}
5517 $as_echo "$as_val"'`
5518 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5519 $as_echo "$ac_res" >&6; }
5520 as_val=`eval 'as_val=${'$as_ac_Lib'}
5521 $as_echo "$as_val"'`
5522 if test "x$as_val" = x""yes; then
5525 if test "x$APRUTIL_EXPORT_LIBS" = "x"; then
5526 echo " setting APRUTIL_EXPORT_LIBS to \"-l${ldaplib} ${extralib}\""
5527 APRUTIL_EXPORT_LIBS="-l${ldaplib} ${extralib}"
5529 apr_addto_bugger="-l${ldaplib} ${extralib}"
5530 for i in $apr_addto_bugger; do
5531 apr_addto_duplicate="0"
5532 for j in $APRUTIL_EXPORT_LIBS; do
5533 if test "x$i" = "x$j"; then
5534 apr_addto_duplicate="1"
5538 if test $apr_addto_duplicate = "0"; then
5539 echo " adding \"$i\" to APRUTIL_EXPORT_LIBS"
5540 APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $i"
5546 if test "x$APRUTIL_LIBS" = "x"; then
5547 echo " setting APRUTIL_LIBS to \"-l${ldaplib} ${extralib}\""
5548 APRUTIL_LIBS="-l${ldaplib} ${extralib}"
5550 apr_addto_bugger="-l${ldaplib} ${extralib}"
5551 for i in $apr_addto_bugger; do
5552 apr_addto_duplicate="0"
5553 for j in $APRUTIL_LIBS; do
5554 if test "x$i" = "x$j"; then
5555 apr_addto_duplicate="1"
5559 if test $apr_addto_duplicate = "0"; then
5560 echo " adding \"$i\" to APRUTIL_LIBS"
5561 APRUTIL_LIBS="$APRUTIL_LIBS $i"
5566 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh`
5567 { $as_echo "$as_me:$LINENO: checking for ldapssl_install_routines in -l${ldaplib}" >&5
5568 $as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; }
5569 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
5570 $as_echo_n "(cached) " >&6
5572 ac_check_lib_save_LIBS=$LIBS
5573 LIBS="-l${ldaplib} ${extralib} $LIBS"
5574 cat >conftest.$ac_ext <<_ACEOF
5577 cat confdefs.h >>conftest.$ac_ext
5578 cat >>conftest.$ac_ext <<_ACEOF
5579 /* end confdefs.h. */
5581 /* Override any GCC internal prototype to avoid an error.
5582 Use char because int might match the return type of a GCC
5583 builtin and then its argument prototype would still apply. */
5587 char ldapssl_install_routines ();
5591 return ldapssl_install_routines ();
5596 rm -f conftest.$ac_objext conftest$ac_exeext
5597 if { (ac_try="$ac_link"
5599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5600 *) ac_try_echo=$ac_try;;
5602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5603 $as_echo "$ac_try_echo") >&5
5604 (eval "$ac_link") 2>conftest.er1
5606 grep -v '^ *+' conftest.er1 >conftest.err
5608 cat conftest.err >&5
5609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610 (exit $ac_status); } && {
5611 test -z "$ac_c_werror_flag" ||
5612 test ! -s conftest.err
5613 } && test -s conftest$ac_exeext && {
5614 test "$cross_compiling" = yes ||
5615 $as_test_x conftest$ac_exeext
5617 eval "$as_ac_Lib=yes"
5619 $as_echo "$as_me: failed program was:" >&5
5620 sed 's/^/| /' conftest.$ac_ext >&5
5622 eval "$as_ac_Lib=no"
5625 rm -rf conftest.dSYM
5626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5627 conftest$ac_exeext conftest.$ac_ext
5628 LIBS=$ac_check_lib_save_LIBS
5630 ac_res=`eval 'as_val=${'$as_ac_Lib'}
5631 $as_echo "$as_val"'`
5632 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5633 $as_echo "$ac_res" >&6; }
5634 as_val=`eval 'as_val=${'$as_ac_Lib'}
5635 $as_echo "$as_val"'`
5636 if test "x$as_val" = x""yes; then
5637 apu_has_ldap_netscape_ssl="1"
5640 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh`
5641 { $as_echo "$as_me:$LINENO: checking for ldap_start_tls_s in -l${ldaplib}" >&5
5642 $as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; }
5643 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
5644 $as_echo_n "(cached) " >&6
5646 ac_check_lib_save_LIBS=$LIBS
5647 LIBS="-l${ldaplib} ${extralib} $LIBS"
5648 cat >conftest.$ac_ext <<_ACEOF
5651 cat confdefs.h >>conftest.$ac_ext
5652 cat >>conftest.$ac_ext <<_ACEOF
5653 /* end confdefs.h. */
5655 /* Override any GCC internal prototype to avoid an error.
5656 Use char because int might match the return type of a GCC
5657 builtin and then its argument prototype would still apply. */
5661 char ldap_start_tls_s ();
5665 return ldap_start_tls_s ();
5670 rm -f conftest.$ac_objext conftest$ac_exeext
5671 if { (ac_try="$ac_link"
5673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5674 *) ac_try_echo=$ac_try;;
5676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5677 $as_echo "$ac_try_echo") >&5
5678 (eval "$ac_link") 2>conftest.er1
5680 grep -v '^ *+' conftest.er1 >conftest.err
5682 cat conftest.err >&5
5683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); } && {
5685 test -z "$ac_c_werror_flag" ||
5686 test ! -s conftest.err
5687 } && test -s conftest$ac_exeext && {
5688 test "$cross_compiling" = yes ||
5689 $as_test_x conftest$ac_exeext
5691 eval "$as_ac_Lib=yes"
5693 $as_echo "$as_me: failed program was:" >&5
5694 sed 's/^/| /' conftest.$ac_ext >&5
5696 eval "$as_ac_Lib=no"
5699 rm -rf conftest.dSYM
5700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5701 conftest$ac_exeext conftest.$ac_ext
5702 LIBS=$ac_check_lib_save_LIBS
5704 ac_res=`eval 'as_val=${'$as_ac_Lib'}
5705 $as_echo "$as_val"'`
5706 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5707 $as_echo "$ac_res" >&6; }
5708 as_val=`eval 'as_val=${'$as_ac_Lib'}
5709 $as_echo "$as_val"'`
5710 if test "x$as_val" = x""yes; then
5711 apu_has_ldap_starttls="1"
5721 if test ${apu_has_ldap} != "1"; then
5724 unset ac_cv_lib_${ldaplib}_ldap_init
5725 unset ac_cv_lib_${ldaplib}___ldap_init
5726 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh`
5727 { $as_echo "$as_me:$LINENO: checking for ldap_init in -l${ldaplib}" >&5
5728 $as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; }
5729 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
5730 $as_echo_n "(cached) " >&6
5732 ac_check_lib_save_LIBS=$LIBS
5733 LIBS="-l${ldaplib} ${extralib} $LIBS"
5734 cat >conftest.$ac_ext <<_ACEOF
5737 cat confdefs.h >>conftest.$ac_ext
5738 cat >>conftest.$ac_ext <<_ACEOF
5739 /* end confdefs.h. */
5741 /* Override any GCC internal prototype to avoid an error.
5742 Use char because int might match the return type of a GCC
5743 builtin and then its argument prototype would still apply. */
5751 return ldap_init ();
5756 rm -f conftest.$ac_objext conftest$ac_exeext
5757 if { (ac_try="$ac_link"
5759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5760 *) ac_try_echo=$ac_try;;
5762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5763 $as_echo "$ac_try_echo") >&5
5764 (eval "$ac_link") 2>conftest.er1
5766 grep -v '^ *+' conftest.er1 >conftest.err
5768 cat conftest.err >&5
5769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); } && {
5771 test -z "$ac_c_werror_flag" ||
5772 test ! -s conftest.err
5773 } && test -s conftest$ac_exeext && {
5774 test "$cross_compiling" = yes ||
5775 $as_test_x conftest$ac_exeext
5777 eval "$as_ac_Lib=yes"
5779 $as_echo "$as_me: failed program was:" >&5
5780 sed 's/^/| /' conftest.$ac_ext >&5
5782 eval "$as_ac_Lib=no"
5785 rm -rf conftest.dSYM
5786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5787 conftest$ac_exeext conftest.$ac_ext
5788 LIBS=$ac_check_lib_save_LIBS
5790 ac_res=`eval 'as_val=${'$as_ac_Lib'}
5791 $as_echo "$as_val"'`
5792 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5793 $as_echo "$ac_res" >&6; }
5794 as_val=`eval 'as_val=${'$as_ac_Lib'}
5795 $as_echo "$as_val"'`
5796 if test "x$as_val" = x""yes; then
5799 if test "x$APRUTIL_EXPORT_LIBS" = "x"; then
5800 echo " setting APRUTIL_EXPORT_LIBS to \"-l${ldaplib} ${extralib}\""
5801 APRUTIL_EXPORT_LIBS="-l${ldaplib} ${extralib}"
5803 apr_addto_bugger="-l${ldaplib} ${extralib}"
5804 for i in $apr_addto_bugger; do
5805 apr_addto_duplicate="0"
5806 for j in $APRUTIL_EXPORT_LIBS; do
5807 if test "x$i" = "x$j"; then
5808 apr_addto_duplicate="1"
5812 if test $apr_addto_duplicate = "0"; then
5813 echo " adding \"$i\" to APRUTIL_EXPORT_LIBS"
5814 APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $i"
5820 if test "x$APRUTIL_LIBS" = "x"; then
5821 echo " setting APRUTIL_LIBS to \"-l${ldaplib} ${extralib}\""
5822 APRUTIL_LIBS="-l${ldaplib} ${extralib}"
5824 apr_addto_bugger="-l${ldaplib} ${extralib}"
5825 for i in $apr_addto_bugger; do
5826 apr_addto_duplicate="0"
5827 for j in $APRUTIL_LIBS; do
5828 if test "x$i" = "x$j"; then
5829 apr_addto_duplicate="1"
5833 if test $apr_addto_duplicate = "0"; then
5834 echo " adding \"$i\" to APRUTIL_LIBS"
5835 APRUTIL_LIBS="$APRUTIL_LIBS $i"
5840 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh`
5841 { $as_echo "$as_me:$LINENO: checking for ldapssl_install_routines in -l${ldaplib}" >&5
5842 $as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; }
5843 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
5844 $as_echo_n "(cached) " >&6
5846 ac_check_lib_save_LIBS=$LIBS
5847 LIBS="-l${ldaplib} ${extralib} $LIBS"
5848 cat >conftest.$ac_ext <<_ACEOF
5851 cat confdefs.h >>conftest.$ac_ext
5852 cat >>conftest.$ac_ext <<_ACEOF
5853 /* end confdefs.h. */
5855 /* Override any GCC internal prototype to avoid an error.
5856 Use char because int might match the return type of a GCC
5857 builtin and then its argument prototype would still apply. */
5861 char ldapssl_install_routines ();
5865 return ldapssl_install_routines ();
5870 rm -f conftest.$ac_objext conftest$ac_exeext
5871 if { (ac_try="$ac_link"
5873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5874 *) ac_try_echo=$ac_try;;
5876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5877 $as_echo "$ac_try_echo") >&5
5878 (eval "$ac_link") 2>conftest.er1
5880 grep -v '^ *+' conftest.er1 >conftest.err
5882 cat conftest.err >&5
5883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); } && {
5885 test -z "$ac_c_werror_flag" ||
5886 test ! -s conftest.err
5887 } && test -s conftest$ac_exeext && {
5888 test "$cross_compiling" = yes ||
5889 $as_test_x conftest$ac_exeext
5891 eval "$as_ac_Lib=yes"
5893 $as_echo "$as_me: failed program was:" >&5
5894 sed 's/^/| /' conftest.$ac_ext >&5
5896 eval "$as_ac_Lib=no"
5899 rm -rf conftest.dSYM
5900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5901 conftest$ac_exeext conftest.$ac_ext
5902 LIBS=$ac_check_lib_save_LIBS
5904 ac_res=`eval 'as_val=${'$as_ac_Lib'}
5905 $as_echo "$as_val"'`
5906 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5907 $as_echo "$ac_res" >&6; }
5908 as_val=`eval 'as_val=${'$as_ac_Lib'}
5909 $as_echo "$as_val"'`
5910 if test "x$as_val" = x""yes; then
5911 apu_has_ldap_netscape_ssl="1"
5914 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh`
5915 { $as_echo "$as_me:$LINENO: checking for ldap_start_tls_s in -l${ldaplib}" >&5
5916 $as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; }
5917 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
5918 $as_echo_n "(cached) " >&6
5920 ac_check_lib_save_LIBS=$LIBS
5921 LIBS="-l${ldaplib} ${extralib} $LIBS"
5922 cat >conftest.$ac_ext <<_ACEOF
5925 cat confdefs.h >>conftest.$ac_ext
5926 cat >>conftest.$ac_ext <<_ACEOF
5927 /* end confdefs.h. */
5929 /* Override any GCC internal prototype to avoid an error.
5930 Use char because int might match the return type of a GCC
5931 builtin and then its argument prototype would still apply. */
5935 char ldap_start_tls_s ();
5939 return ldap_start_tls_s ();
5944 rm -f conftest.$ac_objext conftest$ac_exeext
5945 if { (ac_try="$ac_link"
5947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5948 *) ac_try_echo=$ac_try;;
5950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5951 $as_echo "$ac_try_echo") >&5
5952 (eval "$ac_link") 2>conftest.er1
5954 grep -v '^ *+' conftest.er1 >conftest.err
5956 cat conftest.err >&5
5957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); } && {
5959 test -z "$ac_c_werror_flag" ||
5960 test ! -s conftest.err
5961 } && test -s conftest$ac_exeext && {
5962 test "$cross_compiling" = yes ||
5963 $as_test_x conftest$ac_exeext
5965 eval "$as_ac_Lib=yes"
5967 $as_echo "$as_me: failed program was:" >&5
5968 sed 's/^/| /' conftest.$ac_ext >&5
5970 eval "$as_ac_Lib=no"
5973 rm -rf conftest.dSYM
5974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5975 conftest$ac_exeext conftest.$ac_ext
5976 LIBS=$ac_check_lib_save_LIBS
5978 ac_res=`eval 'as_val=${'$as_ac_Lib'}
5979 $as_echo "$as_val"'`
5980 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5981 $as_echo "$ac_res" >&6; }
5982 as_val=`eval 'as_val=${'$as_ac_Lib'}
5983 $as_echo "$as_val"'`
5984 if test "x$as_val" = x""yes; then
5985 apu_has_ldap_starttls="1"
5995 if test ${apu_has_ldap} != "1"; then
5997 extralib="-llber -lresolv"
5998 unset ac_cv_lib_${ldaplib}_ldap_init
5999 unset ac_cv_lib_${ldaplib}___ldap_init
6000 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh`
6001 { $as_echo "$as_me:$LINENO: checking for ldap_init in -l${ldaplib}" >&5
6002 $as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; }
6003 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
6004 $as_echo_n "(cached) " >&6
6006 ac_check_lib_save_LIBS=$LIBS
6007 LIBS="-l${ldaplib} ${extralib} $LIBS"
6008 cat >conftest.$ac_ext <<_ACEOF
6011 cat confdefs.h >>conftest.$ac_ext
6012 cat >>conftest.$ac_ext <<_ACEOF
6013 /* end confdefs.h. */
6015 /* Override any GCC internal prototype to avoid an error.
6016 Use char because int might match the return type of a GCC
6017 builtin and then its argument prototype would still apply. */
6025 return ldap_init ();
6030 rm -f conftest.$ac_objext conftest$ac_exeext
6031 if { (ac_try="$ac_link"
6033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6034 *) ac_try_echo=$ac_try;;
6036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6037 $as_echo "$ac_try_echo") >&5
6038 (eval "$ac_link") 2>conftest.er1
6040 grep -v '^ *+' conftest.er1 >conftest.err
6042 cat conftest.err >&5
6043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044 (exit $ac_status); } && {
6045 test -z "$ac_c_werror_flag" ||
6046 test ! -s conftest.err
6047 } && test -s conftest$ac_exeext && {
6048 test "$cross_compiling" = yes ||
6049 $as_test_x conftest$ac_exeext
6051 eval "$as_ac_Lib=yes"
6053 $as_echo "$as_me: failed program was:" >&5
6054 sed 's/^/| /' conftest.$ac_ext >&5
6056 eval "$as_ac_Lib=no"
6059 rm -rf conftest.dSYM
6060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6061 conftest$ac_exeext conftest.$ac_ext
6062 LIBS=$ac_check_lib_save_LIBS
6064 ac_res=`eval 'as_val=${'$as_ac_Lib'}
6065 $as_echo "$as_val"'`
6066 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6067 $as_echo "$ac_res" >&6; }
6068 as_val=`eval 'as_val=${'$as_ac_Lib'}
6069 $as_echo "$as_val"'`
6070 if test "x$as_val" = x""yes; then
6073 if test "x$APRUTIL_EXPORT_LIBS" = "x"; then
6074 echo " setting APRUTIL_EXPORT_LIBS to \"-l${ldaplib} ${extralib}\""
6075 APRUTIL_EXPORT_LIBS="-l${ldaplib} ${extralib}"
6077 apr_addto_bugger="-l${ldaplib} ${extralib}"
6078 for i in $apr_addto_bugger; do
6079 apr_addto_duplicate="0"
6080 for j in $APRUTIL_EXPORT_LIBS; do
6081 if test "x$i" = "x$j"; then
6082 apr_addto_duplicate="1"
6086 if test $apr_addto_duplicate = "0"; then
6087 echo " adding \"$i\" to APRUTIL_EXPORT_LIBS"
6088 APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $i"
6094 if test "x$APRUTIL_LIBS" = "x"; then
6095 echo " setting APRUTIL_LIBS to \"-l${ldaplib} ${extralib}\""
6096 APRUTIL_LIBS="-l${ldaplib} ${extralib}"
6098 apr_addto_bugger="-l${ldaplib} ${extralib}"
6099 for i in $apr_addto_bugger; do
6100 apr_addto_duplicate="0"
6101 for j in $APRUTIL_LIBS; do
6102 if test "x$i" = "x$j"; then
6103 apr_addto_duplicate="1"
6107 if test $apr_addto_duplicate = "0"; then
6108 echo " adding \"$i\" to APRUTIL_LIBS"
6109 APRUTIL_LIBS="$APRUTIL_LIBS $i"
6114 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh`
6115 { $as_echo "$as_me:$LINENO: checking for ldapssl_install_routines in -l${ldaplib}" >&5
6116 $as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; }
6117 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
6118 $as_echo_n "(cached) " >&6
6120 ac_check_lib_save_LIBS=$LIBS
6121 LIBS="-l${ldaplib} ${extralib} $LIBS"
6122 cat >conftest.$ac_ext <<_ACEOF
6125 cat confdefs.h >>conftest.$ac_ext
6126 cat >>conftest.$ac_ext <<_ACEOF
6127 /* end confdefs.h. */
6129 /* Override any GCC internal prototype to avoid an error.
6130 Use char because int might match the return type of a GCC
6131 builtin and then its argument prototype would still apply. */
6135 char ldapssl_install_routines ();
6139 return ldapssl_install_routines ();
6144 rm -f conftest.$ac_objext conftest$ac_exeext
6145 if { (ac_try="$ac_link"
6147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6148 *) ac_try_echo=$ac_try;;
6150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6151 $as_echo "$ac_try_echo") >&5
6152 (eval "$ac_link") 2>conftest.er1
6154 grep -v '^ *+' conftest.er1 >conftest.err
6156 cat conftest.err >&5
6157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158 (exit $ac_status); } && {
6159 test -z "$ac_c_werror_flag" ||
6160 test ! -s conftest.err
6161 } && test -s conftest$ac_exeext && {
6162 test "$cross_compiling" = yes ||
6163 $as_test_x conftest$ac_exeext
6165 eval "$as_ac_Lib=yes"
6167 $as_echo "$as_me: failed program was:" >&5
6168 sed 's/^/| /' conftest.$ac_ext >&5
6170 eval "$as_ac_Lib=no"
6173 rm -rf conftest.dSYM
6174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6175 conftest$ac_exeext conftest.$ac_ext
6176 LIBS=$ac_check_lib_save_LIBS
6178 ac_res=`eval 'as_val=${'$as_ac_Lib'}
6179 $as_echo "$as_val"'`
6180 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6181 $as_echo "$ac_res" >&6; }
6182 as_val=`eval 'as_val=${'$as_ac_Lib'}
6183 $as_echo "$as_val"'`
6184 if test "x$as_val" = x""yes; then
6185 apu_has_ldap_netscape_ssl="1"
6188 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh`
6189 { $as_echo "$as_me:$LINENO: checking for ldap_start_tls_s in -l${ldaplib}" >&5
6190 $as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; }
6191 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
6192 $as_echo_n "(cached) " >&6
6194 ac_check_lib_save_LIBS=$LIBS
6195 LIBS="-l${ldaplib} ${extralib} $LIBS"
6196 cat >conftest.$ac_ext <<_ACEOF
6199 cat confdefs.h >>conftest.$ac_ext
6200 cat >>conftest.$ac_ext <<_ACEOF
6201 /* end confdefs.h. */
6203 /* Override any GCC internal prototype to avoid an error.
6204 Use char because int might match the return type of a GCC
6205 builtin and then its argument prototype would still apply. */
6209 char ldap_start_tls_s ();
6213 return ldap_start_tls_s ();
6218 rm -f conftest.$ac_objext conftest$ac_exeext
6219 if { (ac_try="$ac_link"
6221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6222 *) ac_try_echo=$ac_try;;
6224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6225 $as_echo "$ac_try_echo") >&5
6226 (eval "$ac_link") 2>conftest.er1
6228 grep -v '^ *+' conftest.er1 >conftest.err
6230 cat conftest.err >&5
6231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232 (exit $ac_status); } && {
6233 test -z "$ac_c_werror_flag" ||
6234 test ! -s conftest.err
6235 } && test -s conftest$ac_exeext && {
6236 test "$cross_compiling" = yes ||
6237 $as_test_x conftest$ac_exeext
6239 eval "$as_ac_Lib=yes"
6241 $as_echo "$as_me: failed program was:" >&5
6242 sed 's/^/| /' conftest.$ac_ext >&5
6244 eval "$as_ac_Lib=no"
6247 rm -rf conftest.dSYM
6248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6249 conftest$ac_exeext conftest.$ac_ext
6250 LIBS=$ac_check_lib_save_LIBS
6252 ac_res=`eval 'as_val=${'$as_ac_Lib'}
6253 $as_echo "$as_val"'`
6254 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6255 $as_echo "$ac_res" >&6; }
6256 as_val=`eval 'as_val=${'$as_ac_Lib'}
6257 $as_echo "$as_val"'`
6258 if test "x$as_val" = x""yes; then
6259 apu_has_ldap_starttls="1"
6269 if test ${apu_has_ldap} != "1"; then
6271 extralib="-llber -lresolv -lsocket -lnsl"
6272 unset ac_cv_lib_${ldaplib}_ldap_init
6273 unset ac_cv_lib_${ldaplib}___ldap_init
6274 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh`
6275 { $as_echo "$as_me:$LINENO: checking for ldap_init in -l${ldaplib}" >&5
6276 $as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; }
6277 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
6278 $as_echo_n "(cached) " >&6
6280 ac_check_lib_save_LIBS=$LIBS
6281 LIBS="-l${ldaplib} ${extralib} $LIBS"
6282 cat >conftest.$ac_ext <<_ACEOF
6285 cat confdefs.h >>conftest.$ac_ext
6286 cat >>conftest.$ac_ext <<_ACEOF
6287 /* end confdefs.h. */
6289 /* Override any GCC internal prototype to avoid an error.
6290 Use char because int might match the return type of a GCC
6291 builtin and then its argument prototype would still apply. */
6299 return ldap_init ();
6304 rm -f conftest.$ac_objext conftest$ac_exeext
6305 if { (ac_try="$ac_link"
6307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6308 *) ac_try_echo=$ac_try;;
6310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6311 $as_echo "$ac_try_echo") >&5
6312 (eval "$ac_link") 2>conftest.er1
6314 grep -v '^ *+' conftest.er1 >conftest.err
6316 cat conftest.err >&5
6317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); } && {
6319 test -z "$ac_c_werror_flag" ||
6320 test ! -s conftest.err
6321 } && test -s conftest$ac_exeext && {
6322 test "$cross_compiling" = yes ||
6323 $as_test_x conftest$ac_exeext
6325 eval "$as_ac_Lib=yes"
6327 $as_echo "$as_me: failed program was:" >&5
6328 sed 's/^/| /' conftest.$ac_ext >&5
6330 eval "$as_ac_Lib=no"
6333 rm -rf conftest.dSYM
6334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6335 conftest$ac_exeext conftest.$ac_ext
6336 LIBS=$ac_check_lib_save_LIBS
6338 ac_res=`eval 'as_val=${'$as_ac_Lib'}
6339 $as_echo "$as_val"'`
6340 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6341 $as_echo "$ac_res" >&6; }
6342 as_val=`eval 'as_val=${'$as_ac_Lib'}
6343 $as_echo "$as_val"'`
6344 if test "x$as_val" = x""yes; then
6347 if test "x$APRUTIL_EXPORT_LIBS" = "x"; then
6348 echo " setting APRUTIL_EXPORT_LIBS to \"-l${ldaplib} ${extralib}\""
6349 APRUTIL_EXPORT_LIBS="-l${ldaplib} ${extralib}"
6351 apr_addto_bugger="-l${ldaplib} ${extralib}"
6352 for i in $apr_addto_bugger; do
6353 apr_addto_duplicate="0"
6354 for j in $APRUTIL_EXPORT_LIBS; do
6355 if test "x$i" = "x$j"; then
6356 apr_addto_duplicate="1"
6360 if test $apr_addto_duplicate = "0"; then
6361 echo " adding \"$i\" to APRUTIL_EXPORT_LIBS"
6362 APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $i"
6368 if test "x$APRUTIL_LIBS" = "x"; then
6369 echo " setting APRUTIL_LIBS to \"-l${ldaplib} ${extralib}\""
6370 APRUTIL_LIBS="-l${ldaplib} ${extralib}"
6372 apr_addto_bugger="-l${ldaplib} ${extralib}"
6373 for i in $apr_addto_bugger; do
6374 apr_addto_duplicate="0"
6375 for j in $APRUTIL_LIBS; do
6376 if test "x$i" = "x$j"; then
6377 apr_addto_duplicate="1"
6381 if test $apr_addto_duplicate = "0"; then
6382 echo " adding \"$i\" to APRUTIL_LIBS"
6383 APRUTIL_LIBS="$APRUTIL_LIBS $i"
6388 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh`
6389 { $as_echo "$as_me:$LINENO: checking for ldapssl_install_routines in -l${ldaplib}" >&5
6390 $as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; }
6391 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
6392 $as_echo_n "(cached) " >&6
6394 ac_check_lib_save_LIBS=$LIBS
6395 LIBS="-l${ldaplib} ${extralib} $LIBS"
6396 cat >conftest.$ac_ext <<_ACEOF
6399 cat confdefs.h >>conftest.$ac_ext
6400 cat >>conftest.$ac_ext <<_ACEOF
6401 /* end confdefs.h. */
6403 /* Override any GCC internal prototype to avoid an error.
6404 Use char because int might match the return type of a GCC
6405 builtin and then its argument prototype would still apply. */
6409 char ldapssl_install_routines ();
6413 return ldapssl_install_routines ();
6418 rm -f conftest.$ac_objext conftest$ac_exeext
6419 if { (ac_try="$ac_link"
6421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6422 *) ac_try_echo=$ac_try;;
6424 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6425 $as_echo "$ac_try_echo") >&5
6426 (eval "$ac_link") 2>conftest.er1
6428 grep -v '^ *+' conftest.er1 >conftest.err
6430 cat conftest.err >&5
6431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); } && {
6433 test -z "$ac_c_werror_flag" ||
6434 test ! -s conftest.err
6435 } && test -s conftest$ac_exeext && {
6436 test "$cross_compiling" = yes ||
6437 $as_test_x conftest$ac_exeext
6439 eval "$as_ac_Lib=yes"
6441 $as_echo "$as_me: failed program was:" >&5
6442 sed 's/^/| /' conftest.$ac_ext >&5
6444 eval "$as_ac_Lib=no"
6447 rm -rf conftest.dSYM
6448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6449 conftest$ac_exeext conftest.$ac_ext
6450 LIBS=$ac_check_lib_save_LIBS
6452 ac_res=`eval 'as_val=${'$as_ac_Lib'}
6453 $as_echo "$as_val"'`
6454 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6455 $as_echo "$ac_res" >&6; }
6456 as_val=`eval 'as_val=${'$as_ac_Lib'}
6457 $as_echo "$as_val"'`
6458 if test "x$as_val" = x""yes; then
6459 apu_has_ldap_netscape_ssl="1"
6462 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh`
6463 { $as_echo "$as_me:$LINENO: checking for ldap_start_tls_s in -l${ldaplib}" >&5
6464 $as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; }
6465 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
6466 $as_echo_n "(cached) " >&6
6468 ac_check_lib_save_LIBS=$LIBS
6469 LIBS="-l${ldaplib} ${extralib} $LIBS"
6470 cat >conftest.$ac_ext <<_ACEOF
6473 cat confdefs.h >>conftest.$ac_ext
6474 cat >>conftest.$ac_ext <<_ACEOF
6475 /* end confdefs.h. */
6477 /* Override any GCC internal prototype to avoid an error.
6478 Use char because int might match the return type of a GCC
6479 builtin and then its argument prototype would still apply. */
6483 char ldap_start_tls_s ();
6487 return ldap_start_tls_s ();
6492 rm -f conftest.$ac_objext conftest$ac_exeext
6493 if { (ac_try="$ac_link"
6495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6496 *) ac_try_echo=$ac_try;;
6498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6499 $as_echo "$ac_try_echo") >&5
6500 (eval "$ac_link") 2>conftest.er1
6502 grep -v '^ *+' conftest.er1 >conftest.err
6504 cat conftest.err >&5
6505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506 (exit $ac_status); } && {
6507 test -z "$ac_c_werror_flag" ||
6508 test ! -s conftest.err
6509 } && test -s conftest$ac_exeext && {
6510 test "$cross_compiling" = yes ||
6511 $as_test_x conftest$ac_exeext
6513 eval "$as_ac_Lib=yes"
6515 $as_echo "$as_me: failed program was:" >&5
6516 sed 's/^/| /' conftest.$ac_ext >&5
6518 eval "$as_ac_Lib=no"
6521 rm -rf conftest.dSYM
6522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6523 conftest$ac_exeext conftest.$ac_ext
6524 LIBS=$ac_check_lib_save_LIBS
6526 ac_res=`eval 'as_val=${'$as_ac_Lib'}
6527 $as_echo "$as_val"'`
6528 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6529 $as_echo "$ac_res" >&6; }
6530 as_val=`eval 'as_val=${'$as_ac_Lib'}
6531 $as_echo "$as_val"'`
6532 if test "x$as_val" = x""yes; then
6533 apu_has_ldap_starttls="1"
6543 if test ${apu_has_ldap} != "1"; then
6545 extralib="-ldl -lpthread"
6546 unset ac_cv_lib_${ldaplib}_ldap_init
6547 unset ac_cv_lib_${ldaplib}___ldap_init
6548 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh`
6549 { $as_echo "$as_me:$LINENO: checking for ldap_init in -l${ldaplib}" >&5
6550 $as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; }
6551 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
6552 $as_echo_n "(cached) " >&6
6554 ac_check_lib_save_LIBS=$LIBS
6555 LIBS="-l${ldaplib} ${extralib} $LIBS"
6556 cat >conftest.$ac_ext <<_ACEOF
6559 cat confdefs.h >>conftest.$ac_ext
6560 cat >>conftest.$ac_ext <<_ACEOF
6561 /* end confdefs.h. */
6563 /* Override any GCC internal prototype to avoid an error.
6564 Use char because int might match the return type of a GCC
6565 builtin and then its argument prototype would still apply. */
6573 return ldap_init ();
6578 rm -f conftest.$ac_objext conftest$ac_exeext
6579 if { (ac_try="$ac_link"
6581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6582 *) ac_try_echo=$ac_try;;
6584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6585 $as_echo "$ac_try_echo") >&5
6586 (eval "$ac_link") 2>conftest.er1
6588 grep -v '^ *+' conftest.er1 >conftest.err
6590 cat conftest.err >&5
6591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592 (exit $ac_status); } && {
6593 test -z "$ac_c_werror_flag" ||
6594 test ! -s conftest.err
6595 } && test -s conftest$ac_exeext && {
6596 test "$cross_compiling" = yes ||
6597 $as_test_x conftest$ac_exeext
6599 eval "$as_ac_Lib=yes"
6601 $as_echo "$as_me: failed program was:" >&5
6602 sed 's/^/| /' conftest.$ac_ext >&5
6604 eval "$as_ac_Lib=no"
6607 rm -rf conftest.dSYM
6608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6609 conftest$ac_exeext conftest.$ac_ext
6610 LIBS=$ac_check_lib_save_LIBS
6612 ac_res=`eval 'as_val=${'$as_ac_Lib'}
6613 $as_echo "$as_val"'`
6614 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6615 $as_echo "$ac_res" >&6; }
6616 as_val=`eval 'as_val=${'$as_ac_Lib'}
6617 $as_echo "$as_val"'`
6618 if test "x$as_val" = x""yes; then
6621 if test "x$APRUTIL_EXPORT_LIBS" = "x"; then
6622 echo " setting APRUTIL_EXPORT_LIBS to \"-l${ldaplib} ${extralib}\""
6623 APRUTIL_EXPORT_LIBS="-l${ldaplib} ${extralib}"
6625 apr_addto_bugger="-l${ldaplib} ${extralib}"
6626 for i in $apr_addto_bugger; do
6627 apr_addto_duplicate="0"
6628 for j in $APRUTIL_EXPORT_LIBS; do
6629 if test "x$i" = "x$j"; then
6630 apr_addto_duplicate="1"
6634 if test $apr_addto_duplicate = "0"; then
6635 echo " adding \"$i\" to APRUTIL_EXPORT_LIBS"
6636 APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $i"
6642 if test "x$APRUTIL_LIBS" = "x"; then
6643 echo " setting APRUTIL_LIBS to \"-l${ldaplib} ${extralib}\""
6644 APRUTIL_LIBS="-l${ldaplib} ${extralib}"
6646 apr_addto_bugger="-l${ldaplib} ${extralib}"
6647 for i in $apr_addto_bugger; do
6648 apr_addto_duplicate="0"
6649 for j in $APRUTIL_LIBS; do
6650 if test "x$i" = "x$j"; then
6651 apr_addto_duplicate="1"
6655 if test $apr_addto_duplicate = "0"; then
6656 echo " adding \"$i\" to APRUTIL_LIBS"
6657 APRUTIL_LIBS="$APRUTIL_LIBS $i"
6662 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh`
6663 { $as_echo "$as_me:$LINENO: checking for ldapssl_install_routines in -l${ldaplib}" >&5
6664 $as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; }
6665 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
6666 $as_echo_n "(cached) " >&6
6668 ac_check_lib_save_LIBS=$LIBS
6669 LIBS="-l${ldaplib} ${extralib} $LIBS"
6670 cat >conftest.$ac_ext <<_ACEOF
6673 cat confdefs.h >>conftest.$ac_ext
6674 cat >>conftest.$ac_ext <<_ACEOF
6675 /* end confdefs.h. */
6677 /* Override any GCC internal prototype to avoid an error.
6678 Use char because int might match the return type of a GCC
6679 builtin and then its argument prototype would still apply. */
6683 char ldapssl_install_routines ();
6687 return ldapssl_install_routines ();
6692 rm -f conftest.$ac_objext conftest$ac_exeext
6693 if { (ac_try="$ac_link"
6695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6696 *) ac_try_echo=$ac_try;;
6698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6699 $as_echo "$ac_try_echo") >&5
6700 (eval "$ac_link") 2>conftest.er1
6702 grep -v '^ *+' conftest.er1 >conftest.err
6704 cat conftest.err >&5
6705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); } && {
6707 test -z "$ac_c_werror_flag" ||
6708 test ! -s conftest.err
6709 } && test -s conftest$ac_exeext && {
6710 test "$cross_compiling" = yes ||
6711 $as_test_x conftest$ac_exeext
6713 eval "$as_ac_Lib=yes"
6715 $as_echo "$as_me: failed program was:" >&5
6716 sed 's/^/| /' conftest.$ac_ext >&5
6718 eval "$as_ac_Lib=no"
6721 rm -rf conftest.dSYM
6722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6723 conftest$ac_exeext conftest.$ac_ext
6724 LIBS=$ac_check_lib_save_LIBS
6726 ac_res=`eval 'as_val=${'$as_ac_Lib'}
6727 $as_echo "$as_val"'`
6728 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6729 $as_echo "$ac_res" >&6; }
6730 as_val=`eval 'as_val=${'$as_ac_Lib'}
6731 $as_echo "$as_val"'`
6732 if test "x$as_val" = x""yes; then
6733 apu_has_ldap_netscape_ssl="1"
6736 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh`
6737 { $as_echo "$as_me:$LINENO: checking for ldap_start_tls_s in -l${ldaplib}" >&5
6738 $as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; }
6739 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
6740 $as_echo_n "(cached) " >&6
6742 ac_check_lib_save_LIBS=$LIBS
6743 LIBS="-l${ldaplib} ${extralib} $LIBS"
6744 cat >conftest.$ac_ext <<_ACEOF
6747 cat confdefs.h >>conftest.$ac_ext
6748 cat >>conftest.$ac_ext <<_ACEOF
6749 /* end confdefs.h. */
6751 /* Override any GCC internal prototype to avoid an error.
6752 Use char because int might match the return type of a GCC
6753 builtin and then its argument prototype would still apply. */
6757 char ldap_start_tls_s ();
6761 return ldap_start_tls_s ();
6766 rm -f conftest.$ac_objext conftest$ac_exeext
6767 if { (ac_try="$ac_link"
6769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6770 *) ac_try_echo=$ac_try;;
6772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6773 $as_echo "$ac_try_echo") >&5
6774 (eval "$ac_link") 2>conftest.er1
6776 grep -v '^ *+' conftest.er1 >conftest.err
6778 cat conftest.err >&5
6779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); } && {
6781 test -z "$ac_c_werror_flag" ||
6782 test ! -s conftest.err
6783 } && test -s conftest$ac_exeext && {
6784 test "$cross_compiling" = yes ||
6785 $as_test_x conftest$ac_exeext
6787 eval "$as_ac_Lib=yes"
6789 $as_echo "$as_me: failed program was:" >&5
6790 sed 's/^/| /' conftest.$ac_ext >&5
6792 eval "$as_ac_Lib=no"
6795 rm -rf conftest.dSYM
6796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6797 conftest$ac_exeext conftest.$ac_ext
6798 LIBS=$ac_check_lib_save_LIBS
6800 ac_res=`eval 'as_val=${'$as_ac_Lib'}
6801 $as_echo "$as_val"'`
6802 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6803 $as_echo "$ac_res" >&6; }
6804 as_val=`eval 'as_val=${'$as_ac_Lib'}
6805 $as_echo "$as_val"'`
6806 if test "x$as_val" = x""yes; then
6807 apu_has_ldap_starttls="1"
6818 if test ${apu_has_ldap} != "1"; then
6821 unset ac_cv_lib_${ldaplib}_ldap_init
6822 unset ac_cv_lib_${ldaplib}___ldap_init
6823 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh`
6824 { $as_echo "$as_me:$LINENO: checking for ldap_init in -l${ldaplib}" >&5
6825 $as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; }
6826 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
6827 $as_echo_n "(cached) " >&6
6829 ac_check_lib_save_LIBS=$LIBS
6830 LIBS="-l${ldaplib} ${extralib} $LIBS"
6831 cat >conftest.$ac_ext <<_ACEOF
6834 cat confdefs.h >>conftest.$ac_ext
6835 cat >>conftest.$ac_ext <<_ACEOF
6836 /* end confdefs.h. */
6838 /* Override any GCC internal prototype to avoid an error.
6839 Use char because int might match the return type of a GCC
6840 builtin and then its argument prototype would still apply. */
6848 return ldap_init ();
6853 rm -f conftest.$ac_objext conftest$ac_exeext
6854 if { (ac_try="$ac_link"
6856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6857 *) ac_try_echo=$ac_try;;
6859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6860 $as_echo "$ac_try_echo") >&5
6861 (eval "$ac_link") 2>conftest.er1
6863 grep -v '^ *+' conftest.er1 >conftest.err
6865 cat conftest.err >&5
6866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867 (exit $ac_status); } && {
6868 test -z "$ac_c_werror_flag" ||
6869 test ! -s conftest.err
6870 } && test -s conftest$ac_exeext && {
6871 test "$cross_compiling" = yes ||
6872 $as_test_x conftest$ac_exeext
6874 eval "$as_ac_Lib=yes"
6876 $as_echo "$as_me: failed program was:" >&5
6877 sed 's/^/| /' conftest.$ac_ext >&5
6879 eval "$as_ac_Lib=no"
6882 rm -rf conftest.dSYM
6883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6884 conftest$ac_exeext conftest.$ac_ext
6885 LIBS=$ac_check_lib_save_LIBS
6887 ac_res=`eval 'as_val=${'$as_ac_Lib'}
6888 $as_echo "$as_val"'`
6889 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6890 $as_echo "$ac_res" >&6; }
6891 as_val=`eval 'as_val=${'$as_ac_Lib'}
6892 $as_echo "$as_val"'`
6893 if test "x$as_val" = x""yes; then
6896 if test "x$APRUTIL_EXPORT_LIBS" = "x"; then
6897 echo " setting APRUTIL_EXPORT_LIBS to \"-l${ldaplib} ${extralib}\""
6898 APRUTIL_EXPORT_LIBS="-l${ldaplib} ${extralib}"
6900 apr_addto_bugger="-l${ldaplib} ${extralib}"
6901 for i in $apr_addto_bugger; do
6902 apr_addto_duplicate="0"
6903 for j in $APRUTIL_EXPORT_LIBS; do
6904 if test "x$i" = "x$j"; then
6905 apr_addto_duplicate="1"
6909 if test $apr_addto_duplicate = "0"; then
6910 echo " adding \"$i\" to APRUTIL_EXPORT_LIBS"
6911 APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $i"
6917 if test "x$APRUTIL_LIBS" = "x"; then
6918 echo " setting APRUTIL_LIBS to \"-l${ldaplib} ${extralib}\""
6919 APRUTIL_LIBS="-l${ldaplib} ${extralib}"
6921 apr_addto_bugger="-l${ldaplib} ${extralib}"
6922 for i in $apr_addto_bugger; do
6923 apr_addto_duplicate="0"
6924 for j in $APRUTIL_LIBS; do
6925 if test "x$i" = "x$j"; then
6926 apr_addto_duplicate="1"
6930 if test $apr_addto_duplicate = "0"; then
6931 echo " adding \"$i\" to APRUTIL_LIBS"
6932 APRUTIL_LIBS="$APRUTIL_LIBS $i"
6937 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh`
6938 { $as_echo "$as_me:$LINENO: checking for ldapssl_install_routines in -l${ldaplib}" >&5
6939 $as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; }
6940 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
6941 $as_echo_n "(cached) " >&6
6943 ac_check_lib_save_LIBS=$LIBS
6944 LIBS="-l${ldaplib} ${extralib} $LIBS"
6945 cat >conftest.$ac_ext <<_ACEOF
6948 cat confdefs.h >>conftest.$ac_ext
6949 cat >>conftest.$ac_ext <<_ACEOF
6950 /* end confdefs.h. */
6952 /* Override any GCC internal prototype to avoid an error.
6953 Use char because int might match the return type of a GCC
6954 builtin and then its argument prototype would still apply. */
6958 char ldapssl_install_routines ();
6962 return ldapssl_install_routines ();
6967 rm -f conftest.$ac_objext conftest$ac_exeext
6968 if { (ac_try="$ac_link"
6970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6971 *) ac_try_echo=$ac_try;;
6973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6974 $as_echo "$ac_try_echo") >&5
6975 (eval "$ac_link") 2>conftest.er1
6977 grep -v '^ *+' conftest.er1 >conftest.err
6979 cat conftest.err >&5
6980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981 (exit $ac_status); } && {
6982 test -z "$ac_c_werror_flag" ||
6983 test ! -s conftest.err
6984 } && test -s conftest$ac_exeext && {
6985 test "$cross_compiling" = yes ||
6986 $as_test_x conftest$ac_exeext
6988 eval "$as_ac_Lib=yes"
6990 $as_echo "$as_me: failed program was:" >&5
6991 sed 's/^/| /' conftest.$ac_ext >&5
6993 eval "$as_ac_Lib=no"
6996 rm -rf conftest.dSYM
6997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6998 conftest$ac_exeext conftest.$ac_ext
6999 LIBS=$ac_check_lib_save_LIBS
7001 ac_res=`eval 'as_val=${'$as_ac_Lib'}
7002 $as_echo "$as_val"'`
7003 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7004 $as_echo "$ac_res" >&6; }
7005 as_val=`eval 'as_val=${'$as_ac_Lib'}
7006 $as_echo "$as_val"'`
7007 if test "x$as_val" = x""yes; then
7008 apu_has_ldap_netscape_ssl="1"
7011 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh`
7012 { $as_echo "$as_me:$LINENO: checking for ldap_start_tls_s in -l${ldaplib}" >&5
7013 $as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; }
7014 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
7015 $as_echo_n "(cached) " >&6
7017 ac_check_lib_save_LIBS=$LIBS
7018 LIBS="-l${ldaplib} ${extralib} $LIBS"
7019 cat >conftest.$ac_ext <<_ACEOF
7022 cat confdefs.h >>conftest.$ac_ext
7023 cat >>conftest.$ac_ext <<_ACEOF
7024 /* end confdefs.h. */
7026 /* Override any GCC internal prototype to avoid an error.
7027 Use char because int might match the return type of a GCC
7028 builtin and then its argument prototype would still apply. */
7032 char ldap_start_tls_s ();
7036 return ldap_start_tls_s ();
7041 rm -f conftest.$ac_objext conftest$ac_exeext
7042 if { (ac_try="$ac_link"
7044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7045 *) ac_try_echo=$ac_try;;
7047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7048 $as_echo "$ac_try_echo") >&5
7049 (eval "$ac_link") 2>conftest.er1
7051 grep -v '^ *+' conftest.er1 >conftest.err
7053 cat conftest.err >&5
7054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055 (exit $ac_status); } && {
7056 test -z "$ac_c_werror_flag" ||
7057 test ! -s conftest.err
7058 } && test -s conftest$ac_exeext && {
7059 test "$cross_compiling" = yes ||
7060 $as_test_x conftest$ac_exeext
7062 eval "$as_ac_Lib=yes"
7064 $as_echo "$as_me: failed program was:" >&5
7065 sed 's/^/| /' conftest.$ac_ext >&5
7067 eval "$as_ac_Lib=no"
7070 rm -rf conftest.dSYM
7071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7072 conftest$ac_exeext conftest.$ac_ext
7073 LIBS=$ac_check_lib_save_LIBS
7075 ac_res=`eval 'as_val=${'$as_ac_Lib'}
7076 $as_echo "$as_val"'`
7077 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7078 $as_echo "$ac_res" >&6; }
7079 as_val=`eval 'as_val=${'$as_ac_Lib'}
7080 $as_echo "$as_val"'`
7081 if test "x$as_val" = x""yes; then
7082 apu_has_ldap_starttls="1"
7092 if test ${apu_has_ldap} != "1"; then
7095 unset ac_cv_lib_${ldaplib}_ldap_init
7096 unset ac_cv_lib_${ldaplib}___ldap_init
7097 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh`
7098 { $as_echo "$as_me:$LINENO: checking for ldap_init in -l${ldaplib}" >&5
7099 $as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; }
7100 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
7101 $as_echo_n "(cached) " >&6
7103 ac_check_lib_save_LIBS=$LIBS
7104 LIBS="-l${ldaplib} ${extralib} $LIBS"
7105 cat >conftest.$ac_ext <<_ACEOF
7108 cat confdefs.h >>conftest.$ac_ext
7109 cat >>conftest.$ac_ext <<_ACEOF
7110 /* end confdefs.h. */
7112 /* Override any GCC internal prototype to avoid an error.
7113 Use char because int might match the return type of a GCC
7114 builtin and then its argument prototype would still apply. */
7122 return ldap_init ();
7127 rm -f conftest.$ac_objext conftest$ac_exeext
7128 if { (ac_try="$ac_link"
7130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7131 *) ac_try_echo=$ac_try;;
7133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7134 $as_echo "$ac_try_echo") >&5
7135 (eval "$ac_link") 2>conftest.er1
7137 grep -v '^ *+' conftest.er1 >conftest.err
7139 cat conftest.err >&5
7140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141 (exit $ac_status); } && {
7142 test -z "$ac_c_werror_flag" ||
7143 test ! -s conftest.err
7144 } && test -s conftest$ac_exeext && {
7145 test "$cross_compiling" = yes ||
7146 $as_test_x conftest$ac_exeext
7148 eval "$as_ac_Lib=yes"
7150 $as_echo "$as_me: failed program was:" >&5
7151 sed 's/^/| /' conftest.$ac_ext >&5
7153 eval "$as_ac_Lib=no"
7156 rm -rf conftest.dSYM
7157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7158 conftest$ac_exeext conftest.$ac_ext
7159 LIBS=$ac_check_lib_save_LIBS
7161 ac_res=`eval 'as_val=${'$as_ac_Lib'}
7162 $as_echo "$as_val"'`
7163 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7164 $as_echo "$ac_res" >&6; }
7165 as_val=`eval 'as_val=${'$as_ac_Lib'}
7166 $as_echo "$as_val"'`
7167 if test "x$as_val" = x""yes; then
7170 if test "x$APRUTIL_EXPORT_LIBS" = "x"; then
7171 echo " setting APRUTIL_EXPORT_LIBS to \"-l${ldaplib} ${extralib}\""
7172 APRUTIL_EXPORT_LIBS="-l${ldaplib} ${extralib}"
7174 apr_addto_bugger="-l${ldaplib} ${extralib}"
7175 for i in $apr_addto_bugger; do
7176 apr_addto_duplicate="0"
7177 for j in $APRUTIL_EXPORT_LIBS; do
7178 if test "x$i" = "x$j"; then
7179 apr_addto_duplicate="1"
7183 if test $apr_addto_duplicate = "0"; then
7184 echo " adding \"$i\" to APRUTIL_EXPORT_LIBS"
7185 APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $i"
7191 if test "x$APRUTIL_LIBS" = "x"; then
7192 echo " setting APRUTIL_LIBS to \"-l${ldaplib} ${extralib}\""
7193 APRUTIL_LIBS="-l${ldaplib} ${extralib}"
7195 apr_addto_bugger="-l${ldaplib} ${extralib}"
7196 for i in $apr_addto_bugger; do
7197 apr_addto_duplicate="0"
7198 for j in $APRUTIL_LIBS; do
7199 if test "x$i" = "x$j"; then
7200 apr_addto_duplicate="1"
7204 if test $apr_addto_duplicate = "0"; then
7205 echo " adding \"$i\" to APRUTIL_LIBS"
7206 APRUTIL_LIBS="$APRUTIL_LIBS $i"
7211 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh`
7212 { $as_echo "$as_me:$LINENO: checking for ldapssl_install_routines in -l${ldaplib}" >&5
7213 $as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; }
7214 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
7215 $as_echo_n "(cached) " >&6
7217 ac_check_lib_save_LIBS=$LIBS
7218 LIBS="-l${ldaplib} ${extralib} $LIBS"
7219 cat >conftest.$ac_ext <<_ACEOF
7222 cat confdefs.h >>conftest.$ac_ext
7223 cat >>conftest.$ac_ext <<_ACEOF
7224 /* end confdefs.h. */
7226 /* Override any GCC internal prototype to avoid an error.
7227 Use char because int might match the return type of a GCC
7228 builtin and then its argument prototype would still apply. */
7232 char ldapssl_install_routines ();
7236 return ldapssl_install_routines ();
7241 rm -f conftest.$ac_objext conftest$ac_exeext
7242 if { (ac_try="$ac_link"
7244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7245 *) ac_try_echo=$ac_try;;
7247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7248 $as_echo "$ac_try_echo") >&5
7249 (eval "$ac_link") 2>conftest.er1
7251 grep -v '^ *+' conftest.er1 >conftest.err
7253 cat conftest.err >&5
7254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255 (exit $ac_status); } && {
7256 test -z "$ac_c_werror_flag" ||
7257 test ! -s conftest.err
7258 } && test -s conftest$ac_exeext && {
7259 test "$cross_compiling" = yes ||
7260 $as_test_x conftest$ac_exeext
7262 eval "$as_ac_Lib=yes"
7264 $as_echo "$as_me: failed program was:" >&5
7265 sed 's/^/| /' conftest.$ac_ext >&5
7267 eval "$as_ac_Lib=no"
7270 rm -rf conftest.dSYM
7271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7272 conftest$ac_exeext conftest.$ac_ext
7273 LIBS=$ac_check_lib_save_LIBS
7275 ac_res=`eval 'as_val=${'$as_ac_Lib'}
7276 $as_echo "$as_val"'`
7277 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7278 $as_echo "$ac_res" >&6; }
7279 as_val=`eval 'as_val=${'$as_ac_Lib'}
7280 $as_echo "$as_val"'`
7281 if test "x$as_val" = x""yes; then
7282 apu_has_ldap_netscape_ssl="1"
7285 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh`
7286 { $as_echo "$as_me:$LINENO: checking for ldap_start_tls_s in -l${ldaplib}" >&5
7287 $as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; }
7288 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
7289 $as_echo_n "(cached) " >&6
7291 ac_check_lib_save_LIBS=$LIBS
7292 LIBS="-l${ldaplib} ${extralib} $LIBS"
7293 cat >conftest.$ac_ext <<_ACEOF
7296 cat confdefs.h >>conftest.$ac_ext
7297 cat >>conftest.$ac_ext <<_ACEOF
7298 /* end confdefs.h. */
7300 /* Override any GCC internal prototype to avoid an error.
7301 Use char because int might match the return type of a GCC
7302 builtin and then its argument prototype would still apply. */
7306 char ldap_start_tls_s ();
7310 return ldap_start_tls_s ();
7315 rm -f conftest.$ac_objext conftest$ac_exeext
7316 if { (ac_try="$ac_link"
7318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7319 *) ac_try_echo=$ac_try;;
7321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7322 $as_echo "$ac_try_echo") >&5
7323 (eval "$ac_link") 2>conftest.er1
7325 grep -v '^ *+' conftest.er1 >conftest.err
7327 cat conftest.err >&5
7328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329 (exit $ac_status); } && {
7330 test -z "$ac_c_werror_flag" ||
7331 test ! -s conftest.err
7332 } && test -s conftest$ac_exeext && {
7333 test "$cross_compiling" = yes ||
7334 $as_test_x conftest$ac_exeext
7336 eval "$as_ac_Lib=yes"
7338 $as_echo "$as_me: failed program was:" >&5
7339 sed 's/^/| /' conftest.$ac_ext >&5
7341 eval "$as_ac_Lib=no"
7344 rm -rf conftest.dSYM
7345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7346 conftest$ac_exeext conftest.$ac_ext
7347 LIBS=$ac_check_lib_save_LIBS
7349 ac_res=`eval 'as_val=${'$as_ac_Lib'}
7350 $as_echo "$as_val"'`
7351 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7352 $as_echo "$ac_res" >&6; }
7353 as_val=`eval 'as_val=${'$as_ac_Lib'}
7354 $as_echo "$as_val"'`
7355 if test "x$as_val" = x""yes; then
7356 apu_has_ldap_starttls="1"
7366 if test ${apu_has_ldap} != "1"; then
7368 extralib="-lresolv -lsocket -lnsl"
7369 unset ac_cv_lib_${ldaplib}_ldap_init
7370 unset ac_cv_lib_${ldaplib}___ldap_init
7371 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh`
7372 { $as_echo "$as_me:$LINENO: checking for ldap_init in -l${ldaplib}" >&5
7373 $as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; }
7374 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
7375 $as_echo_n "(cached) " >&6
7377 ac_check_lib_save_LIBS=$LIBS
7378 LIBS="-l${ldaplib} ${extralib} $LIBS"
7379 cat >conftest.$ac_ext <<_ACEOF
7382 cat confdefs.h >>conftest.$ac_ext
7383 cat >>conftest.$ac_ext <<_ACEOF
7384 /* end confdefs.h. */
7386 /* Override any GCC internal prototype to avoid an error.
7387 Use char because int might match the return type of a GCC
7388 builtin and then its argument prototype would still apply. */
7396 return ldap_init ();
7401 rm -f conftest.$ac_objext conftest$ac_exeext
7402 if { (ac_try="$ac_link"
7404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7405 *) ac_try_echo=$ac_try;;
7407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7408 $as_echo "$ac_try_echo") >&5
7409 (eval "$ac_link") 2>conftest.er1
7411 grep -v '^ *+' conftest.er1 >conftest.err
7413 cat conftest.err >&5
7414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415 (exit $ac_status); } && {
7416 test -z "$ac_c_werror_flag" ||
7417 test ! -s conftest.err
7418 } && test -s conftest$ac_exeext && {
7419 test "$cross_compiling" = yes ||
7420 $as_test_x conftest$ac_exeext
7422 eval "$as_ac_Lib=yes"
7424 $as_echo "$as_me: failed program was:" >&5
7425 sed 's/^/| /' conftest.$ac_ext >&5
7427 eval "$as_ac_Lib=no"
7430 rm -rf conftest.dSYM
7431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7432 conftest$ac_exeext conftest.$ac_ext
7433 LIBS=$ac_check_lib_save_LIBS
7435 ac_res=`eval 'as_val=${'$as_ac_Lib'}
7436 $as_echo "$as_val"'`
7437 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7438 $as_echo "$ac_res" >&6; }
7439 as_val=`eval 'as_val=${'$as_ac_Lib'}
7440 $as_echo "$as_val"'`
7441 if test "x$as_val" = x""yes; then
7444 if test "x$APRUTIL_EXPORT_LIBS" = "x"; then
7445 echo " setting APRUTIL_EXPORT_LIBS to \"-l${ldaplib} ${extralib}\""
7446 APRUTIL_EXPORT_LIBS="-l${ldaplib} ${extralib}"
7448 apr_addto_bugger="-l${ldaplib} ${extralib}"
7449 for i in $apr_addto_bugger; do
7450 apr_addto_duplicate="0"
7451 for j in $APRUTIL_EXPORT_LIBS; do
7452 if test "x$i" = "x$j"; then
7453 apr_addto_duplicate="1"
7457 if test $apr_addto_duplicate = "0"; then
7458 echo " adding \"$i\" to APRUTIL_EXPORT_LIBS"
7459 APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $i"
7465 if test "x$APRUTIL_LIBS" = "x"; then
7466 echo " setting APRUTIL_LIBS to \"-l${ldaplib} ${extralib}\""
7467 APRUTIL_LIBS="-l${ldaplib} ${extralib}"
7469 apr_addto_bugger="-l${ldaplib} ${extralib}"
7470 for i in $apr_addto_bugger; do
7471 apr_addto_duplicate="0"
7472 for j in $APRUTIL_LIBS; do
7473 if test "x$i" = "x$j"; then
7474 apr_addto_duplicate="1"
7478 if test $apr_addto_duplicate = "0"; then
7479 echo " adding \"$i\" to APRUTIL_LIBS"
7480 APRUTIL_LIBS="$APRUTIL_LIBS $i"
7485 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh`
7486 { $as_echo "$as_me:$LINENO: checking for ldapssl_install_routines in -l${ldaplib}" >&5
7487 $as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; }
7488 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
7489 $as_echo_n "(cached) " >&6
7491 ac_check_lib_save_LIBS=$LIBS
7492 LIBS="-l${ldaplib} ${extralib} $LIBS"
7493 cat >conftest.$ac_ext <<_ACEOF
7496 cat confdefs.h >>conftest.$ac_ext
7497 cat >>conftest.$ac_ext <<_ACEOF
7498 /* end confdefs.h. */
7500 /* Override any GCC internal prototype to avoid an error.
7501 Use char because int might match the return type of a GCC
7502 builtin and then its argument prototype would still apply. */
7506 char ldapssl_install_routines ();
7510 return ldapssl_install_routines ();
7515 rm -f conftest.$ac_objext conftest$ac_exeext
7516 if { (ac_try="$ac_link"
7518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7519 *) ac_try_echo=$ac_try;;
7521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7522 $as_echo "$ac_try_echo") >&5
7523 (eval "$ac_link") 2>conftest.er1
7525 grep -v '^ *+' conftest.er1 >conftest.err
7527 cat conftest.err >&5
7528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529 (exit $ac_status); } && {
7530 test -z "$ac_c_werror_flag" ||
7531 test ! -s conftest.err
7532 } && test -s conftest$ac_exeext && {
7533 test "$cross_compiling" = yes ||
7534 $as_test_x conftest$ac_exeext
7536 eval "$as_ac_Lib=yes"
7538 $as_echo "$as_me: failed program was:" >&5
7539 sed 's/^/| /' conftest.$ac_ext >&5
7541 eval "$as_ac_Lib=no"
7544 rm -rf conftest.dSYM
7545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7546 conftest$ac_exeext conftest.$ac_ext
7547 LIBS=$ac_check_lib_save_LIBS
7549 ac_res=`eval 'as_val=${'$as_ac_Lib'}
7550 $as_echo "$as_val"'`
7551 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7552 $as_echo "$ac_res" >&6; }
7553 as_val=`eval 'as_val=${'$as_ac_Lib'}
7554 $as_echo "$as_val"'`
7555 if test "x$as_val" = x""yes; then
7556 apu_has_ldap_netscape_ssl="1"
7559 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh`
7560 { $as_echo "$as_me:$LINENO: checking for ldap_start_tls_s in -l${ldaplib}" >&5
7561 $as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; }
7562 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
7563 $as_echo_n "(cached) " >&6
7565 ac_check_lib_save_LIBS=$LIBS
7566 LIBS="-l${ldaplib} ${extralib} $LIBS"
7567 cat >conftest.$ac_ext <<_ACEOF
7570 cat confdefs.h >>conftest.$ac_ext
7571 cat >>conftest.$ac_ext <<_ACEOF
7572 /* end confdefs.h. */
7574 /* Override any GCC internal prototype to avoid an error.
7575 Use char because int might match the return type of a GCC
7576 builtin and then its argument prototype would still apply. */
7580 char ldap_start_tls_s ();
7584 return ldap_start_tls_s ();
7589 rm -f conftest.$ac_objext conftest$ac_exeext
7590 if { (ac_try="$ac_link"
7592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7593 *) ac_try_echo=$ac_try;;
7595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7596 $as_echo "$ac_try_echo") >&5
7597 (eval "$ac_link") 2>conftest.er1
7599 grep -v '^ *+' conftest.er1 >conftest.err
7601 cat conftest.err >&5
7602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7603 (exit $ac_status); } && {
7604 test -z "$ac_c_werror_flag" ||
7605 test ! -s conftest.err
7606 } && test -s conftest$ac_exeext && {
7607 test "$cross_compiling" = yes ||
7608 $as_test_x conftest$ac_exeext
7610 eval "$as_ac_Lib=yes"
7612 $as_echo "$as_me: failed program was:" >&5
7613 sed 's/^/| /' conftest.$ac_ext >&5
7615 eval "$as_ac_Lib=no"
7618 rm -rf conftest.dSYM
7619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7620 conftest$ac_exeext conftest.$ac_ext
7621 LIBS=$ac_check_lib_save_LIBS
7623 ac_res=`eval 'as_val=${'$as_ac_Lib'}
7624 $as_echo "$as_val"'`
7625 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7626 $as_echo "$ac_res" >&6; }
7627 as_val=`eval 'as_val=${'$as_ac_Lib'}
7628 $as_echo "$as_val"'`
7629 if test "x$as_val" = x""yes; then
7630 apu_has_ldap_starttls="1"
7640 if test ${apu_has_ldap} != "1"; then
7642 extralib="-ldl -lpthread"
7643 unset ac_cv_lib_${ldaplib}_ldap_init
7644 unset ac_cv_lib_${ldaplib}___ldap_init
7645 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh`
7646 { $as_echo "$as_me:$LINENO: checking for ldap_init in -l${ldaplib}" >&5
7647 $as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; }
7648 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
7649 $as_echo_n "(cached) " >&6
7651 ac_check_lib_save_LIBS=$LIBS
7652 LIBS="-l${ldaplib} ${extralib} $LIBS"
7653 cat >conftest.$ac_ext <<_ACEOF
7656 cat confdefs.h >>conftest.$ac_ext
7657 cat >>conftest.$ac_ext <<_ACEOF
7658 /* end confdefs.h. */
7660 /* Override any GCC internal prototype to avoid an error.
7661 Use char because int might match the return type of a GCC
7662 builtin and then its argument prototype would still apply. */
7670 return ldap_init ();
7675 rm -f conftest.$ac_objext conftest$ac_exeext
7676 if { (ac_try="$ac_link"
7678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7679 *) ac_try_echo=$ac_try;;
7681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7682 $as_echo "$ac_try_echo") >&5
7683 (eval "$ac_link") 2>conftest.er1
7685 grep -v '^ *+' conftest.er1 >conftest.err
7687 cat conftest.err >&5
7688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689 (exit $ac_status); } && {
7690 test -z "$ac_c_werror_flag" ||
7691 test ! -s conftest.err
7692 } && test -s conftest$ac_exeext && {
7693 test "$cross_compiling" = yes ||
7694 $as_test_x conftest$ac_exeext
7696 eval "$as_ac_Lib=yes"
7698 $as_echo "$as_me: failed program was:" >&5
7699 sed 's/^/| /' conftest.$ac_ext >&5
7701 eval "$as_ac_Lib=no"
7704 rm -rf conftest.dSYM
7705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7706 conftest$ac_exeext conftest.$ac_ext
7707 LIBS=$ac_check_lib_save_LIBS
7709 ac_res=`eval 'as_val=${'$as_ac_Lib'}
7710 $as_echo "$as_val"'`
7711 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7712 $as_echo "$ac_res" >&6; }
7713 as_val=`eval 'as_val=${'$as_ac_Lib'}
7714 $as_echo "$as_val"'`
7715 if test "x$as_val" = x""yes; then
7718 if test "x$APRUTIL_EXPORT_LIBS" = "x"; then
7719 echo " setting APRUTIL_EXPORT_LIBS to \"-l${ldaplib} ${extralib}\""
7720 APRUTIL_EXPORT_LIBS="-l${ldaplib} ${extralib}"
7722 apr_addto_bugger="-l${ldaplib} ${extralib}"
7723 for i in $apr_addto_bugger; do
7724 apr_addto_duplicate="0"
7725 for j in $APRUTIL_EXPORT_LIBS; do
7726 if test "x$i" = "x$j"; then
7727 apr_addto_duplicate="1"
7731 if test $apr_addto_duplicate = "0"; then
7732 echo " adding \"$i\" to APRUTIL_EXPORT_LIBS"
7733 APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $i"
7739 if test "x$APRUTIL_LIBS" = "x"; then
7740 echo " setting APRUTIL_LIBS to \"-l${ldaplib} ${extralib}\""
7741 APRUTIL_LIBS="-l${ldaplib} ${extralib}"
7743 apr_addto_bugger="-l${ldaplib} ${extralib}"
7744 for i in $apr_addto_bugger; do
7745 apr_addto_duplicate="0"
7746 for j in $APRUTIL_LIBS; do
7747 if test "x$i" = "x$j"; then
7748 apr_addto_duplicate="1"
7752 if test $apr_addto_duplicate = "0"; then
7753 echo " adding \"$i\" to APRUTIL_LIBS"
7754 APRUTIL_LIBS="$APRUTIL_LIBS $i"
7759 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh`
7760 { $as_echo "$as_me:$LINENO: checking for ldapssl_install_routines in -l${ldaplib}" >&5
7761 $as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; }
7762 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
7763 $as_echo_n "(cached) " >&6
7765 ac_check_lib_save_LIBS=$LIBS
7766 LIBS="-l${ldaplib} ${extralib} $LIBS"
7767 cat >conftest.$ac_ext <<_ACEOF
7770 cat confdefs.h >>conftest.$ac_ext
7771 cat >>conftest.$ac_ext <<_ACEOF
7772 /* end confdefs.h. */
7774 /* Override any GCC internal prototype to avoid an error.
7775 Use char because int might match the return type of a GCC
7776 builtin and then its argument prototype would still apply. */
7780 char ldapssl_install_routines ();
7784 return ldapssl_install_routines ();
7789 rm -f conftest.$ac_objext conftest$ac_exeext
7790 if { (ac_try="$ac_link"
7792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7793 *) ac_try_echo=$ac_try;;
7795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7796 $as_echo "$ac_try_echo") >&5
7797 (eval "$ac_link") 2>conftest.er1
7799 grep -v '^ *+' conftest.er1 >conftest.err
7801 cat conftest.err >&5
7802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803 (exit $ac_status); } && {
7804 test -z "$ac_c_werror_flag" ||
7805 test ! -s conftest.err
7806 } && test -s conftest$ac_exeext && {
7807 test "$cross_compiling" = yes ||
7808 $as_test_x conftest$ac_exeext
7810 eval "$as_ac_Lib=yes"
7812 $as_echo "$as_me: failed program was:" >&5
7813 sed 's/^/| /' conftest.$ac_ext >&5
7815 eval "$as_ac_Lib=no"
7818 rm -rf conftest.dSYM
7819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7820 conftest$ac_exeext conftest.$ac_ext
7821 LIBS=$ac_check_lib_save_LIBS
7823 ac_res=`eval 'as_val=${'$as_ac_Lib'}
7824 $as_echo "$as_val"'`
7825 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7826 $as_echo "$ac_res" >&6; }
7827 as_val=`eval 'as_val=${'$as_ac_Lib'}
7828 $as_echo "$as_val"'`
7829 if test "x$as_val" = x""yes; then
7830 apu_has_ldap_netscape_ssl="1"
7833 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh`
7834 { $as_echo "$as_me:$LINENO: checking for ldap_start_tls_s in -l${ldaplib}" >&5
7835 $as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; }
7836 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
7837 $as_echo_n "(cached) " >&6
7839 ac_check_lib_save_LIBS=$LIBS
7840 LIBS="-l${ldaplib} ${extralib} $LIBS"
7841 cat >conftest.$ac_ext <<_ACEOF
7844 cat confdefs.h >>conftest.$ac_ext
7845 cat >>conftest.$ac_ext <<_ACEOF
7846 /* end confdefs.h. */
7848 /* Override any GCC internal prototype to avoid an error.
7849 Use char because int might match the return type of a GCC
7850 builtin and then its argument prototype would still apply. */
7854 char ldap_start_tls_s ();
7858 return ldap_start_tls_s ();
7863 rm -f conftest.$ac_objext conftest$ac_exeext
7864 if { (ac_try="$ac_link"
7866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7867 *) ac_try_echo=$ac_try;;
7869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7870 $as_echo "$ac_try_echo") >&5
7871 (eval "$ac_link") 2>conftest.er1
7873 grep -v '^ *+' conftest.er1 >conftest.err
7875 cat conftest.err >&5
7876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7877 (exit $ac_status); } && {
7878 test -z "$ac_c_werror_flag" ||
7879 test ! -s conftest.err
7880 } && test -s conftest$ac_exeext && {
7881 test "$cross_compiling" = yes ||
7882 $as_test_x conftest$ac_exeext
7884 eval "$as_ac_Lib=yes"
7886 $as_echo "$as_me: failed program was:" >&5
7887 sed 's/^/| /' conftest.$ac_ext >&5
7889 eval "$as_ac_Lib=no"
7892 rm -rf conftest.dSYM
7893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7894 conftest$ac_exeext conftest.$ac_ext
7895 LIBS=$ac_check_lib_save_LIBS
7897 ac_res=`eval 'as_val=${'$as_ac_Lib'}
7898 $as_echo "$as_val"'`
7899 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7900 $as_echo "$ac_res" >&6; }
7901 as_val=`eval 'as_val=${'$as_ac_Lib'}
7902 $as_echo "$as_val"'`
7903 if test "x$as_val" = x""yes; then
7904 apu_has_ldap_starttls="1"
7915 test ${apu_has_ldap} != "1" && { { $as_echo "$as_me:$LINENO: error: could not find an LDAP library" >&5
7916 $as_echo "$as_me: error: could not find an LDAP library" >&2;}
7917 { (exit 1); exit 1; }; }
7919 { $as_echo "$as_me:$LINENO: checking for ber_init in -llber" >&5
7920 $as_echo_n "checking for ber_init in -llber... " >&6; }
7921 if test "${ac_cv_lib_lber_ber_init+set}" = set; then
7922 $as_echo_n "(cached) " >&6
7924 ac_check_lib_save_LIBS=$LIBS
7926 cat >conftest.$ac_ext <<_ACEOF
7929 cat confdefs.h >>conftest.$ac_ext
7930 cat >>conftest.$ac_ext <<_ACEOF
7931 /* end confdefs.h. */
7933 /* Override any GCC internal prototype to avoid an error.
7934 Use char because int might match the return type of a GCC
7935 builtin and then its argument prototype would still apply. */
7948 rm -f conftest.$ac_objext conftest$ac_exeext
7949 if { (ac_try="$ac_link"
7951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7952 *) ac_try_echo=$ac_try;;
7954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7955 $as_echo "$ac_try_echo") >&5
7956 (eval "$ac_link") 2>conftest.er1
7958 grep -v '^ *+' conftest.er1 >conftest.err
7960 cat conftest.err >&5
7961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962 (exit $ac_status); } && {
7963 test -z "$ac_c_werror_flag" ||
7964 test ! -s conftest.err
7965 } && test -s conftest$ac_exeext && {
7966 test "$cross_compiling" = yes ||
7967 $as_test_x conftest$ac_exeext
7969 ac_cv_lib_lber_ber_init=yes
7971 $as_echo "$as_me: failed program was:" >&5
7972 sed 's/^/| /' conftest.$ac_ext >&5
7974 ac_cv_lib_lber_ber_init=no
7977 rm -rf conftest.dSYM
7978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7979 conftest$ac_exeext conftest.$ac_ext
7980 LIBS=$ac_check_lib_save_LIBS
7982 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_init" >&5
7983 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
7984 if test "x$ac_cv_lib_lber_ber_init" = x""yes; then
7985 cat >>confdefs.h <<_ACEOF
7986 #define HAVE_LIBLBER 1
7995 for ac_header in lber.h
7997 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7999 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8000 $as_echo_n "checking for $ac_header... " >&6; }
8001 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8002 $as_echo_n "(cached) " >&6
8004 ac_res=`eval 'as_val=${'$as_ac_Header'}
8005 $as_echo "$as_val"'`
8006 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8007 $as_echo "$ac_res" >&6; }
8009 # Is the header compilable?
8010 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8011 $as_echo_n "checking $ac_header usability... " >&6; }
8012 cat >conftest.$ac_ext <<_ACEOF
8015 cat confdefs.h >>conftest.$ac_ext
8016 cat >>conftest.$ac_ext <<_ACEOF
8017 /* end confdefs.h. */
8018 $ac_includes_default
8019 #include <$ac_header>
8021 rm -f conftest.$ac_objext
8022 if { (ac_try="$ac_compile"
8024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8025 *) ac_try_echo=$ac_try;;
8027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8028 $as_echo "$ac_try_echo") >&5
8029 (eval "$ac_compile") 2>conftest.er1
8031 grep -v '^ *+' conftest.er1 >conftest.err
8033 cat conftest.err >&5
8034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035 (exit $ac_status); } && {
8036 test -z "$ac_c_werror_flag" ||
8037 test ! -s conftest.err
8038 } && test -s conftest.$ac_objext; then
8039 ac_header_compiler=yes
8041 $as_echo "$as_me: failed program was:" >&5
8042 sed 's/^/| /' conftest.$ac_ext >&5
8044 ac_header_compiler=no
8047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8048 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8049 $as_echo "$ac_header_compiler" >&6; }
8051 # Is the header present?
8052 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8053 $as_echo_n "checking $ac_header presence... " >&6; }
8054 cat >conftest.$ac_ext <<_ACEOF
8057 cat confdefs.h >>conftest.$ac_ext
8058 cat >>conftest.$ac_ext <<_ACEOF
8059 /* end confdefs.h. */
8060 #include <$ac_header>
8062 if { (ac_try="$ac_cpp conftest.$ac_ext"
8064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8065 *) ac_try_echo=$ac_try;;
8067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8068 $as_echo "$ac_try_echo") >&5
8069 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8071 grep -v '^ *+' conftest.er1 >conftest.err
8073 cat conftest.err >&5
8074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); } >/dev/null && {
8076 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8077 test ! -s conftest.err
8079 ac_header_preproc=yes
8081 $as_echo "$as_me: failed program was:" >&5
8082 sed 's/^/| /' conftest.$ac_ext >&5
8084 ac_header_preproc=no
8087 rm -f conftest.err conftest.$ac_ext
8088 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8089 $as_echo "$ac_header_preproc" >&6; }
8091 # So? What about this header?
8092 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8094 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8095 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8096 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8097 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8098 ac_header_preproc=yes
8101 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8102 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8103 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8104 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8105 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8106 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8107 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8108 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8109 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8110 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8111 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8112 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8116 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8117 $as_echo_n "checking for $ac_header... " >&6; }
8118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8119 $as_echo_n "(cached) " >&6
8121 eval "$as_ac_Header=\$ac_header_preproc"
8123 ac_res=`eval 'as_val=${'$as_ac_Header'}
8124 $as_echo "$as_val"'`
8125 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8126 $as_echo "$ac_res" >&6; }
8129 as_val=`eval 'as_val=${'$as_ac_Header'}
8130 $as_echo "$as_val"'`
8131 if test "x$as_val" = x""yes; then
8132 cat >>confdefs.h <<_ACEOF
8133 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8135 lber_h="#include <lber.h>"
8141 for ac_header in ldap.h
8143 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8144 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8145 $as_echo_n "checking for $ac_header... " >&6; }
8146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8147 $as_echo_n "(cached) " >&6
8149 cat >conftest.$ac_ext <<_ACEOF
8152 cat confdefs.h >>conftest.$ac_ext
8153 cat >>conftest.$ac_ext <<_ACEOF
8154 /* end confdefs.h. */
8160 #include <$ac_header>
8162 rm -f conftest.$ac_objext
8163 if { (ac_try="$ac_compile"
8165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8166 *) ac_try_echo=$ac_try;;
8168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8169 $as_echo "$ac_try_echo") >&5
8170 (eval "$ac_compile") 2>conftest.er1
8172 grep -v '^ *+' conftest.er1 >conftest.err
8174 cat conftest.err >&5
8175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176 (exit $ac_status); } && {
8177 test -z "$ac_c_werror_flag" ||
8178 test ! -s conftest.err
8179 } && test -s conftest.$ac_objext; then
8180 eval "$as_ac_Header=yes"
8182 $as_echo "$as_me: failed program was:" >&5
8183 sed 's/^/| /' conftest.$ac_ext >&5
8185 eval "$as_ac_Header=no"
8188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8190 ac_res=`eval 'as_val=${'$as_ac_Header'}
8191 $as_echo "$as_val"'`
8192 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8193 $as_echo "$ac_res" >&6; }
8194 as_val=`eval 'as_val=${'$as_ac_Header'}
8195 $as_echo "$as_val"'`
8196 if test "x$as_val" = x""yes; then
8197 cat >>confdefs.h <<_ACEOF
8198 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8200 ldap_h="#include <ldap.h>"
8206 for ac_header in ldap_ssl.h
8208 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8209 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8210 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8211 $as_echo_n "checking for $ac_header... " >&6; }
8212 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8213 $as_echo_n "(cached) " >&6
8215 ac_res=`eval 'as_val=${'$as_ac_Header'}
8216 $as_echo "$as_val"'`
8217 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8218 $as_echo "$ac_res" >&6; }
8220 # Is the header compilable?
8221 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8222 $as_echo_n "checking $ac_header usability... " >&6; }
8223 cat >conftest.$ac_ext <<_ACEOF
8226 cat confdefs.h >>conftest.$ac_ext
8227 cat >>conftest.$ac_ext <<_ACEOF
8228 /* end confdefs.h. */
8229 $ac_includes_default
8230 #include <$ac_header>
8232 rm -f conftest.$ac_objext
8233 if { (ac_try="$ac_compile"
8235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8236 *) ac_try_echo=$ac_try;;
8238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8239 $as_echo "$ac_try_echo") >&5
8240 (eval "$ac_compile") 2>conftest.er1
8242 grep -v '^ *+' conftest.er1 >conftest.err
8244 cat conftest.err >&5
8245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246 (exit $ac_status); } && {
8247 test -z "$ac_c_werror_flag" ||
8248 test ! -s conftest.err
8249 } && test -s conftest.$ac_objext; then
8250 ac_header_compiler=yes
8252 $as_echo "$as_me: failed program was:" >&5
8253 sed 's/^/| /' conftest.$ac_ext >&5
8255 ac_header_compiler=no
8258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8259 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8260 $as_echo "$ac_header_compiler" >&6; }
8262 # Is the header present?
8263 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8264 $as_echo_n "checking $ac_header presence... " >&6; }
8265 cat >conftest.$ac_ext <<_ACEOF
8268 cat confdefs.h >>conftest.$ac_ext
8269 cat >>conftest.$ac_ext <<_ACEOF
8270 /* end confdefs.h. */
8271 #include <$ac_header>
8273 if { (ac_try="$ac_cpp conftest.$ac_ext"
8275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8276 *) ac_try_echo=$ac_try;;
8278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8279 $as_echo "$ac_try_echo") >&5
8280 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8282 grep -v '^ *+' conftest.er1 >conftest.err
8284 cat conftest.err >&5
8285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286 (exit $ac_status); } >/dev/null && {
8287 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8288 test ! -s conftest.err
8290 ac_header_preproc=yes
8292 $as_echo "$as_me: failed program was:" >&5
8293 sed 's/^/| /' conftest.$ac_ext >&5
8295 ac_header_preproc=no
8298 rm -f conftest.err conftest.$ac_ext
8299 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8300 $as_echo "$ac_header_preproc" >&6; }
8302 # So? What about this header?
8303 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8305 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8306 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8307 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8308 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8309 ac_header_preproc=yes
8312 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8313 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8314 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8315 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8316 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8317 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8318 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8319 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8320 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8321 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8322 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8323 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8327 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8328 $as_echo_n "checking for $ac_header... " >&6; }
8329 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8330 $as_echo_n "(cached) " >&6
8332 eval "$as_ac_Header=\$ac_header_preproc"
8334 ac_res=`eval 'as_val=${'$as_ac_Header'}
8335 $as_echo "$as_val"'`
8336 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8337 $as_echo "$ac_res" >&6; }
8340 as_val=`eval 'as_val=${'$as_ac_Header'}
8341 $as_echo "$as_val"'`
8342 if test "x$as_val" = x""yes; then
8343 cat >>confdefs.h <<_ACEOF
8344 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8346 ldap_ssl_h="#include <ldap_ssl.h>"
8352 CPPFLAGS=$save_cppflags
8353 LDFLAGS=$save_ldflags
8377 apu_db_header=db.h # default so apu_select_dbm.h is syntactically correct
8381 # Check whether --with-dbm was given.
8382 if test "${with_dbm+set}" = set; then
8384 if test "$withval" = "yes"; then
8385 { { $as_echo "$as_me:$LINENO: error: --with-dbm needs to specify a DBM type to use.
8386 One of: sdbm, gdbm, ndbm, db, db1, db185, db2, db3, db4, db41, db42, db43, db44, db45, db46, db47, db48" >&5
8387 $as_echo "$as_me: error: --with-dbm needs to specify a DBM type to use.
8388 One of: sdbm, gdbm, ndbm, db, db1, db185, db2, db3, db4, db41, db42, db43, db44, db45, db46, db47, db48" >&2;}
8389 { (exit 1); exit 1; }; }
8391 requested="$withval"
8401 # Check whether --with-gdbm was given.
8402 if test "${with_gdbm+set}" = set; then
8405 if test "$withval" = "yes"; then
8406 if test "${ac_cv_header_gdbm_h+set}" = set; then
8407 { $as_echo "$as_me:$LINENO: checking for gdbm.h" >&5
8408 $as_echo_n "checking for gdbm.h... " >&6; }
8409 if test "${ac_cv_header_gdbm_h+set}" = set; then
8410 $as_echo_n "(cached) " >&6
8412 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
8413 $as_echo "$ac_cv_header_gdbm_h" >&6; }
8415 # Is the header compilable?
8416 { $as_echo "$as_me:$LINENO: checking gdbm.h usability" >&5
8417 $as_echo_n "checking gdbm.h usability... " >&6; }
8418 cat >conftest.$ac_ext <<_ACEOF
8421 cat confdefs.h >>conftest.$ac_ext
8422 cat >>conftest.$ac_ext <<_ACEOF
8423 /* end confdefs.h. */
8424 $ac_includes_default
8427 rm -f conftest.$ac_objext
8428 if { (ac_try="$ac_compile"
8430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8431 *) ac_try_echo=$ac_try;;
8433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8434 $as_echo "$ac_try_echo") >&5
8435 (eval "$ac_compile") 2>conftest.er1
8437 grep -v '^ *+' conftest.er1 >conftest.err
8439 cat conftest.err >&5
8440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441 (exit $ac_status); } && {
8442 test -z "$ac_c_werror_flag" ||
8443 test ! -s conftest.err
8444 } && test -s conftest.$ac_objext; then
8445 ac_header_compiler=yes
8447 $as_echo "$as_me: failed program was:" >&5
8448 sed 's/^/| /' conftest.$ac_ext >&5
8450 ac_header_compiler=no
8453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8454 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8455 $as_echo "$ac_header_compiler" >&6; }
8457 # Is the header present?
8458 { $as_echo "$as_me:$LINENO: checking gdbm.h presence" >&5
8459 $as_echo_n "checking gdbm.h presence... " >&6; }
8460 cat >conftest.$ac_ext <<_ACEOF
8463 cat confdefs.h >>conftest.$ac_ext
8464 cat >>conftest.$ac_ext <<_ACEOF
8465 /* end confdefs.h. */
8468 if { (ac_try="$ac_cpp conftest.$ac_ext"
8470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8471 *) ac_try_echo=$ac_try;;
8473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8474 $as_echo "$ac_try_echo") >&5
8475 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8477 grep -v '^ *+' conftest.er1 >conftest.err
8479 cat conftest.err >&5
8480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); } >/dev/null && {
8482 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8483 test ! -s conftest.err
8485 ac_header_preproc=yes
8487 $as_echo "$as_me: failed program was:" >&5
8488 sed 's/^/| /' conftest.$ac_ext >&5
8490 ac_header_preproc=no
8493 rm -f conftest.err conftest.$ac_ext
8494 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8495 $as_echo "$ac_header_preproc" >&6; }
8497 # So? What about this header?
8498 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8500 { $as_echo "$as_me:$LINENO: WARNING: gdbm.h: accepted by the compiler, rejected by the preprocessor!" >&5
8501 $as_echo "$as_me: WARNING: gdbm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8502 { $as_echo "$as_me:$LINENO: WARNING: gdbm.h: proceeding with the compiler's result" >&5
8503 $as_echo "$as_me: WARNING: gdbm.h: proceeding with the compiler's result" >&2;}
8504 ac_header_preproc=yes
8507 { $as_echo "$as_me:$LINENO: WARNING: gdbm.h: present but cannot be compiled" >&5
8508 $as_echo "$as_me: WARNING: gdbm.h: present but cannot be compiled" >&2;}
8509 { $as_echo "$as_me:$LINENO: WARNING: gdbm.h: check for missing prerequisite headers?" >&5
8510 $as_echo "$as_me: WARNING: gdbm.h: check for missing prerequisite headers?" >&2;}
8511 { $as_echo "$as_me:$LINENO: WARNING: gdbm.h: see the Autoconf documentation" >&5
8512 $as_echo "$as_me: WARNING: gdbm.h: see the Autoconf documentation" >&2;}
8513 { $as_echo "$as_me:$LINENO: WARNING: gdbm.h: section \"Present But Cannot Be Compiled\"" >&5
8514 $as_echo "$as_me: WARNING: gdbm.h: section \"Present But Cannot Be Compiled\"" >&2;}
8515 { $as_echo "$as_me:$LINENO: WARNING: gdbm.h: proceeding with the preprocessor's result" >&5
8516 $as_echo "$as_me: WARNING: gdbm.h: proceeding with the preprocessor's result" >&2;}
8517 { $as_echo "$as_me:$LINENO: WARNING: gdbm.h: in the future, the compiler will take precedence" >&5
8518 $as_echo "$as_me: WARNING: gdbm.h: in the future, the compiler will take precedence" >&2;}
8522 { $as_echo "$as_me:$LINENO: checking for gdbm.h" >&5
8523 $as_echo_n "checking for gdbm.h... " >&6; }
8524 if test "${ac_cv_header_gdbm_h+set}" = set; then
8525 $as_echo_n "(cached) " >&6
8527 ac_cv_header_gdbm_h=$ac_header_preproc
8529 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
8530 $as_echo "$ac_cv_header_gdbm_h" >&6; }
8533 if test "x$ac_cv_header_gdbm_h" = x""yes; then
8534 { $as_echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
8535 $as_echo_n "checking for gdbm_open in -lgdbm... " >&6; }
8536 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
8537 $as_echo_n "(cached) " >&6
8539 ac_check_lib_save_LIBS=$LIBS
8541 cat >conftest.$ac_ext <<_ACEOF
8544 cat confdefs.h >>conftest.$ac_ext
8545 cat >>conftest.$ac_ext <<_ACEOF
8546 /* end confdefs.h. */
8548 /* Override any GCC internal prototype to avoid an error.
8549 Use char because int might match the return type of a GCC
8550 builtin and then its argument prototype would still apply. */
8558 return gdbm_open ();
8563 rm -f conftest.$ac_objext conftest$ac_exeext
8564 if { (ac_try="$ac_link"
8566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8567 *) ac_try_echo=$ac_try;;
8569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8570 $as_echo "$ac_try_echo") >&5
8571 (eval "$ac_link") 2>conftest.er1
8573 grep -v '^ *+' conftest.er1 >conftest.err
8575 cat conftest.err >&5
8576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577 (exit $ac_status); } && {
8578 test -z "$ac_c_werror_flag" ||
8579 test ! -s conftest.err
8580 } && test -s conftest$ac_exeext && {
8581 test "$cross_compiling" = yes ||
8582 $as_test_x conftest$ac_exeext
8584 ac_cv_lib_gdbm_gdbm_open=yes
8586 $as_echo "$as_me: failed program was:" >&5
8587 sed 's/^/| /' conftest.$ac_ext >&5
8589 ac_cv_lib_gdbm_gdbm_open=no
8592 rm -rf conftest.dSYM
8593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8594 conftest$ac_exeext conftest.$ac_ext
8595 LIBS=$ac_check_lib_save_LIBS
8597 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
8598 $as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; }
8599 if test "x$ac_cv_lib_gdbm_gdbm_open" = x""yes; then
8606 elif test "$withval" = "no"; then
8609 CPPFLAGS="-I$withval/include"
8610 LIBS="-L$withval/lib "
8612 { $as_echo "$as_me:$LINENO: checking checking for gdbm in $withval" >&5
8613 $as_echo_n "checking checking for gdbm in $withval... " >&6; }
8614 if test "${ac_cv_header_gdbm_h+set}" = set; then
8615 { $as_echo "$as_me:$LINENO: checking for gdbm.h" >&5
8616 $as_echo_n "checking for gdbm.h... " >&6; }
8617 if test "${ac_cv_header_gdbm_h+set}" = set; then
8618 $as_echo_n "(cached) " >&6
8620 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
8621 $as_echo "$ac_cv_header_gdbm_h" >&6; }
8623 # Is the header compilable?
8624 { $as_echo "$as_me:$LINENO: checking gdbm.h usability" >&5
8625 $as_echo_n "checking gdbm.h usability... " >&6; }
8626 cat >conftest.$ac_ext <<_ACEOF
8629 cat confdefs.h >>conftest.$ac_ext
8630 cat >>conftest.$ac_ext <<_ACEOF
8631 /* end confdefs.h. */
8632 $ac_includes_default
8635 rm -f conftest.$ac_objext
8636 if { (ac_try="$ac_compile"
8638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8639 *) ac_try_echo=$ac_try;;
8641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8642 $as_echo "$ac_try_echo") >&5
8643 (eval "$ac_compile") 2>conftest.er1
8645 grep -v '^ *+' conftest.er1 >conftest.err
8647 cat conftest.err >&5
8648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649 (exit $ac_status); } && {
8650 test -z "$ac_c_werror_flag" ||
8651 test ! -s conftest.err
8652 } && test -s conftest.$ac_objext; then
8653 ac_header_compiler=yes
8655 $as_echo "$as_me: failed program was:" >&5
8656 sed 's/^/| /' conftest.$ac_ext >&5
8658 ac_header_compiler=no
8661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8662 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8663 $as_echo "$ac_header_compiler" >&6; }
8665 # Is the header present?
8666 { $as_echo "$as_me:$LINENO: checking gdbm.h presence" >&5
8667 $as_echo_n "checking gdbm.h presence... " >&6; }
8668 cat >conftest.$ac_ext <<_ACEOF
8671 cat confdefs.h >>conftest.$ac_ext
8672 cat >>conftest.$ac_ext <<_ACEOF
8673 /* end confdefs.h. */
8676 if { (ac_try="$ac_cpp conftest.$ac_ext"
8678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8679 *) ac_try_echo=$ac_try;;
8681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8682 $as_echo "$ac_try_echo") >&5
8683 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8685 grep -v '^ *+' conftest.er1 >conftest.err
8687 cat conftest.err >&5
8688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689 (exit $ac_status); } >/dev/null && {
8690 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8691 test ! -s conftest.err
8693 ac_header_preproc=yes
8695 $as_echo "$as_me: failed program was:" >&5
8696 sed 's/^/| /' conftest.$ac_ext >&5
8698 ac_header_preproc=no
8701 rm -f conftest.err conftest.$ac_ext
8702 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8703 $as_echo "$ac_header_preproc" >&6; }
8705 # So? What about this header?
8706 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8708 { $as_echo "$as_me:$LINENO: WARNING: gdbm.h: accepted by the compiler, rejected by the preprocessor!" >&5
8709 $as_echo "$as_me: WARNING: gdbm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8710 { $as_echo "$as_me:$LINENO: WARNING: gdbm.h: proceeding with the compiler's result" >&5
8711 $as_echo "$as_me: WARNING: gdbm.h: proceeding with the compiler's result" >&2;}
8712 ac_header_preproc=yes
8715 { $as_echo "$as_me:$LINENO: WARNING: gdbm.h: present but cannot be compiled" >&5
8716 $as_echo "$as_me: WARNING: gdbm.h: present but cannot be compiled" >&2;}
8717 { $as_echo "$as_me:$LINENO: WARNING: gdbm.h: check for missing prerequisite headers?" >&5
8718 $as_echo "$as_me: WARNING: gdbm.h: check for missing prerequisite headers?" >&2;}
8719 { $as_echo "$as_me:$LINENO: WARNING: gdbm.h: see the Autoconf documentation" >&5
8720 $as_echo "$as_me: WARNING: gdbm.h: see the Autoconf documentation" >&2;}
8721 { $as_echo "$as_me:$LINENO: WARNING: gdbm.h: section \"Present But Cannot Be Compiled\"" >&5
8722 $as_echo "$as_me: WARNING: gdbm.h: section \"Present But Cannot Be Compiled\"" >&2;}
8723 { $as_echo "$as_me:$LINENO: WARNING: gdbm.h: proceeding with the preprocessor's result" >&5
8724 $as_echo "$as_me: WARNING: gdbm.h: proceeding with the preprocessor's result" >&2;}
8725 { $as_echo "$as_me:$LINENO: WARNING: gdbm.h: in the future, the compiler will take precedence" >&5
8726 $as_echo "$as_me: WARNING: gdbm.h: in the future, the compiler will take precedence" >&2;}
8730 { $as_echo "$as_me:$LINENO: checking for gdbm.h" >&5
8731 $as_echo_n "checking for gdbm.h... " >&6; }
8732 if test "${ac_cv_header_gdbm_h+set}" = set; then
8733 $as_echo_n "(cached) " >&6
8735 ac_cv_header_gdbm_h=$ac_header_preproc
8737 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
8738 $as_echo "$ac_cv_header_gdbm_h" >&6; }
8741 if test "x$ac_cv_header_gdbm_h" = x""yes; then
8742 { $as_echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
8743 $as_echo_n "checking for gdbm_open in -lgdbm... " >&6; }
8744 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
8745 $as_echo_n "(cached) " >&6
8747 ac_check_lib_save_LIBS=$LIBS
8749 cat >conftest.$ac_ext <<_ACEOF
8752 cat confdefs.h >>conftest.$ac_ext
8753 cat >>conftest.$ac_ext <<_ACEOF
8754 /* end confdefs.h. */
8756 /* Override any GCC internal prototype to avoid an error.
8757 Use char because int might match the return type of a GCC
8758 builtin and then its argument prototype would still apply. */
8766 return gdbm_open ();
8771 rm -f conftest.$ac_objext conftest$ac_exeext
8772 if { (ac_try="$ac_link"
8774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8775 *) ac_try_echo=$ac_try;;
8777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8778 $as_echo "$ac_try_echo") >&5
8779 (eval "$ac_link") 2>conftest.er1
8781 grep -v '^ *+' conftest.er1 >conftest.err
8783 cat conftest.err >&5
8784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785 (exit $ac_status); } && {
8786 test -z "$ac_c_werror_flag" ||
8787 test ! -s conftest.err
8788 } && test -s conftest$ac_exeext && {
8789 test "$cross_compiling" = yes ||
8790 $as_test_x conftest$ac_exeext
8792 ac_cv_lib_gdbm_gdbm_open=yes
8794 $as_echo "$as_me: failed program was:" >&5
8795 sed 's/^/| /' conftest.$ac_ext >&5
8797 ac_cv_lib_gdbm_gdbm_open=no
8800 rm -rf conftest.dSYM
8801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8802 conftest$ac_exeext conftest.$ac_ext
8803 LIBS=$ac_check_lib_save_LIBS
8805 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
8806 $as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; }
8807 if test "x$ac_cv_lib_gdbm_gdbm_open" = x""yes; then
8814 if test "$apu_have_gdbm" != "0"; then
8816 if test "x$APRUTIL_LDFLAGS" = "x"; then
8817 echo " setting APRUTIL_LDFLAGS to \"-L$withval/lib\""
8818 APRUTIL_LDFLAGS="-L$withval/lib"
8820 apr_addto_bugger="-L$withval/lib"
8821 for i in $apr_addto_bugger; do
8822 apr_addto_duplicate="0"
8823 for j in $APRUTIL_LDFLAGS; do
8824 if test "x$i" = "x$j"; then
8825 apr_addto_duplicate="1"
8829 if test $apr_addto_duplicate = "0"; then
8830 echo " adding \"$i\" to APRUTIL_LDFLAGS"
8831 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
8837 if test "x$APRUTIL_INCLUDES" = "x"; then
8838 echo " setting APRUTIL_INCLUDES to \"-I$withval/include\""
8839 APRUTIL_INCLUDES="-I$withval/include"
8841 apr_addto_bugger="-I$withval/include"
8842 for i in $apr_addto_bugger; do
8843 apr_addto_duplicate="0"
8844 for j in $APRUTIL_INCLUDES; do
8845 if test "x$i" = "x$j"; then
8846 apr_addto_duplicate="1"
8850 if test $apr_addto_duplicate = "0"; then
8851 echo " adding \"$i\" to APRUTIL_INCLUDES"
8852 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
8864 # Check whether --with-ndbm was given.
8865 if test "${with_ndbm+set}" = set; then
8868 if test "$withval" = "yes"; then
8869 { $as_echo "$as_me:$LINENO: checking checking for ndbm in the usual places" >&5
8870 $as_echo_n "checking checking for ndbm in the usual places... " >&6; }
8874 elif test "$withval" = "no"; then
8880 NDBM_INC="-I`echo $withval |sed -e 's/:.*$//'`"
8881 NDBM_LDFLAGS="-L`echo $withval |sed -e 's/^.*://'`"
8882 { $as_echo "$as_me:$LINENO: checking checking for ndbm includes with $NDBM_INC libs with $NDBM_LDFLAGS " >&5
8883 $as_echo_n "checking checking for ndbm includes with $NDBM_INC libs with $NDBM_LDFLAGS ... " >&6; }
8886 NDBM_INC="-I$withval/include"
8887 NDBM_LDFLAGS="-L$withval/lib"
8888 { $as_echo "$as_me:$LINENO: checking checking for ndbm includes in $withval" >&5
8889 $as_echo_n "checking checking for ndbm includes in $withval... " >&6; }
8894 save_cppflags="$CPPFLAGS"
8895 save_ldflags="$LDFLAGS"
8896 CPPFLAGS="$CPPFLAGS $NDBM_INC"
8897 LDFLAGS="$LDFLAGS $NDBM_LDFLAGS"
8898 if test "$apu_want_ndbm" != "0"; then
8899 if test "${ac_cv_header_ndbm_h+set}" = set; then
8900 { $as_echo "$as_me:$LINENO: checking for ndbm.h" >&5
8901 $as_echo_n "checking for ndbm.h... " >&6; }
8902 if test "${ac_cv_header_ndbm_h+set}" = set; then
8903 $as_echo_n "(cached) " >&6
8905 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
8906 $as_echo "$ac_cv_header_ndbm_h" >&6; }
8908 # Is the header compilable?
8909 { $as_echo "$as_me:$LINENO: checking ndbm.h usability" >&5
8910 $as_echo_n "checking ndbm.h usability... " >&6; }
8911 cat >conftest.$ac_ext <<_ACEOF
8914 cat confdefs.h >>conftest.$ac_ext
8915 cat >>conftest.$ac_ext <<_ACEOF
8916 /* end confdefs.h. */
8917 $ac_includes_default
8920 rm -f conftest.$ac_objext
8921 if { (ac_try="$ac_compile"
8923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8924 *) ac_try_echo=$ac_try;;
8926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8927 $as_echo "$ac_try_echo") >&5
8928 (eval "$ac_compile") 2>conftest.er1
8930 grep -v '^ *+' conftest.er1 >conftest.err
8932 cat conftest.err >&5
8933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934 (exit $ac_status); } && {
8935 test -z "$ac_c_werror_flag" ||
8936 test ! -s conftest.err
8937 } && test -s conftest.$ac_objext; then
8938 ac_header_compiler=yes
8940 $as_echo "$as_me: failed program was:" >&5
8941 sed 's/^/| /' conftest.$ac_ext >&5
8943 ac_header_compiler=no
8946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8947 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8948 $as_echo "$ac_header_compiler" >&6; }
8950 # Is the header present?
8951 { $as_echo "$as_me:$LINENO: checking ndbm.h presence" >&5
8952 $as_echo_n "checking ndbm.h presence... " >&6; }
8953 cat >conftest.$ac_ext <<_ACEOF
8956 cat confdefs.h >>conftest.$ac_ext
8957 cat >>conftest.$ac_ext <<_ACEOF
8958 /* end confdefs.h. */
8961 if { (ac_try="$ac_cpp conftest.$ac_ext"
8963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8964 *) ac_try_echo=$ac_try;;
8966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8967 $as_echo "$ac_try_echo") >&5
8968 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8970 grep -v '^ *+' conftest.er1 >conftest.err
8972 cat conftest.err >&5
8973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974 (exit $ac_status); } >/dev/null && {
8975 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8976 test ! -s conftest.err
8978 ac_header_preproc=yes
8980 $as_echo "$as_me: failed program was:" >&5
8981 sed 's/^/| /' conftest.$ac_ext >&5
8983 ac_header_preproc=no
8986 rm -f conftest.err conftest.$ac_ext
8987 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8988 $as_echo "$ac_header_preproc" >&6; }
8990 # So? What about this header?
8991 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8993 { $as_echo "$as_me:$LINENO: WARNING: ndbm.h: accepted by the compiler, rejected by the preprocessor!" >&5
8994 $as_echo "$as_me: WARNING: ndbm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8995 { $as_echo "$as_me:$LINENO: WARNING: ndbm.h: proceeding with the compiler's result" >&5
8996 $as_echo "$as_me: WARNING: ndbm.h: proceeding with the compiler's result" >&2;}
8997 ac_header_preproc=yes
9000 { $as_echo "$as_me:$LINENO: WARNING: ndbm.h: present but cannot be compiled" >&5
9001 $as_echo "$as_me: WARNING: ndbm.h: present but cannot be compiled" >&2;}
9002 { $as_echo "$as_me:$LINENO: WARNING: ndbm.h: check for missing prerequisite headers?" >&5
9003 $as_echo "$as_me: WARNING: ndbm.h: check for missing prerequisite headers?" >&2;}
9004 { $as_echo "$as_me:$LINENO: WARNING: ndbm.h: see the Autoconf documentation" >&5
9005 $as_echo "$as_me: WARNING: ndbm.h: see the Autoconf documentation" >&2;}
9006 { $as_echo "$as_me:$LINENO: WARNING: ndbm.h: section \"Present But Cannot Be Compiled\"" >&5
9007 $as_echo "$as_me: WARNING: ndbm.h: section \"Present But Cannot Be Compiled\"" >&2;}
9008 { $as_echo "$as_me:$LINENO: WARNING: ndbm.h: proceeding with the preprocessor's result" >&5
9009 $as_echo "$as_me: WARNING: ndbm.h: proceeding with the preprocessor's result" >&2;}
9010 { $as_echo "$as_me:$LINENO: WARNING: ndbm.h: in the future, the compiler will take precedence" >&5
9011 $as_echo "$as_me: WARNING: ndbm.h: in the future, the compiler will take precedence" >&2;}
9015 { $as_echo "$as_me:$LINENO: checking for ndbm.h" >&5
9016 $as_echo_n "checking for ndbm.h... " >&6; }
9017 if test "${ac_cv_header_ndbm_h+set}" = set; then
9018 $as_echo_n "(cached) " >&6
9020 ac_cv_header_ndbm_h=$ac_header_preproc
9022 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
9023 $as_echo "$ac_cv_header_ndbm_h" >&6; }
9026 if test "x$ac_cv_header_ndbm_h" = x""yes; then
9027 { $as_echo "$as_me:$LINENO: checking for dbm_open in -lc" >&5
9028 $as_echo_n "checking for dbm_open in -lc... " >&6; }
9029 if test "${ac_cv_lib_c_dbm_open+set}" = set; then
9030 $as_echo_n "(cached) " >&6
9032 ac_check_lib_save_LIBS=$LIBS
9034 cat >conftest.$ac_ext <<_ACEOF
9037 cat confdefs.h >>conftest.$ac_ext
9038 cat >>conftest.$ac_ext <<_ACEOF
9039 /* end confdefs.h. */
9041 /* Override any GCC internal prototype to avoid an error.
9042 Use char because int might match the return type of a GCC
9043 builtin and then its argument prototype would still apply. */
9056 rm -f conftest.$ac_objext conftest$ac_exeext
9057 if { (ac_try="$ac_link"
9059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9060 *) ac_try_echo=$ac_try;;
9062 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9063 $as_echo "$ac_try_echo") >&5
9064 (eval "$ac_link") 2>conftest.er1
9066 grep -v '^ *+' conftest.er1 >conftest.err
9068 cat conftest.err >&5
9069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070 (exit $ac_status); } && {
9071 test -z "$ac_c_werror_flag" ||
9072 test ! -s conftest.err
9073 } && test -s conftest$ac_exeext && {
9074 test "$cross_compiling" = yes ||
9075 $as_test_x conftest$ac_exeext
9077 ac_cv_lib_c_dbm_open=yes
9079 $as_echo "$as_me: failed program was:" >&5
9080 sed 's/^/| /' conftest.$ac_ext >&5
9082 ac_cv_lib_c_dbm_open=no
9085 rm -rf conftest.dSYM
9086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9087 conftest$ac_exeext conftest.$ac_ext
9088 LIBS=$ac_check_lib_save_LIBS
9090 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_dbm_open" >&5
9091 $as_echo "$ac_cv_lib_c_dbm_open" >&6; }
9092 if test "x$ac_cv_lib_c_dbm_open" = x""yes; then
9093 apu_have_ndbm=1;apu_ndbm_lib=c
9095 { $as_echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
9096 $as_echo_n "checking for dbm_open in -ldbm... " >&6; }
9097 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
9098 $as_echo_n "(cached) " >&6
9100 ac_check_lib_save_LIBS=$LIBS
9102 cat >conftest.$ac_ext <<_ACEOF
9105 cat confdefs.h >>conftest.$ac_ext
9106 cat >>conftest.$ac_ext <<_ACEOF
9107 /* end confdefs.h. */
9109 /* Override any GCC internal prototype to avoid an error.
9110 Use char because int might match the return type of a GCC
9111 builtin and then its argument prototype would still apply. */
9124 rm -f conftest.$ac_objext conftest$ac_exeext
9125 if { (ac_try="$ac_link"
9127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9128 *) ac_try_echo=$ac_try;;
9130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9131 $as_echo "$ac_try_echo") >&5
9132 (eval "$ac_link") 2>conftest.er1
9134 grep -v '^ *+' conftest.er1 >conftest.err
9136 cat conftest.err >&5
9137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138 (exit $ac_status); } && {
9139 test -z "$ac_c_werror_flag" ||
9140 test ! -s conftest.err
9141 } && test -s conftest$ac_exeext && {
9142 test "$cross_compiling" = yes ||
9143 $as_test_x conftest$ac_exeext
9145 ac_cv_lib_dbm_dbm_open=yes
9147 $as_echo "$as_me: failed program was:" >&5
9148 sed 's/^/| /' conftest.$ac_ext >&5
9150 ac_cv_lib_dbm_dbm_open=no
9153 rm -rf conftest.dSYM
9154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9155 conftest$ac_exeext conftest.$ac_ext
9156 LIBS=$ac_check_lib_save_LIBS
9158 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
9159 $as_echo "$ac_cv_lib_dbm_dbm_open" >&6; }
9160 if test "x$ac_cv_lib_dbm_dbm_open" = x""yes; then
9161 apu_have_ndbm=1;apu_ndbm_lib=dbm
9163 { $as_echo "$as_me:$LINENO: checking for dbm_open in -ldb" >&5
9164 $as_echo_n "checking for dbm_open in -ldb... " >&6; }
9165 if test "${ac_cv_lib_db_dbm_open+set}" = set; then
9166 $as_echo_n "(cached) " >&6
9168 ac_check_lib_save_LIBS=$LIBS
9170 cat >conftest.$ac_ext <<_ACEOF
9173 cat confdefs.h >>conftest.$ac_ext
9174 cat >>conftest.$ac_ext <<_ACEOF
9175 /* end confdefs.h. */
9177 /* Override any GCC internal prototype to avoid an error.
9178 Use char because int might match the return type of a GCC
9179 builtin and then its argument prototype would still apply. */
9192 rm -f conftest.$ac_objext conftest$ac_exeext
9193 if { (ac_try="$ac_link"
9195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9196 *) ac_try_echo=$ac_try;;
9198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9199 $as_echo "$ac_try_echo") >&5
9200 (eval "$ac_link") 2>conftest.er1
9202 grep -v '^ *+' conftest.er1 >conftest.err
9204 cat conftest.err >&5
9205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); } && {
9207 test -z "$ac_c_werror_flag" ||
9208 test ! -s conftest.err
9209 } && test -s conftest$ac_exeext && {
9210 test "$cross_compiling" = yes ||
9211 $as_test_x conftest$ac_exeext
9213 ac_cv_lib_db_dbm_open=yes
9215 $as_echo "$as_me: failed program was:" >&5
9216 sed 's/^/| /' conftest.$ac_ext >&5
9218 ac_cv_lib_db_dbm_open=no
9221 rm -rf conftest.dSYM
9222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9223 conftest$ac_exeext conftest.$ac_ext
9224 LIBS=$ac_check_lib_save_LIBS
9226 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_db_dbm_open" >&5
9227 $as_echo "$ac_cv_lib_db_dbm_open" >&6; }
9228 if test "x$ac_cv_lib_db_dbm_open" = x""yes; then
9229 apu_have_ndbm=1;apu_ndbm_lib=db
9231 { $as_echo "$as_me:$LINENO: checking for __db_ndbm_open in -ldb" >&5
9232 $as_echo_n "checking for __db_ndbm_open in -ldb... " >&6; }
9233 if test "${ac_cv_lib_db___db_ndbm_open+set}" = set; then
9234 $as_echo_n "(cached) " >&6
9236 ac_check_lib_save_LIBS=$LIBS
9238 cat >conftest.$ac_ext <<_ACEOF
9241 cat confdefs.h >>conftest.$ac_ext
9242 cat >>conftest.$ac_ext <<_ACEOF
9243 /* end confdefs.h. */
9245 /* Override any GCC internal prototype to avoid an error.
9246 Use char because int might match the return type of a GCC
9247 builtin and then its argument prototype would still apply. */
9251 char __db_ndbm_open ();
9255 return __db_ndbm_open ();
9260 rm -f conftest.$ac_objext conftest$ac_exeext
9261 if { (ac_try="$ac_link"
9263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9264 *) ac_try_echo=$ac_try;;
9266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9267 $as_echo "$ac_try_echo") >&5
9268 (eval "$ac_link") 2>conftest.er1
9270 grep -v '^ *+' conftest.er1 >conftest.err
9272 cat conftest.err >&5
9273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274 (exit $ac_status); } && {
9275 test -z "$ac_c_werror_flag" ||
9276 test ! -s conftest.err
9277 } && test -s conftest$ac_exeext && {
9278 test "$cross_compiling" = yes ||
9279 $as_test_x conftest$ac_exeext
9281 ac_cv_lib_db___db_ndbm_open=yes
9283 $as_echo "$as_me: failed program was:" >&5
9284 sed 's/^/| /' conftest.$ac_ext >&5
9286 ac_cv_lib_db___db_ndbm_open=no
9289 rm -rf conftest.dSYM
9290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9291 conftest$ac_exeext conftest.$ac_ext
9292 LIBS=$ac_check_lib_save_LIBS
9294 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_db___db_ndbm_open" >&5
9295 $as_echo "$ac_cv_lib_db___db_ndbm_open" >&6; }
9296 if test "x$ac_cv_lib_db___db_ndbm_open" = x""yes; then
9297 apu_have_ndbm=1;apu_ndbm_lib=db
9313 if test "$apu_have_ndbm" != "0"; then
9314 if test "$withval" != "yes"; then
9316 if test "x$APRUTIL_INCLUDES" = "x"; then
9317 echo " setting APRUTIL_INCLUDES to \"$NDBM_INC\""
9318 APRUTIL_INCLUDES="$NDBM_INC"
9320 apr_addto_bugger="$NDBM_INC"
9321 for i in $apr_addto_bugger; do
9322 apr_addto_duplicate="0"
9323 for j in $APRUTIL_INCLUDES; do
9324 if test "x$i" = "x$j"; then
9325 apr_addto_duplicate="1"
9329 if test $apr_addto_duplicate = "0"; then
9330 echo " adding \"$i\" to APRUTIL_INCLUDES"
9331 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
9337 if test "x$APRUTIL_LDFLAGS" = "x"; then
9338 echo " setting APRUTIL_LDFLAGS to \"$NDBM_LDFLAGS\""
9339 APRUTIL_LDFLAGS="$NDBM_LDFLAGS"
9341 apr_addto_bugger="$NDBM_LDFLAGS"
9342 for i in $apr_addto_bugger; do
9343 apr_addto_duplicate="0"
9344 for j in $APRUTIL_LDFLAGS; do
9345 if test "x$i" = "x$j"; then
9346 apr_addto_duplicate="1"
9350 if test $apr_addto_duplicate = "0"; then
9351 echo " adding \"$i\" to APRUTIL_LDFLAGS"
9352 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
9358 elif test "$withval" != "yes"; then
9359 { { $as_echo "$as_me:$LINENO: error: NDBM not found in the specified directory" >&5
9360 $as_echo "$as_me: error: NDBM not found in the specified directory" >&2;}
9361 { (exit 1); exit 1; }; }
9364 CPPFLAGS="$save_cppflags"
9365 LDFLAGS="$save_ldflags"
9375 if test -n "$apu_db_xtra_libs"; then
9376 saveddbxtralibs="$LIBS"
9377 LIBS="$apu_db_xtra_libs $LIBS"
9381 # Check whether --with-berkeley-db was given.
9382 if test "${with_berkeley_db+set}" = set; then
9383 withval=$with_berkeley_db;
9384 if test "$withval" = "yes"; then
9387 elif test "$withval" = "no"; then
9391 user_places="$withval"
9394 if test "$apu_want_db" != "0"; then
9396 requested=$requested
9397 check_places=$user_places
9399 case "$requested" in
9402 all_places="$check_places"
9405 places="$all_places"
9406 if test -z "$places"; then
9407 places="std /usr/local/BerkeleyDB.4.8 /boot/home/config"
9411 if test ""8"" != "-1"; then
9412 bdb_version="$bdb_version."8""
9413 if test ""-1"" != "-1"; then
9414 bdb_version="$bdb_version."-1""
9417 bdb_places="$places"
9418 bdb_default_search_headers="db48/db.h db4/db.h db.h"
9419 bdb_default_search_lib_names="db-4.8 db4-4.8 db48 db4 db"
9424 # Save the original values of the flags we tweak.
9425 apu_check_lib_save_libs="$LIBS"
9426 apu_check_lib_save_ldflags="$LDFLAGS"
9427 apu_check_lib_save_cppflags="$CPPFLAGS"
9429 # The variable `found' is the prefix under which we've found
9430 # Berkeley DB, or `not' if we haven't found it anywhere yet.
9432 for bdb_place in $bdb_places; do
9434 LDFLAGS="$apu_check_lib_save_ldflags"
9435 CPPFLAGS="$apu_check_lib_save_cppflags"
9436 case "$bdb_place" in
9438 description="the standard places"
9441 header="`echo $bdb_place | sed -e 's/:.*$//'`"
9442 lib="`echo $bdb_place | sed -e 's/^.*://'`"
9443 CPPFLAGS="$CPPFLAGS -I$header"
9444 LDFLAGS="$LDFLAGS -L$lib"
9445 description="$header and $lib"
9448 if test -d $bdb_place; then
9449 LDFLAGS="$LDFLAGS -L$bdb_place/lib"
9450 CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
9452 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
9453 $as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; }
9454 { $as_echo "$as_me:$LINENO: result: directory not found" >&5
9455 $as_echo "directory not found" >&6; }
9458 description="$bdb_place"
9462 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
9463 # trick to display a message instead.
9464 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
9465 $as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; }
9466 { $as_echo "$as_me:$LINENO: result: " >&5
9469 for bdb_libname in $bdb_default_search_lib_names; do
9470 for bdb_header in $bdb_default_search_headers; do
9471 # Clear the header cache variable for each location
9473 cache_id="`echo ac_cv_header_${bdb_header} \
9474 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
9477 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh`
9478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9479 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
9480 $as_echo_n "checking for $bdb_header... " >&6; }
9481 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9482 $as_echo_n "(cached) " >&6
9484 ac_res=`eval 'as_val=${'$as_ac_Header'}
9485 $as_echo "$as_val"'`
9486 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9487 $as_echo "$ac_res" >&6; }
9489 # Is the header compilable?
9490 { $as_echo "$as_me:$LINENO: checking $bdb_header usability" >&5
9491 $as_echo_n "checking $bdb_header usability... " >&6; }
9492 cat >conftest.$ac_ext <<_ACEOF
9495 cat confdefs.h >>conftest.$ac_ext
9496 cat >>conftest.$ac_ext <<_ACEOF
9497 /* end confdefs.h. */
9498 $ac_includes_default
9499 #include <$bdb_header>
9501 rm -f conftest.$ac_objext
9502 if { (ac_try="$ac_compile"
9504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9505 *) ac_try_echo=$ac_try;;
9507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9508 $as_echo "$ac_try_echo") >&5
9509 (eval "$ac_compile") 2>conftest.er1
9511 grep -v '^ *+' conftest.er1 >conftest.err
9513 cat conftest.err >&5
9514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515 (exit $ac_status); } && {
9516 test -z "$ac_c_werror_flag" ||
9517 test ! -s conftest.err
9518 } && test -s conftest.$ac_objext; then
9519 ac_header_compiler=yes
9521 $as_echo "$as_me: failed program was:" >&5
9522 sed 's/^/| /' conftest.$ac_ext >&5
9524 ac_header_compiler=no
9527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9528 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9529 $as_echo "$ac_header_compiler" >&6; }
9531 # Is the header present?
9532 { $as_echo "$as_me:$LINENO: checking $bdb_header presence" >&5
9533 $as_echo_n "checking $bdb_header presence... " >&6; }
9534 cat >conftest.$ac_ext <<_ACEOF
9537 cat confdefs.h >>conftest.$ac_ext
9538 cat >>conftest.$ac_ext <<_ACEOF
9539 /* end confdefs.h. */
9540 #include <$bdb_header>
9542 if { (ac_try="$ac_cpp conftest.$ac_ext"
9544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9545 *) ac_try_echo=$ac_try;;
9547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9548 $as_echo "$ac_try_echo") >&5
9549 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9551 grep -v '^ *+' conftest.er1 >conftest.err
9553 cat conftest.err >&5
9554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555 (exit $ac_status); } >/dev/null && {
9556 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9557 test ! -s conftest.err
9559 ac_header_preproc=yes
9561 $as_echo "$as_me: failed program was:" >&5
9562 sed 's/^/| /' conftest.$ac_ext >&5
9564 ac_header_preproc=no
9567 rm -f conftest.err conftest.$ac_ext
9568 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9569 $as_echo "$ac_header_preproc" >&6; }
9571 # So? What about this header?
9572 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9574 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
9575 $as_echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9576 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
9577 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
9578 ac_header_preproc=yes
9581 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
9582 $as_echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
9583 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
9584 $as_echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
9585 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
9586 $as_echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
9587 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
9588 $as_echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
9589 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
9590 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
9591 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
9592 $as_echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
9596 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
9597 $as_echo_n "checking for $bdb_header... " >&6; }
9598 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9599 $as_echo_n "(cached) " >&6
9601 eval "$as_ac_Header=\$ac_header_preproc"
9603 ac_res=`eval 'as_val=${'$as_ac_Header'}
9604 $as_echo "$as_val"'`
9605 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9606 $as_echo "$ac_res" >&6; }
9609 as_val=`eval 'as_val=${'$as_ac_Header'}
9610 $as_echo "$as_val"'`
9611 if test "x$as_val" = x""yes; then
9613 if test ""4"" = "3" -o ""4"" = "4"; then
9614 # We generate a separate cache variable for each prefix and libname
9615 # we search under. That way, we avoid caching information that
9616 # changes if the user runs `configure' with a different set of
9619 cache_id="`echo apu_cv_check_berkeley_db_"4"_"8"_"-1"_${bdb_header}_${bdb_libname}_in_${bdb_place} \
9620 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
9623 { $as_echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
9624 $as_echo_n "checking for -l$bdb_libname... " >&6; }
9625 if { as_var=$cache_id; eval "test \"\${$as_var+set}\" = set"; }; then
9626 $as_echo_n "(cached) " >&6
9630 apu_try_berkeley_db_save_libs="$LIBS"
9632 apu_check_berkeley_db_major="4"
9633 apu_check_berkeley_db_minor="8"
9634 apu_check_berkeley_db_patch="-1"
9635 apu_try_berkeley_db_header=$bdb_header
9636 apu_try_berkeley_db_libname=$bdb_libname
9638 LIBS="$LIBS -l$apu_try_berkeley_db_libname"
9639 if test "$cross_compiling" = yes; then
9640 apu_try_berkeley_db=yes
9643 cat >conftest.$ac_ext <<_ACEOF
9646 cat confdefs.h >>conftest.$ac_ext
9647 cat >>conftest.$ac_ext <<_ACEOF
9648 /* end confdefs.h. */
9652 #include <$apu_try_berkeley_db_header>
9655 int major, minor, patch;
9657 db_version(&major, &minor, &patch);
9659 /* Sanity check: ensure that db.h constants actually match the db library */
9660 if (major != DB_VERSION_MAJOR
9661 || minor != DB_VERSION_MINOR
9662 || patch != DB_VERSION_PATCH)
9665 /* Run-time check: ensure the library claims to be the correct version. */
9667 if ($apu_check_berkeley_db_major != -1) {
9668 if (major < $apu_check_berkeley_db_major)
9670 if (major > $apu_check_berkeley_db_major)
9674 if ($apu_check_berkeley_db_minor != -1) {
9675 if (minor < $apu_check_berkeley_db_minor)
9677 if (minor > $apu_check_berkeley_db_minor)
9681 if ($apu_check_berkeley_db_patch == -1
9682 || patch >= $apu_check_berkeley_db_patch)
9689 rm -f conftest$ac_exeext
9690 if { (ac_try="$ac_link"
9692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9693 *) ac_try_echo=$ac_try;;
9695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9696 $as_echo "$ac_try_echo") >&5
9697 (eval "$ac_link") 2>&5
9699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9701 { (case "(($ac_try" in
9702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9703 *) ac_try_echo=$ac_try;;
9705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9706 $as_echo "$ac_try_echo") >&5
9707 (eval "$ac_try") 2>&5
9709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710 (exit $ac_status); }; }; then
9711 apu_try_berkeley_db=yes
9713 $as_echo "$as_me: program exited with status $ac_status" >&5
9714 $as_echo "$as_me: failed program was:" >&5
9715 sed 's/^/| /' conftest.$ac_ext >&5
9718 apu_try_berkeley_db=no
9720 rm -rf conftest.dSYM
9721 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9726 LIBS="$apu_try_berkeley_db_save_libs"
9729 eval "$cache_id=$apu_try_berkeley_db"
9733 result="`eval echo '$'$cache_id`"
9734 { $as_echo "$as_me:$LINENO: result: $result" >&5
9735 $as_echo "$result" >&6; }
9736 elif test ""4"" = "1"; then
9737 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
9738 { $as_echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
9739 $as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; }
9740 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
9741 $as_echo_n "(cached) " >&6
9743 ac_check_lib_save_LIBS=$LIBS
9744 LIBS="-l$bdb_libname $LIBS"
9745 cat >conftest.$ac_ext <<_ACEOF
9748 cat confdefs.h >>conftest.$ac_ext
9749 cat >>conftest.$ac_ext <<_ACEOF
9750 /* end confdefs.h. */
9752 /* Override any GCC internal prototype to avoid an error.
9753 Use char because int might match the return type of a GCC
9754 builtin and then its argument prototype would still apply. */
9767 rm -f conftest.$ac_objext conftest$ac_exeext
9768 if { (ac_try="$ac_link"
9770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9771 *) ac_try_echo=$ac_try;;
9773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9774 $as_echo "$ac_try_echo") >&5
9775 (eval "$ac_link") 2>conftest.er1
9777 grep -v '^ *+' conftest.er1 >conftest.err
9779 cat conftest.err >&5
9780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); } && {
9782 test -z "$ac_c_werror_flag" ||
9783 test ! -s conftest.err
9784 } && test -s conftest$ac_exeext && {
9785 test "$cross_compiling" = yes ||
9786 $as_test_x conftest$ac_exeext
9788 eval "$as_ac_Lib=yes"
9790 $as_echo "$as_me: failed program was:" >&5
9791 sed 's/^/| /' conftest.$ac_ext >&5
9793 eval "$as_ac_Lib=no"
9796 rm -rf conftest.dSYM
9797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9798 conftest$ac_exeext conftest.$ac_ext
9799 LIBS=$ac_check_lib_save_LIBS
9801 ac_res=`eval 'as_val=${'$as_ac_Lib'}
9802 $as_echo "$as_val"'`
9803 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9804 $as_echo "$ac_res" >&6; }
9805 as_val=`eval 'as_val=${'$as_ac_Lib'}
9806 $as_echo "$as_val"'`
9807 if test "x$as_val" = x""yes; then
9814 elif test ""4"" = "2"; then
9815 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
9816 { $as_echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
9817 $as_echo_n "checking for db_open in -l$bdb_libname... " >&6; }
9818 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
9819 $as_echo_n "(cached) " >&6
9821 ac_check_lib_save_LIBS=$LIBS
9822 LIBS="-l$bdb_libname $LIBS"
9823 cat >conftest.$ac_ext <<_ACEOF
9826 cat confdefs.h >>conftest.$ac_ext
9827 cat >>conftest.$ac_ext <<_ACEOF
9828 /* end confdefs.h. */
9830 /* Override any GCC internal prototype to avoid an error.
9831 Use char because int might match the return type of a GCC
9832 builtin and then its argument prototype would still apply. */
9845 rm -f conftest.$ac_objext conftest$ac_exeext
9846 if { (ac_try="$ac_link"
9848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9849 *) ac_try_echo=$ac_try;;
9851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9852 $as_echo "$ac_try_echo") >&5
9853 (eval "$ac_link") 2>conftest.er1
9855 grep -v '^ *+' conftest.er1 >conftest.err
9857 cat conftest.err >&5
9858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); } && {
9860 test -z "$ac_c_werror_flag" ||
9861 test ! -s conftest.err
9862 } && test -s conftest$ac_exeext && {
9863 test "$cross_compiling" = yes ||
9864 $as_test_x conftest$ac_exeext
9866 eval "$as_ac_Lib=yes"
9868 $as_echo "$as_me: failed program was:" >&5
9869 sed 's/^/| /' conftest.$ac_ext >&5
9871 eval "$as_ac_Lib=no"
9874 rm -rf conftest.dSYM
9875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9876 conftest$ac_exeext conftest.$ac_ext
9877 LIBS=$ac_check_lib_save_LIBS
9879 ac_res=`eval 'as_val=${'$as_ac_Lib'}
9880 $as_echo "$as_val"'`
9881 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9882 $as_echo "$ac_res" >&6; }
9883 as_val=`eval 'as_val=${'$as_ac_Lib'}
9884 $as_echo "$as_val"'`
9885 if test "x$as_val" = x""yes; then
9900 # If we found it, no need to search any more.
9901 if test "$result" = "yes"; then
9906 test "$found" != "not" && break
9908 test "$found" != "not" && break
9911 # Restore the original values of the flags we tweak.
9912 LDFLAGS="$apu_check_lib_save_ldflags"
9913 CPPFLAGS="$apu_check_lib_save_cppflags"
9920 apu_db_header=$bdb_header
9921 apu_db_lib=$bdb_libname
9925 header="`echo $found | sed -e 's/:.*$//'`"
9926 lib="`echo $found | sed -e 's/^.*://'`"
9929 if test "x$APRUTIL_INCLUDES" = "x"; then
9930 echo " setting APRUTIL_INCLUDES to \"-I$header\""
9931 APRUTIL_INCLUDES="-I$header"
9933 apr_addto_bugger="-I$header"
9934 for i in $apr_addto_bugger; do
9935 apr_addto_duplicate="0"
9936 for j in $APRUTIL_INCLUDES; do
9937 if test "x$i" = "x$j"; then
9938 apr_addto_duplicate="1"
9942 if test $apr_addto_duplicate = "0"; then
9943 echo " adding \"$i\" to APRUTIL_INCLUDES"
9944 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
9950 if test "x$APRUTIL_LDFLAGS" = "x"; then
9951 echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
9952 APRUTIL_LDFLAGS="-L$lib"
9954 apr_addto_bugger="-L$lib"
9955 for i in $apr_addto_bugger; do
9956 apr_addto_duplicate="0"
9957 for j in $APRUTIL_LDFLAGS; do
9958 if test "x$i" = "x$j"; then
9959 apr_addto_duplicate="1"
9963 if test $apr_addto_duplicate = "0"; then
9964 echo " adding \"$i\" to APRUTIL_LDFLAGS"
9965 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
9970 apu_db_header=$bdb_header
9971 apu_db_lib=$bdb_libname
9976 if test "x$APRUTIL_INCLUDES" = "x"; then
9977 echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
9978 APRUTIL_INCLUDES="-I$found/include"
9980 apr_addto_bugger="-I$found/include"
9981 for i in $apr_addto_bugger; do
9982 apr_addto_duplicate="0"
9983 for j in $APRUTIL_INCLUDES; do
9984 if test "x$i" = "x$j"; then
9985 apr_addto_duplicate="1"
9989 if test $apr_addto_duplicate = "0"; then
9990 echo " adding \"$i\" to APRUTIL_INCLUDES"
9991 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
9997 if test "x$APRUTIL_LDFLAGS" = "x"; then
9998 echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
9999 APRUTIL_LDFLAGS="-L$found/lib"
10001 apr_addto_bugger="-L$found/lib"
10002 for i in $apr_addto_bugger; do
10003 apr_addto_duplicate="0"
10004 for j in $APRUTIL_LDFLAGS; do
10005 if test "x$i" = "x$j"; then
10006 apr_addto_duplicate="1"
10010 if test $apr_addto_duplicate = "0"; then
10011 echo " adding \"$i\" to APRUTIL_LDFLAGS"
10012 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
10017 apu_db_header=$bdb_header
10018 apu_db_lib=$bdb_libname
10023 if test "$apu_have_db" = "1"; then
10027 if test "$apu_db_version" != "4"; then
10029 places="$all_places"
10030 if test -z "$places"; then
10031 places="std /usr/local/BerkeleyDB.4.7 /boot/home/config"
10035 if test ""7"" != "-1"; then
10036 bdb_version="$bdb_version."7""
10037 if test ""-1"" != "-1"; then
10038 bdb_version="$bdb_version."-1""
10041 bdb_places="$places"
10042 bdb_default_search_headers="db47/db.h db4/db.h db.h"
10043 bdb_default_search_lib_names="db-4.7 db4-4.7 db47 db4 db"
10048 # Save the original values of the flags we tweak.
10049 apu_check_lib_save_libs="$LIBS"
10050 apu_check_lib_save_ldflags="$LDFLAGS"
10051 apu_check_lib_save_cppflags="$CPPFLAGS"
10053 # The variable `found' is the prefix under which we've found
10054 # Berkeley DB, or `not' if we haven't found it anywhere yet.
10056 for bdb_place in $bdb_places; do
10058 LDFLAGS="$apu_check_lib_save_ldflags"
10059 CPPFLAGS="$apu_check_lib_save_cppflags"
10060 case "$bdb_place" in
10062 description="the standard places"
10065 header="`echo $bdb_place | sed -e 's/:.*$//'`"
10066 lib="`echo $bdb_place | sed -e 's/^.*://'`"
10067 CPPFLAGS="$CPPFLAGS -I$header"
10068 LDFLAGS="$LDFLAGS -L$lib"
10069 description="$header and $lib"
10072 if test -d $bdb_place; then
10073 LDFLAGS="$LDFLAGS -L$bdb_place/lib"
10074 CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
10076 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
10077 $as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; }
10078 { $as_echo "$as_me:$LINENO: result: directory not found" >&5
10079 $as_echo "directory not found" >&6; }
10082 description="$bdb_place"
10086 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
10087 # trick to display a message instead.
10088 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
10089 $as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; }
10090 { $as_echo "$as_me:$LINENO: result: " >&5
10093 for bdb_libname in $bdb_default_search_lib_names; do
10094 for bdb_header in $bdb_default_search_headers; do
10095 # Clear the header cache variable for each location
10097 cache_id="`echo ac_cv_header_${bdb_header} \
10098 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
10101 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh`
10102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10103 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
10104 $as_echo_n "checking for $bdb_header... " >&6; }
10105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10106 $as_echo_n "(cached) " >&6
10108 ac_res=`eval 'as_val=${'$as_ac_Header'}
10109 $as_echo "$as_val"'`
10110 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10111 $as_echo "$ac_res" >&6; }
10113 # Is the header compilable?
10114 { $as_echo "$as_me:$LINENO: checking $bdb_header usability" >&5
10115 $as_echo_n "checking $bdb_header usability... " >&6; }
10116 cat >conftest.$ac_ext <<_ACEOF
10119 cat confdefs.h >>conftest.$ac_ext
10120 cat >>conftest.$ac_ext <<_ACEOF
10121 /* end confdefs.h. */
10122 $ac_includes_default
10123 #include <$bdb_header>
10125 rm -f conftest.$ac_objext
10126 if { (ac_try="$ac_compile"
10127 case "(($ac_try" in
10128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10129 *) ac_try_echo=$ac_try;;
10131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10132 $as_echo "$ac_try_echo") >&5
10133 (eval "$ac_compile") 2>conftest.er1
10135 grep -v '^ *+' conftest.er1 >conftest.err
10137 cat conftest.err >&5
10138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139 (exit $ac_status); } && {
10140 test -z "$ac_c_werror_flag" ||
10141 test ! -s conftest.err
10142 } && test -s conftest.$ac_objext; then
10143 ac_header_compiler=yes
10145 $as_echo "$as_me: failed program was:" >&5
10146 sed 's/^/| /' conftest.$ac_ext >&5
10148 ac_header_compiler=no
10151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10152 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10153 $as_echo "$ac_header_compiler" >&6; }
10155 # Is the header present?
10156 { $as_echo "$as_me:$LINENO: checking $bdb_header presence" >&5
10157 $as_echo_n "checking $bdb_header presence... " >&6; }
10158 cat >conftest.$ac_ext <<_ACEOF
10161 cat confdefs.h >>conftest.$ac_ext
10162 cat >>conftest.$ac_ext <<_ACEOF
10163 /* end confdefs.h. */
10164 #include <$bdb_header>
10166 if { (ac_try="$ac_cpp conftest.$ac_ext"
10167 case "(($ac_try" in
10168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10169 *) ac_try_echo=$ac_try;;
10171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10172 $as_echo "$ac_try_echo") >&5
10173 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10175 grep -v '^ *+' conftest.er1 >conftest.err
10177 cat conftest.err >&5
10178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179 (exit $ac_status); } >/dev/null && {
10180 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10181 test ! -s conftest.err
10183 ac_header_preproc=yes
10185 $as_echo "$as_me: failed program was:" >&5
10186 sed 's/^/| /' conftest.$ac_ext >&5
10188 ac_header_preproc=no
10191 rm -f conftest.err conftest.$ac_ext
10192 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10193 $as_echo "$ac_header_preproc" >&6; }
10195 # So? What about this header?
10196 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10198 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
10199 $as_echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10200 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
10201 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
10202 ac_header_preproc=yes
10205 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
10206 $as_echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
10207 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
10208 $as_echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
10209 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
10210 $as_echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
10211 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
10212 $as_echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
10213 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
10214 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
10215 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
10216 $as_echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
10220 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
10221 $as_echo_n "checking for $bdb_header... " >&6; }
10222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10223 $as_echo_n "(cached) " >&6
10225 eval "$as_ac_Header=\$ac_header_preproc"
10227 ac_res=`eval 'as_val=${'$as_ac_Header'}
10228 $as_echo "$as_val"'`
10229 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10230 $as_echo "$ac_res" >&6; }
10233 as_val=`eval 'as_val=${'$as_ac_Header'}
10234 $as_echo "$as_val"'`
10235 if test "x$as_val" = x""yes; then
10237 if test ""4"" = "3" -o ""4"" = "4"; then
10238 # We generate a separate cache variable for each prefix and libname
10239 # we search under. That way, we avoid caching information that
10240 # changes if the user runs `configure' with a different set of
10243 cache_id="`echo apu_cv_check_berkeley_db_"4"_"7"_"-1"_${bdb_header}_${bdb_libname}_in_${bdb_place} \
10244 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
10247 { $as_echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
10248 $as_echo_n "checking for -l$bdb_libname... " >&6; }
10249 if { as_var=$cache_id; eval "test \"\${$as_var+set}\" = set"; }; then
10250 $as_echo_n "(cached) " >&6
10254 apu_try_berkeley_db_save_libs="$LIBS"
10256 apu_check_berkeley_db_major="4"
10257 apu_check_berkeley_db_minor="7"
10258 apu_check_berkeley_db_patch="-1"
10259 apu_try_berkeley_db_header=$bdb_header
10260 apu_try_berkeley_db_libname=$bdb_libname
10262 LIBS="$LIBS -l$apu_try_berkeley_db_libname"
10263 if test "$cross_compiling" = yes; then
10264 apu_try_berkeley_db=yes
10267 cat >conftest.$ac_ext <<_ACEOF
10270 cat confdefs.h >>conftest.$ac_ext
10271 cat >>conftest.$ac_ext <<_ACEOF
10272 /* end confdefs.h. */
10274 #include <stdlib.h>
10276 #include <$apu_try_berkeley_db_header>
10279 int major, minor, patch;
10281 db_version(&major, &minor, &patch);
10283 /* Sanity check: ensure that db.h constants actually match the db library */
10284 if (major != DB_VERSION_MAJOR
10285 || minor != DB_VERSION_MINOR
10286 || patch != DB_VERSION_PATCH)
10289 /* Run-time check: ensure the library claims to be the correct version. */
10291 if ($apu_check_berkeley_db_major != -1) {
10292 if (major < $apu_check_berkeley_db_major)
10294 if (major > $apu_check_berkeley_db_major)
10298 if ($apu_check_berkeley_db_minor != -1) {
10299 if (minor < $apu_check_berkeley_db_minor)
10301 if (minor > $apu_check_berkeley_db_minor)
10305 if ($apu_check_berkeley_db_patch == -1
10306 || patch >= $apu_check_berkeley_db_patch)
10313 rm -f conftest$ac_exeext
10314 if { (ac_try="$ac_link"
10315 case "(($ac_try" in
10316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10317 *) ac_try_echo=$ac_try;;
10319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10320 $as_echo "$ac_try_echo") >&5
10321 (eval "$ac_link") 2>&5
10323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10325 { (case "(($ac_try" in
10326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10327 *) ac_try_echo=$ac_try;;
10329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10330 $as_echo "$ac_try_echo") >&5
10331 (eval "$ac_try") 2>&5
10333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334 (exit $ac_status); }; }; then
10335 apu_try_berkeley_db=yes
10337 $as_echo "$as_me: program exited with status $ac_status" >&5
10338 $as_echo "$as_me: failed program was:" >&5
10339 sed 's/^/| /' conftest.$ac_ext >&5
10341 ( exit $ac_status )
10342 apu_try_berkeley_db=no
10344 rm -rf conftest.dSYM
10345 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10350 LIBS="$apu_try_berkeley_db_save_libs"
10353 eval "$cache_id=$apu_try_berkeley_db"
10357 result="`eval echo '$'$cache_id`"
10358 { $as_echo "$as_me:$LINENO: result: $result" >&5
10359 $as_echo "$result" >&6; }
10360 elif test ""4"" = "1"; then
10361 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
10362 { $as_echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
10363 $as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; }
10364 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
10365 $as_echo_n "(cached) " >&6
10367 ac_check_lib_save_LIBS=$LIBS
10368 LIBS="-l$bdb_libname $LIBS"
10369 cat >conftest.$ac_ext <<_ACEOF
10372 cat confdefs.h >>conftest.$ac_ext
10373 cat >>conftest.$ac_ext <<_ACEOF
10374 /* end confdefs.h. */
10376 /* Override any GCC internal prototype to avoid an error.
10377 Use char because int might match the return type of a GCC
10378 builtin and then its argument prototype would still apply. */
10391 rm -f conftest.$ac_objext conftest$ac_exeext
10392 if { (ac_try="$ac_link"
10393 case "(($ac_try" in
10394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10395 *) ac_try_echo=$ac_try;;
10397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10398 $as_echo "$ac_try_echo") >&5
10399 (eval "$ac_link") 2>conftest.er1
10401 grep -v '^ *+' conftest.er1 >conftest.err
10403 cat conftest.err >&5
10404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405 (exit $ac_status); } && {
10406 test -z "$ac_c_werror_flag" ||
10407 test ! -s conftest.err
10408 } && test -s conftest$ac_exeext && {
10409 test "$cross_compiling" = yes ||
10410 $as_test_x conftest$ac_exeext
10412 eval "$as_ac_Lib=yes"
10414 $as_echo "$as_me: failed program was:" >&5
10415 sed 's/^/| /' conftest.$ac_ext >&5
10417 eval "$as_ac_Lib=no"
10420 rm -rf conftest.dSYM
10421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10422 conftest$ac_exeext conftest.$ac_ext
10423 LIBS=$ac_check_lib_save_LIBS
10425 ac_res=`eval 'as_val=${'$as_ac_Lib'}
10426 $as_echo "$as_val"'`
10427 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10428 $as_echo "$ac_res" >&6; }
10429 as_val=`eval 'as_val=${'$as_ac_Lib'}
10430 $as_echo "$as_val"'`
10431 if test "x$as_val" = x""yes; then
10438 elif test ""4"" = "2"; then
10439 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
10440 { $as_echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
10441 $as_echo_n "checking for db_open in -l$bdb_libname... " >&6; }
10442 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
10443 $as_echo_n "(cached) " >&6
10445 ac_check_lib_save_LIBS=$LIBS
10446 LIBS="-l$bdb_libname $LIBS"
10447 cat >conftest.$ac_ext <<_ACEOF
10450 cat confdefs.h >>conftest.$ac_ext
10451 cat >>conftest.$ac_ext <<_ACEOF
10452 /* end confdefs.h. */
10454 /* Override any GCC internal prototype to avoid an error.
10455 Use char because int might match the return type of a GCC
10456 builtin and then its argument prototype would still apply. */
10469 rm -f conftest.$ac_objext conftest$ac_exeext
10470 if { (ac_try="$ac_link"
10471 case "(($ac_try" in
10472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10473 *) ac_try_echo=$ac_try;;
10475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10476 $as_echo "$ac_try_echo") >&5
10477 (eval "$ac_link") 2>conftest.er1
10479 grep -v '^ *+' conftest.er1 >conftest.err
10481 cat conftest.err >&5
10482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483 (exit $ac_status); } && {
10484 test -z "$ac_c_werror_flag" ||
10485 test ! -s conftest.err
10486 } && test -s conftest$ac_exeext && {
10487 test "$cross_compiling" = yes ||
10488 $as_test_x conftest$ac_exeext
10490 eval "$as_ac_Lib=yes"
10492 $as_echo "$as_me: failed program was:" >&5
10493 sed 's/^/| /' conftest.$ac_ext >&5
10495 eval "$as_ac_Lib=no"
10498 rm -rf conftest.dSYM
10499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10500 conftest$ac_exeext conftest.$ac_ext
10501 LIBS=$ac_check_lib_save_LIBS
10503 ac_res=`eval 'as_val=${'$as_ac_Lib'}
10504 $as_echo "$as_val"'`
10505 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10506 $as_echo "$ac_res" >&6; }
10507 as_val=`eval 'as_val=${'$as_ac_Lib'}
10508 $as_echo "$as_val"'`
10509 if test "x$as_val" = x""yes; then
10524 # If we found it, no need to search any more.
10525 if test "$result" = "yes"; then
10530 test "$found" != "not" && break
10532 test "$found" != "not" && break
10535 # Restore the original values of the flags we tweak.
10536 LDFLAGS="$apu_check_lib_save_ldflags"
10537 CPPFLAGS="$apu_check_lib_save_cppflags"
10544 apu_db_header=$bdb_header
10545 apu_db_lib=$bdb_libname
10549 header="`echo $found | sed -e 's/:.*$//'`"
10550 lib="`echo $found | sed -e 's/^.*://'`"
10553 if test "x$APRUTIL_INCLUDES" = "x"; then
10554 echo " setting APRUTIL_INCLUDES to \"-I$header\""
10555 APRUTIL_INCLUDES="-I$header"
10557 apr_addto_bugger="-I$header"
10558 for i in $apr_addto_bugger; do
10559 apr_addto_duplicate="0"
10560 for j in $APRUTIL_INCLUDES; do
10561 if test "x$i" = "x$j"; then
10562 apr_addto_duplicate="1"
10566 if test $apr_addto_duplicate = "0"; then
10567 echo " adding \"$i\" to APRUTIL_INCLUDES"
10568 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
10574 if test "x$APRUTIL_LDFLAGS" = "x"; then
10575 echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
10576 APRUTIL_LDFLAGS="-L$lib"
10578 apr_addto_bugger="-L$lib"
10579 for i in $apr_addto_bugger; do
10580 apr_addto_duplicate="0"
10581 for j in $APRUTIL_LDFLAGS; do
10582 if test "x$i" = "x$j"; then
10583 apr_addto_duplicate="1"
10587 if test $apr_addto_duplicate = "0"; then
10588 echo " adding \"$i\" to APRUTIL_LDFLAGS"
10589 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
10594 apu_db_header=$bdb_header
10595 apu_db_lib=$bdb_libname
10600 if test "x$APRUTIL_INCLUDES" = "x"; then
10601 echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
10602 APRUTIL_INCLUDES="-I$found/include"
10604 apr_addto_bugger="-I$found/include"
10605 for i in $apr_addto_bugger; do
10606 apr_addto_duplicate="0"
10607 for j in $APRUTIL_INCLUDES; do
10608 if test "x$i" = "x$j"; then
10609 apr_addto_duplicate="1"
10613 if test $apr_addto_duplicate = "0"; then
10614 echo " adding \"$i\" to APRUTIL_INCLUDES"
10615 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
10621 if test "x$APRUTIL_LDFLAGS" = "x"; then
10622 echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
10623 APRUTIL_LDFLAGS="-L$found/lib"
10625 apr_addto_bugger="-L$found/lib"
10626 for i in $apr_addto_bugger; do
10627 apr_addto_duplicate="0"
10628 for j in $APRUTIL_LDFLAGS; do
10629 if test "x$i" = "x$j"; then
10630 apr_addto_duplicate="1"
10634 if test $apr_addto_duplicate = "0"; then
10635 echo " adding \"$i\" to APRUTIL_LDFLAGS"
10636 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
10641 apu_db_header=$bdb_header
10642 apu_db_lib=$bdb_libname
10647 if test "$apu_have_db" = "1"; then
10651 if test "$apu_db_version" != "4"; then
10653 places="$all_places"
10654 if test -z "$places"; then
10655 places="std /usr/local/BerkeleyDB.4.6 /boot/home/config"
10659 if test ""6"" != "-1"; then
10660 bdb_version="$bdb_version."6""
10661 if test ""-1"" != "-1"; then
10662 bdb_version="$bdb_version."-1""
10665 bdb_places="$places"
10666 bdb_default_search_headers="db46/db.h db4/db.h db.h"
10667 bdb_default_search_lib_names="db-4.6 db4-4.6 db46 db4 db"
10672 # Save the original values of the flags we tweak.
10673 apu_check_lib_save_libs="$LIBS"
10674 apu_check_lib_save_ldflags="$LDFLAGS"
10675 apu_check_lib_save_cppflags="$CPPFLAGS"
10677 # The variable `found' is the prefix under which we've found
10678 # Berkeley DB, or `not' if we haven't found it anywhere yet.
10680 for bdb_place in $bdb_places; do
10682 LDFLAGS="$apu_check_lib_save_ldflags"
10683 CPPFLAGS="$apu_check_lib_save_cppflags"
10684 case "$bdb_place" in
10686 description="the standard places"
10689 header="`echo $bdb_place | sed -e 's/:.*$//'`"
10690 lib="`echo $bdb_place | sed -e 's/^.*://'`"
10691 CPPFLAGS="$CPPFLAGS -I$header"
10692 LDFLAGS="$LDFLAGS -L$lib"
10693 description="$header and $lib"
10696 if test -d $bdb_place; then
10697 LDFLAGS="$LDFLAGS -L$bdb_place/lib"
10698 CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
10700 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
10701 $as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; }
10702 { $as_echo "$as_me:$LINENO: result: directory not found" >&5
10703 $as_echo "directory not found" >&6; }
10706 description="$bdb_place"
10710 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
10711 # trick to display a message instead.
10712 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
10713 $as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; }
10714 { $as_echo "$as_me:$LINENO: result: " >&5
10717 for bdb_libname in $bdb_default_search_lib_names; do
10718 for bdb_header in $bdb_default_search_headers; do
10719 # Clear the header cache variable for each location
10721 cache_id="`echo ac_cv_header_${bdb_header} \
10722 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
10725 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh`
10726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10727 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
10728 $as_echo_n "checking for $bdb_header... " >&6; }
10729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10730 $as_echo_n "(cached) " >&6
10732 ac_res=`eval 'as_val=${'$as_ac_Header'}
10733 $as_echo "$as_val"'`
10734 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10735 $as_echo "$ac_res" >&6; }
10737 # Is the header compilable?
10738 { $as_echo "$as_me:$LINENO: checking $bdb_header usability" >&5
10739 $as_echo_n "checking $bdb_header usability... " >&6; }
10740 cat >conftest.$ac_ext <<_ACEOF
10743 cat confdefs.h >>conftest.$ac_ext
10744 cat >>conftest.$ac_ext <<_ACEOF
10745 /* end confdefs.h. */
10746 $ac_includes_default
10747 #include <$bdb_header>
10749 rm -f conftest.$ac_objext
10750 if { (ac_try="$ac_compile"
10751 case "(($ac_try" in
10752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10753 *) ac_try_echo=$ac_try;;
10755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10756 $as_echo "$ac_try_echo") >&5
10757 (eval "$ac_compile") 2>conftest.er1
10759 grep -v '^ *+' conftest.er1 >conftest.err
10761 cat conftest.err >&5
10762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763 (exit $ac_status); } && {
10764 test -z "$ac_c_werror_flag" ||
10765 test ! -s conftest.err
10766 } && test -s conftest.$ac_objext; then
10767 ac_header_compiler=yes
10769 $as_echo "$as_me: failed program was:" >&5
10770 sed 's/^/| /' conftest.$ac_ext >&5
10772 ac_header_compiler=no
10775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10776 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10777 $as_echo "$ac_header_compiler" >&6; }
10779 # Is the header present?
10780 { $as_echo "$as_me:$LINENO: checking $bdb_header presence" >&5
10781 $as_echo_n "checking $bdb_header presence... " >&6; }
10782 cat >conftest.$ac_ext <<_ACEOF
10785 cat confdefs.h >>conftest.$ac_ext
10786 cat >>conftest.$ac_ext <<_ACEOF
10787 /* end confdefs.h. */
10788 #include <$bdb_header>
10790 if { (ac_try="$ac_cpp conftest.$ac_ext"
10791 case "(($ac_try" in
10792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10793 *) ac_try_echo=$ac_try;;
10795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10796 $as_echo "$ac_try_echo") >&5
10797 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10799 grep -v '^ *+' conftest.er1 >conftest.err
10801 cat conftest.err >&5
10802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803 (exit $ac_status); } >/dev/null && {
10804 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10805 test ! -s conftest.err
10807 ac_header_preproc=yes
10809 $as_echo "$as_me: failed program was:" >&5
10810 sed 's/^/| /' conftest.$ac_ext >&5
10812 ac_header_preproc=no
10815 rm -f conftest.err conftest.$ac_ext
10816 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10817 $as_echo "$ac_header_preproc" >&6; }
10819 # So? What about this header?
10820 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10822 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
10823 $as_echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10824 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
10825 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
10826 ac_header_preproc=yes
10829 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
10830 $as_echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
10831 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
10832 $as_echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
10833 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
10834 $as_echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
10835 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
10836 $as_echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
10837 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
10838 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
10839 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
10840 $as_echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
10844 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
10845 $as_echo_n "checking for $bdb_header... " >&6; }
10846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10847 $as_echo_n "(cached) " >&6
10849 eval "$as_ac_Header=\$ac_header_preproc"
10851 ac_res=`eval 'as_val=${'$as_ac_Header'}
10852 $as_echo "$as_val"'`
10853 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10854 $as_echo "$ac_res" >&6; }
10857 as_val=`eval 'as_val=${'$as_ac_Header'}
10858 $as_echo "$as_val"'`
10859 if test "x$as_val" = x""yes; then
10861 if test ""4"" = "3" -o ""4"" = "4"; then
10862 # We generate a separate cache variable for each prefix and libname
10863 # we search under. That way, we avoid caching information that
10864 # changes if the user runs `configure' with a different set of
10867 cache_id="`echo apu_cv_check_berkeley_db_"4"_"6"_"-1"_${bdb_header}_${bdb_libname}_in_${bdb_place} \
10868 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
10871 { $as_echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
10872 $as_echo_n "checking for -l$bdb_libname... " >&6; }
10873 if { as_var=$cache_id; eval "test \"\${$as_var+set}\" = set"; }; then
10874 $as_echo_n "(cached) " >&6
10878 apu_try_berkeley_db_save_libs="$LIBS"
10880 apu_check_berkeley_db_major="4"
10881 apu_check_berkeley_db_minor="6"
10882 apu_check_berkeley_db_patch="-1"
10883 apu_try_berkeley_db_header=$bdb_header
10884 apu_try_berkeley_db_libname=$bdb_libname
10886 LIBS="$LIBS -l$apu_try_berkeley_db_libname"
10887 if test "$cross_compiling" = yes; then
10888 apu_try_berkeley_db=yes
10891 cat >conftest.$ac_ext <<_ACEOF
10894 cat confdefs.h >>conftest.$ac_ext
10895 cat >>conftest.$ac_ext <<_ACEOF
10896 /* end confdefs.h. */
10898 #include <stdlib.h>
10900 #include <$apu_try_berkeley_db_header>
10903 int major, minor, patch;
10905 db_version(&major, &minor, &patch);
10907 /* Sanity check: ensure that db.h constants actually match the db library */
10908 if (major != DB_VERSION_MAJOR
10909 || minor != DB_VERSION_MINOR
10910 || patch != DB_VERSION_PATCH)
10913 /* Run-time check: ensure the library claims to be the correct version. */
10915 if ($apu_check_berkeley_db_major != -1) {
10916 if (major < $apu_check_berkeley_db_major)
10918 if (major > $apu_check_berkeley_db_major)
10922 if ($apu_check_berkeley_db_minor != -1) {
10923 if (minor < $apu_check_berkeley_db_minor)
10925 if (minor > $apu_check_berkeley_db_minor)
10929 if ($apu_check_berkeley_db_patch == -1
10930 || patch >= $apu_check_berkeley_db_patch)
10937 rm -f conftest$ac_exeext
10938 if { (ac_try="$ac_link"
10939 case "(($ac_try" in
10940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10941 *) ac_try_echo=$ac_try;;
10943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10944 $as_echo "$ac_try_echo") >&5
10945 (eval "$ac_link") 2>&5
10947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10949 { (case "(($ac_try" in
10950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10951 *) ac_try_echo=$ac_try;;
10953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10954 $as_echo "$ac_try_echo") >&5
10955 (eval "$ac_try") 2>&5
10957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10958 (exit $ac_status); }; }; then
10959 apu_try_berkeley_db=yes
10961 $as_echo "$as_me: program exited with status $ac_status" >&5
10962 $as_echo "$as_me: failed program was:" >&5
10963 sed 's/^/| /' conftest.$ac_ext >&5
10965 ( exit $ac_status )
10966 apu_try_berkeley_db=no
10968 rm -rf conftest.dSYM
10969 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10974 LIBS="$apu_try_berkeley_db_save_libs"
10977 eval "$cache_id=$apu_try_berkeley_db"
10981 result="`eval echo '$'$cache_id`"
10982 { $as_echo "$as_me:$LINENO: result: $result" >&5
10983 $as_echo "$result" >&6; }
10984 elif test ""4"" = "1"; then
10985 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
10986 { $as_echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
10987 $as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; }
10988 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
10989 $as_echo_n "(cached) " >&6
10991 ac_check_lib_save_LIBS=$LIBS
10992 LIBS="-l$bdb_libname $LIBS"
10993 cat >conftest.$ac_ext <<_ACEOF
10996 cat confdefs.h >>conftest.$ac_ext
10997 cat >>conftest.$ac_ext <<_ACEOF
10998 /* end confdefs.h. */
11000 /* Override any GCC internal prototype to avoid an error.
11001 Use char because int might match the return type of a GCC
11002 builtin and then its argument prototype would still apply. */
11015 rm -f conftest.$ac_objext conftest$ac_exeext
11016 if { (ac_try="$ac_link"
11017 case "(($ac_try" in
11018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11019 *) ac_try_echo=$ac_try;;
11021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11022 $as_echo "$ac_try_echo") >&5
11023 (eval "$ac_link") 2>conftest.er1
11025 grep -v '^ *+' conftest.er1 >conftest.err
11027 cat conftest.err >&5
11028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029 (exit $ac_status); } && {
11030 test -z "$ac_c_werror_flag" ||
11031 test ! -s conftest.err
11032 } && test -s conftest$ac_exeext && {
11033 test "$cross_compiling" = yes ||
11034 $as_test_x conftest$ac_exeext
11036 eval "$as_ac_Lib=yes"
11038 $as_echo "$as_me: failed program was:" >&5
11039 sed 's/^/| /' conftest.$ac_ext >&5
11041 eval "$as_ac_Lib=no"
11044 rm -rf conftest.dSYM
11045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11046 conftest$ac_exeext conftest.$ac_ext
11047 LIBS=$ac_check_lib_save_LIBS
11049 ac_res=`eval 'as_val=${'$as_ac_Lib'}
11050 $as_echo "$as_val"'`
11051 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11052 $as_echo "$ac_res" >&6; }
11053 as_val=`eval 'as_val=${'$as_ac_Lib'}
11054 $as_echo "$as_val"'`
11055 if test "x$as_val" = x""yes; then
11062 elif test ""4"" = "2"; then
11063 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
11064 { $as_echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
11065 $as_echo_n "checking for db_open in -l$bdb_libname... " >&6; }
11066 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
11067 $as_echo_n "(cached) " >&6
11069 ac_check_lib_save_LIBS=$LIBS
11070 LIBS="-l$bdb_libname $LIBS"
11071 cat >conftest.$ac_ext <<_ACEOF
11074 cat confdefs.h >>conftest.$ac_ext
11075 cat >>conftest.$ac_ext <<_ACEOF
11076 /* end confdefs.h. */
11078 /* Override any GCC internal prototype to avoid an error.
11079 Use char because int might match the return type of a GCC
11080 builtin and then its argument prototype would still apply. */
11093 rm -f conftest.$ac_objext conftest$ac_exeext
11094 if { (ac_try="$ac_link"
11095 case "(($ac_try" in
11096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11097 *) ac_try_echo=$ac_try;;
11099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11100 $as_echo "$ac_try_echo") >&5
11101 (eval "$ac_link") 2>conftest.er1
11103 grep -v '^ *+' conftest.er1 >conftest.err
11105 cat conftest.err >&5
11106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107 (exit $ac_status); } && {
11108 test -z "$ac_c_werror_flag" ||
11109 test ! -s conftest.err
11110 } && test -s conftest$ac_exeext && {
11111 test "$cross_compiling" = yes ||
11112 $as_test_x conftest$ac_exeext
11114 eval "$as_ac_Lib=yes"
11116 $as_echo "$as_me: failed program was:" >&5
11117 sed 's/^/| /' conftest.$ac_ext >&5
11119 eval "$as_ac_Lib=no"
11122 rm -rf conftest.dSYM
11123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11124 conftest$ac_exeext conftest.$ac_ext
11125 LIBS=$ac_check_lib_save_LIBS
11127 ac_res=`eval 'as_val=${'$as_ac_Lib'}
11128 $as_echo "$as_val"'`
11129 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11130 $as_echo "$ac_res" >&6; }
11131 as_val=`eval 'as_val=${'$as_ac_Lib'}
11132 $as_echo "$as_val"'`
11133 if test "x$as_val" = x""yes; then
11148 # If we found it, no need to search any more.
11149 if test "$result" = "yes"; then
11154 test "$found" != "not" && break
11156 test "$found" != "not" && break
11159 # Restore the original values of the flags we tweak.
11160 LDFLAGS="$apu_check_lib_save_ldflags"
11161 CPPFLAGS="$apu_check_lib_save_cppflags"
11168 apu_db_header=$bdb_header
11169 apu_db_lib=$bdb_libname
11173 header="`echo $found | sed -e 's/:.*$//'`"
11174 lib="`echo $found | sed -e 's/^.*://'`"
11177 if test "x$APRUTIL_INCLUDES" = "x"; then
11178 echo " setting APRUTIL_INCLUDES to \"-I$header\""
11179 APRUTIL_INCLUDES="-I$header"
11181 apr_addto_bugger="-I$header"
11182 for i in $apr_addto_bugger; do
11183 apr_addto_duplicate="0"
11184 for j in $APRUTIL_INCLUDES; do
11185 if test "x$i" = "x$j"; then
11186 apr_addto_duplicate="1"
11190 if test $apr_addto_duplicate = "0"; then
11191 echo " adding \"$i\" to APRUTIL_INCLUDES"
11192 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
11198 if test "x$APRUTIL_LDFLAGS" = "x"; then
11199 echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
11200 APRUTIL_LDFLAGS="-L$lib"
11202 apr_addto_bugger="-L$lib"
11203 for i in $apr_addto_bugger; do
11204 apr_addto_duplicate="0"
11205 for j in $APRUTIL_LDFLAGS; do
11206 if test "x$i" = "x$j"; then
11207 apr_addto_duplicate="1"
11211 if test $apr_addto_duplicate = "0"; then
11212 echo " adding \"$i\" to APRUTIL_LDFLAGS"
11213 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
11218 apu_db_header=$bdb_header
11219 apu_db_lib=$bdb_libname
11224 if test "x$APRUTIL_INCLUDES" = "x"; then
11225 echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
11226 APRUTIL_INCLUDES="-I$found/include"
11228 apr_addto_bugger="-I$found/include"
11229 for i in $apr_addto_bugger; do
11230 apr_addto_duplicate="0"
11231 for j in $APRUTIL_INCLUDES; do
11232 if test "x$i" = "x$j"; then
11233 apr_addto_duplicate="1"
11237 if test $apr_addto_duplicate = "0"; then
11238 echo " adding \"$i\" to APRUTIL_INCLUDES"
11239 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
11245 if test "x$APRUTIL_LDFLAGS" = "x"; then
11246 echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
11247 APRUTIL_LDFLAGS="-L$found/lib"
11249 apr_addto_bugger="-L$found/lib"
11250 for i in $apr_addto_bugger; do
11251 apr_addto_duplicate="0"
11252 for j in $APRUTIL_LDFLAGS; do
11253 if test "x$i" = "x$j"; then
11254 apr_addto_duplicate="1"
11258 if test $apr_addto_duplicate = "0"; then
11259 echo " adding \"$i\" to APRUTIL_LDFLAGS"
11260 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
11265 apu_db_header=$bdb_header
11266 apu_db_lib=$bdb_libname
11271 if test "$apu_have_db" = "1"; then
11275 if test "$apu_db_version" != "4"; then
11277 places="$all_places"
11278 if test -z "$places"; then
11279 places="std /usr/local/BerkeleyDB.4.5 /boot/home/config"
11283 if test ""5"" != "-1"; then
11284 bdb_version="$bdb_version."5""
11285 if test ""-1"" != "-1"; then
11286 bdb_version="$bdb_version."-1""
11289 bdb_places="$places"
11290 bdb_default_search_headers="db45/db.h db4/db.h db.h"
11291 bdb_default_search_lib_names="db-4.5 db4-4.5 db45 db4 db"
11296 # Save the original values of the flags we tweak.
11297 apu_check_lib_save_libs="$LIBS"
11298 apu_check_lib_save_ldflags="$LDFLAGS"
11299 apu_check_lib_save_cppflags="$CPPFLAGS"
11301 # The variable `found' is the prefix under which we've found
11302 # Berkeley DB, or `not' if we haven't found it anywhere yet.
11304 for bdb_place in $bdb_places; do
11306 LDFLAGS="$apu_check_lib_save_ldflags"
11307 CPPFLAGS="$apu_check_lib_save_cppflags"
11308 case "$bdb_place" in
11310 description="the standard places"
11313 header="`echo $bdb_place | sed -e 's/:.*$//'`"
11314 lib="`echo $bdb_place | sed -e 's/^.*://'`"
11315 CPPFLAGS="$CPPFLAGS -I$header"
11316 LDFLAGS="$LDFLAGS -L$lib"
11317 description="$header and $lib"
11320 if test -d $bdb_place; then
11321 LDFLAGS="$LDFLAGS -L$bdb_place/lib"
11322 CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
11324 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
11325 $as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; }
11326 { $as_echo "$as_me:$LINENO: result: directory not found" >&5
11327 $as_echo "directory not found" >&6; }
11330 description="$bdb_place"
11334 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
11335 # trick to display a message instead.
11336 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
11337 $as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; }
11338 { $as_echo "$as_me:$LINENO: result: " >&5
11341 for bdb_libname in $bdb_default_search_lib_names; do
11342 for bdb_header in $bdb_default_search_headers; do
11343 # Clear the header cache variable for each location
11345 cache_id="`echo ac_cv_header_${bdb_header} \
11346 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
11349 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh`
11350 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11351 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
11352 $as_echo_n "checking for $bdb_header... " >&6; }
11353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11354 $as_echo_n "(cached) " >&6
11356 ac_res=`eval 'as_val=${'$as_ac_Header'}
11357 $as_echo "$as_val"'`
11358 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11359 $as_echo "$ac_res" >&6; }
11361 # Is the header compilable?
11362 { $as_echo "$as_me:$LINENO: checking $bdb_header usability" >&5
11363 $as_echo_n "checking $bdb_header usability... " >&6; }
11364 cat >conftest.$ac_ext <<_ACEOF
11367 cat confdefs.h >>conftest.$ac_ext
11368 cat >>conftest.$ac_ext <<_ACEOF
11369 /* end confdefs.h. */
11370 $ac_includes_default
11371 #include <$bdb_header>
11373 rm -f conftest.$ac_objext
11374 if { (ac_try="$ac_compile"
11375 case "(($ac_try" in
11376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11377 *) ac_try_echo=$ac_try;;
11379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11380 $as_echo "$ac_try_echo") >&5
11381 (eval "$ac_compile") 2>conftest.er1
11383 grep -v '^ *+' conftest.er1 >conftest.err
11385 cat conftest.err >&5
11386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387 (exit $ac_status); } && {
11388 test -z "$ac_c_werror_flag" ||
11389 test ! -s conftest.err
11390 } && test -s conftest.$ac_objext; then
11391 ac_header_compiler=yes
11393 $as_echo "$as_me: failed program was:" >&5
11394 sed 's/^/| /' conftest.$ac_ext >&5
11396 ac_header_compiler=no
11399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11400 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11401 $as_echo "$ac_header_compiler" >&6; }
11403 # Is the header present?
11404 { $as_echo "$as_me:$LINENO: checking $bdb_header presence" >&5
11405 $as_echo_n "checking $bdb_header presence... " >&6; }
11406 cat >conftest.$ac_ext <<_ACEOF
11409 cat confdefs.h >>conftest.$ac_ext
11410 cat >>conftest.$ac_ext <<_ACEOF
11411 /* end confdefs.h. */
11412 #include <$bdb_header>
11414 if { (ac_try="$ac_cpp conftest.$ac_ext"
11415 case "(($ac_try" in
11416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11417 *) ac_try_echo=$ac_try;;
11419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11420 $as_echo "$ac_try_echo") >&5
11421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11423 grep -v '^ *+' conftest.er1 >conftest.err
11425 cat conftest.err >&5
11426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427 (exit $ac_status); } >/dev/null && {
11428 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11429 test ! -s conftest.err
11431 ac_header_preproc=yes
11433 $as_echo "$as_me: failed program was:" >&5
11434 sed 's/^/| /' conftest.$ac_ext >&5
11436 ac_header_preproc=no
11439 rm -f conftest.err conftest.$ac_ext
11440 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11441 $as_echo "$ac_header_preproc" >&6; }
11443 # So? What about this header?
11444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11446 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
11447 $as_echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11448 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
11449 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
11450 ac_header_preproc=yes
11453 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
11454 $as_echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
11455 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
11456 $as_echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
11457 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
11458 $as_echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
11459 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
11460 $as_echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
11461 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
11462 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
11463 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
11464 $as_echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
11468 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
11469 $as_echo_n "checking for $bdb_header... " >&6; }
11470 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11471 $as_echo_n "(cached) " >&6
11473 eval "$as_ac_Header=\$ac_header_preproc"
11475 ac_res=`eval 'as_val=${'$as_ac_Header'}
11476 $as_echo "$as_val"'`
11477 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11478 $as_echo "$ac_res" >&6; }
11481 as_val=`eval 'as_val=${'$as_ac_Header'}
11482 $as_echo "$as_val"'`
11483 if test "x$as_val" = x""yes; then
11485 if test ""4"" = "3" -o ""4"" = "4"; then
11486 # We generate a separate cache variable for each prefix and libname
11487 # we search under. That way, we avoid caching information that
11488 # changes if the user runs `configure' with a different set of
11491 cache_id="`echo apu_cv_check_berkeley_db_"4"_"5"_"-1"_${bdb_header}_${bdb_libname}_in_${bdb_place} \
11492 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
11495 { $as_echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
11496 $as_echo_n "checking for -l$bdb_libname... " >&6; }
11497 if { as_var=$cache_id; eval "test \"\${$as_var+set}\" = set"; }; then
11498 $as_echo_n "(cached) " >&6
11502 apu_try_berkeley_db_save_libs="$LIBS"
11504 apu_check_berkeley_db_major="4"
11505 apu_check_berkeley_db_minor="5"
11506 apu_check_berkeley_db_patch="-1"
11507 apu_try_berkeley_db_header=$bdb_header
11508 apu_try_berkeley_db_libname=$bdb_libname
11510 LIBS="$LIBS -l$apu_try_berkeley_db_libname"
11511 if test "$cross_compiling" = yes; then
11512 apu_try_berkeley_db=yes
11515 cat >conftest.$ac_ext <<_ACEOF
11518 cat confdefs.h >>conftest.$ac_ext
11519 cat >>conftest.$ac_ext <<_ACEOF
11520 /* end confdefs.h. */
11522 #include <stdlib.h>
11524 #include <$apu_try_berkeley_db_header>
11527 int major, minor, patch;
11529 db_version(&major, &minor, &patch);
11531 /* Sanity check: ensure that db.h constants actually match the db library */
11532 if (major != DB_VERSION_MAJOR
11533 || minor != DB_VERSION_MINOR
11534 || patch != DB_VERSION_PATCH)
11537 /* Run-time check: ensure the library claims to be the correct version. */
11539 if ($apu_check_berkeley_db_major != -1) {
11540 if (major < $apu_check_berkeley_db_major)
11542 if (major > $apu_check_berkeley_db_major)
11546 if ($apu_check_berkeley_db_minor != -1) {
11547 if (minor < $apu_check_berkeley_db_minor)
11549 if (minor > $apu_check_berkeley_db_minor)
11553 if ($apu_check_berkeley_db_patch == -1
11554 || patch >= $apu_check_berkeley_db_patch)
11561 rm -f conftest$ac_exeext
11562 if { (ac_try="$ac_link"
11563 case "(($ac_try" in
11564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11565 *) ac_try_echo=$ac_try;;
11567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11568 $as_echo "$ac_try_echo") >&5
11569 (eval "$ac_link") 2>&5
11571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11573 { (case "(($ac_try" in
11574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11575 *) ac_try_echo=$ac_try;;
11577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11578 $as_echo "$ac_try_echo") >&5
11579 (eval "$ac_try") 2>&5
11581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582 (exit $ac_status); }; }; then
11583 apu_try_berkeley_db=yes
11585 $as_echo "$as_me: program exited with status $ac_status" >&5
11586 $as_echo "$as_me: failed program was:" >&5
11587 sed 's/^/| /' conftest.$ac_ext >&5
11589 ( exit $ac_status )
11590 apu_try_berkeley_db=no
11592 rm -rf conftest.dSYM
11593 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11598 LIBS="$apu_try_berkeley_db_save_libs"
11601 eval "$cache_id=$apu_try_berkeley_db"
11605 result="`eval echo '$'$cache_id`"
11606 { $as_echo "$as_me:$LINENO: result: $result" >&5
11607 $as_echo "$result" >&6; }
11608 elif test ""4"" = "1"; then
11609 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
11610 { $as_echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
11611 $as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; }
11612 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
11613 $as_echo_n "(cached) " >&6
11615 ac_check_lib_save_LIBS=$LIBS
11616 LIBS="-l$bdb_libname $LIBS"
11617 cat >conftest.$ac_ext <<_ACEOF
11620 cat confdefs.h >>conftest.$ac_ext
11621 cat >>conftest.$ac_ext <<_ACEOF
11622 /* end confdefs.h. */
11624 /* Override any GCC internal prototype to avoid an error.
11625 Use char because int might match the return type of a GCC
11626 builtin and then its argument prototype would still apply. */
11639 rm -f conftest.$ac_objext conftest$ac_exeext
11640 if { (ac_try="$ac_link"
11641 case "(($ac_try" in
11642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11643 *) ac_try_echo=$ac_try;;
11645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11646 $as_echo "$ac_try_echo") >&5
11647 (eval "$ac_link") 2>conftest.er1
11649 grep -v '^ *+' conftest.er1 >conftest.err
11651 cat conftest.err >&5
11652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653 (exit $ac_status); } && {
11654 test -z "$ac_c_werror_flag" ||
11655 test ! -s conftest.err
11656 } && test -s conftest$ac_exeext && {
11657 test "$cross_compiling" = yes ||
11658 $as_test_x conftest$ac_exeext
11660 eval "$as_ac_Lib=yes"
11662 $as_echo "$as_me: failed program was:" >&5
11663 sed 's/^/| /' conftest.$ac_ext >&5
11665 eval "$as_ac_Lib=no"
11668 rm -rf conftest.dSYM
11669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11670 conftest$ac_exeext conftest.$ac_ext
11671 LIBS=$ac_check_lib_save_LIBS
11673 ac_res=`eval 'as_val=${'$as_ac_Lib'}
11674 $as_echo "$as_val"'`
11675 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11676 $as_echo "$ac_res" >&6; }
11677 as_val=`eval 'as_val=${'$as_ac_Lib'}
11678 $as_echo "$as_val"'`
11679 if test "x$as_val" = x""yes; then
11686 elif test ""4"" = "2"; then
11687 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
11688 { $as_echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
11689 $as_echo_n "checking for db_open in -l$bdb_libname... " >&6; }
11690 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
11691 $as_echo_n "(cached) " >&6
11693 ac_check_lib_save_LIBS=$LIBS
11694 LIBS="-l$bdb_libname $LIBS"
11695 cat >conftest.$ac_ext <<_ACEOF
11698 cat confdefs.h >>conftest.$ac_ext
11699 cat >>conftest.$ac_ext <<_ACEOF
11700 /* end confdefs.h. */
11702 /* Override any GCC internal prototype to avoid an error.
11703 Use char because int might match the return type of a GCC
11704 builtin and then its argument prototype would still apply. */
11717 rm -f conftest.$ac_objext conftest$ac_exeext
11718 if { (ac_try="$ac_link"
11719 case "(($ac_try" in
11720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11721 *) ac_try_echo=$ac_try;;
11723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11724 $as_echo "$ac_try_echo") >&5
11725 (eval "$ac_link") 2>conftest.er1
11727 grep -v '^ *+' conftest.er1 >conftest.err
11729 cat conftest.err >&5
11730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731 (exit $ac_status); } && {
11732 test -z "$ac_c_werror_flag" ||
11733 test ! -s conftest.err
11734 } && test -s conftest$ac_exeext && {
11735 test "$cross_compiling" = yes ||
11736 $as_test_x conftest$ac_exeext
11738 eval "$as_ac_Lib=yes"
11740 $as_echo "$as_me: failed program was:" >&5
11741 sed 's/^/| /' conftest.$ac_ext >&5
11743 eval "$as_ac_Lib=no"
11746 rm -rf conftest.dSYM
11747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11748 conftest$ac_exeext conftest.$ac_ext
11749 LIBS=$ac_check_lib_save_LIBS
11751 ac_res=`eval 'as_val=${'$as_ac_Lib'}
11752 $as_echo "$as_val"'`
11753 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11754 $as_echo "$ac_res" >&6; }
11755 as_val=`eval 'as_val=${'$as_ac_Lib'}
11756 $as_echo "$as_val"'`
11757 if test "x$as_val" = x""yes; then
11772 # If we found it, no need to search any more.
11773 if test "$result" = "yes"; then
11778 test "$found" != "not" && break
11780 test "$found" != "not" && break
11783 # Restore the original values of the flags we tweak.
11784 LDFLAGS="$apu_check_lib_save_ldflags"
11785 CPPFLAGS="$apu_check_lib_save_cppflags"
11792 apu_db_header=$bdb_header
11793 apu_db_lib=$bdb_libname
11797 header="`echo $found | sed -e 's/:.*$//'`"
11798 lib="`echo $found | sed -e 's/^.*://'`"
11801 if test "x$APRUTIL_INCLUDES" = "x"; then
11802 echo " setting APRUTIL_INCLUDES to \"-I$header\""
11803 APRUTIL_INCLUDES="-I$header"
11805 apr_addto_bugger="-I$header"
11806 for i in $apr_addto_bugger; do
11807 apr_addto_duplicate="0"
11808 for j in $APRUTIL_INCLUDES; do
11809 if test "x$i" = "x$j"; then
11810 apr_addto_duplicate="1"
11814 if test $apr_addto_duplicate = "0"; then
11815 echo " adding \"$i\" to APRUTIL_INCLUDES"
11816 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
11822 if test "x$APRUTIL_LDFLAGS" = "x"; then
11823 echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
11824 APRUTIL_LDFLAGS="-L$lib"
11826 apr_addto_bugger="-L$lib"
11827 for i in $apr_addto_bugger; do
11828 apr_addto_duplicate="0"
11829 for j in $APRUTIL_LDFLAGS; do
11830 if test "x$i" = "x$j"; then
11831 apr_addto_duplicate="1"
11835 if test $apr_addto_duplicate = "0"; then
11836 echo " adding \"$i\" to APRUTIL_LDFLAGS"
11837 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
11842 apu_db_header=$bdb_header
11843 apu_db_lib=$bdb_libname
11848 if test "x$APRUTIL_INCLUDES" = "x"; then
11849 echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
11850 APRUTIL_INCLUDES="-I$found/include"
11852 apr_addto_bugger="-I$found/include"
11853 for i in $apr_addto_bugger; do
11854 apr_addto_duplicate="0"
11855 for j in $APRUTIL_INCLUDES; do
11856 if test "x$i" = "x$j"; then
11857 apr_addto_duplicate="1"
11861 if test $apr_addto_duplicate = "0"; then
11862 echo " adding \"$i\" to APRUTIL_INCLUDES"
11863 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
11869 if test "x$APRUTIL_LDFLAGS" = "x"; then
11870 echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
11871 APRUTIL_LDFLAGS="-L$found/lib"
11873 apr_addto_bugger="-L$found/lib"
11874 for i in $apr_addto_bugger; do
11875 apr_addto_duplicate="0"
11876 for j in $APRUTIL_LDFLAGS; do
11877 if test "x$i" = "x$j"; then
11878 apr_addto_duplicate="1"
11882 if test $apr_addto_duplicate = "0"; then
11883 echo " adding \"$i\" to APRUTIL_LDFLAGS"
11884 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
11889 apu_db_header=$bdb_header
11890 apu_db_lib=$bdb_libname
11895 if test "$apu_have_db" = "1"; then
11899 if test "$apu_db_version" != "4"; then
11901 places="$all_places"
11902 if test -z "$places"; then
11903 places="std /usr/local/BerkeleyDB.4.4 /boot/home/config"
11907 if test ""4"" != "-1"; then
11908 bdb_version="$bdb_version."4""
11909 if test ""-1"" != "-1"; then
11910 bdb_version="$bdb_version."-1""
11913 bdb_places="$places"
11914 bdb_default_search_headers="db44/db.h db4/db.h db.h"
11915 bdb_default_search_lib_names="db-4.4 db4-4.4 db44 db4 db"
11920 # Save the original values of the flags we tweak.
11921 apu_check_lib_save_libs="$LIBS"
11922 apu_check_lib_save_ldflags="$LDFLAGS"
11923 apu_check_lib_save_cppflags="$CPPFLAGS"
11925 # The variable `found' is the prefix under which we've found
11926 # Berkeley DB, or `not' if we haven't found it anywhere yet.
11928 for bdb_place in $bdb_places; do
11930 LDFLAGS="$apu_check_lib_save_ldflags"
11931 CPPFLAGS="$apu_check_lib_save_cppflags"
11932 case "$bdb_place" in
11934 description="the standard places"
11937 header="`echo $bdb_place | sed -e 's/:.*$//'`"
11938 lib="`echo $bdb_place | sed -e 's/^.*://'`"
11939 CPPFLAGS="$CPPFLAGS -I$header"
11940 LDFLAGS="$LDFLAGS -L$lib"
11941 description="$header and $lib"
11944 if test -d $bdb_place; then
11945 LDFLAGS="$LDFLAGS -L$bdb_place/lib"
11946 CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
11948 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
11949 $as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; }
11950 { $as_echo "$as_me:$LINENO: result: directory not found" >&5
11951 $as_echo "directory not found" >&6; }
11954 description="$bdb_place"
11958 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
11959 # trick to display a message instead.
11960 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
11961 $as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; }
11962 { $as_echo "$as_me:$LINENO: result: " >&5
11965 for bdb_libname in $bdb_default_search_lib_names; do
11966 for bdb_header in $bdb_default_search_headers; do
11967 # Clear the header cache variable for each location
11969 cache_id="`echo ac_cv_header_${bdb_header} \
11970 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
11973 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh`
11974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11975 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
11976 $as_echo_n "checking for $bdb_header... " >&6; }
11977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11978 $as_echo_n "(cached) " >&6
11980 ac_res=`eval 'as_val=${'$as_ac_Header'}
11981 $as_echo "$as_val"'`
11982 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11983 $as_echo "$ac_res" >&6; }
11985 # Is the header compilable?
11986 { $as_echo "$as_me:$LINENO: checking $bdb_header usability" >&5
11987 $as_echo_n "checking $bdb_header usability... " >&6; }
11988 cat >conftest.$ac_ext <<_ACEOF
11991 cat confdefs.h >>conftest.$ac_ext
11992 cat >>conftest.$ac_ext <<_ACEOF
11993 /* end confdefs.h. */
11994 $ac_includes_default
11995 #include <$bdb_header>
11997 rm -f conftest.$ac_objext
11998 if { (ac_try="$ac_compile"
11999 case "(($ac_try" in
12000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12001 *) ac_try_echo=$ac_try;;
12003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12004 $as_echo "$ac_try_echo") >&5
12005 (eval "$ac_compile") 2>conftest.er1
12007 grep -v '^ *+' conftest.er1 >conftest.err
12009 cat conftest.err >&5
12010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011 (exit $ac_status); } && {
12012 test -z "$ac_c_werror_flag" ||
12013 test ! -s conftest.err
12014 } && test -s conftest.$ac_objext; then
12015 ac_header_compiler=yes
12017 $as_echo "$as_me: failed program was:" >&5
12018 sed 's/^/| /' conftest.$ac_ext >&5
12020 ac_header_compiler=no
12023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12024 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12025 $as_echo "$ac_header_compiler" >&6; }
12027 # Is the header present?
12028 { $as_echo "$as_me:$LINENO: checking $bdb_header presence" >&5
12029 $as_echo_n "checking $bdb_header presence... " >&6; }
12030 cat >conftest.$ac_ext <<_ACEOF
12033 cat confdefs.h >>conftest.$ac_ext
12034 cat >>conftest.$ac_ext <<_ACEOF
12035 /* end confdefs.h. */
12036 #include <$bdb_header>
12038 if { (ac_try="$ac_cpp conftest.$ac_ext"
12039 case "(($ac_try" in
12040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12041 *) ac_try_echo=$ac_try;;
12043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12044 $as_echo "$ac_try_echo") >&5
12045 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12047 grep -v '^ *+' conftest.er1 >conftest.err
12049 cat conftest.err >&5
12050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051 (exit $ac_status); } >/dev/null && {
12052 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12053 test ! -s conftest.err
12055 ac_header_preproc=yes
12057 $as_echo "$as_me: failed program was:" >&5
12058 sed 's/^/| /' conftest.$ac_ext >&5
12060 ac_header_preproc=no
12063 rm -f conftest.err conftest.$ac_ext
12064 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12065 $as_echo "$ac_header_preproc" >&6; }
12067 # So? What about this header?
12068 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12070 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
12071 $as_echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12072 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
12073 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
12074 ac_header_preproc=yes
12077 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
12078 $as_echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
12079 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
12080 $as_echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
12081 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
12082 $as_echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
12083 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
12084 $as_echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
12085 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
12086 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
12087 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
12088 $as_echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
12092 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
12093 $as_echo_n "checking for $bdb_header... " >&6; }
12094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12095 $as_echo_n "(cached) " >&6
12097 eval "$as_ac_Header=\$ac_header_preproc"
12099 ac_res=`eval 'as_val=${'$as_ac_Header'}
12100 $as_echo "$as_val"'`
12101 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12102 $as_echo "$ac_res" >&6; }
12105 as_val=`eval 'as_val=${'$as_ac_Header'}
12106 $as_echo "$as_val"'`
12107 if test "x$as_val" = x""yes; then
12109 if test ""4"" = "3" -o ""4"" = "4"; then
12110 # We generate a separate cache variable for each prefix and libname
12111 # we search under. That way, we avoid caching information that
12112 # changes if the user runs `configure' with a different set of
12115 cache_id="`echo apu_cv_check_berkeley_db_"4"_"4"_"-1"_${bdb_header}_${bdb_libname}_in_${bdb_place} \
12116 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
12119 { $as_echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
12120 $as_echo_n "checking for -l$bdb_libname... " >&6; }
12121 if { as_var=$cache_id; eval "test \"\${$as_var+set}\" = set"; }; then
12122 $as_echo_n "(cached) " >&6
12126 apu_try_berkeley_db_save_libs="$LIBS"
12128 apu_check_berkeley_db_major="4"
12129 apu_check_berkeley_db_minor="4"
12130 apu_check_berkeley_db_patch="-1"
12131 apu_try_berkeley_db_header=$bdb_header
12132 apu_try_berkeley_db_libname=$bdb_libname
12134 LIBS="$LIBS -l$apu_try_berkeley_db_libname"
12135 if test "$cross_compiling" = yes; then
12136 apu_try_berkeley_db=yes
12139 cat >conftest.$ac_ext <<_ACEOF
12142 cat confdefs.h >>conftest.$ac_ext
12143 cat >>conftest.$ac_ext <<_ACEOF
12144 /* end confdefs.h. */
12146 #include <stdlib.h>
12148 #include <$apu_try_berkeley_db_header>
12151 int major, minor, patch;
12153 db_version(&major, &minor, &patch);
12155 /* Sanity check: ensure that db.h constants actually match the db library */
12156 if (major != DB_VERSION_MAJOR
12157 || minor != DB_VERSION_MINOR
12158 || patch != DB_VERSION_PATCH)
12161 /* Run-time check: ensure the library claims to be the correct version. */
12163 if ($apu_check_berkeley_db_major != -1) {
12164 if (major < $apu_check_berkeley_db_major)
12166 if (major > $apu_check_berkeley_db_major)
12170 if ($apu_check_berkeley_db_minor != -1) {
12171 if (minor < $apu_check_berkeley_db_minor)
12173 if (minor > $apu_check_berkeley_db_minor)
12177 if ($apu_check_berkeley_db_patch == -1
12178 || patch >= $apu_check_berkeley_db_patch)
12185 rm -f conftest$ac_exeext
12186 if { (ac_try="$ac_link"
12187 case "(($ac_try" in
12188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12189 *) ac_try_echo=$ac_try;;
12191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12192 $as_echo "$ac_try_echo") >&5
12193 (eval "$ac_link") 2>&5
12195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12197 { (case "(($ac_try" in
12198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12199 *) ac_try_echo=$ac_try;;
12201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12202 $as_echo "$ac_try_echo") >&5
12203 (eval "$ac_try") 2>&5
12205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206 (exit $ac_status); }; }; then
12207 apu_try_berkeley_db=yes
12209 $as_echo "$as_me: program exited with status $ac_status" >&5
12210 $as_echo "$as_me: failed program was:" >&5
12211 sed 's/^/| /' conftest.$ac_ext >&5
12213 ( exit $ac_status )
12214 apu_try_berkeley_db=no
12216 rm -rf conftest.dSYM
12217 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12222 LIBS="$apu_try_berkeley_db_save_libs"
12225 eval "$cache_id=$apu_try_berkeley_db"
12229 result="`eval echo '$'$cache_id`"
12230 { $as_echo "$as_me:$LINENO: result: $result" >&5
12231 $as_echo "$result" >&6; }
12232 elif test ""4"" = "1"; then
12233 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
12234 { $as_echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
12235 $as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; }
12236 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
12237 $as_echo_n "(cached) " >&6
12239 ac_check_lib_save_LIBS=$LIBS
12240 LIBS="-l$bdb_libname $LIBS"
12241 cat >conftest.$ac_ext <<_ACEOF
12244 cat confdefs.h >>conftest.$ac_ext
12245 cat >>conftest.$ac_ext <<_ACEOF
12246 /* end confdefs.h. */
12248 /* Override any GCC internal prototype to avoid an error.
12249 Use char because int might match the return type of a GCC
12250 builtin and then its argument prototype would still apply. */
12263 rm -f conftest.$ac_objext conftest$ac_exeext
12264 if { (ac_try="$ac_link"
12265 case "(($ac_try" in
12266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12267 *) ac_try_echo=$ac_try;;
12269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12270 $as_echo "$ac_try_echo") >&5
12271 (eval "$ac_link") 2>conftest.er1
12273 grep -v '^ *+' conftest.er1 >conftest.err
12275 cat conftest.err >&5
12276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); } && {
12278 test -z "$ac_c_werror_flag" ||
12279 test ! -s conftest.err
12280 } && test -s conftest$ac_exeext && {
12281 test "$cross_compiling" = yes ||
12282 $as_test_x conftest$ac_exeext
12284 eval "$as_ac_Lib=yes"
12286 $as_echo "$as_me: failed program was:" >&5
12287 sed 's/^/| /' conftest.$ac_ext >&5
12289 eval "$as_ac_Lib=no"
12292 rm -rf conftest.dSYM
12293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12294 conftest$ac_exeext conftest.$ac_ext
12295 LIBS=$ac_check_lib_save_LIBS
12297 ac_res=`eval 'as_val=${'$as_ac_Lib'}
12298 $as_echo "$as_val"'`
12299 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12300 $as_echo "$ac_res" >&6; }
12301 as_val=`eval 'as_val=${'$as_ac_Lib'}
12302 $as_echo "$as_val"'`
12303 if test "x$as_val" = x""yes; then
12310 elif test ""4"" = "2"; then
12311 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
12312 { $as_echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
12313 $as_echo_n "checking for db_open in -l$bdb_libname... " >&6; }
12314 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
12315 $as_echo_n "(cached) " >&6
12317 ac_check_lib_save_LIBS=$LIBS
12318 LIBS="-l$bdb_libname $LIBS"
12319 cat >conftest.$ac_ext <<_ACEOF
12322 cat confdefs.h >>conftest.$ac_ext
12323 cat >>conftest.$ac_ext <<_ACEOF
12324 /* end confdefs.h. */
12326 /* Override any GCC internal prototype to avoid an error.
12327 Use char because int might match the return type of a GCC
12328 builtin and then its argument prototype would still apply. */
12341 rm -f conftest.$ac_objext conftest$ac_exeext
12342 if { (ac_try="$ac_link"
12343 case "(($ac_try" in
12344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12345 *) ac_try_echo=$ac_try;;
12347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12348 $as_echo "$ac_try_echo") >&5
12349 (eval "$ac_link") 2>conftest.er1
12351 grep -v '^ *+' conftest.er1 >conftest.err
12353 cat conftest.err >&5
12354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 (exit $ac_status); } && {
12356 test -z "$ac_c_werror_flag" ||
12357 test ! -s conftest.err
12358 } && test -s conftest$ac_exeext && {
12359 test "$cross_compiling" = yes ||
12360 $as_test_x conftest$ac_exeext
12362 eval "$as_ac_Lib=yes"
12364 $as_echo "$as_me: failed program was:" >&5
12365 sed 's/^/| /' conftest.$ac_ext >&5
12367 eval "$as_ac_Lib=no"
12370 rm -rf conftest.dSYM
12371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12372 conftest$ac_exeext conftest.$ac_ext
12373 LIBS=$ac_check_lib_save_LIBS
12375 ac_res=`eval 'as_val=${'$as_ac_Lib'}
12376 $as_echo "$as_val"'`
12377 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12378 $as_echo "$ac_res" >&6; }
12379 as_val=`eval 'as_val=${'$as_ac_Lib'}
12380 $as_echo "$as_val"'`
12381 if test "x$as_val" = x""yes; then
12396 # If we found it, no need to search any more.
12397 if test "$result" = "yes"; then
12402 test "$found" != "not" && break
12404 test "$found" != "not" && break
12407 # Restore the original values of the flags we tweak.
12408 LDFLAGS="$apu_check_lib_save_ldflags"
12409 CPPFLAGS="$apu_check_lib_save_cppflags"
12416 apu_db_header=$bdb_header
12417 apu_db_lib=$bdb_libname
12421 header="`echo $found | sed -e 's/:.*$//'`"
12422 lib="`echo $found | sed -e 's/^.*://'`"
12425 if test "x$APRUTIL_INCLUDES" = "x"; then
12426 echo " setting APRUTIL_INCLUDES to \"-I$header\""
12427 APRUTIL_INCLUDES="-I$header"
12429 apr_addto_bugger="-I$header"
12430 for i in $apr_addto_bugger; do
12431 apr_addto_duplicate="0"
12432 for j in $APRUTIL_INCLUDES; do
12433 if test "x$i" = "x$j"; then
12434 apr_addto_duplicate="1"
12438 if test $apr_addto_duplicate = "0"; then
12439 echo " adding \"$i\" to APRUTIL_INCLUDES"
12440 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
12446 if test "x$APRUTIL_LDFLAGS" = "x"; then
12447 echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
12448 APRUTIL_LDFLAGS="-L$lib"
12450 apr_addto_bugger="-L$lib"
12451 for i in $apr_addto_bugger; do
12452 apr_addto_duplicate="0"
12453 for j in $APRUTIL_LDFLAGS; do
12454 if test "x$i" = "x$j"; then
12455 apr_addto_duplicate="1"
12459 if test $apr_addto_duplicate = "0"; then
12460 echo " adding \"$i\" to APRUTIL_LDFLAGS"
12461 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
12466 apu_db_header=$bdb_header
12467 apu_db_lib=$bdb_libname
12472 if test "x$APRUTIL_INCLUDES" = "x"; then
12473 echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
12474 APRUTIL_INCLUDES="-I$found/include"
12476 apr_addto_bugger="-I$found/include"
12477 for i in $apr_addto_bugger; do
12478 apr_addto_duplicate="0"
12479 for j in $APRUTIL_INCLUDES; do
12480 if test "x$i" = "x$j"; then
12481 apr_addto_duplicate="1"
12485 if test $apr_addto_duplicate = "0"; then
12486 echo " adding \"$i\" to APRUTIL_INCLUDES"
12487 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
12493 if test "x$APRUTIL_LDFLAGS" = "x"; then
12494 echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
12495 APRUTIL_LDFLAGS="-L$found/lib"
12497 apr_addto_bugger="-L$found/lib"
12498 for i in $apr_addto_bugger; do
12499 apr_addto_duplicate="0"
12500 for j in $APRUTIL_LDFLAGS; do
12501 if test "x$i" = "x$j"; then
12502 apr_addto_duplicate="1"
12506 if test $apr_addto_duplicate = "0"; then
12507 echo " adding \"$i\" to APRUTIL_LDFLAGS"
12508 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
12513 apu_db_header=$bdb_header
12514 apu_db_lib=$bdb_libname
12519 if test "$apu_have_db" = "1"; then
12523 if test "$apu_db_version" != "4"; then
12525 places="$all_places"
12526 if test -z "$places"; then
12527 places="std /usr/local/BerkeleyDB.4.3 /boot/home/config"
12531 if test ""3"" != "-1"; then
12532 bdb_version="$bdb_version."3""
12533 if test ""-1"" != "-1"; then
12534 bdb_version="$bdb_version."-1""
12537 bdb_places="$places"
12538 bdb_default_search_headers="db43/db.h db4/db.h db.h"
12539 bdb_default_search_lib_names="db-4.3 db4-4.3 db43 db4 db"
12544 # Save the original values of the flags we tweak.
12545 apu_check_lib_save_libs="$LIBS"
12546 apu_check_lib_save_ldflags="$LDFLAGS"
12547 apu_check_lib_save_cppflags="$CPPFLAGS"
12549 # The variable `found' is the prefix under which we've found
12550 # Berkeley DB, or `not' if we haven't found it anywhere yet.
12552 for bdb_place in $bdb_places; do
12554 LDFLAGS="$apu_check_lib_save_ldflags"
12555 CPPFLAGS="$apu_check_lib_save_cppflags"
12556 case "$bdb_place" in
12558 description="the standard places"
12561 header="`echo $bdb_place | sed -e 's/:.*$//'`"
12562 lib="`echo $bdb_place | sed -e 's/^.*://'`"
12563 CPPFLAGS="$CPPFLAGS -I$header"
12564 LDFLAGS="$LDFLAGS -L$lib"
12565 description="$header and $lib"
12568 if test -d $bdb_place; then
12569 LDFLAGS="$LDFLAGS -L$bdb_place/lib"
12570 CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
12572 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
12573 $as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; }
12574 { $as_echo "$as_me:$LINENO: result: directory not found" >&5
12575 $as_echo "directory not found" >&6; }
12578 description="$bdb_place"
12582 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
12583 # trick to display a message instead.
12584 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
12585 $as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; }
12586 { $as_echo "$as_me:$LINENO: result: " >&5
12589 for bdb_libname in $bdb_default_search_lib_names; do
12590 for bdb_header in $bdb_default_search_headers; do
12591 # Clear the header cache variable for each location
12593 cache_id="`echo ac_cv_header_${bdb_header} \
12594 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
12597 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh`
12598 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12599 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
12600 $as_echo_n "checking for $bdb_header... " >&6; }
12601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12602 $as_echo_n "(cached) " >&6
12604 ac_res=`eval 'as_val=${'$as_ac_Header'}
12605 $as_echo "$as_val"'`
12606 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12607 $as_echo "$ac_res" >&6; }
12609 # Is the header compilable?
12610 { $as_echo "$as_me:$LINENO: checking $bdb_header usability" >&5
12611 $as_echo_n "checking $bdb_header usability... " >&6; }
12612 cat >conftest.$ac_ext <<_ACEOF
12615 cat confdefs.h >>conftest.$ac_ext
12616 cat >>conftest.$ac_ext <<_ACEOF
12617 /* end confdefs.h. */
12618 $ac_includes_default
12619 #include <$bdb_header>
12621 rm -f conftest.$ac_objext
12622 if { (ac_try="$ac_compile"
12623 case "(($ac_try" in
12624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12625 *) ac_try_echo=$ac_try;;
12627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12628 $as_echo "$ac_try_echo") >&5
12629 (eval "$ac_compile") 2>conftest.er1
12631 grep -v '^ *+' conftest.er1 >conftest.err
12633 cat conftest.err >&5
12634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635 (exit $ac_status); } && {
12636 test -z "$ac_c_werror_flag" ||
12637 test ! -s conftest.err
12638 } && test -s conftest.$ac_objext; then
12639 ac_header_compiler=yes
12641 $as_echo "$as_me: failed program was:" >&5
12642 sed 's/^/| /' conftest.$ac_ext >&5
12644 ac_header_compiler=no
12647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12648 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12649 $as_echo "$ac_header_compiler" >&6; }
12651 # Is the header present?
12652 { $as_echo "$as_me:$LINENO: checking $bdb_header presence" >&5
12653 $as_echo_n "checking $bdb_header presence... " >&6; }
12654 cat >conftest.$ac_ext <<_ACEOF
12657 cat confdefs.h >>conftest.$ac_ext
12658 cat >>conftest.$ac_ext <<_ACEOF
12659 /* end confdefs.h. */
12660 #include <$bdb_header>
12662 if { (ac_try="$ac_cpp conftest.$ac_ext"
12663 case "(($ac_try" in
12664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12665 *) ac_try_echo=$ac_try;;
12667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12668 $as_echo "$ac_try_echo") >&5
12669 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12671 grep -v '^ *+' conftest.er1 >conftest.err
12673 cat conftest.err >&5
12674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675 (exit $ac_status); } >/dev/null && {
12676 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12677 test ! -s conftest.err
12679 ac_header_preproc=yes
12681 $as_echo "$as_me: failed program was:" >&5
12682 sed 's/^/| /' conftest.$ac_ext >&5
12684 ac_header_preproc=no
12687 rm -f conftest.err conftest.$ac_ext
12688 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12689 $as_echo "$ac_header_preproc" >&6; }
12691 # So? What about this header?
12692 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12694 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
12695 $as_echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12696 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
12697 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
12698 ac_header_preproc=yes
12701 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
12702 $as_echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
12703 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
12704 $as_echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
12705 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
12706 $as_echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
12707 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
12708 $as_echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
12709 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
12710 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
12711 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
12712 $as_echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
12716 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
12717 $as_echo_n "checking for $bdb_header... " >&6; }
12718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12719 $as_echo_n "(cached) " >&6
12721 eval "$as_ac_Header=\$ac_header_preproc"
12723 ac_res=`eval 'as_val=${'$as_ac_Header'}
12724 $as_echo "$as_val"'`
12725 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12726 $as_echo "$ac_res" >&6; }
12729 as_val=`eval 'as_val=${'$as_ac_Header'}
12730 $as_echo "$as_val"'`
12731 if test "x$as_val" = x""yes; then
12733 if test ""4"" = "3" -o ""4"" = "4"; then
12734 # We generate a separate cache variable for each prefix and libname
12735 # we search under. That way, we avoid caching information that
12736 # changes if the user runs `configure' with a different set of
12739 cache_id="`echo apu_cv_check_berkeley_db_"4"_"3"_"-1"_${bdb_header}_${bdb_libname}_in_${bdb_place} \
12740 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
12743 { $as_echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
12744 $as_echo_n "checking for -l$bdb_libname... " >&6; }
12745 if { as_var=$cache_id; eval "test \"\${$as_var+set}\" = set"; }; then
12746 $as_echo_n "(cached) " >&6
12750 apu_try_berkeley_db_save_libs="$LIBS"
12752 apu_check_berkeley_db_major="4"
12753 apu_check_berkeley_db_minor="3"
12754 apu_check_berkeley_db_patch="-1"
12755 apu_try_berkeley_db_header=$bdb_header
12756 apu_try_berkeley_db_libname=$bdb_libname
12758 LIBS="$LIBS -l$apu_try_berkeley_db_libname"
12759 if test "$cross_compiling" = yes; then
12760 apu_try_berkeley_db=yes
12763 cat >conftest.$ac_ext <<_ACEOF
12766 cat confdefs.h >>conftest.$ac_ext
12767 cat >>conftest.$ac_ext <<_ACEOF
12768 /* end confdefs.h. */
12770 #include <stdlib.h>
12772 #include <$apu_try_berkeley_db_header>
12775 int major, minor, patch;
12777 db_version(&major, &minor, &patch);
12779 /* Sanity check: ensure that db.h constants actually match the db library */
12780 if (major != DB_VERSION_MAJOR
12781 || minor != DB_VERSION_MINOR
12782 || patch != DB_VERSION_PATCH)
12785 /* Run-time check: ensure the library claims to be the correct version. */
12787 if ($apu_check_berkeley_db_major != -1) {
12788 if (major < $apu_check_berkeley_db_major)
12790 if (major > $apu_check_berkeley_db_major)
12794 if ($apu_check_berkeley_db_minor != -1) {
12795 if (minor < $apu_check_berkeley_db_minor)
12797 if (minor > $apu_check_berkeley_db_minor)
12801 if ($apu_check_berkeley_db_patch == -1
12802 || patch >= $apu_check_berkeley_db_patch)
12809 rm -f conftest$ac_exeext
12810 if { (ac_try="$ac_link"
12811 case "(($ac_try" in
12812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12813 *) ac_try_echo=$ac_try;;
12815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12816 $as_echo "$ac_try_echo") >&5
12817 (eval "$ac_link") 2>&5
12819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12821 { (case "(($ac_try" in
12822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12823 *) ac_try_echo=$ac_try;;
12825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12826 $as_echo "$ac_try_echo") >&5
12827 (eval "$ac_try") 2>&5
12829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830 (exit $ac_status); }; }; then
12831 apu_try_berkeley_db=yes
12833 $as_echo "$as_me: program exited with status $ac_status" >&5
12834 $as_echo "$as_me: failed program was:" >&5
12835 sed 's/^/| /' conftest.$ac_ext >&5
12837 ( exit $ac_status )
12838 apu_try_berkeley_db=no
12840 rm -rf conftest.dSYM
12841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12846 LIBS="$apu_try_berkeley_db_save_libs"
12849 eval "$cache_id=$apu_try_berkeley_db"
12853 result="`eval echo '$'$cache_id`"
12854 { $as_echo "$as_me:$LINENO: result: $result" >&5
12855 $as_echo "$result" >&6; }
12856 elif test ""4"" = "1"; then
12857 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
12858 { $as_echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
12859 $as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; }
12860 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
12861 $as_echo_n "(cached) " >&6
12863 ac_check_lib_save_LIBS=$LIBS
12864 LIBS="-l$bdb_libname $LIBS"
12865 cat >conftest.$ac_ext <<_ACEOF
12868 cat confdefs.h >>conftest.$ac_ext
12869 cat >>conftest.$ac_ext <<_ACEOF
12870 /* end confdefs.h. */
12872 /* Override any GCC internal prototype to avoid an error.
12873 Use char because int might match the return type of a GCC
12874 builtin and then its argument prototype would still apply. */
12887 rm -f conftest.$ac_objext conftest$ac_exeext
12888 if { (ac_try="$ac_link"
12889 case "(($ac_try" in
12890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12891 *) ac_try_echo=$ac_try;;
12893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12894 $as_echo "$ac_try_echo") >&5
12895 (eval "$ac_link") 2>conftest.er1
12897 grep -v '^ *+' conftest.er1 >conftest.err
12899 cat conftest.err >&5
12900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12901 (exit $ac_status); } && {
12902 test -z "$ac_c_werror_flag" ||
12903 test ! -s conftest.err
12904 } && test -s conftest$ac_exeext && {
12905 test "$cross_compiling" = yes ||
12906 $as_test_x conftest$ac_exeext
12908 eval "$as_ac_Lib=yes"
12910 $as_echo "$as_me: failed program was:" >&5
12911 sed 's/^/| /' conftest.$ac_ext >&5
12913 eval "$as_ac_Lib=no"
12916 rm -rf conftest.dSYM
12917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12918 conftest$ac_exeext conftest.$ac_ext
12919 LIBS=$ac_check_lib_save_LIBS
12921 ac_res=`eval 'as_val=${'$as_ac_Lib'}
12922 $as_echo "$as_val"'`
12923 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12924 $as_echo "$ac_res" >&6; }
12925 as_val=`eval 'as_val=${'$as_ac_Lib'}
12926 $as_echo "$as_val"'`
12927 if test "x$as_val" = x""yes; then
12934 elif test ""4"" = "2"; then
12935 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
12936 { $as_echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
12937 $as_echo_n "checking for db_open in -l$bdb_libname... " >&6; }
12938 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
12939 $as_echo_n "(cached) " >&6
12941 ac_check_lib_save_LIBS=$LIBS
12942 LIBS="-l$bdb_libname $LIBS"
12943 cat >conftest.$ac_ext <<_ACEOF
12946 cat confdefs.h >>conftest.$ac_ext
12947 cat >>conftest.$ac_ext <<_ACEOF
12948 /* end confdefs.h. */
12950 /* Override any GCC internal prototype to avoid an error.
12951 Use char because int might match the return type of a GCC
12952 builtin and then its argument prototype would still apply. */
12965 rm -f conftest.$ac_objext conftest$ac_exeext
12966 if { (ac_try="$ac_link"
12967 case "(($ac_try" in
12968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12969 *) ac_try_echo=$ac_try;;
12971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12972 $as_echo "$ac_try_echo") >&5
12973 (eval "$ac_link") 2>conftest.er1
12975 grep -v '^ *+' conftest.er1 >conftest.err
12977 cat conftest.err >&5
12978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979 (exit $ac_status); } && {
12980 test -z "$ac_c_werror_flag" ||
12981 test ! -s conftest.err
12982 } && test -s conftest$ac_exeext && {
12983 test "$cross_compiling" = yes ||
12984 $as_test_x conftest$ac_exeext
12986 eval "$as_ac_Lib=yes"
12988 $as_echo "$as_me: failed program was:" >&5
12989 sed 's/^/| /' conftest.$ac_ext >&5
12991 eval "$as_ac_Lib=no"
12994 rm -rf conftest.dSYM
12995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12996 conftest$ac_exeext conftest.$ac_ext
12997 LIBS=$ac_check_lib_save_LIBS
12999 ac_res=`eval 'as_val=${'$as_ac_Lib'}
13000 $as_echo "$as_val"'`
13001 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13002 $as_echo "$ac_res" >&6; }
13003 as_val=`eval 'as_val=${'$as_ac_Lib'}
13004 $as_echo "$as_val"'`
13005 if test "x$as_val" = x""yes; then
13020 # If we found it, no need to search any more.
13021 if test "$result" = "yes"; then
13026 test "$found" != "not" && break
13028 test "$found" != "not" && break
13031 # Restore the original values of the flags we tweak.
13032 LDFLAGS="$apu_check_lib_save_ldflags"
13033 CPPFLAGS="$apu_check_lib_save_cppflags"
13040 apu_db_header=$bdb_header
13041 apu_db_lib=$bdb_libname
13045 header="`echo $found | sed -e 's/:.*$//'`"
13046 lib="`echo $found | sed -e 's/^.*://'`"
13049 if test "x$APRUTIL_INCLUDES" = "x"; then
13050 echo " setting APRUTIL_INCLUDES to \"-I$header\""
13051 APRUTIL_INCLUDES="-I$header"
13053 apr_addto_bugger="-I$header"
13054 for i in $apr_addto_bugger; do
13055 apr_addto_duplicate="0"
13056 for j in $APRUTIL_INCLUDES; do
13057 if test "x$i" = "x$j"; then
13058 apr_addto_duplicate="1"
13062 if test $apr_addto_duplicate = "0"; then
13063 echo " adding \"$i\" to APRUTIL_INCLUDES"
13064 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
13070 if test "x$APRUTIL_LDFLAGS" = "x"; then
13071 echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
13072 APRUTIL_LDFLAGS="-L$lib"
13074 apr_addto_bugger="-L$lib"
13075 for i in $apr_addto_bugger; do
13076 apr_addto_duplicate="0"
13077 for j in $APRUTIL_LDFLAGS; do
13078 if test "x$i" = "x$j"; then
13079 apr_addto_duplicate="1"
13083 if test $apr_addto_duplicate = "0"; then
13084 echo " adding \"$i\" to APRUTIL_LDFLAGS"
13085 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
13090 apu_db_header=$bdb_header
13091 apu_db_lib=$bdb_libname
13096 if test "x$APRUTIL_INCLUDES" = "x"; then
13097 echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
13098 APRUTIL_INCLUDES="-I$found/include"
13100 apr_addto_bugger="-I$found/include"
13101 for i in $apr_addto_bugger; do
13102 apr_addto_duplicate="0"
13103 for j in $APRUTIL_INCLUDES; do
13104 if test "x$i" = "x$j"; then
13105 apr_addto_duplicate="1"
13109 if test $apr_addto_duplicate = "0"; then
13110 echo " adding \"$i\" to APRUTIL_INCLUDES"
13111 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
13117 if test "x$APRUTIL_LDFLAGS" = "x"; then
13118 echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
13119 APRUTIL_LDFLAGS="-L$found/lib"
13121 apr_addto_bugger="-L$found/lib"
13122 for i in $apr_addto_bugger; do
13123 apr_addto_duplicate="0"
13124 for j in $APRUTIL_LDFLAGS; do
13125 if test "x$i" = "x$j"; then
13126 apr_addto_duplicate="1"
13130 if test $apr_addto_duplicate = "0"; then
13131 echo " adding \"$i\" to APRUTIL_LDFLAGS"
13132 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
13137 apu_db_header=$bdb_header
13138 apu_db_lib=$bdb_libname
13143 if test "$apu_have_db" = "1"; then
13147 if test "$apu_db_version" != "4"; then
13149 places="$all_places"
13150 if test -z "$places"; then
13151 places="std /usr/local /usr/local/BerkeleyDB.4.2 /boot/home/config"
13155 if test ""2"" != "-1"; then
13156 bdb_version="$bdb_version."2""
13157 if test ""-1"" != "-1"; then
13158 bdb_version="$bdb_version."-1""
13161 bdb_places="$places"
13162 bdb_default_search_headers="db42/db.h db4/db.h db.h"
13163 bdb_default_search_lib_names="db-4.2 db42 db4 db"
13168 # Save the original values of the flags we tweak.
13169 apu_check_lib_save_libs="$LIBS"
13170 apu_check_lib_save_ldflags="$LDFLAGS"
13171 apu_check_lib_save_cppflags="$CPPFLAGS"
13173 # The variable `found' is the prefix under which we've found
13174 # Berkeley DB, or `not' if we haven't found it anywhere yet.
13176 for bdb_place in $bdb_places; do
13178 LDFLAGS="$apu_check_lib_save_ldflags"
13179 CPPFLAGS="$apu_check_lib_save_cppflags"
13180 case "$bdb_place" in
13182 description="the standard places"
13185 header="`echo $bdb_place | sed -e 's/:.*$//'`"
13186 lib="`echo $bdb_place | sed -e 's/^.*://'`"
13187 CPPFLAGS="$CPPFLAGS -I$header"
13188 LDFLAGS="$LDFLAGS -L$lib"
13189 description="$header and $lib"
13192 if test -d $bdb_place; then
13193 LDFLAGS="$LDFLAGS -L$bdb_place/lib"
13194 CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
13196 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
13197 $as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; }
13198 { $as_echo "$as_me:$LINENO: result: directory not found" >&5
13199 $as_echo "directory not found" >&6; }
13202 description="$bdb_place"
13206 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
13207 # trick to display a message instead.
13208 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
13209 $as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; }
13210 { $as_echo "$as_me:$LINENO: result: " >&5
13213 for bdb_libname in $bdb_default_search_lib_names; do
13214 for bdb_header in $bdb_default_search_headers; do
13215 # Clear the header cache variable for each location
13217 cache_id="`echo ac_cv_header_${bdb_header} \
13218 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
13221 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh`
13222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13223 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
13224 $as_echo_n "checking for $bdb_header... " >&6; }
13225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13226 $as_echo_n "(cached) " >&6
13228 ac_res=`eval 'as_val=${'$as_ac_Header'}
13229 $as_echo "$as_val"'`
13230 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13231 $as_echo "$ac_res" >&6; }
13233 # Is the header compilable?
13234 { $as_echo "$as_me:$LINENO: checking $bdb_header usability" >&5
13235 $as_echo_n "checking $bdb_header usability... " >&6; }
13236 cat >conftest.$ac_ext <<_ACEOF
13239 cat confdefs.h >>conftest.$ac_ext
13240 cat >>conftest.$ac_ext <<_ACEOF
13241 /* end confdefs.h. */
13242 $ac_includes_default
13243 #include <$bdb_header>
13245 rm -f conftest.$ac_objext
13246 if { (ac_try="$ac_compile"
13247 case "(($ac_try" in
13248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13249 *) ac_try_echo=$ac_try;;
13251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13252 $as_echo "$ac_try_echo") >&5
13253 (eval "$ac_compile") 2>conftest.er1
13255 grep -v '^ *+' conftest.er1 >conftest.err
13257 cat conftest.err >&5
13258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259 (exit $ac_status); } && {
13260 test -z "$ac_c_werror_flag" ||
13261 test ! -s conftest.err
13262 } && test -s conftest.$ac_objext; then
13263 ac_header_compiler=yes
13265 $as_echo "$as_me: failed program was:" >&5
13266 sed 's/^/| /' conftest.$ac_ext >&5
13268 ac_header_compiler=no
13271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13272 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13273 $as_echo "$ac_header_compiler" >&6; }
13275 # Is the header present?
13276 { $as_echo "$as_me:$LINENO: checking $bdb_header presence" >&5
13277 $as_echo_n "checking $bdb_header presence... " >&6; }
13278 cat >conftest.$ac_ext <<_ACEOF
13281 cat confdefs.h >>conftest.$ac_ext
13282 cat >>conftest.$ac_ext <<_ACEOF
13283 /* end confdefs.h. */
13284 #include <$bdb_header>
13286 if { (ac_try="$ac_cpp conftest.$ac_ext"
13287 case "(($ac_try" in
13288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13289 *) ac_try_echo=$ac_try;;
13291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13292 $as_echo "$ac_try_echo") >&5
13293 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13295 grep -v '^ *+' conftest.er1 >conftest.err
13297 cat conftest.err >&5
13298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299 (exit $ac_status); } >/dev/null && {
13300 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13301 test ! -s conftest.err
13303 ac_header_preproc=yes
13305 $as_echo "$as_me: failed program was:" >&5
13306 sed 's/^/| /' conftest.$ac_ext >&5
13308 ac_header_preproc=no
13311 rm -f conftest.err conftest.$ac_ext
13312 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13313 $as_echo "$ac_header_preproc" >&6; }
13315 # So? What about this header?
13316 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13318 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
13319 $as_echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13320 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
13321 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
13322 ac_header_preproc=yes
13325 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
13326 $as_echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
13327 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
13328 $as_echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
13329 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
13330 $as_echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
13331 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
13332 $as_echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
13333 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
13334 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
13335 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
13336 $as_echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
13340 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
13341 $as_echo_n "checking for $bdb_header... " >&6; }
13342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13343 $as_echo_n "(cached) " >&6
13345 eval "$as_ac_Header=\$ac_header_preproc"
13347 ac_res=`eval 'as_val=${'$as_ac_Header'}
13348 $as_echo "$as_val"'`
13349 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13350 $as_echo "$ac_res" >&6; }
13353 as_val=`eval 'as_val=${'$as_ac_Header'}
13354 $as_echo "$as_val"'`
13355 if test "x$as_val" = x""yes; then
13357 if test ""4"" = "3" -o ""4"" = "4"; then
13358 # We generate a separate cache variable for each prefix and libname
13359 # we search under. That way, we avoid caching information that
13360 # changes if the user runs `configure' with a different set of
13363 cache_id="`echo apu_cv_check_berkeley_db_"4"_"2"_"-1"_${bdb_header}_${bdb_libname}_in_${bdb_place} \
13364 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
13367 { $as_echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
13368 $as_echo_n "checking for -l$bdb_libname... " >&6; }
13369 if { as_var=$cache_id; eval "test \"\${$as_var+set}\" = set"; }; then
13370 $as_echo_n "(cached) " >&6
13374 apu_try_berkeley_db_save_libs="$LIBS"
13376 apu_check_berkeley_db_major="4"
13377 apu_check_berkeley_db_minor="2"
13378 apu_check_berkeley_db_patch="-1"
13379 apu_try_berkeley_db_header=$bdb_header
13380 apu_try_berkeley_db_libname=$bdb_libname
13382 LIBS="$LIBS -l$apu_try_berkeley_db_libname"
13383 if test "$cross_compiling" = yes; then
13384 apu_try_berkeley_db=yes
13387 cat >conftest.$ac_ext <<_ACEOF
13390 cat confdefs.h >>conftest.$ac_ext
13391 cat >>conftest.$ac_ext <<_ACEOF
13392 /* end confdefs.h. */
13394 #include <stdlib.h>
13396 #include <$apu_try_berkeley_db_header>
13399 int major, minor, patch;
13401 db_version(&major, &minor, &patch);
13403 /* Sanity check: ensure that db.h constants actually match the db library */
13404 if (major != DB_VERSION_MAJOR
13405 || minor != DB_VERSION_MINOR
13406 || patch != DB_VERSION_PATCH)
13409 /* Run-time check: ensure the library claims to be the correct version. */
13411 if ($apu_check_berkeley_db_major != -1) {
13412 if (major < $apu_check_berkeley_db_major)
13414 if (major > $apu_check_berkeley_db_major)
13418 if ($apu_check_berkeley_db_minor != -1) {
13419 if (minor < $apu_check_berkeley_db_minor)
13421 if (minor > $apu_check_berkeley_db_minor)
13425 if ($apu_check_berkeley_db_patch == -1
13426 || patch >= $apu_check_berkeley_db_patch)
13433 rm -f conftest$ac_exeext
13434 if { (ac_try="$ac_link"
13435 case "(($ac_try" in
13436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13437 *) ac_try_echo=$ac_try;;
13439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13440 $as_echo "$ac_try_echo") >&5
13441 (eval "$ac_link") 2>&5
13443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13445 { (case "(($ac_try" in
13446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13447 *) ac_try_echo=$ac_try;;
13449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13450 $as_echo "$ac_try_echo") >&5
13451 (eval "$ac_try") 2>&5
13453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454 (exit $ac_status); }; }; then
13455 apu_try_berkeley_db=yes
13457 $as_echo "$as_me: program exited with status $ac_status" >&5
13458 $as_echo "$as_me: failed program was:" >&5
13459 sed 's/^/| /' conftest.$ac_ext >&5
13461 ( exit $ac_status )
13462 apu_try_berkeley_db=no
13464 rm -rf conftest.dSYM
13465 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13470 LIBS="$apu_try_berkeley_db_save_libs"
13473 eval "$cache_id=$apu_try_berkeley_db"
13477 result="`eval echo '$'$cache_id`"
13478 { $as_echo "$as_me:$LINENO: result: $result" >&5
13479 $as_echo "$result" >&6; }
13480 elif test ""4"" = "1"; then
13481 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
13482 { $as_echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
13483 $as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; }
13484 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
13485 $as_echo_n "(cached) " >&6
13487 ac_check_lib_save_LIBS=$LIBS
13488 LIBS="-l$bdb_libname $LIBS"
13489 cat >conftest.$ac_ext <<_ACEOF
13492 cat confdefs.h >>conftest.$ac_ext
13493 cat >>conftest.$ac_ext <<_ACEOF
13494 /* end confdefs.h. */
13496 /* Override any GCC internal prototype to avoid an error.
13497 Use char because int might match the return type of a GCC
13498 builtin and then its argument prototype would still apply. */
13511 rm -f conftest.$ac_objext conftest$ac_exeext
13512 if { (ac_try="$ac_link"
13513 case "(($ac_try" in
13514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13515 *) ac_try_echo=$ac_try;;
13517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13518 $as_echo "$ac_try_echo") >&5
13519 (eval "$ac_link") 2>conftest.er1
13521 grep -v '^ *+' conftest.er1 >conftest.err
13523 cat conftest.err >&5
13524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525 (exit $ac_status); } && {
13526 test -z "$ac_c_werror_flag" ||
13527 test ! -s conftest.err
13528 } && test -s conftest$ac_exeext && {
13529 test "$cross_compiling" = yes ||
13530 $as_test_x conftest$ac_exeext
13532 eval "$as_ac_Lib=yes"
13534 $as_echo "$as_me: failed program was:" >&5
13535 sed 's/^/| /' conftest.$ac_ext >&5
13537 eval "$as_ac_Lib=no"
13540 rm -rf conftest.dSYM
13541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13542 conftest$ac_exeext conftest.$ac_ext
13543 LIBS=$ac_check_lib_save_LIBS
13545 ac_res=`eval 'as_val=${'$as_ac_Lib'}
13546 $as_echo "$as_val"'`
13547 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13548 $as_echo "$ac_res" >&6; }
13549 as_val=`eval 'as_val=${'$as_ac_Lib'}
13550 $as_echo "$as_val"'`
13551 if test "x$as_val" = x""yes; then
13558 elif test ""4"" = "2"; then
13559 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
13560 { $as_echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
13561 $as_echo_n "checking for db_open in -l$bdb_libname... " >&6; }
13562 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
13563 $as_echo_n "(cached) " >&6
13565 ac_check_lib_save_LIBS=$LIBS
13566 LIBS="-l$bdb_libname $LIBS"
13567 cat >conftest.$ac_ext <<_ACEOF
13570 cat confdefs.h >>conftest.$ac_ext
13571 cat >>conftest.$ac_ext <<_ACEOF
13572 /* end confdefs.h. */
13574 /* Override any GCC internal prototype to avoid an error.
13575 Use char because int might match the return type of a GCC
13576 builtin and then its argument prototype would still apply. */
13589 rm -f conftest.$ac_objext conftest$ac_exeext
13590 if { (ac_try="$ac_link"
13591 case "(($ac_try" in
13592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13593 *) ac_try_echo=$ac_try;;
13595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13596 $as_echo "$ac_try_echo") >&5
13597 (eval "$ac_link") 2>conftest.er1
13599 grep -v '^ *+' conftest.er1 >conftest.err
13601 cat conftest.err >&5
13602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13603 (exit $ac_status); } && {
13604 test -z "$ac_c_werror_flag" ||
13605 test ! -s conftest.err
13606 } && test -s conftest$ac_exeext && {
13607 test "$cross_compiling" = yes ||
13608 $as_test_x conftest$ac_exeext
13610 eval "$as_ac_Lib=yes"
13612 $as_echo "$as_me: failed program was:" >&5
13613 sed 's/^/| /' conftest.$ac_ext >&5
13615 eval "$as_ac_Lib=no"
13618 rm -rf conftest.dSYM
13619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13620 conftest$ac_exeext conftest.$ac_ext
13621 LIBS=$ac_check_lib_save_LIBS
13623 ac_res=`eval 'as_val=${'$as_ac_Lib'}
13624 $as_echo "$as_val"'`
13625 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13626 $as_echo "$ac_res" >&6; }
13627 as_val=`eval 'as_val=${'$as_ac_Lib'}
13628 $as_echo "$as_val"'`
13629 if test "x$as_val" = x""yes; then
13644 # If we found it, no need to search any more.
13645 if test "$result" = "yes"; then
13650 test "$found" != "not" && break
13652 test "$found" != "not" && break
13655 # Restore the original values of the flags we tweak.
13656 LDFLAGS="$apu_check_lib_save_ldflags"
13657 CPPFLAGS="$apu_check_lib_save_cppflags"
13664 apu_db_header=$bdb_header
13665 apu_db_lib=$bdb_libname
13669 header="`echo $found | sed -e 's/:.*$//'`"
13670 lib="`echo $found | sed -e 's/^.*://'`"
13673 if test "x$APRUTIL_INCLUDES" = "x"; then
13674 echo " setting APRUTIL_INCLUDES to \"-I$header\""
13675 APRUTIL_INCLUDES="-I$header"
13677 apr_addto_bugger="-I$header"
13678 for i in $apr_addto_bugger; do
13679 apr_addto_duplicate="0"
13680 for j in $APRUTIL_INCLUDES; do
13681 if test "x$i" = "x$j"; then
13682 apr_addto_duplicate="1"
13686 if test $apr_addto_duplicate = "0"; then
13687 echo " adding \"$i\" to APRUTIL_INCLUDES"
13688 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
13694 if test "x$APRUTIL_LDFLAGS" = "x"; then
13695 echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
13696 APRUTIL_LDFLAGS="-L$lib"
13698 apr_addto_bugger="-L$lib"
13699 for i in $apr_addto_bugger; do
13700 apr_addto_duplicate="0"
13701 for j in $APRUTIL_LDFLAGS; do
13702 if test "x$i" = "x$j"; then
13703 apr_addto_duplicate="1"
13707 if test $apr_addto_duplicate = "0"; then
13708 echo " adding \"$i\" to APRUTIL_LDFLAGS"
13709 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
13714 apu_db_header=$bdb_header
13715 apu_db_lib=$bdb_libname
13720 if test "x$APRUTIL_INCLUDES" = "x"; then
13721 echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
13722 APRUTIL_INCLUDES="-I$found/include"
13724 apr_addto_bugger="-I$found/include"
13725 for i in $apr_addto_bugger; do
13726 apr_addto_duplicate="0"
13727 for j in $APRUTIL_INCLUDES; do
13728 if test "x$i" = "x$j"; then
13729 apr_addto_duplicate="1"
13733 if test $apr_addto_duplicate = "0"; then
13734 echo " adding \"$i\" to APRUTIL_INCLUDES"
13735 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
13741 if test "x$APRUTIL_LDFLAGS" = "x"; then
13742 echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
13743 APRUTIL_LDFLAGS="-L$found/lib"
13745 apr_addto_bugger="-L$found/lib"
13746 for i in $apr_addto_bugger; do
13747 apr_addto_duplicate="0"
13748 for j in $APRUTIL_LDFLAGS; do
13749 if test "x$i" = "x$j"; then
13750 apr_addto_duplicate="1"
13754 if test $apr_addto_duplicate = "0"; then
13755 echo " adding \"$i\" to APRUTIL_LDFLAGS"
13756 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
13761 apu_db_header=$bdb_header
13762 apu_db_lib=$bdb_libname
13767 if test "$apu_have_db" = "1"; then
13771 if test "$apu_db_version" != "4"; then
13773 places="$all_places"
13774 if test -z "$places"; then
13775 places="std /usr/local /usr/local/BerkeleyDB.4.1 /boot/home/config"
13779 if test ""1"" != "-1"; then
13780 bdb_version="$bdb_version."1""
13781 if test ""-1"" != "-1"; then
13782 bdb_version="$bdb_version."-1""
13785 bdb_places="$places"
13786 bdb_default_search_headers="db41/db.h db4/db.h db.h"
13787 bdb_default_search_lib_names="db-4.1 db41 db4 db"
13792 # Save the original values of the flags we tweak.
13793 apu_check_lib_save_libs="$LIBS"
13794 apu_check_lib_save_ldflags="$LDFLAGS"
13795 apu_check_lib_save_cppflags="$CPPFLAGS"
13797 # The variable `found' is the prefix under which we've found
13798 # Berkeley DB, or `not' if we haven't found it anywhere yet.
13800 for bdb_place in $bdb_places; do
13802 LDFLAGS="$apu_check_lib_save_ldflags"
13803 CPPFLAGS="$apu_check_lib_save_cppflags"
13804 case "$bdb_place" in
13806 description="the standard places"
13809 header="`echo $bdb_place | sed -e 's/:.*$//'`"
13810 lib="`echo $bdb_place | sed -e 's/^.*://'`"
13811 CPPFLAGS="$CPPFLAGS -I$header"
13812 LDFLAGS="$LDFLAGS -L$lib"
13813 description="$header and $lib"
13816 if test -d $bdb_place; then
13817 LDFLAGS="$LDFLAGS -L$bdb_place/lib"
13818 CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
13820 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
13821 $as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; }
13822 { $as_echo "$as_me:$LINENO: result: directory not found" >&5
13823 $as_echo "directory not found" >&6; }
13826 description="$bdb_place"
13830 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
13831 # trick to display a message instead.
13832 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
13833 $as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; }
13834 { $as_echo "$as_me:$LINENO: result: " >&5
13837 for bdb_libname in $bdb_default_search_lib_names; do
13838 for bdb_header in $bdb_default_search_headers; do
13839 # Clear the header cache variable for each location
13841 cache_id="`echo ac_cv_header_${bdb_header} \
13842 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
13845 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh`
13846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13847 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
13848 $as_echo_n "checking for $bdb_header... " >&6; }
13849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13850 $as_echo_n "(cached) " >&6
13852 ac_res=`eval 'as_val=${'$as_ac_Header'}
13853 $as_echo "$as_val"'`
13854 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13855 $as_echo "$ac_res" >&6; }
13857 # Is the header compilable?
13858 { $as_echo "$as_me:$LINENO: checking $bdb_header usability" >&5
13859 $as_echo_n "checking $bdb_header usability... " >&6; }
13860 cat >conftest.$ac_ext <<_ACEOF
13863 cat confdefs.h >>conftest.$ac_ext
13864 cat >>conftest.$ac_ext <<_ACEOF
13865 /* end confdefs.h. */
13866 $ac_includes_default
13867 #include <$bdb_header>
13869 rm -f conftest.$ac_objext
13870 if { (ac_try="$ac_compile"
13871 case "(($ac_try" in
13872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13873 *) ac_try_echo=$ac_try;;
13875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13876 $as_echo "$ac_try_echo") >&5
13877 (eval "$ac_compile") 2>conftest.er1
13879 grep -v '^ *+' conftest.er1 >conftest.err
13881 cat conftest.err >&5
13882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883 (exit $ac_status); } && {
13884 test -z "$ac_c_werror_flag" ||
13885 test ! -s conftest.err
13886 } && test -s conftest.$ac_objext; then
13887 ac_header_compiler=yes
13889 $as_echo "$as_me: failed program was:" >&5
13890 sed 's/^/| /' conftest.$ac_ext >&5
13892 ac_header_compiler=no
13895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13896 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13897 $as_echo "$ac_header_compiler" >&6; }
13899 # Is the header present?
13900 { $as_echo "$as_me:$LINENO: checking $bdb_header presence" >&5
13901 $as_echo_n "checking $bdb_header presence... " >&6; }
13902 cat >conftest.$ac_ext <<_ACEOF
13905 cat confdefs.h >>conftest.$ac_ext
13906 cat >>conftest.$ac_ext <<_ACEOF
13907 /* end confdefs.h. */
13908 #include <$bdb_header>
13910 if { (ac_try="$ac_cpp conftest.$ac_ext"
13911 case "(($ac_try" in
13912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13913 *) ac_try_echo=$ac_try;;
13915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13916 $as_echo "$ac_try_echo") >&5
13917 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13919 grep -v '^ *+' conftest.er1 >conftest.err
13921 cat conftest.err >&5
13922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923 (exit $ac_status); } >/dev/null && {
13924 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13925 test ! -s conftest.err
13927 ac_header_preproc=yes
13929 $as_echo "$as_me: failed program was:" >&5
13930 sed 's/^/| /' conftest.$ac_ext >&5
13932 ac_header_preproc=no
13935 rm -f conftest.err conftest.$ac_ext
13936 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13937 $as_echo "$ac_header_preproc" >&6; }
13939 # So? What about this header?
13940 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13942 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
13943 $as_echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13944 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
13945 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
13946 ac_header_preproc=yes
13949 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
13950 $as_echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
13951 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
13952 $as_echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
13953 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
13954 $as_echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
13955 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
13956 $as_echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
13957 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
13958 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
13959 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
13960 $as_echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
13964 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
13965 $as_echo_n "checking for $bdb_header... " >&6; }
13966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13967 $as_echo_n "(cached) " >&6
13969 eval "$as_ac_Header=\$ac_header_preproc"
13971 ac_res=`eval 'as_val=${'$as_ac_Header'}
13972 $as_echo "$as_val"'`
13973 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13974 $as_echo "$ac_res" >&6; }
13977 as_val=`eval 'as_val=${'$as_ac_Header'}
13978 $as_echo "$as_val"'`
13979 if test "x$as_val" = x""yes; then
13981 if test ""4"" = "3" -o ""4"" = "4"; then
13982 # We generate a separate cache variable for each prefix and libname
13983 # we search under. That way, we avoid caching information that
13984 # changes if the user runs `configure' with a different set of
13987 cache_id="`echo apu_cv_check_berkeley_db_"4"_"1"_"-1"_${bdb_header}_${bdb_libname}_in_${bdb_place} \
13988 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
13991 { $as_echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
13992 $as_echo_n "checking for -l$bdb_libname... " >&6; }
13993 if { as_var=$cache_id; eval "test \"\${$as_var+set}\" = set"; }; then
13994 $as_echo_n "(cached) " >&6
13998 apu_try_berkeley_db_save_libs="$LIBS"
14000 apu_check_berkeley_db_major="4"
14001 apu_check_berkeley_db_minor="1"
14002 apu_check_berkeley_db_patch="-1"
14003 apu_try_berkeley_db_header=$bdb_header
14004 apu_try_berkeley_db_libname=$bdb_libname
14006 LIBS="$LIBS -l$apu_try_berkeley_db_libname"
14007 if test "$cross_compiling" = yes; then
14008 apu_try_berkeley_db=yes
14011 cat >conftest.$ac_ext <<_ACEOF
14014 cat confdefs.h >>conftest.$ac_ext
14015 cat >>conftest.$ac_ext <<_ACEOF
14016 /* end confdefs.h. */
14018 #include <stdlib.h>
14020 #include <$apu_try_berkeley_db_header>
14023 int major, minor, patch;
14025 db_version(&major, &minor, &patch);
14027 /* Sanity check: ensure that db.h constants actually match the db library */
14028 if (major != DB_VERSION_MAJOR
14029 || minor != DB_VERSION_MINOR
14030 || patch != DB_VERSION_PATCH)
14033 /* Run-time check: ensure the library claims to be the correct version. */
14035 if ($apu_check_berkeley_db_major != -1) {
14036 if (major < $apu_check_berkeley_db_major)
14038 if (major > $apu_check_berkeley_db_major)
14042 if ($apu_check_berkeley_db_minor != -1) {
14043 if (minor < $apu_check_berkeley_db_minor)
14045 if (minor > $apu_check_berkeley_db_minor)
14049 if ($apu_check_berkeley_db_patch == -1
14050 || patch >= $apu_check_berkeley_db_patch)
14057 rm -f conftest$ac_exeext
14058 if { (ac_try="$ac_link"
14059 case "(($ac_try" in
14060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14061 *) ac_try_echo=$ac_try;;
14063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14064 $as_echo "$ac_try_echo") >&5
14065 (eval "$ac_link") 2>&5
14067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14069 { (case "(($ac_try" in
14070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14071 *) ac_try_echo=$ac_try;;
14073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14074 $as_echo "$ac_try_echo") >&5
14075 (eval "$ac_try") 2>&5
14077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078 (exit $ac_status); }; }; then
14079 apu_try_berkeley_db=yes
14081 $as_echo "$as_me: program exited with status $ac_status" >&5
14082 $as_echo "$as_me: failed program was:" >&5
14083 sed 's/^/| /' conftest.$ac_ext >&5
14085 ( exit $ac_status )
14086 apu_try_berkeley_db=no
14088 rm -rf conftest.dSYM
14089 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14094 LIBS="$apu_try_berkeley_db_save_libs"
14097 eval "$cache_id=$apu_try_berkeley_db"
14101 result="`eval echo '$'$cache_id`"
14102 { $as_echo "$as_me:$LINENO: result: $result" >&5
14103 $as_echo "$result" >&6; }
14104 elif test ""4"" = "1"; then
14105 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
14106 { $as_echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
14107 $as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; }
14108 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
14109 $as_echo_n "(cached) " >&6
14111 ac_check_lib_save_LIBS=$LIBS
14112 LIBS="-l$bdb_libname $LIBS"
14113 cat >conftest.$ac_ext <<_ACEOF
14116 cat confdefs.h >>conftest.$ac_ext
14117 cat >>conftest.$ac_ext <<_ACEOF
14118 /* end confdefs.h. */
14120 /* Override any GCC internal prototype to avoid an error.
14121 Use char because int might match the return type of a GCC
14122 builtin and then its argument prototype would still apply. */
14135 rm -f conftest.$ac_objext conftest$ac_exeext
14136 if { (ac_try="$ac_link"
14137 case "(($ac_try" in
14138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14139 *) ac_try_echo=$ac_try;;
14141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14142 $as_echo "$ac_try_echo") >&5
14143 (eval "$ac_link") 2>conftest.er1
14145 grep -v '^ *+' conftest.er1 >conftest.err
14147 cat conftest.err >&5
14148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149 (exit $ac_status); } && {
14150 test -z "$ac_c_werror_flag" ||
14151 test ! -s conftest.err
14152 } && test -s conftest$ac_exeext && {
14153 test "$cross_compiling" = yes ||
14154 $as_test_x conftest$ac_exeext
14156 eval "$as_ac_Lib=yes"
14158 $as_echo "$as_me: failed program was:" >&5
14159 sed 's/^/| /' conftest.$ac_ext >&5
14161 eval "$as_ac_Lib=no"
14164 rm -rf conftest.dSYM
14165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14166 conftest$ac_exeext conftest.$ac_ext
14167 LIBS=$ac_check_lib_save_LIBS
14169 ac_res=`eval 'as_val=${'$as_ac_Lib'}
14170 $as_echo "$as_val"'`
14171 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14172 $as_echo "$ac_res" >&6; }
14173 as_val=`eval 'as_val=${'$as_ac_Lib'}
14174 $as_echo "$as_val"'`
14175 if test "x$as_val" = x""yes; then
14182 elif test ""4"" = "2"; then
14183 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
14184 { $as_echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
14185 $as_echo_n "checking for db_open in -l$bdb_libname... " >&6; }
14186 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
14187 $as_echo_n "(cached) " >&6
14189 ac_check_lib_save_LIBS=$LIBS
14190 LIBS="-l$bdb_libname $LIBS"
14191 cat >conftest.$ac_ext <<_ACEOF
14194 cat confdefs.h >>conftest.$ac_ext
14195 cat >>conftest.$ac_ext <<_ACEOF
14196 /* end confdefs.h. */
14198 /* Override any GCC internal prototype to avoid an error.
14199 Use char because int might match the return type of a GCC
14200 builtin and then its argument prototype would still apply. */
14213 rm -f conftest.$ac_objext conftest$ac_exeext
14214 if { (ac_try="$ac_link"
14215 case "(($ac_try" in
14216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14217 *) ac_try_echo=$ac_try;;
14219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14220 $as_echo "$ac_try_echo") >&5
14221 (eval "$ac_link") 2>conftest.er1
14223 grep -v '^ *+' conftest.er1 >conftest.err
14225 cat conftest.err >&5
14226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227 (exit $ac_status); } && {
14228 test -z "$ac_c_werror_flag" ||
14229 test ! -s conftest.err
14230 } && test -s conftest$ac_exeext && {
14231 test "$cross_compiling" = yes ||
14232 $as_test_x conftest$ac_exeext
14234 eval "$as_ac_Lib=yes"
14236 $as_echo "$as_me: failed program was:" >&5
14237 sed 's/^/| /' conftest.$ac_ext >&5
14239 eval "$as_ac_Lib=no"
14242 rm -rf conftest.dSYM
14243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14244 conftest$ac_exeext conftest.$ac_ext
14245 LIBS=$ac_check_lib_save_LIBS
14247 ac_res=`eval 'as_val=${'$as_ac_Lib'}
14248 $as_echo "$as_val"'`
14249 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14250 $as_echo "$ac_res" >&6; }
14251 as_val=`eval 'as_val=${'$as_ac_Lib'}
14252 $as_echo "$as_val"'`
14253 if test "x$as_val" = x""yes; then
14268 # If we found it, no need to search any more.
14269 if test "$result" = "yes"; then
14274 test "$found" != "not" && break
14276 test "$found" != "not" && break
14279 # Restore the original values of the flags we tweak.
14280 LDFLAGS="$apu_check_lib_save_ldflags"
14281 CPPFLAGS="$apu_check_lib_save_cppflags"
14288 apu_db_header=$bdb_header
14289 apu_db_lib=$bdb_libname
14293 header="`echo $found | sed -e 's/:.*$//'`"
14294 lib="`echo $found | sed -e 's/^.*://'`"
14297 if test "x$APRUTIL_INCLUDES" = "x"; then
14298 echo " setting APRUTIL_INCLUDES to \"-I$header\""
14299 APRUTIL_INCLUDES="-I$header"
14301 apr_addto_bugger="-I$header"
14302 for i in $apr_addto_bugger; do
14303 apr_addto_duplicate="0"
14304 for j in $APRUTIL_INCLUDES; do
14305 if test "x$i" = "x$j"; then
14306 apr_addto_duplicate="1"
14310 if test $apr_addto_duplicate = "0"; then
14311 echo " adding \"$i\" to APRUTIL_INCLUDES"
14312 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
14318 if test "x$APRUTIL_LDFLAGS" = "x"; then
14319 echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
14320 APRUTIL_LDFLAGS="-L$lib"
14322 apr_addto_bugger="-L$lib"
14323 for i in $apr_addto_bugger; do
14324 apr_addto_duplicate="0"
14325 for j in $APRUTIL_LDFLAGS; do
14326 if test "x$i" = "x$j"; then
14327 apr_addto_duplicate="1"
14331 if test $apr_addto_duplicate = "0"; then
14332 echo " adding \"$i\" to APRUTIL_LDFLAGS"
14333 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
14338 apu_db_header=$bdb_header
14339 apu_db_lib=$bdb_libname
14344 if test "x$APRUTIL_INCLUDES" = "x"; then
14345 echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
14346 APRUTIL_INCLUDES="-I$found/include"
14348 apr_addto_bugger="-I$found/include"
14349 for i in $apr_addto_bugger; do
14350 apr_addto_duplicate="0"
14351 for j in $APRUTIL_INCLUDES; do
14352 if test "x$i" = "x$j"; then
14353 apr_addto_duplicate="1"
14357 if test $apr_addto_duplicate = "0"; then
14358 echo " adding \"$i\" to APRUTIL_INCLUDES"
14359 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
14365 if test "x$APRUTIL_LDFLAGS" = "x"; then
14366 echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
14367 APRUTIL_LDFLAGS="-L$found/lib"
14369 apr_addto_bugger="-L$found/lib"
14370 for i in $apr_addto_bugger; do
14371 apr_addto_duplicate="0"
14372 for j in $APRUTIL_LDFLAGS; do
14373 if test "x$i" = "x$j"; then
14374 apr_addto_duplicate="1"
14378 if test $apr_addto_duplicate = "0"; then
14379 echo " adding \"$i\" to APRUTIL_LDFLAGS"
14380 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
14385 apu_db_header=$bdb_header
14386 apu_db_lib=$bdb_libname
14391 if test "$apu_have_db" = "1"; then
14395 if test "$apu_db_version" != "4"; then
14397 places="$all_places"
14398 if test -z "$places"; then
14399 places="std /usr/local /usr/local/BerkeleyDB.4.0 /boot/home/config"
14403 if test ""0"" != "-1"; then
14404 bdb_version="$bdb_version."0""
14405 if test ""-1"" != "-1"; then
14406 bdb_version="$bdb_version."-1""
14409 bdb_places="$places"
14410 bdb_default_search_headers="db4/db.h db.h"
14411 bdb_default_search_lib_names="db-4.0 db4 db"
14416 # Save the original values of the flags we tweak.
14417 apu_check_lib_save_libs="$LIBS"
14418 apu_check_lib_save_ldflags="$LDFLAGS"
14419 apu_check_lib_save_cppflags="$CPPFLAGS"
14421 # The variable `found' is the prefix under which we've found
14422 # Berkeley DB, or `not' if we haven't found it anywhere yet.
14424 for bdb_place in $bdb_places; do
14426 LDFLAGS="$apu_check_lib_save_ldflags"
14427 CPPFLAGS="$apu_check_lib_save_cppflags"
14428 case "$bdb_place" in
14430 description="the standard places"
14433 header="`echo $bdb_place | sed -e 's/:.*$//'`"
14434 lib="`echo $bdb_place | sed -e 's/^.*://'`"
14435 CPPFLAGS="$CPPFLAGS -I$header"
14436 LDFLAGS="$LDFLAGS -L$lib"
14437 description="$header and $lib"
14440 if test -d $bdb_place; then
14441 LDFLAGS="$LDFLAGS -L$bdb_place/lib"
14442 CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
14444 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
14445 $as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; }
14446 { $as_echo "$as_me:$LINENO: result: directory not found" >&5
14447 $as_echo "directory not found" >&6; }
14450 description="$bdb_place"
14454 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
14455 # trick to display a message instead.
14456 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
14457 $as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; }
14458 { $as_echo "$as_me:$LINENO: result: " >&5
14461 for bdb_libname in $bdb_default_search_lib_names; do
14462 for bdb_header in $bdb_default_search_headers; do
14463 # Clear the header cache variable for each location
14465 cache_id="`echo ac_cv_header_${bdb_header} \
14466 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
14469 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh`
14470 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14471 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
14472 $as_echo_n "checking for $bdb_header... " >&6; }
14473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14474 $as_echo_n "(cached) " >&6
14476 ac_res=`eval 'as_val=${'$as_ac_Header'}
14477 $as_echo "$as_val"'`
14478 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14479 $as_echo "$ac_res" >&6; }
14481 # Is the header compilable?
14482 { $as_echo "$as_me:$LINENO: checking $bdb_header usability" >&5
14483 $as_echo_n "checking $bdb_header usability... " >&6; }
14484 cat >conftest.$ac_ext <<_ACEOF
14487 cat confdefs.h >>conftest.$ac_ext
14488 cat >>conftest.$ac_ext <<_ACEOF
14489 /* end confdefs.h. */
14490 $ac_includes_default
14491 #include <$bdb_header>
14493 rm -f conftest.$ac_objext
14494 if { (ac_try="$ac_compile"
14495 case "(($ac_try" in
14496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14497 *) ac_try_echo=$ac_try;;
14499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14500 $as_echo "$ac_try_echo") >&5
14501 (eval "$ac_compile") 2>conftest.er1
14503 grep -v '^ *+' conftest.er1 >conftest.err
14505 cat conftest.err >&5
14506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14507 (exit $ac_status); } && {
14508 test -z "$ac_c_werror_flag" ||
14509 test ! -s conftest.err
14510 } && test -s conftest.$ac_objext; then
14511 ac_header_compiler=yes
14513 $as_echo "$as_me: failed program was:" >&5
14514 sed 's/^/| /' conftest.$ac_ext >&5
14516 ac_header_compiler=no
14519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14520 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14521 $as_echo "$ac_header_compiler" >&6; }
14523 # Is the header present?
14524 { $as_echo "$as_me:$LINENO: checking $bdb_header presence" >&5
14525 $as_echo_n "checking $bdb_header presence... " >&6; }
14526 cat >conftest.$ac_ext <<_ACEOF
14529 cat confdefs.h >>conftest.$ac_ext
14530 cat >>conftest.$ac_ext <<_ACEOF
14531 /* end confdefs.h. */
14532 #include <$bdb_header>
14534 if { (ac_try="$ac_cpp conftest.$ac_ext"
14535 case "(($ac_try" in
14536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14537 *) ac_try_echo=$ac_try;;
14539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14540 $as_echo "$ac_try_echo") >&5
14541 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14543 grep -v '^ *+' conftest.er1 >conftest.err
14545 cat conftest.err >&5
14546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547 (exit $ac_status); } >/dev/null && {
14548 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14549 test ! -s conftest.err
14551 ac_header_preproc=yes
14553 $as_echo "$as_me: failed program was:" >&5
14554 sed 's/^/| /' conftest.$ac_ext >&5
14556 ac_header_preproc=no
14559 rm -f conftest.err conftest.$ac_ext
14560 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14561 $as_echo "$ac_header_preproc" >&6; }
14563 # So? What about this header?
14564 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14566 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
14567 $as_echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14568 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
14569 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
14570 ac_header_preproc=yes
14573 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
14574 $as_echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
14575 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
14576 $as_echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
14577 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
14578 $as_echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
14579 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
14580 $as_echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
14581 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
14582 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
14583 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
14584 $as_echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
14588 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
14589 $as_echo_n "checking for $bdb_header... " >&6; }
14590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14591 $as_echo_n "(cached) " >&6
14593 eval "$as_ac_Header=\$ac_header_preproc"
14595 ac_res=`eval 'as_val=${'$as_ac_Header'}
14596 $as_echo "$as_val"'`
14597 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14598 $as_echo "$ac_res" >&6; }
14601 as_val=`eval 'as_val=${'$as_ac_Header'}
14602 $as_echo "$as_val"'`
14603 if test "x$as_val" = x""yes; then
14605 if test ""4"" = "3" -o ""4"" = "4"; then
14606 # We generate a separate cache variable for each prefix and libname
14607 # we search under. That way, we avoid caching information that
14608 # changes if the user runs `configure' with a different set of
14611 cache_id="`echo apu_cv_check_berkeley_db_"4"_"0"_"-1"_${bdb_header}_${bdb_libname}_in_${bdb_place} \
14612 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
14615 { $as_echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
14616 $as_echo_n "checking for -l$bdb_libname... " >&6; }
14617 if { as_var=$cache_id; eval "test \"\${$as_var+set}\" = set"; }; then
14618 $as_echo_n "(cached) " >&6
14622 apu_try_berkeley_db_save_libs="$LIBS"
14624 apu_check_berkeley_db_major="4"
14625 apu_check_berkeley_db_minor="0"
14626 apu_check_berkeley_db_patch="-1"
14627 apu_try_berkeley_db_header=$bdb_header
14628 apu_try_berkeley_db_libname=$bdb_libname
14630 LIBS="$LIBS -l$apu_try_berkeley_db_libname"
14631 if test "$cross_compiling" = yes; then
14632 apu_try_berkeley_db=yes
14635 cat >conftest.$ac_ext <<_ACEOF
14638 cat confdefs.h >>conftest.$ac_ext
14639 cat >>conftest.$ac_ext <<_ACEOF
14640 /* end confdefs.h. */
14642 #include <stdlib.h>
14644 #include <$apu_try_berkeley_db_header>
14647 int major, minor, patch;
14649 db_version(&major, &minor, &patch);
14651 /* Sanity check: ensure that db.h constants actually match the db library */
14652 if (major != DB_VERSION_MAJOR
14653 || minor != DB_VERSION_MINOR
14654 || patch != DB_VERSION_PATCH)
14657 /* Run-time check: ensure the library claims to be the correct version. */
14659 if ($apu_check_berkeley_db_major != -1) {
14660 if (major < $apu_check_berkeley_db_major)
14662 if (major > $apu_check_berkeley_db_major)
14666 if ($apu_check_berkeley_db_minor != -1) {
14667 if (minor < $apu_check_berkeley_db_minor)
14669 if (minor > $apu_check_berkeley_db_minor)
14673 if ($apu_check_berkeley_db_patch == -1
14674 || patch >= $apu_check_berkeley_db_patch)
14681 rm -f conftest$ac_exeext
14682 if { (ac_try="$ac_link"
14683 case "(($ac_try" in
14684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14685 *) ac_try_echo=$ac_try;;
14687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14688 $as_echo "$ac_try_echo") >&5
14689 (eval "$ac_link") 2>&5
14691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14693 { (case "(($ac_try" in
14694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14695 *) ac_try_echo=$ac_try;;
14697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14698 $as_echo "$ac_try_echo") >&5
14699 (eval "$ac_try") 2>&5
14701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14702 (exit $ac_status); }; }; then
14703 apu_try_berkeley_db=yes
14705 $as_echo "$as_me: program exited with status $ac_status" >&5
14706 $as_echo "$as_me: failed program was:" >&5
14707 sed 's/^/| /' conftest.$ac_ext >&5
14709 ( exit $ac_status )
14710 apu_try_berkeley_db=no
14712 rm -rf conftest.dSYM
14713 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14718 LIBS="$apu_try_berkeley_db_save_libs"
14721 eval "$cache_id=$apu_try_berkeley_db"
14725 result="`eval echo '$'$cache_id`"
14726 { $as_echo "$as_me:$LINENO: result: $result" >&5
14727 $as_echo "$result" >&6; }
14728 elif test ""4"" = "1"; then
14729 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
14730 { $as_echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
14731 $as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; }
14732 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
14733 $as_echo_n "(cached) " >&6
14735 ac_check_lib_save_LIBS=$LIBS
14736 LIBS="-l$bdb_libname $LIBS"
14737 cat >conftest.$ac_ext <<_ACEOF
14740 cat confdefs.h >>conftest.$ac_ext
14741 cat >>conftest.$ac_ext <<_ACEOF
14742 /* end confdefs.h. */
14744 /* Override any GCC internal prototype to avoid an error.
14745 Use char because int might match the return type of a GCC
14746 builtin and then its argument prototype would still apply. */
14759 rm -f conftest.$ac_objext conftest$ac_exeext
14760 if { (ac_try="$ac_link"
14761 case "(($ac_try" in
14762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14763 *) ac_try_echo=$ac_try;;
14765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14766 $as_echo "$ac_try_echo") >&5
14767 (eval "$ac_link") 2>conftest.er1
14769 grep -v '^ *+' conftest.er1 >conftest.err
14771 cat conftest.err >&5
14772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773 (exit $ac_status); } && {
14774 test -z "$ac_c_werror_flag" ||
14775 test ! -s conftest.err
14776 } && test -s conftest$ac_exeext && {
14777 test "$cross_compiling" = yes ||
14778 $as_test_x conftest$ac_exeext
14780 eval "$as_ac_Lib=yes"
14782 $as_echo "$as_me: failed program was:" >&5
14783 sed 's/^/| /' conftest.$ac_ext >&5
14785 eval "$as_ac_Lib=no"
14788 rm -rf conftest.dSYM
14789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14790 conftest$ac_exeext conftest.$ac_ext
14791 LIBS=$ac_check_lib_save_LIBS
14793 ac_res=`eval 'as_val=${'$as_ac_Lib'}
14794 $as_echo "$as_val"'`
14795 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14796 $as_echo "$ac_res" >&6; }
14797 as_val=`eval 'as_val=${'$as_ac_Lib'}
14798 $as_echo "$as_val"'`
14799 if test "x$as_val" = x""yes; then
14806 elif test ""4"" = "2"; then
14807 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
14808 { $as_echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
14809 $as_echo_n "checking for db_open in -l$bdb_libname... " >&6; }
14810 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
14811 $as_echo_n "(cached) " >&6
14813 ac_check_lib_save_LIBS=$LIBS
14814 LIBS="-l$bdb_libname $LIBS"
14815 cat >conftest.$ac_ext <<_ACEOF
14818 cat confdefs.h >>conftest.$ac_ext
14819 cat >>conftest.$ac_ext <<_ACEOF
14820 /* end confdefs.h. */
14822 /* Override any GCC internal prototype to avoid an error.
14823 Use char because int might match the return type of a GCC
14824 builtin and then its argument prototype would still apply. */
14837 rm -f conftest.$ac_objext conftest$ac_exeext
14838 if { (ac_try="$ac_link"
14839 case "(($ac_try" in
14840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14841 *) ac_try_echo=$ac_try;;
14843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14844 $as_echo "$ac_try_echo") >&5
14845 (eval "$ac_link") 2>conftest.er1
14847 grep -v '^ *+' conftest.er1 >conftest.err
14849 cat conftest.err >&5
14850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851 (exit $ac_status); } && {
14852 test -z "$ac_c_werror_flag" ||
14853 test ! -s conftest.err
14854 } && test -s conftest$ac_exeext && {
14855 test "$cross_compiling" = yes ||
14856 $as_test_x conftest$ac_exeext
14858 eval "$as_ac_Lib=yes"
14860 $as_echo "$as_me: failed program was:" >&5
14861 sed 's/^/| /' conftest.$ac_ext >&5
14863 eval "$as_ac_Lib=no"
14866 rm -rf conftest.dSYM
14867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14868 conftest$ac_exeext conftest.$ac_ext
14869 LIBS=$ac_check_lib_save_LIBS
14871 ac_res=`eval 'as_val=${'$as_ac_Lib'}
14872 $as_echo "$as_val"'`
14873 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14874 $as_echo "$ac_res" >&6; }
14875 as_val=`eval 'as_val=${'$as_ac_Lib'}
14876 $as_echo "$as_val"'`
14877 if test "x$as_val" = x""yes; then
14892 # If we found it, no need to search any more.
14893 if test "$result" = "yes"; then
14898 test "$found" != "not" && break
14900 test "$found" != "not" && break
14903 # Restore the original values of the flags we tweak.
14904 LDFLAGS="$apu_check_lib_save_ldflags"
14905 CPPFLAGS="$apu_check_lib_save_cppflags"
14912 apu_db_header=$bdb_header
14913 apu_db_lib=$bdb_libname
14917 header="`echo $found | sed -e 's/:.*$//'`"
14918 lib="`echo $found | sed -e 's/^.*://'`"
14921 if test "x$APRUTIL_INCLUDES" = "x"; then
14922 echo " setting APRUTIL_INCLUDES to \"-I$header\""
14923 APRUTIL_INCLUDES="-I$header"
14925 apr_addto_bugger="-I$header"
14926 for i in $apr_addto_bugger; do
14927 apr_addto_duplicate="0"
14928 for j in $APRUTIL_INCLUDES; do
14929 if test "x$i" = "x$j"; then
14930 apr_addto_duplicate="1"
14934 if test $apr_addto_duplicate = "0"; then
14935 echo " adding \"$i\" to APRUTIL_INCLUDES"
14936 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
14942 if test "x$APRUTIL_LDFLAGS" = "x"; then
14943 echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
14944 APRUTIL_LDFLAGS="-L$lib"
14946 apr_addto_bugger="-L$lib"
14947 for i in $apr_addto_bugger; do
14948 apr_addto_duplicate="0"
14949 for j in $APRUTIL_LDFLAGS; do
14950 if test "x$i" = "x$j"; then
14951 apr_addto_duplicate="1"
14955 if test $apr_addto_duplicate = "0"; then
14956 echo " adding \"$i\" to APRUTIL_LDFLAGS"
14957 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
14962 apu_db_header=$bdb_header
14963 apu_db_lib=$bdb_libname
14968 if test "x$APRUTIL_INCLUDES" = "x"; then
14969 echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
14970 APRUTIL_INCLUDES="-I$found/include"
14972 apr_addto_bugger="-I$found/include"
14973 for i in $apr_addto_bugger; do
14974 apr_addto_duplicate="0"
14975 for j in $APRUTIL_INCLUDES; do
14976 if test "x$i" = "x$j"; then
14977 apr_addto_duplicate="1"
14981 if test $apr_addto_duplicate = "0"; then
14982 echo " adding \"$i\" to APRUTIL_INCLUDES"
14983 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
14989 if test "x$APRUTIL_LDFLAGS" = "x"; then
14990 echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
14991 APRUTIL_LDFLAGS="-L$found/lib"
14993 apr_addto_bugger="-L$found/lib"
14994 for i in $apr_addto_bugger; do
14995 apr_addto_duplicate="0"
14996 for j in $APRUTIL_LDFLAGS; do
14997 if test "x$i" = "x$j"; then
14998 apr_addto_duplicate="1"
15002 if test $apr_addto_duplicate = "0"; then
15003 echo " adding \"$i\" to APRUTIL_LDFLAGS"
15004 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
15009 apu_db_header=$bdb_header
15010 apu_db_lib=$bdb_libname
15015 if test "$apu_have_db" = "1"; then
15019 if test "$apu_db_version" != "4"; then
15021 places="$all_places"
15022 if test -z "$places"; then
15027 if test "-1" != "-1"; then
15028 bdb_version="$bdb_version.-1"
15029 if test "-1" != "-1"; then
15030 bdb_version="$bdb_version.-1"
15033 bdb_places="$places"
15034 bdb_default_search_headers="db3/db.h db.h"
15035 bdb_default_search_lib_names="db3 db"
15040 # Save the original values of the flags we tweak.
15041 apu_check_lib_save_libs="$LIBS"
15042 apu_check_lib_save_ldflags="$LDFLAGS"
15043 apu_check_lib_save_cppflags="$CPPFLAGS"
15045 # The variable `found' is the prefix under which we've found
15046 # Berkeley DB, or `not' if we haven't found it anywhere yet.
15048 for bdb_place in $bdb_places; do
15050 LDFLAGS="$apu_check_lib_save_ldflags"
15051 CPPFLAGS="$apu_check_lib_save_cppflags"
15052 case "$bdb_place" in
15054 description="the standard places"
15057 header="`echo $bdb_place | sed -e 's/:.*$//'`"
15058 lib="`echo $bdb_place | sed -e 's/^.*://'`"
15059 CPPFLAGS="$CPPFLAGS -I$header"
15060 LDFLAGS="$LDFLAGS -L$lib"
15061 description="$header and $lib"
15064 if test -d $bdb_place; then
15065 LDFLAGS="$LDFLAGS -L$bdb_place/lib"
15066 CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
15068 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
15069 $as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; }
15070 { $as_echo "$as_me:$LINENO: result: directory not found" >&5
15071 $as_echo "directory not found" >&6; }
15074 description="$bdb_place"
15078 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
15079 # trick to display a message instead.
15080 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
15081 $as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; }
15082 { $as_echo "$as_me:$LINENO: result: " >&5
15085 for bdb_libname in $bdb_default_search_lib_names; do
15086 for bdb_header in $bdb_default_search_headers; do
15087 # Clear the header cache variable for each location
15089 cache_id="`echo ac_cv_header_${bdb_header} \
15090 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
15093 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh`
15094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15095 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
15096 $as_echo_n "checking for $bdb_header... " >&6; }
15097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15098 $as_echo_n "(cached) " >&6
15100 ac_res=`eval 'as_val=${'$as_ac_Header'}
15101 $as_echo "$as_val"'`
15102 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15103 $as_echo "$ac_res" >&6; }
15105 # Is the header compilable?
15106 { $as_echo "$as_me:$LINENO: checking $bdb_header usability" >&5
15107 $as_echo_n "checking $bdb_header usability... " >&6; }
15108 cat >conftest.$ac_ext <<_ACEOF
15111 cat confdefs.h >>conftest.$ac_ext
15112 cat >>conftest.$ac_ext <<_ACEOF
15113 /* end confdefs.h. */
15114 $ac_includes_default
15115 #include <$bdb_header>
15117 rm -f conftest.$ac_objext
15118 if { (ac_try="$ac_compile"
15119 case "(($ac_try" in
15120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15121 *) ac_try_echo=$ac_try;;
15123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15124 $as_echo "$ac_try_echo") >&5
15125 (eval "$ac_compile") 2>conftest.er1
15127 grep -v '^ *+' conftest.er1 >conftest.err
15129 cat conftest.err >&5
15130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131 (exit $ac_status); } && {
15132 test -z "$ac_c_werror_flag" ||
15133 test ! -s conftest.err
15134 } && test -s conftest.$ac_objext; then
15135 ac_header_compiler=yes
15137 $as_echo "$as_me: failed program was:" >&5
15138 sed 's/^/| /' conftest.$ac_ext >&5
15140 ac_header_compiler=no
15143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15144 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15145 $as_echo "$ac_header_compiler" >&6; }
15147 # Is the header present?
15148 { $as_echo "$as_me:$LINENO: checking $bdb_header presence" >&5
15149 $as_echo_n "checking $bdb_header presence... " >&6; }
15150 cat >conftest.$ac_ext <<_ACEOF
15153 cat confdefs.h >>conftest.$ac_ext
15154 cat >>conftest.$ac_ext <<_ACEOF
15155 /* end confdefs.h. */
15156 #include <$bdb_header>
15158 if { (ac_try="$ac_cpp conftest.$ac_ext"
15159 case "(($ac_try" in
15160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15161 *) ac_try_echo=$ac_try;;
15163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15164 $as_echo "$ac_try_echo") >&5
15165 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15167 grep -v '^ *+' conftest.er1 >conftest.err
15169 cat conftest.err >&5
15170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15171 (exit $ac_status); } >/dev/null && {
15172 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15173 test ! -s conftest.err
15175 ac_header_preproc=yes
15177 $as_echo "$as_me: failed program was:" >&5
15178 sed 's/^/| /' conftest.$ac_ext >&5
15180 ac_header_preproc=no
15183 rm -f conftest.err conftest.$ac_ext
15184 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15185 $as_echo "$ac_header_preproc" >&6; }
15187 # So? What about this header?
15188 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15190 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
15191 $as_echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15192 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
15193 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
15194 ac_header_preproc=yes
15197 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
15198 $as_echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
15199 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
15200 $as_echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
15201 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
15202 $as_echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
15203 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
15204 $as_echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
15205 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
15206 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
15207 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
15208 $as_echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
15212 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
15213 $as_echo_n "checking for $bdb_header... " >&6; }
15214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15215 $as_echo_n "(cached) " >&6
15217 eval "$as_ac_Header=\$ac_header_preproc"
15219 ac_res=`eval 'as_val=${'$as_ac_Header'}
15220 $as_echo "$as_val"'`
15221 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15222 $as_echo "$ac_res" >&6; }
15225 as_val=`eval 'as_val=${'$as_ac_Header'}
15226 $as_echo "$as_val"'`
15227 if test "x$as_val" = x""yes; then
15229 if test "3" = "3" -o "3" = "4"; then
15230 # We generate a separate cache variable for each prefix and libname
15231 # we search under. That way, we avoid caching information that
15232 # changes if the user runs `configure' with a different set of
15235 cache_id="`echo apu_cv_check_berkeley_db_3_-1_-1_${bdb_header}_${bdb_libname}_in_${bdb_place} \
15236 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
15239 { $as_echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
15240 $as_echo_n "checking for -l$bdb_libname... " >&6; }
15241 if { as_var=$cache_id; eval "test \"\${$as_var+set}\" = set"; }; then
15242 $as_echo_n "(cached) " >&6
15246 apu_try_berkeley_db_save_libs="$LIBS"
15248 apu_check_berkeley_db_major=3
15249 apu_check_berkeley_db_minor=-1
15250 apu_check_berkeley_db_patch=-1
15251 apu_try_berkeley_db_header=$bdb_header
15252 apu_try_berkeley_db_libname=$bdb_libname
15254 LIBS="$LIBS -l$apu_try_berkeley_db_libname"
15255 if test "$cross_compiling" = yes; then
15256 apu_try_berkeley_db=yes
15259 cat >conftest.$ac_ext <<_ACEOF
15262 cat confdefs.h >>conftest.$ac_ext
15263 cat >>conftest.$ac_ext <<_ACEOF
15264 /* end confdefs.h. */
15266 #include <stdlib.h>
15268 #include <$apu_try_berkeley_db_header>
15271 int major, minor, patch;
15273 db_version(&major, &minor, &patch);
15275 /* Sanity check: ensure that db.h constants actually match the db library */
15276 if (major != DB_VERSION_MAJOR
15277 || minor != DB_VERSION_MINOR
15278 || patch != DB_VERSION_PATCH)
15281 /* Run-time check: ensure the library claims to be the correct version. */
15283 if ($apu_check_berkeley_db_major != -1) {
15284 if (major < $apu_check_berkeley_db_major)
15286 if (major > $apu_check_berkeley_db_major)
15290 if ($apu_check_berkeley_db_minor != -1) {
15291 if (minor < $apu_check_berkeley_db_minor)
15293 if (minor > $apu_check_berkeley_db_minor)
15297 if ($apu_check_berkeley_db_patch == -1
15298 || patch >= $apu_check_berkeley_db_patch)
15305 rm -f conftest$ac_exeext
15306 if { (ac_try="$ac_link"
15307 case "(($ac_try" in
15308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15309 *) ac_try_echo=$ac_try;;
15311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15312 $as_echo "$ac_try_echo") >&5
15313 (eval "$ac_link") 2>&5
15315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15316 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15317 { (case "(($ac_try" in
15318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15319 *) ac_try_echo=$ac_try;;
15321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15322 $as_echo "$ac_try_echo") >&5
15323 (eval "$ac_try") 2>&5
15325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326 (exit $ac_status); }; }; then
15327 apu_try_berkeley_db=yes
15329 $as_echo "$as_me: program exited with status $ac_status" >&5
15330 $as_echo "$as_me: failed program was:" >&5
15331 sed 's/^/| /' conftest.$ac_ext >&5
15333 ( exit $ac_status )
15334 apu_try_berkeley_db=no
15336 rm -rf conftest.dSYM
15337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15342 LIBS="$apu_try_berkeley_db_save_libs"
15345 eval "$cache_id=$apu_try_berkeley_db"
15349 result="`eval echo '$'$cache_id`"
15350 { $as_echo "$as_me:$LINENO: result: $result" >&5
15351 $as_echo "$result" >&6; }
15352 elif test "3" = "1"; then
15353 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
15354 { $as_echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
15355 $as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; }
15356 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
15357 $as_echo_n "(cached) " >&6
15359 ac_check_lib_save_LIBS=$LIBS
15360 LIBS="-l$bdb_libname $LIBS"
15361 cat >conftest.$ac_ext <<_ACEOF
15364 cat confdefs.h >>conftest.$ac_ext
15365 cat >>conftest.$ac_ext <<_ACEOF
15366 /* end confdefs.h. */
15368 /* Override any GCC internal prototype to avoid an error.
15369 Use char because int might match the return type of a GCC
15370 builtin and then its argument prototype would still apply. */
15383 rm -f conftest.$ac_objext conftest$ac_exeext
15384 if { (ac_try="$ac_link"
15385 case "(($ac_try" in
15386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15387 *) ac_try_echo=$ac_try;;
15389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15390 $as_echo "$ac_try_echo") >&5
15391 (eval "$ac_link") 2>conftest.er1
15393 grep -v '^ *+' conftest.er1 >conftest.err
15395 cat conftest.err >&5
15396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397 (exit $ac_status); } && {
15398 test -z "$ac_c_werror_flag" ||
15399 test ! -s conftest.err
15400 } && test -s conftest$ac_exeext && {
15401 test "$cross_compiling" = yes ||
15402 $as_test_x conftest$ac_exeext
15404 eval "$as_ac_Lib=yes"
15406 $as_echo "$as_me: failed program was:" >&5
15407 sed 's/^/| /' conftest.$ac_ext >&5
15409 eval "$as_ac_Lib=no"
15412 rm -rf conftest.dSYM
15413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15414 conftest$ac_exeext conftest.$ac_ext
15415 LIBS=$ac_check_lib_save_LIBS
15417 ac_res=`eval 'as_val=${'$as_ac_Lib'}
15418 $as_echo "$as_val"'`
15419 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15420 $as_echo "$ac_res" >&6; }
15421 as_val=`eval 'as_val=${'$as_ac_Lib'}
15422 $as_echo "$as_val"'`
15423 if test "x$as_val" = x""yes; then
15430 elif test "3" = "2"; then
15431 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
15432 { $as_echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
15433 $as_echo_n "checking for db_open in -l$bdb_libname... " >&6; }
15434 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
15435 $as_echo_n "(cached) " >&6
15437 ac_check_lib_save_LIBS=$LIBS
15438 LIBS="-l$bdb_libname $LIBS"
15439 cat >conftest.$ac_ext <<_ACEOF
15442 cat confdefs.h >>conftest.$ac_ext
15443 cat >>conftest.$ac_ext <<_ACEOF
15444 /* end confdefs.h. */
15446 /* Override any GCC internal prototype to avoid an error.
15447 Use char because int might match the return type of a GCC
15448 builtin and then its argument prototype would still apply. */
15461 rm -f conftest.$ac_objext conftest$ac_exeext
15462 if { (ac_try="$ac_link"
15463 case "(($ac_try" in
15464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15465 *) ac_try_echo=$ac_try;;
15467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15468 $as_echo "$ac_try_echo") >&5
15469 (eval "$ac_link") 2>conftest.er1
15471 grep -v '^ *+' conftest.er1 >conftest.err
15473 cat conftest.err >&5
15474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475 (exit $ac_status); } && {
15476 test -z "$ac_c_werror_flag" ||
15477 test ! -s conftest.err
15478 } && test -s conftest$ac_exeext && {
15479 test "$cross_compiling" = yes ||
15480 $as_test_x conftest$ac_exeext
15482 eval "$as_ac_Lib=yes"
15484 $as_echo "$as_me: failed program was:" >&5
15485 sed 's/^/| /' conftest.$ac_ext >&5
15487 eval "$as_ac_Lib=no"
15490 rm -rf conftest.dSYM
15491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15492 conftest$ac_exeext conftest.$ac_ext
15493 LIBS=$ac_check_lib_save_LIBS
15495 ac_res=`eval 'as_val=${'$as_ac_Lib'}
15496 $as_echo "$as_val"'`
15497 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15498 $as_echo "$ac_res" >&6; }
15499 as_val=`eval 'as_val=${'$as_ac_Lib'}
15500 $as_echo "$as_val"'`
15501 if test "x$as_val" = x""yes; then
15516 # If we found it, no need to search any more.
15517 if test "$result" = "yes"; then
15522 test "$found" != "not" && break
15524 test "$found" != "not" && break
15527 # Restore the original values of the flags we tweak.
15528 LDFLAGS="$apu_check_lib_save_ldflags"
15529 CPPFLAGS="$apu_check_lib_save_cppflags"
15536 apu_db_header=$bdb_header
15537 apu_db_lib=$bdb_libname
15541 header="`echo $found | sed -e 's/:.*$//'`"
15542 lib="`echo $found | sed -e 's/^.*://'`"
15545 if test "x$APRUTIL_INCLUDES" = "x"; then
15546 echo " setting APRUTIL_INCLUDES to \"-I$header\""
15547 APRUTIL_INCLUDES="-I$header"
15549 apr_addto_bugger="-I$header"
15550 for i in $apr_addto_bugger; do
15551 apr_addto_duplicate="0"
15552 for j in $APRUTIL_INCLUDES; do
15553 if test "x$i" = "x$j"; then
15554 apr_addto_duplicate="1"
15558 if test $apr_addto_duplicate = "0"; then
15559 echo " adding \"$i\" to APRUTIL_INCLUDES"
15560 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
15566 if test "x$APRUTIL_LDFLAGS" = "x"; then
15567 echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
15568 APRUTIL_LDFLAGS="-L$lib"
15570 apr_addto_bugger="-L$lib"
15571 for i in $apr_addto_bugger; do
15572 apr_addto_duplicate="0"
15573 for j in $APRUTIL_LDFLAGS; do
15574 if test "x$i" = "x$j"; then
15575 apr_addto_duplicate="1"
15579 if test $apr_addto_duplicate = "0"; then
15580 echo " adding \"$i\" to APRUTIL_LDFLAGS"
15581 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
15586 apu_db_header=$bdb_header
15587 apu_db_lib=$bdb_libname
15592 if test "x$APRUTIL_INCLUDES" = "x"; then
15593 echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
15594 APRUTIL_INCLUDES="-I$found/include"
15596 apr_addto_bugger="-I$found/include"
15597 for i in $apr_addto_bugger; do
15598 apr_addto_duplicate="0"
15599 for j in $APRUTIL_INCLUDES; do
15600 if test "x$i" = "x$j"; then
15601 apr_addto_duplicate="1"
15605 if test $apr_addto_duplicate = "0"; then
15606 echo " adding \"$i\" to APRUTIL_INCLUDES"
15607 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
15613 if test "x$APRUTIL_LDFLAGS" = "x"; then
15614 echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
15615 APRUTIL_LDFLAGS="-L$found/lib"
15617 apr_addto_bugger="-L$found/lib"
15618 for i in $apr_addto_bugger; do
15619 apr_addto_duplicate="0"
15620 for j in $APRUTIL_LDFLAGS; do
15621 if test "x$i" = "x$j"; then
15622 apr_addto_duplicate="1"
15626 if test $apr_addto_duplicate = "0"; then
15627 echo " adding \"$i\" to APRUTIL_LDFLAGS"
15628 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
15633 apu_db_header=$bdb_header
15634 apu_db_lib=$bdb_libname
15639 if test "$apu_have_db" = "1"; then
15643 if test "$apu_db_version" != "3"; then
15645 places="$all_places"
15646 if test -z "$places"; then
15651 if test "-1" != "-1"; then
15652 bdb_version="$bdb_version.-1"
15653 if test "-1" != "-1"; then
15654 bdb_version="$bdb_version.-1"
15657 bdb_places="$places"
15658 bdb_default_search_headers="db2/db.h db.h"
15659 bdb_default_search_lib_names="db2 db"
15664 # Save the original values of the flags we tweak.
15665 apu_check_lib_save_libs="$LIBS"
15666 apu_check_lib_save_ldflags="$LDFLAGS"
15667 apu_check_lib_save_cppflags="$CPPFLAGS"
15669 # The variable `found' is the prefix under which we've found
15670 # Berkeley DB, or `not' if we haven't found it anywhere yet.
15672 for bdb_place in $bdb_places; do
15674 LDFLAGS="$apu_check_lib_save_ldflags"
15675 CPPFLAGS="$apu_check_lib_save_cppflags"
15676 case "$bdb_place" in
15678 description="the standard places"
15681 header="`echo $bdb_place | sed -e 's/:.*$//'`"
15682 lib="`echo $bdb_place | sed -e 's/^.*://'`"
15683 CPPFLAGS="$CPPFLAGS -I$header"
15684 LDFLAGS="$LDFLAGS -L$lib"
15685 description="$header and $lib"
15688 if test -d $bdb_place; then
15689 LDFLAGS="$LDFLAGS -L$bdb_place/lib"
15690 CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
15692 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
15693 $as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; }
15694 { $as_echo "$as_me:$LINENO: result: directory not found" >&5
15695 $as_echo "directory not found" >&6; }
15698 description="$bdb_place"
15702 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
15703 # trick to display a message instead.
15704 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
15705 $as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; }
15706 { $as_echo "$as_me:$LINENO: result: " >&5
15709 for bdb_libname in $bdb_default_search_lib_names; do
15710 for bdb_header in $bdb_default_search_headers; do
15711 # Clear the header cache variable for each location
15713 cache_id="`echo ac_cv_header_${bdb_header} \
15714 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
15717 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh`
15718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15719 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
15720 $as_echo_n "checking for $bdb_header... " >&6; }
15721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15722 $as_echo_n "(cached) " >&6
15724 ac_res=`eval 'as_val=${'$as_ac_Header'}
15725 $as_echo "$as_val"'`
15726 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15727 $as_echo "$ac_res" >&6; }
15729 # Is the header compilable?
15730 { $as_echo "$as_me:$LINENO: checking $bdb_header usability" >&5
15731 $as_echo_n "checking $bdb_header usability... " >&6; }
15732 cat >conftest.$ac_ext <<_ACEOF
15735 cat confdefs.h >>conftest.$ac_ext
15736 cat >>conftest.$ac_ext <<_ACEOF
15737 /* end confdefs.h. */
15738 $ac_includes_default
15739 #include <$bdb_header>
15741 rm -f conftest.$ac_objext
15742 if { (ac_try="$ac_compile"
15743 case "(($ac_try" in
15744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15745 *) ac_try_echo=$ac_try;;
15747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15748 $as_echo "$ac_try_echo") >&5
15749 (eval "$ac_compile") 2>conftest.er1
15751 grep -v '^ *+' conftest.er1 >conftest.err
15753 cat conftest.err >&5
15754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755 (exit $ac_status); } && {
15756 test -z "$ac_c_werror_flag" ||
15757 test ! -s conftest.err
15758 } && test -s conftest.$ac_objext; then
15759 ac_header_compiler=yes
15761 $as_echo "$as_me: failed program was:" >&5
15762 sed 's/^/| /' conftest.$ac_ext >&5
15764 ac_header_compiler=no
15767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15768 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15769 $as_echo "$ac_header_compiler" >&6; }
15771 # Is the header present?
15772 { $as_echo "$as_me:$LINENO: checking $bdb_header presence" >&5
15773 $as_echo_n "checking $bdb_header presence... " >&6; }
15774 cat >conftest.$ac_ext <<_ACEOF
15777 cat confdefs.h >>conftest.$ac_ext
15778 cat >>conftest.$ac_ext <<_ACEOF
15779 /* end confdefs.h. */
15780 #include <$bdb_header>
15782 if { (ac_try="$ac_cpp conftest.$ac_ext"
15783 case "(($ac_try" in
15784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15785 *) ac_try_echo=$ac_try;;
15787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15788 $as_echo "$ac_try_echo") >&5
15789 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15791 grep -v '^ *+' conftest.er1 >conftest.err
15793 cat conftest.err >&5
15794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795 (exit $ac_status); } >/dev/null && {
15796 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15797 test ! -s conftest.err
15799 ac_header_preproc=yes
15801 $as_echo "$as_me: failed program was:" >&5
15802 sed 's/^/| /' conftest.$ac_ext >&5
15804 ac_header_preproc=no
15807 rm -f conftest.err conftest.$ac_ext
15808 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15809 $as_echo "$ac_header_preproc" >&6; }
15811 # So? What about this header?
15812 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15814 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
15815 $as_echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15816 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
15817 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
15818 ac_header_preproc=yes
15821 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
15822 $as_echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
15823 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
15824 $as_echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
15825 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
15826 $as_echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
15827 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
15828 $as_echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
15829 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
15830 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
15831 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
15832 $as_echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
15836 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
15837 $as_echo_n "checking for $bdb_header... " >&6; }
15838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15839 $as_echo_n "(cached) " >&6
15841 eval "$as_ac_Header=\$ac_header_preproc"
15843 ac_res=`eval 'as_val=${'$as_ac_Header'}
15844 $as_echo "$as_val"'`
15845 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15846 $as_echo "$ac_res" >&6; }
15849 as_val=`eval 'as_val=${'$as_ac_Header'}
15850 $as_echo "$as_val"'`
15851 if test "x$as_val" = x""yes; then
15853 if test "2" = "3" -o "2" = "4"; then
15854 # We generate a separate cache variable for each prefix and libname
15855 # we search under. That way, we avoid caching information that
15856 # changes if the user runs `configure' with a different set of
15859 cache_id="`echo apu_cv_check_berkeley_db_2_-1_-1_${bdb_header}_${bdb_libname}_in_${bdb_place} \
15860 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
15863 { $as_echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
15864 $as_echo_n "checking for -l$bdb_libname... " >&6; }
15865 if { as_var=$cache_id; eval "test \"\${$as_var+set}\" = set"; }; then
15866 $as_echo_n "(cached) " >&6
15870 apu_try_berkeley_db_save_libs="$LIBS"
15872 apu_check_berkeley_db_major=2
15873 apu_check_berkeley_db_minor=-1
15874 apu_check_berkeley_db_patch=-1
15875 apu_try_berkeley_db_header=$bdb_header
15876 apu_try_berkeley_db_libname=$bdb_libname
15878 LIBS="$LIBS -l$apu_try_berkeley_db_libname"
15879 if test "$cross_compiling" = yes; then
15880 apu_try_berkeley_db=yes
15883 cat >conftest.$ac_ext <<_ACEOF
15886 cat confdefs.h >>conftest.$ac_ext
15887 cat >>conftest.$ac_ext <<_ACEOF
15888 /* end confdefs.h. */
15890 #include <stdlib.h>
15892 #include <$apu_try_berkeley_db_header>
15895 int major, minor, patch;
15897 db_version(&major, &minor, &patch);
15899 /* Sanity check: ensure that db.h constants actually match the db library */
15900 if (major != DB_VERSION_MAJOR
15901 || minor != DB_VERSION_MINOR
15902 || patch != DB_VERSION_PATCH)
15905 /* Run-time check: ensure the library claims to be the correct version. */
15907 if ($apu_check_berkeley_db_major != -1) {
15908 if (major < $apu_check_berkeley_db_major)
15910 if (major > $apu_check_berkeley_db_major)
15914 if ($apu_check_berkeley_db_minor != -1) {
15915 if (minor < $apu_check_berkeley_db_minor)
15917 if (minor > $apu_check_berkeley_db_minor)
15921 if ($apu_check_berkeley_db_patch == -1
15922 || patch >= $apu_check_berkeley_db_patch)
15929 rm -f conftest$ac_exeext
15930 if { (ac_try="$ac_link"
15931 case "(($ac_try" in
15932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15933 *) ac_try_echo=$ac_try;;
15935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15936 $as_echo "$ac_try_echo") >&5
15937 (eval "$ac_link") 2>&5
15939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15940 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15941 { (case "(($ac_try" in
15942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15943 *) ac_try_echo=$ac_try;;
15945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15946 $as_echo "$ac_try_echo") >&5
15947 (eval "$ac_try") 2>&5
15949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950 (exit $ac_status); }; }; then
15951 apu_try_berkeley_db=yes
15953 $as_echo "$as_me: program exited with status $ac_status" >&5
15954 $as_echo "$as_me: failed program was:" >&5
15955 sed 's/^/| /' conftest.$ac_ext >&5
15957 ( exit $ac_status )
15958 apu_try_berkeley_db=no
15960 rm -rf conftest.dSYM
15961 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15966 LIBS="$apu_try_berkeley_db_save_libs"
15969 eval "$cache_id=$apu_try_berkeley_db"
15973 result="`eval echo '$'$cache_id`"
15974 { $as_echo "$as_me:$LINENO: result: $result" >&5
15975 $as_echo "$result" >&6; }
15976 elif test "2" = "1"; then
15977 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
15978 { $as_echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
15979 $as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; }
15980 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
15981 $as_echo_n "(cached) " >&6
15983 ac_check_lib_save_LIBS=$LIBS
15984 LIBS="-l$bdb_libname $LIBS"
15985 cat >conftest.$ac_ext <<_ACEOF
15988 cat confdefs.h >>conftest.$ac_ext
15989 cat >>conftest.$ac_ext <<_ACEOF
15990 /* end confdefs.h. */
15992 /* Override any GCC internal prototype to avoid an error.
15993 Use char because int might match the return type of a GCC
15994 builtin and then its argument prototype would still apply. */
16007 rm -f conftest.$ac_objext conftest$ac_exeext
16008 if { (ac_try="$ac_link"
16009 case "(($ac_try" in
16010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16011 *) ac_try_echo=$ac_try;;
16013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16014 $as_echo "$ac_try_echo") >&5
16015 (eval "$ac_link") 2>conftest.er1
16017 grep -v '^ *+' conftest.er1 >conftest.err
16019 cat conftest.err >&5
16020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16021 (exit $ac_status); } && {
16022 test -z "$ac_c_werror_flag" ||
16023 test ! -s conftest.err
16024 } && test -s conftest$ac_exeext && {
16025 test "$cross_compiling" = yes ||
16026 $as_test_x conftest$ac_exeext
16028 eval "$as_ac_Lib=yes"
16030 $as_echo "$as_me: failed program was:" >&5
16031 sed 's/^/| /' conftest.$ac_ext >&5
16033 eval "$as_ac_Lib=no"
16036 rm -rf conftest.dSYM
16037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16038 conftest$ac_exeext conftest.$ac_ext
16039 LIBS=$ac_check_lib_save_LIBS
16041 ac_res=`eval 'as_val=${'$as_ac_Lib'}
16042 $as_echo "$as_val"'`
16043 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16044 $as_echo "$ac_res" >&6; }
16045 as_val=`eval 'as_val=${'$as_ac_Lib'}
16046 $as_echo "$as_val"'`
16047 if test "x$as_val" = x""yes; then
16054 elif test "2" = "2"; then
16055 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
16056 { $as_echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
16057 $as_echo_n "checking for db_open in -l$bdb_libname... " >&6; }
16058 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
16059 $as_echo_n "(cached) " >&6
16061 ac_check_lib_save_LIBS=$LIBS
16062 LIBS="-l$bdb_libname $LIBS"
16063 cat >conftest.$ac_ext <<_ACEOF
16066 cat confdefs.h >>conftest.$ac_ext
16067 cat >>conftest.$ac_ext <<_ACEOF
16068 /* end confdefs.h. */
16070 /* Override any GCC internal prototype to avoid an error.
16071 Use char because int might match the return type of a GCC
16072 builtin and then its argument prototype would still apply. */
16085 rm -f conftest.$ac_objext conftest$ac_exeext
16086 if { (ac_try="$ac_link"
16087 case "(($ac_try" in
16088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16089 *) ac_try_echo=$ac_try;;
16091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16092 $as_echo "$ac_try_echo") >&5
16093 (eval "$ac_link") 2>conftest.er1
16095 grep -v '^ *+' conftest.er1 >conftest.err
16097 cat conftest.err >&5
16098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099 (exit $ac_status); } && {
16100 test -z "$ac_c_werror_flag" ||
16101 test ! -s conftest.err
16102 } && test -s conftest$ac_exeext && {
16103 test "$cross_compiling" = yes ||
16104 $as_test_x conftest$ac_exeext
16106 eval "$as_ac_Lib=yes"
16108 $as_echo "$as_me: failed program was:" >&5
16109 sed 's/^/| /' conftest.$ac_ext >&5
16111 eval "$as_ac_Lib=no"
16114 rm -rf conftest.dSYM
16115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16116 conftest$ac_exeext conftest.$ac_ext
16117 LIBS=$ac_check_lib_save_LIBS
16119 ac_res=`eval 'as_val=${'$as_ac_Lib'}
16120 $as_echo "$as_val"'`
16121 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16122 $as_echo "$ac_res" >&6; }
16123 as_val=`eval 'as_val=${'$as_ac_Lib'}
16124 $as_echo "$as_val"'`
16125 if test "x$as_val" = x""yes; then
16140 # If we found it, no need to search any more.
16141 if test "$result" = "yes"; then
16146 test "$found" != "not" && break
16148 test "$found" != "not" && break
16151 # Restore the original values of the flags we tweak.
16152 LDFLAGS="$apu_check_lib_save_ldflags"
16153 CPPFLAGS="$apu_check_lib_save_cppflags"
16160 apu_db_header=$bdb_header
16161 apu_db_lib=$bdb_libname
16165 header="`echo $found | sed -e 's/:.*$//'`"
16166 lib="`echo $found | sed -e 's/^.*://'`"
16169 if test "x$APRUTIL_INCLUDES" = "x"; then
16170 echo " setting APRUTIL_INCLUDES to \"-I$header\""
16171 APRUTIL_INCLUDES="-I$header"
16173 apr_addto_bugger="-I$header"
16174 for i in $apr_addto_bugger; do
16175 apr_addto_duplicate="0"
16176 for j in $APRUTIL_INCLUDES; do
16177 if test "x$i" = "x$j"; then
16178 apr_addto_duplicate="1"
16182 if test $apr_addto_duplicate = "0"; then
16183 echo " adding \"$i\" to APRUTIL_INCLUDES"
16184 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
16190 if test "x$APRUTIL_LDFLAGS" = "x"; then
16191 echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
16192 APRUTIL_LDFLAGS="-L$lib"
16194 apr_addto_bugger="-L$lib"
16195 for i in $apr_addto_bugger; do
16196 apr_addto_duplicate="0"
16197 for j in $APRUTIL_LDFLAGS; do
16198 if test "x$i" = "x$j"; then
16199 apr_addto_duplicate="1"
16203 if test $apr_addto_duplicate = "0"; then
16204 echo " adding \"$i\" to APRUTIL_LDFLAGS"
16205 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
16210 apu_db_header=$bdb_header
16211 apu_db_lib=$bdb_libname
16216 if test "x$APRUTIL_INCLUDES" = "x"; then
16217 echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
16218 APRUTIL_INCLUDES="-I$found/include"
16220 apr_addto_bugger="-I$found/include"
16221 for i in $apr_addto_bugger; do
16222 apr_addto_duplicate="0"
16223 for j in $APRUTIL_INCLUDES; do
16224 if test "x$i" = "x$j"; then
16225 apr_addto_duplicate="1"
16229 if test $apr_addto_duplicate = "0"; then
16230 echo " adding \"$i\" to APRUTIL_INCLUDES"
16231 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
16237 if test "x$APRUTIL_LDFLAGS" = "x"; then
16238 echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
16239 APRUTIL_LDFLAGS="-L$found/lib"
16241 apr_addto_bugger="-L$found/lib"
16242 for i in $apr_addto_bugger; do
16243 apr_addto_duplicate="0"
16244 for j in $APRUTIL_LDFLAGS; do
16245 if test "x$i" = "x$j"; then
16246 apr_addto_duplicate="1"
16250 if test $apr_addto_duplicate = "0"; then
16251 echo " adding \"$i\" to APRUTIL_LDFLAGS"
16252 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
16257 apu_db_header=$bdb_header
16258 apu_db_lib=$bdb_libname
16263 if test "$apu_have_db" = "1"; then
16267 if test "$apu_db_version" != "2"; then
16269 places="$all_places"
16270 if test -z "$places"; then
16275 if test "0" != "-1"; then
16276 bdb_version="$bdb_version.0"
16277 if test "0" != "-1"; then
16278 bdb_version="$bdb_version.0"
16281 bdb_places="$places"
16282 bdb_default_search_headers="db1/db.h db.h"
16283 bdb_default_search_lib_names="db1"
16288 # Save the original values of the flags we tweak.
16289 apu_check_lib_save_libs="$LIBS"
16290 apu_check_lib_save_ldflags="$LDFLAGS"
16291 apu_check_lib_save_cppflags="$CPPFLAGS"
16293 # The variable `found' is the prefix under which we've found
16294 # Berkeley DB, or `not' if we haven't found it anywhere yet.
16296 for bdb_place in $bdb_places; do
16298 LDFLAGS="$apu_check_lib_save_ldflags"
16299 CPPFLAGS="$apu_check_lib_save_cppflags"
16300 case "$bdb_place" in
16302 description="the standard places"
16305 header="`echo $bdb_place | sed -e 's/:.*$//'`"
16306 lib="`echo $bdb_place | sed -e 's/^.*://'`"
16307 CPPFLAGS="$CPPFLAGS -I$header"
16308 LDFLAGS="$LDFLAGS -L$lib"
16309 description="$header and $lib"
16312 if test -d $bdb_place; then
16313 LDFLAGS="$LDFLAGS -L$bdb_place/lib"
16314 CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
16316 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
16317 $as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; }
16318 { $as_echo "$as_me:$LINENO: result: directory not found" >&5
16319 $as_echo "directory not found" >&6; }
16322 description="$bdb_place"
16326 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
16327 # trick to display a message instead.
16328 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
16329 $as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; }
16330 { $as_echo "$as_me:$LINENO: result: " >&5
16333 for bdb_libname in $bdb_default_search_lib_names; do
16334 for bdb_header in $bdb_default_search_headers; do
16335 # Clear the header cache variable for each location
16337 cache_id="`echo ac_cv_header_${bdb_header} \
16338 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
16341 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh`
16342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16343 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
16344 $as_echo_n "checking for $bdb_header... " >&6; }
16345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16346 $as_echo_n "(cached) " >&6
16348 ac_res=`eval 'as_val=${'$as_ac_Header'}
16349 $as_echo "$as_val"'`
16350 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16351 $as_echo "$ac_res" >&6; }
16353 # Is the header compilable?
16354 { $as_echo "$as_me:$LINENO: checking $bdb_header usability" >&5
16355 $as_echo_n "checking $bdb_header usability... " >&6; }
16356 cat >conftest.$ac_ext <<_ACEOF
16359 cat confdefs.h >>conftest.$ac_ext
16360 cat >>conftest.$ac_ext <<_ACEOF
16361 /* end confdefs.h. */
16362 $ac_includes_default
16363 #include <$bdb_header>
16365 rm -f conftest.$ac_objext
16366 if { (ac_try="$ac_compile"
16367 case "(($ac_try" in
16368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16369 *) ac_try_echo=$ac_try;;
16371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16372 $as_echo "$ac_try_echo") >&5
16373 (eval "$ac_compile") 2>conftest.er1
16375 grep -v '^ *+' conftest.er1 >conftest.err
16377 cat conftest.err >&5
16378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16379 (exit $ac_status); } && {
16380 test -z "$ac_c_werror_flag" ||
16381 test ! -s conftest.err
16382 } && test -s conftest.$ac_objext; then
16383 ac_header_compiler=yes
16385 $as_echo "$as_me: failed program was:" >&5
16386 sed 's/^/| /' conftest.$ac_ext >&5
16388 ac_header_compiler=no
16391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16392 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16393 $as_echo "$ac_header_compiler" >&6; }
16395 # Is the header present?
16396 { $as_echo "$as_me:$LINENO: checking $bdb_header presence" >&5
16397 $as_echo_n "checking $bdb_header presence... " >&6; }
16398 cat >conftest.$ac_ext <<_ACEOF
16401 cat confdefs.h >>conftest.$ac_ext
16402 cat >>conftest.$ac_ext <<_ACEOF
16403 /* end confdefs.h. */
16404 #include <$bdb_header>
16406 if { (ac_try="$ac_cpp conftest.$ac_ext"
16407 case "(($ac_try" in
16408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16409 *) ac_try_echo=$ac_try;;
16411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16412 $as_echo "$ac_try_echo") >&5
16413 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16415 grep -v '^ *+' conftest.er1 >conftest.err
16417 cat conftest.err >&5
16418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16419 (exit $ac_status); } >/dev/null && {
16420 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16421 test ! -s conftest.err
16423 ac_header_preproc=yes
16425 $as_echo "$as_me: failed program was:" >&5
16426 sed 's/^/| /' conftest.$ac_ext >&5
16428 ac_header_preproc=no
16431 rm -f conftest.err conftest.$ac_ext
16432 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16433 $as_echo "$ac_header_preproc" >&6; }
16435 # So? What about this header?
16436 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16438 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
16439 $as_echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16440 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
16441 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
16442 ac_header_preproc=yes
16445 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
16446 $as_echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
16447 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
16448 $as_echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
16449 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
16450 $as_echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
16451 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
16452 $as_echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
16453 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
16454 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
16455 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
16456 $as_echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
16460 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
16461 $as_echo_n "checking for $bdb_header... " >&6; }
16462 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16463 $as_echo_n "(cached) " >&6
16465 eval "$as_ac_Header=\$ac_header_preproc"
16467 ac_res=`eval 'as_val=${'$as_ac_Header'}
16468 $as_echo "$as_val"'`
16469 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16470 $as_echo "$ac_res" >&6; }
16473 as_val=`eval 'as_val=${'$as_ac_Header'}
16474 $as_echo "$as_val"'`
16475 if test "x$as_val" = x""yes; then
16477 if test "1" = "3" -o "1" = "4"; then
16478 # We generate a separate cache variable for each prefix and libname
16479 # we search under. That way, we avoid caching information that
16480 # changes if the user runs `configure' with a different set of
16483 cache_id="`echo apu_cv_check_berkeley_db_1_0_0_${bdb_header}_${bdb_libname}_in_${bdb_place} \
16484 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
16487 { $as_echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
16488 $as_echo_n "checking for -l$bdb_libname... " >&6; }
16489 if { as_var=$cache_id; eval "test \"\${$as_var+set}\" = set"; }; then
16490 $as_echo_n "(cached) " >&6
16494 apu_try_berkeley_db_save_libs="$LIBS"
16496 apu_check_berkeley_db_major=1
16497 apu_check_berkeley_db_minor=0
16498 apu_check_berkeley_db_patch=0
16499 apu_try_berkeley_db_header=$bdb_header
16500 apu_try_berkeley_db_libname=$bdb_libname
16502 LIBS="$LIBS -l$apu_try_berkeley_db_libname"
16503 if test "$cross_compiling" = yes; then
16504 apu_try_berkeley_db=yes
16507 cat >conftest.$ac_ext <<_ACEOF
16510 cat confdefs.h >>conftest.$ac_ext
16511 cat >>conftest.$ac_ext <<_ACEOF
16512 /* end confdefs.h. */
16514 #include <stdlib.h>
16516 #include <$apu_try_berkeley_db_header>
16519 int major, minor, patch;
16521 db_version(&major, &minor, &patch);
16523 /* Sanity check: ensure that db.h constants actually match the db library */
16524 if (major != DB_VERSION_MAJOR
16525 || minor != DB_VERSION_MINOR
16526 || patch != DB_VERSION_PATCH)
16529 /* Run-time check: ensure the library claims to be the correct version. */
16531 if ($apu_check_berkeley_db_major != -1) {
16532 if (major < $apu_check_berkeley_db_major)
16534 if (major > $apu_check_berkeley_db_major)
16538 if ($apu_check_berkeley_db_minor != -1) {
16539 if (minor < $apu_check_berkeley_db_minor)
16541 if (minor > $apu_check_berkeley_db_minor)
16545 if ($apu_check_berkeley_db_patch == -1
16546 || patch >= $apu_check_berkeley_db_patch)
16553 rm -f conftest$ac_exeext
16554 if { (ac_try="$ac_link"
16555 case "(($ac_try" in
16556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16557 *) ac_try_echo=$ac_try;;
16559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16560 $as_echo "$ac_try_echo") >&5
16561 (eval "$ac_link") 2>&5
16563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16565 { (case "(($ac_try" in
16566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16567 *) ac_try_echo=$ac_try;;
16569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16570 $as_echo "$ac_try_echo") >&5
16571 (eval "$ac_try") 2>&5
16573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16574 (exit $ac_status); }; }; then
16575 apu_try_berkeley_db=yes
16577 $as_echo "$as_me: program exited with status $ac_status" >&5
16578 $as_echo "$as_me: failed program was:" >&5
16579 sed 's/^/| /' conftest.$ac_ext >&5
16581 ( exit $ac_status )
16582 apu_try_berkeley_db=no
16584 rm -rf conftest.dSYM
16585 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16590 LIBS="$apu_try_berkeley_db_save_libs"
16593 eval "$cache_id=$apu_try_berkeley_db"
16597 result="`eval echo '$'$cache_id`"
16598 { $as_echo "$as_me:$LINENO: result: $result" >&5
16599 $as_echo "$result" >&6; }
16600 elif test "1" = "1"; then
16601 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
16602 { $as_echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
16603 $as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; }
16604 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
16605 $as_echo_n "(cached) " >&6
16607 ac_check_lib_save_LIBS=$LIBS
16608 LIBS="-l$bdb_libname $LIBS"
16609 cat >conftest.$ac_ext <<_ACEOF
16612 cat confdefs.h >>conftest.$ac_ext
16613 cat >>conftest.$ac_ext <<_ACEOF
16614 /* end confdefs.h. */
16616 /* Override any GCC internal prototype to avoid an error.
16617 Use char because int might match the return type of a GCC
16618 builtin and then its argument prototype would still apply. */
16631 rm -f conftest.$ac_objext conftest$ac_exeext
16632 if { (ac_try="$ac_link"
16633 case "(($ac_try" in
16634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16635 *) ac_try_echo=$ac_try;;
16637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16638 $as_echo "$ac_try_echo") >&5
16639 (eval "$ac_link") 2>conftest.er1
16641 grep -v '^ *+' conftest.er1 >conftest.err
16643 cat conftest.err >&5
16644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645 (exit $ac_status); } && {
16646 test -z "$ac_c_werror_flag" ||
16647 test ! -s conftest.err
16648 } && test -s conftest$ac_exeext && {
16649 test "$cross_compiling" = yes ||
16650 $as_test_x conftest$ac_exeext
16652 eval "$as_ac_Lib=yes"
16654 $as_echo "$as_me: failed program was:" >&5
16655 sed 's/^/| /' conftest.$ac_ext >&5
16657 eval "$as_ac_Lib=no"
16660 rm -rf conftest.dSYM
16661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16662 conftest$ac_exeext conftest.$ac_ext
16663 LIBS=$ac_check_lib_save_LIBS
16665 ac_res=`eval 'as_val=${'$as_ac_Lib'}
16666 $as_echo "$as_val"'`
16667 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16668 $as_echo "$ac_res" >&6; }
16669 as_val=`eval 'as_val=${'$as_ac_Lib'}
16670 $as_echo "$as_val"'`
16671 if test "x$as_val" = x""yes; then
16678 elif test "1" = "2"; then
16679 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
16680 { $as_echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
16681 $as_echo_n "checking for db_open in -l$bdb_libname... " >&6; }
16682 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
16683 $as_echo_n "(cached) " >&6
16685 ac_check_lib_save_LIBS=$LIBS
16686 LIBS="-l$bdb_libname $LIBS"
16687 cat >conftest.$ac_ext <<_ACEOF
16690 cat confdefs.h >>conftest.$ac_ext
16691 cat >>conftest.$ac_ext <<_ACEOF
16692 /* end confdefs.h. */
16694 /* Override any GCC internal prototype to avoid an error.
16695 Use char because int might match the return type of a GCC
16696 builtin and then its argument prototype would still apply. */
16709 rm -f conftest.$ac_objext conftest$ac_exeext
16710 if { (ac_try="$ac_link"
16711 case "(($ac_try" in
16712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16713 *) ac_try_echo=$ac_try;;
16715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16716 $as_echo "$ac_try_echo") >&5
16717 (eval "$ac_link") 2>conftest.er1
16719 grep -v '^ *+' conftest.er1 >conftest.err
16721 cat conftest.err >&5
16722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); } && {
16724 test -z "$ac_c_werror_flag" ||
16725 test ! -s conftest.err
16726 } && test -s conftest$ac_exeext && {
16727 test "$cross_compiling" = yes ||
16728 $as_test_x conftest$ac_exeext
16730 eval "$as_ac_Lib=yes"
16732 $as_echo "$as_me: failed program was:" >&5
16733 sed 's/^/| /' conftest.$ac_ext >&5
16735 eval "$as_ac_Lib=no"
16738 rm -rf conftest.dSYM
16739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16740 conftest$ac_exeext conftest.$ac_ext
16741 LIBS=$ac_check_lib_save_LIBS
16743 ac_res=`eval 'as_val=${'$as_ac_Lib'}
16744 $as_echo "$as_val"'`
16745 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16746 $as_echo "$ac_res" >&6; }
16747 as_val=`eval 'as_val=${'$as_ac_Lib'}
16748 $as_echo "$as_val"'`
16749 if test "x$as_val" = x""yes; then
16764 # If we found it, no need to search any more.
16765 if test "$result" = "yes"; then
16770 test "$found" != "not" && break
16772 test "$found" != "not" && break
16775 # Restore the original values of the flags we tweak.
16776 LDFLAGS="$apu_check_lib_save_ldflags"
16777 CPPFLAGS="$apu_check_lib_save_cppflags"
16784 apu_db_header=$bdb_header
16785 apu_db_lib=$bdb_libname
16789 header="`echo $found | sed -e 's/:.*$//'`"
16790 lib="`echo $found | sed -e 's/^.*://'`"
16793 if test "x$APRUTIL_INCLUDES" = "x"; then
16794 echo " setting APRUTIL_INCLUDES to \"-I$header\""
16795 APRUTIL_INCLUDES="-I$header"
16797 apr_addto_bugger="-I$header"
16798 for i in $apr_addto_bugger; do
16799 apr_addto_duplicate="0"
16800 for j in $APRUTIL_INCLUDES; do
16801 if test "x$i" = "x$j"; then
16802 apr_addto_duplicate="1"
16806 if test $apr_addto_duplicate = "0"; then
16807 echo " adding \"$i\" to APRUTIL_INCLUDES"
16808 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
16814 if test "x$APRUTIL_LDFLAGS" = "x"; then
16815 echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
16816 APRUTIL_LDFLAGS="-L$lib"
16818 apr_addto_bugger="-L$lib"
16819 for i in $apr_addto_bugger; do
16820 apr_addto_duplicate="0"
16821 for j in $APRUTIL_LDFLAGS; do
16822 if test "x$i" = "x$j"; then
16823 apr_addto_duplicate="1"
16827 if test $apr_addto_duplicate = "0"; then
16828 echo " adding \"$i\" to APRUTIL_LDFLAGS"
16829 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
16834 apu_db_header=$bdb_header
16835 apu_db_lib=$bdb_libname
16840 if test "x$APRUTIL_INCLUDES" = "x"; then
16841 echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
16842 APRUTIL_INCLUDES="-I$found/include"
16844 apr_addto_bugger="-I$found/include"
16845 for i in $apr_addto_bugger; do
16846 apr_addto_duplicate="0"
16847 for j in $APRUTIL_INCLUDES; do
16848 if test "x$i" = "x$j"; then
16849 apr_addto_duplicate="1"
16853 if test $apr_addto_duplicate = "0"; then
16854 echo " adding \"$i\" to APRUTIL_INCLUDES"
16855 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
16861 if test "x$APRUTIL_LDFLAGS" = "x"; then
16862 echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
16863 APRUTIL_LDFLAGS="-L$found/lib"
16865 apr_addto_bugger="-L$found/lib"
16866 for i in $apr_addto_bugger; do
16867 apr_addto_duplicate="0"
16868 for j in $APRUTIL_LDFLAGS; do
16869 if test "x$i" = "x$j"; then
16870 apr_addto_duplicate="1"
16874 if test $apr_addto_duplicate = "0"; then
16875 echo " adding \"$i\" to APRUTIL_LDFLAGS"
16876 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
16881 apu_db_header=$bdb_header
16882 apu_db_lib=$bdb_libname
16887 if test "$apu_have_db" = "1"; then
16891 if test "$apu_db_version" != "1"; then
16893 places="$all_places"
16894 if test -z "$places"; then
16899 if test "-1" != "-1"; then
16900 bdb_version="$bdb_version.-1"
16901 if test "-1" != "-1"; then
16902 bdb_version="$bdb_version.-1"
16905 bdb_places="$places"
16906 bdb_default_search_headers="db_185.h"
16907 bdb_default_search_lib_names="db"
16912 # Save the original values of the flags we tweak.
16913 apu_check_lib_save_libs="$LIBS"
16914 apu_check_lib_save_ldflags="$LDFLAGS"
16915 apu_check_lib_save_cppflags="$CPPFLAGS"
16917 # The variable `found' is the prefix under which we've found
16918 # Berkeley DB, or `not' if we haven't found it anywhere yet.
16920 for bdb_place in $bdb_places; do
16922 LDFLAGS="$apu_check_lib_save_ldflags"
16923 CPPFLAGS="$apu_check_lib_save_cppflags"
16924 case "$bdb_place" in
16926 description="the standard places"
16929 header="`echo $bdb_place | sed -e 's/:.*$//'`"
16930 lib="`echo $bdb_place | sed -e 's/^.*://'`"
16931 CPPFLAGS="$CPPFLAGS -I$header"
16932 LDFLAGS="$LDFLAGS -L$lib"
16933 description="$header and $lib"
16936 if test -d $bdb_place; then
16937 LDFLAGS="$LDFLAGS -L$bdb_place/lib"
16938 CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
16940 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
16941 $as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; }
16942 { $as_echo "$as_me:$LINENO: result: directory not found" >&5
16943 $as_echo "directory not found" >&6; }
16946 description="$bdb_place"
16950 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
16951 # trick to display a message instead.
16952 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
16953 $as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; }
16954 { $as_echo "$as_me:$LINENO: result: " >&5
16957 for bdb_libname in $bdb_default_search_lib_names; do
16958 for bdb_header in $bdb_default_search_headers; do
16959 # Clear the header cache variable for each location
16961 cache_id="`echo ac_cv_header_${bdb_header} \
16962 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
16965 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh`
16966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16967 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
16968 $as_echo_n "checking for $bdb_header... " >&6; }
16969 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16970 $as_echo_n "(cached) " >&6
16972 ac_res=`eval 'as_val=${'$as_ac_Header'}
16973 $as_echo "$as_val"'`
16974 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16975 $as_echo "$ac_res" >&6; }
16977 # Is the header compilable?
16978 { $as_echo "$as_me:$LINENO: checking $bdb_header usability" >&5
16979 $as_echo_n "checking $bdb_header usability... " >&6; }
16980 cat >conftest.$ac_ext <<_ACEOF
16983 cat confdefs.h >>conftest.$ac_ext
16984 cat >>conftest.$ac_ext <<_ACEOF
16985 /* end confdefs.h. */
16986 $ac_includes_default
16987 #include <$bdb_header>
16989 rm -f conftest.$ac_objext
16990 if { (ac_try="$ac_compile"
16991 case "(($ac_try" in
16992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16993 *) ac_try_echo=$ac_try;;
16995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16996 $as_echo "$ac_try_echo") >&5
16997 (eval "$ac_compile") 2>conftest.er1
16999 grep -v '^ *+' conftest.er1 >conftest.err
17001 cat conftest.err >&5
17002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003 (exit $ac_status); } && {
17004 test -z "$ac_c_werror_flag" ||
17005 test ! -s conftest.err
17006 } && test -s conftest.$ac_objext; then
17007 ac_header_compiler=yes
17009 $as_echo "$as_me: failed program was:" >&5
17010 sed 's/^/| /' conftest.$ac_ext >&5
17012 ac_header_compiler=no
17015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17016 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17017 $as_echo "$ac_header_compiler" >&6; }
17019 # Is the header present?
17020 { $as_echo "$as_me:$LINENO: checking $bdb_header presence" >&5
17021 $as_echo_n "checking $bdb_header presence... " >&6; }
17022 cat >conftest.$ac_ext <<_ACEOF
17025 cat confdefs.h >>conftest.$ac_ext
17026 cat >>conftest.$ac_ext <<_ACEOF
17027 /* end confdefs.h. */
17028 #include <$bdb_header>
17030 if { (ac_try="$ac_cpp conftest.$ac_ext"
17031 case "(($ac_try" in
17032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17033 *) ac_try_echo=$ac_try;;
17035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17036 $as_echo "$ac_try_echo") >&5
17037 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17039 grep -v '^ *+' conftest.er1 >conftest.err
17041 cat conftest.err >&5
17042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043 (exit $ac_status); } >/dev/null && {
17044 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17045 test ! -s conftest.err
17047 ac_header_preproc=yes
17049 $as_echo "$as_me: failed program was:" >&5
17050 sed 's/^/| /' conftest.$ac_ext >&5
17052 ac_header_preproc=no
17055 rm -f conftest.err conftest.$ac_ext
17056 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17057 $as_echo "$ac_header_preproc" >&6; }
17059 # So? What about this header?
17060 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17062 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
17063 $as_echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17064 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
17065 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
17066 ac_header_preproc=yes
17069 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
17070 $as_echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
17071 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
17072 $as_echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
17073 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
17074 $as_echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
17075 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
17076 $as_echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
17077 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
17078 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
17079 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
17080 $as_echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
17084 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
17085 $as_echo_n "checking for $bdb_header... " >&6; }
17086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17087 $as_echo_n "(cached) " >&6
17089 eval "$as_ac_Header=\$ac_header_preproc"
17091 ac_res=`eval 'as_val=${'$as_ac_Header'}
17092 $as_echo "$as_val"'`
17093 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17094 $as_echo "$ac_res" >&6; }
17097 as_val=`eval 'as_val=${'$as_ac_Header'}
17098 $as_echo "$as_val"'`
17099 if test "x$as_val" = x""yes; then
17101 if test "1" = "3" -o "1" = "4"; then
17102 # We generate a separate cache variable for each prefix and libname
17103 # we search under. That way, we avoid caching information that
17104 # changes if the user runs `configure' with a different set of
17107 cache_id="`echo apu_cv_check_berkeley_db_1_-1_-1_${bdb_header}_${bdb_libname}_in_${bdb_place} \
17108 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
17111 { $as_echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
17112 $as_echo_n "checking for -l$bdb_libname... " >&6; }
17113 if { as_var=$cache_id; eval "test \"\${$as_var+set}\" = set"; }; then
17114 $as_echo_n "(cached) " >&6
17118 apu_try_berkeley_db_save_libs="$LIBS"
17120 apu_check_berkeley_db_major=1
17121 apu_check_berkeley_db_minor=-1
17122 apu_check_berkeley_db_patch=-1
17123 apu_try_berkeley_db_header=$bdb_header
17124 apu_try_berkeley_db_libname=$bdb_libname
17126 LIBS="$LIBS -l$apu_try_berkeley_db_libname"
17127 if test "$cross_compiling" = yes; then
17128 apu_try_berkeley_db=yes
17131 cat >conftest.$ac_ext <<_ACEOF
17134 cat confdefs.h >>conftest.$ac_ext
17135 cat >>conftest.$ac_ext <<_ACEOF
17136 /* end confdefs.h. */
17138 #include <stdlib.h>
17140 #include <$apu_try_berkeley_db_header>
17143 int major, minor, patch;
17145 db_version(&major, &minor, &patch);
17147 /* Sanity check: ensure that db.h constants actually match the db library */
17148 if (major != DB_VERSION_MAJOR
17149 || minor != DB_VERSION_MINOR
17150 || patch != DB_VERSION_PATCH)
17153 /* Run-time check: ensure the library claims to be the correct version. */
17155 if ($apu_check_berkeley_db_major != -1) {
17156 if (major < $apu_check_berkeley_db_major)
17158 if (major > $apu_check_berkeley_db_major)
17162 if ($apu_check_berkeley_db_minor != -1) {
17163 if (minor < $apu_check_berkeley_db_minor)
17165 if (minor > $apu_check_berkeley_db_minor)
17169 if ($apu_check_berkeley_db_patch == -1
17170 || patch >= $apu_check_berkeley_db_patch)
17177 rm -f conftest$ac_exeext
17178 if { (ac_try="$ac_link"
17179 case "(($ac_try" in
17180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17181 *) ac_try_echo=$ac_try;;
17183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17184 $as_echo "$ac_try_echo") >&5
17185 (eval "$ac_link") 2>&5
17187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17189 { (case "(($ac_try" in
17190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17191 *) ac_try_echo=$ac_try;;
17193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17194 $as_echo "$ac_try_echo") >&5
17195 (eval "$ac_try") 2>&5
17197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198 (exit $ac_status); }; }; then
17199 apu_try_berkeley_db=yes
17201 $as_echo "$as_me: program exited with status $ac_status" >&5
17202 $as_echo "$as_me: failed program was:" >&5
17203 sed 's/^/| /' conftest.$ac_ext >&5
17205 ( exit $ac_status )
17206 apu_try_berkeley_db=no
17208 rm -rf conftest.dSYM
17209 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17214 LIBS="$apu_try_berkeley_db_save_libs"
17217 eval "$cache_id=$apu_try_berkeley_db"
17221 result="`eval echo '$'$cache_id`"
17222 { $as_echo "$as_me:$LINENO: result: $result" >&5
17223 $as_echo "$result" >&6; }
17224 elif test "1" = "1"; then
17225 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
17226 { $as_echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
17227 $as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; }
17228 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
17229 $as_echo_n "(cached) " >&6
17231 ac_check_lib_save_LIBS=$LIBS
17232 LIBS="-l$bdb_libname $LIBS"
17233 cat >conftest.$ac_ext <<_ACEOF
17236 cat confdefs.h >>conftest.$ac_ext
17237 cat >>conftest.$ac_ext <<_ACEOF
17238 /* end confdefs.h. */
17240 /* Override any GCC internal prototype to avoid an error.
17241 Use char because int might match the return type of a GCC
17242 builtin and then its argument prototype would still apply. */
17255 rm -f conftest.$ac_objext conftest$ac_exeext
17256 if { (ac_try="$ac_link"
17257 case "(($ac_try" in
17258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17259 *) ac_try_echo=$ac_try;;
17261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17262 $as_echo "$ac_try_echo") >&5
17263 (eval "$ac_link") 2>conftest.er1
17265 grep -v '^ *+' conftest.er1 >conftest.err
17267 cat conftest.err >&5
17268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17269 (exit $ac_status); } && {
17270 test -z "$ac_c_werror_flag" ||
17271 test ! -s conftest.err
17272 } && test -s conftest$ac_exeext && {
17273 test "$cross_compiling" = yes ||
17274 $as_test_x conftest$ac_exeext
17276 eval "$as_ac_Lib=yes"
17278 $as_echo "$as_me: failed program was:" >&5
17279 sed 's/^/| /' conftest.$ac_ext >&5
17281 eval "$as_ac_Lib=no"
17284 rm -rf conftest.dSYM
17285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17286 conftest$ac_exeext conftest.$ac_ext
17287 LIBS=$ac_check_lib_save_LIBS
17289 ac_res=`eval 'as_val=${'$as_ac_Lib'}
17290 $as_echo "$as_val"'`
17291 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17292 $as_echo "$ac_res" >&6; }
17293 as_val=`eval 'as_val=${'$as_ac_Lib'}
17294 $as_echo "$as_val"'`
17295 if test "x$as_val" = x""yes; then
17302 elif test "1" = "2"; then
17303 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
17304 { $as_echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
17305 $as_echo_n "checking for db_open in -l$bdb_libname... " >&6; }
17306 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
17307 $as_echo_n "(cached) " >&6
17309 ac_check_lib_save_LIBS=$LIBS
17310 LIBS="-l$bdb_libname $LIBS"
17311 cat >conftest.$ac_ext <<_ACEOF
17314 cat confdefs.h >>conftest.$ac_ext
17315 cat >>conftest.$ac_ext <<_ACEOF
17316 /* end confdefs.h. */
17318 /* Override any GCC internal prototype to avoid an error.
17319 Use char because int might match the return type of a GCC
17320 builtin and then its argument prototype would still apply. */
17333 rm -f conftest.$ac_objext conftest$ac_exeext
17334 if { (ac_try="$ac_link"
17335 case "(($ac_try" in
17336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17337 *) ac_try_echo=$ac_try;;
17339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17340 $as_echo "$ac_try_echo") >&5
17341 (eval "$ac_link") 2>conftest.er1
17343 grep -v '^ *+' conftest.er1 >conftest.err
17345 cat conftest.err >&5
17346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347 (exit $ac_status); } && {
17348 test -z "$ac_c_werror_flag" ||
17349 test ! -s conftest.err
17350 } && test -s conftest$ac_exeext && {
17351 test "$cross_compiling" = yes ||
17352 $as_test_x conftest$ac_exeext
17354 eval "$as_ac_Lib=yes"
17356 $as_echo "$as_me: failed program was:" >&5
17357 sed 's/^/| /' conftest.$ac_ext >&5
17359 eval "$as_ac_Lib=no"
17362 rm -rf conftest.dSYM
17363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17364 conftest$ac_exeext conftest.$ac_ext
17365 LIBS=$ac_check_lib_save_LIBS
17367 ac_res=`eval 'as_val=${'$as_ac_Lib'}
17368 $as_echo "$as_val"'`
17369 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17370 $as_echo "$ac_res" >&6; }
17371 as_val=`eval 'as_val=${'$as_ac_Lib'}
17372 $as_echo "$as_val"'`
17373 if test "x$as_val" = x""yes; then
17388 # If we found it, no need to search any more.
17389 if test "$result" = "yes"; then
17394 test "$found" != "not" && break
17396 test "$found" != "not" && break
17399 # Restore the original values of the flags we tweak.
17400 LDFLAGS="$apu_check_lib_save_ldflags"
17401 CPPFLAGS="$apu_check_lib_save_cppflags"
17408 apu_db_header=$bdb_header
17409 apu_db_lib=$bdb_libname
17413 header="`echo $found | sed -e 's/:.*$//'`"
17414 lib="`echo $found | sed -e 's/^.*://'`"
17417 if test "x$APRUTIL_INCLUDES" = "x"; then
17418 echo " setting APRUTIL_INCLUDES to \"-I$header\""
17419 APRUTIL_INCLUDES="-I$header"
17421 apr_addto_bugger="-I$header"
17422 for i in $apr_addto_bugger; do
17423 apr_addto_duplicate="0"
17424 for j in $APRUTIL_INCLUDES; do
17425 if test "x$i" = "x$j"; then
17426 apr_addto_duplicate="1"
17430 if test $apr_addto_duplicate = "0"; then
17431 echo " adding \"$i\" to APRUTIL_INCLUDES"
17432 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
17438 if test "x$APRUTIL_LDFLAGS" = "x"; then
17439 echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
17440 APRUTIL_LDFLAGS="-L$lib"
17442 apr_addto_bugger="-L$lib"
17443 for i in $apr_addto_bugger; do
17444 apr_addto_duplicate="0"
17445 for j in $APRUTIL_LDFLAGS; do
17446 if test "x$i" = "x$j"; then
17447 apr_addto_duplicate="1"
17451 if test $apr_addto_duplicate = "0"; then
17452 echo " adding \"$i\" to APRUTIL_LDFLAGS"
17453 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
17458 apu_db_header=$bdb_header
17459 apu_db_lib=$bdb_libname
17464 if test "x$APRUTIL_INCLUDES" = "x"; then
17465 echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
17466 APRUTIL_INCLUDES="-I$found/include"
17468 apr_addto_bugger="-I$found/include"
17469 for i in $apr_addto_bugger; do
17470 apr_addto_duplicate="0"
17471 for j in $APRUTIL_INCLUDES; do
17472 if test "x$i" = "x$j"; then
17473 apr_addto_duplicate="1"
17477 if test $apr_addto_duplicate = "0"; then
17478 echo " adding \"$i\" to APRUTIL_INCLUDES"
17479 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
17485 if test "x$APRUTIL_LDFLAGS" = "x"; then
17486 echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
17487 APRUTIL_LDFLAGS="-L$found/lib"
17489 apr_addto_bugger="-L$found/lib"
17490 for i in $apr_addto_bugger; do
17491 apr_addto_duplicate="0"
17492 for j in $APRUTIL_LDFLAGS; do
17493 if test "x$i" = "x$j"; then
17494 apr_addto_duplicate="1"
17498 if test $apr_addto_duplicate = "0"; then
17499 echo " adding \"$i\" to APRUTIL_LDFLAGS"
17500 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
17505 apu_db_header=$bdb_header
17506 apu_db_lib=$bdb_libname
17511 if test "$apu_have_db" = "1"; then
17527 { $as_echo "$as_me:$LINENO: checking for Berkeley DB" >&5
17528 $as_echo_n "checking for Berkeley DB... " >&6; }
17529 if test "$apu_have_db" = "1"; then
17530 { $as_echo "$as_me:$LINENO: result: found db$apu_db_version" >&5
17531 $as_echo "found db$apu_db_version" >&6; }
17533 { $as_echo "$as_me:$LINENO: result: not found" >&5
17534 $as_echo "not found" >&6; }
17537 if test "$apu_have_db" = "0"; then
17538 { { $as_echo "$as_me:$LINENO: error: Berkeley db requested" >&5
17539 $as_echo "$as_me: error: Berkeley db requested" >&2;}
17540 { (exit but not found); exit but not found; }; }
17545 places="$check_places"
17546 if test -z "$places"; then
17551 if test "0" != "-1"; then
17552 bdb_version="$bdb_version.0"
17553 if test "0" != "-1"; then
17554 bdb_version="$bdb_version.0"
17557 bdb_places="$places"
17558 bdb_default_search_headers="db1/db.h db.h"
17559 bdb_default_search_lib_names="db1"
17564 # Save the original values of the flags we tweak.
17565 apu_check_lib_save_libs="$LIBS"
17566 apu_check_lib_save_ldflags="$LDFLAGS"
17567 apu_check_lib_save_cppflags="$CPPFLAGS"
17569 # The variable `found' is the prefix under which we've found
17570 # Berkeley DB, or `not' if we haven't found it anywhere yet.
17572 for bdb_place in $bdb_places; do
17574 LDFLAGS="$apu_check_lib_save_ldflags"
17575 CPPFLAGS="$apu_check_lib_save_cppflags"
17576 case "$bdb_place" in
17578 description="the standard places"
17581 header="`echo $bdb_place | sed -e 's/:.*$//'`"
17582 lib="`echo $bdb_place | sed -e 's/^.*://'`"
17583 CPPFLAGS="$CPPFLAGS -I$header"
17584 LDFLAGS="$LDFLAGS -L$lib"
17585 description="$header and $lib"
17588 if test -d $bdb_place; then
17589 LDFLAGS="$LDFLAGS -L$bdb_place/lib"
17590 CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
17592 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
17593 $as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; }
17594 { $as_echo "$as_me:$LINENO: result: directory not found" >&5
17595 $as_echo "directory not found" >&6; }
17598 description="$bdb_place"
17602 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
17603 # trick to display a message instead.
17604 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
17605 $as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; }
17606 { $as_echo "$as_me:$LINENO: result: " >&5
17609 for bdb_libname in $bdb_default_search_lib_names; do
17610 for bdb_header in $bdb_default_search_headers; do
17611 # Clear the header cache variable for each location
17613 cache_id="`echo ac_cv_header_${bdb_header} \
17614 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
17617 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh`
17618 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17619 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
17620 $as_echo_n "checking for $bdb_header... " >&6; }
17621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17622 $as_echo_n "(cached) " >&6
17624 ac_res=`eval 'as_val=${'$as_ac_Header'}
17625 $as_echo "$as_val"'`
17626 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17627 $as_echo "$ac_res" >&6; }
17629 # Is the header compilable?
17630 { $as_echo "$as_me:$LINENO: checking $bdb_header usability" >&5
17631 $as_echo_n "checking $bdb_header usability... " >&6; }
17632 cat >conftest.$ac_ext <<_ACEOF
17635 cat confdefs.h >>conftest.$ac_ext
17636 cat >>conftest.$ac_ext <<_ACEOF
17637 /* end confdefs.h. */
17638 $ac_includes_default
17639 #include <$bdb_header>
17641 rm -f conftest.$ac_objext
17642 if { (ac_try="$ac_compile"
17643 case "(($ac_try" in
17644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17645 *) ac_try_echo=$ac_try;;
17647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17648 $as_echo "$ac_try_echo") >&5
17649 (eval "$ac_compile") 2>conftest.er1
17651 grep -v '^ *+' conftest.er1 >conftest.err
17653 cat conftest.err >&5
17654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655 (exit $ac_status); } && {
17656 test -z "$ac_c_werror_flag" ||
17657 test ! -s conftest.err
17658 } && test -s conftest.$ac_objext; then
17659 ac_header_compiler=yes
17661 $as_echo "$as_me: failed program was:" >&5
17662 sed 's/^/| /' conftest.$ac_ext >&5
17664 ac_header_compiler=no
17667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17668 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17669 $as_echo "$ac_header_compiler" >&6; }
17671 # Is the header present?
17672 { $as_echo "$as_me:$LINENO: checking $bdb_header presence" >&5
17673 $as_echo_n "checking $bdb_header presence... " >&6; }
17674 cat >conftest.$ac_ext <<_ACEOF
17677 cat confdefs.h >>conftest.$ac_ext
17678 cat >>conftest.$ac_ext <<_ACEOF
17679 /* end confdefs.h. */
17680 #include <$bdb_header>
17682 if { (ac_try="$ac_cpp conftest.$ac_ext"
17683 case "(($ac_try" in
17684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17685 *) ac_try_echo=$ac_try;;
17687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17688 $as_echo "$ac_try_echo") >&5
17689 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17691 grep -v '^ *+' conftest.er1 >conftest.err
17693 cat conftest.err >&5
17694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695 (exit $ac_status); } >/dev/null && {
17696 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17697 test ! -s conftest.err
17699 ac_header_preproc=yes
17701 $as_echo "$as_me: failed program was:" >&5
17702 sed 's/^/| /' conftest.$ac_ext >&5
17704 ac_header_preproc=no
17707 rm -f conftest.err conftest.$ac_ext
17708 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17709 $as_echo "$ac_header_preproc" >&6; }
17711 # So? What about this header?
17712 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17714 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
17715 $as_echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17716 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
17717 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
17718 ac_header_preproc=yes
17721 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
17722 $as_echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
17723 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
17724 $as_echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
17725 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
17726 $as_echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
17727 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
17728 $as_echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
17729 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
17730 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
17731 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
17732 $as_echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
17736 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
17737 $as_echo_n "checking for $bdb_header... " >&6; }
17738 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17739 $as_echo_n "(cached) " >&6
17741 eval "$as_ac_Header=\$ac_header_preproc"
17743 ac_res=`eval 'as_val=${'$as_ac_Header'}
17744 $as_echo "$as_val"'`
17745 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17746 $as_echo "$ac_res" >&6; }
17749 as_val=`eval 'as_val=${'$as_ac_Header'}
17750 $as_echo "$as_val"'`
17751 if test "x$as_val" = x""yes; then
17753 if test "1" = "3" -o "1" = "4"; then
17754 # We generate a separate cache variable for each prefix and libname
17755 # we search under. That way, we avoid caching information that
17756 # changes if the user runs `configure' with a different set of
17759 cache_id="`echo apu_cv_check_berkeley_db_1_0_0_${bdb_header}_${bdb_libname}_in_${bdb_place} \
17760 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
17763 { $as_echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
17764 $as_echo_n "checking for -l$bdb_libname... " >&6; }
17765 if { as_var=$cache_id; eval "test \"\${$as_var+set}\" = set"; }; then
17766 $as_echo_n "(cached) " >&6
17770 apu_try_berkeley_db_save_libs="$LIBS"
17772 apu_check_berkeley_db_major=1
17773 apu_check_berkeley_db_minor=0
17774 apu_check_berkeley_db_patch=0
17775 apu_try_berkeley_db_header=$bdb_header
17776 apu_try_berkeley_db_libname=$bdb_libname
17778 LIBS="$LIBS -l$apu_try_berkeley_db_libname"
17779 if test "$cross_compiling" = yes; then
17780 apu_try_berkeley_db=yes
17783 cat >conftest.$ac_ext <<_ACEOF
17786 cat confdefs.h >>conftest.$ac_ext
17787 cat >>conftest.$ac_ext <<_ACEOF
17788 /* end confdefs.h. */
17790 #include <stdlib.h>
17792 #include <$apu_try_berkeley_db_header>
17795 int major, minor, patch;
17797 db_version(&major, &minor, &patch);
17799 /* Sanity check: ensure that db.h constants actually match the db library */
17800 if (major != DB_VERSION_MAJOR
17801 || minor != DB_VERSION_MINOR
17802 || patch != DB_VERSION_PATCH)
17805 /* Run-time check: ensure the library claims to be the correct version. */
17807 if ($apu_check_berkeley_db_major != -1) {
17808 if (major < $apu_check_berkeley_db_major)
17810 if (major > $apu_check_berkeley_db_major)
17814 if ($apu_check_berkeley_db_minor != -1) {
17815 if (minor < $apu_check_berkeley_db_minor)
17817 if (minor > $apu_check_berkeley_db_minor)
17821 if ($apu_check_berkeley_db_patch == -1
17822 || patch >= $apu_check_berkeley_db_patch)
17829 rm -f conftest$ac_exeext
17830 if { (ac_try="$ac_link"
17831 case "(($ac_try" in
17832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17833 *) ac_try_echo=$ac_try;;
17835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17836 $as_echo "$ac_try_echo") >&5
17837 (eval "$ac_link") 2>&5
17839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17841 { (case "(($ac_try" in
17842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17843 *) ac_try_echo=$ac_try;;
17845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17846 $as_echo "$ac_try_echo") >&5
17847 (eval "$ac_try") 2>&5
17849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17850 (exit $ac_status); }; }; then
17851 apu_try_berkeley_db=yes
17853 $as_echo "$as_me: program exited with status $ac_status" >&5
17854 $as_echo "$as_me: failed program was:" >&5
17855 sed 's/^/| /' conftest.$ac_ext >&5
17857 ( exit $ac_status )
17858 apu_try_berkeley_db=no
17860 rm -rf conftest.dSYM
17861 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17866 LIBS="$apu_try_berkeley_db_save_libs"
17869 eval "$cache_id=$apu_try_berkeley_db"
17873 result="`eval echo '$'$cache_id`"
17874 { $as_echo "$as_me:$LINENO: result: $result" >&5
17875 $as_echo "$result" >&6; }
17876 elif test "1" = "1"; then
17877 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
17878 { $as_echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
17879 $as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; }
17880 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
17881 $as_echo_n "(cached) " >&6
17883 ac_check_lib_save_LIBS=$LIBS
17884 LIBS="-l$bdb_libname $LIBS"
17885 cat >conftest.$ac_ext <<_ACEOF
17888 cat confdefs.h >>conftest.$ac_ext
17889 cat >>conftest.$ac_ext <<_ACEOF
17890 /* end confdefs.h. */
17892 /* Override any GCC internal prototype to avoid an error.
17893 Use char because int might match the return type of a GCC
17894 builtin and then its argument prototype would still apply. */
17907 rm -f conftest.$ac_objext conftest$ac_exeext
17908 if { (ac_try="$ac_link"
17909 case "(($ac_try" in
17910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17911 *) ac_try_echo=$ac_try;;
17913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17914 $as_echo "$ac_try_echo") >&5
17915 (eval "$ac_link") 2>conftest.er1
17917 grep -v '^ *+' conftest.er1 >conftest.err
17919 cat conftest.err >&5
17920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921 (exit $ac_status); } && {
17922 test -z "$ac_c_werror_flag" ||
17923 test ! -s conftest.err
17924 } && test -s conftest$ac_exeext && {
17925 test "$cross_compiling" = yes ||
17926 $as_test_x conftest$ac_exeext
17928 eval "$as_ac_Lib=yes"
17930 $as_echo "$as_me: failed program was:" >&5
17931 sed 's/^/| /' conftest.$ac_ext >&5
17933 eval "$as_ac_Lib=no"
17936 rm -rf conftest.dSYM
17937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17938 conftest$ac_exeext conftest.$ac_ext
17939 LIBS=$ac_check_lib_save_LIBS
17941 ac_res=`eval 'as_val=${'$as_ac_Lib'}
17942 $as_echo "$as_val"'`
17943 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17944 $as_echo "$ac_res" >&6; }
17945 as_val=`eval 'as_val=${'$as_ac_Lib'}
17946 $as_echo "$as_val"'`
17947 if test "x$as_val" = x""yes; then
17954 elif test "1" = "2"; then
17955 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
17956 { $as_echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
17957 $as_echo_n "checking for db_open in -l$bdb_libname... " >&6; }
17958 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
17959 $as_echo_n "(cached) " >&6
17961 ac_check_lib_save_LIBS=$LIBS
17962 LIBS="-l$bdb_libname $LIBS"
17963 cat >conftest.$ac_ext <<_ACEOF
17966 cat confdefs.h >>conftest.$ac_ext
17967 cat >>conftest.$ac_ext <<_ACEOF
17968 /* end confdefs.h. */
17970 /* Override any GCC internal prototype to avoid an error.
17971 Use char because int might match the return type of a GCC
17972 builtin and then its argument prototype would still apply. */
17985 rm -f conftest.$ac_objext conftest$ac_exeext
17986 if { (ac_try="$ac_link"
17987 case "(($ac_try" in
17988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17989 *) ac_try_echo=$ac_try;;
17991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17992 $as_echo "$ac_try_echo") >&5
17993 (eval "$ac_link") 2>conftest.er1
17995 grep -v '^ *+' conftest.er1 >conftest.err
17997 cat conftest.err >&5
17998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999 (exit $ac_status); } && {
18000 test -z "$ac_c_werror_flag" ||
18001 test ! -s conftest.err
18002 } && test -s conftest$ac_exeext && {
18003 test "$cross_compiling" = yes ||
18004 $as_test_x conftest$ac_exeext
18006 eval "$as_ac_Lib=yes"
18008 $as_echo "$as_me: failed program was:" >&5
18009 sed 's/^/| /' conftest.$ac_ext >&5
18011 eval "$as_ac_Lib=no"
18014 rm -rf conftest.dSYM
18015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18016 conftest$ac_exeext conftest.$ac_ext
18017 LIBS=$ac_check_lib_save_LIBS
18019 ac_res=`eval 'as_val=${'$as_ac_Lib'}
18020 $as_echo "$as_val"'`
18021 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18022 $as_echo "$ac_res" >&6; }
18023 as_val=`eval 'as_val=${'$as_ac_Lib'}
18024 $as_echo "$as_val"'`
18025 if test "x$as_val" = x""yes; then
18040 # If we found it, no need to search any more.
18041 if test "$result" = "yes"; then
18046 test "$found" != "not" && break
18048 test "$found" != "not" && break
18051 # Restore the original values of the flags we tweak.
18052 LDFLAGS="$apu_check_lib_save_ldflags"
18053 CPPFLAGS="$apu_check_lib_save_cppflags"
18060 apu_db_header=$bdb_header
18061 apu_db_lib=$bdb_libname
18065 header="`echo $found | sed -e 's/:.*$//'`"
18066 lib="`echo $found | sed -e 's/^.*://'`"
18069 if test "x$APRUTIL_INCLUDES" = "x"; then
18070 echo " setting APRUTIL_INCLUDES to \"-I$header\""
18071 APRUTIL_INCLUDES="-I$header"
18073 apr_addto_bugger="-I$header"
18074 for i in $apr_addto_bugger; do
18075 apr_addto_duplicate="0"
18076 for j in $APRUTIL_INCLUDES; do
18077 if test "x$i" = "x$j"; then
18078 apr_addto_duplicate="1"
18082 if test $apr_addto_duplicate = "0"; then
18083 echo " adding \"$i\" to APRUTIL_INCLUDES"
18084 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
18090 if test "x$APRUTIL_LDFLAGS" = "x"; then
18091 echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
18092 APRUTIL_LDFLAGS="-L$lib"
18094 apr_addto_bugger="-L$lib"
18095 for i in $apr_addto_bugger; do
18096 apr_addto_duplicate="0"
18097 for j in $APRUTIL_LDFLAGS; do
18098 if test "x$i" = "x$j"; then
18099 apr_addto_duplicate="1"
18103 if test $apr_addto_duplicate = "0"; then
18104 echo " adding \"$i\" to APRUTIL_LDFLAGS"
18105 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
18110 apu_db_header=$bdb_header
18111 apu_db_lib=$bdb_libname
18116 if test "x$APRUTIL_INCLUDES" = "x"; then
18117 echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
18118 APRUTIL_INCLUDES="-I$found/include"
18120 apr_addto_bugger="-I$found/include"
18121 for i in $apr_addto_bugger; do
18122 apr_addto_duplicate="0"
18123 for j in $APRUTIL_INCLUDES; do
18124 if test "x$i" = "x$j"; then
18125 apr_addto_duplicate="1"
18129 if test $apr_addto_duplicate = "0"; then
18130 echo " adding \"$i\" to APRUTIL_INCLUDES"
18131 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
18137 if test "x$APRUTIL_LDFLAGS" = "x"; then
18138 echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
18139 APRUTIL_LDFLAGS="-L$found/lib"
18141 apr_addto_bugger="-L$found/lib"
18142 for i in $apr_addto_bugger; do
18143 apr_addto_duplicate="0"
18144 for j in $APRUTIL_LDFLAGS; do
18145 if test "x$i" = "x$j"; then
18146 apr_addto_duplicate="1"
18150 if test $apr_addto_duplicate = "0"; then
18151 echo " adding \"$i\" to APRUTIL_LDFLAGS"
18152 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
18157 apu_db_header=$bdb_header
18158 apu_db_lib=$bdb_libname
18163 if test "$apu_have_db" = "1"; then
18167 if test "$apu_db_version" != "1"; then
18168 { { $as_echo "$as_me:$LINENO: error: Berkeley db1 not found" >&5
18169 $as_echo "$as_me: error: Berkeley db1 not found" >&2;}
18170 { (exit 1); exit 1; }; }
18175 places="$check_places"
18176 if test -z "$places"; then
18181 if test "-1" != "-1"; then
18182 bdb_version="$bdb_version.-1"
18183 if test "-1" != "-1"; then
18184 bdb_version="$bdb_version.-1"
18187 bdb_places="$places"
18188 bdb_default_search_headers="db_185.h"
18189 bdb_default_search_lib_names="db"
18194 # Save the original values of the flags we tweak.
18195 apu_check_lib_save_libs="$LIBS"
18196 apu_check_lib_save_ldflags="$LDFLAGS"
18197 apu_check_lib_save_cppflags="$CPPFLAGS"
18199 # The variable `found' is the prefix under which we've found
18200 # Berkeley DB, or `not' if we haven't found it anywhere yet.
18202 for bdb_place in $bdb_places; do
18204 LDFLAGS="$apu_check_lib_save_ldflags"
18205 CPPFLAGS="$apu_check_lib_save_cppflags"
18206 case "$bdb_place" in
18208 description="the standard places"
18211 header="`echo $bdb_place | sed -e 's/:.*$//'`"
18212 lib="`echo $bdb_place | sed -e 's/^.*://'`"
18213 CPPFLAGS="$CPPFLAGS -I$header"
18214 LDFLAGS="$LDFLAGS -L$lib"
18215 description="$header and $lib"
18218 if test -d $bdb_place; then
18219 LDFLAGS="$LDFLAGS -L$bdb_place/lib"
18220 CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
18222 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
18223 $as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; }
18224 { $as_echo "$as_me:$LINENO: result: directory not found" >&5
18225 $as_echo "directory not found" >&6; }
18228 description="$bdb_place"
18232 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
18233 # trick to display a message instead.
18234 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
18235 $as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; }
18236 { $as_echo "$as_me:$LINENO: result: " >&5
18239 for bdb_libname in $bdb_default_search_lib_names; do
18240 for bdb_header in $bdb_default_search_headers; do
18241 # Clear the header cache variable for each location
18243 cache_id="`echo ac_cv_header_${bdb_header} \
18244 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
18247 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh`
18248 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18249 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
18250 $as_echo_n "checking for $bdb_header... " >&6; }
18251 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18252 $as_echo_n "(cached) " >&6
18254 ac_res=`eval 'as_val=${'$as_ac_Header'}
18255 $as_echo "$as_val"'`
18256 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18257 $as_echo "$ac_res" >&6; }
18259 # Is the header compilable?
18260 { $as_echo "$as_me:$LINENO: checking $bdb_header usability" >&5
18261 $as_echo_n "checking $bdb_header usability... " >&6; }
18262 cat >conftest.$ac_ext <<_ACEOF
18265 cat confdefs.h >>conftest.$ac_ext
18266 cat >>conftest.$ac_ext <<_ACEOF
18267 /* end confdefs.h. */
18268 $ac_includes_default
18269 #include <$bdb_header>
18271 rm -f conftest.$ac_objext
18272 if { (ac_try="$ac_compile"
18273 case "(($ac_try" in
18274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18275 *) ac_try_echo=$ac_try;;
18277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18278 $as_echo "$ac_try_echo") >&5
18279 (eval "$ac_compile") 2>conftest.er1
18281 grep -v '^ *+' conftest.er1 >conftest.err
18283 cat conftest.err >&5
18284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285 (exit $ac_status); } && {
18286 test -z "$ac_c_werror_flag" ||
18287 test ! -s conftest.err
18288 } && test -s conftest.$ac_objext; then
18289 ac_header_compiler=yes
18291 $as_echo "$as_me: failed program was:" >&5
18292 sed 's/^/| /' conftest.$ac_ext >&5
18294 ac_header_compiler=no
18297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18298 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18299 $as_echo "$ac_header_compiler" >&6; }
18301 # Is the header present?
18302 { $as_echo "$as_me:$LINENO: checking $bdb_header presence" >&5
18303 $as_echo_n "checking $bdb_header presence... " >&6; }
18304 cat >conftest.$ac_ext <<_ACEOF
18307 cat confdefs.h >>conftest.$ac_ext
18308 cat >>conftest.$ac_ext <<_ACEOF
18309 /* end confdefs.h. */
18310 #include <$bdb_header>
18312 if { (ac_try="$ac_cpp conftest.$ac_ext"
18313 case "(($ac_try" in
18314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18315 *) ac_try_echo=$ac_try;;
18317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18318 $as_echo "$ac_try_echo") >&5
18319 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18321 grep -v '^ *+' conftest.er1 >conftest.err
18323 cat conftest.err >&5
18324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18325 (exit $ac_status); } >/dev/null && {
18326 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18327 test ! -s conftest.err
18329 ac_header_preproc=yes
18331 $as_echo "$as_me: failed program was:" >&5
18332 sed 's/^/| /' conftest.$ac_ext >&5
18334 ac_header_preproc=no
18337 rm -f conftest.err conftest.$ac_ext
18338 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18339 $as_echo "$ac_header_preproc" >&6; }
18341 # So? What about this header?
18342 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18344 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
18345 $as_echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18346 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
18347 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
18348 ac_header_preproc=yes
18351 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
18352 $as_echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
18353 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
18354 $as_echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
18355 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
18356 $as_echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
18357 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
18358 $as_echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
18359 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
18360 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
18361 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
18362 $as_echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
18366 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
18367 $as_echo_n "checking for $bdb_header... " >&6; }
18368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18369 $as_echo_n "(cached) " >&6
18371 eval "$as_ac_Header=\$ac_header_preproc"
18373 ac_res=`eval 'as_val=${'$as_ac_Header'}
18374 $as_echo "$as_val"'`
18375 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18376 $as_echo "$ac_res" >&6; }
18379 as_val=`eval 'as_val=${'$as_ac_Header'}
18380 $as_echo "$as_val"'`
18381 if test "x$as_val" = x""yes; then
18383 if test "1" = "3" -o "1" = "4"; then
18384 # We generate a separate cache variable for each prefix and libname
18385 # we search under. That way, we avoid caching information that
18386 # changes if the user runs `configure' with a different set of
18389 cache_id="`echo apu_cv_check_berkeley_db_1_-1_-1_${bdb_header}_${bdb_libname}_in_${bdb_place} \
18390 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
18393 { $as_echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
18394 $as_echo_n "checking for -l$bdb_libname... " >&6; }
18395 if { as_var=$cache_id; eval "test \"\${$as_var+set}\" = set"; }; then
18396 $as_echo_n "(cached) " >&6
18400 apu_try_berkeley_db_save_libs="$LIBS"
18402 apu_check_berkeley_db_major=1
18403 apu_check_berkeley_db_minor=-1
18404 apu_check_berkeley_db_patch=-1
18405 apu_try_berkeley_db_header=$bdb_header
18406 apu_try_berkeley_db_libname=$bdb_libname
18408 LIBS="$LIBS -l$apu_try_berkeley_db_libname"
18409 if test "$cross_compiling" = yes; then
18410 apu_try_berkeley_db=yes
18413 cat >conftest.$ac_ext <<_ACEOF
18416 cat confdefs.h >>conftest.$ac_ext
18417 cat >>conftest.$ac_ext <<_ACEOF
18418 /* end confdefs.h. */
18420 #include <stdlib.h>
18422 #include <$apu_try_berkeley_db_header>
18425 int major, minor, patch;
18427 db_version(&major, &minor, &patch);
18429 /* Sanity check: ensure that db.h constants actually match the db library */
18430 if (major != DB_VERSION_MAJOR
18431 || minor != DB_VERSION_MINOR
18432 || patch != DB_VERSION_PATCH)
18435 /* Run-time check: ensure the library claims to be the correct version. */
18437 if ($apu_check_berkeley_db_major != -1) {
18438 if (major < $apu_check_berkeley_db_major)
18440 if (major > $apu_check_berkeley_db_major)
18444 if ($apu_check_berkeley_db_minor != -1) {
18445 if (minor < $apu_check_berkeley_db_minor)
18447 if (minor > $apu_check_berkeley_db_minor)
18451 if ($apu_check_berkeley_db_patch == -1
18452 || patch >= $apu_check_berkeley_db_patch)
18459 rm -f conftest$ac_exeext
18460 if { (ac_try="$ac_link"
18461 case "(($ac_try" in
18462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18463 *) ac_try_echo=$ac_try;;
18465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18466 $as_echo "$ac_try_echo") >&5
18467 (eval "$ac_link") 2>&5
18469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18471 { (case "(($ac_try" in
18472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18473 *) ac_try_echo=$ac_try;;
18475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18476 $as_echo "$ac_try_echo") >&5
18477 (eval "$ac_try") 2>&5
18479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480 (exit $ac_status); }; }; then
18481 apu_try_berkeley_db=yes
18483 $as_echo "$as_me: program exited with status $ac_status" >&5
18484 $as_echo "$as_me: failed program was:" >&5
18485 sed 's/^/| /' conftest.$ac_ext >&5
18487 ( exit $ac_status )
18488 apu_try_berkeley_db=no
18490 rm -rf conftest.dSYM
18491 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18496 LIBS="$apu_try_berkeley_db_save_libs"
18499 eval "$cache_id=$apu_try_berkeley_db"
18503 result="`eval echo '$'$cache_id`"
18504 { $as_echo "$as_me:$LINENO: result: $result" >&5
18505 $as_echo "$result" >&6; }
18506 elif test "1" = "1"; then
18507 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
18508 { $as_echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
18509 $as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; }
18510 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
18511 $as_echo_n "(cached) " >&6
18513 ac_check_lib_save_LIBS=$LIBS
18514 LIBS="-l$bdb_libname $LIBS"
18515 cat >conftest.$ac_ext <<_ACEOF
18518 cat confdefs.h >>conftest.$ac_ext
18519 cat >>conftest.$ac_ext <<_ACEOF
18520 /* end confdefs.h. */
18522 /* Override any GCC internal prototype to avoid an error.
18523 Use char because int might match the return type of a GCC
18524 builtin and then its argument prototype would still apply. */
18537 rm -f conftest.$ac_objext conftest$ac_exeext
18538 if { (ac_try="$ac_link"
18539 case "(($ac_try" in
18540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18541 *) ac_try_echo=$ac_try;;
18543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18544 $as_echo "$ac_try_echo") >&5
18545 (eval "$ac_link") 2>conftest.er1
18547 grep -v '^ *+' conftest.er1 >conftest.err
18549 cat conftest.err >&5
18550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18551 (exit $ac_status); } && {
18552 test -z "$ac_c_werror_flag" ||
18553 test ! -s conftest.err
18554 } && test -s conftest$ac_exeext && {
18555 test "$cross_compiling" = yes ||
18556 $as_test_x conftest$ac_exeext
18558 eval "$as_ac_Lib=yes"
18560 $as_echo "$as_me: failed program was:" >&5
18561 sed 's/^/| /' conftest.$ac_ext >&5
18563 eval "$as_ac_Lib=no"
18566 rm -rf conftest.dSYM
18567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18568 conftest$ac_exeext conftest.$ac_ext
18569 LIBS=$ac_check_lib_save_LIBS
18571 ac_res=`eval 'as_val=${'$as_ac_Lib'}
18572 $as_echo "$as_val"'`
18573 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18574 $as_echo "$ac_res" >&6; }
18575 as_val=`eval 'as_val=${'$as_ac_Lib'}
18576 $as_echo "$as_val"'`
18577 if test "x$as_val" = x""yes; then
18584 elif test "1" = "2"; then
18585 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
18586 { $as_echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
18587 $as_echo_n "checking for db_open in -l$bdb_libname... " >&6; }
18588 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
18589 $as_echo_n "(cached) " >&6
18591 ac_check_lib_save_LIBS=$LIBS
18592 LIBS="-l$bdb_libname $LIBS"
18593 cat >conftest.$ac_ext <<_ACEOF
18596 cat confdefs.h >>conftest.$ac_ext
18597 cat >>conftest.$ac_ext <<_ACEOF
18598 /* end confdefs.h. */
18600 /* Override any GCC internal prototype to avoid an error.
18601 Use char because int might match the return type of a GCC
18602 builtin and then its argument prototype would still apply. */
18615 rm -f conftest.$ac_objext conftest$ac_exeext
18616 if { (ac_try="$ac_link"
18617 case "(($ac_try" in
18618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18619 *) ac_try_echo=$ac_try;;
18621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18622 $as_echo "$ac_try_echo") >&5
18623 (eval "$ac_link") 2>conftest.er1
18625 grep -v '^ *+' conftest.er1 >conftest.err
18627 cat conftest.err >&5
18628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18629 (exit $ac_status); } && {
18630 test -z "$ac_c_werror_flag" ||
18631 test ! -s conftest.err
18632 } && test -s conftest$ac_exeext && {
18633 test "$cross_compiling" = yes ||
18634 $as_test_x conftest$ac_exeext
18636 eval "$as_ac_Lib=yes"
18638 $as_echo "$as_me: failed program was:" >&5
18639 sed 's/^/| /' conftest.$ac_ext >&5
18641 eval "$as_ac_Lib=no"
18644 rm -rf conftest.dSYM
18645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18646 conftest$ac_exeext conftest.$ac_ext
18647 LIBS=$ac_check_lib_save_LIBS
18649 ac_res=`eval 'as_val=${'$as_ac_Lib'}
18650 $as_echo "$as_val"'`
18651 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18652 $as_echo "$ac_res" >&6; }
18653 as_val=`eval 'as_val=${'$as_ac_Lib'}
18654 $as_echo "$as_val"'`
18655 if test "x$as_val" = x""yes; then
18670 # If we found it, no need to search any more.
18671 if test "$result" = "yes"; then
18676 test "$found" != "not" && break
18678 test "$found" != "not" && break
18681 # Restore the original values of the flags we tweak.
18682 LDFLAGS="$apu_check_lib_save_ldflags"
18683 CPPFLAGS="$apu_check_lib_save_cppflags"
18690 apu_db_header=$bdb_header
18691 apu_db_lib=$bdb_libname
18695 header="`echo $found | sed -e 's/:.*$//'`"
18696 lib="`echo $found | sed -e 's/^.*://'`"
18699 if test "x$APRUTIL_INCLUDES" = "x"; then
18700 echo " setting APRUTIL_INCLUDES to \"-I$header\""
18701 APRUTIL_INCLUDES="-I$header"
18703 apr_addto_bugger="-I$header"
18704 for i in $apr_addto_bugger; do
18705 apr_addto_duplicate="0"
18706 for j in $APRUTIL_INCLUDES; do
18707 if test "x$i" = "x$j"; then
18708 apr_addto_duplicate="1"
18712 if test $apr_addto_duplicate = "0"; then
18713 echo " adding \"$i\" to APRUTIL_INCLUDES"
18714 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
18720 if test "x$APRUTIL_LDFLAGS" = "x"; then
18721 echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
18722 APRUTIL_LDFLAGS="-L$lib"
18724 apr_addto_bugger="-L$lib"
18725 for i in $apr_addto_bugger; do
18726 apr_addto_duplicate="0"
18727 for j in $APRUTIL_LDFLAGS; do
18728 if test "x$i" = "x$j"; then
18729 apr_addto_duplicate="1"
18733 if test $apr_addto_duplicate = "0"; then
18734 echo " adding \"$i\" to APRUTIL_LDFLAGS"
18735 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
18740 apu_db_header=$bdb_header
18741 apu_db_lib=$bdb_libname
18746 if test "x$APRUTIL_INCLUDES" = "x"; then
18747 echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
18748 APRUTIL_INCLUDES="-I$found/include"
18750 apr_addto_bugger="-I$found/include"
18751 for i in $apr_addto_bugger; do
18752 apr_addto_duplicate="0"
18753 for j in $APRUTIL_INCLUDES; do
18754 if test "x$i" = "x$j"; then
18755 apr_addto_duplicate="1"
18759 if test $apr_addto_duplicate = "0"; then
18760 echo " adding \"$i\" to APRUTIL_INCLUDES"
18761 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
18767 if test "x$APRUTIL_LDFLAGS" = "x"; then
18768 echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
18769 APRUTIL_LDFLAGS="-L$found/lib"
18771 apr_addto_bugger="-L$found/lib"
18772 for i in $apr_addto_bugger; do
18773 apr_addto_duplicate="0"
18774 for j in $APRUTIL_LDFLAGS; do
18775 if test "x$i" = "x$j"; then
18776 apr_addto_duplicate="1"
18780 if test $apr_addto_duplicate = "0"; then
18781 echo " adding \"$i\" to APRUTIL_LDFLAGS"
18782 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
18787 apu_db_header=$bdb_header
18788 apu_db_lib=$bdb_libname
18793 if test "$apu_have_db" = "1"; then
18797 if test "$apu_db_version" != "185"; then
18798 { { $as_echo "$as_me:$LINENO: error: Berkeley db185 not found" >&5
18799 $as_echo "$as_me: error: Berkeley db185 not found" >&2;}
18800 { (exit 1); exit 1; }; }
18805 places="$check_places"
18806 if test -z "$places"; then
18811 if test "-1" != "-1"; then
18812 bdb_version="$bdb_version.-1"
18813 if test "-1" != "-1"; then
18814 bdb_version="$bdb_version.-1"
18817 bdb_places="$places"
18818 bdb_default_search_headers="db2/db.h db.h"
18819 bdb_default_search_lib_names="db2 db"
18824 # Save the original values of the flags we tweak.
18825 apu_check_lib_save_libs="$LIBS"
18826 apu_check_lib_save_ldflags="$LDFLAGS"
18827 apu_check_lib_save_cppflags="$CPPFLAGS"
18829 # The variable `found' is the prefix under which we've found
18830 # Berkeley DB, or `not' if we haven't found it anywhere yet.
18832 for bdb_place in $bdb_places; do
18834 LDFLAGS="$apu_check_lib_save_ldflags"
18835 CPPFLAGS="$apu_check_lib_save_cppflags"
18836 case "$bdb_place" in
18838 description="the standard places"
18841 header="`echo $bdb_place | sed -e 's/:.*$//'`"
18842 lib="`echo $bdb_place | sed -e 's/^.*://'`"
18843 CPPFLAGS="$CPPFLAGS -I$header"
18844 LDFLAGS="$LDFLAGS -L$lib"
18845 description="$header and $lib"
18848 if test -d $bdb_place; then
18849 LDFLAGS="$LDFLAGS -L$bdb_place/lib"
18850 CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
18852 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
18853 $as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; }
18854 { $as_echo "$as_me:$LINENO: result: directory not found" >&5
18855 $as_echo "directory not found" >&6; }
18858 description="$bdb_place"
18862 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
18863 # trick to display a message instead.
18864 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
18865 $as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; }
18866 { $as_echo "$as_me:$LINENO: result: " >&5
18869 for bdb_libname in $bdb_default_search_lib_names; do
18870 for bdb_header in $bdb_default_search_headers; do
18871 # Clear the header cache variable for each location
18873 cache_id="`echo ac_cv_header_${bdb_header} \
18874 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
18877 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh`
18878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18879 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
18880 $as_echo_n "checking for $bdb_header... " >&6; }
18881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18882 $as_echo_n "(cached) " >&6
18884 ac_res=`eval 'as_val=${'$as_ac_Header'}
18885 $as_echo "$as_val"'`
18886 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18887 $as_echo "$ac_res" >&6; }
18889 # Is the header compilable?
18890 { $as_echo "$as_me:$LINENO: checking $bdb_header usability" >&5
18891 $as_echo_n "checking $bdb_header usability... " >&6; }
18892 cat >conftest.$ac_ext <<_ACEOF
18895 cat confdefs.h >>conftest.$ac_ext
18896 cat >>conftest.$ac_ext <<_ACEOF
18897 /* end confdefs.h. */
18898 $ac_includes_default
18899 #include <$bdb_header>
18901 rm -f conftest.$ac_objext
18902 if { (ac_try="$ac_compile"
18903 case "(($ac_try" in
18904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18905 *) ac_try_echo=$ac_try;;
18907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18908 $as_echo "$ac_try_echo") >&5
18909 (eval "$ac_compile") 2>conftest.er1
18911 grep -v '^ *+' conftest.er1 >conftest.err
18913 cat conftest.err >&5
18914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18915 (exit $ac_status); } && {
18916 test -z "$ac_c_werror_flag" ||
18917 test ! -s conftest.err
18918 } && test -s conftest.$ac_objext; then
18919 ac_header_compiler=yes
18921 $as_echo "$as_me: failed program was:" >&5
18922 sed 's/^/| /' conftest.$ac_ext >&5
18924 ac_header_compiler=no
18927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18928 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18929 $as_echo "$ac_header_compiler" >&6; }
18931 # Is the header present?
18932 { $as_echo "$as_me:$LINENO: checking $bdb_header presence" >&5
18933 $as_echo_n "checking $bdb_header presence... " >&6; }
18934 cat >conftest.$ac_ext <<_ACEOF
18937 cat confdefs.h >>conftest.$ac_ext
18938 cat >>conftest.$ac_ext <<_ACEOF
18939 /* end confdefs.h. */
18940 #include <$bdb_header>
18942 if { (ac_try="$ac_cpp conftest.$ac_ext"
18943 case "(($ac_try" in
18944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18945 *) ac_try_echo=$ac_try;;
18947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18948 $as_echo "$ac_try_echo") >&5
18949 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18951 grep -v '^ *+' conftest.er1 >conftest.err
18953 cat conftest.err >&5
18954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18955 (exit $ac_status); } >/dev/null && {
18956 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18957 test ! -s conftest.err
18959 ac_header_preproc=yes
18961 $as_echo "$as_me: failed program was:" >&5
18962 sed 's/^/| /' conftest.$ac_ext >&5
18964 ac_header_preproc=no
18967 rm -f conftest.err conftest.$ac_ext
18968 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18969 $as_echo "$ac_header_preproc" >&6; }
18971 # So? What about this header?
18972 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18974 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
18975 $as_echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18976 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
18977 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
18978 ac_header_preproc=yes
18981 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
18982 $as_echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
18983 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
18984 $as_echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
18985 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
18986 $as_echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
18987 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
18988 $as_echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
18989 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
18990 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
18991 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
18992 $as_echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
18996 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
18997 $as_echo_n "checking for $bdb_header... " >&6; }
18998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18999 $as_echo_n "(cached) " >&6
19001 eval "$as_ac_Header=\$ac_header_preproc"
19003 ac_res=`eval 'as_val=${'$as_ac_Header'}
19004 $as_echo "$as_val"'`
19005 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19006 $as_echo "$ac_res" >&6; }
19009 as_val=`eval 'as_val=${'$as_ac_Header'}
19010 $as_echo "$as_val"'`
19011 if test "x$as_val" = x""yes; then
19013 if test "2" = "3" -o "2" = "4"; then
19014 # We generate a separate cache variable for each prefix and libname
19015 # we search under. That way, we avoid caching information that
19016 # changes if the user runs `configure' with a different set of
19019 cache_id="`echo apu_cv_check_berkeley_db_2_-1_-1_${bdb_header}_${bdb_libname}_in_${bdb_place} \
19020 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
19023 { $as_echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
19024 $as_echo_n "checking for -l$bdb_libname... " >&6; }
19025 if { as_var=$cache_id; eval "test \"\${$as_var+set}\" = set"; }; then
19026 $as_echo_n "(cached) " >&6
19030 apu_try_berkeley_db_save_libs="$LIBS"
19032 apu_check_berkeley_db_major=2
19033 apu_check_berkeley_db_minor=-1
19034 apu_check_berkeley_db_patch=-1
19035 apu_try_berkeley_db_header=$bdb_header
19036 apu_try_berkeley_db_libname=$bdb_libname
19038 LIBS="$LIBS -l$apu_try_berkeley_db_libname"
19039 if test "$cross_compiling" = yes; then
19040 apu_try_berkeley_db=yes
19043 cat >conftest.$ac_ext <<_ACEOF
19046 cat confdefs.h >>conftest.$ac_ext
19047 cat >>conftest.$ac_ext <<_ACEOF
19048 /* end confdefs.h. */
19050 #include <stdlib.h>
19052 #include <$apu_try_berkeley_db_header>
19055 int major, minor, patch;
19057 db_version(&major, &minor, &patch);
19059 /* Sanity check: ensure that db.h constants actually match the db library */
19060 if (major != DB_VERSION_MAJOR
19061 || minor != DB_VERSION_MINOR
19062 || patch != DB_VERSION_PATCH)
19065 /* Run-time check: ensure the library claims to be the correct version. */
19067 if ($apu_check_berkeley_db_major != -1) {
19068 if (major < $apu_check_berkeley_db_major)
19070 if (major > $apu_check_berkeley_db_major)
19074 if ($apu_check_berkeley_db_minor != -1) {
19075 if (minor < $apu_check_berkeley_db_minor)
19077 if (minor > $apu_check_berkeley_db_minor)
19081 if ($apu_check_berkeley_db_patch == -1
19082 || patch >= $apu_check_berkeley_db_patch)
19089 rm -f conftest$ac_exeext
19090 if { (ac_try="$ac_link"
19091 case "(($ac_try" in
19092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19093 *) ac_try_echo=$ac_try;;
19095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19096 $as_echo "$ac_try_echo") >&5
19097 (eval "$ac_link") 2>&5
19099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19100 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19101 { (case "(($ac_try" in
19102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19103 *) ac_try_echo=$ac_try;;
19105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19106 $as_echo "$ac_try_echo") >&5
19107 (eval "$ac_try") 2>&5
19109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19110 (exit $ac_status); }; }; then
19111 apu_try_berkeley_db=yes
19113 $as_echo "$as_me: program exited with status $ac_status" >&5
19114 $as_echo "$as_me: failed program was:" >&5
19115 sed 's/^/| /' conftest.$ac_ext >&5
19117 ( exit $ac_status )
19118 apu_try_berkeley_db=no
19120 rm -rf conftest.dSYM
19121 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19126 LIBS="$apu_try_berkeley_db_save_libs"
19129 eval "$cache_id=$apu_try_berkeley_db"
19133 result="`eval echo '$'$cache_id`"
19134 { $as_echo "$as_me:$LINENO: result: $result" >&5
19135 $as_echo "$result" >&6; }
19136 elif test "2" = "1"; then
19137 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
19138 { $as_echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
19139 $as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; }
19140 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
19141 $as_echo_n "(cached) " >&6
19143 ac_check_lib_save_LIBS=$LIBS
19144 LIBS="-l$bdb_libname $LIBS"
19145 cat >conftest.$ac_ext <<_ACEOF
19148 cat confdefs.h >>conftest.$ac_ext
19149 cat >>conftest.$ac_ext <<_ACEOF
19150 /* end confdefs.h. */
19152 /* Override any GCC internal prototype to avoid an error.
19153 Use char because int might match the return type of a GCC
19154 builtin and then its argument prototype would still apply. */
19167 rm -f conftest.$ac_objext conftest$ac_exeext
19168 if { (ac_try="$ac_link"
19169 case "(($ac_try" in
19170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19171 *) ac_try_echo=$ac_try;;
19173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19174 $as_echo "$ac_try_echo") >&5
19175 (eval "$ac_link") 2>conftest.er1
19177 grep -v '^ *+' conftest.er1 >conftest.err
19179 cat conftest.err >&5
19180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181 (exit $ac_status); } && {
19182 test -z "$ac_c_werror_flag" ||
19183 test ! -s conftest.err
19184 } && test -s conftest$ac_exeext && {
19185 test "$cross_compiling" = yes ||
19186 $as_test_x conftest$ac_exeext
19188 eval "$as_ac_Lib=yes"
19190 $as_echo "$as_me: failed program was:" >&5
19191 sed 's/^/| /' conftest.$ac_ext >&5
19193 eval "$as_ac_Lib=no"
19196 rm -rf conftest.dSYM
19197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19198 conftest$ac_exeext conftest.$ac_ext
19199 LIBS=$ac_check_lib_save_LIBS
19201 ac_res=`eval 'as_val=${'$as_ac_Lib'}
19202 $as_echo "$as_val"'`
19203 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19204 $as_echo "$ac_res" >&6; }
19205 as_val=`eval 'as_val=${'$as_ac_Lib'}
19206 $as_echo "$as_val"'`
19207 if test "x$as_val" = x""yes; then
19214 elif test "2" = "2"; then
19215 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
19216 { $as_echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
19217 $as_echo_n "checking for db_open in -l$bdb_libname... " >&6; }
19218 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
19219 $as_echo_n "(cached) " >&6
19221 ac_check_lib_save_LIBS=$LIBS
19222 LIBS="-l$bdb_libname $LIBS"
19223 cat >conftest.$ac_ext <<_ACEOF
19226 cat confdefs.h >>conftest.$ac_ext
19227 cat >>conftest.$ac_ext <<_ACEOF
19228 /* end confdefs.h. */
19230 /* Override any GCC internal prototype to avoid an error.
19231 Use char because int might match the return type of a GCC
19232 builtin and then its argument prototype would still apply. */
19245 rm -f conftest.$ac_objext conftest$ac_exeext
19246 if { (ac_try="$ac_link"
19247 case "(($ac_try" in
19248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19249 *) ac_try_echo=$ac_try;;
19251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19252 $as_echo "$ac_try_echo") >&5
19253 (eval "$ac_link") 2>conftest.er1
19255 grep -v '^ *+' conftest.er1 >conftest.err
19257 cat conftest.err >&5
19258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259 (exit $ac_status); } && {
19260 test -z "$ac_c_werror_flag" ||
19261 test ! -s conftest.err
19262 } && test -s conftest$ac_exeext && {
19263 test "$cross_compiling" = yes ||
19264 $as_test_x conftest$ac_exeext
19266 eval "$as_ac_Lib=yes"
19268 $as_echo "$as_me: failed program was:" >&5
19269 sed 's/^/| /' conftest.$ac_ext >&5
19271 eval "$as_ac_Lib=no"
19274 rm -rf conftest.dSYM
19275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19276 conftest$ac_exeext conftest.$ac_ext
19277 LIBS=$ac_check_lib_save_LIBS
19279 ac_res=`eval 'as_val=${'$as_ac_Lib'}
19280 $as_echo "$as_val"'`
19281 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19282 $as_echo "$ac_res" >&6; }
19283 as_val=`eval 'as_val=${'$as_ac_Lib'}
19284 $as_echo "$as_val"'`
19285 if test "x$as_val" = x""yes; then
19300 # If we found it, no need to search any more.
19301 if test "$result" = "yes"; then
19306 test "$found" != "not" && break
19308 test "$found" != "not" && break
19311 # Restore the original values of the flags we tweak.
19312 LDFLAGS="$apu_check_lib_save_ldflags"
19313 CPPFLAGS="$apu_check_lib_save_cppflags"
19320 apu_db_header=$bdb_header
19321 apu_db_lib=$bdb_libname
19325 header="`echo $found | sed -e 's/:.*$//'`"
19326 lib="`echo $found | sed -e 's/^.*://'`"
19329 if test "x$APRUTIL_INCLUDES" = "x"; then
19330 echo " setting APRUTIL_INCLUDES to \"-I$header\""
19331 APRUTIL_INCLUDES="-I$header"
19333 apr_addto_bugger="-I$header"
19334 for i in $apr_addto_bugger; do
19335 apr_addto_duplicate="0"
19336 for j in $APRUTIL_INCLUDES; do
19337 if test "x$i" = "x$j"; then
19338 apr_addto_duplicate="1"
19342 if test $apr_addto_duplicate = "0"; then
19343 echo " adding \"$i\" to APRUTIL_INCLUDES"
19344 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
19350 if test "x$APRUTIL_LDFLAGS" = "x"; then
19351 echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
19352 APRUTIL_LDFLAGS="-L$lib"
19354 apr_addto_bugger="-L$lib"
19355 for i in $apr_addto_bugger; do
19356 apr_addto_duplicate="0"
19357 for j in $APRUTIL_LDFLAGS; do
19358 if test "x$i" = "x$j"; then
19359 apr_addto_duplicate="1"
19363 if test $apr_addto_duplicate = "0"; then
19364 echo " adding \"$i\" to APRUTIL_LDFLAGS"
19365 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
19370 apu_db_header=$bdb_header
19371 apu_db_lib=$bdb_libname
19376 if test "x$APRUTIL_INCLUDES" = "x"; then
19377 echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
19378 APRUTIL_INCLUDES="-I$found/include"
19380 apr_addto_bugger="-I$found/include"
19381 for i in $apr_addto_bugger; do
19382 apr_addto_duplicate="0"
19383 for j in $APRUTIL_INCLUDES; do
19384 if test "x$i" = "x$j"; then
19385 apr_addto_duplicate="1"
19389 if test $apr_addto_duplicate = "0"; then
19390 echo " adding \"$i\" to APRUTIL_INCLUDES"
19391 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
19397 if test "x$APRUTIL_LDFLAGS" = "x"; then
19398 echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
19399 APRUTIL_LDFLAGS="-L$found/lib"
19401 apr_addto_bugger="-L$found/lib"
19402 for i in $apr_addto_bugger; do
19403 apr_addto_duplicate="0"
19404 for j in $APRUTIL_LDFLAGS; do
19405 if test "x$i" = "x$j"; then
19406 apr_addto_duplicate="1"
19410 if test $apr_addto_duplicate = "0"; then
19411 echo " adding \"$i\" to APRUTIL_LDFLAGS"
19412 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
19417 apu_db_header=$bdb_header
19418 apu_db_lib=$bdb_libname
19423 if test "$apu_have_db" = "1"; then
19427 if test "$apu_db_version" != "2"; then
19428 { { $as_echo "$as_me:$LINENO: error: Berkeley db2 not found" >&5
19429 $as_echo "$as_me: error: Berkeley db2 not found" >&2;}
19430 { (exit 1); exit 1; }; }
19435 places="$check_places"
19436 if test -z "$places"; then
19441 if test "-1" != "-1"; then
19442 bdb_version="$bdb_version.-1"
19443 if test "-1" != "-1"; then
19444 bdb_version="$bdb_version.-1"
19447 bdb_places="$places"
19448 bdb_default_search_headers="db3/db.h db.h"
19449 bdb_default_search_lib_names="db3 db"
19454 # Save the original values of the flags we tweak.
19455 apu_check_lib_save_libs="$LIBS"
19456 apu_check_lib_save_ldflags="$LDFLAGS"
19457 apu_check_lib_save_cppflags="$CPPFLAGS"
19459 # The variable `found' is the prefix under which we've found
19460 # Berkeley DB, or `not' if we haven't found it anywhere yet.
19462 for bdb_place in $bdb_places; do
19464 LDFLAGS="$apu_check_lib_save_ldflags"
19465 CPPFLAGS="$apu_check_lib_save_cppflags"
19466 case "$bdb_place" in
19468 description="the standard places"
19471 header="`echo $bdb_place | sed -e 's/:.*$//'`"
19472 lib="`echo $bdb_place | sed -e 's/^.*://'`"
19473 CPPFLAGS="$CPPFLAGS -I$header"
19474 LDFLAGS="$LDFLAGS -L$lib"
19475 description="$header and $lib"
19478 if test -d $bdb_place; then
19479 LDFLAGS="$LDFLAGS -L$bdb_place/lib"
19480 CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
19482 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
19483 $as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; }
19484 { $as_echo "$as_me:$LINENO: result: directory not found" >&5
19485 $as_echo "directory not found" >&6; }
19488 description="$bdb_place"
19492 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
19493 # trick to display a message instead.
19494 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
19495 $as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; }
19496 { $as_echo "$as_me:$LINENO: result: " >&5
19499 for bdb_libname in $bdb_default_search_lib_names; do
19500 for bdb_header in $bdb_default_search_headers; do
19501 # Clear the header cache variable for each location
19503 cache_id="`echo ac_cv_header_${bdb_header} \
19504 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
19507 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh`
19508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19509 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
19510 $as_echo_n "checking for $bdb_header... " >&6; }
19511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19512 $as_echo_n "(cached) " >&6
19514 ac_res=`eval 'as_val=${'$as_ac_Header'}
19515 $as_echo "$as_val"'`
19516 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19517 $as_echo "$ac_res" >&6; }
19519 # Is the header compilable?
19520 { $as_echo "$as_me:$LINENO: checking $bdb_header usability" >&5
19521 $as_echo_n "checking $bdb_header usability... " >&6; }
19522 cat >conftest.$ac_ext <<_ACEOF
19525 cat confdefs.h >>conftest.$ac_ext
19526 cat >>conftest.$ac_ext <<_ACEOF
19527 /* end confdefs.h. */
19528 $ac_includes_default
19529 #include <$bdb_header>
19531 rm -f conftest.$ac_objext
19532 if { (ac_try="$ac_compile"
19533 case "(($ac_try" in
19534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19535 *) ac_try_echo=$ac_try;;
19537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19538 $as_echo "$ac_try_echo") >&5
19539 (eval "$ac_compile") 2>conftest.er1
19541 grep -v '^ *+' conftest.er1 >conftest.err
19543 cat conftest.err >&5
19544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19545 (exit $ac_status); } && {
19546 test -z "$ac_c_werror_flag" ||
19547 test ! -s conftest.err
19548 } && test -s conftest.$ac_objext; then
19549 ac_header_compiler=yes
19551 $as_echo "$as_me: failed program was:" >&5
19552 sed 's/^/| /' conftest.$ac_ext >&5
19554 ac_header_compiler=no
19557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19558 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19559 $as_echo "$ac_header_compiler" >&6; }
19561 # Is the header present?
19562 { $as_echo "$as_me:$LINENO: checking $bdb_header presence" >&5
19563 $as_echo_n "checking $bdb_header presence... " >&6; }
19564 cat >conftest.$ac_ext <<_ACEOF
19567 cat confdefs.h >>conftest.$ac_ext
19568 cat >>conftest.$ac_ext <<_ACEOF
19569 /* end confdefs.h. */
19570 #include <$bdb_header>
19572 if { (ac_try="$ac_cpp conftest.$ac_ext"
19573 case "(($ac_try" in
19574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19575 *) ac_try_echo=$ac_try;;
19577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19578 $as_echo "$ac_try_echo") >&5
19579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19581 grep -v '^ *+' conftest.er1 >conftest.err
19583 cat conftest.err >&5
19584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19585 (exit $ac_status); } >/dev/null && {
19586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19587 test ! -s conftest.err
19589 ac_header_preproc=yes
19591 $as_echo "$as_me: failed program was:" >&5
19592 sed 's/^/| /' conftest.$ac_ext >&5
19594 ac_header_preproc=no
19597 rm -f conftest.err conftest.$ac_ext
19598 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19599 $as_echo "$ac_header_preproc" >&6; }
19601 # So? What about this header?
19602 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19604 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
19605 $as_echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19606 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
19607 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
19608 ac_header_preproc=yes
19611 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
19612 $as_echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
19613 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
19614 $as_echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
19615 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
19616 $as_echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
19617 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
19618 $as_echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
19619 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
19620 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
19621 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
19622 $as_echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
19626 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
19627 $as_echo_n "checking for $bdb_header... " >&6; }
19628 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19629 $as_echo_n "(cached) " >&6
19631 eval "$as_ac_Header=\$ac_header_preproc"
19633 ac_res=`eval 'as_val=${'$as_ac_Header'}
19634 $as_echo "$as_val"'`
19635 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19636 $as_echo "$ac_res" >&6; }
19639 as_val=`eval 'as_val=${'$as_ac_Header'}
19640 $as_echo "$as_val"'`
19641 if test "x$as_val" = x""yes; then
19643 if test "3" = "3" -o "3" = "4"; then
19644 # We generate a separate cache variable for each prefix and libname
19645 # we search under. That way, we avoid caching information that
19646 # changes if the user runs `configure' with a different set of
19649 cache_id="`echo apu_cv_check_berkeley_db_3_-1_-1_${bdb_header}_${bdb_libname}_in_${bdb_place} \
19650 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
19653 { $as_echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
19654 $as_echo_n "checking for -l$bdb_libname... " >&6; }
19655 if { as_var=$cache_id; eval "test \"\${$as_var+set}\" = set"; }; then
19656 $as_echo_n "(cached) " >&6
19660 apu_try_berkeley_db_save_libs="$LIBS"
19662 apu_check_berkeley_db_major=3
19663 apu_check_berkeley_db_minor=-1
19664 apu_check_berkeley_db_patch=-1
19665 apu_try_berkeley_db_header=$bdb_header
19666 apu_try_berkeley_db_libname=$bdb_libname
19668 LIBS="$LIBS -l$apu_try_berkeley_db_libname"
19669 if test "$cross_compiling" = yes; then
19670 apu_try_berkeley_db=yes
19673 cat >conftest.$ac_ext <<_ACEOF
19676 cat confdefs.h >>conftest.$ac_ext
19677 cat >>conftest.$ac_ext <<_ACEOF
19678 /* end confdefs.h. */
19680 #include <stdlib.h>
19682 #include <$apu_try_berkeley_db_header>
19685 int major, minor, patch;
19687 db_version(&major, &minor, &patch);
19689 /* Sanity check: ensure that db.h constants actually match the db library */
19690 if (major != DB_VERSION_MAJOR
19691 || minor != DB_VERSION_MINOR
19692 || patch != DB_VERSION_PATCH)
19695 /* Run-time check: ensure the library claims to be the correct version. */
19697 if ($apu_check_berkeley_db_major != -1) {
19698 if (major < $apu_check_berkeley_db_major)
19700 if (major > $apu_check_berkeley_db_major)
19704 if ($apu_check_berkeley_db_minor != -1) {
19705 if (minor < $apu_check_berkeley_db_minor)
19707 if (minor > $apu_check_berkeley_db_minor)
19711 if ($apu_check_berkeley_db_patch == -1
19712 || patch >= $apu_check_berkeley_db_patch)
19719 rm -f conftest$ac_exeext
19720 if { (ac_try="$ac_link"
19721 case "(($ac_try" in
19722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19723 *) ac_try_echo=$ac_try;;
19725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19726 $as_echo "$ac_try_echo") >&5
19727 (eval "$ac_link") 2>&5
19729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19731 { (case "(($ac_try" in
19732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19733 *) ac_try_echo=$ac_try;;
19735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19736 $as_echo "$ac_try_echo") >&5
19737 (eval "$ac_try") 2>&5
19739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19740 (exit $ac_status); }; }; then
19741 apu_try_berkeley_db=yes
19743 $as_echo "$as_me: program exited with status $ac_status" >&5
19744 $as_echo "$as_me: failed program was:" >&5
19745 sed 's/^/| /' conftest.$ac_ext >&5
19747 ( exit $ac_status )
19748 apu_try_berkeley_db=no
19750 rm -rf conftest.dSYM
19751 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19756 LIBS="$apu_try_berkeley_db_save_libs"
19759 eval "$cache_id=$apu_try_berkeley_db"
19763 result="`eval echo '$'$cache_id`"
19764 { $as_echo "$as_me:$LINENO: result: $result" >&5
19765 $as_echo "$result" >&6; }
19766 elif test "3" = "1"; then
19767 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
19768 { $as_echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
19769 $as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; }
19770 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
19771 $as_echo_n "(cached) " >&6
19773 ac_check_lib_save_LIBS=$LIBS
19774 LIBS="-l$bdb_libname $LIBS"
19775 cat >conftest.$ac_ext <<_ACEOF
19778 cat confdefs.h >>conftest.$ac_ext
19779 cat >>conftest.$ac_ext <<_ACEOF
19780 /* end confdefs.h. */
19782 /* Override any GCC internal prototype to avoid an error.
19783 Use char because int might match the return type of a GCC
19784 builtin and then its argument prototype would still apply. */
19797 rm -f conftest.$ac_objext conftest$ac_exeext
19798 if { (ac_try="$ac_link"
19799 case "(($ac_try" in
19800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19801 *) ac_try_echo=$ac_try;;
19803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19804 $as_echo "$ac_try_echo") >&5
19805 (eval "$ac_link") 2>conftest.er1
19807 grep -v '^ *+' conftest.er1 >conftest.err
19809 cat conftest.err >&5
19810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811 (exit $ac_status); } && {
19812 test -z "$ac_c_werror_flag" ||
19813 test ! -s conftest.err
19814 } && test -s conftest$ac_exeext && {
19815 test "$cross_compiling" = yes ||
19816 $as_test_x conftest$ac_exeext
19818 eval "$as_ac_Lib=yes"
19820 $as_echo "$as_me: failed program was:" >&5
19821 sed 's/^/| /' conftest.$ac_ext >&5
19823 eval "$as_ac_Lib=no"
19826 rm -rf conftest.dSYM
19827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19828 conftest$ac_exeext conftest.$ac_ext
19829 LIBS=$ac_check_lib_save_LIBS
19831 ac_res=`eval 'as_val=${'$as_ac_Lib'}
19832 $as_echo "$as_val"'`
19833 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19834 $as_echo "$ac_res" >&6; }
19835 as_val=`eval 'as_val=${'$as_ac_Lib'}
19836 $as_echo "$as_val"'`
19837 if test "x$as_val" = x""yes; then
19844 elif test "3" = "2"; then
19845 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
19846 { $as_echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
19847 $as_echo_n "checking for db_open in -l$bdb_libname... " >&6; }
19848 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
19849 $as_echo_n "(cached) " >&6
19851 ac_check_lib_save_LIBS=$LIBS
19852 LIBS="-l$bdb_libname $LIBS"
19853 cat >conftest.$ac_ext <<_ACEOF
19856 cat confdefs.h >>conftest.$ac_ext
19857 cat >>conftest.$ac_ext <<_ACEOF
19858 /* end confdefs.h. */
19860 /* Override any GCC internal prototype to avoid an error.
19861 Use char because int might match the return type of a GCC
19862 builtin and then its argument prototype would still apply. */
19875 rm -f conftest.$ac_objext conftest$ac_exeext
19876 if { (ac_try="$ac_link"
19877 case "(($ac_try" in
19878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19879 *) ac_try_echo=$ac_try;;
19881 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19882 $as_echo "$ac_try_echo") >&5
19883 (eval "$ac_link") 2>conftest.er1
19885 grep -v '^ *+' conftest.er1 >conftest.err
19887 cat conftest.err >&5
19888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889 (exit $ac_status); } && {
19890 test -z "$ac_c_werror_flag" ||
19891 test ! -s conftest.err
19892 } && test -s conftest$ac_exeext && {
19893 test "$cross_compiling" = yes ||
19894 $as_test_x conftest$ac_exeext
19896 eval "$as_ac_Lib=yes"
19898 $as_echo "$as_me: failed program was:" >&5
19899 sed 's/^/| /' conftest.$ac_ext >&5
19901 eval "$as_ac_Lib=no"
19904 rm -rf conftest.dSYM
19905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19906 conftest$ac_exeext conftest.$ac_ext
19907 LIBS=$ac_check_lib_save_LIBS
19909 ac_res=`eval 'as_val=${'$as_ac_Lib'}
19910 $as_echo "$as_val"'`
19911 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19912 $as_echo "$ac_res" >&6; }
19913 as_val=`eval 'as_val=${'$as_ac_Lib'}
19914 $as_echo "$as_val"'`
19915 if test "x$as_val" = x""yes; then
19930 # If we found it, no need to search any more.
19931 if test "$result" = "yes"; then
19936 test "$found" != "not" && break
19938 test "$found" != "not" && break
19941 # Restore the original values of the flags we tweak.
19942 LDFLAGS="$apu_check_lib_save_ldflags"
19943 CPPFLAGS="$apu_check_lib_save_cppflags"
19950 apu_db_header=$bdb_header
19951 apu_db_lib=$bdb_libname
19955 header="`echo $found | sed -e 's/:.*$//'`"
19956 lib="`echo $found | sed -e 's/^.*://'`"
19959 if test "x$APRUTIL_INCLUDES" = "x"; then
19960 echo " setting APRUTIL_INCLUDES to \"-I$header\""
19961 APRUTIL_INCLUDES="-I$header"
19963 apr_addto_bugger="-I$header"
19964 for i in $apr_addto_bugger; do
19965 apr_addto_duplicate="0"
19966 for j in $APRUTIL_INCLUDES; do
19967 if test "x$i" = "x$j"; then
19968 apr_addto_duplicate="1"
19972 if test $apr_addto_duplicate = "0"; then
19973 echo " adding \"$i\" to APRUTIL_INCLUDES"
19974 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
19980 if test "x$APRUTIL_LDFLAGS" = "x"; then
19981 echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
19982 APRUTIL_LDFLAGS="-L$lib"
19984 apr_addto_bugger="-L$lib"
19985 for i in $apr_addto_bugger; do
19986 apr_addto_duplicate="0"
19987 for j in $APRUTIL_LDFLAGS; do
19988 if test "x$i" = "x$j"; then
19989 apr_addto_duplicate="1"
19993 if test $apr_addto_duplicate = "0"; then
19994 echo " adding \"$i\" to APRUTIL_LDFLAGS"
19995 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
20000 apu_db_header=$bdb_header
20001 apu_db_lib=$bdb_libname
20006 if test "x$APRUTIL_INCLUDES" = "x"; then
20007 echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
20008 APRUTIL_INCLUDES="-I$found/include"
20010 apr_addto_bugger="-I$found/include"
20011 for i in $apr_addto_bugger; do
20012 apr_addto_duplicate="0"
20013 for j in $APRUTIL_INCLUDES; do
20014 if test "x$i" = "x$j"; then
20015 apr_addto_duplicate="1"
20019 if test $apr_addto_duplicate = "0"; then
20020 echo " adding \"$i\" to APRUTIL_INCLUDES"
20021 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
20027 if test "x$APRUTIL_LDFLAGS" = "x"; then
20028 echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
20029 APRUTIL_LDFLAGS="-L$found/lib"
20031 apr_addto_bugger="-L$found/lib"
20032 for i in $apr_addto_bugger; do
20033 apr_addto_duplicate="0"
20034 for j in $APRUTIL_LDFLAGS; do
20035 if test "x$i" = "x$j"; then
20036 apr_addto_duplicate="1"
20040 if test $apr_addto_duplicate = "0"; then
20041 echo " adding \"$i\" to APRUTIL_LDFLAGS"
20042 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
20047 apu_db_header=$bdb_header
20048 apu_db_lib=$bdb_libname
20053 if test "$apu_have_db" = "1"; then
20057 if test "$apu_db_version" != "3"; then
20058 { { $as_echo "$as_me:$LINENO: error: Berkeley db3 not found" >&5
20059 $as_echo "$as_me: error: Berkeley db3 not found" >&2;}
20060 { (exit 1); exit 1; }; }
20065 places="$check_places"
20066 if test -z "$places"; then
20067 places="std /usr/local /usr/local/BerkeleyDB.4.0 /boot/home/config"
20071 if test ""0"" != "-1"; then
20072 bdb_version="$bdb_version."0""
20073 if test ""-1"" != "-1"; then
20074 bdb_version="$bdb_version."-1""
20077 bdb_places="$places"
20078 bdb_default_search_headers="db4/db.h db.h"
20079 bdb_default_search_lib_names="db-4.0 db4 db"
20084 # Save the original values of the flags we tweak.
20085 apu_check_lib_save_libs="$LIBS"
20086 apu_check_lib_save_ldflags="$LDFLAGS"
20087 apu_check_lib_save_cppflags="$CPPFLAGS"
20089 # The variable `found' is the prefix under which we've found
20090 # Berkeley DB, or `not' if we haven't found it anywhere yet.
20092 for bdb_place in $bdb_places; do
20094 LDFLAGS="$apu_check_lib_save_ldflags"
20095 CPPFLAGS="$apu_check_lib_save_cppflags"
20096 case "$bdb_place" in
20098 description="the standard places"
20101 header="`echo $bdb_place | sed -e 's/:.*$//'`"
20102 lib="`echo $bdb_place | sed -e 's/^.*://'`"
20103 CPPFLAGS="$CPPFLAGS -I$header"
20104 LDFLAGS="$LDFLAGS -L$lib"
20105 description="$header and $lib"
20108 if test -d $bdb_place; then
20109 LDFLAGS="$LDFLAGS -L$bdb_place/lib"
20110 CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
20112 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
20113 $as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; }
20114 { $as_echo "$as_me:$LINENO: result: directory not found" >&5
20115 $as_echo "directory not found" >&6; }
20118 description="$bdb_place"
20122 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
20123 # trick to display a message instead.
20124 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
20125 $as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; }
20126 { $as_echo "$as_me:$LINENO: result: " >&5
20129 for bdb_libname in $bdb_default_search_lib_names; do
20130 for bdb_header in $bdb_default_search_headers; do
20131 # Clear the header cache variable for each location
20133 cache_id="`echo ac_cv_header_${bdb_header} \
20134 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
20137 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh`
20138 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20139 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
20140 $as_echo_n "checking for $bdb_header... " >&6; }
20141 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20142 $as_echo_n "(cached) " >&6
20144 ac_res=`eval 'as_val=${'$as_ac_Header'}
20145 $as_echo "$as_val"'`
20146 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20147 $as_echo "$ac_res" >&6; }
20149 # Is the header compilable?
20150 { $as_echo "$as_me:$LINENO: checking $bdb_header usability" >&5
20151 $as_echo_n "checking $bdb_header usability... " >&6; }
20152 cat >conftest.$ac_ext <<_ACEOF
20155 cat confdefs.h >>conftest.$ac_ext
20156 cat >>conftest.$ac_ext <<_ACEOF
20157 /* end confdefs.h. */
20158 $ac_includes_default
20159 #include <$bdb_header>
20161 rm -f conftest.$ac_objext
20162 if { (ac_try="$ac_compile"
20163 case "(($ac_try" in
20164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20165 *) ac_try_echo=$ac_try;;
20167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20168 $as_echo "$ac_try_echo") >&5
20169 (eval "$ac_compile") 2>conftest.er1
20171 grep -v '^ *+' conftest.er1 >conftest.err
20173 cat conftest.err >&5
20174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20175 (exit $ac_status); } && {
20176 test -z "$ac_c_werror_flag" ||
20177 test ! -s conftest.err
20178 } && test -s conftest.$ac_objext; then
20179 ac_header_compiler=yes
20181 $as_echo "$as_me: failed program was:" >&5
20182 sed 's/^/| /' conftest.$ac_ext >&5
20184 ac_header_compiler=no
20187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20188 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20189 $as_echo "$ac_header_compiler" >&6; }
20191 # Is the header present?
20192 { $as_echo "$as_me:$LINENO: checking $bdb_header presence" >&5
20193 $as_echo_n "checking $bdb_header presence... " >&6; }
20194 cat >conftest.$ac_ext <<_ACEOF
20197 cat confdefs.h >>conftest.$ac_ext
20198 cat >>conftest.$ac_ext <<_ACEOF
20199 /* end confdefs.h. */
20200 #include <$bdb_header>
20202 if { (ac_try="$ac_cpp conftest.$ac_ext"
20203 case "(($ac_try" in
20204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20205 *) ac_try_echo=$ac_try;;
20207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20208 $as_echo "$ac_try_echo") >&5
20209 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20211 grep -v '^ *+' conftest.er1 >conftest.err
20213 cat conftest.err >&5
20214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215 (exit $ac_status); } >/dev/null && {
20216 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20217 test ! -s conftest.err
20219 ac_header_preproc=yes
20221 $as_echo "$as_me: failed program was:" >&5
20222 sed 's/^/| /' conftest.$ac_ext >&5
20224 ac_header_preproc=no
20227 rm -f conftest.err conftest.$ac_ext
20228 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20229 $as_echo "$ac_header_preproc" >&6; }
20231 # So? What about this header?
20232 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20234 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
20235 $as_echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20236 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
20237 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
20238 ac_header_preproc=yes
20241 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
20242 $as_echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
20243 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
20244 $as_echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
20245 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
20246 $as_echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
20247 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
20248 $as_echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
20249 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
20250 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
20251 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
20252 $as_echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
20256 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
20257 $as_echo_n "checking for $bdb_header... " >&6; }
20258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20259 $as_echo_n "(cached) " >&6
20261 eval "$as_ac_Header=\$ac_header_preproc"
20263 ac_res=`eval 'as_val=${'$as_ac_Header'}
20264 $as_echo "$as_val"'`
20265 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20266 $as_echo "$ac_res" >&6; }
20269 as_val=`eval 'as_val=${'$as_ac_Header'}
20270 $as_echo "$as_val"'`
20271 if test "x$as_val" = x""yes; then
20273 if test ""4"" = "3" -o ""4"" = "4"; then
20274 # We generate a separate cache variable for each prefix and libname
20275 # we search under. That way, we avoid caching information that
20276 # changes if the user runs `configure' with a different set of
20279 cache_id="`echo apu_cv_check_berkeley_db_"4"_"0"_"-1"_${bdb_header}_${bdb_libname}_in_${bdb_place} \
20280 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
20283 { $as_echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
20284 $as_echo_n "checking for -l$bdb_libname... " >&6; }
20285 if { as_var=$cache_id; eval "test \"\${$as_var+set}\" = set"; }; then
20286 $as_echo_n "(cached) " >&6
20290 apu_try_berkeley_db_save_libs="$LIBS"
20292 apu_check_berkeley_db_major="4"
20293 apu_check_berkeley_db_minor="0"
20294 apu_check_berkeley_db_patch="-1"
20295 apu_try_berkeley_db_header=$bdb_header
20296 apu_try_berkeley_db_libname=$bdb_libname
20298 LIBS="$LIBS -l$apu_try_berkeley_db_libname"
20299 if test "$cross_compiling" = yes; then
20300 apu_try_berkeley_db=yes
20303 cat >conftest.$ac_ext <<_ACEOF
20306 cat confdefs.h >>conftest.$ac_ext
20307 cat >>conftest.$ac_ext <<_ACEOF
20308 /* end confdefs.h. */
20310 #include <stdlib.h>
20312 #include <$apu_try_berkeley_db_header>
20315 int major, minor, patch;
20317 db_version(&major, &minor, &patch);
20319 /* Sanity check: ensure that db.h constants actually match the db library */
20320 if (major != DB_VERSION_MAJOR
20321 || minor != DB_VERSION_MINOR
20322 || patch != DB_VERSION_PATCH)
20325 /* Run-time check: ensure the library claims to be the correct version. */
20327 if ($apu_check_berkeley_db_major != -1) {
20328 if (major < $apu_check_berkeley_db_major)
20330 if (major > $apu_check_berkeley_db_major)
20334 if ($apu_check_berkeley_db_minor != -1) {
20335 if (minor < $apu_check_berkeley_db_minor)
20337 if (minor > $apu_check_berkeley_db_minor)
20341 if ($apu_check_berkeley_db_patch == -1
20342 || patch >= $apu_check_berkeley_db_patch)
20349 rm -f conftest$ac_exeext
20350 if { (ac_try="$ac_link"
20351 case "(($ac_try" in
20352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20353 *) ac_try_echo=$ac_try;;
20355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20356 $as_echo "$ac_try_echo") >&5
20357 (eval "$ac_link") 2>&5
20359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20360 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20361 { (case "(($ac_try" in
20362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20363 *) ac_try_echo=$ac_try;;
20365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20366 $as_echo "$ac_try_echo") >&5
20367 (eval "$ac_try") 2>&5
20369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20370 (exit $ac_status); }; }; then
20371 apu_try_berkeley_db=yes
20373 $as_echo "$as_me: program exited with status $ac_status" >&5
20374 $as_echo "$as_me: failed program was:" >&5
20375 sed 's/^/| /' conftest.$ac_ext >&5
20377 ( exit $ac_status )
20378 apu_try_berkeley_db=no
20380 rm -rf conftest.dSYM
20381 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20386 LIBS="$apu_try_berkeley_db_save_libs"
20389 eval "$cache_id=$apu_try_berkeley_db"
20393 result="`eval echo '$'$cache_id`"
20394 { $as_echo "$as_me:$LINENO: result: $result" >&5
20395 $as_echo "$result" >&6; }
20396 elif test ""4"" = "1"; then
20397 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
20398 { $as_echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
20399 $as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; }
20400 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
20401 $as_echo_n "(cached) " >&6
20403 ac_check_lib_save_LIBS=$LIBS
20404 LIBS="-l$bdb_libname $LIBS"
20405 cat >conftest.$ac_ext <<_ACEOF
20408 cat confdefs.h >>conftest.$ac_ext
20409 cat >>conftest.$ac_ext <<_ACEOF
20410 /* end confdefs.h. */
20412 /* Override any GCC internal prototype to avoid an error.
20413 Use char because int might match the return type of a GCC
20414 builtin and then its argument prototype would still apply. */
20427 rm -f conftest.$ac_objext conftest$ac_exeext
20428 if { (ac_try="$ac_link"
20429 case "(($ac_try" in
20430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20431 *) ac_try_echo=$ac_try;;
20433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20434 $as_echo "$ac_try_echo") >&5
20435 (eval "$ac_link") 2>conftest.er1
20437 grep -v '^ *+' conftest.er1 >conftest.err
20439 cat conftest.err >&5
20440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441 (exit $ac_status); } && {
20442 test -z "$ac_c_werror_flag" ||
20443 test ! -s conftest.err
20444 } && test -s conftest$ac_exeext && {
20445 test "$cross_compiling" = yes ||
20446 $as_test_x conftest$ac_exeext
20448 eval "$as_ac_Lib=yes"
20450 $as_echo "$as_me: failed program was:" >&5
20451 sed 's/^/| /' conftest.$ac_ext >&5
20453 eval "$as_ac_Lib=no"
20456 rm -rf conftest.dSYM
20457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20458 conftest$ac_exeext conftest.$ac_ext
20459 LIBS=$ac_check_lib_save_LIBS
20461 ac_res=`eval 'as_val=${'$as_ac_Lib'}
20462 $as_echo "$as_val"'`
20463 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20464 $as_echo "$ac_res" >&6; }
20465 as_val=`eval 'as_val=${'$as_ac_Lib'}
20466 $as_echo "$as_val"'`
20467 if test "x$as_val" = x""yes; then
20474 elif test ""4"" = "2"; then
20475 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
20476 { $as_echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
20477 $as_echo_n "checking for db_open in -l$bdb_libname... " >&6; }
20478 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
20479 $as_echo_n "(cached) " >&6
20481 ac_check_lib_save_LIBS=$LIBS
20482 LIBS="-l$bdb_libname $LIBS"
20483 cat >conftest.$ac_ext <<_ACEOF
20486 cat confdefs.h >>conftest.$ac_ext
20487 cat >>conftest.$ac_ext <<_ACEOF
20488 /* end confdefs.h. */
20490 /* Override any GCC internal prototype to avoid an error.
20491 Use char because int might match the return type of a GCC
20492 builtin and then its argument prototype would still apply. */
20505 rm -f conftest.$ac_objext conftest$ac_exeext
20506 if { (ac_try="$ac_link"
20507 case "(($ac_try" in
20508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20509 *) ac_try_echo=$ac_try;;
20511 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20512 $as_echo "$ac_try_echo") >&5
20513 (eval "$ac_link") 2>conftest.er1
20515 grep -v '^ *+' conftest.er1 >conftest.err
20517 cat conftest.err >&5
20518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519 (exit $ac_status); } && {
20520 test -z "$ac_c_werror_flag" ||
20521 test ! -s conftest.err
20522 } && test -s conftest$ac_exeext && {
20523 test "$cross_compiling" = yes ||
20524 $as_test_x conftest$ac_exeext
20526 eval "$as_ac_Lib=yes"
20528 $as_echo "$as_me: failed program was:" >&5
20529 sed 's/^/| /' conftest.$ac_ext >&5
20531 eval "$as_ac_Lib=no"
20534 rm -rf conftest.dSYM
20535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20536 conftest$ac_exeext conftest.$ac_ext
20537 LIBS=$ac_check_lib_save_LIBS
20539 ac_res=`eval 'as_val=${'$as_ac_Lib'}
20540 $as_echo "$as_val"'`
20541 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20542 $as_echo "$ac_res" >&6; }
20543 as_val=`eval 'as_val=${'$as_ac_Lib'}
20544 $as_echo "$as_val"'`
20545 if test "x$as_val" = x""yes; then
20560 # If we found it, no need to search any more.
20561 if test "$result" = "yes"; then
20566 test "$found" != "not" && break
20568 test "$found" != "not" && break
20571 # Restore the original values of the flags we tweak.
20572 LDFLAGS="$apu_check_lib_save_ldflags"
20573 CPPFLAGS="$apu_check_lib_save_cppflags"
20580 apu_db_header=$bdb_header
20581 apu_db_lib=$bdb_libname
20585 header="`echo $found | sed -e 's/:.*$//'`"
20586 lib="`echo $found | sed -e 's/^.*://'`"
20589 if test "x$APRUTIL_INCLUDES" = "x"; then
20590 echo " setting APRUTIL_INCLUDES to \"-I$header\""
20591 APRUTIL_INCLUDES="-I$header"
20593 apr_addto_bugger="-I$header"
20594 for i in $apr_addto_bugger; do
20595 apr_addto_duplicate="0"
20596 for j in $APRUTIL_INCLUDES; do
20597 if test "x$i" = "x$j"; then
20598 apr_addto_duplicate="1"
20602 if test $apr_addto_duplicate = "0"; then
20603 echo " adding \"$i\" to APRUTIL_INCLUDES"
20604 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
20610 if test "x$APRUTIL_LDFLAGS" = "x"; then
20611 echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
20612 APRUTIL_LDFLAGS="-L$lib"
20614 apr_addto_bugger="-L$lib"
20615 for i in $apr_addto_bugger; do
20616 apr_addto_duplicate="0"
20617 for j in $APRUTIL_LDFLAGS; do
20618 if test "x$i" = "x$j"; then
20619 apr_addto_duplicate="1"
20623 if test $apr_addto_duplicate = "0"; then
20624 echo " adding \"$i\" to APRUTIL_LDFLAGS"
20625 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
20630 apu_db_header=$bdb_header
20631 apu_db_lib=$bdb_libname
20636 if test "x$APRUTIL_INCLUDES" = "x"; then
20637 echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
20638 APRUTIL_INCLUDES="-I$found/include"
20640 apr_addto_bugger="-I$found/include"
20641 for i in $apr_addto_bugger; do
20642 apr_addto_duplicate="0"
20643 for j in $APRUTIL_INCLUDES; do
20644 if test "x$i" = "x$j"; then
20645 apr_addto_duplicate="1"
20649 if test $apr_addto_duplicate = "0"; then
20650 echo " adding \"$i\" to APRUTIL_INCLUDES"
20651 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
20657 if test "x$APRUTIL_LDFLAGS" = "x"; then
20658 echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
20659 APRUTIL_LDFLAGS="-L$found/lib"
20661 apr_addto_bugger="-L$found/lib"
20662 for i in $apr_addto_bugger; do
20663 apr_addto_duplicate="0"
20664 for j in $APRUTIL_LDFLAGS; do
20665 if test "x$i" = "x$j"; then
20666 apr_addto_duplicate="1"
20670 if test $apr_addto_duplicate = "0"; then
20671 echo " adding \"$i\" to APRUTIL_LDFLAGS"
20672 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
20677 apu_db_header=$bdb_header
20678 apu_db_lib=$bdb_libname
20683 if test "$apu_have_db" = "1"; then
20687 if test "$apu_db_version" != "4"; then
20688 { { $as_echo "$as_me:$LINENO: error: Berkeley db4 not found" >&5
20689 $as_echo "$as_me: error: Berkeley db4 not found" >&2;}
20690 { (exit 1); exit 1; }; }
20695 places="$check_places"
20696 if test -z "$places"; then
20697 places="std /usr/local /usr/local/BerkeleyDB.4.1 /boot/home/config"
20701 if test ""1"" != "-1"; then
20702 bdb_version="$bdb_version."1""
20703 if test ""-1"" != "-1"; then
20704 bdb_version="$bdb_version."-1""
20707 bdb_places="$places"
20708 bdb_default_search_headers="db41/db.h db4/db.h db.h"
20709 bdb_default_search_lib_names="db-4.1 db41 db4 db"
20714 # Save the original values of the flags we tweak.
20715 apu_check_lib_save_libs="$LIBS"
20716 apu_check_lib_save_ldflags="$LDFLAGS"
20717 apu_check_lib_save_cppflags="$CPPFLAGS"
20719 # The variable `found' is the prefix under which we've found
20720 # Berkeley DB, or `not' if we haven't found it anywhere yet.
20722 for bdb_place in $bdb_places; do
20724 LDFLAGS="$apu_check_lib_save_ldflags"
20725 CPPFLAGS="$apu_check_lib_save_cppflags"
20726 case "$bdb_place" in
20728 description="the standard places"
20731 header="`echo $bdb_place | sed -e 's/:.*$//'`"
20732 lib="`echo $bdb_place | sed -e 's/^.*://'`"
20733 CPPFLAGS="$CPPFLAGS -I$header"
20734 LDFLAGS="$LDFLAGS -L$lib"
20735 description="$header and $lib"
20738 if test -d $bdb_place; then
20739 LDFLAGS="$LDFLAGS -L$bdb_place/lib"
20740 CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
20742 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
20743 $as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; }
20744 { $as_echo "$as_me:$LINENO: result: directory not found" >&5
20745 $as_echo "directory not found" >&6; }
20748 description="$bdb_place"
20752 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
20753 # trick to display a message instead.
20754 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
20755 $as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; }
20756 { $as_echo "$as_me:$LINENO: result: " >&5
20759 for bdb_libname in $bdb_default_search_lib_names; do
20760 for bdb_header in $bdb_default_search_headers; do
20761 # Clear the header cache variable for each location
20763 cache_id="`echo ac_cv_header_${bdb_header} \
20764 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
20767 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh`
20768 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20769 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
20770 $as_echo_n "checking for $bdb_header... " >&6; }
20771 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20772 $as_echo_n "(cached) " >&6
20774 ac_res=`eval 'as_val=${'$as_ac_Header'}
20775 $as_echo "$as_val"'`
20776 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20777 $as_echo "$ac_res" >&6; }
20779 # Is the header compilable?
20780 { $as_echo "$as_me:$LINENO: checking $bdb_header usability" >&5
20781 $as_echo_n "checking $bdb_header usability... " >&6; }
20782 cat >conftest.$ac_ext <<_ACEOF
20785 cat confdefs.h >>conftest.$ac_ext
20786 cat >>conftest.$ac_ext <<_ACEOF
20787 /* end confdefs.h. */
20788 $ac_includes_default
20789 #include <$bdb_header>
20791 rm -f conftest.$ac_objext
20792 if { (ac_try="$ac_compile"
20793 case "(($ac_try" in
20794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20795 *) ac_try_echo=$ac_try;;
20797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20798 $as_echo "$ac_try_echo") >&5
20799 (eval "$ac_compile") 2>conftest.er1
20801 grep -v '^ *+' conftest.er1 >conftest.err
20803 cat conftest.err >&5
20804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20805 (exit $ac_status); } && {
20806 test -z "$ac_c_werror_flag" ||
20807 test ! -s conftest.err
20808 } && test -s conftest.$ac_objext; then
20809 ac_header_compiler=yes
20811 $as_echo "$as_me: failed program was:" >&5
20812 sed 's/^/| /' conftest.$ac_ext >&5
20814 ac_header_compiler=no
20817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20818 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20819 $as_echo "$ac_header_compiler" >&6; }
20821 # Is the header present?
20822 { $as_echo "$as_me:$LINENO: checking $bdb_header presence" >&5
20823 $as_echo_n "checking $bdb_header presence... " >&6; }
20824 cat >conftest.$ac_ext <<_ACEOF
20827 cat confdefs.h >>conftest.$ac_ext
20828 cat >>conftest.$ac_ext <<_ACEOF
20829 /* end confdefs.h. */
20830 #include <$bdb_header>
20832 if { (ac_try="$ac_cpp conftest.$ac_ext"
20833 case "(($ac_try" in
20834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20835 *) ac_try_echo=$ac_try;;
20837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20838 $as_echo "$ac_try_echo") >&5
20839 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20841 grep -v '^ *+' conftest.er1 >conftest.err
20843 cat conftest.err >&5
20844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20845 (exit $ac_status); } >/dev/null && {
20846 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20847 test ! -s conftest.err
20849 ac_header_preproc=yes
20851 $as_echo "$as_me: failed program was:" >&5
20852 sed 's/^/| /' conftest.$ac_ext >&5
20854 ac_header_preproc=no
20857 rm -f conftest.err conftest.$ac_ext
20858 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20859 $as_echo "$ac_header_preproc" >&6; }
20861 # So? What about this header?
20862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20864 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
20865 $as_echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20866 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
20867 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
20868 ac_header_preproc=yes
20871 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
20872 $as_echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
20873 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
20874 $as_echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
20875 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
20876 $as_echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
20877 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
20878 $as_echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
20879 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
20880 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
20881 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
20882 $as_echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
20886 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
20887 $as_echo_n "checking for $bdb_header... " >&6; }
20888 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20889 $as_echo_n "(cached) " >&6
20891 eval "$as_ac_Header=\$ac_header_preproc"
20893 ac_res=`eval 'as_val=${'$as_ac_Header'}
20894 $as_echo "$as_val"'`
20895 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20896 $as_echo "$ac_res" >&6; }
20899 as_val=`eval 'as_val=${'$as_ac_Header'}
20900 $as_echo "$as_val"'`
20901 if test "x$as_val" = x""yes; then
20903 if test ""4"" = "3" -o ""4"" = "4"; then
20904 # We generate a separate cache variable for each prefix and libname
20905 # we search under. That way, we avoid caching information that
20906 # changes if the user runs `configure' with a different set of
20909 cache_id="`echo apu_cv_check_berkeley_db_"4"_"1"_"-1"_${bdb_header}_${bdb_libname}_in_${bdb_place} \
20910 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
20913 { $as_echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
20914 $as_echo_n "checking for -l$bdb_libname... " >&6; }
20915 if { as_var=$cache_id; eval "test \"\${$as_var+set}\" = set"; }; then
20916 $as_echo_n "(cached) " >&6
20920 apu_try_berkeley_db_save_libs="$LIBS"
20922 apu_check_berkeley_db_major="4"
20923 apu_check_berkeley_db_minor="1"
20924 apu_check_berkeley_db_patch="-1"
20925 apu_try_berkeley_db_header=$bdb_header
20926 apu_try_berkeley_db_libname=$bdb_libname
20928 LIBS="$LIBS -l$apu_try_berkeley_db_libname"
20929 if test "$cross_compiling" = yes; then
20930 apu_try_berkeley_db=yes
20933 cat >conftest.$ac_ext <<_ACEOF
20936 cat confdefs.h >>conftest.$ac_ext
20937 cat >>conftest.$ac_ext <<_ACEOF
20938 /* end confdefs.h. */
20940 #include <stdlib.h>
20942 #include <$apu_try_berkeley_db_header>
20945 int major, minor, patch;
20947 db_version(&major, &minor, &patch);
20949 /* Sanity check: ensure that db.h constants actually match the db library */
20950 if (major != DB_VERSION_MAJOR
20951 || minor != DB_VERSION_MINOR
20952 || patch != DB_VERSION_PATCH)
20955 /* Run-time check: ensure the library claims to be the correct version. */
20957 if ($apu_check_berkeley_db_major != -1) {
20958 if (major < $apu_check_berkeley_db_major)
20960 if (major > $apu_check_berkeley_db_major)
20964 if ($apu_check_berkeley_db_minor != -1) {
20965 if (minor < $apu_check_berkeley_db_minor)
20967 if (minor > $apu_check_berkeley_db_minor)
20971 if ($apu_check_berkeley_db_patch == -1
20972 || patch >= $apu_check_berkeley_db_patch)
20979 rm -f conftest$ac_exeext
20980 if { (ac_try="$ac_link"
20981 case "(($ac_try" in
20982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20983 *) ac_try_echo=$ac_try;;
20985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20986 $as_echo "$ac_try_echo") >&5
20987 (eval "$ac_link") 2>&5
20989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20990 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20991 { (case "(($ac_try" in
20992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20993 *) ac_try_echo=$ac_try;;
20995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20996 $as_echo "$ac_try_echo") >&5
20997 (eval "$ac_try") 2>&5
20999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21000 (exit $ac_status); }; }; then
21001 apu_try_berkeley_db=yes
21003 $as_echo "$as_me: program exited with status $ac_status" >&5
21004 $as_echo "$as_me: failed program was:" >&5
21005 sed 's/^/| /' conftest.$ac_ext >&5
21007 ( exit $ac_status )
21008 apu_try_berkeley_db=no
21010 rm -rf conftest.dSYM
21011 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21016 LIBS="$apu_try_berkeley_db_save_libs"
21019 eval "$cache_id=$apu_try_berkeley_db"
21023 result="`eval echo '$'$cache_id`"
21024 { $as_echo "$as_me:$LINENO: result: $result" >&5
21025 $as_echo "$result" >&6; }
21026 elif test ""4"" = "1"; then
21027 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
21028 { $as_echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
21029 $as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; }
21030 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21031 $as_echo_n "(cached) " >&6
21033 ac_check_lib_save_LIBS=$LIBS
21034 LIBS="-l$bdb_libname $LIBS"
21035 cat >conftest.$ac_ext <<_ACEOF
21038 cat confdefs.h >>conftest.$ac_ext
21039 cat >>conftest.$ac_ext <<_ACEOF
21040 /* end confdefs.h. */
21042 /* Override any GCC internal prototype to avoid an error.
21043 Use char because int might match the return type of a GCC
21044 builtin and then its argument prototype would still apply. */
21057 rm -f conftest.$ac_objext conftest$ac_exeext
21058 if { (ac_try="$ac_link"
21059 case "(($ac_try" in
21060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21061 *) ac_try_echo=$ac_try;;
21063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21064 $as_echo "$ac_try_echo") >&5
21065 (eval "$ac_link") 2>conftest.er1
21067 grep -v '^ *+' conftest.er1 >conftest.err
21069 cat conftest.err >&5
21070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21071 (exit $ac_status); } && {
21072 test -z "$ac_c_werror_flag" ||
21073 test ! -s conftest.err
21074 } && test -s conftest$ac_exeext && {
21075 test "$cross_compiling" = yes ||
21076 $as_test_x conftest$ac_exeext
21078 eval "$as_ac_Lib=yes"
21080 $as_echo "$as_me: failed program was:" >&5
21081 sed 's/^/| /' conftest.$ac_ext >&5
21083 eval "$as_ac_Lib=no"
21086 rm -rf conftest.dSYM
21087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21088 conftest$ac_exeext conftest.$ac_ext
21089 LIBS=$ac_check_lib_save_LIBS
21091 ac_res=`eval 'as_val=${'$as_ac_Lib'}
21092 $as_echo "$as_val"'`
21093 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21094 $as_echo "$ac_res" >&6; }
21095 as_val=`eval 'as_val=${'$as_ac_Lib'}
21096 $as_echo "$as_val"'`
21097 if test "x$as_val" = x""yes; then
21104 elif test ""4"" = "2"; then
21105 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
21106 { $as_echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
21107 $as_echo_n "checking for db_open in -l$bdb_libname... " >&6; }
21108 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21109 $as_echo_n "(cached) " >&6
21111 ac_check_lib_save_LIBS=$LIBS
21112 LIBS="-l$bdb_libname $LIBS"
21113 cat >conftest.$ac_ext <<_ACEOF
21116 cat confdefs.h >>conftest.$ac_ext
21117 cat >>conftest.$ac_ext <<_ACEOF
21118 /* end confdefs.h. */
21120 /* Override any GCC internal prototype to avoid an error.
21121 Use char because int might match the return type of a GCC
21122 builtin and then its argument prototype would still apply. */
21135 rm -f conftest.$ac_objext conftest$ac_exeext
21136 if { (ac_try="$ac_link"
21137 case "(($ac_try" in
21138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21139 *) ac_try_echo=$ac_try;;
21141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21142 $as_echo "$ac_try_echo") >&5
21143 (eval "$ac_link") 2>conftest.er1
21145 grep -v '^ *+' conftest.er1 >conftest.err
21147 cat conftest.err >&5
21148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21149 (exit $ac_status); } && {
21150 test -z "$ac_c_werror_flag" ||
21151 test ! -s conftest.err
21152 } && test -s conftest$ac_exeext && {
21153 test "$cross_compiling" = yes ||
21154 $as_test_x conftest$ac_exeext
21156 eval "$as_ac_Lib=yes"
21158 $as_echo "$as_me: failed program was:" >&5
21159 sed 's/^/| /' conftest.$ac_ext >&5
21161 eval "$as_ac_Lib=no"
21164 rm -rf conftest.dSYM
21165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21166 conftest$ac_exeext conftest.$ac_ext
21167 LIBS=$ac_check_lib_save_LIBS
21169 ac_res=`eval 'as_val=${'$as_ac_Lib'}
21170 $as_echo "$as_val"'`
21171 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21172 $as_echo "$ac_res" >&6; }
21173 as_val=`eval 'as_val=${'$as_ac_Lib'}
21174 $as_echo "$as_val"'`
21175 if test "x$as_val" = x""yes; then
21190 # If we found it, no need to search any more.
21191 if test "$result" = "yes"; then
21196 test "$found" != "not" && break
21198 test "$found" != "not" && break
21201 # Restore the original values of the flags we tweak.
21202 LDFLAGS="$apu_check_lib_save_ldflags"
21203 CPPFLAGS="$apu_check_lib_save_cppflags"
21210 apu_db_header=$bdb_header
21211 apu_db_lib=$bdb_libname
21215 header="`echo $found | sed -e 's/:.*$//'`"
21216 lib="`echo $found | sed -e 's/^.*://'`"
21219 if test "x$APRUTIL_INCLUDES" = "x"; then
21220 echo " setting APRUTIL_INCLUDES to \"-I$header\""
21221 APRUTIL_INCLUDES="-I$header"
21223 apr_addto_bugger="-I$header"
21224 for i in $apr_addto_bugger; do
21225 apr_addto_duplicate="0"
21226 for j in $APRUTIL_INCLUDES; do
21227 if test "x$i" = "x$j"; then
21228 apr_addto_duplicate="1"
21232 if test $apr_addto_duplicate = "0"; then
21233 echo " adding \"$i\" to APRUTIL_INCLUDES"
21234 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
21240 if test "x$APRUTIL_LDFLAGS" = "x"; then
21241 echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
21242 APRUTIL_LDFLAGS="-L$lib"
21244 apr_addto_bugger="-L$lib"
21245 for i in $apr_addto_bugger; do
21246 apr_addto_duplicate="0"
21247 for j in $APRUTIL_LDFLAGS; do
21248 if test "x$i" = "x$j"; then
21249 apr_addto_duplicate="1"
21253 if test $apr_addto_duplicate = "0"; then
21254 echo " adding \"$i\" to APRUTIL_LDFLAGS"
21255 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
21260 apu_db_header=$bdb_header
21261 apu_db_lib=$bdb_libname
21266 if test "x$APRUTIL_INCLUDES" = "x"; then
21267 echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
21268 APRUTIL_INCLUDES="-I$found/include"
21270 apr_addto_bugger="-I$found/include"
21271 for i in $apr_addto_bugger; do
21272 apr_addto_duplicate="0"
21273 for j in $APRUTIL_INCLUDES; do
21274 if test "x$i" = "x$j"; then
21275 apr_addto_duplicate="1"
21279 if test $apr_addto_duplicate = "0"; then
21280 echo " adding \"$i\" to APRUTIL_INCLUDES"
21281 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
21287 if test "x$APRUTIL_LDFLAGS" = "x"; then
21288 echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
21289 APRUTIL_LDFLAGS="-L$found/lib"
21291 apr_addto_bugger="-L$found/lib"
21292 for i in $apr_addto_bugger; do
21293 apr_addto_duplicate="0"
21294 for j in $APRUTIL_LDFLAGS; do
21295 if test "x$i" = "x$j"; then
21296 apr_addto_duplicate="1"
21300 if test $apr_addto_duplicate = "0"; then
21301 echo " adding \"$i\" to APRUTIL_LDFLAGS"
21302 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
21307 apu_db_header=$bdb_header
21308 apu_db_lib=$bdb_libname
21313 if test "$apu_have_db" = "1"; then
21317 if test "$apu_db_version" != "4"; then
21318 { { $as_echo "$as_me:$LINENO: error: Berkeley db4 not found" >&5
21319 $as_echo "$as_me: error: Berkeley db4 not found" >&2;}
21320 { (exit 1); exit 1; }; }
21325 places="$check_places"
21326 if test -z "$places"; then
21327 places="std /usr/local /usr/local/BerkeleyDB.4.2 /boot/home/config"
21331 if test ""2"" != "-1"; then
21332 bdb_version="$bdb_version."2""
21333 if test ""-1"" != "-1"; then
21334 bdb_version="$bdb_version."-1""
21337 bdb_places="$places"
21338 bdb_default_search_headers="db42/db.h db4/db.h db.h"
21339 bdb_default_search_lib_names="db-4.2 db42 db4 db"
21344 # Save the original values of the flags we tweak.
21345 apu_check_lib_save_libs="$LIBS"
21346 apu_check_lib_save_ldflags="$LDFLAGS"
21347 apu_check_lib_save_cppflags="$CPPFLAGS"
21349 # The variable `found' is the prefix under which we've found
21350 # Berkeley DB, or `not' if we haven't found it anywhere yet.
21352 for bdb_place in $bdb_places; do
21354 LDFLAGS="$apu_check_lib_save_ldflags"
21355 CPPFLAGS="$apu_check_lib_save_cppflags"
21356 case "$bdb_place" in
21358 description="the standard places"
21361 header="`echo $bdb_place | sed -e 's/:.*$//'`"
21362 lib="`echo $bdb_place | sed -e 's/^.*://'`"
21363 CPPFLAGS="$CPPFLAGS -I$header"
21364 LDFLAGS="$LDFLAGS -L$lib"
21365 description="$header and $lib"
21368 if test -d $bdb_place; then
21369 LDFLAGS="$LDFLAGS -L$bdb_place/lib"
21370 CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
21372 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
21373 $as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; }
21374 { $as_echo "$as_me:$LINENO: result: directory not found" >&5
21375 $as_echo "directory not found" >&6; }
21378 description="$bdb_place"
21382 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
21383 # trick to display a message instead.
21384 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
21385 $as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; }
21386 { $as_echo "$as_me:$LINENO: result: " >&5
21389 for bdb_libname in $bdb_default_search_lib_names; do
21390 for bdb_header in $bdb_default_search_headers; do
21391 # Clear the header cache variable for each location
21393 cache_id="`echo ac_cv_header_${bdb_header} \
21394 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
21397 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh`
21398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21399 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
21400 $as_echo_n "checking for $bdb_header... " >&6; }
21401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21402 $as_echo_n "(cached) " >&6
21404 ac_res=`eval 'as_val=${'$as_ac_Header'}
21405 $as_echo "$as_val"'`
21406 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21407 $as_echo "$ac_res" >&6; }
21409 # Is the header compilable?
21410 { $as_echo "$as_me:$LINENO: checking $bdb_header usability" >&5
21411 $as_echo_n "checking $bdb_header usability... " >&6; }
21412 cat >conftest.$ac_ext <<_ACEOF
21415 cat confdefs.h >>conftest.$ac_ext
21416 cat >>conftest.$ac_ext <<_ACEOF
21417 /* end confdefs.h. */
21418 $ac_includes_default
21419 #include <$bdb_header>
21421 rm -f conftest.$ac_objext
21422 if { (ac_try="$ac_compile"
21423 case "(($ac_try" in
21424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21425 *) ac_try_echo=$ac_try;;
21427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21428 $as_echo "$ac_try_echo") >&5
21429 (eval "$ac_compile") 2>conftest.er1
21431 grep -v '^ *+' conftest.er1 >conftest.err
21433 cat conftest.err >&5
21434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21435 (exit $ac_status); } && {
21436 test -z "$ac_c_werror_flag" ||
21437 test ! -s conftest.err
21438 } && test -s conftest.$ac_objext; then
21439 ac_header_compiler=yes
21441 $as_echo "$as_me: failed program was:" >&5
21442 sed 's/^/| /' conftest.$ac_ext >&5
21444 ac_header_compiler=no
21447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21448 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21449 $as_echo "$ac_header_compiler" >&6; }
21451 # Is the header present?
21452 { $as_echo "$as_me:$LINENO: checking $bdb_header presence" >&5
21453 $as_echo_n "checking $bdb_header presence... " >&6; }
21454 cat >conftest.$ac_ext <<_ACEOF
21457 cat confdefs.h >>conftest.$ac_ext
21458 cat >>conftest.$ac_ext <<_ACEOF
21459 /* end confdefs.h. */
21460 #include <$bdb_header>
21462 if { (ac_try="$ac_cpp conftest.$ac_ext"
21463 case "(($ac_try" in
21464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21465 *) ac_try_echo=$ac_try;;
21467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21468 $as_echo "$ac_try_echo") >&5
21469 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21471 grep -v '^ *+' conftest.er1 >conftest.err
21473 cat conftest.err >&5
21474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21475 (exit $ac_status); } >/dev/null && {
21476 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21477 test ! -s conftest.err
21479 ac_header_preproc=yes
21481 $as_echo "$as_me: failed program was:" >&5
21482 sed 's/^/| /' conftest.$ac_ext >&5
21484 ac_header_preproc=no
21487 rm -f conftest.err conftest.$ac_ext
21488 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21489 $as_echo "$ac_header_preproc" >&6; }
21491 # So? What about this header?
21492 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21494 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
21495 $as_echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21496 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
21497 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
21498 ac_header_preproc=yes
21501 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
21502 $as_echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
21503 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
21504 $as_echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
21505 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
21506 $as_echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
21507 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
21508 $as_echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
21509 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
21510 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
21511 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
21512 $as_echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
21516 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
21517 $as_echo_n "checking for $bdb_header... " >&6; }
21518 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21519 $as_echo_n "(cached) " >&6
21521 eval "$as_ac_Header=\$ac_header_preproc"
21523 ac_res=`eval 'as_val=${'$as_ac_Header'}
21524 $as_echo "$as_val"'`
21525 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21526 $as_echo "$ac_res" >&6; }
21529 as_val=`eval 'as_val=${'$as_ac_Header'}
21530 $as_echo "$as_val"'`
21531 if test "x$as_val" = x""yes; then
21533 if test ""4"" = "3" -o ""4"" = "4"; then
21534 # We generate a separate cache variable for each prefix and libname
21535 # we search under. That way, we avoid caching information that
21536 # changes if the user runs `configure' with a different set of
21539 cache_id="`echo apu_cv_check_berkeley_db_"4"_"2"_"-1"_${bdb_header}_${bdb_libname}_in_${bdb_place} \
21540 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
21543 { $as_echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
21544 $as_echo_n "checking for -l$bdb_libname... " >&6; }
21545 if { as_var=$cache_id; eval "test \"\${$as_var+set}\" = set"; }; then
21546 $as_echo_n "(cached) " >&6
21550 apu_try_berkeley_db_save_libs="$LIBS"
21552 apu_check_berkeley_db_major="4"
21553 apu_check_berkeley_db_minor="2"
21554 apu_check_berkeley_db_patch="-1"
21555 apu_try_berkeley_db_header=$bdb_header
21556 apu_try_berkeley_db_libname=$bdb_libname
21558 LIBS="$LIBS -l$apu_try_berkeley_db_libname"
21559 if test "$cross_compiling" = yes; then
21560 apu_try_berkeley_db=yes
21563 cat >conftest.$ac_ext <<_ACEOF
21566 cat confdefs.h >>conftest.$ac_ext
21567 cat >>conftest.$ac_ext <<_ACEOF
21568 /* end confdefs.h. */
21570 #include <stdlib.h>
21572 #include <$apu_try_berkeley_db_header>
21575 int major, minor, patch;
21577 db_version(&major, &minor, &patch);
21579 /* Sanity check: ensure that db.h constants actually match the db library */
21580 if (major != DB_VERSION_MAJOR
21581 || minor != DB_VERSION_MINOR
21582 || patch != DB_VERSION_PATCH)
21585 /* Run-time check: ensure the library claims to be the correct version. */
21587 if ($apu_check_berkeley_db_major != -1) {
21588 if (major < $apu_check_berkeley_db_major)
21590 if (major > $apu_check_berkeley_db_major)
21594 if ($apu_check_berkeley_db_minor != -1) {
21595 if (minor < $apu_check_berkeley_db_minor)
21597 if (minor > $apu_check_berkeley_db_minor)
21601 if ($apu_check_berkeley_db_patch == -1
21602 || patch >= $apu_check_berkeley_db_patch)
21609 rm -f conftest$ac_exeext
21610 if { (ac_try="$ac_link"
21611 case "(($ac_try" in
21612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21613 *) ac_try_echo=$ac_try;;
21615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21616 $as_echo "$ac_try_echo") >&5
21617 (eval "$ac_link") 2>&5
21619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21620 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21621 { (case "(($ac_try" in
21622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21623 *) ac_try_echo=$ac_try;;
21625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21626 $as_echo "$ac_try_echo") >&5
21627 (eval "$ac_try") 2>&5
21629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21630 (exit $ac_status); }; }; then
21631 apu_try_berkeley_db=yes
21633 $as_echo "$as_me: program exited with status $ac_status" >&5
21634 $as_echo "$as_me: failed program was:" >&5
21635 sed 's/^/| /' conftest.$ac_ext >&5
21637 ( exit $ac_status )
21638 apu_try_berkeley_db=no
21640 rm -rf conftest.dSYM
21641 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21646 LIBS="$apu_try_berkeley_db_save_libs"
21649 eval "$cache_id=$apu_try_berkeley_db"
21653 result="`eval echo '$'$cache_id`"
21654 { $as_echo "$as_me:$LINENO: result: $result" >&5
21655 $as_echo "$result" >&6; }
21656 elif test ""4"" = "1"; then
21657 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
21658 { $as_echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
21659 $as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; }
21660 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21661 $as_echo_n "(cached) " >&6
21663 ac_check_lib_save_LIBS=$LIBS
21664 LIBS="-l$bdb_libname $LIBS"
21665 cat >conftest.$ac_ext <<_ACEOF
21668 cat confdefs.h >>conftest.$ac_ext
21669 cat >>conftest.$ac_ext <<_ACEOF
21670 /* end confdefs.h. */
21672 /* Override any GCC internal prototype to avoid an error.
21673 Use char because int might match the return type of a GCC
21674 builtin and then its argument prototype would still apply. */
21687 rm -f conftest.$ac_objext conftest$ac_exeext
21688 if { (ac_try="$ac_link"
21689 case "(($ac_try" in
21690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21691 *) ac_try_echo=$ac_try;;
21693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21694 $as_echo "$ac_try_echo") >&5
21695 (eval "$ac_link") 2>conftest.er1
21697 grep -v '^ *+' conftest.er1 >conftest.err
21699 cat conftest.err >&5
21700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21701 (exit $ac_status); } && {
21702 test -z "$ac_c_werror_flag" ||
21703 test ! -s conftest.err
21704 } && test -s conftest$ac_exeext && {
21705 test "$cross_compiling" = yes ||
21706 $as_test_x conftest$ac_exeext
21708 eval "$as_ac_Lib=yes"
21710 $as_echo "$as_me: failed program was:" >&5
21711 sed 's/^/| /' conftest.$ac_ext >&5
21713 eval "$as_ac_Lib=no"
21716 rm -rf conftest.dSYM
21717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21718 conftest$ac_exeext conftest.$ac_ext
21719 LIBS=$ac_check_lib_save_LIBS
21721 ac_res=`eval 'as_val=${'$as_ac_Lib'}
21722 $as_echo "$as_val"'`
21723 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21724 $as_echo "$ac_res" >&6; }
21725 as_val=`eval 'as_val=${'$as_ac_Lib'}
21726 $as_echo "$as_val"'`
21727 if test "x$as_val" = x""yes; then
21734 elif test ""4"" = "2"; then
21735 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
21736 { $as_echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
21737 $as_echo_n "checking for db_open in -l$bdb_libname... " >&6; }
21738 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21739 $as_echo_n "(cached) " >&6
21741 ac_check_lib_save_LIBS=$LIBS
21742 LIBS="-l$bdb_libname $LIBS"
21743 cat >conftest.$ac_ext <<_ACEOF
21746 cat confdefs.h >>conftest.$ac_ext
21747 cat >>conftest.$ac_ext <<_ACEOF
21748 /* end confdefs.h. */
21750 /* Override any GCC internal prototype to avoid an error.
21751 Use char because int might match the return type of a GCC
21752 builtin and then its argument prototype would still apply. */
21765 rm -f conftest.$ac_objext conftest$ac_exeext
21766 if { (ac_try="$ac_link"
21767 case "(($ac_try" in
21768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21769 *) ac_try_echo=$ac_try;;
21771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21772 $as_echo "$ac_try_echo") >&5
21773 (eval "$ac_link") 2>conftest.er1
21775 grep -v '^ *+' conftest.er1 >conftest.err
21777 cat conftest.err >&5
21778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21779 (exit $ac_status); } && {
21780 test -z "$ac_c_werror_flag" ||
21781 test ! -s conftest.err
21782 } && test -s conftest$ac_exeext && {
21783 test "$cross_compiling" = yes ||
21784 $as_test_x conftest$ac_exeext
21786 eval "$as_ac_Lib=yes"
21788 $as_echo "$as_me: failed program was:" >&5
21789 sed 's/^/| /' conftest.$ac_ext >&5
21791 eval "$as_ac_Lib=no"
21794 rm -rf conftest.dSYM
21795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21796 conftest$ac_exeext conftest.$ac_ext
21797 LIBS=$ac_check_lib_save_LIBS
21799 ac_res=`eval 'as_val=${'$as_ac_Lib'}
21800 $as_echo "$as_val"'`
21801 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21802 $as_echo "$ac_res" >&6; }
21803 as_val=`eval 'as_val=${'$as_ac_Lib'}
21804 $as_echo "$as_val"'`
21805 if test "x$as_val" = x""yes; then
21820 # If we found it, no need to search any more.
21821 if test "$result" = "yes"; then
21826 test "$found" != "not" && break
21828 test "$found" != "not" && break
21831 # Restore the original values of the flags we tweak.
21832 LDFLAGS="$apu_check_lib_save_ldflags"
21833 CPPFLAGS="$apu_check_lib_save_cppflags"
21840 apu_db_header=$bdb_header
21841 apu_db_lib=$bdb_libname
21845 header="`echo $found | sed -e 's/:.*$//'`"
21846 lib="`echo $found | sed -e 's/^.*://'`"
21849 if test "x$APRUTIL_INCLUDES" = "x"; then
21850 echo " setting APRUTIL_INCLUDES to \"-I$header\""
21851 APRUTIL_INCLUDES="-I$header"
21853 apr_addto_bugger="-I$header"
21854 for i in $apr_addto_bugger; do
21855 apr_addto_duplicate="0"
21856 for j in $APRUTIL_INCLUDES; do
21857 if test "x$i" = "x$j"; then
21858 apr_addto_duplicate="1"
21862 if test $apr_addto_duplicate = "0"; then
21863 echo " adding \"$i\" to APRUTIL_INCLUDES"
21864 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
21870 if test "x$APRUTIL_LDFLAGS" = "x"; then
21871 echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
21872 APRUTIL_LDFLAGS="-L$lib"
21874 apr_addto_bugger="-L$lib"
21875 for i in $apr_addto_bugger; do
21876 apr_addto_duplicate="0"
21877 for j in $APRUTIL_LDFLAGS; do
21878 if test "x$i" = "x$j"; then
21879 apr_addto_duplicate="1"
21883 if test $apr_addto_duplicate = "0"; then
21884 echo " adding \"$i\" to APRUTIL_LDFLAGS"
21885 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
21890 apu_db_header=$bdb_header
21891 apu_db_lib=$bdb_libname
21896 if test "x$APRUTIL_INCLUDES" = "x"; then
21897 echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
21898 APRUTIL_INCLUDES="-I$found/include"
21900 apr_addto_bugger="-I$found/include"
21901 for i in $apr_addto_bugger; do
21902 apr_addto_duplicate="0"
21903 for j in $APRUTIL_INCLUDES; do
21904 if test "x$i" = "x$j"; then
21905 apr_addto_duplicate="1"
21909 if test $apr_addto_duplicate = "0"; then
21910 echo " adding \"$i\" to APRUTIL_INCLUDES"
21911 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
21917 if test "x$APRUTIL_LDFLAGS" = "x"; then
21918 echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
21919 APRUTIL_LDFLAGS="-L$found/lib"
21921 apr_addto_bugger="-L$found/lib"
21922 for i in $apr_addto_bugger; do
21923 apr_addto_duplicate="0"
21924 for j in $APRUTIL_LDFLAGS; do
21925 if test "x$i" = "x$j"; then
21926 apr_addto_duplicate="1"
21930 if test $apr_addto_duplicate = "0"; then
21931 echo " adding \"$i\" to APRUTIL_LDFLAGS"
21932 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
21937 apu_db_header=$bdb_header
21938 apu_db_lib=$bdb_libname
21943 if test "$apu_have_db" = "1"; then
21947 if test "$apu_db_version" != "4"; then
21948 { { $as_echo "$as_me:$LINENO: error: Berkeley db4 not found" >&5
21949 $as_echo "$as_me: error: Berkeley db4 not found" >&2;}
21950 { (exit 1); exit 1; }; }
21955 places="$check_places"
21956 if test -z "$places"; then
21957 places="std /usr/local/BerkeleyDB.4.3 /boot/home/config"
21961 if test ""3"" != "-1"; then
21962 bdb_version="$bdb_version."3""
21963 if test ""-1"" != "-1"; then
21964 bdb_version="$bdb_version."-1""
21967 bdb_places="$places"
21968 bdb_default_search_headers="db43/db.h db4/db.h db.h"
21969 bdb_default_search_lib_names="db-4.3 db4-4.3 db43 db4 db"
21974 # Save the original values of the flags we tweak.
21975 apu_check_lib_save_libs="$LIBS"
21976 apu_check_lib_save_ldflags="$LDFLAGS"
21977 apu_check_lib_save_cppflags="$CPPFLAGS"
21979 # The variable `found' is the prefix under which we've found
21980 # Berkeley DB, or `not' if we haven't found it anywhere yet.
21982 for bdb_place in $bdb_places; do
21984 LDFLAGS="$apu_check_lib_save_ldflags"
21985 CPPFLAGS="$apu_check_lib_save_cppflags"
21986 case "$bdb_place" in
21988 description="the standard places"
21991 header="`echo $bdb_place | sed -e 's/:.*$//'`"
21992 lib="`echo $bdb_place | sed -e 's/^.*://'`"
21993 CPPFLAGS="$CPPFLAGS -I$header"
21994 LDFLAGS="$LDFLAGS -L$lib"
21995 description="$header and $lib"
21998 if test -d $bdb_place; then
21999 LDFLAGS="$LDFLAGS -L$bdb_place/lib"
22000 CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
22002 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
22003 $as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; }
22004 { $as_echo "$as_me:$LINENO: result: directory not found" >&5
22005 $as_echo "directory not found" >&6; }
22008 description="$bdb_place"
22012 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
22013 # trick to display a message instead.
22014 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
22015 $as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; }
22016 { $as_echo "$as_me:$LINENO: result: " >&5
22019 for bdb_libname in $bdb_default_search_lib_names; do
22020 for bdb_header in $bdb_default_search_headers; do
22021 # Clear the header cache variable for each location
22023 cache_id="`echo ac_cv_header_${bdb_header} \
22024 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
22027 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh`
22028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22029 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
22030 $as_echo_n "checking for $bdb_header... " >&6; }
22031 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22032 $as_echo_n "(cached) " >&6
22034 ac_res=`eval 'as_val=${'$as_ac_Header'}
22035 $as_echo "$as_val"'`
22036 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22037 $as_echo "$ac_res" >&6; }
22039 # Is the header compilable?
22040 { $as_echo "$as_me:$LINENO: checking $bdb_header usability" >&5
22041 $as_echo_n "checking $bdb_header usability... " >&6; }
22042 cat >conftest.$ac_ext <<_ACEOF
22045 cat confdefs.h >>conftest.$ac_ext
22046 cat >>conftest.$ac_ext <<_ACEOF
22047 /* end confdefs.h. */
22048 $ac_includes_default
22049 #include <$bdb_header>
22051 rm -f conftest.$ac_objext
22052 if { (ac_try="$ac_compile"
22053 case "(($ac_try" in
22054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22055 *) ac_try_echo=$ac_try;;
22057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22058 $as_echo "$ac_try_echo") >&5
22059 (eval "$ac_compile") 2>conftest.er1
22061 grep -v '^ *+' conftest.er1 >conftest.err
22063 cat conftest.err >&5
22064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22065 (exit $ac_status); } && {
22066 test -z "$ac_c_werror_flag" ||
22067 test ! -s conftest.err
22068 } && test -s conftest.$ac_objext; then
22069 ac_header_compiler=yes
22071 $as_echo "$as_me: failed program was:" >&5
22072 sed 's/^/| /' conftest.$ac_ext >&5
22074 ac_header_compiler=no
22077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22078 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22079 $as_echo "$ac_header_compiler" >&6; }
22081 # Is the header present?
22082 { $as_echo "$as_me:$LINENO: checking $bdb_header presence" >&5
22083 $as_echo_n "checking $bdb_header presence... " >&6; }
22084 cat >conftest.$ac_ext <<_ACEOF
22087 cat confdefs.h >>conftest.$ac_ext
22088 cat >>conftest.$ac_ext <<_ACEOF
22089 /* end confdefs.h. */
22090 #include <$bdb_header>
22092 if { (ac_try="$ac_cpp conftest.$ac_ext"
22093 case "(($ac_try" in
22094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22095 *) ac_try_echo=$ac_try;;
22097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22098 $as_echo "$ac_try_echo") >&5
22099 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22101 grep -v '^ *+' conftest.er1 >conftest.err
22103 cat conftest.err >&5
22104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22105 (exit $ac_status); } >/dev/null && {
22106 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22107 test ! -s conftest.err
22109 ac_header_preproc=yes
22111 $as_echo "$as_me: failed program was:" >&5
22112 sed 's/^/| /' conftest.$ac_ext >&5
22114 ac_header_preproc=no
22117 rm -f conftest.err conftest.$ac_ext
22118 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22119 $as_echo "$ac_header_preproc" >&6; }
22121 # So? What about this header?
22122 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22124 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
22125 $as_echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22126 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
22127 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
22128 ac_header_preproc=yes
22131 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
22132 $as_echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
22133 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
22134 $as_echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
22135 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
22136 $as_echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
22137 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
22138 $as_echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
22139 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
22140 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
22141 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
22142 $as_echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
22146 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
22147 $as_echo_n "checking for $bdb_header... " >&6; }
22148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22149 $as_echo_n "(cached) " >&6
22151 eval "$as_ac_Header=\$ac_header_preproc"
22153 ac_res=`eval 'as_val=${'$as_ac_Header'}
22154 $as_echo "$as_val"'`
22155 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22156 $as_echo "$ac_res" >&6; }
22159 as_val=`eval 'as_val=${'$as_ac_Header'}
22160 $as_echo "$as_val"'`
22161 if test "x$as_val" = x""yes; then
22163 if test ""4"" = "3" -o ""4"" = "4"; then
22164 # We generate a separate cache variable for each prefix and libname
22165 # we search under. That way, we avoid caching information that
22166 # changes if the user runs `configure' with a different set of
22169 cache_id="`echo apu_cv_check_berkeley_db_"4"_"3"_"-1"_${bdb_header}_${bdb_libname}_in_${bdb_place} \
22170 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
22173 { $as_echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
22174 $as_echo_n "checking for -l$bdb_libname... " >&6; }
22175 if { as_var=$cache_id; eval "test \"\${$as_var+set}\" = set"; }; then
22176 $as_echo_n "(cached) " >&6
22180 apu_try_berkeley_db_save_libs="$LIBS"
22182 apu_check_berkeley_db_major="4"
22183 apu_check_berkeley_db_minor="3"
22184 apu_check_berkeley_db_patch="-1"
22185 apu_try_berkeley_db_header=$bdb_header
22186 apu_try_berkeley_db_libname=$bdb_libname
22188 LIBS="$LIBS -l$apu_try_berkeley_db_libname"
22189 if test "$cross_compiling" = yes; then
22190 apu_try_berkeley_db=yes
22193 cat >conftest.$ac_ext <<_ACEOF
22196 cat confdefs.h >>conftest.$ac_ext
22197 cat >>conftest.$ac_ext <<_ACEOF
22198 /* end confdefs.h. */
22200 #include <stdlib.h>
22202 #include <$apu_try_berkeley_db_header>
22205 int major, minor, patch;
22207 db_version(&major, &minor, &patch);
22209 /* Sanity check: ensure that db.h constants actually match the db library */
22210 if (major != DB_VERSION_MAJOR
22211 || minor != DB_VERSION_MINOR
22212 || patch != DB_VERSION_PATCH)
22215 /* Run-time check: ensure the library claims to be the correct version. */
22217 if ($apu_check_berkeley_db_major != -1) {
22218 if (major < $apu_check_berkeley_db_major)
22220 if (major > $apu_check_berkeley_db_major)
22224 if ($apu_check_berkeley_db_minor != -1) {
22225 if (minor < $apu_check_berkeley_db_minor)
22227 if (minor > $apu_check_berkeley_db_minor)
22231 if ($apu_check_berkeley_db_patch == -1
22232 || patch >= $apu_check_berkeley_db_patch)
22239 rm -f conftest$ac_exeext
22240 if { (ac_try="$ac_link"
22241 case "(($ac_try" in
22242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22243 *) ac_try_echo=$ac_try;;
22245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22246 $as_echo "$ac_try_echo") >&5
22247 (eval "$ac_link") 2>&5
22249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22250 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22251 { (case "(($ac_try" in
22252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22253 *) ac_try_echo=$ac_try;;
22255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22256 $as_echo "$ac_try_echo") >&5
22257 (eval "$ac_try") 2>&5
22259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22260 (exit $ac_status); }; }; then
22261 apu_try_berkeley_db=yes
22263 $as_echo "$as_me: program exited with status $ac_status" >&5
22264 $as_echo "$as_me: failed program was:" >&5
22265 sed 's/^/| /' conftest.$ac_ext >&5
22267 ( exit $ac_status )
22268 apu_try_berkeley_db=no
22270 rm -rf conftest.dSYM
22271 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22276 LIBS="$apu_try_berkeley_db_save_libs"
22279 eval "$cache_id=$apu_try_berkeley_db"
22283 result="`eval echo '$'$cache_id`"
22284 { $as_echo "$as_me:$LINENO: result: $result" >&5
22285 $as_echo "$result" >&6; }
22286 elif test ""4"" = "1"; then
22287 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
22288 { $as_echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
22289 $as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; }
22290 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22291 $as_echo_n "(cached) " >&6
22293 ac_check_lib_save_LIBS=$LIBS
22294 LIBS="-l$bdb_libname $LIBS"
22295 cat >conftest.$ac_ext <<_ACEOF
22298 cat confdefs.h >>conftest.$ac_ext
22299 cat >>conftest.$ac_ext <<_ACEOF
22300 /* end confdefs.h. */
22302 /* Override any GCC internal prototype to avoid an error.
22303 Use char because int might match the return type of a GCC
22304 builtin and then its argument prototype would still apply. */
22317 rm -f conftest.$ac_objext conftest$ac_exeext
22318 if { (ac_try="$ac_link"
22319 case "(($ac_try" in
22320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22321 *) ac_try_echo=$ac_try;;
22323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22324 $as_echo "$ac_try_echo") >&5
22325 (eval "$ac_link") 2>conftest.er1
22327 grep -v '^ *+' conftest.er1 >conftest.err
22329 cat conftest.err >&5
22330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22331 (exit $ac_status); } && {
22332 test -z "$ac_c_werror_flag" ||
22333 test ! -s conftest.err
22334 } && test -s conftest$ac_exeext && {
22335 test "$cross_compiling" = yes ||
22336 $as_test_x conftest$ac_exeext
22338 eval "$as_ac_Lib=yes"
22340 $as_echo "$as_me: failed program was:" >&5
22341 sed 's/^/| /' conftest.$ac_ext >&5
22343 eval "$as_ac_Lib=no"
22346 rm -rf conftest.dSYM
22347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22348 conftest$ac_exeext conftest.$ac_ext
22349 LIBS=$ac_check_lib_save_LIBS
22351 ac_res=`eval 'as_val=${'$as_ac_Lib'}
22352 $as_echo "$as_val"'`
22353 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22354 $as_echo "$ac_res" >&6; }
22355 as_val=`eval 'as_val=${'$as_ac_Lib'}
22356 $as_echo "$as_val"'`
22357 if test "x$as_val" = x""yes; then
22364 elif test ""4"" = "2"; then
22365 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
22366 { $as_echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
22367 $as_echo_n "checking for db_open in -l$bdb_libname... " >&6; }
22368 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22369 $as_echo_n "(cached) " >&6
22371 ac_check_lib_save_LIBS=$LIBS
22372 LIBS="-l$bdb_libname $LIBS"
22373 cat >conftest.$ac_ext <<_ACEOF
22376 cat confdefs.h >>conftest.$ac_ext
22377 cat >>conftest.$ac_ext <<_ACEOF
22378 /* end confdefs.h. */
22380 /* Override any GCC internal prototype to avoid an error.
22381 Use char because int might match the return type of a GCC
22382 builtin and then its argument prototype would still apply. */
22395 rm -f conftest.$ac_objext conftest$ac_exeext
22396 if { (ac_try="$ac_link"
22397 case "(($ac_try" in
22398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22399 *) ac_try_echo=$ac_try;;
22401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22402 $as_echo "$ac_try_echo") >&5
22403 (eval "$ac_link") 2>conftest.er1
22405 grep -v '^ *+' conftest.er1 >conftest.err
22407 cat conftest.err >&5
22408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22409 (exit $ac_status); } && {
22410 test -z "$ac_c_werror_flag" ||
22411 test ! -s conftest.err
22412 } && test -s conftest$ac_exeext && {
22413 test "$cross_compiling" = yes ||
22414 $as_test_x conftest$ac_exeext
22416 eval "$as_ac_Lib=yes"
22418 $as_echo "$as_me: failed program was:" >&5
22419 sed 's/^/| /' conftest.$ac_ext >&5
22421 eval "$as_ac_Lib=no"
22424 rm -rf conftest.dSYM
22425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22426 conftest$ac_exeext conftest.$ac_ext
22427 LIBS=$ac_check_lib_save_LIBS
22429 ac_res=`eval 'as_val=${'$as_ac_Lib'}
22430 $as_echo "$as_val"'`
22431 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22432 $as_echo "$ac_res" >&6; }
22433 as_val=`eval 'as_val=${'$as_ac_Lib'}
22434 $as_echo "$as_val"'`
22435 if test "x$as_val" = x""yes; then
22450 # If we found it, no need to search any more.
22451 if test "$result" = "yes"; then
22456 test "$found" != "not" && break
22458 test "$found" != "not" && break
22461 # Restore the original values of the flags we tweak.
22462 LDFLAGS="$apu_check_lib_save_ldflags"
22463 CPPFLAGS="$apu_check_lib_save_cppflags"
22470 apu_db_header=$bdb_header
22471 apu_db_lib=$bdb_libname
22475 header="`echo $found | sed -e 's/:.*$//'`"
22476 lib="`echo $found | sed -e 's/^.*://'`"
22479 if test "x$APRUTIL_INCLUDES" = "x"; then
22480 echo " setting APRUTIL_INCLUDES to \"-I$header\""
22481 APRUTIL_INCLUDES="-I$header"
22483 apr_addto_bugger="-I$header"
22484 for i in $apr_addto_bugger; do
22485 apr_addto_duplicate="0"
22486 for j in $APRUTIL_INCLUDES; do
22487 if test "x$i" = "x$j"; then
22488 apr_addto_duplicate="1"
22492 if test $apr_addto_duplicate = "0"; then
22493 echo " adding \"$i\" to APRUTIL_INCLUDES"
22494 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
22500 if test "x$APRUTIL_LDFLAGS" = "x"; then
22501 echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
22502 APRUTIL_LDFLAGS="-L$lib"
22504 apr_addto_bugger="-L$lib"
22505 for i in $apr_addto_bugger; do
22506 apr_addto_duplicate="0"
22507 for j in $APRUTIL_LDFLAGS; do
22508 if test "x$i" = "x$j"; then
22509 apr_addto_duplicate="1"
22513 if test $apr_addto_duplicate = "0"; then
22514 echo " adding \"$i\" to APRUTIL_LDFLAGS"
22515 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
22520 apu_db_header=$bdb_header
22521 apu_db_lib=$bdb_libname
22526 if test "x$APRUTIL_INCLUDES" = "x"; then
22527 echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
22528 APRUTIL_INCLUDES="-I$found/include"
22530 apr_addto_bugger="-I$found/include"
22531 for i in $apr_addto_bugger; do
22532 apr_addto_duplicate="0"
22533 for j in $APRUTIL_INCLUDES; do
22534 if test "x$i" = "x$j"; then
22535 apr_addto_duplicate="1"
22539 if test $apr_addto_duplicate = "0"; then
22540 echo " adding \"$i\" to APRUTIL_INCLUDES"
22541 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
22547 if test "x$APRUTIL_LDFLAGS" = "x"; then
22548 echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
22549 APRUTIL_LDFLAGS="-L$found/lib"
22551 apr_addto_bugger="-L$found/lib"
22552 for i in $apr_addto_bugger; do
22553 apr_addto_duplicate="0"
22554 for j in $APRUTIL_LDFLAGS; do
22555 if test "x$i" = "x$j"; then
22556 apr_addto_duplicate="1"
22560 if test $apr_addto_duplicate = "0"; then
22561 echo " adding \"$i\" to APRUTIL_LDFLAGS"
22562 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
22567 apu_db_header=$bdb_header
22568 apu_db_lib=$bdb_libname
22573 if test "$apu_have_db" = "1"; then
22577 if test "$apu_db_version" != "4"; then
22578 { { $as_echo "$as_me:$LINENO: error: Berkeley db4 not found" >&5
22579 $as_echo "$as_me: error: Berkeley db4 not found" >&2;}
22580 { (exit 1); exit 1; }; }
22585 places="$check_places"
22586 if test -z "$places"; then
22587 places="std /usr/local/BerkeleyDB.4.4 /boot/home/config"
22591 if test ""4"" != "-1"; then
22592 bdb_version="$bdb_version."4""
22593 if test ""-1"" != "-1"; then
22594 bdb_version="$bdb_version."-1""
22597 bdb_places="$places"
22598 bdb_default_search_headers="db44/db.h db4/db.h db.h"
22599 bdb_default_search_lib_names="db-4.4 db4-4.4 db44 db4 db"
22604 # Save the original values of the flags we tweak.
22605 apu_check_lib_save_libs="$LIBS"
22606 apu_check_lib_save_ldflags="$LDFLAGS"
22607 apu_check_lib_save_cppflags="$CPPFLAGS"
22609 # The variable `found' is the prefix under which we've found
22610 # Berkeley DB, or `not' if we haven't found it anywhere yet.
22612 for bdb_place in $bdb_places; do
22614 LDFLAGS="$apu_check_lib_save_ldflags"
22615 CPPFLAGS="$apu_check_lib_save_cppflags"
22616 case "$bdb_place" in
22618 description="the standard places"
22621 header="`echo $bdb_place | sed -e 's/:.*$//'`"
22622 lib="`echo $bdb_place | sed -e 's/^.*://'`"
22623 CPPFLAGS="$CPPFLAGS -I$header"
22624 LDFLAGS="$LDFLAGS -L$lib"
22625 description="$header and $lib"
22628 if test -d $bdb_place; then
22629 LDFLAGS="$LDFLAGS -L$bdb_place/lib"
22630 CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
22632 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
22633 $as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; }
22634 { $as_echo "$as_me:$LINENO: result: directory not found" >&5
22635 $as_echo "directory not found" >&6; }
22638 description="$bdb_place"
22642 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
22643 # trick to display a message instead.
22644 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
22645 $as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; }
22646 { $as_echo "$as_me:$LINENO: result: " >&5
22649 for bdb_libname in $bdb_default_search_lib_names; do
22650 for bdb_header in $bdb_default_search_headers; do
22651 # Clear the header cache variable for each location
22653 cache_id="`echo ac_cv_header_${bdb_header} \
22654 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
22657 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh`
22658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22659 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
22660 $as_echo_n "checking for $bdb_header... " >&6; }
22661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22662 $as_echo_n "(cached) " >&6
22664 ac_res=`eval 'as_val=${'$as_ac_Header'}
22665 $as_echo "$as_val"'`
22666 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22667 $as_echo "$ac_res" >&6; }
22669 # Is the header compilable?
22670 { $as_echo "$as_me:$LINENO: checking $bdb_header usability" >&5
22671 $as_echo_n "checking $bdb_header usability... " >&6; }
22672 cat >conftest.$ac_ext <<_ACEOF
22675 cat confdefs.h >>conftest.$ac_ext
22676 cat >>conftest.$ac_ext <<_ACEOF
22677 /* end confdefs.h. */
22678 $ac_includes_default
22679 #include <$bdb_header>
22681 rm -f conftest.$ac_objext
22682 if { (ac_try="$ac_compile"
22683 case "(($ac_try" in
22684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22685 *) ac_try_echo=$ac_try;;
22687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22688 $as_echo "$ac_try_echo") >&5
22689 (eval "$ac_compile") 2>conftest.er1
22691 grep -v '^ *+' conftest.er1 >conftest.err
22693 cat conftest.err >&5
22694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22695 (exit $ac_status); } && {
22696 test -z "$ac_c_werror_flag" ||
22697 test ! -s conftest.err
22698 } && test -s conftest.$ac_objext; then
22699 ac_header_compiler=yes
22701 $as_echo "$as_me: failed program was:" >&5
22702 sed 's/^/| /' conftest.$ac_ext >&5
22704 ac_header_compiler=no
22707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22708 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22709 $as_echo "$ac_header_compiler" >&6; }
22711 # Is the header present?
22712 { $as_echo "$as_me:$LINENO: checking $bdb_header presence" >&5
22713 $as_echo_n "checking $bdb_header presence... " >&6; }
22714 cat >conftest.$ac_ext <<_ACEOF
22717 cat confdefs.h >>conftest.$ac_ext
22718 cat >>conftest.$ac_ext <<_ACEOF
22719 /* end confdefs.h. */
22720 #include <$bdb_header>
22722 if { (ac_try="$ac_cpp conftest.$ac_ext"
22723 case "(($ac_try" in
22724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22725 *) ac_try_echo=$ac_try;;
22727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22728 $as_echo "$ac_try_echo") >&5
22729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22731 grep -v '^ *+' conftest.er1 >conftest.err
22733 cat conftest.err >&5
22734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22735 (exit $ac_status); } >/dev/null && {
22736 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22737 test ! -s conftest.err
22739 ac_header_preproc=yes
22741 $as_echo "$as_me: failed program was:" >&5
22742 sed 's/^/| /' conftest.$ac_ext >&5
22744 ac_header_preproc=no
22747 rm -f conftest.err conftest.$ac_ext
22748 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22749 $as_echo "$ac_header_preproc" >&6; }
22751 # So? What about this header?
22752 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22754 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
22755 $as_echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22756 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
22757 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
22758 ac_header_preproc=yes
22761 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
22762 $as_echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
22763 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
22764 $as_echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
22765 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
22766 $as_echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
22767 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
22768 $as_echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
22769 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
22770 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
22771 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
22772 $as_echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
22776 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
22777 $as_echo_n "checking for $bdb_header... " >&6; }
22778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22779 $as_echo_n "(cached) " >&6
22781 eval "$as_ac_Header=\$ac_header_preproc"
22783 ac_res=`eval 'as_val=${'$as_ac_Header'}
22784 $as_echo "$as_val"'`
22785 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22786 $as_echo "$ac_res" >&6; }
22789 as_val=`eval 'as_val=${'$as_ac_Header'}
22790 $as_echo "$as_val"'`
22791 if test "x$as_val" = x""yes; then
22793 if test ""4"" = "3" -o ""4"" = "4"; then
22794 # We generate a separate cache variable for each prefix and libname
22795 # we search under. That way, we avoid caching information that
22796 # changes if the user runs `configure' with a different set of
22799 cache_id="`echo apu_cv_check_berkeley_db_"4"_"4"_"-1"_${bdb_header}_${bdb_libname}_in_${bdb_place} \
22800 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
22803 { $as_echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
22804 $as_echo_n "checking for -l$bdb_libname... " >&6; }
22805 if { as_var=$cache_id; eval "test \"\${$as_var+set}\" = set"; }; then
22806 $as_echo_n "(cached) " >&6
22810 apu_try_berkeley_db_save_libs="$LIBS"
22812 apu_check_berkeley_db_major="4"
22813 apu_check_berkeley_db_minor="4"
22814 apu_check_berkeley_db_patch="-1"
22815 apu_try_berkeley_db_header=$bdb_header
22816 apu_try_berkeley_db_libname=$bdb_libname
22818 LIBS="$LIBS -l$apu_try_berkeley_db_libname"
22819 if test "$cross_compiling" = yes; then
22820 apu_try_berkeley_db=yes
22823 cat >conftest.$ac_ext <<_ACEOF
22826 cat confdefs.h >>conftest.$ac_ext
22827 cat >>conftest.$ac_ext <<_ACEOF
22828 /* end confdefs.h. */
22830 #include <stdlib.h>
22832 #include <$apu_try_berkeley_db_header>
22835 int major, minor, patch;
22837 db_version(&major, &minor, &patch);
22839 /* Sanity check: ensure that db.h constants actually match the db library */
22840 if (major != DB_VERSION_MAJOR
22841 || minor != DB_VERSION_MINOR
22842 || patch != DB_VERSION_PATCH)
22845 /* Run-time check: ensure the library claims to be the correct version. */
22847 if ($apu_check_berkeley_db_major != -1) {
22848 if (major < $apu_check_berkeley_db_major)
22850 if (major > $apu_check_berkeley_db_major)
22854 if ($apu_check_berkeley_db_minor != -1) {
22855 if (minor < $apu_check_berkeley_db_minor)
22857 if (minor > $apu_check_berkeley_db_minor)
22861 if ($apu_check_berkeley_db_patch == -1
22862 || patch >= $apu_check_berkeley_db_patch)
22869 rm -f conftest$ac_exeext
22870 if { (ac_try="$ac_link"
22871 case "(($ac_try" in
22872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22873 *) ac_try_echo=$ac_try;;
22875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22876 $as_echo "$ac_try_echo") >&5
22877 (eval "$ac_link") 2>&5
22879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22880 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22881 { (case "(($ac_try" in
22882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22883 *) ac_try_echo=$ac_try;;
22885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22886 $as_echo "$ac_try_echo") >&5
22887 (eval "$ac_try") 2>&5
22889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22890 (exit $ac_status); }; }; then
22891 apu_try_berkeley_db=yes
22893 $as_echo "$as_me: program exited with status $ac_status" >&5
22894 $as_echo "$as_me: failed program was:" >&5
22895 sed 's/^/| /' conftest.$ac_ext >&5
22897 ( exit $ac_status )
22898 apu_try_berkeley_db=no
22900 rm -rf conftest.dSYM
22901 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22906 LIBS="$apu_try_berkeley_db_save_libs"
22909 eval "$cache_id=$apu_try_berkeley_db"
22913 result="`eval echo '$'$cache_id`"
22914 { $as_echo "$as_me:$LINENO: result: $result" >&5
22915 $as_echo "$result" >&6; }
22916 elif test ""4"" = "1"; then
22917 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
22918 { $as_echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
22919 $as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; }
22920 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22921 $as_echo_n "(cached) " >&6
22923 ac_check_lib_save_LIBS=$LIBS
22924 LIBS="-l$bdb_libname $LIBS"
22925 cat >conftest.$ac_ext <<_ACEOF
22928 cat confdefs.h >>conftest.$ac_ext
22929 cat >>conftest.$ac_ext <<_ACEOF
22930 /* end confdefs.h. */
22932 /* Override any GCC internal prototype to avoid an error.
22933 Use char because int might match the return type of a GCC
22934 builtin and then its argument prototype would still apply. */
22947 rm -f conftest.$ac_objext conftest$ac_exeext
22948 if { (ac_try="$ac_link"
22949 case "(($ac_try" in
22950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22951 *) ac_try_echo=$ac_try;;
22953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22954 $as_echo "$ac_try_echo") >&5
22955 (eval "$ac_link") 2>conftest.er1
22957 grep -v '^ *+' conftest.er1 >conftest.err
22959 cat conftest.err >&5
22960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22961 (exit $ac_status); } && {
22962 test -z "$ac_c_werror_flag" ||
22963 test ! -s conftest.err
22964 } && test -s conftest$ac_exeext && {
22965 test "$cross_compiling" = yes ||
22966 $as_test_x conftest$ac_exeext
22968 eval "$as_ac_Lib=yes"
22970 $as_echo "$as_me: failed program was:" >&5
22971 sed 's/^/| /' conftest.$ac_ext >&5
22973 eval "$as_ac_Lib=no"
22976 rm -rf conftest.dSYM
22977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22978 conftest$ac_exeext conftest.$ac_ext
22979 LIBS=$ac_check_lib_save_LIBS
22981 ac_res=`eval 'as_val=${'$as_ac_Lib'}
22982 $as_echo "$as_val"'`
22983 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22984 $as_echo "$ac_res" >&6; }
22985 as_val=`eval 'as_val=${'$as_ac_Lib'}
22986 $as_echo "$as_val"'`
22987 if test "x$as_val" = x""yes; then
22994 elif test ""4"" = "2"; then
22995 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
22996 { $as_echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
22997 $as_echo_n "checking for db_open in -l$bdb_libname... " >&6; }
22998 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22999 $as_echo_n "(cached) " >&6
23001 ac_check_lib_save_LIBS=$LIBS
23002 LIBS="-l$bdb_libname $LIBS"
23003 cat >conftest.$ac_ext <<_ACEOF
23006 cat confdefs.h >>conftest.$ac_ext
23007 cat >>conftest.$ac_ext <<_ACEOF
23008 /* end confdefs.h. */
23010 /* Override any GCC internal prototype to avoid an error.
23011 Use char because int might match the return type of a GCC
23012 builtin and then its argument prototype would still apply. */
23025 rm -f conftest.$ac_objext conftest$ac_exeext
23026 if { (ac_try="$ac_link"
23027 case "(($ac_try" in
23028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23029 *) ac_try_echo=$ac_try;;
23031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23032 $as_echo "$ac_try_echo") >&5
23033 (eval "$ac_link") 2>conftest.er1
23035 grep -v '^ *+' conftest.er1 >conftest.err
23037 cat conftest.err >&5
23038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23039 (exit $ac_status); } && {
23040 test -z "$ac_c_werror_flag" ||
23041 test ! -s conftest.err
23042 } && test -s conftest$ac_exeext && {
23043 test "$cross_compiling" = yes ||
23044 $as_test_x conftest$ac_exeext
23046 eval "$as_ac_Lib=yes"
23048 $as_echo "$as_me: failed program was:" >&5
23049 sed 's/^/| /' conftest.$ac_ext >&5
23051 eval "$as_ac_Lib=no"
23054 rm -rf conftest.dSYM
23055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23056 conftest$ac_exeext conftest.$ac_ext
23057 LIBS=$ac_check_lib_save_LIBS
23059 ac_res=`eval 'as_val=${'$as_ac_Lib'}
23060 $as_echo "$as_val"'`
23061 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23062 $as_echo "$ac_res" >&6; }
23063 as_val=`eval 'as_val=${'$as_ac_Lib'}
23064 $as_echo "$as_val"'`
23065 if test "x$as_val" = x""yes; then
23080 # If we found it, no need to search any more.
23081 if test "$result" = "yes"; then
23086 test "$found" != "not" && break
23088 test "$found" != "not" && break
23091 # Restore the original values of the flags we tweak.
23092 LDFLAGS="$apu_check_lib_save_ldflags"
23093 CPPFLAGS="$apu_check_lib_save_cppflags"
23100 apu_db_header=$bdb_header
23101 apu_db_lib=$bdb_libname
23105 header="`echo $found | sed -e 's/:.*$//'`"
23106 lib="`echo $found | sed -e 's/^.*://'`"
23109 if test "x$APRUTIL_INCLUDES" = "x"; then
23110 echo " setting APRUTIL_INCLUDES to \"-I$header\""
23111 APRUTIL_INCLUDES="-I$header"
23113 apr_addto_bugger="-I$header"
23114 for i in $apr_addto_bugger; do
23115 apr_addto_duplicate="0"
23116 for j in $APRUTIL_INCLUDES; do
23117 if test "x$i" = "x$j"; then
23118 apr_addto_duplicate="1"
23122 if test $apr_addto_duplicate = "0"; then
23123 echo " adding \"$i\" to APRUTIL_INCLUDES"
23124 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
23130 if test "x$APRUTIL_LDFLAGS" = "x"; then
23131 echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
23132 APRUTIL_LDFLAGS="-L$lib"
23134 apr_addto_bugger="-L$lib"
23135 for i in $apr_addto_bugger; do
23136 apr_addto_duplicate="0"
23137 for j in $APRUTIL_LDFLAGS; do
23138 if test "x$i" = "x$j"; then
23139 apr_addto_duplicate="1"
23143 if test $apr_addto_duplicate = "0"; then
23144 echo " adding \"$i\" to APRUTIL_LDFLAGS"
23145 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
23150 apu_db_header=$bdb_header
23151 apu_db_lib=$bdb_libname
23156 if test "x$APRUTIL_INCLUDES" = "x"; then
23157 echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
23158 APRUTIL_INCLUDES="-I$found/include"
23160 apr_addto_bugger="-I$found/include"
23161 for i in $apr_addto_bugger; do
23162 apr_addto_duplicate="0"
23163 for j in $APRUTIL_INCLUDES; do
23164 if test "x$i" = "x$j"; then
23165 apr_addto_duplicate="1"
23169 if test $apr_addto_duplicate = "0"; then
23170 echo " adding \"$i\" to APRUTIL_INCLUDES"
23171 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
23177 if test "x$APRUTIL_LDFLAGS" = "x"; then
23178 echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
23179 APRUTIL_LDFLAGS="-L$found/lib"
23181 apr_addto_bugger="-L$found/lib"
23182 for i in $apr_addto_bugger; do
23183 apr_addto_duplicate="0"
23184 for j in $APRUTIL_LDFLAGS; do
23185 if test "x$i" = "x$j"; then
23186 apr_addto_duplicate="1"
23190 if test $apr_addto_duplicate = "0"; then
23191 echo " adding \"$i\" to APRUTIL_LDFLAGS"
23192 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
23197 apu_db_header=$bdb_header
23198 apu_db_lib=$bdb_libname
23203 if test "$apu_have_db" = "1"; then
23207 if test "$apu_db_version" != "4"; then
23208 { { $as_echo "$as_me:$LINENO: error: Berkeley db4 not found" >&5
23209 $as_echo "$as_me: error: Berkeley db4 not found" >&2;}
23210 { (exit 1); exit 1; }; }
23215 places="$check_places"
23216 if test -z "$places"; then
23217 places="std /usr/local/BerkeleyDB.4.5 /boot/home/config"
23221 if test ""5"" != "-1"; then
23222 bdb_version="$bdb_version."5""
23223 if test ""-1"" != "-1"; then
23224 bdb_version="$bdb_version."-1""
23227 bdb_places="$places"
23228 bdb_default_search_headers="db45/db.h db4/db.h db.h"
23229 bdb_default_search_lib_names="db-4.5 db4-4.5 db45 db4 db"
23234 # Save the original values of the flags we tweak.
23235 apu_check_lib_save_libs="$LIBS"
23236 apu_check_lib_save_ldflags="$LDFLAGS"
23237 apu_check_lib_save_cppflags="$CPPFLAGS"
23239 # The variable `found' is the prefix under which we've found
23240 # Berkeley DB, or `not' if we haven't found it anywhere yet.
23242 for bdb_place in $bdb_places; do
23244 LDFLAGS="$apu_check_lib_save_ldflags"
23245 CPPFLAGS="$apu_check_lib_save_cppflags"
23246 case "$bdb_place" in
23248 description="the standard places"
23251 header="`echo $bdb_place | sed -e 's/:.*$//'`"
23252 lib="`echo $bdb_place | sed -e 's/^.*://'`"
23253 CPPFLAGS="$CPPFLAGS -I$header"
23254 LDFLAGS="$LDFLAGS -L$lib"
23255 description="$header and $lib"
23258 if test -d $bdb_place; then
23259 LDFLAGS="$LDFLAGS -L$bdb_place/lib"
23260 CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
23262 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
23263 $as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; }
23264 { $as_echo "$as_me:$LINENO: result: directory not found" >&5
23265 $as_echo "directory not found" >&6; }
23268 description="$bdb_place"
23272 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
23273 # trick to display a message instead.
23274 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
23275 $as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; }
23276 { $as_echo "$as_me:$LINENO: result: " >&5
23279 for bdb_libname in $bdb_default_search_lib_names; do
23280 for bdb_header in $bdb_default_search_headers; do
23281 # Clear the header cache variable for each location
23283 cache_id="`echo ac_cv_header_${bdb_header} \
23284 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
23287 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh`
23288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23289 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
23290 $as_echo_n "checking for $bdb_header... " >&6; }
23291 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23292 $as_echo_n "(cached) " >&6
23294 ac_res=`eval 'as_val=${'$as_ac_Header'}
23295 $as_echo "$as_val"'`
23296 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23297 $as_echo "$ac_res" >&6; }
23299 # Is the header compilable?
23300 { $as_echo "$as_me:$LINENO: checking $bdb_header usability" >&5
23301 $as_echo_n "checking $bdb_header usability... " >&6; }
23302 cat >conftest.$ac_ext <<_ACEOF
23305 cat confdefs.h >>conftest.$ac_ext
23306 cat >>conftest.$ac_ext <<_ACEOF
23307 /* end confdefs.h. */
23308 $ac_includes_default
23309 #include <$bdb_header>
23311 rm -f conftest.$ac_objext
23312 if { (ac_try="$ac_compile"
23313 case "(($ac_try" in
23314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23315 *) ac_try_echo=$ac_try;;
23317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23318 $as_echo "$ac_try_echo") >&5
23319 (eval "$ac_compile") 2>conftest.er1
23321 grep -v '^ *+' conftest.er1 >conftest.err
23323 cat conftest.err >&5
23324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23325 (exit $ac_status); } && {
23326 test -z "$ac_c_werror_flag" ||
23327 test ! -s conftest.err
23328 } && test -s conftest.$ac_objext; then
23329 ac_header_compiler=yes
23331 $as_echo "$as_me: failed program was:" >&5
23332 sed 's/^/| /' conftest.$ac_ext >&5
23334 ac_header_compiler=no
23337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23338 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23339 $as_echo "$ac_header_compiler" >&6; }
23341 # Is the header present?
23342 { $as_echo "$as_me:$LINENO: checking $bdb_header presence" >&5
23343 $as_echo_n "checking $bdb_header presence... " >&6; }
23344 cat >conftest.$ac_ext <<_ACEOF
23347 cat confdefs.h >>conftest.$ac_ext
23348 cat >>conftest.$ac_ext <<_ACEOF
23349 /* end confdefs.h. */
23350 #include <$bdb_header>
23352 if { (ac_try="$ac_cpp conftest.$ac_ext"
23353 case "(($ac_try" in
23354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23355 *) ac_try_echo=$ac_try;;
23357 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23358 $as_echo "$ac_try_echo") >&5
23359 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23361 grep -v '^ *+' conftest.er1 >conftest.err
23363 cat conftest.err >&5
23364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23365 (exit $ac_status); } >/dev/null && {
23366 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23367 test ! -s conftest.err
23369 ac_header_preproc=yes
23371 $as_echo "$as_me: failed program was:" >&5
23372 sed 's/^/| /' conftest.$ac_ext >&5
23374 ac_header_preproc=no
23377 rm -f conftest.err conftest.$ac_ext
23378 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23379 $as_echo "$ac_header_preproc" >&6; }
23381 # So? What about this header?
23382 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23384 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
23385 $as_echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23386 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
23387 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
23388 ac_header_preproc=yes
23391 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
23392 $as_echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
23393 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
23394 $as_echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
23395 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
23396 $as_echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
23397 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
23398 $as_echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
23399 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
23400 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
23401 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
23402 $as_echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
23406 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
23407 $as_echo_n "checking for $bdb_header... " >&6; }
23408 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23409 $as_echo_n "(cached) " >&6
23411 eval "$as_ac_Header=\$ac_header_preproc"
23413 ac_res=`eval 'as_val=${'$as_ac_Header'}
23414 $as_echo "$as_val"'`
23415 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23416 $as_echo "$ac_res" >&6; }
23419 as_val=`eval 'as_val=${'$as_ac_Header'}
23420 $as_echo "$as_val"'`
23421 if test "x$as_val" = x""yes; then
23423 if test ""4"" = "3" -o ""4"" = "4"; then
23424 # We generate a separate cache variable for each prefix and libname
23425 # we search under. That way, we avoid caching information that
23426 # changes if the user runs `configure' with a different set of
23429 cache_id="`echo apu_cv_check_berkeley_db_"4"_"5"_"-1"_${bdb_header}_${bdb_libname}_in_${bdb_place} \
23430 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
23433 { $as_echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
23434 $as_echo_n "checking for -l$bdb_libname... " >&6; }
23435 if { as_var=$cache_id; eval "test \"\${$as_var+set}\" = set"; }; then
23436 $as_echo_n "(cached) " >&6
23440 apu_try_berkeley_db_save_libs="$LIBS"
23442 apu_check_berkeley_db_major="4"
23443 apu_check_berkeley_db_minor="5"
23444 apu_check_berkeley_db_patch="-1"
23445 apu_try_berkeley_db_header=$bdb_header
23446 apu_try_berkeley_db_libname=$bdb_libname
23448 LIBS="$LIBS -l$apu_try_berkeley_db_libname"
23449 if test "$cross_compiling" = yes; then
23450 apu_try_berkeley_db=yes
23453 cat >conftest.$ac_ext <<_ACEOF
23456 cat confdefs.h >>conftest.$ac_ext
23457 cat >>conftest.$ac_ext <<_ACEOF
23458 /* end confdefs.h. */
23460 #include <stdlib.h>
23462 #include <$apu_try_berkeley_db_header>
23465 int major, minor, patch;
23467 db_version(&major, &minor, &patch);
23469 /* Sanity check: ensure that db.h constants actually match the db library */
23470 if (major != DB_VERSION_MAJOR
23471 || minor != DB_VERSION_MINOR
23472 || patch != DB_VERSION_PATCH)
23475 /* Run-time check: ensure the library claims to be the correct version. */
23477 if ($apu_check_berkeley_db_major != -1) {
23478 if (major < $apu_check_berkeley_db_major)
23480 if (major > $apu_check_berkeley_db_major)
23484 if ($apu_check_berkeley_db_minor != -1) {
23485 if (minor < $apu_check_berkeley_db_minor)
23487 if (minor > $apu_check_berkeley_db_minor)
23491 if ($apu_check_berkeley_db_patch == -1
23492 || patch >= $apu_check_berkeley_db_patch)
23499 rm -f conftest$ac_exeext
23500 if { (ac_try="$ac_link"
23501 case "(($ac_try" in
23502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23503 *) ac_try_echo=$ac_try;;
23505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23506 $as_echo "$ac_try_echo") >&5
23507 (eval "$ac_link") 2>&5
23509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23510 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23511 { (case "(($ac_try" in
23512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23513 *) ac_try_echo=$ac_try;;
23515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23516 $as_echo "$ac_try_echo") >&5
23517 (eval "$ac_try") 2>&5
23519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23520 (exit $ac_status); }; }; then
23521 apu_try_berkeley_db=yes
23523 $as_echo "$as_me: program exited with status $ac_status" >&5
23524 $as_echo "$as_me: failed program was:" >&5
23525 sed 's/^/| /' conftest.$ac_ext >&5
23527 ( exit $ac_status )
23528 apu_try_berkeley_db=no
23530 rm -rf conftest.dSYM
23531 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23536 LIBS="$apu_try_berkeley_db_save_libs"
23539 eval "$cache_id=$apu_try_berkeley_db"
23543 result="`eval echo '$'$cache_id`"
23544 { $as_echo "$as_me:$LINENO: result: $result" >&5
23545 $as_echo "$result" >&6; }
23546 elif test ""4"" = "1"; then
23547 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
23548 { $as_echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
23549 $as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; }
23550 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23551 $as_echo_n "(cached) " >&6
23553 ac_check_lib_save_LIBS=$LIBS
23554 LIBS="-l$bdb_libname $LIBS"
23555 cat >conftest.$ac_ext <<_ACEOF
23558 cat confdefs.h >>conftest.$ac_ext
23559 cat >>conftest.$ac_ext <<_ACEOF
23560 /* end confdefs.h. */
23562 /* Override any GCC internal prototype to avoid an error.
23563 Use char because int might match the return type of a GCC
23564 builtin and then its argument prototype would still apply. */
23577 rm -f conftest.$ac_objext conftest$ac_exeext
23578 if { (ac_try="$ac_link"
23579 case "(($ac_try" in
23580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23581 *) ac_try_echo=$ac_try;;
23583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23584 $as_echo "$ac_try_echo") >&5
23585 (eval "$ac_link") 2>conftest.er1
23587 grep -v '^ *+' conftest.er1 >conftest.err
23589 cat conftest.err >&5
23590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23591 (exit $ac_status); } && {
23592 test -z "$ac_c_werror_flag" ||
23593 test ! -s conftest.err
23594 } && test -s conftest$ac_exeext && {
23595 test "$cross_compiling" = yes ||
23596 $as_test_x conftest$ac_exeext
23598 eval "$as_ac_Lib=yes"
23600 $as_echo "$as_me: failed program was:" >&5
23601 sed 's/^/| /' conftest.$ac_ext >&5
23603 eval "$as_ac_Lib=no"
23606 rm -rf conftest.dSYM
23607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23608 conftest$ac_exeext conftest.$ac_ext
23609 LIBS=$ac_check_lib_save_LIBS
23611 ac_res=`eval 'as_val=${'$as_ac_Lib'}
23612 $as_echo "$as_val"'`
23613 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23614 $as_echo "$ac_res" >&6; }
23615 as_val=`eval 'as_val=${'$as_ac_Lib'}
23616 $as_echo "$as_val"'`
23617 if test "x$as_val" = x""yes; then
23624 elif test ""4"" = "2"; then
23625 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
23626 { $as_echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
23627 $as_echo_n "checking for db_open in -l$bdb_libname... " >&6; }
23628 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23629 $as_echo_n "(cached) " >&6
23631 ac_check_lib_save_LIBS=$LIBS
23632 LIBS="-l$bdb_libname $LIBS"
23633 cat >conftest.$ac_ext <<_ACEOF
23636 cat confdefs.h >>conftest.$ac_ext
23637 cat >>conftest.$ac_ext <<_ACEOF
23638 /* end confdefs.h. */
23640 /* Override any GCC internal prototype to avoid an error.
23641 Use char because int might match the return type of a GCC
23642 builtin and then its argument prototype would still apply. */
23655 rm -f conftest.$ac_objext conftest$ac_exeext
23656 if { (ac_try="$ac_link"
23657 case "(($ac_try" in
23658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23659 *) ac_try_echo=$ac_try;;
23661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23662 $as_echo "$ac_try_echo") >&5
23663 (eval "$ac_link") 2>conftest.er1
23665 grep -v '^ *+' conftest.er1 >conftest.err
23667 cat conftest.err >&5
23668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23669 (exit $ac_status); } && {
23670 test -z "$ac_c_werror_flag" ||
23671 test ! -s conftest.err
23672 } && test -s conftest$ac_exeext && {
23673 test "$cross_compiling" = yes ||
23674 $as_test_x conftest$ac_exeext
23676 eval "$as_ac_Lib=yes"
23678 $as_echo "$as_me: failed program was:" >&5
23679 sed 's/^/| /' conftest.$ac_ext >&5
23681 eval "$as_ac_Lib=no"
23684 rm -rf conftest.dSYM
23685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23686 conftest$ac_exeext conftest.$ac_ext
23687 LIBS=$ac_check_lib_save_LIBS
23689 ac_res=`eval 'as_val=${'$as_ac_Lib'}
23690 $as_echo "$as_val"'`
23691 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23692 $as_echo "$ac_res" >&6; }
23693 as_val=`eval 'as_val=${'$as_ac_Lib'}
23694 $as_echo "$as_val"'`
23695 if test "x$as_val" = x""yes; then
23710 # If we found it, no need to search any more.
23711 if test "$result" = "yes"; then
23716 test "$found" != "not" && break
23718 test "$found" != "not" && break
23721 # Restore the original values of the flags we tweak.
23722 LDFLAGS="$apu_check_lib_save_ldflags"
23723 CPPFLAGS="$apu_check_lib_save_cppflags"
23730 apu_db_header=$bdb_header
23731 apu_db_lib=$bdb_libname
23735 header="`echo $found | sed -e 's/:.*$//'`"
23736 lib="`echo $found | sed -e 's/^.*://'`"
23739 if test "x$APRUTIL_INCLUDES" = "x"; then
23740 echo " setting APRUTIL_INCLUDES to \"-I$header\""
23741 APRUTIL_INCLUDES="-I$header"
23743 apr_addto_bugger="-I$header"
23744 for i in $apr_addto_bugger; do
23745 apr_addto_duplicate="0"
23746 for j in $APRUTIL_INCLUDES; do
23747 if test "x$i" = "x$j"; then
23748 apr_addto_duplicate="1"
23752 if test $apr_addto_duplicate = "0"; then
23753 echo " adding \"$i\" to APRUTIL_INCLUDES"
23754 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
23760 if test "x$APRUTIL_LDFLAGS" = "x"; then
23761 echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
23762 APRUTIL_LDFLAGS="-L$lib"
23764 apr_addto_bugger="-L$lib"
23765 for i in $apr_addto_bugger; do
23766 apr_addto_duplicate="0"
23767 for j in $APRUTIL_LDFLAGS; do
23768 if test "x$i" = "x$j"; then
23769 apr_addto_duplicate="1"
23773 if test $apr_addto_duplicate = "0"; then
23774 echo " adding \"$i\" to APRUTIL_LDFLAGS"
23775 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
23780 apu_db_header=$bdb_header
23781 apu_db_lib=$bdb_libname
23786 if test "x$APRUTIL_INCLUDES" = "x"; then
23787 echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
23788 APRUTIL_INCLUDES="-I$found/include"
23790 apr_addto_bugger="-I$found/include"
23791 for i in $apr_addto_bugger; do
23792 apr_addto_duplicate="0"
23793 for j in $APRUTIL_INCLUDES; do
23794 if test "x$i" = "x$j"; then
23795 apr_addto_duplicate="1"
23799 if test $apr_addto_duplicate = "0"; then
23800 echo " adding \"$i\" to APRUTIL_INCLUDES"
23801 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
23807 if test "x$APRUTIL_LDFLAGS" = "x"; then
23808 echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
23809 APRUTIL_LDFLAGS="-L$found/lib"
23811 apr_addto_bugger="-L$found/lib"
23812 for i in $apr_addto_bugger; do
23813 apr_addto_duplicate="0"
23814 for j in $APRUTIL_LDFLAGS; do
23815 if test "x$i" = "x$j"; then
23816 apr_addto_duplicate="1"
23820 if test $apr_addto_duplicate = "0"; then
23821 echo " adding \"$i\" to APRUTIL_LDFLAGS"
23822 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
23827 apu_db_header=$bdb_header
23828 apu_db_lib=$bdb_libname
23833 if test "$apu_have_db" = "1"; then
23837 if test "$apu_db_version" != "4"; then
23838 { { $as_echo "$as_me:$LINENO: error: Berkeley db4 not found" >&5
23839 $as_echo "$as_me: error: Berkeley db4 not found" >&2;}
23840 { (exit 1); exit 1; }; }
23845 places="$check_places"
23846 if test -z "$places"; then
23847 places="std /usr/local/BerkeleyDB.4.6 /boot/home/config"
23851 if test ""6"" != "-1"; then
23852 bdb_version="$bdb_version."6""
23853 if test ""-1"" != "-1"; then
23854 bdb_version="$bdb_version."-1""
23857 bdb_places="$places"
23858 bdb_default_search_headers="db46/db.h db4/db.h db.h"
23859 bdb_default_search_lib_names="db-4.6 db4-4.6 db46 db4 db"
23864 # Save the original values of the flags we tweak.
23865 apu_check_lib_save_libs="$LIBS"
23866 apu_check_lib_save_ldflags="$LDFLAGS"
23867 apu_check_lib_save_cppflags="$CPPFLAGS"
23869 # The variable `found' is the prefix under which we've found
23870 # Berkeley DB, or `not' if we haven't found it anywhere yet.
23872 for bdb_place in $bdb_places; do
23874 LDFLAGS="$apu_check_lib_save_ldflags"
23875 CPPFLAGS="$apu_check_lib_save_cppflags"
23876 case "$bdb_place" in
23878 description="the standard places"
23881 header="`echo $bdb_place | sed -e 's/:.*$//'`"
23882 lib="`echo $bdb_place | sed -e 's/^.*://'`"
23883 CPPFLAGS="$CPPFLAGS -I$header"
23884 LDFLAGS="$LDFLAGS -L$lib"
23885 description="$header and $lib"
23888 if test -d $bdb_place; then
23889 LDFLAGS="$LDFLAGS -L$bdb_place/lib"
23890 CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
23892 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
23893 $as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; }
23894 { $as_echo "$as_me:$LINENO: result: directory not found" >&5
23895 $as_echo "directory not found" >&6; }
23898 description="$bdb_place"
23902 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
23903 # trick to display a message instead.
23904 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
23905 $as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; }
23906 { $as_echo "$as_me:$LINENO: result: " >&5
23909 for bdb_libname in $bdb_default_search_lib_names; do
23910 for bdb_header in $bdb_default_search_headers; do
23911 # Clear the header cache variable for each location
23913 cache_id="`echo ac_cv_header_${bdb_header} \
23914 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
23917 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh`
23918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23919 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
23920 $as_echo_n "checking for $bdb_header... " >&6; }
23921 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23922 $as_echo_n "(cached) " >&6
23924 ac_res=`eval 'as_val=${'$as_ac_Header'}
23925 $as_echo "$as_val"'`
23926 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23927 $as_echo "$ac_res" >&6; }
23929 # Is the header compilable?
23930 { $as_echo "$as_me:$LINENO: checking $bdb_header usability" >&5
23931 $as_echo_n "checking $bdb_header usability... " >&6; }
23932 cat >conftest.$ac_ext <<_ACEOF
23935 cat confdefs.h >>conftest.$ac_ext
23936 cat >>conftest.$ac_ext <<_ACEOF
23937 /* end confdefs.h. */
23938 $ac_includes_default
23939 #include <$bdb_header>
23941 rm -f conftest.$ac_objext
23942 if { (ac_try="$ac_compile"
23943 case "(($ac_try" in
23944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23945 *) ac_try_echo=$ac_try;;
23947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23948 $as_echo "$ac_try_echo") >&5
23949 (eval "$ac_compile") 2>conftest.er1
23951 grep -v '^ *+' conftest.er1 >conftest.err
23953 cat conftest.err >&5
23954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23955 (exit $ac_status); } && {
23956 test -z "$ac_c_werror_flag" ||
23957 test ! -s conftest.err
23958 } && test -s conftest.$ac_objext; then
23959 ac_header_compiler=yes
23961 $as_echo "$as_me: failed program was:" >&5
23962 sed 's/^/| /' conftest.$ac_ext >&5
23964 ac_header_compiler=no
23967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23968 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23969 $as_echo "$ac_header_compiler" >&6; }
23971 # Is the header present?
23972 { $as_echo "$as_me:$LINENO: checking $bdb_header presence" >&5
23973 $as_echo_n "checking $bdb_header presence... " >&6; }
23974 cat >conftest.$ac_ext <<_ACEOF
23977 cat confdefs.h >>conftest.$ac_ext
23978 cat >>conftest.$ac_ext <<_ACEOF
23979 /* end confdefs.h. */
23980 #include <$bdb_header>
23982 if { (ac_try="$ac_cpp conftest.$ac_ext"
23983 case "(($ac_try" in
23984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23985 *) ac_try_echo=$ac_try;;
23987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23988 $as_echo "$ac_try_echo") >&5
23989 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23991 grep -v '^ *+' conftest.er1 >conftest.err
23993 cat conftest.err >&5
23994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23995 (exit $ac_status); } >/dev/null && {
23996 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23997 test ! -s conftest.err
23999 ac_header_preproc=yes
24001 $as_echo "$as_me: failed program was:" >&5
24002 sed 's/^/| /' conftest.$ac_ext >&5
24004 ac_header_preproc=no
24007 rm -f conftest.err conftest.$ac_ext
24008 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24009 $as_echo "$ac_header_preproc" >&6; }
24011 # So? What about this header?
24012 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24014 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
24015 $as_echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24016 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
24017 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
24018 ac_header_preproc=yes
24021 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
24022 $as_echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
24023 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
24024 $as_echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
24025 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
24026 $as_echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
24027 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
24028 $as_echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
24029 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
24030 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
24031 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
24032 $as_echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
24036 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
24037 $as_echo_n "checking for $bdb_header... " >&6; }
24038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24039 $as_echo_n "(cached) " >&6
24041 eval "$as_ac_Header=\$ac_header_preproc"
24043 ac_res=`eval 'as_val=${'$as_ac_Header'}
24044 $as_echo "$as_val"'`
24045 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24046 $as_echo "$ac_res" >&6; }
24049 as_val=`eval 'as_val=${'$as_ac_Header'}
24050 $as_echo "$as_val"'`
24051 if test "x$as_val" = x""yes; then
24053 if test ""4"" = "3" -o ""4"" = "4"; then
24054 # We generate a separate cache variable for each prefix and libname
24055 # we search under. That way, we avoid caching information that
24056 # changes if the user runs `configure' with a different set of
24059 cache_id="`echo apu_cv_check_berkeley_db_"4"_"6"_"-1"_${bdb_header}_${bdb_libname}_in_${bdb_place} \
24060 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
24063 { $as_echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
24064 $as_echo_n "checking for -l$bdb_libname... " >&6; }
24065 if { as_var=$cache_id; eval "test \"\${$as_var+set}\" = set"; }; then
24066 $as_echo_n "(cached) " >&6
24070 apu_try_berkeley_db_save_libs="$LIBS"
24072 apu_check_berkeley_db_major="4"
24073 apu_check_berkeley_db_minor="6"
24074 apu_check_berkeley_db_patch="-1"
24075 apu_try_berkeley_db_header=$bdb_header
24076 apu_try_berkeley_db_libname=$bdb_libname
24078 LIBS="$LIBS -l$apu_try_berkeley_db_libname"
24079 if test "$cross_compiling" = yes; then
24080 apu_try_berkeley_db=yes
24083 cat >conftest.$ac_ext <<_ACEOF
24086 cat confdefs.h >>conftest.$ac_ext
24087 cat >>conftest.$ac_ext <<_ACEOF
24088 /* end confdefs.h. */
24090 #include <stdlib.h>
24092 #include <$apu_try_berkeley_db_header>
24095 int major, minor, patch;
24097 db_version(&major, &minor, &patch);
24099 /* Sanity check: ensure that db.h constants actually match the db library */
24100 if (major != DB_VERSION_MAJOR
24101 || minor != DB_VERSION_MINOR
24102 || patch != DB_VERSION_PATCH)
24105 /* Run-time check: ensure the library claims to be the correct version. */
24107 if ($apu_check_berkeley_db_major != -1) {
24108 if (major < $apu_check_berkeley_db_major)
24110 if (major > $apu_check_berkeley_db_major)
24114 if ($apu_check_berkeley_db_minor != -1) {
24115 if (minor < $apu_check_berkeley_db_minor)
24117 if (minor > $apu_check_berkeley_db_minor)
24121 if ($apu_check_berkeley_db_patch == -1
24122 || patch >= $apu_check_berkeley_db_patch)
24129 rm -f conftest$ac_exeext
24130 if { (ac_try="$ac_link"
24131 case "(($ac_try" in
24132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24133 *) ac_try_echo=$ac_try;;
24135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24136 $as_echo "$ac_try_echo") >&5
24137 (eval "$ac_link") 2>&5
24139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24140 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24141 { (case "(($ac_try" in
24142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24143 *) ac_try_echo=$ac_try;;
24145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24146 $as_echo "$ac_try_echo") >&5
24147 (eval "$ac_try") 2>&5
24149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24150 (exit $ac_status); }; }; then
24151 apu_try_berkeley_db=yes
24153 $as_echo "$as_me: program exited with status $ac_status" >&5
24154 $as_echo "$as_me: failed program was:" >&5
24155 sed 's/^/| /' conftest.$ac_ext >&5
24157 ( exit $ac_status )
24158 apu_try_berkeley_db=no
24160 rm -rf conftest.dSYM
24161 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24166 LIBS="$apu_try_berkeley_db_save_libs"
24169 eval "$cache_id=$apu_try_berkeley_db"
24173 result="`eval echo '$'$cache_id`"
24174 { $as_echo "$as_me:$LINENO: result: $result" >&5
24175 $as_echo "$result" >&6; }
24176 elif test ""4"" = "1"; then
24177 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
24178 { $as_echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
24179 $as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; }
24180 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
24181 $as_echo_n "(cached) " >&6
24183 ac_check_lib_save_LIBS=$LIBS
24184 LIBS="-l$bdb_libname $LIBS"
24185 cat >conftest.$ac_ext <<_ACEOF
24188 cat confdefs.h >>conftest.$ac_ext
24189 cat >>conftest.$ac_ext <<_ACEOF
24190 /* end confdefs.h. */
24192 /* Override any GCC internal prototype to avoid an error.
24193 Use char because int might match the return type of a GCC
24194 builtin and then its argument prototype would still apply. */
24207 rm -f conftest.$ac_objext conftest$ac_exeext
24208 if { (ac_try="$ac_link"
24209 case "(($ac_try" in
24210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24211 *) ac_try_echo=$ac_try;;
24213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24214 $as_echo "$ac_try_echo") >&5
24215 (eval "$ac_link") 2>conftest.er1
24217 grep -v '^ *+' conftest.er1 >conftest.err
24219 cat conftest.err >&5
24220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24221 (exit $ac_status); } && {
24222 test -z "$ac_c_werror_flag" ||
24223 test ! -s conftest.err
24224 } && test -s conftest$ac_exeext && {
24225 test "$cross_compiling" = yes ||
24226 $as_test_x conftest$ac_exeext
24228 eval "$as_ac_Lib=yes"
24230 $as_echo "$as_me: failed program was:" >&5
24231 sed 's/^/| /' conftest.$ac_ext >&5
24233 eval "$as_ac_Lib=no"
24236 rm -rf conftest.dSYM
24237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24238 conftest$ac_exeext conftest.$ac_ext
24239 LIBS=$ac_check_lib_save_LIBS
24241 ac_res=`eval 'as_val=${'$as_ac_Lib'}
24242 $as_echo "$as_val"'`
24243 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24244 $as_echo "$ac_res" >&6; }
24245 as_val=`eval 'as_val=${'$as_ac_Lib'}
24246 $as_echo "$as_val"'`
24247 if test "x$as_val" = x""yes; then
24254 elif test ""4"" = "2"; then
24255 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
24256 { $as_echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
24257 $as_echo_n "checking for db_open in -l$bdb_libname... " >&6; }
24258 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
24259 $as_echo_n "(cached) " >&6
24261 ac_check_lib_save_LIBS=$LIBS
24262 LIBS="-l$bdb_libname $LIBS"
24263 cat >conftest.$ac_ext <<_ACEOF
24266 cat confdefs.h >>conftest.$ac_ext
24267 cat >>conftest.$ac_ext <<_ACEOF
24268 /* end confdefs.h. */
24270 /* Override any GCC internal prototype to avoid an error.
24271 Use char because int might match the return type of a GCC
24272 builtin and then its argument prototype would still apply. */
24285 rm -f conftest.$ac_objext conftest$ac_exeext
24286 if { (ac_try="$ac_link"
24287 case "(($ac_try" in
24288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24289 *) ac_try_echo=$ac_try;;
24291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24292 $as_echo "$ac_try_echo") >&5
24293 (eval "$ac_link") 2>conftest.er1
24295 grep -v '^ *+' conftest.er1 >conftest.err
24297 cat conftest.err >&5
24298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24299 (exit $ac_status); } && {
24300 test -z "$ac_c_werror_flag" ||
24301 test ! -s conftest.err
24302 } && test -s conftest$ac_exeext && {
24303 test "$cross_compiling" = yes ||
24304 $as_test_x conftest$ac_exeext
24306 eval "$as_ac_Lib=yes"
24308 $as_echo "$as_me: failed program was:" >&5
24309 sed 's/^/| /' conftest.$ac_ext >&5
24311 eval "$as_ac_Lib=no"
24314 rm -rf conftest.dSYM
24315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24316 conftest$ac_exeext conftest.$ac_ext
24317 LIBS=$ac_check_lib_save_LIBS
24319 ac_res=`eval 'as_val=${'$as_ac_Lib'}
24320 $as_echo "$as_val"'`
24321 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24322 $as_echo "$ac_res" >&6; }
24323 as_val=`eval 'as_val=${'$as_ac_Lib'}
24324 $as_echo "$as_val"'`
24325 if test "x$as_val" = x""yes; then
24340 # If we found it, no need to search any more.
24341 if test "$result" = "yes"; then
24346 test "$found" != "not" && break
24348 test "$found" != "not" && break
24351 # Restore the original values of the flags we tweak.
24352 LDFLAGS="$apu_check_lib_save_ldflags"
24353 CPPFLAGS="$apu_check_lib_save_cppflags"
24360 apu_db_header=$bdb_header
24361 apu_db_lib=$bdb_libname
24365 header="`echo $found | sed -e 's/:.*$//'`"
24366 lib="`echo $found | sed -e 's/^.*://'`"
24369 if test "x$APRUTIL_INCLUDES" = "x"; then
24370 echo " setting APRUTIL_INCLUDES to \"-I$header\""
24371 APRUTIL_INCLUDES="-I$header"
24373 apr_addto_bugger="-I$header"
24374 for i in $apr_addto_bugger; do
24375 apr_addto_duplicate="0"
24376 for j in $APRUTIL_INCLUDES; do
24377 if test "x$i" = "x$j"; then
24378 apr_addto_duplicate="1"
24382 if test $apr_addto_duplicate = "0"; then
24383 echo " adding \"$i\" to APRUTIL_INCLUDES"
24384 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
24390 if test "x$APRUTIL_LDFLAGS" = "x"; then
24391 echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
24392 APRUTIL_LDFLAGS="-L$lib"
24394 apr_addto_bugger="-L$lib"
24395 for i in $apr_addto_bugger; do
24396 apr_addto_duplicate="0"
24397 for j in $APRUTIL_LDFLAGS; do
24398 if test "x$i" = "x$j"; then
24399 apr_addto_duplicate="1"
24403 if test $apr_addto_duplicate = "0"; then
24404 echo " adding \"$i\" to APRUTIL_LDFLAGS"
24405 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
24410 apu_db_header=$bdb_header
24411 apu_db_lib=$bdb_libname
24416 if test "x$APRUTIL_INCLUDES" = "x"; then
24417 echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
24418 APRUTIL_INCLUDES="-I$found/include"
24420 apr_addto_bugger="-I$found/include"
24421 for i in $apr_addto_bugger; do
24422 apr_addto_duplicate="0"
24423 for j in $APRUTIL_INCLUDES; do
24424 if test "x$i" = "x$j"; then
24425 apr_addto_duplicate="1"
24429 if test $apr_addto_duplicate = "0"; then
24430 echo " adding \"$i\" to APRUTIL_INCLUDES"
24431 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
24437 if test "x$APRUTIL_LDFLAGS" = "x"; then
24438 echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
24439 APRUTIL_LDFLAGS="-L$found/lib"
24441 apr_addto_bugger="-L$found/lib"
24442 for i in $apr_addto_bugger; do
24443 apr_addto_duplicate="0"
24444 for j in $APRUTIL_LDFLAGS; do
24445 if test "x$i" = "x$j"; then
24446 apr_addto_duplicate="1"
24450 if test $apr_addto_duplicate = "0"; then
24451 echo " adding \"$i\" to APRUTIL_LDFLAGS"
24452 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
24457 apu_db_header=$bdb_header
24458 apu_db_lib=$bdb_libname
24463 if test "$apu_have_db" = "1"; then
24467 if test "$apu_db_version" != "4"; then
24468 { { $as_echo "$as_me:$LINENO: error: Berkeley db4 not found" >&5
24469 $as_echo "$as_me: error: Berkeley db4 not found" >&2;}
24470 { (exit 1); exit 1; }; }
24475 places="$check_places"
24476 if test -z "$places"; then
24477 places="std /usr/local/BerkeleyDB.4.7 /boot/home/config"
24481 if test ""7"" != "-1"; then
24482 bdb_version="$bdb_version."7""
24483 if test ""-1"" != "-1"; then
24484 bdb_version="$bdb_version."-1""
24487 bdb_places="$places"
24488 bdb_default_search_headers="db47/db.h db4/db.h db.h"
24489 bdb_default_search_lib_names="db-4.7 db4-4.7 db47 db4 db"
24494 # Save the original values of the flags we tweak.
24495 apu_check_lib_save_libs="$LIBS"
24496 apu_check_lib_save_ldflags="$LDFLAGS"
24497 apu_check_lib_save_cppflags="$CPPFLAGS"
24499 # The variable `found' is the prefix under which we've found
24500 # Berkeley DB, or `not' if we haven't found it anywhere yet.
24502 for bdb_place in $bdb_places; do
24504 LDFLAGS="$apu_check_lib_save_ldflags"
24505 CPPFLAGS="$apu_check_lib_save_cppflags"
24506 case "$bdb_place" in
24508 description="the standard places"
24511 header="`echo $bdb_place | sed -e 's/:.*$//'`"
24512 lib="`echo $bdb_place | sed -e 's/^.*://'`"
24513 CPPFLAGS="$CPPFLAGS -I$header"
24514 LDFLAGS="$LDFLAGS -L$lib"
24515 description="$header and $lib"
24518 if test -d $bdb_place; then
24519 LDFLAGS="$LDFLAGS -L$bdb_place/lib"
24520 CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
24522 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
24523 $as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; }
24524 { $as_echo "$as_me:$LINENO: result: directory not found" >&5
24525 $as_echo "directory not found" >&6; }
24528 description="$bdb_place"
24532 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
24533 # trick to display a message instead.
24534 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
24535 $as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; }
24536 { $as_echo "$as_me:$LINENO: result: " >&5
24539 for bdb_libname in $bdb_default_search_lib_names; do
24540 for bdb_header in $bdb_default_search_headers; do
24541 # Clear the header cache variable for each location
24543 cache_id="`echo ac_cv_header_${bdb_header} \
24544 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
24547 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh`
24548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24549 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
24550 $as_echo_n "checking for $bdb_header... " >&6; }
24551 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24552 $as_echo_n "(cached) " >&6
24554 ac_res=`eval 'as_val=${'$as_ac_Header'}
24555 $as_echo "$as_val"'`
24556 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24557 $as_echo "$ac_res" >&6; }
24559 # Is the header compilable?
24560 { $as_echo "$as_me:$LINENO: checking $bdb_header usability" >&5
24561 $as_echo_n "checking $bdb_header usability... " >&6; }
24562 cat >conftest.$ac_ext <<_ACEOF
24565 cat confdefs.h >>conftest.$ac_ext
24566 cat >>conftest.$ac_ext <<_ACEOF
24567 /* end confdefs.h. */
24568 $ac_includes_default
24569 #include <$bdb_header>
24571 rm -f conftest.$ac_objext
24572 if { (ac_try="$ac_compile"
24573 case "(($ac_try" in
24574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24575 *) ac_try_echo=$ac_try;;
24577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24578 $as_echo "$ac_try_echo") >&5
24579 (eval "$ac_compile") 2>conftest.er1
24581 grep -v '^ *+' conftest.er1 >conftest.err
24583 cat conftest.err >&5
24584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24585 (exit $ac_status); } && {
24586 test -z "$ac_c_werror_flag" ||
24587 test ! -s conftest.err
24588 } && test -s conftest.$ac_objext; then
24589 ac_header_compiler=yes
24591 $as_echo "$as_me: failed program was:" >&5
24592 sed 's/^/| /' conftest.$ac_ext >&5
24594 ac_header_compiler=no
24597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24598 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24599 $as_echo "$ac_header_compiler" >&6; }
24601 # Is the header present?
24602 { $as_echo "$as_me:$LINENO: checking $bdb_header presence" >&5
24603 $as_echo_n "checking $bdb_header presence... " >&6; }
24604 cat >conftest.$ac_ext <<_ACEOF
24607 cat confdefs.h >>conftest.$ac_ext
24608 cat >>conftest.$ac_ext <<_ACEOF
24609 /* end confdefs.h. */
24610 #include <$bdb_header>
24612 if { (ac_try="$ac_cpp conftest.$ac_ext"
24613 case "(($ac_try" in
24614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24615 *) ac_try_echo=$ac_try;;
24617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24618 $as_echo "$ac_try_echo") >&5
24619 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24621 grep -v '^ *+' conftest.er1 >conftest.err
24623 cat conftest.err >&5
24624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24625 (exit $ac_status); } >/dev/null && {
24626 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24627 test ! -s conftest.err
24629 ac_header_preproc=yes
24631 $as_echo "$as_me: failed program was:" >&5
24632 sed 's/^/| /' conftest.$ac_ext >&5
24634 ac_header_preproc=no
24637 rm -f conftest.err conftest.$ac_ext
24638 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24639 $as_echo "$ac_header_preproc" >&6; }
24641 # So? What about this header?
24642 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24644 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
24645 $as_echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24646 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
24647 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
24648 ac_header_preproc=yes
24651 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
24652 $as_echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
24653 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
24654 $as_echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
24655 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
24656 $as_echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
24657 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
24658 $as_echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
24659 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
24660 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
24661 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
24662 $as_echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
24666 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
24667 $as_echo_n "checking for $bdb_header... " >&6; }
24668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24669 $as_echo_n "(cached) " >&6
24671 eval "$as_ac_Header=\$ac_header_preproc"
24673 ac_res=`eval 'as_val=${'$as_ac_Header'}
24674 $as_echo "$as_val"'`
24675 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24676 $as_echo "$ac_res" >&6; }
24679 as_val=`eval 'as_val=${'$as_ac_Header'}
24680 $as_echo "$as_val"'`
24681 if test "x$as_val" = x""yes; then
24683 if test ""4"" = "3" -o ""4"" = "4"; then
24684 # We generate a separate cache variable for each prefix and libname
24685 # we search under. That way, we avoid caching information that
24686 # changes if the user runs `configure' with a different set of
24689 cache_id="`echo apu_cv_check_berkeley_db_"4"_"7"_"-1"_${bdb_header}_${bdb_libname}_in_${bdb_place} \
24690 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
24693 { $as_echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
24694 $as_echo_n "checking for -l$bdb_libname... " >&6; }
24695 if { as_var=$cache_id; eval "test \"\${$as_var+set}\" = set"; }; then
24696 $as_echo_n "(cached) " >&6
24700 apu_try_berkeley_db_save_libs="$LIBS"
24702 apu_check_berkeley_db_major="4"
24703 apu_check_berkeley_db_minor="7"
24704 apu_check_berkeley_db_patch="-1"
24705 apu_try_berkeley_db_header=$bdb_header
24706 apu_try_berkeley_db_libname=$bdb_libname
24708 LIBS="$LIBS -l$apu_try_berkeley_db_libname"
24709 if test "$cross_compiling" = yes; then
24710 apu_try_berkeley_db=yes
24713 cat >conftest.$ac_ext <<_ACEOF
24716 cat confdefs.h >>conftest.$ac_ext
24717 cat >>conftest.$ac_ext <<_ACEOF
24718 /* end confdefs.h. */
24720 #include <stdlib.h>
24722 #include <$apu_try_berkeley_db_header>
24725 int major, minor, patch;
24727 db_version(&major, &minor, &patch);
24729 /* Sanity check: ensure that db.h constants actually match the db library */
24730 if (major != DB_VERSION_MAJOR
24731 || minor != DB_VERSION_MINOR
24732 || patch != DB_VERSION_PATCH)
24735 /* Run-time check: ensure the library claims to be the correct version. */
24737 if ($apu_check_berkeley_db_major != -1) {
24738 if (major < $apu_check_berkeley_db_major)
24740 if (major > $apu_check_berkeley_db_major)
24744 if ($apu_check_berkeley_db_minor != -1) {
24745 if (minor < $apu_check_berkeley_db_minor)
24747 if (minor > $apu_check_berkeley_db_minor)
24751 if ($apu_check_berkeley_db_patch == -1
24752 || patch >= $apu_check_berkeley_db_patch)
24759 rm -f conftest$ac_exeext
24760 if { (ac_try="$ac_link"
24761 case "(($ac_try" in
24762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24763 *) ac_try_echo=$ac_try;;
24765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24766 $as_echo "$ac_try_echo") >&5
24767 (eval "$ac_link") 2>&5
24769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24770 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24771 { (case "(($ac_try" in
24772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24773 *) ac_try_echo=$ac_try;;
24775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24776 $as_echo "$ac_try_echo") >&5
24777 (eval "$ac_try") 2>&5
24779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24780 (exit $ac_status); }; }; then
24781 apu_try_berkeley_db=yes
24783 $as_echo "$as_me: program exited with status $ac_status" >&5
24784 $as_echo "$as_me: failed program was:" >&5
24785 sed 's/^/| /' conftest.$ac_ext >&5
24787 ( exit $ac_status )
24788 apu_try_berkeley_db=no
24790 rm -rf conftest.dSYM
24791 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24796 LIBS="$apu_try_berkeley_db_save_libs"
24799 eval "$cache_id=$apu_try_berkeley_db"
24803 result="`eval echo '$'$cache_id`"
24804 { $as_echo "$as_me:$LINENO: result: $result" >&5
24805 $as_echo "$result" >&6; }
24806 elif test ""4"" = "1"; then
24807 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
24808 { $as_echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
24809 $as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; }
24810 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
24811 $as_echo_n "(cached) " >&6
24813 ac_check_lib_save_LIBS=$LIBS
24814 LIBS="-l$bdb_libname $LIBS"
24815 cat >conftest.$ac_ext <<_ACEOF
24818 cat confdefs.h >>conftest.$ac_ext
24819 cat >>conftest.$ac_ext <<_ACEOF
24820 /* end confdefs.h. */
24822 /* Override any GCC internal prototype to avoid an error.
24823 Use char because int might match the return type of a GCC
24824 builtin and then its argument prototype would still apply. */
24837 rm -f conftest.$ac_objext conftest$ac_exeext
24838 if { (ac_try="$ac_link"
24839 case "(($ac_try" in
24840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24841 *) ac_try_echo=$ac_try;;
24843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24844 $as_echo "$ac_try_echo") >&5
24845 (eval "$ac_link") 2>conftest.er1
24847 grep -v '^ *+' conftest.er1 >conftest.err
24849 cat conftest.err >&5
24850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24851 (exit $ac_status); } && {
24852 test -z "$ac_c_werror_flag" ||
24853 test ! -s conftest.err
24854 } && test -s conftest$ac_exeext && {
24855 test "$cross_compiling" = yes ||
24856 $as_test_x conftest$ac_exeext
24858 eval "$as_ac_Lib=yes"
24860 $as_echo "$as_me: failed program was:" >&5
24861 sed 's/^/| /' conftest.$ac_ext >&5
24863 eval "$as_ac_Lib=no"
24866 rm -rf conftest.dSYM
24867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24868 conftest$ac_exeext conftest.$ac_ext
24869 LIBS=$ac_check_lib_save_LIBS
24871 ac_res=`eval 'as_val=${'$as_ac_Lib'}
24872 $as_echo "$as_val"'`
24873 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24874 $as_echo "$ac_res" >&6; }
24875 as_val=`eval 'as_val=${'$as_ac_Lib'}
24876 $as_echo "$as_val"'`
24877 if test "x$as_val" = x""yes; then
24884 elif test ""4"" = "2"; then
24885 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
24886 { $as_echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
24887 $as_echo_n "checking for db_open in -l$bdb_libname... " >&6; }
24888 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
24889 $as_echo_n "(cached) " >&6
24891 ac_check_lib_save_LIBS=$LIBS
24892 LIBS="-l$bdb_libname $LIBS"
24893 cat >conftest.$ac_ext <<_ACEOF
24896 cat confdefs.h >>conftest.$ac_ext
24897 cat >>conftest.$ac_ext <<_ACEOF
24898 /* end confdefs.h. */
24900 /* Override any GCC internal prototype to avoid an error.
24901 Use char because int might match the return type of a GCC
24902 builtin and then its argument prototype would still apply. */
24915 rm -f conftest.$ac_objext conftest$ac_exeext
24916 if { (ac_try="$ac_link"
24917 case "(($ac_try" in
24918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24919 *) ac_try_echo=$ac_try;;
24921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24922 $as_echo "$ac_try_echo") >&5
24923 (eval "$ac_link") 2>conftest.er1
24925 grep -v '^ *+' conftest.er1 >conftest.err
24927 cat conftest.err >&5
24928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24929 (exit $ac_status); } && {
24930 test -z "$ac_c_werror_flag" ||
24931 test ! -s conftest.err
24932 } && test -s conftest$ac_exeext && {
24933 test "$cross_compiling" = yes ||
24934 $as_test_x conftest$ac_exeext
24936 eval "$as_ac_Lib=yes"
24938 $as_echo "$as_me: failed program was:" >&5
24939 sed 's/^/| /' conftest.$ac_ext >&5
24941 eval "$as_ac_Lib=no"
24944 rm -rf conftest.dSYM
24945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24946 conftest$ac_exeext conftest.$ac_ext
24947 LIBS=$ac_check_lib_save_LIBS
24949 ac_res=`eval 'as_val=${'$as_ac_Lib'}
24950 $as_echo "$as_val"'`
24951 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24952 $as_echo "$ac_res" >&6; }
24953 as_val=`eval 'as_val=${'$as_ac_Lib'}
24954 $as_echo "$as_val"'`
24955 if test "x$as_val" = x""yes; then
24970 # If we found it, no need to search any more.
24971 if test "$result" = "yes"; then
24976 test "$found" != "not" && break
24978 test "$found" != "not" && break
24981 # Restore the original values of the flags we tweak.
24982 LDFLAGS="$apu_check_lib_save_ldflags"
24983 CPPFLAGS="$apu_check_lib_save_cppflags"
24990 apu_db_header=$bdb_header
24991 apu_db_lib=$bdb_libname
24995 header="`echo $found | sed -e 's/:.*$//'`"
24996 lib="`echo $found | sed -e 's/^.*://'`"
24999 if test "x$APRUTIL_INCLUDES" = "x"; then
25000 echo " setting APRUTIL_INCLUDES to \"-I$header\""
25001 APRUTIL_INCLUDES="-I$header"
25003 apr_addto_bugger="-I$header"
25004 for i in $apr_addto_bugger; do
25005 apr_addto_duplicate="0"
25006 for j in $APRUTIL_INCLUDES; do
25007 if test "x$i" = "x$j"; then
25008 apr_addto_duplicate="1"
25012 if test $apr_addto_duplicate = "0"; then
25013 echo " adding \"$i\" to APRUTIL_INCLUDES"
25014 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
25020 if test "x$APRUTIL_LDFLAGS" = "x"; then
25021 echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
25022 APRUTIL_LDFLAGS="-L$lib"
25024 apr_addto_bugger="-L$lib"
25025 for i in $apr_addto_bugger; do
25026 apr_addto_duplicate="0"
25027 for j in $APRUTIL_LDFLAGS; do
25028 if test "x$i" = "x$j"; then
25029 apr_addto_duplicate="1"
25033 if test $apr_addto_duplicate = "0"; then
25034 echo " adding \"$i\" to APRUTIL_LDFLAGS"
25035 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
25040 apu_db_header=$bdb_header
25041 apu_db_lib=$bdb_libname
25046 if test "x$APRUTIL_INCLUDES" = "x"; then
25047 echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
25048 APRUTIL_INCLUDES="-I$found/include"
25050 apr_addto_bugger="-I$found/include"
25051 for i in $apr_addto_bugger; do
25052 apr_addto_duplicate="0"
25053 for j in $APRUTIL_INCLUDES; do
25054 if test "x$i" = "x$j"; then
25055 apr_addto_duplicate="1"
25059 if test $apr_addto_duplicate = "0"; then
25060 echo " adding \"$i\" to APRUTIL_INCLUDES"
25061 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
25067 if test "x$APRUTIL_LDFLAGS" = "x"; then
25068 echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
25069 APRUTIL_LDFLAGS="-L$found/lib"
25071 apr_addto_bugger="-L$found/lib"
25072 for i in $apr_addto_bugger; do
25073 apr_addto_duplicate="0"
25074 for j in $APRUTIL_LDFLAGS; do
25075 if test "x$i" = "x$j"; then
25076 apr_addto_duplicate="1"
25080 if test $apr_addto_duplicate = "0"; then
25081 echo " adding \"$i\" to APRUTIL_LDFLAGS"
25082 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
25087 apu_db_header=$bdb_header
25088 apu_db_lib=$bdb_libname
25093 if test "$apu_have_db" = "1"; then
25097 if test "$apu_db_version" != "4"; then
25098 { { $as_echo "$as_me:$LINENO: error: Berkeley db4 not found" >&5
25099 $as_echo "$as_me: error: Berkeley db4 not found" >&2;}
25100 { (exit 1); exit 1; }; }
25105 places="$check_places"
25106 if test -z "$places"; then
25107 places="std /usr/local/BerkeleyDB.4.8 /boot/home/config"
25111 if test ""8"" != "-1"; then
25112 bdb_version="$bdb_version."8""
25113 if test ""-1"" != "-1"; then
25114 bdb_version="$bdb_version."-1""
25117 bdb_places="$places"
25118 bdb_default_search_headers="db48/db.h db4/db.h db.h"
25119 bdb_default_search_lib_names="db-4.8 db4-4.8 db48 db4 db"
25124 # Save the original values of the flags we tweak.
25125 apu_check_lib_save_libs="$LIBS"
25126 apu_check_lib_save_ldflags="$LDFLAGS"
25127 apu_check_lib_save_cppflags="$CPPFLAGS"
25129 # The variable `found' is the prefix under which we've found
25130 # Berkeley DB, or `not' if we haven't found it anywhere yet.
25132 for bdb_place in $bdb_places; do
25134 LDFLAGS="$apu_check_lib_save_ldflags"
25135 CPPFLAGS="$apu_check_lib_save_cppflags"
25136 case "$bdb_place" in
25138 description="the standard places"
25141 header="`echo $bdb_place | sed -e 's/:.*$//'`"
25142 lib="`echo $bdb_place | sed -e 's/^.*://'`"
25143 CPPFLAGS="$CPPFLAGS -I$header"
25144 LDFLAGS="$LDFLAGS -L$lib"
25145 description="$header and $lib"
25148 if test -d $bdb_place; then
25149 LDFLAGS="$LDFLAGS -L$bdb_place/lib"
25150 CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
25152 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
25153 $as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; }
25154 { $as_echo "$as_me:$LINENO: result: directory not found" >&5
25155 $as_echo "directory not found" >&6; }
25158 description="$bdb_place"
25162 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
25163 # trick to display a message instead.
25164 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
25165 $as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; }
25166 { $as_echo "$as_me:$LINENO: result: " >&5
25169 for bdb_libname in $bdb_default_search_lib_names; do
25170 for bdb_header in $bdb_default_search_headers; do
25171 # Clear the header cache variable for each location
25173 cache_id="`echo ac_cv_header_${bdb_header} \
25174 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
25177 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh`
25178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25179 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
25180 $as_echo_n "checking for $bdb_header... " >&6; }
25181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25182 $as_echo_n "(cached) " >&6
25184 ac_res=`eval 'as_val=${'$as_ac_Header'}
25185 $as_echo "$as_val"'`
25186 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25187 $as_echo "$ac_res" >&6; }
25189 # Is the header compilable?
25190 { $as_echo "$as_me:$LINENO: checking $bdb_header usability" >&5
25191 $as_echo_n "checking $bdb_header usability... " >&6; }
25192 cat >conftest.$ac_ext <<_ACEOF
25195 cat confdefs.h >>conftest.$ac_ext
25196 cat >>conftest.$ac_ext <<_ACEOF
25197 /* end confdefs.h. */
25198 $ac_includes_default
25199 #include <$bdb_header>
25201 rm -f conftest.$ac_objext
25202 if { (ac_try="$ac_compile"
25203 case "(($ac_try" in
25204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25205 *) ac_try_echo=$ac_try;;
25207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25208 $as_echo "$ac_try_echo") >&5
25209 (eval "$ac_compile") 2>conftest.er1
25211 grep -v '^ *+' conftest.er1 >conftest.err
25213 cat conftest.err >&5
25214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25215 (exit $ac_status); } && {
25216 test -z "$ac_c_werror_flag" ||
25217 test ! -s conftest.err
25218 } && test -s conftest.$ac_objext; then
25219 ac_header_compiler=yes
25221 $as_echo "$as_me: failed program was:" >&5
25222 sed 's/^/| /' conftest.$ac_ext >&5
25224 ac_header_compiler=no
25227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25228 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25229 $as_echo "$ac_header_compiler" >&6; }
25231 # Is the header present?
25232 { $as_echo "$as_me:$LINENO: checking $bdb_header presence" >&5
25233 $as_echo_n "checking $bdb_header presence... " >&6; }
25234 cat >conftest.$ac_ext <<_ACEOF
25237 cat confdefs.h >>conftest.$ac_ext
25238 cat >>conftest.$ac_ext <<_ACEOF
25239 /* end confdefs.h. */
25240 #include <$bdb_header>
25242 if { (ac_try="$ac_cpp conftest.$ac_ext"
25243 case "(($ac_try" in
25244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25245 *) ac_try_echo=$ac_try;;
25247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25248 $as_echo "$ac_try_echo") >&5
25249 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25251 grep -v '^ *+' conftest.er1 >conftest.err
25253 cat conftest.err >&5
25254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25255 (exit $ac_status); } >/dev/null && {
25256 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25257 test ! -s conftest.err
25259 ac_header_preproc=yes
25261 $as_echo "$as_me: failed program was:" >&5
25262 sed 's/^/| /' conftest.$ac_ext >&5
25264 ac_header_preproc=no
25267 rm -f conftest.err conftest.$ac_ext
25268 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25269 $as_echo "$ac_header_preproc" >&6; }
25271 # So? What about this header?
25272 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25274 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
25275 $as_echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25276 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
25277 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
25278 ac_header_preproc=yes
25281 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
25282 $as_echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
25283 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
25284 $as_echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
25285 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
25286 $as_echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
25287 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
25288 $as_echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
25289 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
25290 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
25291 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
25292 $as_echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
25296 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
25297 $as_echo_n "checking for $bdb_header... " >&6; }
25298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25299 $as_echo_n "(cached) " >&6
25301 eval "$as_ac_Header=\$ac_header_preproc"
25303 ac_res=`eval 'as_val=${'$as_ac_Header'}
25304 $as_echo "$as_val"'`
25305 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25306 $as_echo "$ac_res" >&6; }
25309 as_val=`eval 'as_val=${'$as_ac_Header'}
25310 $as_echo "$as_val"'`
25311 if test "x$as_val" = x""yes; then
25313 if test ""4"" = "3" -o ""4"" = "4"; then
25314 # We generate a separate cache variable for each prefix and libname
25315 # we search under. That way, we avoid caching information that
25316 # changes if the user runs `configure' with a different set of
25319 cache_id="`echo apu_cv_check_berkeley_db_"4"_"8"_"-1"_${bdb_header}_${bdb_libname}_in_${bdb_place} \
25320 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
25323 { $as_echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
25324 $as_echo_n "checking for -l$bdb_libname... " >&6; }
25325 if { as_var=$cache_id; eval "test \"\${$as_var+set}\" = set"; }; then
25326 $as_echo_n "(cached) " >&6
25330 apu_try_berkeley_db_save_libs="$LIBS"
25332 apu_check_berkeley_db_major="4"
25333 apu_check_berkeley_db_minor="8"
25334 apu_check_berkeley_db_patch="-1"
25335 apu_try_berkeley_db_header=$bdb_header
25336 apu_try_berkeley_db_libname=$bdb_libname
25338 LIBS="$LIBS -l$apu_try_berkeley_db_libname"
25339 if test "$cross_compiling" = yes; then
25340 apu_try_berkeley_db=yes
25343 cat >conftest.$ac_ext <<_ACEOF
25346 cat confdefs.h >>conftest.$ac_ext
25347 cat >>conftest.$ac_ext <<_ACEOF
25348 /* end confdefs.h. */
25350 #include <stdlib.h>
25352 #include <$apu_try_berkeley_db_header>
25355 int major, minor, patch;
25357 db_version(&major, &minor, &patch);
25359 /* Sanity check: ensure that db.h constants actually match the db library */
25360 if (major != DB_VERSION_MAJOR
25361 || minor != DB_VERSION_MINOR
25362 || patch != DB_VERSION_PATCH)
25365 /* Run-time check: ensure the library claims to be the correct version. */
25367 if ($apu_check_berkeley_db_major != -1) {
25368 if (major < $apu_check_berkeley_db_major)
25370 if (major > $apu_check_berkeley_db_major)
25374 if ($apu_check_berkeley_db_minor != -1) {
25375 if (minor < $apu_check_berkeley_db_minor)
25377 if (minor > $apu_check_berkeley_db_minor)
25381 if ($apu_check_berkeley_db_patch == -1
25382 || patch >= $apu_check_berkeley_db_patch)
25389 rm -f conftest$ac_exeext
25390 if { (ac_try="$ac_link"
25391 case "(($ac_try" in
25392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25393 *) ac_try_echo=$ac_try;;
25395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25396 $as_echo "$ac_try_echo") >&5
25397 (eval "$ac_link") 2>&5
25399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25400 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25401 { (case "(($ac_try" in
25402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25403 *) ac_try_echo=$ac_try;;
25405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25406 $as_echo "$ac_try_echo") >&5
25407 (eval "$ac_try") 2>&5
25409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25410 (exit $ac_status); }; }; then
25411 apu_try_berkeley_db=yes
25413 $as_echo "$as_me: program exited with status $ac_status" >&5
25414 $as_echo "$as_me: failed program was:" >&5
25415 sed 's/^/| /' conftest.$ac_ext >&5
25417 ( exit $ac_status )
25418 apu_try_berkeley_db=no
25420 rm -rf conftest.dSYM
25421 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25426 LIBS="$apu_try_berkeley_db_save_libs"
25429 eval "$cache_id=$apu_try_berkeley_db"
25433 result="`eval echo '$'$cache_id`"
25434 { $as_echo "$as_me:$LINENO: result: $result" >&5
25435 $as_echo "$result" >&6; }
25436 elif test ""4"" = "1"; then
25437 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
25438 { $as_echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
25439 $as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; }
25440 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
25441 $as_echo_n "(cached) " >&6
25443 ac_check_lib_save_LIBS=$LIBS
25444 LIBS="-l$bdb_libname $LIBS"
25445 cat >conftest.$ac_ext <<_ACEOF
25448 cat confdefs.h >>conftest.$ac_ext
25449 cat >>conftest.$ac_ext <<_ACEOF
25450 /* end confdefs.h. */
25452 /* Override any GCC internal prototype to avoid an error.
25453 Use char because int might match the return type of a GCC
25454 builtin and then its argument prototype would still apply. */
25467 rm -f conftest.$ac_objext conftest$ac_exeext
25468 if { (ac_try="$ac_link"
25469 case "(($ac_try" in
25470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25471 *) ac_try_echo=$ac_try;;
25473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25474 $as_echo "$ac_try_echo") >&5
25475 (eval "$ac_link") 2>conftest.er1
25477 grep -v '^ *+' conftest.er1 >conftest.err
25479 cat conftest.err >&5
25480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25481 (exit $ac_status); } && {
25482 test -z "$ac_c_werror_flag" ||
25483 test ! -s conftest.err
25484 } && test -s conftest$ac_exeext && {
25485 test "$cross_compiling" = yes ||
25486 $as_test_x conftest$ac_exeext
25488 eval "$as_ac_Lib=yes"
25490 $as_echo "$as_me: failed program was:" >&5
25491 sed 's/^/| /' conftest.$ac_ext >&5
25493 eval "$as_ac_Lib=no"
25496 rm -rf conftest.dSYM
25497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25498 conftest$ac_exeext conftest.$ac_ext
25499 LIBS=$ac_check_lib_save_LIBS
25501 ac_res=`eval 'as_val=${'$as_ac_Lib'}
25502 $as_echo "$as_val"'`
25503 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25504 $as_echo "$ac_res" >&6; }
25505 as_val=`eval 'as_val=${'$as_ac_Lib'}
25506 $as_echo "$as_val"'`
25507 if test "x$as_val" = x""yes; then
25514 elif test ""4"" = "2"; then
25515 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
25516 { $as_echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
25517 $as_echo_n "checking for db_open in -l$bdb_libname... " >&6; }
25518 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
25519 $as_echo_n "(cached) " >&6
25521 ac_check_lib_save_LIBS=$LIBS
25522 LIBS="-l$bdb_libname $LIBS"
25523 cat >conftest.$ac_ext <<_ACEOF
25526 cat confdefs.h >>conftest.$ac_ext
25527 cat >>conftest.$ac_ext <<_ACEOF
25528 /* end confdefs.h. */
25530 /* Override any GCC internal prototype to avoid an error.
25531 Use char because int might match the return type of a GCC
25532 builtin and then its argument prototype would still apply. */
25545 rm -f conftest.$ac_objext conftest$ac_exeext
25546 if { (ac_try="$ac_link"
25547 case "(($ac_try" in
25548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25549 *) ac_try_echo=$ac_try;;
25551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25552 $as_echo "$ac_try_echo") >&5
25553 (eval "$ac_link") 2>conftest.er1
25555 grep -v '^ *+' conftest.er1 >conftest.err
25557 cat conftest.err >&5
25558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25559 (exit $ac_status); } && {
25560 test -z "$ac_c_werror_flag" ||
25561 test ! -s conftest.err
25562 } && test -s conftest$ac_exeext && {
25563 test "$cross_compiling" = yes ||
25564 $as_test_x conftest$ac_exeext
25566 eval "$as_ac_Lib=yes"
25568 $as_echo "$as_me: failed program was:" >&5
25569 sed 's/^/| /' conftest.$ac_ext >&5
25571 eval "$as_ac_Lib=no"
25574 rm -rf conftest.dSYM
25575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25576 conftest$ac_exeext conftest.$ac_ext
25577 LIBS=$ac_check_lib_save_LIBS
25579 ac_res=`eval 'as_val=${'$as_ac_Lib'}
25580 $as_echo "$as_val"'`
25581 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25582 $as_echo "$ac_res" >&6; }
25583 as_val=`eval 'as_val=${'$as_ac_Lib'}
25584 $as_echo "$as_val"'`
25585 if test "x$as_val" = x""yes; then
25600 # If we found it, no need to search any more.
25601 if test "$result" = "yes"; then
25606 test "$found" != "not" && break
25608 test "$found" != "not" && break
25611 # Restore the original values of the flags we tweak.
25612 LDFLAGS="$apu_check_lib_save_ldflags"
25613 CPPFLAGS="$apu_check_lib_save_cppflags"
25620 apu_db_header=$bdb_header
25621 apu_db_lib=$bdb_libname
25625 header="`echo $found | sed -e 's/:.*$//'`"
25626 lib="`echo $found | sed -e 's/^.*://'`"
25629 if test "x$APRUTIL_INCLUDES" = "x"; then
25630 echo " setting APRUTIL_INCLUDES to \"-I$header\""
25631 APRUTIL_INCLUDES="-I$header"
25633 apr_addto_bugger="-I$header"
25634 for i in $apr_addto_bugger; do
25635 apr_addto_duplicate="0"
25636 for j in $APRUTIL_INCLUDES; do
25637 if test "x$i" = "x$j"; then
25638 apr_addto_duplicate="1"
25642 if test $apr_addto_duplicate = "0"; then
25643 echo " adding \"$i\" to APRUTIL_INCLUDES"
25644 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
25650 if test "x$APRUTIL_LDFLAGS" = "x"; then
25651 echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
25652 APRUTIL_LDFLAGS="-L$lib"
25654 apr_addto_bugger="-L$lib"
25655 for i in $apr_addto_bugger; do
25656 apr_addto_duplicate="0"
25657 for j in $APRUTIL_LDFLAGS; do
25658 if test "x$i" = "x$j"; then
25659 apr_addto_duplicate="1"
25663 if test $apr_addto_duplicate = "0"; then
25664 echo " adding \"$i\" to APRUTIL_LDFLAGS"
25665 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
25670 apu_db_header=$bdb_header
25671 apu_db_lib=$bdb_libname
25676 if test "x$APRUTIL_INCLUDES" = "x"; then
25677 echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
25678 APRUTIL_INCLUDES="-I$found/include"
25680 apr_addto_bugger="-I$found/include"
25681 for i in $apr_addto_bugger; do
25682 apr_addto_duplicate="0"
25683 for j in $APRUTIL_INCLUDES; do
25684 if test "x$i" = "x$j"; then
25685 apr_addto_duplicate="1"
25689 if test $apr_addto_duplicate = "0"; then
25690 echo " adding \"$i\" to APRUTIL_INCLUDES"
25691 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
25697 if test "x$APRUTIL_LDFLAGS" = "x"; then
25698 echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
25699 APRUTIL_LDFLAGS="-L$found/lib"
25701 apr_addto_bugger="-L$found/lib"
25702 for i in $apr_addto_bugger; do
25703 apr_addto_duplicate="0"
25704 for j in $APRUTIL_LDFLAGS; do
25705 if test "x$i" = "x$j"; then
25706 apr_addto_duplicate="1"
25710 if test $apr_addto_duplicate = "0"; then
25711 echo " adding \"$i\" to APRUTIL_LDFLAGS"
25712 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
25717 apu_db_header=$bdb_header
25718 apu_db_lib=$bdb_libname
25723 if test "$apu_have_db" = "1"; then
25727 if test "$apu_db_version" != "4"; then
25728 { { $as_echo "$as_me:$LINENO: error: Berkeley db4 not found" >&5
25729 $as_echo "$as_me: error: Berkeley db4 not found" >&2;}
25730 { (exit 1); exit 1; }; }
25735 all_places="$check_places"
25738 places="$all_places"
25739 if test -z "$places"; then
25740 places="std /usr/local/BerkeleyDB.4.8 /boot/home/config"
25744 if test ""8"" != "-1"; then
25745 bdb_version="$bdb_version."8""
25746 if test ""-1"" != "-1"; then
25747 bdb_version="$bdb_version."-1""
25750 bdb_places="$places"
25751 bdb_default_search_headers="db48/db.h db4/db.h db.h"
25752 bdb_default_search_lib_names="db-4.8 db4-4.8 db48 db4 db"
25757 # Save the original values of the flags we tweak.
25758 apu_check_lib_save_libs="$LIBS"
25759 apu_check_lib_save_ldflags="$LDFLAGS"
25760 apu_check_lib_save_cppflags="$CPPFLAGS"
25762 # The variable `found' is the prefix under which we've found
25763 # Berkeley DB, or `not' if we haven't found it anywhere yet.
25765 for bdb_place in $bdb_places; do
25767 LDFLAGS="$apu_check_lib_save_ldflags"
25768 CPPFLAGS="$apu_check_lib_save_cppflags"
25769 case "$bdb_place" in
25771 description="the standard places"
25774 header="`echo $bdb_place | sed -e 's/:.*$//'`"
25775 lib="`echo $bdb_place | sed -e 's/^.*://'`"
25776 CPPFLAGS="$CPPFLAGS -I$header"
25777 LDFLAGS="$LDFLAGS -L$lib"
25778 description="$header and $lib"
25781 if test -d $bdb_place; then
25782 LDFLAGS="$LDFLAGS -L$bdb_place/lib"
25783 CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
25785 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
25786 $as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; }
25787 { $as_echo "$as_me:$LINENO: result: directory not found" >&5
25788 $as_echo "directory not found" >&6; }
25791 description="$bdb_place"
25795 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
25796 # trick to display a message instead.
25797 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
25798 $as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; }
25799 { $as_echo "$as_me:$LINENO: result: " >&5
25802 for bdb_libname in $bdb_default_search_lib_names; do
25803 for bdb_header in $bdb_default_search_headers; do
25804 # Clear the header cache variable for each location
25806 cache_id="`echo ac_cv_header_${bdb_header} \
25807 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
25810 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh`
25811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25812 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
25813 $as_echo_n "checking for $bdb_header... " >&6; }
25814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25815 $as_echo_n "(cached) " >&6
25817 ac_res=`eval 'as_val=${'$as_ac_Header'}
25818 $as_echo "$as_val"'`
25819 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25820 $as_echo "$ac_res" >&6; }
25822 # Is the header compilable?
25823 { $as_echo "$as_me:$LINENO: checking $bdb_header usability" >&5
25824 $as_echo_n "checking $bdb_header usability... " >&6; }
25825 cat >conftest.$ac_ext <<_ACEOF
25828 cat confdefs.h >>conftest.$ac_ext
25829 cat >>conftest.$ac_ext <<_ACEOF
25830 /* end confdefs.h. */
25831 $ac_includes_default
25832 #include <$bdb_header>
25834 rm -f conftest.$ac_objext
25835 if { (ac_try="$ac_compile"
25836 case "(($ac_try" in
25837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25838 *) ac_try_echo=$ac_try;;
25840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25841 $as_echo "$ac_try_echo") >&5
25842 (eval "$ac_compile") 2>conftest.er1
25844 grep -v '^ *+' conftest.er1 >conftest.err
25846 cat conftest.err >&5
25847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25848 (exit $ac_status); } && {
25849 test -z "$ac_c_werror_flag" ||
25850 test ! -s conftest.err
25851 } && test -s conftest.$ac_objext; then
25852 ac_header_compiler=yes
25854 $as_echo "$as_me: failed program was:" >&5
25855 sed 's/^/| /' conftest.$ac_ext >&5
25857 ac_header_compiler=no
25860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25861 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25862 $as_echo "$ac_header_compiler" >&6; }
25864 # Is the header present?
25865 { $as_echo "$as_me:$LINENO: checking $bdb_header presence" >&5
25866 $as_echo_n "checking $bdb_header presence... " >&6; }
25867 cat >conftest.$ac_ext <<_ACEOF
25870 cat confdefs.h >>conftest.$ac_ext
25871 cat >>conftest.$ac_ext <<_ACEOF
25872 /* end confdefs.h. */
25873 #include <$bdb_header>
25875 if { (ac_try="$ac_cpp conftest.$ac_ext"
25876 case "(($ac_try" in
25877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25878 *) ac_try_echo=$ac_try;;
25880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25881 $as_echo "$ac_try_echo") >&5
25882 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25884 grep -v '^ *+' conftest.er1 >conftest.err
25886 cat conftest.err >&5
25887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25888 (exit $ac_status); } >/dev/null && {
25889 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25890 test ! -s conftest.err
25892 ac_header_preproc=yes
25894 $as_echo "$as_me: failed program was:" >&5
25895 sed 's/^/| /' conftest.$ac_ext >&5
25897 ac_header_preproc=no
25900 rm -f conftest.err conftest.$ac_ext
25901 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25902 $as_echo "$ac_header_preproc" >&6; }
25904 # So? What about this header?
25905 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25907 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
25908 $as_echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25909 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
25910 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
25911 ac_header_preproc=yes
25914 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
25915 $as_echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
25916 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
25917 $as_echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
25918 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
25919 $as_echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
25920 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
25921 $as_echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
25922 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
25923 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
25924 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
25925 $as_echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
25929 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
25930 $as_echo_n "checking for $bdb_header... " >&6; }
25931 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25932 $as_echo_n "(cached) " >&6
25934 eval "$as_ac_Header=\$ac_header_preproc"
25936 ac_res=`eval 'as_val=${'$as_ac_Header'}
25937 $as_echo "$as_val"'`
25938 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25939 $as_echo "$ac_res" >&6; }
25942 as_val=`eval 'as_val=${'$as_ac_Header'}
25943 $as_echo "$as_val"'`
25944 if test "x$as_val" = x""yes; then
25946 if test ""4"" = "3" -o ""4"" = "4"; then
25947 # We generate a separate cache variable for each prefix and libname
25948 # we search under. That way, we avoid caching information that
25949 # changes if the user runs `configure' with a different set of
25952 cache_id="`echo apu_cv_check_berkeley_db_"4"_"8"_"-1"_${bdb_header}_${bdb_libname}_in_${bdb_place} \
25953 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
25956 { $as_echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
25957 $as_echo_n "checking for -l$bdb_libname... " >&6; }
25958 if { as_var=$cache_id; eval "test \"\${$as_var+set}\" = set"; }; then
25959 $as_echo_n "(cached) " >&6
25963 apu_try_berkeley_db_save_libs="$LIBS"
25965 apu_check_berkeley_db_major="4"
25966 apu_check_berkeley_db_minor="8"
25967 apu_check_berkeley_db_patch="-1"
25968 apu_try_berkeley_db_header=$bdb_header
25969 apu_try_berkeley_db_libname=$bdb_libname
25971 LIBS="$LIBS -l$apu_try_berkeley_db_libname"
25972 if test "$cross_compiling" = yes; then
25973 apu_try_berkeley_db=yes
25976 cat >conftest.$ac_ext <<_ACEOF
25979 cat confdefs.h >>conftest.$ac_ext
25980 cat >>conftest.$ac_ext <<_ACEOF
25981 /* end confdefs.h. */
25983 #include <stdlib.h>
25985 #include <$apu_try_berkeley_db_header>
25988 int major, minor, patch;
25990 db_version(&major, &minor, &patch);
25992 /* Sanity check: ensure that db.h constants actually match the db library */
25993 if (major != DB_VERSION_MAJOR
25994 || minor != DB_VERSION_MINOR
25995 || patch != DB_VERSION_PATCH)
25998 /* Run-time check: ensure the library claims to be the correct version. */
26000 if ($apu_check_berkeley_db_major != -1) {
26001 if (major < $apu_check_berkeley_db_major)
26003 if (major > $apu_check_berkeley_db_major)
26007 if ($apu_check_berkeley_db_minor != -1) {
26008 if (minor < $apu_check_berkeley_db_minor)
26010 if (minor > $apu_check_berkeley_db_minor)
26014 if ($apu_check_berkeley_db_patch == -1
26015 || patch >= $apu_check_berkeley_db_patch)
26022 rm -f conftest$ac_exeext
26023 if { (ac_try="$ac_link"
26024 case "(($ac_try" in
26025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26026 *) ac_try_echo=$ac_try;;
26028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26029 $as_echo "$ac_try_echo") >&5
26030 (eval "$ac_link") 2>&5
26032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26033 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26034 { (case "(($ac_try" in
26035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26036 *) ac_try_echo=$ac_try;;
26038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26039 $as_echo "$ac_try_echo") >&5
26040 (eval "$ac_try") 2>&5
26042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26043 (exit $ac_status); }; }; then
26044 apu_try_berkeley_db=yes
26046 $as_echo "$as_me: program exited with status $ac_status" >&5
26047 $as_echo "$as_me: failed program was:" >&5
26048 sed 's/^/| /' conftest.$ac_ext >&5
26050 ( exit $ac_status )
26051 apu_try_berkeley_db=no
26053 rm -rf conftest.dSYM
26054 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26059 LIBS="$apu_try_berkeley_db_save_libs"
26062 eval "$cache_id=$apu_try_berkeley_db"
26066 result="`eval echo '$'$cache_id`"
26067 { $as_echo "$as_me:$LINENO: result: $result" >&5
26068 $as_echo "$result" >&6; }
26069 elif test ""4"" = "1"; then
26070 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
26071 { $as_echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
26072 $as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; }
26073 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
26074 $as_echo_n "(cached) " >&6
26076 ac_check_lib_save_LIBS=$LIBS
26077 LIBS="-l$bdb_libname $LIBS"
26078 cat >conftest.$ac_ext <<_ACEOF
26081 cat confdefs.h >>conftest.$ac_ext
26082 cat >>conftest.$ac_ext <<_ACEOF
26083 /* end confdefs.h. */
26085 /* Override any GCC internal prototype to avoid an error.
26086 Use char because int might match the return type of a GCC
26087 builtin and then its argument prototype would still apply. */
26100 rm -f conftest.$ac_objext conftest$ac_exeext
26101 if { (ac_try="$ac_link"
26102 case "(($ac_try" in
26103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26104 *) ac_try_echo=$ac_try;;
26106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26107 $as_echo "$ac_try_echo") >&5
26108 (eval "$ac_link") 2>conftest.er1
26110 grep -v '^ *+' conftest.er1 >conftest.err
26112 cat conftest.err >&5
26113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26114 (exit $ac_status); } && {
26115 test -z "$ac_c_werror_flag" ||
26116 test ! -s conftest.err
26117 } && test -s conftest$ac_exeext && {
26118 test "$cross_compiling" = yes ||
26119 $as_test_x conftest$ac_exeext
26121 eval "$as_ac_Lib=yes"
26123 $as_echo "$as_me: failed program was:" >&5
26124 sed 's/^/| /' conftest.$ac_ext >&5
26126 eval "$as_ac_Lib=no"
26129 rm -rf conftest.dSYM
26130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26131 conftest$ac_exeext conftest.$ac_ext
26132 LIBS=$ac_check_lib_save_LIBS
26134 ac_res=`eval 'as_val=${'$as_ac_Lib'}
26135 $as_echo "$as_val"'`
26136 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26137 $as_echo "$ac_res" >&6; }
26138 as_val=`eval 'as_val=${'$as_ac_Lib'}
26139 $as_echo "$as_val"'`
26140 if test "x$as_val" = x""yes; then
26147 elif test ""4"" = "2"; then
26148 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
26149 { $as_echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
26150 $as_echo_n "checking for db_open in -l$bdb_libname... " >&6; }
26151 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
26152 $as_echo_n "(cached) " >&6
26154 ac_check_lib_save_LIBS=$LIBS
26155 LIBS="-l$bdb_libname $LIBS"
26156 cat >conftest.$ac_ext <<_ACEOF
26159 cat confdefs.h >>conftest.$ac_ext
26160 cat >>conftest.$ac_ext <<_ACEOF
26161 /* end confdefs.h. */
26163 /* Override any GCC internal prototype to avoid an error.
26164 Use char because int might match the return type of a GCC
26165 builtin and then its argument prototype would still apply. */
26178 rm -f conftest.$ac_objext conftest$ac_exeext
26179 if { (ac_try="$ac_link"
26180 case "(($ac_try" in
26181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26182 *) ac_try_echo=$ac_try;;
26184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26185 $as_echo "$ac_try_echo") >&5
26186 (eval "$ac_link") 2>conftest.er1
26188 grep -v '^ *+' conftest.er1 >conftest.err
26190 cat conftest.err >&5
26191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26192 (exit $ac_status); } && {
26193 test -z "$ac_c_werror_flag" ||
26194 test ! -s conftest.err
26195 } && test -s conftest$ac_exeext && {
26196 test "$cross_compiling" = yes ||
26197 $as_test_x conftest$ac_exeext
26199 eval "$as_ac_Lib=yes"
26201 $as_echo "$as_me: failed program was:" >&5
26202 sed 's/^/| /' conftest.$ac_ext >&5
26204 eval "$as_ac_Lib=no"
26207 rm -rf conftest.dSYM
26208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26209 conftest$ac_exeext conftest.$ac_ext
26210 LIBS=$ac_check_lib_save_LIBS
26212 ac_res=`eval 'as_val=${'$as_ac_Lib'}
26213 $as_echo "$as_val"'`
26214 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26215 $as_echo "$ac_res" >&6; }
26216 as_val=`eval 'as_val=${'$as_ac_Lib'}
26217 $as_echo "$as_val"'`
26218 if test "x$as_val" = x""yes; then
26233 # If we found it, no need to search any more.
26234 if test "$result" = "yes"; then
26239 test "$found" != "not" && break
26241 test "$found" != "not" && break
26244 # Restore the original values of the flags we tweak.
26245 LDFLAGS="$apu_check_lib_save_ldflags"
26246 CPPFLAGS="$apu_check_lib_save_cppflags"
26253 apu_db_header=$bdb_header
26254 apu_db_lib=$bdb_libname
26258 header="`echo $found | sed -e 's/:.*$//'`"
26259 lib="`echo $found | sed -e 's/^.*://'`"
26262 if test "x$APRUTIL_INCLUDES" = "x"; then
26263 echo " setting APRUTIL_INCLUDES to \"-I$header\""
26264 APRUTIL_INCLUDES="-I$header"
26266 apr_addto_bugger="-I$header"
26267 for i in $apr_addto_bugger; do
26268 apr_addto_duplicate="0"
26269 for j in $APRUTIL_INCLUDES; do
26270 if test "x$i" = "x$j"; then
26271 apr_addto_duplicate="1"
26275 if test $apr_addto_duplicate = "0"; then
26276 echo " adding \"$i\" to APRUTIL_INCLUDES"
26277 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
26283 if test "x$APRUTIL_LDFLAGS" = "x"; then
26284 echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
26285 APRUTIL_LDFLAGS="-L$lib"
26287 apr_addto_bugger="-L$lib"
26288 for i in $apr_addto_bugger; do
26289 apr_addto_duplicate="0"
26290 for j in $APRUTIL_LDFLAGS; do
26291 if test "x$i" = "x$j"; then
26292 apr_addto_duplicate="1"
26296 if test $apr_addto_duplicate = "0"; then
26297 echo " adding \"$i\" to APRUTIL_LDFLAGS"
26298 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
26303 apu_db_header=$bdb_header
26304 apu_db_lib=$bdb_libname
26309 if test "x$APRUTIL_INCLUDES" = "x"; then
26310 echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
26311 APRUTIL_INCLUDES="-I$found/include"
26313 apr_addto_bugger="-I$found/include"
26314 for i in $apr_addto_bugger; do
26315 apr_addto_duplicate="0"
26316 for j in $APRUTIL_INCLUDES; do
26317 if test "x$i" = "x$j"; then
26318 apr_addto_duplicate="1"
26322 if test $apr_addto_duplicate = "0"; then
26323 echo " adding \"$i\" to APRUTIL_INCLUDES"
26324 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
26330 if test "x$APRUTIL_LDFLAGS" = "x"; then
26331 echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
26332 APRUTIL_LDFLAGS="-L$found/lib"
26334 apr_addto_bugger="-L$found/lib"
26335 for i in $apr_addto_bugger; do
26336 apr_addto_duplicate="0"
26337 for j in $APRUTIL_LDFLAGS; do
26338 if test "x$i" = "x$j"; then
26339 apr_addto_duplicate="1"
26343 if test $apr_addto_duplicate = "0"; then
26344 echo " adding \"$i\" to APRUTIL_LDFLAGS"
26345 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
26350 apu_db_header=$bdb_header
26351 apu_db_lib=$bdb_libname
26356 if test "$apu_have_db" = "1"; then
26360 if test "$apu_db_version" != "4"; then
26362 places="$all_places"
26363 if test -z "$places"; then
26364 places="std /usr/local/BerkeleyDB.4.7 /boot/home/config"
26368 if test ""7"" != "-1"; then
26369 bdb_version="$bdb_version."7""
26370 if test ""-1"" != "-1"; then
26371 bdb_version="$bdb_version."-1""
26374 bdb_places="$places"
26375 bdb_default_search_headers="db47/db.h db4/db.h db.h"
26376 bdb_default_search_lib_names="db-4.7 db4-4.7 db47 db4 db"
26381 # Save the original values of the flags we tweak.
26382 apu_check_lib_save_libs="$LIBS"
26383 apu_check_lib_save_ldflags="$LDFLAGS"
26384 apu_check_lib_save_cppflags="$CPPFLAGS"
26386 # The variable `found' is the prefix under which we've found
26387 # Berkeley DB, or `not' if we haven't found it anywhere yet.
26389 for bdb_place in $bdb_places; do
26391 LDFLAGS="$apu_check_lib_save_ldflags"
26392 CPPFLAGS="$apu_check_lib_save_cppflags"
26393 case "$bdb_place" in
26395 description="the standard places"
26398 header="`echo $bdb_place | sed -e 's/:.*$//'`"
26399 lib="`echo $bdb_place | sed -e 's/^.*://'`"
26400 CPPFLAGS="$CPPFLAGS -I$header"
26401 LDFLAGS="$LDFLAGS -L$lib"
26402 description="$header and $lib"
26405 if test -d $bdb_place; then
26406 LDFLAGS="$LDFLAGS -L$bdb_place/lib"
26407 CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
26409 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
26410 $as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; }
26411 { $as_echo "$as_me:$LINENO: result: directory not found" >&5
26412 $as_echo "directory not found" >&6; }
26415 description="$bdb_place"
26419 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
26420 # trick to display a message instead.
26421 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
26422 $as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; }
26423 { $as_echo "$as_me:$LINENO: result: " >&5
26426 for bdb_libname in $bdb_default_search_lib_names; do
26427 for bdb_header in $bdb_default_search_headers; do
26428 # Clear the header cache variable for each location
26430 cache_id="`echo ac_cv_header_${bdb_header} \
26431 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
26434 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh`
26435 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26436 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
26437 $as_echo_n "checking for $bdb_header... " >&6; }
26438 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26439 $as_echo_n "(cached) " >&6
26441 ac_res=`eval 'as_val=${'$as_ac_Header'}
26442 $as_echo "$as_val"'`
26443 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26444 $as_echo "$ac_res" >&6; }
26446 # Is the header compilable?
26447 { $as_echo "$as_me:$LINENO: checking $bdb_header usability" >&5
26448 $as_echo_n "checking $bdb_header usability... " >&6; }
26449 cat >conftest.$ac_ext <<_ACEOF
26452 cat confdefs.h >>conftest.$ac_ext
26453 cat >>conftest.$ac_ext <<_ACEOF
26454 /* end confdefs.h. */
26455 $ac_includes_default
26456 #include <$bdb_header>
26458 rm -f conftest.$ac_objext
26459 if { (ac_try="$ac_compile"
26460 case "(($ac_try" in
26461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26462 *) ac_try_echo=$ac_try;;
26464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26465 $as_echo "$ac_try_echo") >&5
26466 (eval "$ac_compile") 2>conftest.er1
26468 grep -v '^ *+' conftest.er1 >conftest.err
26470 cat conftest.err >&5
26471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26472 (exit $ac_status); } && {
26473 test -z "$ac_c_werror_flag" ||
26474 test ! -s conftest.err
26475 } && test -s conftest.$ac_objext; then
26476 ac_header_compiler=yes
26478 $as_echo "$as_me: failed program was:" >&5
26479 sed 's/^/| /' conftest.$ac_ext >&5
26481 ac_header_compiler=no
26484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26485 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26486 $as_echo "$ac_header_compiler" >&6; }
26488 # Is the header present?
26489 { $as_echo "$as_me:$LINENO: checking $bdb_header presence" >&5
26490 $as_echo_n "checking $bdb_header presence... " >&6; }
26491 cat >conftest.$ac_ext <<_ACEOF
26494 cat confdefs.h >>conftest.$ac_ext
26495 cat >>conftest.$ac_ext <<_ACEOF
26496 /* end confdefs.h. */
26497 #include <$bdb_header>
26499 if { (ac_try="$ac_cpp conftest.$ac_ext"
26500 case "(($ac_try" in
26501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26502 *) ac_try_echo=$ac_try;;
26504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26505 $as_echo "$ac_try_echo") >&5
26506 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26508 grep -v '^ *+' conftest.er1 >conftest.err
26510 cat conftest.err >&5
26511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26512 (exit $ac_status); } >/dev/null && {
26513 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26514 test ! -s conftest.err
26516 ac_header_preproc=yes
26518 $as_echo "$as_me: failed program was:" >&5
26519 sed 's/^/| /' conftest.$ac_ext >&5
26521 ac_header_preproc=no
26524 rm -f conftest.err conftest.$ac_ext
26525 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26526 $as_echo "$ac_header_preproc" >&6; }
26528 # So? What about this header?
26529 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26531 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
26532 $as_echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26533 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
26534 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
26535 ac_header_preproc=yes
26538 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
26539 $as_echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
26540 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
26541 $as_echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
26542 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
26543 $as_echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
26544 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
26545 $as_echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
26546 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
26547 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
26548 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
26549 $as_echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
26553 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
26554 $as_echo_n "checking for $bdb_header... " >&6; }
26555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26556 $as_echo_n "(cached) " >&6
26558 eval "$as_ac_Header=\$ac_header_preproc"
26560 ac_res=`eval 'as_val=${'$as_ac_Header'}
26561 $as_echo "$as_val"'`
26562 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26563 $as_echo "$ac_res" >&6; }
26566 as_val=`eval 'as_val=${'$as_ac_Header'}
26567 $as_echo "$as_val"'`
26568 if test "x$as_val" = x""yes; then
26570 if test ""4"" = "3" -o ""4"" = "4"; then
26571 # We generate a separate cache variable for each prefix and libname
26572 # we search under. That way, we avoid caching information that
26573 # changes if the user runs `configure' with a different set of
26576 cache_id="`echo apu_cv_check_berkeley_db_"4"_"7"_"-1"_${bdb_header}_${bdb_libname}_in_${bdb_place} \
26577 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
26580 { $as_echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
26581 $as_echo_n "checking for -l$bdb_libname... " >&6; }
26582 if { as_var=$cache_id; eval "test \"\${$as_var+set}\" = set"; }; then
26583 $as_echo_n "(cached) " >&6
26587 apu_try_berkeley_db_save_libs="$LIBS"
26589 apu_check_berkeley_db_major="4"
26590 apu_check_berkeley_db_minor="7"
26591 apu_check_berkeley_db_patch="-1"
26592 apu_try_berkeley_db_header=$bdb_header
26593 apu_try_berkeley_db_libname=$bdb_libname
26595 LIBS="$LIBS -l$apu_try_berkeley_db_libname"
26596 if test "$cross_compiling" = yes; then
26597 apu_try_berkeley_db=yes
26600 cat >conftest.$ac_ext <<_ACEOF
26603 cat confdefs.h >>conftest.$ac_ext
26604 cat >>conftest.$ac_ext <<_ACEOF
26605 /* end confdefs.h. */
26607 #include <stdlib.h>
26609 #include <$apu_try_berkeley_db_header>
26612 int major, minor, patch;
26614 db_version(&major, &minor, &patch);
26616 /* Sanity check: ensure that db.h constants actually match the db library */
26617 if (major != DB_VERSION_MAJOR
26618 || minor != DB_VERSION_MINOR
26619 || patch != DB_VERSION_PATCH)
26622 /* Run-time check: ensure the library claims to be the correct version. */
26624 if ($apu_check_berkeley_db_major != -1) {
26625 if (major < $apu_check_berkeley_db_major)
26627 if (major > $apu_check_berkeley_db_major)
26631 if ($apu_check_berkeley_db_minor != -1) {
26632 if (minor < $apu_check_berkeley_db_minor)
26634 if (minor > $apu_check_berkeley_db_minor)
26638 if ($apu_check_berkeley_db_patch == -1
26639 || patch >= $apu_check_berkeley_db_patch)
26646 rm -f conftest$ac_exeext
26647 if { (ac_try="$ac_link"
26648 case "(($ac_try" in
26649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26650 *) ac_try_echo=$ac_try;;
26652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26653 $as_echo "$ac_try_echo") >&5
26654 (eval "$ac_link") 2>&5
26656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26657 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26658 { (case "(($ac_try" in
26659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26660 *) ac_try_echo=$ac_try;;
26662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26663 $as_echo "$ac_try_echo") >&5
26664 (eval "$ac_try") 2>&5
26666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26667 (exit $ac_status); }; }; then
26668 apu_try_berkeley_db=yes
26670 $as_echo "$as_me: program exited with status $ac_status" >&5
26671 $as_echo "$as_me: failed program was:" >&5
26672 sed 's/^/| /' conftest.$ac_ext >&5
26674 ( exit $ac_status )
26675 apu_try_berkeley_db=no
26677 rm -rf conftest.dSYM
26678 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26683 LIBS="$apu_try_berkeley_db_save_libs"
26686 eval "$cache_id=$apu_try_berkeley_db"
26690 result="`eval echo '$'$cache_id`"
26691 { $as_echo "$as_me:$LINENO: result: $result" >&5
26692 $as_echo "$result" >&6; }
26693 elif test ""4"" = "1"; then
26694 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
26695 { $as_echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
26696 $as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; }
26697 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
26698 $as_echo_n "(cached) " >&6
26700 ac_check_lib_save_LIBS=$LIBS
26701 LIBS="-l$bdb_libname $LIBS"
26702 cat >conftest.$ac_ext <<_ACEOF
26705 cat confdefs.h >>conftest.$ac_ext
26706 cat >>conftest.$ac_ext <<_ACEOF
26707 /* end confdefs.h. */
26709 /* Override any GCC internal prototype to avoid an error.
26710 Use char because int might match the return type of a GCC
26711 builtin and then its argument prototype would still apply. */
26724 rm -f conftest.$ac_objext conftest$ac_exeext
26725 if { (ac_try="$ac_link"
26726 case "(($ac_try" in
26727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26728 *) ac_try_echo=$ac_try;;
26730 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26731 $as_echo "$ac_try_echo") >&5
26732 (eval "$ac_link") 2>conftest.er1
26734 grep -v '^ *+' conftest.er1 >conftest.err
26736 cat conftest.err >&5
26737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26738 (exit $ac_status); } && {
26739 test -z "$ac_c_werror_flag" ||
26740 test ! -s conftest.err
26741 } && test -s conftest$ac_exeext && {
26742 test "$cross_compiling" = yes ||
26743 $as_test_x conftest$ac_exeext
26745 eval "$as_ac_Lib=yes"
26747 $as_echo "$as_me: failed program was:" >&5
26748 sed 's/^/| /' conftest.$ac_ext >&5
26750 eval "$as_ac_Lib=no"
26753 rm -rf conftest.dSYM
26754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26755 conftest$ac_exeext conftest.$ac_ext
26756 LIBS=$ac_check_lib_save_LIBS
26758 ac_res=`eval 'as_val=${'$as_ac_Lib'}
26759 $as_echo "$as_val"'`
26760 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26761 $as_echo "$ac_res" >&6; }
26762 as_val=`eval 'as_val=${'$as_ac_Lib'}
26763 $as_echo "$as_val"'`
26764 if test "x$as_val" = x""yes; then
26771 elif test ""4"" = "2"; then
26772 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
26773 { $as_echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
26774 $as_echo_n "checking for db_open in -l$bdb_libname... " >&6; }
26775 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
26776 $as_echo_n "(cached) " >&6
26778 ac_check_lib_save_LIBS=$LIBS
26779 LIBS="-l$bdb_libname $LIBS"
26780 cat >conftest.$ac_ext <<_ACEOF
26783 cat confdefs.h >>conftest.$ac_ext
26784 cat >>conftest.$ac_ext <<_ACEOF
26785 /* end confdefs.h. */
26787 /* Override any GCC internal prototype to avoid an error.
26788 Use char because int might match the return type of a GCC
26789 builtin and then its argument prototype would still apply. */
26802 rm -f conftest.$ac_objext conftest$ac_exeext
26803 if { (ac_try="$ac_link"
26804 case "(($ac_try" in
26805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26806 *) ac_try_echo=$ac_try;;
26808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26809 $as_echo "$ac_try_echo") >&5
26810 (eval "$ac_link") 2>conftest.er1
26812 grep -v '^ *+' conftest.er1 >conftest.err
26814 cat conftest.err >&5
26815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26816 (exit $ac_status); } && {
26817 test -z "$ac_c_werror_flag" ||
26818 test ! -s conftest.err
26819 } && test -s conftest$ac_exeext && {
26820 test "$cross_compiling" = yes ||
26821 $as_test_x conftest$ac_exeext
26823 eval "$as_ac_Lib=yes"
26825 $as_echo "$as_me: failed program was:" >&5
26826 sed 's/^/| /' conftest.$ac_ext >&5
26828 eval "$as_ac_Lib=no"
26831 rm -rf conftest.dSYM
26832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26833 conftest$ac_exeext conftest.$ac_ext
26834 LIBS=$ac_check_lib_save_LIBS
26836 ac_res=`eval 'as_val=${'$as_ac_Lib'}
26837 $as_echo "$as_val"'`
26838 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26839 $as_echo "$ac_res" >&6; }
26840 as_val=`eval 'as_val=${'$as_ac_Lib'}
26841 $as_echo "$as_val"'`
26842 if test "x$as_val" = x""yes; then
26857 # If we found it, no need to search any more.
26858 if test "$result" = "yes"; then
26863 test "$found" != "not" && break
26865 test "$found" != "not" && break
26868 # Restore the original values of the flags we tweak.
26869 LDFLAGS="$apu_check_lib_save_ldflags"
26870 CPPFLAGS="$apu_check_lib_save_cppflags"
26877 apu_db_header=$bdb_header
26878 apu_db_lib=$bdb_libname
26882 header="`echo $found | sed -e 's/:.*$//'`"
26883 lib="`echo $found | sed -e 's/^.*://'`"
26886 if test "x$APRUTIL_INCLUDES" = "x"; then
26887 echo " setting APRUTIL_INCLUDES to \"-I$header\""
26888 APRUTIL_INCLUDES="-I$header"
26890 apr_addto_bugger="-I$header"
26891 for i in $apr_addto_bugger; do
26892 apr_addto_duplicate="0"
26893 for j in $APRUTIL_INCLUDES; do
26894 if test "x$i" = "x$j"; then
26895 apr_addto_duplicate="1"
26899 if test $apr_addto_duplicate = "0"; then
26900 echo " adding \"$i\" to APRUTIL_INCLUDES"
26901 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
26907 if test "x$APRUTIL_LDFLAGS" = "x"; then
26908 echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
26909 APRUTIL_LDFLAGS="-L$lib"
26911 apr_addto_bugger="-L$lib"
26912 for i in $apr_addto_bugger; do
26913 apr_addto_duplicate="0"
26914 for j in $APRUTIL_LDFLAGS; do
26915 if test "x$i" = "x$j"; then
26916 apr_addto_duplicate="1"
26920 if test $apr_addto_duplicate = "0"; then
26921 echo " adding \"$i\" to APRUTIL_LDFLAGS"
26922 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
26927 apu_db_header=$bdb_header
26928 apu_db_lib=$bdb_libname
26933 if test "x$APRUTIL_INCLUDES" = "x"; then
26934 echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
26935 APRUTIL_INCLUDES="-I$found/include"
26937 apr_addto_bugger="-I$found/include"
26938 for i in $apr_addto_bugger; do
26939 apr_addto_duplicate="0"
26940 for j in $APRUTIL_INCLUDES; do
26941 if test "x$i" = "x$j"; then
26942 apr_addto_duplicate="1"
26946 if test $apr_addto_duplicate = "0"; then
26947 echo " adding \"$i\" to APRUTIL_INCLUDES"
26948 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
26954 if test "x$APRUTIL_LDFLAGS" = "x"; then
26955 echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
26956 APRUTIL_LDFLAGS="-L$found/lib"
26958 apr_addto_bugger="-L$found/lib"
26959 for i in $apr_addto_bugger; do
26960 apr_addto_duplicate="0"
26961 for j in $APRUTIL_LDFLAGS; do
26962 if test "x$i" = "x$j"; then
26963 apr_addto_duplicate="1"
26967 if test $apr_addto_duplicate = "0"; then
26968 echo " adding \"$i\" to APRUTIL_LDFLAGS"
26969 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
26974 apu_db_header=$bdb_header
26975 apu_db_lib=$bdb_libname
26980 if test "$apu_have_db" = "1"; then
26984 if test "$apu_db_version" != "4"; then
26986 places="$all_places"
26987 if test -z "$places"; then
26988 places="std /usr/local/BerkeleyDB.4.6 /boot/home/config"
26992 if test ""6"" != "-1"; then
26993 bdb_version="$bdb_version."6""
26994 if test ""-1"" != "-1"; then
26995 bdb_version="$bdb_version."-1""
26998 bdb_places="$places"
26999 bdb_default_search_headers="db46/db.h db4/db.h db.h"
27000 bdb_default_search_lib_names="db-4.6 db4-4.6 db46 db4 db"
27005 # Save the original values of the flags we tweak.
27006 apu_check_lib_save_libs="$LIBS"
27007 apu_check_lib_save_ldflags="$LDFLAGS"
27008 apu_check_lib_save_cppflags="$CPPFLAGS"
27010 # The variable `found' is the prefix under which we've found
27011 # Berkeley DB, or `not' if we haven't found it anywhere yet.
27013 for bdb_place in $bdb_places; do
27015 LDFLAGS="$apu_check_lib_save_ldflags"
27016 CPPFLAGS="$apu_check_lib_save_cppflags"
27017 case "$bdb_place" in
27019 description="the standard places"
27022 header="`echo $bdb_place | sed -e 's/:.*$//'`"
27023 lib="`echo $bdb_place | sed -e 's/^.*://'`"
27024 CPPFLAGS="$CPPFLAGS -I$header"
27025 LDFLAGS="$LDFLAGS -L$lib"
27026 description="$header and $lib"
27029 if test -d $bdb_place; then
27030 LDFLAGS="$LDFLAGS -L$bdb_place/lib"
27031 CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
27033 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
27034 $as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; }
27035 { $as_echo "$as_me:$LINENO: result: directory not found" >&5
27036 $as_echo "directory not found" >&6; }
27039 description="$bdb_place"
27043 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
27044 # trick to display a message instead.
27045 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
27046 $as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; }
27047 { $as_echo "$as_me:$LINENO: result: " >&5
27050 for bdb_libname in $bdb_default_search_lib_names; do
27051 for bdb_header in $bdb_default_search_headers; do
27052 # Clear the header cache variable for each location
27054 cache_id="`echo ac_cv_header_${bdb_header} \
27055 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
27058 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh`
27059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27060 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
27061 $as_echo_n "checking for $bdb_header... " >&6; }
27062 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27063 $as_echo_n "(cached) " >&6
27065 ac_res=`eval 'as_val=${'$as_ac_Header'}
27066 $as_echo "$as_val"'`
27067 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27068 $as_echo "$ac_res" >&6; }
27070 # Is the header compilable?
27071 { $as_echo "$as_me:$LINENO: checking $bdb_header usability" >&5
27072 $as_echo_n "checking $bdb_header usability... " >&6; }
27073 cat >conftest.$ac_ext <<_ACEOF
27076 cat confdefs.h >>conftest.$ac_ext
27077 cat >>conftest.$ac_ext <<_ACEOF
27078 /* end confdefs.h. */
27079 $ac_includes_default
27080 #include <$bdb_header>
27082 rm -f conftest.$ac_objext
27083 if { (ac_try="$ac_compile"
27084 case "(($ac_try" in
27085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27086 *) ac_try_echo=$ac_try;;
27088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27089 $as_echo "$ac_try_echo") >&5
27090 (eval "$ac_compile") 2>conftest.er1
27092 grep -v '^ *+' conftest.er1 >conftest.err
27094 cat conftest.err >&5
27095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27096 (exit $ac_status); } && {
27097 test -z "$ac_c_werror_flag" ||
27098 test ! -s conftest.err
27099 } && test -s conftest.$ac_objext; then
27100 ac_header_compiler=yes
27102 $as_echo "$as_me: failed program was:" >&5
27103 sed 's/^/| /' conftest.$ac_ext >&5
27105 ac_header_compiler=no
27108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27109 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27110 $as_echo "$ac_header_compiler" >&6; }
27112 # Is the header present?
27113 { $as_echo "$as_me:$LINENO: checking $bdb_header presence" >&5
27114 $as_echo_n "checking $bdb_header presence... " >&6; }
27115 cat >conftest.$ac_ext <<_ACEOF
27118 cat confdefs.h >>conftest.$ac_ext
27119 cat >>conftest.$ac_ext <<_ACEOF
27120 /* end confdefs.h. */
27121 #include <$bdb_header>
27123 if { (ac_try="$ac_cpp conftest.$ac_ext"
27124 case "(($ac_try" in
27125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27126 *) ac_try_echo=$ac_try;;
27128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27129 $as_echo "$ac_try_echo") >&5
27130 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27132 grep -v '^ *+' conftest.er1 >conftest.err
27134 cat conftest.err >&5
27135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27136 (exit $ac_status); } >/dev/null && {
27137 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27138 test ! -s conftest.err
27140 ac_header_preproc=yes
27142 $as_echo "$as_me: failed program was:" >&5
27143 sed 's/^/| /' conftest.$ac_ext >&5
27145 ac_header_preproc=no
27148 rm -f conftest.err conftest.$ac_ext
27149 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27150 $as_echo "$ac_header_preproc" >&6; }
27152 # So? What about this header?
27153 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27155 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
27156 $as_echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27157 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
27158 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
27159 ac_header_preproc=yes
27162 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
27163 $as_echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
27164 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
27165 $as_echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
27166 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
27167 $as_echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
27168 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
27169 $as_echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
27170 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
27171 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
27172 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
27173 $as_echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
27177 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
27178 $as_echo_n "checking for $bdb_header... " >&6; }
27179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27180 $as_echo_n "(cached) " >&6
27182 eval "$as_ac_Header=\$ac_header_preproc"
27184 ac_res=`eval 'as_val=${'$as_ac_Header'}
27185 $as_echo "$as_val"'`
27186 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27187 $as_echo "$ac_res" >&6; }
27190 as_val=`eval 'as_val=${'$as_ac_Header'}
27191 $as_echo "$as_val"'`
27192 if test "x$as_val" = x""yes; then
27194 if test ""4"" = "3" -o ""4"" = "4"; then
27195 # We generate a separate cache variable for each prefix and libname
27196 # we search under. That way, we avoid caching information that
27197 # changes if the user runs `configure' with a different set of
27200 cache_id="`echo apu_cv_check_berkeley_db_"4"_"6"_"-1"_${bdb_header}_${bdb_libname}_in_${bdb_place} \
27201 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
27204 { $as_echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
27205 $as_echo_n "checking for -l$bdb_libname... " >&6; }
27206 if { as_var=$cache_id; eval "test \"\${$as_var+set}\" = set"; }; then
27207 $as_echo_n "(cached) " >&6
27211 apu_try_berkeley_db_save_libs="$LIBS"
27213 apu_check_berkeley_db_major="4"
27214 apu_check_berkeley_db_minor="6"
27215 apu_check_berkeley_db_patch="-1"
27216 apu_try_berkeley_db_header=$bdb_header
27217 apu_try_berkeley_db_libname=$bdb_libname
27219 LIBS="$LIBS -l$apu_try_berkeley_db_libname"
27220 if test "$cross_compiling" = yes; then
27221 apu_try_berkeley_db=yes
27224 cat >conftest.$ac_ext <<_ACEOF
27227 cat confdefs.h >>conftest.$ac_ext
27228 cat >>conftest.$ac_ext <<_ACEOF
27229 /* end confdefs.h. */
27231 #include <stdlib.h>
27233 #include <$apu_try_berkeley_db_header>
27236 int major, minor, patch;
27238 db_version(&major, &minor, &patch);
27240 /* Sanity check: ensure that db.h constants actually match the db library */
27241 if (major != DB_VERSION_MAJOR
27242 || minor != DB_VERSION_MINOR
27243 || patch != DB_VERSION_PATCH)
27246 /* Run-time check: ensure the library claims to be the correct version. */
27248 if ($apu_check_berkeley_db_major != -1) {
27249 if (major < $apu_check_berkeley_db_major)
27251 if (major > $apu_check_berkeley_db_major)
27255 if ($apu_check_berkeley_db_minor != -1) {
27256 if (minor < $apu_check_berkeley_db_minor)
27258 if (minor > $apu_check_berkeley_db_minor)
27262 if ($apu_check_berkeley_db_patch == -1
27263 || patch >= $apu_check_berkeley_db_patch)
27270 rm -f conftest$ac_exeext
27271 if { (ac_try="$ac_link"
27272 case "(($ac_try" in
27273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27274 *) ac_try_echo=$ac_try;;
27276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27277 $as_echo "$ac_try_echo") >&5
27278 (eval "$ac_link") 2>&5
27280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27281 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27282 { (case "(($ac_try" in
27283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27284 *) ac_try_echo=$ac_try;;
27286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27287 $as_echo "$ac_try_echo") >&5
27288 (eval "$ac_try") 2>&5
27290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27291 (exit $ac_status); }; }; then
27292 apu_try_berkeley_db=yes
27294 $as_echo "$as_me: program exited with status $ac_status" >&5
27295 $as_echo "$as_me: failed program was:" >&5
27296 sed 's/^/| /' conftest.$ac_ext >&5
27298 ( exit $ac_status )
27299 apu_try_berkeley_db=no
27301 rm -rf conftest.dSYM
27302 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27307 LIBS="$apu_try_berkeley_db_save_libs"
27310 eval "$cache_id=$apu_try_berkeley_db"
27314 result="`eval echo '$'$cache_id`"
27315 { $as_echo "$as_me:$LINENO: result: $result" >&5
27316 $as_echo "$result" >&6; }
27317 elif test ""4"" = "1"; then
27318 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
27319 { $as_echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
27320 $as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; }
27321 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
27322 $as_echo_n "(cached) " >&6
27324 ac_check_lib_save_LIBS=$LIBS
27325 LIBS="-l$bdb_libname $LIBS"
27326 cat >conftest.$ac_ext <<_ACEOF
27329 cat confdefs.h >>conftest.$ac_ext
27330 cat >>conftest.$ac_ext <<_ACEOF
27331 /* end confdefs.h. */
27333 /* Override any GCC internal prototype to avoid an error.
27334 Use char because int might match the return type of a GCC
27335 builtin and then its argument prototype would still apply. */
27348 rm -f conftest.$ac_objext conftest$ac_exeext
27349 if { (ac_try="$ac_link"
27350 case "(($ac_try" in
27351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27352 *) ac_try_echo=$ac_try;;
27354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27355 $as_echo "$ac_try_echo") >&5
27356 (eval "$ac_link") 2>conftest.er1
27358 grep -v '^ *+' conftest.er1 >conftest.err
27360 cat conftest.err >&5
27361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27362 (exit $ac_status); } && {
27363 test -z "$ac_c_werror_flag" ||
27364 test ! -s conftest.err
27365 } && test -s conftest$ac_exeext && {
27366 test "$cross_compiling" = yes ||
27367 $as_test_x conftest$ac_exeext
27369 eval "$as_ac_Lib=yes"
27371 $as_echo "$as_me: failed program was:" >&5
27372 sed 's/^/| /' conftest.$ac_ext >&5
27374 eval "$as_ac_Lib=no"
27377 rm -rf conftest.dSYM
27378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27379 conftest$ac_exeext conftest.$ac_ext
27380 LIBS=$ac_check_lib_save_LIBS
27382 ac_res=`eval 'as_val=${'$as_ac_Lib'}
27383 $as_echo "$as_val"'`
27384 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27385 $as_echo "$ac_res" >&6; }
27386 as_val=`eval 'as_val=${'$as_ac_Lib'}
27387 $as_echo "$as_val"'`
27388 if test "x$as_val" = x""yes; then
27395 elif test ""4"" = "2"; then
27396 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
27397 { $as_echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
27398 $as_echo_n "checking for db_open in -l$bdb_libname... " >&6; }
27399 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
27400 $as_echo_n "(cached) " >&6
27402 ac_check_lib_save_LIBS=$LIBS
27403 LIBS="-l$bdb_libname $LIBS"
27404 cat >conftest.$ac_ext <<_ACEOF
27407 cat confdefs.h >>conftest.$ac_ext
27408 cat >>conftest.$ac_ext <<_ACEOF
27409 /* end confdefs.h. */
27411 /* Override any GCC internal prototype to avoid an error.
27412 Use char because int might match the return type of a GCC
27413 builtin and then its argument prototype would still apply. */
27426 rm -f conftest.$ac_objext conftest$ac_exeext
27427 if { (ac_try="$ac_link"
27428 case "(($ac_try" in
27429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27430 *) ac_try_echo=$ac_try;;
27432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27433 $as_echo "$ac_try_echo") >&5
27434 (eval "$ac_link") 2>conftest.er1
27436 grep -v '^ *+' conftest.er1 >conftest.err
27438 cat conftest.err >&5
27439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27440 (exit $ac_status); } && {
27441 test -z "$ac_c_werror_flag" ||
27442 test ! -s conftest.err
27443 } && test -s conftest$ac_exeext && {
27444 test "$cross_compiling" = yes ||
27445 $as_test_x conftest$ac_exeext
27447 eval "$as_ac_Lib=yes"
27449 $as_echo "$as_me: failed program was:" >&5
27450 sed 's/^/| /' conftest.$ac_ext >&5
27452 eval "$as_ac_Lib=no"
27455 rm -rf conftest.dSYM
27456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27457 conftest$ac_exeext conftest.$ac_ext
27458 LIBS=$ac_check_lib_save_LIBS
27460 ac_res=`eval 'as_val=${'$as_ac_Lib'}
27461 $as_echo "$as_val"'`
27462 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27463 $as_echo "$ac_res" >&6; }
27464 as_val=`eval 'as_val=${'$as_ac_Lib'}
27465 $as_echo "$as_val"'`
27466 if test "x$as_val" = x""yes; then
27481 # If we found it, no need to search any more.
27482 if test "$result" = "yes"; then
27487 test "$found" != "not" && break
27489 test "$found" != "not" && break
27492 # Restore the original values of the flags we tweak.
27493 LDFLAGS="$apu_check_lib_save_ldflags"
27494 CPPFLAGS="$apu_check_lib_save_cppflags"
27501 apu_db_header=$bdb_header
27502 apu_db_lib=$bdb_libname
27506 header="`echo $found | sed -e 's/:.*$//'`"
27507 lib="`echo $found | sed -e 's/^.*://'`"
27510 if test "x$APRUTIL_INCLUDES" = "x"; then
27511 echo " setting APRUTIL_INCLUDES to \"-I$header\""
27512 APRUTIL_INCLUDES="-I$header"
27514 apr_addto_bugger="-I$header"
27515 for i in $apr_addto_bugger; do
27516 apr_addto_duplicate="0"
27517 for j in $APRUTIL_INCLUDES; do
27518 if test "x$i" = "x$j"; then
27519 apr_addto_duplicate="1"
27523 if test $apr_addto_duplicate = "0"; then
27524 echo " adding \"$i\" to APRUTIL_INCLUDES"
27525 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
27531 if test "x$APRUTIL_LDFLAGS" = "x"; then
27532 echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
27533 APRUTIL_LDFLAGS="-L$lib"
27535 apr_addto_bugger="-L$lib"
27536 for i in $apr_addto_bugger; do
27537 apr_addto_duplicate="0"
27538 for j in $APRUTIL_LDFLAGS; do
27539 if test "x$i" = "x$j"; then
27540 apr_addto_duplicate="1"
27544 if test $apr_addto_duplicate = "0"; then
27545 echo " adding \"$i\" to APRUTIL_LDFLAGS"
27546 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
27551 apu_db_header=$bdb_header
27552 apu_db_lib=$bdb_libname
27557 if test "x$APRUTIL_INCLUDES" = "x"; then
27558 echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
27559 APRUTIL_INCLUDES="-I$found/include"
27561 apr_addto_bugger="-I$found/include"
27562 for i in $apr_addto_bugger; do
27563 apr_addto_duplicate="0"
27564 for j in $APRUTIL_INCLUDES; do
27565 if test "x$i" = "x$j"; then
27566 apr_addto_duplicate="1"
27570 if test $apr_addto_duplicate = "0"; then
27571 echo " adding \"$i\" to APRUTIL_INCLUDES"
27572 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
27578 if test "x$APRUTIL_LDFLAGS" = "x"; then
27579 echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
27580 APRUTIL_LDFLAGS="-L$found/lib"
27582 apr_addto_bugger="-L$found/lib"
27583 for i in $apr_addto_bugger; do
27584 apr_addto_duplicate="0"
27585 for j in $APRUTIL_LDFLAGS; do
27586 if test "x$i" = "x$j"; then
27587 apr_addto_duplicate="1"
27591 if test $apr_addto_duplicate = "0"; then
27592 echo " adding \"$i\" to APRUTIL_LDFLAGS"
27593 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
27598 apu_db_header=$bdb_header
27599 apu_db_lib=$bdb_libname
27604 if test "$apu_have_db" = "1"; then
27608 if test "$apu_db_version" != "4"; then
27610 places="$all_places"
27611 if test -z "$places"; then
27612 places="std /usr/local/BerkeleyDB.4.5 /boot/home/config"
27616 if test ""5"" != "-1"; then
27617 bdb_version="$bdb_version."5""
27618 if test ""-1"" != "-1"; then
27619 bdb_version="$bdb_version."-1""
27622 bdb_places="$places"
27623 bdb_default_search_headers="db45/db.h db4/db.h db.h"
27624 bdb_default_search_lib_names="db-4.5 db4-4.5 db45 db4 db"
27629 # Save the original values of the flags we tweak.
27630 apu_check_lib_save_libs="$LIBS"
27631 apu_check_lib_save_ldflags="$LDFLAGS"
27632 apu_check_lib_save_cppflags="$CPPFLAGS"
27634 # The variable `found' is the prefix under which we've found
27635 # Berkeley DB, or `not' if we haven't found it anywhere yet.
27637 for bdb_place in $bdb_places; do
27639 LDFLAGS="$apu_check_lib_save_ldflags"
27640 CPPFLAGS="$apu_check_lib_save_cppflags"
27641 case "$bdb_place" in
27643 description="the standard places"
27646 header="`echo $bdb_place | sed -e 's/:.*$//'`"
27647 lib="`echo $bdb_place | sed -e 's/^.*://'`"
27648 CPPFLAGS="$CPPFLAGS -I$header"
27649 LDFLAGS="$LDFLAGS -L$lib"
27650 description="$header and $lib"
27653 if test -d $bdb_place; then
27654 LDFLAGS="$LDFLAGS -L$bdb_place/lib"
27655 CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
27657 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
27658 $as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; }
27659 { $as_echo "$as_me:$LINENO: result: directory not found" >&5
27660 $as_echo "directory not found" >&6; }
27663 description="$bdb_place"
27667 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
27668 # trick to display a message instead.
27669 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
27670 $as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; }
27671 { $as_echo "$as_me:$LINENO: result: " >&5
27674 for bdb_libname in $bdb_default_search_lib_names; do
27675 for bdb_header in $bdb_default_search_headers; do
27676 # Clear the header cache variable for each location
27678 cache_id="`echo ac_cv_header_${bdb_header} \
27679 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
27682 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh`
27683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27684 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
27685 $as_echo_n "checking for $bdb_header... " >&6; }
27686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27687 $as_echo_n "(cached) " >&6
27689 ac_res=`eval 'as_val=${'$as_ac_Header'}
27690 $as_echo "$as_val"'`
27691 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27692 $as_echo "$ac_res" >&6; }
27694 # Is the header compilable?
27695 { $as_echo "$as_me:$LINENO: checking $bdb_header usability" >&5
27696 $as_echo_n "checking $bdb_header usability... " >&6; }
27697 cat >conftest.$ac_ext <<_ACEOF
27700 cat confdefs.h >>conftest.$ac_ext
27701 cat >>conftest.$ac_ext <<_ACEOF
27702 /* end confdefs.h. */
27703 $ac_includes_default
27704 #include <$bdb_header>
27706 rm -f conftest.$ac_objext
27707 if { (ac_try="$ac_compile"
27708 case "(($ac_try" in
27709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27710 *) ac_try_echo=$ac_try;;
27712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27713 $as_echo "$ac_try_echo") >&5
27714 (eval "$ac_compile") 2>conftest.er1
27716 grep -v '^ *+' conftest.er1 >conftest.err
27718 cat conftest.err >&5
27719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27720 (exit $ac_status); } && {
27721 test -z "$ac_c_werror_flag" ||
27722 test ! -s conftest.err
27723 } && test -s conftest.$ac_objext; then
27724 ac_header_compiler=yes
27726 $as_echo "$as_me: failed program was:" >&5
27727 sed 's/^/| /' conftest.$ac_ext >&5
27729 ac_header_compiler=no
27732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27733 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27734 $as_echo "$ac_header_compiler" >&6; }
27736 # Is the header present?
27737 { $as_echo "$as_me:$LINENO: checking $bdb_header presence" >&5
27738 $as_echo_n "checking $bdb_header presence... " >&6; }
27739 cat >conftest.$ac_ext <<_ACEOF
27742 cat confdefs.h >>conftest.$ac_ext
27743 cat >>conftest.$ac_ext <<_ACEOF
27744 /* end confdefs.h. */
27745 #include <$bdb_header>
27747 if { (ac_try="$ac_cpp conftest.$ac_ext"
27748 case "(($ac_try" in
27749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27750 *) ac_try_echo=$ac_try;;
27752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27753 $as_echo "$ac_try_echo") >&5
27754 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27756 grep -v '^ *+' conftest.er1 >conftest.err
27758 cat conftest.err >&5
27759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27760 (exit $ac_status); } >/dev/null && {
27761 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27762 test ! -s conftest.err
27764 ac_header_preproc=yes
27766 $as_echo "$as_me: failed program was:" >&5
27767 sed 's/^/| /' conftest.$ac_ext >&5
27769 ac_header_preproc=no
27772 rm -f conftest.err conftest.$ac_ext
27773 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27774 $as_echo "$ac_header_preproc" >&6; }
27776 # So? What about this header?
27777 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27779 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
27780 $as_echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27781 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
27782 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
27783 ac_header_preproc=yes
27786 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
27787 $as_echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
27788 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
27789 $as_echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
27790 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
27791 $as_echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
27792 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
27793 $as_echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
27794 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
27795 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
27796 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
27797 $as_echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
27801 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
27802 $as_echo_n "checking for $bdb_header... " >&6; }
27803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27804 $as_echo_n "(cached) " >&6
27806 eval "$as_ac_Header=\$ac_header_preproc"
27808 ac_res=`eval 'as_val=${'$as_ac_Header'}
27809 $as_echo "$as_val"'`
27810 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27811 $as_echo "$ac_res" >&6; }
27814 as_val=`eval 'as_val=${'$as_ac_Header'}
27815 $as_echo "$as_val"'`
27816 if test "x$as_val" = x""yes; then
27818 if test ""4"" = "3" -o ""4"" = "4"; then
27819 # We generate a separate cache variable for each prefix and libname
27820 # we search under. That way, we avoid caching information that
27821 # changes if the user runs `configure' with a different set of
27824 cache_id="`echo apu_cv_check_berkeley_db_"4"_"5"_"-1"_${bdb_header}_${bdb_libname}_in_${bdb_place} \
27825 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
27828 { $as_echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
27829 $as_echo_n "checking for -l$bdb_libname... " >&6; }
27830 if { as_var=$cache_id; eval "test \"\${$as_var+set}\" = set"; }; then
27831 $as_echo_n "(cached) " >&6
27835 apu_try_berkeley_db_save_libs="$LIBS"
27837 apu_check_berkeley_db_major="4"
27838 apu_check_berkeley_db_minor="5"
27839 apu_check_berkeley_db_patch="-1"
27840 apu_try_berkeley_db_header=$bdb_header
27841 apu_try_berkeley_db_libname=$bdb_libname
27843 LIBS="$LIBS -l$apu_try_berkeley_db_libname"
27844 if test "$cross_compiling" = yes; then
27845 apu_try_berkeley_db=yes
27848 cat >conftest.$ac_ext <<_ACEOF
27851 cat confdefs.h >>conftest.$ac_ext
27852 cat >>conftest.$ac_ext <<_ACEOF
27853 /* end confdefs.h. */
27855 #include <stdlib.h>
27857 #include <$apu_try_berkeley_db_header>
27860 int major, minor, patch;
27862 db_version(&major, &minor, &patch);
27864 /* Sanity check: ensure that db.h constants actually match the db library */
27865 if (major != DB_VERSION_MAJOR
27866 || minor != DB_VERSION_MINOR
27867 || patch != DB_VERSION_PATCH)
27870 /* Run-time check: ensure the library claims to be the correct version. */
27872 if ($apu_check_berkeley_db_major != -1) {
27873 if (major < $apu_check_berkeley_db_major)
27875 if (major > $apu_check_berkeley_db_major)
27879 if ($apu_check_berkeley_db_minor != -1) {
27880 if (minor < $apu_check_berkeley_db_minor)
27882 if (minor > $apu_check_berkeley_db_minor)
27886 if ($apu_check_berkeley_db_patch == -1
27887 || patch >= $apu_check_berkeley_db_patch)
27894 rm -f conftest$ac_exeext
27895 if { (ac_try="$ac_link"
27896 case "(($ac_try" in
27897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27898 *) ac_try_echo=$ac_try;;
27900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27901 $as_echo "$ac_try_echo") >&5
27902 (eval "$ac_link") 2>&5
27904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27905 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27906 { (case "(($ac_try" in
27907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27908 *) ac_try_echo=$ac_try;;
27910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27911 $as_echo "$ac_try_echo") >&5
27912 (eval "$ac_try") 2>&5
27914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27915 (exit $ac_status); }; }; then
27916 apu_try_berkeley_db=yes
27918 $as_echo "$as_me: program exited with status $ac_status" >&5
27919 $as_echo "$as_me: failed program was:" >&5
27920 sed 's/^/| /' conftest.$ac_ext >&5
27922 ( exit $ac_status )
27923 apu_try_berkeley_db=no
27925 rm -rf conftest.dSYM
27926 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27931 LIBS="$apu_try_berkeley_db_save_libs"
27934 eval "$cache_id=$apu_try_berkeley_db"
27938 result="`eval echo '$'$cache_id`"
27939 { $as_echo "$as_me:$LINENO: result: $result" >&5
27940 $as_echo "$result" >&6; }
27941 elif test ""4"" = "1"; then
27942 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
27943 { $as_echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
27944 $as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; }
27945 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
27946 $as_echo_n "(cached) " >&6
27948 ac_check_lib_save_LIBS=$LIBS
27949 LIBS="-l$bdb_libname $LIBS"
27950 cat >conftest.$ac_ext <<_ACEOF
27953 cat confdefs.h >>conftest.$ac_ext
27954 cat >>conftest.$ac_ext <<_ACEOF
27955 /* end confdefs.h. */
27957 /* Override any GCC internal prototype to avoid an error.
27958 Use char because int might match the return type of a GCC
27959 builtin and then its argument prototype would still apply. */
27972 rm -f conftest.$ac_objext conftest$ac_exeext
27973 if { (ac_try="$ac_link"
27974 case "(($ac_try" in
27975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27976 *) ac_try_echo=$ac_try;;
27978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27979 $as_echo "$ac_try_echo") >&5
27980 (eval "$ac_link") 2>conftest.er1
27982 grep -v '^ *+' conftest.er1 >conftest.err
27984 cat conftest.err >&5
27985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27986 (exit $ac_status); } && {
27987 test -z "$ac_c_werror_flag" ||
27988 test ! -s conftest.err
27989 } && test -s conftest$ac_exeext && {
27990 test "$cross_compiling" = yes ||
27991 $as_test_x conftest$ac_exeext
27993 eval "$as_ac_Lib=yes"
27995 $as_echo "$as_me: failed program was:" >&5
27996 sed 's/^/| /' conftest.$ac_ext >&5
27998 eval "$as_ac_Lib=no"
28001 rm -rf conftest.dSYM
28002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28003 conftest$ac_exeext conftest.$ac_ext
28004 LIBS=$ac_check_lib_save_LIBS
28006 ac_res=`eval 'as_val=${'$as_ac_Lib'}
28007 $as_echo "$as_val"'`
28008 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28009 $as_echo "$ac_res" >&6; }
28010 as_val=`eval 'as_val=${'$as_ac_Lib'}
28011 $as_echo "$as_val"'`
28012 if test "x$as_val" = x""yes; then
28019 elif test ""4"" = "2"; then
28020 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
28021 { $as_echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
28022 $as_echo_n "checking for db_open in -l$bdb_libname... " >&6; }
28023 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
28024 $as_echo_n "(cached) " >&6
28026 ac_check_lib_save_LIBS=$LIBS
28027 LIBS="-l$bdb_libname $LIBS"
28028 cat >conftest.$ac_ext <<_ACEOF
28031 cat confdefs.h >>conftest.$ac_ext
28032 cat >>conftest.$ac_ext <<_ACEOF
28033 /* end confdefs.h. */
28035 /* Override any GCC internal prototype to avoid an error.
28036 Use char because int might match the return type of a GCC
28037 builtin and then its argument prototype would still apply. */
28050 rm -f conftest.$ac_objext conftest$ac_exeext
28051 if { (ac_try="$ac_link"
28052 case "(($ac_try" in
28053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28054 *) ac_try_echo=$ac_try;;
28056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28057 $as_echo "$ac_try_echo") >&5
28058 (eval "$ac_link") 2>conftest.er1
28060 grep -v '^ *+' conftest.er1 >conftest.err
28062 cat conftest.err >&5
28063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28064 (exit $ac_status); } && {
28065 test -z "$ac_c_werror_flag" ||
28066 test ! -s conftest.err
28067 } && test -s conftest$ac_exeext && {
28068 test "$cross_compiling" = yes ||
28069 $as_test_x conftest$ac_exeext
28071 eval "$as_ac_Lib=yes"
28073 $as_echo "$as_me: failed program was:" >&5
28074 sed 's/^/| /' conftest.$ac_ext >&5
28076 eval "$as_ac_Lib=no"
28079 rm -rf conftest.dSYM
28080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28081 conftest$ac_exeext conftest.$ac_ext
28082 LIBS=$ac_check_lib_save_LIBS
28084 ac_res=`eval 'as_val=${'$as_ac_Lib'}
28085 $as_echo "$as_val"'`
28086 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28087 $as_echo "$ac_res" >&6; }
28088 as_val=`eval 'as_val=${'$as_ac_Lib'}
28089 $as_echo "$as_val"'`
28090 if test "x$as_val" = x""yes; then
28105 # If we found it, no need to search any more.
28106 if test "$result" = "yes"; then
28111 test "$found" != "not" && break
28113 test "$found" != "not" && break
28116 # Restore the original values of the flags we tweak.
28117 LDFLAGS="$apu_check_lib_save_ldflags"
28118 CPPFLAGS="$apu_check_lib_save_cppflags"
28125 apu_db_header=$bdb_header
28126 apu_db_lib=$bdb_libname
28130 header="`echo $found | sed -e 's/:.*$//'`"
28131 lib="`echo $found | sed -e 's/^.*://'`"
28134 if test "x$APRUTIL_INCLUDES" = "x"; then
28135 echo " setting APRUTIL_INCLUDES to \"-I$header\""
28136 APRUTIL_INCLUDES="-I$header"
28138 apr_addto_bugger="-I$header"
28139 for i in $apr_addto_bugger; do
28140 apr_addto_duplicate="0"
28141 for j in $APRUTIL_INCLUDES; do
28142 if test "x$i" = "x$j"; then
28143 apr_addto_duplicate="1"
28147 if test $apr_addto_duplicate = "0"; then
28148 echo " adding \"$i\" to APRUTIL_INCLUDES"
28149 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
28155 if test "x$APRUTIL_LDFLAGS" = "x"; then
28156 echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
28157 APRUTIL_LDFLAGS="-L$lib"
28159 apr_addto_bugger="-L$lib"
28160 for i in $apr_addto_bugger; do
28161 apr_addto_duplicate="0"
28162 for j in $APRUTIL_LDFLAGS; do
28163 if test "x$i" = "x$j"; then
28164 apr_addto_duplicate="1"
28168 if test $apr_addto_duplicate = "0"; then
28169 echo " adding \"$i\" to APRUTIL_LDFLAGS"
28170 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
28175 apu_db_header=$bdb_header
28176 apu_db_lib=$bdb_libname
28181 if test "x$APRUTIL_INCLUDES" = "x"; then
28182 echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
28183 APRUTIL_INCLUDES="-I$found/include"
28185 apr_addto_bugger="-I$found/include"
28186 for i in $apr_addto_bugger; do
28187 apr_addto_duplicate="0"
28188 for j in $APRUTIL_INCLUDES; do
28189 if test "x$i" = "x$j"; then
28190 apr_addto_duplicate="1"
28194 if test $apr_addto_duplicate = "0"; then
28195 echo " adding \"$i\" to APRUTIL_INCLUDES"
28196 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
28202 if test "x$APRUTIL_LDFLAGS" = "x"; then
28203 echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
28204 APRUTIL_LDFLAGS="-L$found/lib"
28206 apr_addto_bugger="-L$found/lib"
28207 for i in $apr_addto_bugger; do
28208 apr_addto_duplicate="0"
28209 for j in $APRUTIL_LDFLAGS; do
28210 if test "x$i" = "x$j"; then
28211 apr_addto_duplicate="1"
28215 if test $apr_addto_duplicate = "0"; then
28216 echo " adding \"$i\" to APRUTIL_LDFLAGS"
28217 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
28222 apu_db_header=$bdb_header
28223 apu_db_lib=$bdb_libname
28228 if test "$apu_have_db" = "1"; then
28232 if test "$apu_db_version" != "4"; then
28234 places="$all_places"
28235 if test -z "$places"; then
28236 places="std /usr/local/BerkeleyDB.4.4 /boot/home/config"
28240 if test ""4"" != "-1"; then
28241 bdb_version="$bdb_version."4""
28242 if test ""-1"" != "-1"; then
28243 bdb_version="$bdb_version."-1""
28246 bdb_places="$places"
28247 bdb_default_search_headers="db44/db.h db4/db.h db.h"
28248 bdb_default_search_lib_names="db-4.4 db4-4.4 db44 db4 db"
28253 # Save the original values of the flags we tweak.
28254 apu_check_lib_save_libs="$LIBS"
28255 apu_check_lib_save_ldflags="$LDFLAGS"
28256 apu_check_lib_save_cppflags="$CPPFLAGS"
28258 # The variable `found' is the prefix under which we've found
28259 # Berkeley DB, or `not' if we haven't found it anywhere yet.
28261 for bdb_place in $bdb_places; do
28263 LDFLAGS="$apu_check_lib_save_ldflags"
28264 CPPFLAGS="$apu_check_lib_save_cppflags"
28265 case "$bdb_place" in
28267 description="the standard places"
28270 header="`echo $bdb_place | sed -e 's/:.*$//'`"
28271 lib="`echo $bdb_place | sed -e 's/^.*://'`"
28272 CPPFLAGS="$CPPFLAGS -I$header"
28273 LDFLAGS="$LDFLAGS -L$lib"
28274 description="$header and $lib"
28277 if test -d $bdb_place; then
28278 LDFLAGS="$LDFLAGS -L$bdb_place/lib"
28279 CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
28281 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
28282 $as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; }
28283 { $as_echo "$as_me:$LINENO: result: directory not found" >&5
28284 $as_echo "directory not found" >&6; }
28287 description="$bdb_place"
28291 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
28292 # trick to display a message instead.
28293 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
28294 $as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; }
28295 { $as_echo "$as_me:$LINENO: result: " >&5
28298 for bdb_libname in $bdb_default_search_lib_names; do
28299 for bdb_header in $bdb_default_search_headers; do
28300 # Clear the header cache variable for each location
28302 cache_id="`echo ac_cv_header_${bdb_header} \
28303 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
28306 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh`
28307 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28308 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
28309 $as_echo_n "checking for $bdb_header... " >&6; }
28310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28311 $as_echo_n "(cached) " >&6
28313 ac_res=`eval 'as_val=${'$as_ac_Header'}
28314 $as_echo "$as_val"'`
28315 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28316 $as_echo "$ac_res" >&6; }
28318 # Is the header compilable?
28319 { $as_echo "$as_me:$LINENO: checking $bdb_header usability" >&5
28320 $as_echo_n "checking $bdb_header usability... " >&6; }
28321 cat >conftest.$ac_ext <<_ACEOF
28324 cat confdefs.h >>conftest.$ac_ext
28325 cat >>conftest.$ac_ext <<_ACEOF
28326 /* end confdefs.h. */
28327 $ac_includes_default
28328 #include <$bdb_header>
28330 rm -f conftest.$ac_objext
28331 if { (ac_try="$ac_compile"
28332 case "(($ac_try" in
28333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28334 *) ac_try_echo=$ac_try;;
28336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28337 $as_echo "$ac_try_echo") >&5
28338 (eval "$ac_compile") 2>conftest.er1
28340 grep -v '^ *+' conftest.er1 >conftest.err
28342 cat conftest.err >&5
28343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28344 (exit $ac_status); } && {
28345 test -z "$ac_c_werror_flag" ||
28346 test ! -s conftest.err
28347 } && test -s conftest.$ac_objext; then
28348 ac_header_compiler=yes
28350 $as_echo "$as_me: failed program was:" >&5
28351 sed 's/^/| /' conftest.$ac_ext >&5
28353 ac_header_compiler=no
28356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28357 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28358 $as_echo "$ac_header_compiler" >&6; }
28360 # Is the header present?
28361 { $as_echo "$as_me:$LINENO: checking $bdb_header presence" >&5
28362 $as_echo_n "checking $bdb_header presence... " >&6; }
28363 cat >conftest.$ac_ext <<_ACEOF
28366 cat confdefs.h >>conftest.$ac_ext
28367 cat >>conftest.$ac_ext <<_ACEOF
28368 /* end confdefs.h. */
28369 #include <$bdb_header>
28371 if { (ac_try="$ac_cpp conftest.$ac_ext"
28372 case "(($ac_try" in
28373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28374 *) ac_try_echo=$ac_try;;
28376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28377 $as_echo "$ac_try_echo") >&5
28378 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28380 grep -v '^ *+' conftest.er1 >conftest.err
28382 cat conftest.err >&5
28383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28384 (exit $ac_status); } >/dev/null && {
28385 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28386 test ! -s conftest.err
28388 ac_header_preproc=yes
28390 $as_echo "$as_me: failed program was:" >&5
28391 sed 's/^/| /' conftest.$ac_ext >&5
28393 ac_header_preproc=no
28396 rm -f conftest.err conftest.$ac_ext
28397 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28398 $as_echo "$ac_header_preproc" >&6; }
28400 # So? What about this header?
28401 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28403 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
28404 $as_echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28405 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
28406 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
28407 ac_header_preproc=yes
28410 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
28411 $as_echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
28412 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
28413 $as_echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
28414 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
28415 $as_echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
28416 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
28417 $as_echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
28418 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
28419 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
28420 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
28421 $as_echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
28425 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
28426 $as_echo_n "checking for $bdb_header... " >&6; }
28427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28428 $as_echo_n "(cached) " >&6
28430 eval "$as_ac_Header=\$ac_header_preproc"
28432 ac_res=`eval 'as_val=${'$as_ac_Header'}
28433 $as_echo "$as_val"'`
28434 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28435 $as_echo "$ac_res" >&6; }
28438 as_val=`eval 'as_val=${'$as_ac_Header'}
28439 $as_echo "$as_val"'`
28440 if test "x$as_val" = x""yes; then
28442 if test ""4"" = "3" -o ""4"" = "4"; then
28443 # We generate a separate cache variable for each prefix and libname
28444 # we search under. That way, we avoid caching information that
28445 # changes if the user runs `configure' with a different set of
28448 cache_id="`echo apu_cv_check_berkeley_db_"4"_"4"_"-1"_${bdb_header}_${bdb_libname}_in_${bdb_place} \
28449 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
28452 { $as_echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
28453 $as_echo_n "checking for -l$bdb_libname... " >&6; }
28454 if { as_var=$cache_id; eval "test \"\${$as_var+set}\" = set"; }; then
28455 $as_echo_n "(cached) " >&6
28459 apu_try_berkeley_db_save_libs="$LIBS"
28461 apu_check_berkeley_db_major="4"
28462 apu_check_berkeley_db_minor="4"
28463 apu_check_berkeley_db_patch="-1"
28464 apu_try_berkeley_db_header=$bdb_header
28465 apu_try_berkeley_db_libname=$bdb_libname
28467 LIBS="$LIBS -l$apu_try_berkeley_db_libname"
28468 if test "$cross_compiling" = yes; then
28469 apu_try_berkeley_db=yes
28472 cat >conftest.$ac_ext <<_ACEOF
28475 cat confdefs.h >>conftest.$ac_ext
28476 cat >>conftest.$ac_ext <<_ACEOF
28477 /* end confdefs.h. */
28479 #include <stdlib.h>
28481 #include <$apu_try_berkeley_db_header>
28484 int major, minor, patch;
28486 db_version(&major, &minor, &patch);
28488 /* Sanity check: ensure that db.h constants actually match the db library */
28489 if (major != DB_VERSION_MAJOR
28490 || minor != DB_VERSION_MINOR
28491 || patch != DB_VERSION_PATCH)
28494 /* Run-time check: ensure the library claims to be the correct version. */
28496 if ($apu_check_berkeley_db_major != -1) {
28497 if (major < $apu_check_berkeley_db_major)
28499 if (major > $apu_check_berkeley_db_major)
28503 if ($apu_check_berkeley_db_minor != -1) {
28504 if (minor < $apu_check_berkeley_db_minor)
28506 if (minor > $apu_check_berkeley_db_minor)
28510 if ($apu_check_berkeley_db_patch == -1
28511 || patch >= $apu_check_berkeley_db_patch)
28518 rm -f conftest$ac_exeext
28519 if { (ac_try="$ac_link"
28520 case "(($ac_try" in
28521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28522 *) ac_try_echo=$ac_try;;
28524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28525 $as_echo "$ac_try_echo") >&5
28526 (eval "$ac_link") 2>&5
28528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28529 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28530 { (case "(($ac_try" in
28531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28532 *) ac_try_echo=$ac_try;;
28534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28535 $as_echo "$ac_try_echo") >&5
28536 (eval "$ac_try") 2>&5
28538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28539 (exit $ac_status); }; }; then
28540 apu_try_berkeley_db=yes
28542 $as_echo "$as_me: program exited with status $ac_status" >&5
28543 $as_echo "$as_me: failed program was:" >&5
28544 sed 's/^/| /' conftest.$ac_ext >&5
28546 ( exit $ac_status )
28547 apu_try_berkeley_db=no
28549 rm -rf conftest.dSYM
28550 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28555 LIBS="$apu_try_berkeley_db_save_libs"
28558 eval "$cache_id=$apu_try_berkeley_db"
28562 result="`eval echo '$'$cache_id`"
28563 { $as_echo "$as_me:$LINENO: result: $result" >&5
28564 $as_echo "$result" >&6; }
28565 elif test ""4"" = "1"; then
28566 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
28567 { $as_echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
28568 $as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; }
28569 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
28570 $as_echo_n "(cached) " >&6
28572 ac_check_lib_save_LIBS=$LIBS
28573 LIBS="-l$bdb_libname $LIBS"
28574 cat >conftest.$ac_ext <<_ACEOF
28577 cat confdefs.h >>conftest.$ac_ext
28578 cat >>conftest.$ac_ext <<_ACEOF
28579 /* end confdefs.h. */
28581 /* Override any GCC internal prototype to avoid an error.
28582 Use char because int might match the return type of a GCC
28583 builtin and then its argument prototype would still apply. */
28596 rm -f conftest.$ac_objext conftest$ac_exeext
28597 if { (ac_try="$ac_link"
28598 case "(($ac_try" in
28599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28600 *) ac_try_echo=$ac_try;;
28602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28603 $as_echo "$ac_try_echo") >&5
28604 (eval "$ac_link") 2>conftest.er1
28606 grep -v '^ *+' conftest.er1 >conftest.err
28608 cat conftest.err >&5
28609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28610 (exit $ac_status); } && {
28611 test -z "$ac_c_werror_flag" ||
28612 test ! -s conftest.err
28613 } && test -s conftest$ac_exeext && {
28614 test "$cross_compiling" = yes ||
28615 $as_test_x conftest$ac_exeext
28617 eval "$as_ac_Lib=yes"
28619 $as_echo "$as_me: failed program was:" >&5
28620 sed 's/^/| /' conftest.$ac_ext >&5
28622 eval "$as_ac_Lib=no"
28625 rm -rf conftest.dSYM
28626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28627 conftest$ac_exeext conftest.$ac_ext
28628 LIBS=$ac_check_lib_save_LIBS
28630 ac_res=`eval 'as_val=${'$as_ac_Lib'}
28631 $as_echo "$as_val"'`
28632 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28633 $as_echo "$ac_res" >&6; }
28634 as_val=`eval 'as_val=${'$as_ac_Lib'}
28635 $as_echo "$as_val"'`
28636 if test "x$as_val" = x""yes; then
28643 elif test ""4"" = "2"; then
28644 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
28645 { $as_echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
28646 $as_echo_n "checking for db_open in -l$bdb_libname... " >&6; }
28647 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
28648 $as_echo_n "(cached) " >&6
28650 ac_check_lib_save_LIBS=$LIBS
28651 LIBS="-l$bdb_libname $LIBS"
28652 cat >conftest.$ac_ext <<_ACEOF
28655 cat confdefs.h >>conftest.$ac_ext
28656 cat >>conftest.$ac_ext <<_ACEOF
28657 /* end confdefs.h. */
28659 /* Override any GCC internal prototype to avoid an error.
28660 Use char because int might match the return type of a GCC
28661 builtin and then its argument prototype would still apply. */
28674 rm -f conftest.$ac_objext conftest$ac_exeext
28675 if { (ac_try="$ac_link"
28676 case "(($ac_try" in
28677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28678 *) ac_try_echo=$ac_try;;
28680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28681 $as_echo "$ac_try_echo") >&5
28682 (eval "$ac_link") 2>conftest.er1
28684 grep -v '^ *+' conftest.er1 >conftest.err
28686 cat conftest.err >&5
28687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28688 (exit $ac_status); } && {
28689 test -z "$ac_c_werror_flag" ||
28690 test ! -s conftest.err
28691 } && test -s conftest$ac_exeext && {
28692 test "$cross_compiling" = yes ||
28693 $as_test_x conftest$ac_exeext
28695 eval "$as_ac_Lib=yes"
28697 $as_echo "$as_me: failed program was:" >&5
28698 sed 's/^/| /' conftest.$ac_ext >&5
28700 eval "$as_ac_Lib=no"
28703 rm -rf conftest.dSYM
28704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28705 conftest$ac_exeext conftest.$ac_ext
28706 LIBS=$ac_check_lib_save_LIBS
28708 ac_res=`eval 'as_val=${'$as_ac_Lib'}
28709 $as_echo "$as_val"'`
28710 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28711 $as_echo "$ac_res" >&6; }
28712 as_val=`eval 'as_val=${'$as_ac_Lib'}
28713 $as_echo "$as_val"'`
28714 if test "x$as_val" = x""yes; then
28729 # If we found it, no need to search any more.
28730 if test "$result" = "yes"; then
28735 test "$found" != "not" && break
28737 test "$found" != "not" && break
28740 # Restore the original values of the flags we tweak.
28741 LDFLAGS="$apu_check_lib_save_ldflags"
28742 CPPFLAGS="$apu_check_lib_save_cppflags"
28749 apu_db_header=$bdb_header
28750 apu_db_lib=$bdb_libname
28754 header="`echo $found | sed -e 's/:.*$//'`"
28755 lib="`echo $found | sed -e 's/^.*://'`"
28758 if test "x$APRUTIL_INCLUDES" = "x"; then
28759 echo " setting APRUTIL_INCLUDES to \"-I$header\""
28760 APRUTIL_INCLUDES="-I$header"
28762 apr_addto_bugger="-I$header"
28763 for i in $apr_addto_bugger; do
28764 apr_addto_duplicate="0"
28765 for j in $APRUTIL_INCLUDES; do
28766 if test "x$i" = "x$j"; then
28767 apr_addto_duplicate="1"
28771 if test $apr_addto_duplicate = "0"; then
28772 echo " adding \"$i\" to APRUTIL_INCLUDES"
28773 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
28779 if test "x$APRUTIL_LDFLAGS" = "x"; then
28780 echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
28781 APRUTIL_LDFLAGS="-L$lib"
28783 apr_addto_bugger="-L$lib"
28784 for i in $apr_addto_bugger; do
28785 apr_addto_duplicate="0"
28786 for j in $APRUTIL_LDFLAGS; do
28787 if test "x$i" = "x$j"; then
28788 apr_addto_duplicate="1"
28792 if test $apr_addto_duplicate = "0"; then
28793 echo " adding \"$i\" to APRUTIL_LDFLAGS"
28794 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
28799 apu_db_header=$bdb_header
28800 apu_db_lib=$bdb_libname
28805 if test "x$APRUTIL_INCLUDES" = "x"; then
28806 echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
28807 APRUTIL_INCLUDES="-I$found/include"
28809 apr_addto_bugger="-I$found/include"
28810 for i in $apr_addto_bugger; do
28811 apr_addto_duplicate="0"
28812 for j in $APRUTIL_INCLUDES; do
28813 if test "x$i" = "x$j"; then
28814 apr_addto_duplicate="1"
28818 if test $apr_addto_duplicate = "0"; then
28819 echo " adding \"$i\" to APRUTIL_INCLUDES"
28820 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
28826 if test "x$APRUTIL_LDFLAGS" = "x"; then
28827 echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
28828 APRUTIL_LDFLAGS="-L$found/lib"
28830 apr_addto_bugger="-L$found/lib"
28831 for i in $apr_addto_bugger; do
28832 apr_addto_duplicate="0"
28833 for j in $APRUTIL_LDFLAGS; do
28834 if test "x$i" = "x$j"; then
28835 apr_addto_duplicate="1"
28839 if test $apr_addto_duplicate = "0"; then
28840 echo " adding \"$i\" to APRUTIL_LDFLAGS"
28841 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
28846 apu_db_header=$bdb_header
28847 apu_db_lib=$bdb_libname
28852 if test "$apu_have_db" = "1"; then
28856 if test "$apu_db_version" != "4"; then
28858 places="$all_places"
28859 if test -z "$places"; then
28860 places="std /usr/local/BerkeleyDB.4.3 /boot/home/config"
28864 if test ""3"" != "-1"; then
28865 bdb_version="$bdb_version."3""
28866 if test ""-1"" != "-1"; then
28867 bdb_version="$bdb_version."-1""
28870 bdb_places="$places"
28871 bdb_default_search_headers="db43/db.h db4/db.h db.h"
28872 bdb_default_search_lib_names="db-4.3 db4-4.3 db43 db4 db"
28877 # Save the original values of the flags we tweak.
28878 apu_check_lib_save_libs="$LIBS"
28879 apu_check_lib_save_ldflags="$LDFLAGS"
28880 apu_check_lib_save_cppflags="$CPPFLAGS"
28882 # The variable `found' is the prefix under which we've found
28883 # Berkeley DB, or `not' if we haven't found it anywhere yet.
28885 for bdb_place in $bdb_places; do
28887 LDFLAGS="$apu_check_lib_save_ldflags"
28888 CPPFLAGS="$apu_check_lib_save_cppflags"
28889 case "$bdb_place" in
28891 description="the standard places"
28894 header="`echo $bdb_place | sed -e 's/:.*$//'`"
28895 lib="`echo $bdb_place | sed -e 's/^.*://'`"
28896 CPPFLAGS="$CPPFLAGS -I$header"
28897 LDFLAGS="$LDFLAGS -L$lib"
28898 description="$header and $lib"
28901 if test -d $bdb_place; then
28902 LDFLAGS="$LDFLAGS -L$bdb_place/lib"
28903 CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
28905 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
28906 $as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; }
28907 { $as_echo "$as_me:$LINENO: result: directory not found" >&5
28908 $as_echo "directory not found" >&6; }
28911 description="$bdb_place"
28915 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
28916 # trick to display a message instead.
28917 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
28918 $as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; }
28919 { $as_echo "$as_me:$LINENO: result: " >&5
28922 for bdb_libname in $bdb_default_search_lib_names; do
28923 for bdb_header in $bdb_default_search_headers; do
28924 # Clear the header cache variable for each location
28926 cache_id="`echo ac_cv_header_${bdb_header} \
28927 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
28930 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh`
28931 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28932 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
28933 $as_echo_n "checking for $bdb_header... " >&6; }
28934 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28935 $as_echo_n "(cached) " >&6
28937 ac_res=`eval 'as_val=${'$as_ac_Header'}
28938 $as_echo "$as_val"'`
28939 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28940 $as_echo "$ac_res" >&6; }
28942 # Is the header compilable?
28943 { $as_echo "$as_me:$LINENO: checking $bdb_header usability" >&5
28944 $as_echo_n "checking $bdb_header usability... " >&6; }
28945 cat >conftest.$ac_ext <<_ACEOF
28948 cat confdefs.h >>conftest.$ac_ext
28949 cat >>conftest.$ac_ext <<_ACEOF
28950 /* end confdefs.h. */
28951 $ac_includes_default
28952 #include <$bdb_header>
28954 rm -f conftest.$ac_objext
28955 if { (ac_try="$ac_compile"
28956 case "(($ac_try" in
28957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28958 *) ac_try_echo=$ac_try;;
28960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28961 $as_echo "$ac_try_echo") >&5
28962 (eval "$ac_compile") 2>conftest.er1
28964 grep -v '^ *+' conftest.er1 >conftest.err
28966 cat conftest.err >&5
28967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28968 (exit $ac_status); } && {
28969 test -z "$ac_c_werror_flag" ||
28970 test ! -s conftest.err
28971 } && test -s conftest.$ac_objext; then
28972 ac_header_compiler=yes
28974 $as_echo "$as_me: failed program was:" >&5
28975 sed 's/^/| /' conftest.$ac_ext >&5
28977 ac_header_compiler=no
28980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28981 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28982 $as_echo "$ac_header_compiler" >&6; }
28984 # Is the header present?
28985 { $as_echo "$as_me:$LINENO: checking $bdb_header presence" >&5
28986 $as_echo_n "checking $bdb_header presence... " >&6; }
28987 cat >conftest.$ac_ext <<_ACEOF
28990 cat confdefs.h >>conftest.$ac_ext
28991 cat >>conftest.$ac_ext <<_ACEOF
28992 /* end confdefs.h. */
28993 #include <$bdb_header>
28995 if { (ac_try="$ac_cpp conftest.$ac_ext"
28996 case "(($ac_try" in
28997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28998 *) ac_try_echo=$ac_try;;
29000 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29001 $as_echo "$ac_try_echo") >&5
29002 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29004 grep -v '^ *+' conftest.er1 >conftest.err
29006 cat conftest.err >&5
29007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29008 (exit $ac_status); } >/dev/null && {
29009 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29010 test ! -s conftest.err
29012 ac_header_preproc=yes
29014 $as_echo "$as_me: failed program was:" >&5
29015 sed 's/^/| /' conftest.$ac_ext >&5
29017 ac_header_preproc=no
29020 rm -f conftest.err conftest.$ac_ext
29021 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29022 $as_echo "$ac_header_preproc" >&6; }
29024 # So? What about this header?
29025 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29027 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
29028 $as_echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29029 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
29030 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
29031 ac_header_preproc=yes
29034 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
29035 $as_echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
29036 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
29037 $as_echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
29038 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
29039 $as_echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
29040 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
29041 $as_echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
29042 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
29043 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
29044 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
29045 $as_echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
29049 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
29050 $as_echo_n "checking for $bdb_header... " >&6; }
29051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29052 $as_echo_n "(cached) " >&6
29054 eval "$as_ac_Header=\$ac_header_preproc"
29056 ac_res=`eval 'as_val=${'$as_ac_Header'}
29057 $as_echo "$as_val"'`
29058 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29059 $as_echo "$ac_res" >&6; }
29062 as_val=`eval 'as_val=${'$as_ac_Header'}
29063 $as_echo "$as_val"'`
29064 if test "x$as_val" = x""yes; then
29066 if test ""4"" = "3" -o ""4"" = "4"; then
29067 # We generate a separate cache variable for each prefix and libname
29068 # we search under. That way, we avoid caching information that
29069 # changes if the user runs `configure' with a different set of
29072 cache_id="`echo apu_cv_check_berkeley_db_"4"_"3"_"-1"_${bdb_header}_${bdb_libname}_in_${bdb_place} \
29073 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
29076 { $as_echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
29077 $as_echo_n "checking for -l$bdb_libname... " >&6; }
29078 if { as_var=$cache_id; eval "test \"\${$as_var+set}\" = set"; }; then
29079 $as_echo_n "(cached) " >&6
29083 apu_try_berkeley_db_save_libs="$LIBS"
29085 apu_check_berkeley_db_major="4"
29086 apu_check_berkeley_db_minor="3"
29087 apu_check_berkeley_db_patch="-1"
29088 apu_try_berkeley_db_header=$bdb_header
29089 apu_try_berkeley_db_libname=$bdb_libname
29091 LIBS="$LIBS -l$apu_try_berkeley_db_libname"
29092 if test "$cross_compiling" = yes; then
29093 apu_try_berkeley_db=yes
29096 cat >conftest.$ac_ext <<_ACEOF
29099 cat confdefs.h >>conftest.$ac_ext
29100 cat >>conftest.$ac_ext <<_ACEOF
29101 /* end confdefs.h. */
29103 #include <stdlib.h>
29105 #include <$apu_try_berkeley_db_header>
29108 int major, minor, patch;
29110 db_version(&major, &minor, &patch);
29112 /* Sanity check: ensure that db.h constants actually match the db library */
29113 if (major != DB_VERSION_MAJOR
29114 || minor != DB_VERSION_MINOR
29115 || patch != DB_VERSION_PATCH)
29118 /* Run-time check: ensure the library claims to be the correct version. */
29120 if ($apu_check_berkeley_db_major != -1) {
29121 if (major < $apu_check_berkeley_db_major)
29123 if (major > $apu_check_berkeley_db_major)
29127 if ($apu_check_berkeley_db_minor != -1) {
29128 if (minor < $apu_check_berkeley_db_minor)
29130 if (minor > $apu_check_berkeley_db_minor)
29134 if ($apu_check_berkeley_db_patch == -1
29135 || patch >= $apu_check_berkeley_db_patch)
29142 rm -f conftest$ac_exeext
29143 if { (ac_try="$ac_link"
29144 case "(($ac_try" in
29145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29146 *) ac_try_echo=$ac_try;;
29148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29149 $as_echo "$ac_try_echo") >&5
29150 (eval "$ac_link") 2>&5
29152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29153 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29154 { (case "(($ac_try" in
29155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29156 *) ac_try_echo=$ac_try;;
29158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29159 $as_echo "$ac_try_echo") >&5
29160 (eval "$ac_try") 2>&5
29162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29163 (exit $ac_status); }; }; then
29164 apu_try_berkeley_db=yes
29166 $as_echo "$as_me: program exited with status $ac_status" >&5
29167 $as_echo "$as_me: failed program was:" >&5
29168 sed 's/^/| /' conftest.$ac_ext >&5
29170 ( exit $ac_status )
29171 apu_try_berkeley_db=no
29173 rm -rf conftest.dSYM
29174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29179 LIBS="$apu_try_berkeley_db_save_libs"
29182 eval "$cache_id=$apu_try_berkeley_db"
29186 result="`eval echo '$'$cache_id`"
29187 { $as_echo "$as_me:$LINENO: result: $result" >&5
29188 $as_echo "$result" >&6; }
29189 elif test ""4"" = "1"; then
29190 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
29191 { $as_echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
29192 $as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; }
29193 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
29194 $as_echo_n "(cached) " >&6
29196 ac_check_lib_save_LIBS=$LIBS
29197 LIBS="-l$bdb_libname $LIBS"
29198 cat >conftest.$ac_ext <<_ACEOF
29201 cat confdefs.h >>conftest.$ac_ext
29202 cat >>conftest.$ac_ext <<_ACEOF
29203 /* end confdefs.h. */
29205 /* Override any GCC internal prototype to avoid an error.
29206 Use char because int might match the return type of a GCC
29207 builtin and then its argument prototype would still apply. */
29220 rm -f conftest.$ac_objext conftest$ac_exeext
29221 if { (ac_try="$ac_link"
29222 case "(($ac_try" in
29223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29224 *) ac_try_echo=$ac_try;;
29226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29227 $as_echo "$ac_try_echo") >&5
29228 (eval "$ac_link") 2>conftest.er1
29230 grep -v '^ *+' conftest.er1 >conftest.err
29232 cat conftest.err >&5
29233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29234 (exit $ac_status); } && {
29235 test -z "$ac_c_werror_flag" ||
29236 test ! -s conftest.err
29237 } && test -s conftest$ac_exeext && {
29238 test "$cross_compiling" = yes ||
29239 $as_test_x conftest$ac_exeext
29241 eval "$as_ac_Lib=yes"
29243 $as_echo "$as_me: failed program was:" >&5
29244 sed 's/^/| /' conftest.$ac_ext >&5
29246 eval "$as_ac_Lib=no"
29249 rm -rf conftest.dSYM
29250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29251 conftest$ac_exeext conftest.$ac_ext
29252 LIBS=$ac_check_lib_save_LIBS
29254 ac_res=`eval 'as_val=${'$as_ac_Lib'}
29255 $as_echo "$as_val"'`
29256 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29257 $as_echo "$ac_res" >&6; }
29258 as_val=`eval 'as_val=${'$as_ac_Lib'}
29259 $as_echo "$as_val"'`
29260 if test "x$as_val" = x""yes; then
29267 elif test ""4"" = "2"; then
29268 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
29269 { $as_echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
29270 $as_echo_n "checking for db_open in -l$bdb_libname... " >&6; }
29271 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
29272 $as_echo_n "(cached) " >&6
29274 ac_check_lib_save_LIBS=$LIBS
29275 LIBS="-l$bdb_libname $LIBS"
29276 cat >conftest.$ac_ext <<_ACEOF
29279 cat confdefs.h >>conftest.$ac_ext
29280 cat >>conftest.$ac_ext <<_ACEOF
29281 /* end confdefs.h. */
29283 /* Override any GCC internal prototype to avoid an error.
29284 Use char because int might match the return type of a GCC
29285 builtin and then its argument prototype would still apply. */
29298 rm -f conftest.$ac_objext conftest$ac_exeext
29299 if { (ac_try="$ac_link"
29300 case "(($ac_try" in
29301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29302 *) ac_try_echo=$ac_try;;
29304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29305 $as_echo "$ac_try_echo") >&5
29306 (eval "$ac_link") 2>conftest.er1
29308 grep -v '^ *+' conftest.er1 >conftest.err
29310 cat conftest.err >&5
29311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29312 (exit $ac_status); } && {
29313 test -z "$ac_c_werror_flag" ||
29314 test ! -s conftest.err
29315 } && test -s conftest$ac_exeext && {
29316 test "$cross_compiling" = yes ||
29317 $as_test_x conftest$ac_exeext
29319 eval "$as_ac_Lib=yes"
29321 $as_echo "$as_me: failed program was:" >&5
29322 sed 's/^/| /' conftest.$ac_ext >&5
29324 eval "$as_ac_Lib=no"
29327 rm -rf conftest.dSYM
29328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29329 conftest$ac_exeext conftest.$ac_ext
29330 LIBS=$ac_check_lib_save_LIBS
29332 ac_res=`eval 'as_val=${'$as_ac_Lib'}
29333 $as_echo "$as_val"'`
29334 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29335 $as_echo "$ac_res" >&6; }
29336 as_val=`eval 'as_val=${'$as_ac_Lib'}
29337 $as_echo "$as_val"'`
29338 if test "x$as_val" = x""yes; then
29353 # If we found it, no need to search any more.
29354 if test "$result" = "yes"; then
29359 test "$found" != "not" && break
29361 test "$found" != "not" && break
29364 # Restore the original values of the flags we tweak.
29365 LDFLAGS="$apu_check_lib_save_ldflags"
29366 CPPFLAGS="$apu_check_lib_save_cppflags"
29373 apu_db_header=$bdb_header
29374 apu_db_lib=$bdb_libname
29378 header="`echo $found | sed -e 's/:.*$//'`"
29379 lib="`echo $found | sed -e 's/^.*://'`"
29382 if test "x$APRUTIL_INCLUDES" = "x"; then
29383 echo " setting APRUTIL_INCLUDES to \"-I$header\""
29384 APRUTIL_INCLUDES="-I$header"
29386 apr_addto_bugger="-I$header"
29387 for i in $apr_addto_bugger; do
29388 apr_addto_duplicate="0"
29389 for j in $APRUTIL_INCLUDES; do
29390 if test "x$i" = "x$j"; then
29391 apr_addto_duplicate="1"
29395 if test $apr_addto_duplicate = "0"; then
29396 echo " adding \"$i\" to APRUTIL_INCLUDES"
29397 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
29403 if test "x$APRUTIL_LDFLAGS" = "x"; then
29404 echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
29405 APRUTIL_LDFLAGS="-L$lib"
29407 apr_addto_bugger="-L$lib"
29408 for i in $apr_addto_bugger; do
29409 apr_addto_duplicate="0"
29410 for j in $APRUTIL_LDFLAGS; do
29411 if test "x$i" = "x$j"; then
29412 apr_addto_duplicate="1"
29416 if test $apr_addto_duplicate = "0"; then
29417 echo " adding \"$i\" to APRUTIL_LDFLAGS"
29418 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
29423 apu_db_header=$bdb_header
29424 apu_db_lib=$bdb_libname
29429 if test "x$APRUTIL_INCLUDES" = "x"; then
29430 echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
29431 APRUTIL_INCLUDES="-I$found/include"
29433 apr_addto_bugger="-I$found/include"
29434 for i in $apr_addto_bugger; do
29435 apr_addto_duplicate="0"
29436 for j in $APRUTIL_INCLUDES; do
29437 if test "x$i" = "x$j"; then
29438 apr_addto_duplicate="1"
29442 if test $apr_addto_duplicate = "0"; then
29443 echo " adding \"$i\" to APRUTIL_INCLUDES"
29444 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
29450 if test "x$APRUTIL_LDFLAGS" = "x"; then
29451 echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
29452 APRUTIL_LDFLAGS="-L$found/lib"
29454 apr_addto_bugger="-L$found/lib"
29455 for i in $apr_addto_bugger; do
29456 apr_addto_duplicate="0"
29457 for j in $APRUTIL_LDFLAGS; do
29458 if test "x$i" = "x$j"; then
29459 apr_addto_duplicate="1"
29463 if test $apr_addto_duplicate = "0"; then
29464 echo " adding \"$i\" to APRUTIL_LDFLAGS"
29465 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
29470 apu_db_header=$bdb_header
29471 apu_db_lib=$bdb_libname
29476 if test "$apu_have_db" = "1"; then
29480 if test "$apu_db_version" != "4"; then
29482 places="$all_places"
29483 if test -z "$places"; then
29484 places="std /usr/local /usr/local/BerkeleyDB.4.2 /boot/home/config"
29488 if test ""2"" != "-1"; then
29489 bdb_version="$bdb_version."2""
29490 if test ""-1"" != "-1"; then
29491 bdb_version="$bdb_version."-1""
29494 bdb_places="$places"
29495 bdb_default_search_headers="db42/db.h db4/db.h db.h"
29496 bdb_default_search_lib_names="db-4.2 db42 db4 db"
29501 # Save the original values of the flags we tweak.
29502 apu_check_lib_save_libs="$LIBS"
29503 apu_check_lib_save_ldflags="$LDFLAGS"
29504 apu_check_lib_save_cppflags="$CPPFLAGS"
29506 # The variable `found' is the prefix under which we've found
29507 # Berkeley DB, or `not' if we haven't found it anywhere yet.
29509 for bdb_place in $bdb_places; do
29511 LDFLAGS="$apu_check_lib_save_ldflags"
29512 CPPFLAGS="$apu_check_lib_save_cppflags"
29513 case "$bdb_place" in
29515 description="the standard places"
29518 header="`echo $bdb_place | sed -e 's/:.*$//'`"
29519 lib="`echo $bdb_place | sed -e 's/^.*://'`"
29520 CPPFLAGS="$CPPFLAGS -I$header"
29521 LDFLAGS="$LDFLAGS -L$lib"
29522 description="$header and $lib"
29525 if test -d $bdb_place; then
29526 LDFLAGS="$LDFLAGS -L$bdb_place/lib"
29527 CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
29529 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
29530 $as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; }
29531 { $as_echo "$as_me:$LINENO: result: directory not found" >&5
29532 $as_echo "directory not found" >&6; }
29535 description="$bdb_place"
29539 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
29540 # trick to display a message instead.
29541 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
29542 $as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; }
29543 { $as_echo "$as_me:$LINENO: result: " >&5
29546 for bdb_libname in $bdb_default_search_lib_names; do
29547 for bdb_header in $bdb_default_search_headers; do
29548 # Clear the header cache variable for each location
29550 cache_id="`echo ac_cv_header_${bdb_header} \
29551 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
29554 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh`
29555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29556 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
29557 $as_echo_n "checking for $bdb_header... " >&6; }
29558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29559 $as_echo_n "(cached) " >&6
29561 ac_res=`eval 'as_val=${'$as_ac_Header'}
29562 $as_echo "$as_val"'`
29563 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29564 $as_echo "$ac_res" >&6; }
29566 # Is the header compilable?
29567 { $as_echo "$as_me:$LINENO: checking $bdb_header usability" >&5
29568 $as_echo_n "checking $bdb_header usability... " >&6; }
29569 cat >conftest.$ac_ext <<_ACEOF
29572 cat confdefs.h >>conftest.$ac_ext
29573 cat >>conftest.$ac_ext <<_ACEOF
29574 /* end confdefs.h. */
29575 $ac_includes_default
29576 #include <$bdb_header>
29578 rm -f conftest.$ac_objext
29579 if { (ac_try="$ac_compile"
29580 case "(($ac_try" in
29581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29582 *) ac_try_echo=$ac_try;;
29584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29585 $as_echo "$ac_try_echo") >&5
29586 (eval "$ac_compile") 2>conftest.er1
29588 grep -v '^ *+' conftest.er1 >conftest.err
29590 cat conftest.err >&5
29591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29592 (exit $ac_status); } && {
29593 test -z "$ac_c_werror_flag" ||
29594 test ! -s conftest.err
29595 } && test -s conftest.$ac_objext; then
29596 ac_header_compiler=yes
29598 $as_echo "$as_me: failed program was:" >&5
29599 sed 's/^/| /' conftest.$ac_ext >&5
29601 ac_header_compiler=no
29604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29605 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29606 $as_echo "$ac_header_compiler" >&6; }
29608 # Is the header present?
29609 { $as_echo "$as_me:$LINENO: checking $bdb_header presence" >&5
29610 $as_echo_n "checking $bdb_header presence... " >&6; }
29611 cat >conftest.$ac_ext <<_ACEOF
29614 cat confdefs.h >>conftest.$ac_ext
29615 cat >>conftest.$ac_ext <<_ACEOF
29616 /* end confdefs.h. */
29617 #include <$bdb_header>
29619 if { (ac_try="$ac_cpp conftest.$ac_ext"
29620 case "(($ac_try" in
29621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29622 *) ac_try_echo=$ac_try;;
29624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29625 $as_echo "$ac_try_echo") >&5
29626 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29628 grep -v '^ *+' conftest.er1 >conftest.err
29630 cat conftest.err >&5
29631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29632 (exit $ac_status); } >/dev/null && {
29633 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29634 test ! -s conftest.err
29636 ac_header_preproc=yes
29638 $as_echo "$as_me: failed program was:" >&5
29639 sed 's/^/| /' conftest.$ac_ext >&5
29641 ac_header_preproc=no
29644 rm -f conftest.err conftest.$ac_ext
29645 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29646 $as_echo "$ac_header_preproc" >&6; }
29648 # So? What about this header?
29649 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29651 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
29652 $as_echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29653 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
29654 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
29655 ac_header_preproc=yes
29658 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
29659 $as_echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
29660 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
29661 $as_echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
29662 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
29663 $as_echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
29664 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
29665 $as_echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
29666 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
29667 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
29668 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
29669 $as_echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
29673 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
29674 $as_echo_n "checking for $bdb_header... " >&6; }
29675 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29676 $as_echo_n "(cached) " >&6
29678 eval "$as_ac_Header=\$ac_header_preproc"
29680 ac_res=`eval 'as_val=${'$as_ac_Header'}
29681 $as_echo "$as_val"'`
29682 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29683 $as_echo "$ac_res" >&6; }
29686 as_val=`eval 'as_val=${'$as_ac_Header'}
29687 $as_echo "$as_val"'`
29688 if test "x$as_val" = x""yes; then
29690 if test ""4"" = "3" -o ""4"" = "4"; then
29691 # We generate a separate cache variable for each prefix and libname
29692 # we search under. That way, we avoid caching information that
29693 # changes if the user runs `configure' with a different set of
29696 cache_id="`echo apu_cv_check_berkeley_db_"4"_"2"_"-1"_${bdb_header}_${bdb_libname}_in_${bdb_place} \
29697 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
29700 { $as_echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
29701 $as_echo_n "checking for -l$bdb_libname... " >&6; }
29702 if { as_var=$cache_id; eval "test \"\${$as_var+set}\" = set"; }; then
29703 $as_echo_n "(cached) " >&6
29707 apu_try_berkeley_db_save_libs="$LIBS"
29709 apu_check_berkeley_db_major="4"
29710 apu_check_berkeley_db_minor="2"
29711 apu_check_berkeley_db_patch="-1"
29712 apu_try_berkeley_db_header=$bdb_header
29713 apu_try_berkeley_db_libname=$bdb_libname
29715 LIBS="$LIBS -l$apu_try_berkeley_db_libname"
29716 if test "$cross_compiling" = yes; then
29717 apu_try_berkeley_db=yes
29720 cat >conftest.$ac_ext <<_ACEOF
29723 cat confdefs.h >>conftest.$ac_ext
29724 cat >>conftest.$ac_ext <<_ACEOF
29725 /* end confdefs.h. */
29727 #include <stdlib.h>
29729 #include <$apu_try_berkeley_db_header>
29732 int major, minor, patch;
29734 db_version(&major, &minor, &patch);
29736 /* Sanity check: ensure that db.h constants actually match the db library */
29737 if (major != DB_VERSION_MAJOR
29738 || minor != DB_VERSION_MINOR
29739 || patch != DB_VERSION_PATCH)
29742 /* Run-time check: ensure the library claims to be the correct version. */
29744 if ($apu_check_berkeley_db_major != -1) {
29745 if (major < $apu_check_berkeley_db_major)
29747 if (major > $apu_check_berkeley_db_major)
29751 if ($apu_check_berkeley_db_minor != -1) {
29752 if (minor < $apu_check_berkeley_db_minor)
29754 if (minor > $apu_check_berkeley_db_minor)
29758 if ($apu_check_berkeley_db_patch == -1
29759 || patch >= $apu_check_berkeley_db_patch)
29766 rm -f conftest$ac_exeext
29767 if { (ac_try="$ac_link"
29768 case "(($ac_try" in
29769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29770 *) ac_try_echo=$ac_try;;
29772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29773 $as_echo "$ac_try_echo") >&5
29774 (eval "$ac_link") 2>&5
29776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29777 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29778 { (case "(($ac_try" in
29779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29780 *) ac_try_echo=$ac_try;;
29782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29783 $as_echo "$ac_try_echo") >&5
29784 (eval "$ac_try") 2>&5
29786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29787 (exit $ac_status); }; }; then
29788 apu_try_berkeley_db=yes
29790 $as_echo "$as_me: program exited with status $ac_status" >&5
29791 $as_echo "$as_me: failed program was:" >&5
29792 sed 's/^/| /' conftest.$ac_ext >&5
29794 ( exit $ac_status )
29795 apu_try_berkeley_db=no
29797 rm -rf conftest.dSYM
29798 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29803 LIBS="$apu_try_berkeley_db_save_libs"
29806 eval "$cache_id=$apu_try_berkeley_db"
29810 result="`eval echo '$'$cache_id`"
29811 { $as_echo "$as_me:$LINENO: result: $result" >&5
29812 $as_echo "$result" >&6; }
29813 elif test ""4"" = "1"; then
29814 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
29815 { $as_echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
29816 $as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; }
29817 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
29818 $as_echo_n "(cached) " >&6
29820 ac_check_lib_save_LIBS=$LIBS
29821 LIBS="-l$bdb_libname $LIBS"
29822 cat >conftest.$ac_ext <<_ACEOF
29825 cat confdefs.h >>conftest.$ac_ext
29826 cat >>conftest.$ac_ext <<_ACEOF
29827 /* end confdefs.h. */
29829 /* Override any GCC internal prototype to avoid an error.
29830 Use char because int might match the return type of a GCC
29831 builtin and then its argument prototype would still apply. */
29844 rm -f conftest.$ac_objext conftest$ac_exeext
29845 if { (ac_try="$ac_link"
29846 case "(($ac_try" in
29847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29848 *) ac_try_echo=$ac_try;;
29850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29851 $as_echo "$ac_try_echo") >&5
29852 (eval "$ac_link") 2>conftest.er1
29854 grep -v '^ *+' conftest.er1 >conftest.err
29856 cat conftest.err >&5
29857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29858 (exit $ac_status); } && {
29859 test -z "$ac_c_werror_flag" ||
29860 test ! -s conftest.err
29861 } && test -s conftest$ac_exeext && {
29862 test "$cross_compiling" = yes ||
29863 $as_test_x conftest$ac_exeext
29865 eval "$as_ac_Lib=yes"
29867 $as_echo "$as_me: failed program was:" >&5
29868 sed 's/^/| /' conftest.$ac_ext >&5
29870 eval "$as_ac_Lib=no"
29873 rm -rf conftest.dSYM
29874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29875 conftest$ac_exeext conftest.$ac_ext
29876 LIBS=$ac_check_lib_save_LIBS
29878 ac_res=`eval 'as_val=${'$as_ac_Lib'}
29879 $as_echo "$as_val"'`
29880 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29881 $as_echo "$ac_res" >&6; }
29882 as_val=`eval 'as_val=${'$as_ac_Lib'}
29883 $as_echo "$as_val"'`
29884 if test "x$as_val" = x""yes; then
29891 elif test ""4"" = "2"; then
29892 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
29893 { $as_echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
29894 $as_echo_n "checking for db_open in -l$bdb_libname... " >&6; }
29895 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
29896 $as_echo_n "(cached) " >&6
29898 ac_check_lib_save_LIBS=$LIBS
29899 LIBS="-l$bdb_libname $LIBS"
29900 cat >conftest.$ac_ext <<_ACEOF
29903 cat confdefs.h >>conftest.$ac_ext
29904 cat >>conftest.$ac_ext <<_ACEOF
29905 /* end confdefs.h. */
29907 /* Override any GCC internal prototype to avoid an error.
29908 Use char because int might match the return type of a GCC
29909 builtin and then its argument prototype would still apply. */
29922 rm -f conftest.$ac_objext conftest$ac_exeext
29923 if { (ac_try="$ac_link"
29924 case "(($ac_try" in
29925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29926 *) ac_try_echo=$ac_try;;
29928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29929 $as_echo "$ac_try_echo") >&5
29930 (eval "$ac_link") 2>conftest.er1
29932 grep -v '^ *+' conftest.er1 >conftest.err
29934 cat conftest.err >&5
29935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29936 (exit $ac_status); } && {
29937 test -z "$ac_c_werror_flag" ||
29938 test ! -s conftest.err
29939 } && test -s conftest$ac_exeext && {
29940 test "$cross_compiling" = yes ||
29941 $as_test_x conftest$ac_exeext
29943 eval "$as_ac_Lib=yes"
29945 $as_echo "$as_me: failed program was:" >&5
29946 sed 's/^/| /' conftest.$ac_ext >&5
29948 eval "$as_ac_Lib=no"
29951 rm -rf conftest.dSYM
29952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29953 conftest$ac_exeext conftest.$ac_ext
29954 LIBS=$ac_check_lib_save_LIBS
29956 ac_res=`eval 'as_val=${'$as_ac_Lib'}
29957 $as_echo "$as_val"'`
29958 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29959 $as_echo "$ac_res" >&6; }
29960 as_val=`eval 'as_val=${'$as_ac_Lib'}
29961 $as_echo "$as_val"'`
29962 if test "x$as_val" = x""yes; then
29977 # If we found it, no need to search any more.
29978 if test "$result" = "yes"; then
29983 test "$found" != "not" && break
29985 test "$found" != "not" && break
29988 # Restore the original values of the flags we tweak.
29989 LDFLAGS="$apu_check_lib_save_ldflags"
29990 CPPFLAGS="$apu_check_lib_save_cppflags"
29997 apu_db_header=$bdb_header
29998 apu_db_lib=$bdb_libname
30002 header="`echo $found | sed -e 's/:.*$//'`"
30003 lib="`echo $found | sed -e 's/^.*://'`"
30006 if test "x$APRUTIL_INCLUDES" = "x"; then
30007 echo " setting APRUTIL_INCLUDES to \"-I$header\""
30008 APRUTIL_INCLUDES="-I$header"
30010 apr_addto_bugger="-I$header"
30011 for i in $apr_addto_bugger; do
30012 apr_addto_duplicate="0"
30013 for j in $APRUTIL_INCLUDES; do
30014 if test "x$i" = "x$j"; then
30015 apr_addto_duplicate="1"
30019 if test $apr_addto_duplicate = "0"; then
30020 echo " adding \"$i\" to APRUTIL_INCLUDES"
30021 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
30027 if test "x$APRUTIL_LDFLAGS" = "x"; then
30028 echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
30029 APRUTIL_LDFLAGS="-L$lib"
30031 apr_addto_bugger="-L$lib"
30032 for i in $apr_addto_bugger; do
30033 apr_addto_duplicate="0"
30034 for j in $APRUTIL_LDFLAGS; do
30035 if test "x$i" = "x$j"; then
30036 apr_addto_duplicate="1"
30040 if test $apr_addto_duplicate = "0"; then
30041 echo " adding \"$i\" to APRUTIL_LDFLAGS"
30042 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
30047 apu_db_header=$bdb_header
30048 apu_db_lib=$bdb_libname
30053 if test "x$APRUTIL_INCLUDES" = "x"; then
30054 echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
30055 APRUTIL_INCLUDES="-I$found/include"
30057 apr_addto_bugger="-I$found/include"
30058 for i in $apr_addto_bugger; do
30059 apr_addto_duplicate="0"
30060 for j in $APRUTIL_INCLUDES; do
30061 if test "x$i" = "x$j"; then
30062 apr_addto_duplicate="1"
30066 if test $apr_addto_duplicate = "0"; then
30067 echo " adding \"$i\" to APRUTIL_INCLUDES"
30068 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
30074 if test "x$APRUTIL_LDFLAGS" = "x"; then
30075 echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
30076 APRUTIL_LDFLAGS="-L$found/lib"
30078 apr_addto_bugger="-L$found/lib"
30079 for i in $apr_addto_bugger; do
30080 apr_addto_duplicate="0"
30081 for j in $APRUTIL_LDFLAGS; do
30082 if test "x$i" = "x$j"; then
30083 apr_addto_duplicate="1"
30087 if test $apr_addto_duplicate = "0"; then
30088 echo " adding \"$i\" to APRUTIL_LDFLAGS"
30089 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
30094 apu_db_header=$bdb_header
30095 apu_db_lib=$bdb_libname
30100 if test "$apu_have_db" = "1"; then
30104 if test "$apu_db_version" != "4"; then
30106 places="$all_places"
30107 if test -z "$places"; then
30108 places="std /usr/local /usr/local/BerkeleyDB.4.1 /boot/home/config"
30112 if test ""1"" != "-1"; then
30113 bdb_version="$bdb_version."1""
30114 if test ""-1"" != "-1"; then
30115 bdb_version="$bdb_version."-1""
30118 bdb_places="$places"
30119 bdb_default_search_headers="db41/db.h db4/db.h db.h"
30120 bdb_default_search_lib_names="db-4.1 db41 db4 db"
30125 # Save the original values of the flags we tweak.
30126 apu_check_lib_save_libs="$LIBS"
30127 apu_check_lib_save_ldflags="$LDFLAGS"
30128 apu_check_lib_save_cppflags="$CPPFLAGS"
30130 # The variable `found' is the prefix under which we've found
30131 # Berkeley DB, or `not' if we haven't found it anywhere yet.
30133 for bdb_place in $bdb_places; do
30135 LDFLAGS="$apu_check_lib_save_ldflags"
30136 CPPFLAGS="$apu_check_lib_save_cppflags"
30137 case "$bdb_place" in
30139 description="the standard places"
30142 header="`echo $bdb_place | sed -e 's/:.*$//'`"
30143 lib="`echo $bdb_place | sed -e 's/^.*://'`"
30144 CPPFLAGS="$CPPFLAGS -I$header"
30145 LDFLAGS="$LDFLAGS -L$lib"
30146 description="$header and $lib"
30149 if test -d $bdb_place; then
30150 LDFLAGS="$LDFLAGS -L$bdb_place/lib"
30151 CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
30153 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
30154 $as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; }
30155 { $as_echo "$as_me:$LINENO: result: directory not found" >&5
30156 $as_echo "directory not found" >&6; }
30159 description="$bdb_place"
30163 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
30164 # trick to display a message instead.
30165 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
30166 $as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; }
30167 { $as_echo "$as_me:$LINENO: result: " >&5
30170 for bdb_libname in $bdb_default_search_lib_names; do
30171 for bdb_header in $bdb_default_search_headers; do
30172 # Clear the header cache variable for each location
30174 cache_id="`echo ac_cv_header_${bdb_header} \
30175 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
30178 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh`
30179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30180 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
30181 $as_echo_n "checking for $bdb_header... " >&6; }
30182 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30183 $as_echo_n "(cached) " >&6
30185 ac_res=`eval 'as_val=${'$as_ac_Header'}
30186 $as_echo "$as_val"'`
30187 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30188 $as_echo "$ac_res" >&6; }
30190 # Is the header compilable?
30191 { $as_echo "$as_me:$LINENO: checking $bdb_header usability" >&5
30192 $as_echo_n "checking $bdb_header usability... " >&6; }
30193 cat >conftest.$ac_ext <<_ACEOF
30196 cat confdefs.h >>conftest.$ac_ext
30197 cat >>conftest.$ac_ext <<_ACEOF
30198 /* end confdefs.h. */
30199 $ac_includes_default
30200 #include <$bdb_header>
30202 rm -f conftest.$ac_objext
30203 if { (ac_try="$ac_compile"
30204 case "(($ac_try" in
30205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30206 *) ac_try_echo=$ac_try;;
30208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30209 $as_echo "$ac_try_echo") >&5
30210 (eval "$ac_compile") 2>conftest.er1
30212 grep -v '^ *+' conftest.er1 >conftest.err
30214 cat conftest.err >&5
30215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30216 (exit $ac_status); } && {
30217 test -z "$ac_c_werror_flag" ||
30218 test ! -s conftest.err
30219 } && test -s conftest.$ac_objext; then
30220 ac_header_compiler=yes
30222 $as_echo "$as_me: failed program was:" >&5
30223 sed 's/^/| /' conftest.$ac_ext >&5
30225 ac_header_compiler=no
30228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30229 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30230 $as_echo "$ac_header_compiler" >&6; }
30232 # Is the header present?
30233 { $as_echo "$as_me:$LINENO: checking $bdb_header presence" >&5
30234 $as_echo_n "checking $bdb_header presence... " >&6; }
30235 cat >conftest.$ac_ext <<_ACEOF
30238 cat confdefs.h >>conftest.$ac_ext
30239 cat >>conftest.$ac_ext <<_ACEOF
30240 /* end confdefs.h. */
30241 #include <$bdb_header>
30243 if { (ac_try="$ac_cpp conftest.$ac_ext"
30244 case "(($ac_try" in
30245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30246 *) ac_try_echo=$ac_try;;
30248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30249 $as_echo "$ac_try_echo") >&5
30250 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30252 grep -v '^ *+' conftest.er1 >conftest.err
30254 cat conftest.err >&5
30255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30256 (exit $ac_status); } >/dev/null && {
30257 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30258 test ! -s conftest.err
30260 ac_header_preproc=yes
30262 $as_echo "$as_me: failed program was:" >&5
30263 sed 's/^/| /' conftest.$ac_ext >&5
30265 ac_header_preproc=no
30268 rm -f conftest.err conftest.$ac_ext
30269 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30270 $as_echo "$ac_header_preproc" >&6; }
30272 # So? What about this header?
30273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30275 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
30276 $as_echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30277 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
30278 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
30279 ac_header_preproc=yes
30282 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
30283 $as_echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
30284 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
30285 $as_echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
30286 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
30287 $as_echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
30288 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
30289 $as_echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
30290 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
30291 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
30292 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
30293 $as_echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
30297 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
30298 $as_echo_n "checking for $bdb_header... " >&6; }
30299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30300 $as_echo_n "(cached) " >&6
30302 eval "$as_ac_Header=\$ac_header_preproc"
30304 ac_res=`eval 'as_val=${'$as_ac_Header'}
30305 $as_echo "$as_val"'`
30306 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30307 $as_echo "$ac_res" >&6; }
30310 as_val=`eval 'as_val=${'$as_ac_Header'}
30311 $as_echo "$as_val"'`
30312 if test "x$as_val" = x""yes; then
30314 if test ""4"" = "3" -o ""4"" = "4"; then
30315 # We generate a separate cache variable for each prefix and libname
30316 # we search under. That way, we avoid caching information that
30317 # changes if the user runs `configure' with a different set of
30320 cache_id="`echo apu_cv_check_berkeley_db_"4"_"1"_"-1"_${bdb_header}_${bdb_libname}_in_${bdb_place} \
30321 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
30324 { $as_echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
30325 $as_echo_n "checking for -l$bdb_libname... " >&6; }
30326 if { as_var=$cache_id; eval "test \"\${$as_var+set}\" = set"; }; then
30327 $as_echo_n "(cached) " >&6
30331 apu_try_berkeley_db_save_libs="$LIBS"
30333 apu_check_berkeley_db_major="4"
30334 apu_check_berkeley_db_minor="1"
30335 apu_check_berkeley_db_patch="-1"
30336 apu_try_berkeley_db_header=$bdb_header
30337 apu_try_berkeley_db_libname=$bdb_libname
30339 LIBS="$LIBS -l$apu_try_berkeley_db_libname"
30340 if test "$cross_compiling" = yes; then
30341 apu_try_berkeley_db=yes
30344 cat >conftest.$ac_ext <<_ACEOF
30347 cat confdefs.h >>conftest.$ac_ext
30348 cat >>conftest.$ac_ext <<_ACEOF
30349 /* end confdefs.h. */
30351 #include <stdlib.h>
30353 #include <$apu_try_berkeley_db_header>
30356 int major, minor, patch;
30358 db_version(&major, &minor, &patch);
30360 /* Sanity check: ensure that db.h constants actually match the db library */
30361 if (major != DB_VERSION_MAJOR
30362 || minor != DB_VERSION_MINOR
30363 || patch != DB_VERSION_PATCH)
30366 /* Run-time check: ensure the library claims to be the correct version. */
30368 if ($apu_check_berkeley_db_major != -1) {
30369 if (major < $apu_check_berkeley_db_major)
30371 if (major > $apu_check_berkeley_db_major)
30375 if ($apu_check_berkeley_db_minor != -1) {
30376 if (minor < $apu_check_berkeley_db_minor)
30378 if (minor > $apu_check_berkeley_db_minor)
30382 if ($apu_check_berkeley_db_patch == -1
30383 || patch >= $apu_check_berkeley_db_patch)
30390 rm -f conftest$ac_exeext
30391 if { (ac_try="$ac_link"
30392 case "(($ac_try" in
30393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30394 *) ac_try_echo=$ac_try;;
30396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30397 $as_echo "$ac_try_echo") >&5
30398 (eval "$ac_link") 2>&5
30400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30401 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30402 { (case "(($ac_try" in
30403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30404 *) ac_try_echo=$ac_try;;
30406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30407 $as_echo "$ac_try_echo") >&5
30408 (eval "$ac_try") 2>&5
30410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30411 (exit $ac_status); }; }; then
30412 apu_try_berkeley_db=yes
30414 $as_echo "$as_me: program exited with status $ac_status" >&5
30415 $as_echo "$as_me: failed program was:" >&5
30416 sed 's/^/| /' conftest.$ac_ext >&5
30418 ( exit $ac_status )
30419 apu_try_berkeley_db=no
30421 rm -rf conftest.dSYM
30422 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30427 LIBS="$apu_try_berkeley_db_save_libs"
30430 eval "$cache_id=$apu_try_berkeley_db"
30434 result="`eval echo '$'$cache_id`"
30435 { $as_echo "$as_me:$LINENO: result: $result" >&5
30436 $as_echo "$result" >&6; }
30437 elif test ""4"" = "1"; then
30438 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
30439 { $as_echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
30440 $as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; }
30441 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
30442 $as_echo_n "(cached) " >&6
30444 ac_check_lib_save_LIBS=$LIBS
30445 LIBS="-l$bdb_libname $LIBS"
30446 cat >conftest.$ac_ext <<_ACEOF
30449 cat confdefs.h >>conftest.$ac_ext
30450 cat >>conftest.$ac_ext <<_ACEOF
30451 /* end confdefs.h. */
30453 /* Override any GCC internal prototype to avoid an error.
30454 Use char because int might match the return type of a GCC
30455 builtin and then its argument prototype would still apply. */
30468 rm -f conftest.$ac_objext conftest$ac_exeext
30469 if { (ac_try="$ac_link"
30470 case "(($ac_try" in
30471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30472 *) ac_try_echo=$ac_try;;
30474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30475 $as_echo "$ac_try_echo") >&5
30476 (eval "$ac_link") 2>conftest.er1
30478 grep -v '^ *+' conftest.er1 >conftest.err
30480 cat conftest.err >&5
30481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30482 (exit $ac_status); } && {
30483 test -z "$ac_c_werror_flag" ||
30484 test ! -s conftest.err
30485 } && test -s conftest$ac_exeext && {
30486 test "$cross_compiling" = yes ||
30487 $as_test_x conftest$ac_exeext
30489 eval "$as_ac_Lib=yes"
30491 $as_echo "$as_me: failed program was:" >&5
30492 sed 's/^/| /' conftest.$ac_ext >&5
30494 eval "$as_ac_Lib=no"
30497 rm -rf conftest.dSYM
30498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30499 conftest$ac_exeext conftest.$ac_ext
30500 LIBS=$ac_check_lib_save_LIBS
30502 ac_res=`eval 'as_val=${'$as_ac_Lib'}
30503 $as_echo "$as_val"'`
30504 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30505 $as_echo "$ac_res" >&6; }
30506 as_val=`eval 'as_val=${'$as_ac_Lib'}
30507 $as_echo "$as_val"'`
30508 if test "x$as_val" = x""yes; then
30515 elif test ""4"" = "2"; then
30516 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
30517 { $as_echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
30518 $as_echo_n "checking for db_open in -l$bdb_libname... " >&6; }
30519 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
30520 $as_echo_n "(cached) " >&6
30522 ac_check_lib_save_LIBS=$LIBS
30523 LIBS="-l$bdb_libname $LIBS"
30524 cat >conftest.$ac_ext <<_ACEOF
30527 cat confdefs.h >>conftest.$ac_ext
30528 cat >>conftest.$ac_ext <<_ACEOF
30529 /* end confdefs.h. */
30531 /* Override any GCC internal prototype to avoid an error.
30532 Use char because int might match the return type of a GCC
30533 builtin and then its argument prototype would still apply. */
30546 rm -f conftest.$ac_objext conftest$ac_exeext
30547 if { (ac_try="$ac_link"
30548 case "(($ac_try" in
30549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30550 *) ac_try_echo=$ac_try;;
30552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30553 $as_echo "$ac_try_echo") >&5
30554 (eval "$ac_link") 2>conftest.er1
30556 grep -v '^ *+' conftest.er1 >conftest.err
30558 cat conftest.err >&5
30559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30560 (exit $ac_status); } && {
30561 test -z "$ac_c_werror_flag" ||
30562 test ! -s conftest.err
30563 } && test -s conftest$ac_exeext && {
30564 test "$cross_compiling" = yes ||
30565 $as_test_x conftest$ac_exeext
30567 eval "$as_ac_Lib=yes"
30569 $as_echo "$as_me: failed program was:" >&5
30570 sed 's/^/| /' conftest.$ac_ext >&5
30572 eval "$as_ac_Lib=no"
30575 rm -rf conftest.dSYM
30576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30577 conftest$ac_exeext conftest.$ac_ext
30578 LIBS=$ac_check_lib_save_LIBS
30580 ac_res=`eval 'as_val=${'$as_ac_Lib'}
30581 $as_echo "$as_val"'`
30582 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30583 $as_echo "$ac_res" >&6; }
30584 as_val=`eval 'as_val=${'$as_ac_Lib'}
30585 $as_echo "$as_val"'`
30586 if test "x$as_val" = x""yes; then
30601 # If we found it, no need to search any more.
30602 if test "$result" = "yes"; then
30607 test "$found" != "not" && break
30609 test "$found" != "not" && break
30612 # Restore the original values of the flags we tweak.
30613 LDFLAGS="$apu_check_lib_save_ldflags"
30614 CPPFLAGS="$apu_check_lib_save_cppflags"
30621 apu_db_header=$bdb_header
30622 apu_db_lib=$bdb_libname
30626 header="`echo $found | sed -e 's/:.*$//'`"
30627 lib="`echo $found | sed -e 's/^.*://'`"
30630 if test "x$APRUTIL_INCLUDES" = "x"; then
30631 echo " setting APRUTIL_INCLUDES to \"-I$header\""
30632 APRUTIL_INCLUDES="-I$header"
30634 apr_addto_bugger="-I$header"
30635 for i in $apr_addto_bugger; do
30636 apr_addto_duplicate="0"
30637 for j in $APRUTIL_INCLUDES; do
30638 if test "x$i" = "x$j"; then
30639 apr_addto_duplicate="1"
30643 if test $apr_addto_duplicate = "0"; then
30644 echo " adding \"$i\" to APRUTIL_INCLUDES"
30645 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
30651 if test "x$APRUTIL_LDFLAGS" = "x"; then
30652 echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
30653 APRUTIL_LDFLAGS="-L$lib"
30655 apr_addto_bugger="-L$lib"
30656 for i in $apr_addto_bugger; do
30657 apr_addto_duplicate="0"
30658 for j in $APRUTIL_LDFLAGS; do
30659 if test "x$i" = "x$j"; then
30660 apr_addto_duplicate="1"
30664 if test $apr_addto_duplicate = "0"; then
30665 echo " adding \"$i\" to APRUTIL_LDFLAGS"
30666 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
30671 apu_db_header=$bdb_header
30672 apu_db_lib=$bdb_libname
30677 if test "x$APRUTIL_INCLUDES" = "x"; then
30678 echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
30679 APRUTIL_INCLUDES="-I$found/include"
30681 apr_addto_bugger="-I$found/include"
30682 for i in $apr_addto_bugger; do
30683 apr_addto_duplicate="0"
30684 for j in $APRUTIL_INCLUDES; do
30685 if test "x$i" = "x$j"; then
30686 apr_addto_duplicate="1"
30690 if test $apr_addto_duplicate = "0"; then
30691 echo " adding \"$i\" to APRUTIL_INCLUDES"
30692 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
30698 if test "x$APRUTIL_LDFLAGS" = "x"; then
30699 echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
30700 APRUTIL_LDFLAGS="-L$found/lib"
30702 apr_addto_bugger="-L$found/lib"
30703 for i in $apr_addto_bugger; do
30704 apr_addto_duplicate="0"
30705 for j in $APRUTIL_LDFLAGS; do
30706 if test "x$i" = "x$j"; then
30707 apr_addto_duplicate="1"
30711 if test $apr_addto_duplicate = "0"; then
30712 echo " adding \"$i\" to APRUTIL_LDFLAGS"
30713 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
30718 apu_db_header=$bdb_header
30719 apu_db_lib=$bdb_libname
30724 if test "$apu_have_db" = "1"; then
30728 if test "$apu_db_version" != "4"; then
30730 places="$all_places"
30731 if test -z "$places"; then
30732 places="std /usr/local /usr/local/BerkeleyDB.4.0 /boot/home/config"
30736 if test ""0"" != "-1"; then
30737 bdb_version="$bdb_version."0""
30738 if test ""-1"" != "-1"; then
30739 bdb_version="$bdb_version."-1""
30742 bdb_places="$places"
30743 bdb_default_search_headers="db4/db.h db.h"
30744 bdb_default_search_lib_names="db-4.0 db4 db"
30749 # Save the original values of the flags we tweak.
30750 apu_check_lib_save_libs="$LIBS"
30751 apu_check_lib_save_ldflags="$LDFLAGS"
30752 apu_check_lib_save_cppflags="$CPPFLAGS"
30754 # The variable `found' is the prefix under which we've found
30755 # Berkeley DB, or `not' if we haven't found it anywhere yet.
30757 for bdb_place in $bdb_places; do
30759 LDFLAGS="$apu_check_lib_save_ldflags"
30760 CPPFLAGS="$apu_check_lib_save_cppflags"
30761 case "$bdb_place" in
30763 description="the standard places"
30766 header="`echo $bdb_place | sed -e 's/:.*$//'`"
30767 lib="`echo $bdb_place | sed -e 's/^.*://'`"
30768 CPPFLAGS="$CPPFLAGS -I$header"
30769 LDFLAGS="$LDFLAGS -L$lib"
30770 description="$header and $lib"
30773 if test -d $bdb_place; then
30774 LDFLAGS="$LDFLAGS -L$bdb_place/lib"
30775 CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
30777 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
30778 $as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; }
30779 { $as_echo "$as_me:$LINENO: result: directory not found" >&5
30780 $as_echo "directory not found" >&6; }
30783 description="$bdb_place"
30787 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
30788 # trick to display a message instead.
30789 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
30790 $as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; }
30791 { $as_echo "$as_me:$LINENO: result: " >&5
30794 for bdb_libname in $bdb_default_search_lib_names; do
30795 for bdb_header in $bdb_default_search_headers; do
30796 # Clear the header cache variable for each location
30798 cache_id="`echo ac_cv_header_${bdb_header} \
30799 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
30802 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh`
30803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30804 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
30805 $as_echo_n "checking for $bdb_header... " >&6; }
30806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30807 $as_echo_n "(cached) " >&6
30809 ac_res=`eval 'as_val=${'$as_ac_Header'}
30810 $as_echo "$as_val"'`
30811 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30812 $as_echo "$ac_res" >&6; }
30814 # Is the header compilable?
30815 { $as_echo "$as_me:$LINENO: checking $bdb_header usability" >&5
30816 $as_echo_n "checking $bdb_header usability... " >&6; }
30817 cat >conftest.$ac_ext <<_ACEOF
30820 cat confdefs.h >>conftest.$ac_ext
30821 cat >>conftest.$ac_ext <<_ACEOF
30822 /* end confdefs.h. */
30823 $ac_includes_default
30824 #include <$bdb_header>
30826 rm -f conftest.$ac_objext
30827 if { (ac_try="$ac_compile"
30828 case "(($ac_try" in
30829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30830 *) ac_try_echo=$ac_try;;
30832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30833 $as_echo "$ac_try_echo") >&5
30834 (eval "$ac_compile") 2>conftest.er1
30836 grep -v '^ *+' conftest.er1 >conftest.err
30838 cat conftest.err >&5
30839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30840 (exit $ac_status); } && {
30841 test -z "$ac_c_werror_flag" ||
30842 test ! -s conftest.err
30843 } && test -s conftest.$ac_objext; then
30844 ac_header_compiler=yes
30846 $as_echo "$as_me: failed program was:" >&5
30847 sed 's/^/| /' conftest.$ac_ext >&5
30849 ac_header_compiler=no
30852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30853 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30854 $as_echo "$ac_header_compiler" >&6; }
30856 # Is the header present?
30857 { $as_echo "$as_me:$LINENO: checking $bdb_header presence" >&5
30858 $as_echo_n "checking $bdb_header presence... " >&6; }
30859 cat >conftest.$ac_ext <<_ACEOF
30862 cat confdefs.h >>conftest.$ac_ext
30863 cat >>conftest.$ac_ext <<_ACEOF
30864 /* end confdefs.h. */
30865 #include <$bdb_header>
30867 if { (ac_try="$ac_cpp conftest.$ac_ext"
30868 case "(($ac_try" in
30869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30870 *) ac_try_echo=$ac_try;;
30872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30873 $as_echo "$ac_try_echo") >&5
30874 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30876 grep -v '^ *+' conftest.er1 >conftest.err
30878 cat conftest.err >&5
30879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30880 (exit $ac_status); } >/dev/null && {
30881 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30882 test ! -s conftest.err
30884 ac_header_preproc=yes
30886 $as_echo "$as_me: failed program was:" >&5
30887 sed 's/^/| /' conftest.$ac_ext >&5
30889 ac_header_preproc=no
30892 rm -f conftest.err conftest.$ac_ext
30893 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30894 $as_echo "$ac_header_preproc" >&6; }
30896 # So? What about this header?
30897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30899 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
30900 $as_echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30901 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
30902 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
30903 ac_header_preproc=yes
30906 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
30907 $as_echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
30908 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
30909 $as_echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
30910 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
30911 $as_echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
30912 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
30913 $as_echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
30914 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
30915 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
30916 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
30917 $as_echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
30921 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
30922 $as_echo_n "checking for $bdb_header... " >&6; }
30923 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30924 $as_echo_n "(cached) " >&6
30926 eval "$as_ac_Header=\$ac_header_preproc"
30928 ac_res=`eval 'as_val=${'$as_ac_Header'}
30929 $as_echo "$as_val"'`
30930 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30931 $as_echo "$ac_res" >&6; }
30934 as_val=`eval 'as_val=${'$as_ac_Header'}
30935 $as_echo "$as_val"'`
30936 if test "x$as_val" = x""yes; then
30938 if test ""4"" = "3" -o ""4"" = "4"; then
30939 # We generate a separate cache variable for each prefix and libname
30940 # we search under. That way, we avoid caching information that
30941 # changes if the user runs `configure' with a different set of
30944 cache_id="`echo apu_cv_check_berkeley_db_"4"_"0"_"-1"_${bdb_header}_${bdb_libname}_in_${bdb_place} \
30945 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
30948 { $as_echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
30949 $as_echo_n "checking for -l$bdb_libname... " >&6; }
30950 if { as_var=$cache_id; eval "test \"\${$as_var+set}\" = set"; }; then
30951 $as_echo_n "(cached) " >&6
30955 apu_try_berkeley_db_save_libs="$LIBS"
30957 apu_check_berkeley_db_major="4"
30958 apu_check_berkeley_db_minor="0"
30959 apu_check_berkeley_db_patch="-1"
30960 apu_try_berkeley_db_header=$bdb_header
30961 apu_try_berkeley_db_libname=$bdb_libname
30963 LIBS="$LIBS -l$apu_try_berkeley_db_libname"
30964 if test "$cross_compiling" = yes; then
30965 apu_try_berkeley_db=yes
30968 cat >conftest.$ac_ext <<_ACEOF
30971 cat confdefs.h >>conftest.$ac_ext
30972 cat >>conftest.$ac_ext <<_ACEOF
30973 /* end confdefs.h. */
30975 #include <stdlib.h>
30977 #include <$apu_try_berkeley_db_header>
30980 int major, minor, patch;
30982 db_version(&major, &minor, &patch);
30984 /* Sanity check: ensure that db.h constants actually match the db library */
30985 if (major != DB_VERSION_MAJOR
30986 || minor != DB_VERSION_MINOR
30987 || patch != DB_VERSION_PATCH)
30990 /* Run-time check: ensure the library claims to be the correct version. */
30992 if ($apu_check_berkeley_db_major != -1) {
30993 if (major < $apu_check_berkeley_db_major)
30995 if (major > $apu_check_berkeley_db_major)
30999 if ($apu_check_berkeley_db_minor != -1) {
31000 if (minor < $apu_check_berkeley_db_minor)
31002 if (minor > $apu_check_berkeley_db_minor)
31006 if ($apu_check_berkeley_db_patch == -1
31007 || patch >= $apu_check_berkeley_db_patch)
31014 rm -f conftest$ac_exeext
31015 if { (ac_try="$ac_link"
31016 case "(($ac_try" in
31017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31018 *) ac_try_echo=$ac_try;;
31020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31021 $as_echo "$ac_try_echo") >&5
31022 (eval "$ac_link") 2>&5
31024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31025 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31026 { (case "(($ac_try" in
31027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31028 *) ac_try_echo=$ac_try;;
31030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31031 $as_echo "$ac_try_echo") >&5
31032 (eval "$ac_try") 2>&5
31034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31035 (exit $ac_status); }; }; then
31036 apu_try_berkeley_db=yes
31038 $as_echo "$as_me: program exited with status $ac_status" >&5
31039 $as_echo "$as_me: failed program was:" >&5
31040 sed 's/^/| /' conftest.$ac_ext >&5
31042 ( exit $ac_status )
31043 apu_try_berkeley_db=no
31045 rm -rf conftest.dSYM
31046 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31051 LIBS="$apu_try_berkeley_db_save_libs"
31054 eval "$cache_id=$apu_try_berkeley_db"
31058 result="`eval echo '$'$cache_id`"
31059 { $as_echo "$as_me:$LINENO: result: $result" >&5
31060 $as_echo "$result" >&6; }
31061 elif test ""4"" = "1"; then
31062 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
31063 { $as_echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
31064 $as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; }
31065 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
31066 $as_echo_n "(cached) " >&6
31068 ac_check_lib_save_LIBS=$LIBS
31069 LIBS="-l$bdb_libname $LIBS"
31070 cat >conftest.$ac_ext <<_ACEOF
31073 cat confdefs.h >>conftest.$ac_ext
31074 cat >>conftest.$ac_ext <<_ACEOF
31075 /* end confdefs.h. */
31077 /* Override any GCC internal prototype to avoid an error.
31078 Use char because int might match the return type of a GCC
31079 builtin and then its argument prototype would still apply. */
31092 rm -f conftest.$ac_objext conftest$ac_exeext
31093 if { (ac_try="$ac_link"
31094 case "(($ac_try" in
31095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31096 *) ac_try_echo=$ac_try;;
31098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31099 $as_echo "$ac_try_echo") >&5
31100 (eval "$ac_link") 2>conftest.er1
31102 grep -v '^ *+' conftest.er1 >conftest.err
31104 cat conftest.err >&5
31105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31106 (exit $ac_status); } && {
31107 test -z "$ac_c_werror_flag" ||
31108 test ! -s conftest.err
31109 } && test -s conftest$ac_exeext && {
31110 test "$cross_compiling" = yes ||
31111 $as_test_x conftest$ac_exeext
31113 eval "$as_ac_Lib=yes"
31115 $as_echo "$as_me: failed program was:" >&5
31116 sed 's/^/| /' conftest.$ac_ext >&5
31118 eval "$as_ac_Lib=no"
31121 rm -rf conftest.dSYM
31122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31123 conftest$ac_exeext conftest.$ac_ext
31124 LIBS=$ac_check_lib_save_LIBS
31126 ac_res=`eval 'as_val=${'$as_ac_Lib'}
31127 $as_echo "$as_val"'`
31128 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31129 $as_echo "$ac_res" >&6; }
31130 as_val=`eval 'as_val=${'$as_ac_Lib'}
31131 $as_echo "$as_val"'`
31132 if test "x$as_val" = x""yes; then
31139 elif test ""4"" = "2"; then
31140 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
31141 { $as_echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
31142 $as_echo_n "checking for db_open in -l$bdb_libname... " >&6; }
31143 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
31144 $as_echo_n "(cached) " >&6
31146 ac_check_lib_save_LIBS=$LIBS
31147 LIBS="-l$bdb_libname $LIBS"
31148 cat >conftest.$ac_ext <<_ACEOF
31151 cat confdefs.h >>conftest.$ac_ext
31152 cat >>conftest.$ac_ext <<_ACEOF
31153 /* end confdefs.h. */
31155 /* Override any GCC internal prototype to avoid an error.
31156 Use char because int might match the return type of a GCC
31157 builtin and then its argument prototype would still apply. */
31170 rm -f conftest.$ac_objext conftest$ac_exeext
31171 if { (ac_try="$ac_link"
31172 case "(($ac_try" in
31173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31174 *) ac_try_echo=$ac_try;;
31176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31177 $as_echo "$ac_try_echo") >&5
31178 (eval "$ac_link") 2>conftest.er1
31180 grep -v '^ *+' conftest.er1 >conftest.err
31182 cat conftest.err >&5
31183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31184 (exit $ac_status); } && {
31185 test -z "$ac_c_werror_flag" ||
31186 test ! -s conftest.err
31187 } && test -s conftest$ac_exeext && {
31188 test "$cross_compiling" = yes ||
31189 $as_test_x conftest$ac_exeext
31191 eval "$as_ac_Lib=yes"
31193 $as_echo "$as_me: failed program was:" >&5
31194 sed 's/^/| /' conftest.$ac_ext >&5
31196 eval "$as_ac_Lib=no"
31199 rm -rf conftest.dSYM
31200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31201 conftest$ac_exeext conftest.$ac_ext
31202 LIBS=$ac_check_lib_save_LIBS
31204 ac_res=`eval 'as_val=${'$as_ac_Lib'}
31205 $as_echo "$as_val"'`
31206 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31207 $as_echo "$ac_res" >&6; }
31208 as_val=`eval 'as_val=${'$as_ac_Lib'}
31209 $as_echo "$as_val"'`
31210 if test "x$as_val" = x""yes; then
31225 # If we found it, no need to search any more.
31226 if test "$result" = "yes"; then
31231 test "$found" != "not" && break
31233 test "$found" != "not" && break
31236 # Restore the original values of the flags we tweak.
31237 LDFLAGS="$apu_check_lib_save_ldflags"
31238 CPPFLAGS="$apu_check_lib_save_cppflags"
31245 apu_db_header=$bdb_header
31246 apu_db_lib=$bdb_libname
31250 header="`echo $found | sed -e 's/:.*$//'`"
31251 lib="`echo $found | sed -e 's/^.*://'`"
31254 if test "x$APRUTIL_INCLUDES" = "x"; then
31255 echo " setting APRUTIL_INCLUDES to \"-I$header\""
31256 APRUTIL_INCLUDES="-I$header"
31258 apr_addto_bugger="-I$header"
31259 for i in $apr_addto_bugger; do
31260 apr_addto_duplicate="0"
31261 for j in $APRUTIL_INCLUDES; do
31262 if test "x$i" = "x$j"; then
31263 apr_addto_duplicate="1"
31267 if test $apr_addto_duplicate = "0"; then
31268 echo " adding \"$i\" to APRUTIL_INCLUDES"
31269 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
31275 if test "x$APRUTIL_LDFLAGS" = "x"; then
31276 echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
31277 APRUTIL_LDFLAGS="-L$lib"
31279 apr_addto_bugger="-L$lib"
31280 for i in $apr_addto_bugger; do
31281 apr_addto_duplicate="0"
31282 for j in $APRUTIL_LDFLAGS; do
31283 if test "x$i" = "x$j"; then
31284 apr_addto_duplicate="1"
31288 if test $apr_addto_duplicate = "0"; then
31289 echo " adding \"$i\" to APRUTIL_LDFLAGS"
31290 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
31295 apu_db_header=$bdb_header
31296 apu_db_lib=$bdb_libname
31301 if test "x$APRUTIL_INCLUDES" = "x"; then
31302 echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
31303 APRUTIL_INCLUDES="-I$found/include"
31305 apr_addto_bugger="-I$found/include"
31306 for i in $apr_addto_bugger; do
31307 apr_addto_duplicate="0"
31308 for j in $APRUTIL_INCLUDES; do
31309 if test "x$i" = "x$j"; then
31310 apr_addto_duplicate="1"
31314 if test $apr_addto_duplicate = "0"; then
31315 echo " adding \"$i\" to APRUTIL_INCLUDES"
31316 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
31322 if test "x$APRUTIL_LDFLAGS" = "x"; then
31323 echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
31324 APRUTIL_LDFLAGS="-L$found/lib"
31326 apr_addto_bugger="-L$found/lib"
31327 for i in $apr_addto_bugger; do
31328 apr_addto_duplicate="0"
31329 for j in $APRUTIL_LDFLAGS; do
31330 if test "x$i" = "x$j"; then
31331 apr_addto_duplicate="1"
31335 if test $apr_addto_duplicate = "0"; then
31336 echo " adding \"$i\" to APRUTIL_LDFLAGS"
31337 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
31342 apu_db_header=$bdb_header
31343 apu_db_lib=$bdb_libname
31348 if test "$apu_have_db" = "1"; then
31352 if test "$apu_db_version" != "4"; then
31354 places="$all_places"
31355 if test -z "$places"; then
31360 if test "-1" != "-1"; then
31361 bdb_version="$bdb_version.-1"
31362 if test "-1" != "-1"; then
31363 bdb_version="$bdb_version.-1"
31366 bdb_places="$places"
31367 bdb_default_search_headers="db3/db.h db.h"
31368 bdb_default_search_lib_names="db3 db"
31373 # Save the original values of the flags we tweak.
31374 apu_check_lib_save_libs="$LIBS"
31375 apu_check_lib_save_ldflags="$LDFLAGS"
31376 apu_check_lib_save_cppflags="$CPPFLAGS"
31378 # The variable `found' is the prefix under which we've found
31379 # Berkeley DB, or `not' if we haven't found it anywhere yet.
31381 for bdb_place in $bdb_places; do
31383 LDFLAGS="$apu_check_lib_save_ldflags"
31384 CPPFLAGS="$apu_check_lib_save_cppflags"
31385 case "$bdb_place" in
31387 description="the standard places"
31390 header="`echo $bdb_place | sed -e 's/:.*$//'`"
31391 lib="`echo $bdb_place | sed -e 's/^.*://'`"
31392 CPPFLAGS="$CPPFLAGS -I$header"
31393 LDFLAGS="$LDFLAGS -L$lib"
31394 description="$header and $lib"
31397 if test -d $bdb_place; then
31398 LDFLAGS="$LDFLAGS -L$bdb_place/lib"
31399 CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
31401 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
31402 $as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; }
31403 { $as_echo "$as_me:$LINENO: result: directory not found" >&5
31404 $as_echo "directory not found" >&6; }
31407 description="$bdb_place"
31411 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
31412 # trick to display a message instead.
31413 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
31414 $as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; }
31415 { $as_echo "$as_me:$LINENO: result: " >&5
31418 for bdb_libname in $bdb_default_search_lib_names; do
31419 for bdb_header in $bdb_default_search_headers; do
31420 # Clear the header cache variable for each location
31422 cache_id="`echo ac_cv_header_${bdb_header} \
31423 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
31426 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh`
31427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31428 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
31429 $as_echo_n "checking for $bdb_header... " >&6; }
31430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31431 $as_echo_n "(cached) " >&6
31433 ac_res=`eval 'as_val=${'$as_ac_Header'}
31434 $as_echo "$as_val"'`
31435 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31436 $as_echo "$ac_res" >&6; }
31438 # Is the header compilable?
31439 { $as_echo "$as_me:$LINENO: checking $bdb_header usability" >&5
31440 $as_echo_n "checking $bdb_header usability... " >&6; }
31441 cat >conftest.$ac_ext <<_ACEOF
31444 cat confdefs.h >>conftest.$ac_ext
31445 cat >>conftest.$ac_ext <<_ACEOF
31446 /* end confdefs.h. */
31447 $ac_includes_default
31448 #include <$bdb_header>
31450 rm -f conftest.$ac_objext
31451 if { (ac_try="$ac_compile"
31452 case "(($ac_try" in
31453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31454 *) ac_try_echo=$ac_try;;
31456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31457 $as_echo "$ac_try_echo") >&5
31458 (eval "$ac_compile") 2>conftest.er1
31460 grep -v '^ *+' conftest.er1 >conftest.err
31462 cat conftest.err >&5
31463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31464 (exit $ac_status); } && {
31465 test -z "$ac_c_werror_flag" ||
31466 test ! -s conftest.err
31467 } && test -s conftest.$ac_objext; then
31468 ac_header_compiler=yes
31470 $as_echo "$as_me: failed program was:" >&5
31471 sed 's/^/| /' conftest.$ac_ext >&5
31473 ac_header_compiler=no
31476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31477 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31478 $as_echo "$ac_header_compiler" >&6; }
31480 # Is the header present?
31481 { $as_echo "$as_me:$LINENO: checking $bdb_header presence" >&5
31482 $as_echo_n "checking $bdb_header presence... " >&6; }
31483 cat >conftest.$ac_ext <<_ACEOF
31486 cat confdefs.h >>conftest.$ac_ext
31487 cat >>conftest.$ac_ext <<_ACEOF
31488 /* end confdefs.h. */
31489 #include <$bdb_header>
31491 if { (ac_try="$ac_cpp conftest.$ac_ext"
31492 case "(($ac_try" in
31493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31494 *) ac_try_echo=$ac_try;;
31496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31497 $as_echo "$ac_try_echo") >&5
31498 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31500 grep -v '^ *+' conftest.er1 >conftest.err
31502 cat conftest.err >&5
31503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31504 (exit $ac_status); } >/dev/null && {
31505 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31506 test ! -s conftest.err
31508 ac_header_preproc=yes
31510 $as_echo "$as_me: failed program was:" >&5
31511 sed 's/^/| /' conftest.$ac_ext >&5
31513 ac_header_preproc=no
31516 rm -f conftest.err conftest.$ac_ext
31517 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31518 $as_echo "$ac_header_preproc" >&6; }
31520 # So? What about this header?
31521 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31523 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
31524 $as_echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31525 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
31526 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
31527 ac_header_preproc=yes
31530 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
31531 $as_echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
31532 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
31533 $as_echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
31534 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
31535 $as_echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
31536 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
31537 $as_echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
31538 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
31539 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
31540 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
31541 $as_echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
31545 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
31546 $as_echo_n "checking for $bdb_header... " >&6; }
31547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31548 $as_echo_n "(cached) " >&6
31550 eval "$as_ac_Header=\$ac_header_preproc"
31552 ac_res=`eval 'as_val=${'$as_ac_Header'}
31553 $as_echo "$as_val"'`
31554 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31555 $as_echo "$ac_res" >&6; }
31558 as_val=`eval 'as_val=${'$as_ac_Header'}
31559 $as_echo "$as_val"'`
31560 if test "x$as_val" = x""yes; then
31562 if test "3" = "3" -o "3" = "4"; then
31563 # We generate a separate cache variable for each prefix and libname
31564 # we search under. That way, we avoid caching information that
31565 # changes if the user runs `configure' with a different set of
31568 cache_id="`echo apu_cv_check_berkeley_db_3_-1_-1_${bdb_header}_${bdb_libname}_in_${bdb_place} \
31569 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
31572 { $as_echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
31573 $as_echo_n "checking for -l$bdb_libname... " >&6; }
31574 if { as_var=$cache_id; eval "test \"\${$as_var+set}\" = set"; }; then
31575 $as_echo_n "(cached) " >&6
31579 apu_try_berkeley_db_save_libs="$LIBS"
31581 apu_check_berkeley_db_major=3
31582 apu_check_berkeley_db_minor=-1
31583 apu_check_berkeley_db_patch=-1
31584 apu_try_berkeley_db_header=$bdb_header
31585 apu_try_berkeley_db_libname=$bdb_libname
31587 LIBS="$LIBS -l$apu_try_berkeley_db_libname"
31588 if test "$cross_compiling" = yes; then
31589 apu_try_berkeley_db=yes
31592 cat >conftest.$ac_ext <<_ACEOF
31595 cat confdefs.h >>conftest.$ac_ext
31596 cat >>conftest.$ac_ext <<_ACEOF
31597 /* end confdefs.h. */
31599 #include <stdlib.h>
31601 #include <$apu_try_berkeley_db_header>
31604 int major, minor, patch;
31606 db_version(&major, &minor, &patch);
31608 /* Sanity check: ensure that db.h constants actually match the db library */
31609 if (major != DB_VERSION_MAJOR
31610 || minor != DB_VERSION_MINOR
31611 || patch != DB_VERSION_PATCH)
31614 /* Run-time check: ensure the library claims to be the correct version. */
31616 if ($apu_check_berkeley_db_major != -1) {
31617 if (major < $apu_check_berkeley_db_major)
31619 if (major > $apu_check_berkeley_db_major)
31623 if ($apu_check_berkeley_db_minor != -1) {
31624 if (minor < $apu_check_berkeley_db_minor)
31626 if (minor > $apu_check_berkeley_db_minor)
31630 if ($apu_check_berkeley_db_patch == -1
31631 || patch >= $apu_check_berkeley_db_patch)
31638 rm -f conftest$ac_exeext
31639 if { (ac_try="$ac_link"
31640 case "(($ac_try" in
31641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31642 *) ac_try_echo=$ac_try;;
31644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31645 $as_echo "$ac_try_echo") >&5
31646 (eval "$ac_link") 2>&5
31648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31649 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31650 { (case "(($ac_try" in
31651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31652 *) ac_try_echo=$ac_try;;
31654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31655 $as_echo "$ac_try_echo") >&5
31656 (eval "$ac_try") 2>&5
31658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31659 (exit $ac_status); }; }; then
31660 apu_try_berkeley_db=yes
31662 $as_echo "$as_me: program exited with status $ac_status" >&5
31663 $as_echo "$as_me: failed program was:" >&5
31664 sed 's/^/| /' conftest.$ac_ext >&5
31666 ( exit $ac_status )
31667 apu_try_berkeley_db=no
31669 rm -rf conftest.dSYM
31670 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31675 LIBS="$apu_try_berkeley_db_save_libs"
31678 eval "$cache_id=$apu_try_berkeley_db"
31682 result="`eval echo '$'$cache_id`"
31683 { $as_echo "$as_me:$LINENO: result: $result" >&5
31684 $as_echo "$result" >&6; }
31685 elif test "3" = "1"; then
31686 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
31687 { $as_echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
31688 $as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; }
31689 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
31690 $as_echo_n "(cached) " >&6
31692 ac_check_lib_save_LIBS=$LIBS
31693 LIBS="-l$bdb_libname $LIBS"
31694 cat >conftest.$ac_ext <<_ACEOF
31697 cat confdefs.h >>conftest.$ac_ext
31698 cat >>conftest.$ac_ext <<_ACEOF
31699 /* end confdefs.h. */
31701 /* Override any GCC internal prototype to avoid an error.
31702 Use char because int might match the return type of a GCC
31703 builtin and then its argument prototype would still apply. */
31716 rm -f conftest.$ac_objext conftest$ac_exeext
31717 if { (ac_try="$ac_link"
31718 case "(($ac_try" in
31719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31720 *) ac_try_echo=$ac_try;;
31722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31723 $as_echo "$ac_try_echo") >&5
31724 (eval "$ac_link") 2>conftest.er1
31726 grep -v '^ *+' conftest.er1 >conftest.err
31728 cat conftest.err >&5
31729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31730 (exit $ac_status); } && {
31731 test -z "$ac_c_werror_flag" ||
31732 test ! -s conftest.err
31733 } && test -s conftest$ac_exeext && {
31734 test "$cross_compiling" = yes ||
31735 $as_test_x conftest$ac_exeext
31737 eval "$as_ac_Lib=yes"
31739 $as_echo "$as_me: failed program was:" >&5
31740 sed 's/^/| /' conftest.$ac_ext >&5
31742 eval "$as_ac_Lib=no"
31745 rm -rf conftest.dSYM
31746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31747 conftest$ac_exeext conftest.$ac_ext
31748 LIBS=$ac_check_lib_save_LIBS
31750 ac_res=`eval 'as_val=${'$as_ac_Lib'}
31751 $as_echo "$as_val"'`
31752 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31753 $as_echo "$ac_res" >&6; }
31754 as_val=`eval 'as_val=${'$as_ac_Lib'}
31755 $as_echo "$as_val"'`
31756 if test "x$as_val" = x""yes; then
31763 elif test "3" = "2"; then
31764 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
31765 { $as_echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
31766 $as_echo_n "checking for db_open in -l$bdb_libname... " >&6; }
31767 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
31768 $as_echo_n "(cached) " >&6
31770 ac_check_lib_save_LIBS=$LIBS
31771 LIBS="-l$bdb_libname $LIBS"
31772 cat >conftest.$ac_ext <<_ACEOF
31775 cat confdefs.h >>conftest.$ac_ext
31776 cat >>conftest.$ac_ext <<_ACEOF
31777 /* end confdefs.h. */
31779 /* Override any GCC internal prototype to avoid an error.
31780 Use char because int might match the return type of a GCC
31781 builtin and then its argument prototype would still apply. */
31794 rm -f conftest.$ac_objext conftest$ac_exeext
31795 if { (ac_try="$ac_link"
31796 case "(($ac_try" in
31797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31798 *) ac_try_echo=$ac_try;;
31800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31801 $as_echo "$ac_try_echo") >&5
31802 (eval "$ac_link") 2>conftest.er1
31804 grep -v '^ *+' conftest.er1 >conftest.err
31806 cat conftest.err >&5
31807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31808 (exit $ac_status); } && {
31809 test -z "$ac_c_werror_flag" ||
31810 test ! -s conftest.err
31811 } && test -s conftest$ac_exeext && {
31812 test "$cross_compiling" = yes ||
31813 $as_test_x conftest$ac_exeext
31815 eval "$as_ac_Lib=yes"
31817 $as_echo "$as_me: failed program was:" >&5
31818 sed 's/^/| /' conftest.$ac_ext >&5
31820 eval "$as_ac_Lib=no"
31823 rm -rf conftest.dSYM
31824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31825 conftest$ac_exeext conftest.$ac_ext
31826 LIBS=$ac_check_lib_save_LIBS
31828 ac_res=`eval 'as_val=${'$as_ac_Lib'}
31829 $as_echo "$as_val"'`
31830 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31831 $as_echo "$ac_res" >&6; }
31832 as_val=`eval 'as_val=${'$as_ac_Lib'}
31833 $as_echo "$as_val"'`
31834 if test "x$as_val" = x""yes; then
31849 # If we found it, no need to search any more.
31850 if test "$result" = "yes"; then
31855 test "$found" != "not" && break
31857 test "$found" != "not" && break
31860 # Restore the original values of the flags we tweak.
31861 LDFLAGS="$apu_check_lib_save_ldflags"
31862 CPPFLAGS="$apu_check_lib_save_cppflags"
31869 apu_db_header=$bdb_header
31870 apu_db_lib=$bdb_libname
31874 header="`echo $found | sed -e 's/:.*$//'`"
31875 lib="`echo $found | sed -e 's/^.*://'`"
31878 if test "x$APRUTIL_INCLUDES" = "x"; then
31879 echo " setting APRUTIL_INCLUDES to \"-I$header\""
31880 APRUTIL_INCLUDES="-I$header"
31882 apr_addto_bugger="-I$header"
31883 for i in $apr_addto_bugger; do
31884 apr_addto_duplicate="0"
31885 for j in $APRUTIL_INCLUDES; do
31886 if test "x$i" = "x$j"; then
31887 apr_addto_duplicate="1"
31891 if test $apr_addto_duplicate = "0"; then
31892 echo " adding \"$i\" to APRUTIL_INCLUDES"
31893 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
31899 if test "x$APRUTIL_LDFLAGS" = "x"; then
31900 echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
31901 APRUTIL_LDFLAGS="-L$lib"
31903 apr_addto_bugger="-L$lib"
31904 for i in $apr_addto_bugger; do
31905 apr_addto_duplicate="0"
31906 for j in $APRUTIL_LDFLAGS; do
31907 if test "x$i" = "x$j"; then
31908 apr_addto_duplicate="1"
31912 if test $apr_addto_duplicate = "0"; then
31913 echo " adding \"$i\" to APRUTIL_LDFLAGS"
31914 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
31919 apu_db_header=$bdb_header
31920 apu_db_lib=$bdb_libname
31925 if test "x$APRUTIL_INCLUDES" = "x"; then
31926 echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
31927 APRUTIL_INCLUDES="-I$found/include"
31929 apr_addto_bugger="-I$found/include"
31930 for i in $apr_addto_bugger; do
31931 apr_addto_duplicate="0"
31932 for j in $APRUTIL_INCLUDES; do
31933 if test "x$i" = "x$j"; then
31934 apr_addto_duplicate="1"
31938 if test $apr_addto_duplicate = "0"; then
31939 echo " adding \"$i\" to APRUTIL_INCLUDES"
31940 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
31946 if test "x$APRUTIL_LDFLAGS" = "x"; then
31947 echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
31948 APRUTIL_LDFLAGS="-L$found/lib"
31950 apr_addto_bugger="-L$found/lib"
31951 for i in $apr_addto_bugger; do
31952 apr_addto_duplicate="0"
31953 for j in $APRUTIL_LDFLAGS; do
31954 if test "x$i" = "x$j"; then
31955 apr_addto_duplicate="1"
31959 if test $apr_addto_duplicate = "0"; then
31960 echo " adding \"$i\" to APRUTIL_LDFLAGS"
31961 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
31966 apu_db_header=$bdb_header
31967 apu_db_lib=$bdb_libname
31972 if test "$apu_have_db" = "1"; then
31976 if test "$apu_db_version" != "3"; then
31978 places="$all_places"
31979 if test -z "$places"; then
31984 if test "-1" != "-1"; then
31985 bdb_version="$bdb_version.-1"
31986 if test "-1" != "-1"; then
31987 bdb_version="$bdb_version.-1"
31990 bdb_places="$places"
31991 bdb_default_search_headers="db2/db.h db.h"
31992 bdb_default_search_lib_names="db2 db"
31997 # Save the original values of the flags we tweak.
31998 apu_check_lib_save_libs="$LIBS"
31999 apu_check_lib_save_ldflags="$LDFLAGS"
32000 apu_check_lib_save_cppflags="$CPPFLAGS"
32002 # The variable `found' is the prefix under which we've found
32003 # Berkeley DB, or `not' if we haven't found it anywhere yet.
32005 for bdb_place in $bdb_places; do
32007 LDFLAGS="$apu_check_lib_save_ldflags"
32008 CPPFLAGS="$apu_check_lib_save_cppflags"
32009 case "$bdb_place" in
32011 description="the standard places"
32014 header="`echo $bdb_place | sed -e 's/:.*$//'`"
32015 lib="`echo $bdb_place | sed -e 's/^.*://'`"
32016 CPPFLAGS="$CPPFLAGS -I$header"
32017 LDFLAGS="$LDFLAGS -L$lib"
32018 description="$header and $lib"
32021 if test -d $bdb_place; then
32022 LDFLAGS="$LDFLAGS -L$bdb_place/lib"
32023 CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
32025 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
32026 $as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; }
32027 { $as_echo "$as_me:$LINENO: result: directory not found" >&5
32028 $as_echo "directory not found" >&6; }
32031 description="$bdb_place"
32035 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
32036 # trick to display a message instead.
32037 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
32038 $as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; }
32039 { $as_echo "$as_me:$LINENO: result: " >&5
32042 for bdb_libname in $bdb_default_search_lib_names; do
32043 for bdb_header in $bdb_default_search_headers; do
32044 # Clear the header cache variable for each location
32046 cache_id="`echo ac_cv_header_${bdb_header} \
32047 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
32050 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh`
32051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32052 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
32053 $as_echo_n "checking for $bdb_header... " >&6; }
32054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32055 $as_echo_n "(cached) " >&6
32057 ac_res=`eval 'as_val=${'$as_ac_Header'}
32058 $as_echo "$as_val"'`
32059 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32060 $as_echo "$ac_res" >&6; }
32062 # Is the header compilable?
32063 { $as_echo "$as_me:$LINENO: checking $bdb_header usability" >&5
32064 $as_echo_n "checking $bdb_header usability... " >&6; }
32065 cat >conftest.$ac_ext <<_ACEOF
32068 cat confdefs.h >>conftest.$ac_ext
32069 cat >>conftest.$ac_ext <<_ACEOF
32070 /* end confdefs.h. */
32071 $ac_includes_default
32072 #include <$bdb_header>
32074 rm -f conftest.$ac_objext
32075 if { (ac_try="$ac_compile"
32076 case "(($ac_try" in
32077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32078 *) ac_try_echo=$ac_try;;
32080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32081 $as_echo "$ac_try_echo") >&5
32082 (eval "$ac_compile") 2>conftest.er1
32084 grep -v '^ *+' conftest.er1 >conftest.err
32086 cat conftest.err >&5
32087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32088 (exit $ac_status); } && {
32089 test -z "$ac_c_werror_flag" ||
32090 test ! -s conftest.err
32091 } && test -s conftest.$ac_objext; then
32092 ac_header_compiler=yes
32094 $as_echo "$as_me: failed program was:" >&5
32095 sed 's/^/| /' conftest.$ac_ext >&5
32097 ac_header_compiler=no
32100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32101 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32102 $as_echo "$ac_header_compiler" >&6; }
32104 # Is the header present?
32105 { $as_echo "$as_me:$LINENO: checking $bdb_header presence" >&5
32106 $as_echo_n "checking $bdb_header presence... " >&6; }
32107 cat >conftest.$ac_ext <<_ACEOF
32110 cat confdefs.h >>conftest.$ac_ext
32111 cat >>conftest.$ac_ext <<_ACEOF
32112 /* end confdefs.h. */
32113 #include <$bdb_header>
32115 if { (ac_try="$ac_cpp conftest.$ac_ext"
32116 case "(($ac_try" in
32117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32118 *) ac_try_echo=$ac_try;;
32120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32121 $as_echo "$ac_try_echo") >&5
32122 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32124 grep -v '^ *+' conftest.er1 >conftest.err
32126 cat conftest.err >&5
32127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32128 (exit $ac_status); } >/dev/null && {
32129 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32130 test ! -s conftest.err
32132 ac_header_preproc=yes
32134 $as_echo "$as_me: failed program was:" >&5
32135 sed 's/^/| /' conftest.$ac_ext >&5
32137 ac_header_preproc=no
32140 rm -f conftest.err conftest.$ac_ext
32141 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32142 $as_echo "$ac_header_preproc" >&6; }
32144 # So? What about this header?
32145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32147 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
32148 $as_echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32149 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
32150 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
32151 ac_header_preproc=yes
32154 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
32155 $as_echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
32156 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
32157 $as_echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
32158 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
32159 $as_echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
32160 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
32161 $as_echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
32162 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
32163 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
32164 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
32165 $as_echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
32169 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
32170 $as_echo_n "checking for $bdb_header... " >&6; }
32171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32172 $as_echo_n "(cached) " >&6
32174 eval "$as_ac_Header=\$ac_header_preproc"
32176 ac_res=`eval 'as_val=${'$as_ac_Header'}
32177 $as_echo "$as_val"'`
32178 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32179 $as_echo "$ac_res" >&6; }
32182 as_val=`eval 'as_val=${'$as_ac_Header'}
32183 $as_echo "$as_val"'`
32184 if test "x$as_val" = x""yes; then
32186 if test "2" = "3" -o "2" = "4"; then
32187 # We generate a separate cache variable for each prefix and libname
32188 # we search under. That way, we avoid caching information that
32189 # changes if the user runs `configure' with a different set of
32192 cache_id="`echo apu_cv_check_berkeley_db_2_-1_-1_${bdb_header}_${bdb_libname}_in_${bdb_place} \
32193 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
32196 { $as_echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
32197 $as_echo_n "checking for -l$bdb_libname... " >&6; }
32198 if { as_var=$cache_id; eval "test \"\${$as_var+set}\" = set"; }; then
32199 $as_echo_n "(cached) " >&6
32203 apu_try_berkeley_db_save_libs="$LIBS"
32205 apu_check_berkeley_db_major=2
32206 apu_check_berkeley_db_minor=-1
32207 apu_check_berkeley_db_patch=-1
32208 apu_try_berkeley_db_header=$bdb_header
32209 apu_try_berkeley_db_libname=$bdb_libname
32211 LIBS="$LIBS -l$apu_try_berkeley_db_libname"
32212 if test "$cross_compiling" = yes; then
32213 apu_try_berkeley_db=yes
32216 cat >conftest.$ac_ext <<_ACEOF
32219 cat confdefs.h >>conftest.$ac_ext
32220 cat >>conftest.$ac_ext <<_ACEOF
32221 /* end confdefs.h. */
32223 #include <stdlib.h>
32225 #include <$apu_try_berkeley_db_header>
32228 int major, minor, patch;
32230 db_version(&major, &minor, &patch);
32232 /* Sanity check: ensure that db.h constants actually match the db library */
32233 if (major != DB_VERSION_MAJOR
32234 || minor != DB_VERSION_MINOR
32235 || patch != DB_VERSION_PATCH)
32238 /* Run-time check: ensure the library claims to be the correct version. */
32240 if ($apu_check_berkeley_db_major != -1) {
32241 if (major < $apu_check_berkeley_db_major)
32243 if (major > $apu_check_berkeley_db_major)
32247 if ($apu_check_berkeley_db_minor != -1) {
32248 if (minor < $apu_check_berkeley_db_minor)
32250 if (minor > $apu_check_berkeley_db_minor)
32254 if ($apu_check_berkeley_db_patch == -1
32255 || patch >= $apu_check_berkeley_db_patch)
32262 rm -f conftest$ac_exeext
32263 if { (ac_try="$ac_link"
32264 case "(($ac_try" in
32265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32266 *) ac_try_echo=$ac_try;;
32268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32269 $as_echo "$ac_try_echo") >&5
32270 (eval "$ac_link") 2>&5
32272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32273 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32274 { (case "(($ac_try" in
32275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32276 *) ac_try_echo=$ac_try;;
32278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32279 $as_echo "$ac_try_echo") >&5
32280 (eval "$ac_try") 2>&5
32282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32283 (exit $ac_status); }; }; then
32284 apu_try_berkeley_db=yes
32286 $as_echo "$as_me: program exited with status $ac_status" >&5
32287 $as_echo "$as_me: failed program was:" >&5
32288 sed 's/^/| /' conftest.$ac_ext >&5
32290 ( exit $ac_status )
32291 apu_try_berkeley_db=no
32293 rm -rf conftest.dSYM
32294 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32299 LIBS="$apu_try_berkeley_db_save_libs"
32302 eval "$cache_id=$apu_try_berkeley_db"
32306 result="`eval echo '$'$cache_id`"
32307 { $as_echo "$as_me:$LINENO: result: $result" >&5
32308 $as_echo "$result" >&6; }
32309 elif test "2" = "1"; then
32310 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
32311 { $as_echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
32312 $as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; }
32313 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
32314 $as_echo_n "(cached) " >&6
32316 ac_check_lib_save_LIBS=$LIBS
32317 LIBS="-l$bdb_libname $LIBS"
32318 cat >conftest.$ac_ext <<_ACEOF
32321 cat confdefs.h >>conftest.$ac_ext
32322 cat >>conftest.$ac_ext <<_ACEOF
32323 /* end confdefs.h. */
32325 /* Override any GCC internal prototype to avoid an error.
32326 Use char because int might match the return type of a GCC
32327 builtin and then its argument prototype would still apply. */
32340 rm -f conftest.$ac_objext conftest$ac_exeext
32341 if { (ac_try="$ac_link"
32342 case "(($ac_try" in
32343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32344 *) ac_try_echo=$ac_try;;
32346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32347 $as_echo "$ac_try_echo") >&5
32348 (eval "$ac_link") 2>conftest.er1
32350 grep -v '^ *+' conftest.er1 >conftest.err
32352 cat conftest.err >&5
32353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32354 (exit $ac_status); } && {
32355 test -z "$ac_c_werror_flag" ||
32356 test ! -s conftest.err
32357 } && test -s conftest$ac_exeext && {
32358 test "$cross_compiling" = yes ||
32359 $as_test_x conftest$ac_exeext
32361 eval "$as_ac_Lib=yes"
32363 $as_echo "$as_me: failed program was:" >&5
32364 sed 's/^/| /' conftest.$ac_ext >&5
32366 eval "$as_ac_Lib=no"
32369 rm -rf conftest.dSYM
32370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32371 conftest$ac_exeext conftest.$ac_ext
32372 LIBS=$ac_check_lib_save_LIBS
32374 ac_res=`eval 'as_val=${'$as_ac_Lib'}
32375 $as_echo "$as_val"'`
32376 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32377 $as_echo "$ac_res" >&6; }
32378 as_val=`eval 'as_val=${'$as_ac_Lib'}
32379 $as_echo "$as_val"'`
32380 if test "x$as_val" = x""yes; then
32387 elif test "2" = "2"; then
32388 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
32389 { $as_echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
32390 $as_echo_n "checking for db_open in -l$bdb_libname... " >&6; }
32391 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
32392 $as_echo_n "(cached) " >&6
32394 ac_check_lib_save_LIBS=$LIBS
32395 LIBS="-l$bdb_libname $LIBS"
32396 cat >conftest.$ac_ext <<_ACEOF
32399 cat confdefs.h >>conftest.$ac_ext
32400 cat >>conftest.$ac_ext <<_ACEOF
32401 /* end confdefs.h. */
32403 /* Override any GCC internal prototype to avoid an error.
32404 Use char because int might match the return type of a GCC
32405 builtin and then its argument prototype would still apply. */
32418 rm -f conftest.$ac_objext conftest$ac_exeext
32419 if { (ac_try="$ac_link"
32420 case "(($ac_try" in
32421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32422 *) ac_try_echo=$ac_try;;
32424 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32425 $as_echo "$ac_try_echo") >&5
32426 (eval "$ac_link") 2>conftest.er1
32428 grep -v '^ *+' conftest.er1 >conftest.err
32430 cat conftest.err >&5
32431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32432 (exit $ac_status); } && {
32433 test -z "$ac_c_werror_flag" ||
32434 test ! -s conftest.err
32435 } && test -s conftest$ac_exeext && {
32436 test "$cross_compiling" = yes ||
32437 $as_test_x conftest$ac_exeext
32439 eval "$as_ac_Lib=yes"
32441 $as_echo "$as_me: failed program was:" >&5
32442 sed 's/^/| /' conftest.$ac_ext >&5
32444 eval "$as_ac_Lib=no"
32447 rm -rf conftest.dSYM
32448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32449 conftest$ac_exeext conftest.$ac_ext
32450 LIBS=$ac_check_lib_save_LIBS
32452 ac_res=`eval 'as_val=${'$as_ac_Lib'}
32453 $as_echo "$as_val"'`
32454 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32455 $as_echo "$ac_res" >&6; }
32456 as_val=`eval 'as_val=${'$as_ac_Lib'}
32457 $as_echo "$as_val"'`
32458 if test "x$as_val" = x""yes; then
32473 # If we found it, no need to search any more.
32474 if test "$result" = "yes"; then
32479 test "$found" != "not" && break
32481 test "$found" != "not" && break
32484 # Restore the original values of the flags we tweak.
32485 LDFLAGS="$apu_check_lib_save_ldflags"
32486 CPPFLAGS="$apu_check_lib_save_cppflags"
32493 apu_db_header=$bdb_header
32494 apu_db_lib=$bdb_libname
32498 header="`echo $found | sed -e 's/:.*$//'`"
32499 lib="`echo $found | sed -e 's/^.*://'`"
32502 if test "x$APRUTIL_INCLUDES" = "x"; then
32503 echo " setting APRUTIL_INCLUDES to \"-I$header\""
32504 APRUTIL_INCLUDES="-I$header"
32506 apr_addto_bugger="-I$header"
32507 for i in $apr_addto_bugger; do
32508 apr_addto_duplicate="0"
32509 for j in $APRUTIL_INCLUDES; do
32510 if test "x$i" = "x$j"; then
32511 apr_addto_duplicate="1"
32515 if test $apr_addto_duplicate = "0"; then
32516 echo " adding \"$i\" to APRUTIL_INCLUDES"
32517 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
32523 if test "x$APRUTIL_LDFLAGS" = "x"; then
32524 echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
32525 APRUTIL_LDFLAGS="-L$lib"
32527 apr_addto_bugger="-L$lib"
32528 for i in $apr_addto_bugger; do
32529 apr_addto_duplicate="0"
32530 for j in $APRUTIL_LDFLAGS; do
32531 if test "x$i" = "x$j"; then
32532 apr_addto_duplicate="1"
32536 if test $apr_addto_duplicate = "0"; then
32537 echo " adding \"$i\" to APRUTIL_LDFLAGS"
32538 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
32543 apu_db_header=$bdb_header
32544 apu_db_lib=$bdb_libname
32549 if test "x$APRUTIL_INCLUDES" = "x"; then
32550 echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
32551 APRUTIL_INCLUDES="-I$found/include"
32553 apr_addto_bugger="-I$found/include"
32554 for i in $apr_addto_bugger; do
32555 apr_addto_duplicate="0"
32556 for j in $APRUTIL_INCLUDES; do
32557 if test "x$i" = "x$j"; then
32558 apr_addto_duplicate="1"
32562 if test $apr_addto_duplicate = "0"; then
32563 echo " adding \"$i\" to APRUTIL_INCLUDES"
32564 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
32570 if test "x$APRUTIL_LDFLAGS" = "x"; then
32571 echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
32572 APRUTIL_LDFLAGS="-L$found/lib"
32574 apr_addto_bugger="-L$found/lib"
32575 for i in $apr_addto_bugger; do
32576 apr_addto_duplicate="0"
32577 for j in $APRUTIL_LDFLAGS; do
32578 if test "x$i" = "x$j"; then
32579 apr_addto_duplicate="1"
32583 if test $apr_addto_duplicate = "0"; then
32584 echo " adding \"$i\" to APRUTIL_LDFLAGS"
32585 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
32590 apu_db_header=$bdb_header
32591 apu_db_lib=$bdb_libname
32596 if test "$apu_have_db" = "1"; then
32600 if test "$apu_db_version" != "2"; then
32602 places="$all_places"
32603 if test -z "$places"; then
32608 if test "0" != "-1"; then
32609 bdb_version="$bdb_version.0"
32610 if test "0" != "-1"; then
32611 bdb_version="$bdb_version.0"
32614 bdb_places="$places"
32615 bdb_default_search_headers="db1/db.h db.h"
32616 bdb_default_search_lib_names="db1"
32621 # Save the original values of the flags we tweak.
32622 apu_check_lib_save_libs="$LIBS"
32623 apu_check_lib_save_ldflags="$LDFLAGS"
32624 apu_check_lib_save_cppflags="$CPPFLAGS"
32626 # The variable `found' is the prefix under which we've found
32627 # Berkeley DB, or `not' if we haven't found it anywhere yet.
32629 for bdb_place in $bdb_places; do
32631 LDFLAGS="$apu_check_lib_save_ldflags"
32632 CPPFLAGS="$apu_check_lib_save_cppflags"
32633 case "$bdb_place" in
32635 description="the standard places"
32638 header="`echo $bdb_place | sed -e 's/:.*$//'`"
32639 lib="`echo $bdb_place | sed -e 's/^.*://'`"
32640 CPPFLAGS="$CPPFLAGS -I$header"
32641 LDFLAGS="$LDFLAGS -L$lib"
32642 description="$header and $lib"
32645 if test -d $bdb_place; then
32646 LDFLAGS="$LDFLAGS -L$bdb_place/lib"
32647 CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
32649 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
32650 $as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; }
32651 { $as_echo "$as_me:$LINENO: result: directory not found" >&5
32652 $as_echo "directory not found" >&6; }
32655 description="$bdb_place"
32659 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
32660 # trick to display a message instead.
32661 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
32662 $as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; }
32663 { $as_echo "$as_me:$LINENO: result: " >&5
32666 for bdb_libname in $bdb_default_search_lib_names; do
32667 for bdb_header in $bdb_default_search_headers; do
32668 # Clear the header cache variable for each location
32670 cache_id="`echo ac_cv_header_${bdb_header} \
32671 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
32674 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh`
32675 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32676 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
32677 $as_echo_n "checking for $bdb_header... " >&6; }
32678 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32679 $as_echo_n "(cached) " >&6
32681 ac_res=`eval 'as_val=${'$as_ac_Header'}
32682 $as_echo "$as_val"'`
32683 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32684 $as_echo "$ac_res" >&6; }
32686 # Is the header compilable?
32687 { $as_echo "$as_me:$LINENO: checking $bdb_header usability" >&5
32688 $as_echo_n "checking $bdb_header usability... " >&6; }
32689 cat >conftest.$ac_ext <<_ACEOF
32692 cat confdefs.h >>conftest.$ac_ext
32693 cat >>conftest.$ac_ext <<_ACEOF
32694 /* end confdefs.h. */
32695 $ac_includes_default
32696 #include <$bdb_header>
32698 rm -f conftest.$ac_objext
32699 if { (ac_try="$ac_compile"
32700 case "(($ac_try" in
32701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32702 *) ac_try_echo=$ac_try;;
32704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32705 $as_echo "$ac_try_echo") >&5
32706 (eval "$ac_compile") 2>conftest.er1
32708 grep -v '^ *+' conftest.er1 >conftest.err
32710 cat conftest.err >&5
32711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32712 (exit $ac_status); } && {
32713 test -z "$ac_c_werror_flag" ||
32714 test ! -s conftest.err
32715 } && test -s conftest.$ac_objext; then
32716 ac_header_compiler=yes
32718 $as_echo "$as_me: failed program was:" >&5
32719 sed 's/^/| /' conftest.$ac_ext >&5
32721 ac_header_compiler=no
32724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32725 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32726 $as_echo "$ac_header_compiler" >&6; }
32728 # Is the header present?
32729 { $as_echo "$as_me:$LINENO: checking $bdb_header presence" >&5
32730 $as_echo_n "checking $bdb_header presence... " >&6; }
32731 cat >conftest.$ac_ext <<_ACEOF
32734 cat confdefs.h >>conftest.$ac_ext
32735 cat >>conftest.$ac_ext <<_ACEOF
32736 /* end confdefs.h. */
32737 #include <$bdb_header>
32739 if { (ac_try="$ac_cpp conftest.$ac_ext"
32740 case "(($ac_try" in
32741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32742 *) ac_try_echo=$ac_try;;
32744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32745 $as_echo "$ac_try_echo") >&5
32746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32748 grep -v '^ *+' conftest.er1 >conftest.err
32750 cat conftest.err >&5
32751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32752 (exit $ac_status); } >/dev/null && {
32753 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32754 test ! -s conftest.err
32756 ac_header_preproc=yes
32758 $as_echo "$as_me: failed program was:" >&5
32759 sed 's/^/| /' conftest.$ac_ext >&5
32761 ac_header_preproc=no
32764 rm -f conftest.err conftest.$ac_ext
32765 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32766 $as_echo "$ac_header_preproc" >&6; }
32768 # So? What about this header?
32769 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32771 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
32772 $as_echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32773 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
32774 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
32775 ac_header_preproc=yes
32778 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
32779 $as_echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
32780 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
32781 $as_echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
32782 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
32783 $as_echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
32784 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
32785 $as_echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
32786 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
32787 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
32788 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
32789 $as_echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
32793 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
32794 $as_echo_n "checking for $bdb_header... " >&6; }
32795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32796 $as_echo_n "(cached) " >&6
32798 eval "$as_ac_Header=\$ac_header_preproc"
32800 ac_res=`eval 'as_val=${'$as_ac_Header'}
32801 $as_echo "$as_val"'`
32802 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32803 $as_echo "$ac_res" >&6; }
32806 as_val=`eval 'as_val=${'$as_ac_Header'}
32807 $as_echo "$as_val"'`
32808 if test "x$as_val" = x""yes; then
32810 if test "1" = "3" -o "1" = "4"; then
32811 # We generate a separate cache variable for each prefix and libname
32812 # we search under. That way, we avoid caching information that
32813 # changes if the user runs `configure' with a different set of
32816 cache_id="`echo apu_cv_check_berkeley_db_1_0_0_${bdb_header}_${bdb_libname}_in_${bdb_place} \
32817 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
32820 { $as_echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
32821 $as_echo_n "checking for -l$bdb_libname... " >&6; }
32822 if { as_var=$cache_id; eval "test \"\${$as_var+set}\" = set"; }; then
32823 $as_echo_n "(cached) " >&6
32827 apu_try_berkeley_db_save_libs="$LIBS"
32829 apu_check_berkeley_db_major=1
32830 apu_check_berkeley_db_minor=0
32831 apu_check_berkeley_db_patch=0
32832 apu_try_berkeley_db_header=$bdb_header
32833 apu_try_berkeley_db_libname=$bdb_libname
32835 LIBS="$LIBS -l$apu_try_berkeley_db_libname"
32836 if test "$cross_compiling" = yes; then
32837 apu_try_berkeley_db=yes
32840 cat >conftest.$ac_ext <<_ACEOF
32843 cat confdefs.h >>conftest.$ac_ext
32844 cat >>conftest.$ac_ext <<_ACEOF
32845 /* end confdefs.h. */
32847 #include <stdlib.h>
32849 #include <$apu_try_berkeley_db_header>
32852 int major, minor, patch;
32854 db_version(&major, &minor, &patch);
32856 /* Sanity check: ensure that db.h constants actually match the db library */
32857 if (major != DB_VERSION_MAJOR
32858 || minor != DB_VERSION_MINOR
32859 || patch != DB_VERSION_PATCH)
32862 /* Run-time check: ensure the library claims to be the correct version. */
32864 if ($apu_check_berkeley_db_major != -1) {
32865 if (major < $apu_check_berkeley_db_major)
32867 if (major > $apu_check_berkeley_db_major)
32871 if ($apu_check_berkeley_db_minor != -1) {
32872 if (minor < $apu_check_berkeley_db_minor)
32874 if (minor > $apu_check_berkeley_db_minor)
32878 if ($apu_check_berkeley_db_patch == -1
32879 || patch >= $apu_check_berkeley_db_patch)
32886 rm -f conftest$ac_exeext
32887 if { (ac_try="$ac_link"
32888 case "(($ac_try" in
32889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32890 *) ac_try_echo=$ac_try;;
32892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32893 $as_echo "$ac_try_echo") >&5
32894 (eval "$ac_link") 2>&5
32896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32897 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32898 { (case "(($ac_try" in
32899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32900 *) ac_try_echo=$ac_try;;
32902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32903 $as_echo "$ac_try_echo") >&5
32904 (eval "$ac_try") 2>&5
32906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32907 (exit $ac_status); }; }; then
32908 apu_try_berkeley_db=yes
32910 $as_echo "$as_me: program exited with status $ac_status" >&5
32911 $as_echo "$as_me: failed program was:" >&5
32912 sed 's/^/| /' conftest.$ac_ext >&5
32914 ( exit $ac_status )
32915 apu_try_berkeley_db=no
32917 rm -rf conftest.dSYM
32918 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32923 LIBS="$apu_try_berkeley_db_save_libs"
32926 eval "$cache_id=$apu_try_berkeley_db"
32930 result="`eval echo '$'$cache_id`"
32931 { $as_echo "$as_me:$LINENO: result: $result" >&5
32932 $as_echo "$result" >&6; }
32933 elif test "1" = "1"; then
32934 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
32935 { $as_echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
32936 $as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; }
32937 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
32938 $as_echo_n "(cached) " >&6
32940 ac_check_lib_save_LIBS=$LIBS
32941 LIBS="-l$bdb_libname $LIBS"
32942 cat >conftest.$ac_ext <<_ACEOF
32945 cat confdefs.h >>conftest.$ac_ext
32946 cat >>conftest.$ac_ext <<_ACEOF
32947 /* end confdefs.h. */
32949 /* Override any GCC internal prototype to avoid an error.
32950 Use char because int might match the return type of a GCC
32951 builtin and then its argument prototype would still apply. */
32964 rm -f conftest.$ac_objext conftest$ac_exeext
32965 if { (ac_try="$ac_link"
32966 case "(($ac_try" in
32967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32968 *) ac_try_echo=$ac_try;;
32970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32971 $as_echo "$ac_try_echo") >&5
32972 (eval "$ac_link") 2>conftest.er1
32974 grep -v '^ *+' conftest.er1 >conftest.err
32976 cat conftest.err >&5
32977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32978 (exit $ac_status); } && {
32979 test -z "$ac_c_werror_flag" ||
32980 test ! -s conftest.err
32981 } && test -s conftest$ac_exeext && {
32982 test "$cross_compiling" = yes ||
32983 $as_test_x conftest$ac_exeext
32985 eval "$as_ac_Lib=yes"
32987 $as_echo "$as_me: failed program was:" >&5
32988 sed 's/^/| /' conftest.$ac_ext >&5
32990 eval "$as_ac_Lib=no"
32993 rm -rf conftest.dSYM
32994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32995 conftest$ac_exeext conftest.$ac_ext
32996 LIBS=$ac_check_lib_save_LIBS
32998 ac_res=`eval 'as_val=${'$as_ac_Lib'}
32999 $as_echo "$as_val"'`
33000 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33001 $as_echo "$ac_res" >&6; }
33002 as_val=`eval 'as_val=${'$as_ac_Lib'}
33003 $as_echo "$as_val"'`
33004 if test "x$as_val" = x""yes; then
33011 elif test "1" = "2"; then
33012 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
33013 { $as_echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
33014 $as_echo_n "checking for db_open in -l$bdb_libname... " >&6; }
33015 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
33016 $as_echo_n "(cached) " >&6
33018 ac_check_lib_save_LIBS=$LIBS
33019 LIBS="-l$bdb_libname $LIBS"
33020 cat >conftest.$ac_ext <<_ACEOF
33023 cat confdefs.h >>conftest.$ac_ext
33024 cat >>conftest.$ac_ext <<_ACEOF
33025 /* end confdefs.h. */
33027 /* Override any GCC internal prototype to avoid an error.
33028 Use char because int might match the return type of a GCC
33029 builtin and then its argument prototype would still apply. */
33042 rm -f conftest.$ac_objext conftest$ac_exeext
33043 if { (ac_try="$ac_link"
33044 case "(($ac_try" in
33045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33046 *) ac_try_echo=$ac_try;;
33048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33049 $as_echo "$ac_try_echo") >&5
33050 (eval "$ac_link") 2>conftest.er1
33052 grep -v '^ *+' conftest.er1 >conftest.err
33054 cat conftest.err >&5
33055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33056 (exit $ac_status); } && {
33057 test -z "$ac_c_werror_flag" ||
33058 test ! -s conftest.err
33059 } && test -s conftest$ac_exeext && {
33060 test "$cross_compiling" = yes ||
33061 $as_test_x conftest$ac_exeext
33063 eval "$as_ac_Lib=yes"
33065 $as_echo "$as_me: failed program was:" >&5
33066 sed 's/^/| /' conftest.$ac_ext >&5
33068 eval "$as_ac_Lib=no"
33071 rm -rf conftest.dSYM
33072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33073 conftest$ac_exeext conftest.$ac_ext
33074 LIBS=$ac_check_lib_save_LIBS
33076 ac_res=`eval 'as_val=${'$as_ac_Lib'}
33077 $as_echo "$as_val"'`
33078 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33079 $as_echo "$ac_res" >&6; }
33080 as_val=`eval 'as_val=${'$as_ac_Lib'}
33081 $as_echo "$as_val"'`
33082 if test "x$as_val" = x""yes; then
33097 # If we found it, no need to search any more.
33098 if test "$result" = "yes"; then
33103 test "$found" != "not" && break
33105 test "$found" != "not" && break
33108 # Restore the original values of the flags we tweak.
33109 LDFLAGS="$apu_check_lib_save_ldflags"
33110 CPPFLAGS="$apu_check_lib_save_cppflags"
33117 apu_db_header=$bdb_header
33118 apu_db_lib=$bdb_libname
33122 header="`echo $found | sed -e 's/:.*$//'`"
33123 lib="`echo $found | sed -e 's/^.*://'`"
33126 if test "x$APRUTIL_INCLUDES" = "x"; then
33127 echo " setting APRUTIL_INCLUDES to \"-I$header\""
33128 APRUTIL_INCLUDES="-I$header"
33130 apr_addto_bugger="-I$header"
33131 for i in $apr_addto_bugger; do
33132 apr_addto_duplicate="0"
33133 for j in $APRUTIL_INCLUDES; do
33134 if test "x$i" = "x$j"; then
33135 apr_addto_duplicate="1"
33139 if test $apr_addto_duplicate = "0"; then
33140 echo " adding \"$i\" to APRUTIL_INCLUDES"
33141 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
33147 if test "x$APRUTIL_LDFLAGS" = "x"; then
33148 echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
33149 APRUTIL_LDFLAGS="-L$lib"
33151 apr_addto_bugger="-L$lib"
33152 for i in $apr_addto_bugger; do
33153 apr_addto_duplicate="0"
33154 for j in $APRUTIL_LDFLAGS; do
33155 if test "x$i" = "x$j"; then
33156 apr_addto_duplicate="1"
33160 if test $apr_addto_duplicate = "0"; then
33161 echo " adding \"$i\" to APRUTIL_LDFLAGS"
33162 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
33167 apu_db_header=$bdb_header
33168 apu_db_lib=$bdb_libname
33173 if test "x$APRUTIL_INCLUDES" = "x"; then
33174 echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
33175 APRUTIL_INCLUDES="-I$found/include"
33177 apr_addto_bugger="-I$found/include"
33178 for i in $apr_addto_bugger; do
33179 apr_addto_duplicate="0"
33180 for j in $APRUTIL_INCLUDES; do
33181 if test "x$i" = "x$j"; then
33182 apr_addto_duplicate="1"
33186 if test $apr_addto_duplicate = "0"; then
33187 echo " adding \"$i\" to APRUTIL_INCLUDES"
33188 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
33194 if test "x$APRUTIL_LDFLAGS" = "x"; then
33195 echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
33196 APRUTIL_LDFLAGS="-L$found/lib"
33198 apr_addto_bugger="-L$found/lib"
33199 for i in $apr_addto_bugger; do
33200 apr_addto_duplicate="0"
33201 for j in $APRUTIL_LDFLAGS; do
33202 if test "x$i" = "x$j"; then
33203 apr_addto_duplicate="1"
33207 if test $apr_addto_duplicate = "0"; then
33208 echo " adding \"$i\" to APRUTIL_LDFLAGS"
33209 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
33214 apu_db_header=$bdb_header
33215 apu_db_lib=$bdb_libname
33220 if test "$apu_have_db" = "1"; then
33224 if test "$apu_db_version" != "1"; then
33226 places="$all_places"
33227 if test -z "$places"; then
33232 if test "-1" != "-1"; then
33233 bdb_version="$bdb_version.-1"
33234 if test "-1" != "-1"; then
33235 bdb_version="$bdb_version.-1"
33238 bdb_places="$places"
33239 bdb_default_search_headers="db_185.h"
33240 bdb_default_search_lib_names="db"
33245 # Save the original values of the flags we tweak.
33246 apu_check_lib_save_libs="$LIBS"
33247 apu_check_lib_save_ldflags="$LDFLAGS"
33248 apu_check_lib_save_cppflags="$CPPFLAGS"
33250 # The variable `found' is the prefix under which we've found
33251 # Berkeley DB, or `not' if we haven't found it anywhere yet.
33253 for bdb_place in $bdb_places; do
33255 LDFLAGS="$apu_check_lib_save_ldflags"
33256 CPPFLAGS="$apu_check_lib_save_cppflags"
33257 case "$bdb_place" in
33259 description="the standard places"
33262 header="`echo $bdb_place | sed -e 's/:.*$//'`"
33263 lib="`echo $bdb_place | sed -e 's/^.*://'`"
33264 CPPFLAGS="$CPPFLAGS -I$header"
33265 LDFLAGS="$LDFLAGS -L$lib"
33266 description="$header and $lib"
33269 if test -d $bdb_place; then
33270 LDFLAGS="$LDFLAGS -L$bdb_place/lib"
33271 CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
33273 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
33274 $as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; }
33275 { $as_echo "$as_me:$LINENO: result: directory not found" >&5
33276 $as_echo "directory not found" >&6; }
33279 description="$bdb_place"
33283 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
33284 # trick to display a message instead.
33285 { $as_echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
33286 $as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; }
33287 { $as_echo "$as_me:$LINENO: result: " >&5
33290 for bdb_libname in $bdb_default_search_lib_names; do
33291 for bdb_header in $bdb_default_search_headers; do
33292 # Clear the header cache variable for each location
33294 cache_id="`echo ac_cv_header_${bdb_header} \
33295 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
33298 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh`
33299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33300 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
33301 $as_echo_n "checking for $bdb_header... " >&6; }
33302 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33303 $as_echo_n "(cached) " >&6
33305 ac_res=`eval 'as_val=${'$as_ac_Header'}
33306 $as_echo "$as_val"'`
33307 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33308 $as_echo "$ac_res" >&6; }
33310 # Is the header compilable?
33311 { $as_echo "$as_me:$LINENO: checking $bdb_header usability" >&5
33312 $as_echo_n "checking $bdb_header usability... " >&6; }
33313 cat >conftest.$ac_ext <<_ACEOF
33316 cat confdefs.h >>conftest.$ac_ext
33317 cat >>conftest.$ac_ext <<_ACEOF
33318 /* end confdefs.h. */
33319 $ac_includes_default
33320 #include <$bdb_header>
33322 rm -f conftest.$ac_objext
33323 if { (ac_try="$ac_compile"
33324 case "(($ac_try" in
33325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33326 *) ac_try_echo=$ac_try;;
33328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33329 $as_echo "$ac_try_echo") >&5
33330 (eval "$ac_compile") 2>conftest.er1
33332 grep -v '^ *+' conftest.er1 >conftest.err
33334 cat conftest.err >&5
33335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33336 (exit $ac_status); } && {
33337 test -z "$ac_c_werror_flag" ||
33338 test ! -s conftest.err
33339 } && test -s conftest.$ac_objext; then
33340 ac_header_compiler=yes
33342 $as_echo "$as_me: failed program was:" >&5
33343 sed 's/^/| /' conftest.$ac_ext >&5
33345 ac_header_compiler=no
33348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33349 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33350 $as_echo "$ac_header_compiler" >&6; }
33352 # Is the header present?
33353 { $as_echo "$as_me:$LINENO: checking $bdb_header presence" >&5
33354 $as_echo_n "checking $bdb_header presence... " >&6; }
33355 cat >conftest.$ac_ext <<_ACEOF
33358 cat confdefs.h >>conftest.$ac_ext
33359 cat >>conftest.$ac_ext <<_ACEOF
33360 /* end confdefs.h. */
33361 #include <$bdb_header>
33363 if { (ac_try="$ac_cpp conftest.$ac_ext"
33364 case "(($ac_try" in
33365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33366 *) ac_try_echo=$ac_try;;
33368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33369 $as_echo "$ac_try_echo") >&5
33370 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33372 grep -v '^ *+' conftest.er1 >conftest.err
33374 cat conftest.err >&5
33375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33376 (exit $ac_status); } >/dev/null && {
33377 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33378 test ! -s conftest.err
33380 ac_header_preproc=yes
33382 $as_echo "$as_me: failed program was:" >&5
33383 sed 's/^/| /' conftest.$ac_ext >&5
33385 ac_header_preproc=no
33388 rm -f conftest.err conftest.$ac_ext
33389 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33390 $as_echo "$ac_header_preproc" >&6; }
33392 # So? What about this header?
33393 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33395 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
33396 $as_echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33397 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
33398 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
33399 ac_header_preproc=yes
33402 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
33403 $as_echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
33404 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
33405 $as_echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
33406 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
33407 $as_echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
33408 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
33409 $as_echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
33410 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
33411 $as_echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
33412 { $as_echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
33413 $as_echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
33417 { $as_echo "$as_me:$LINENO: checking for $bdb_header" >&5
33418 $as_echo_n "checking for $bdb_header... " >&6; }
33419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33420 $as_echo_n "(cached) " >&6
33422 eval "$as_ac_Header=\$ac_header_preproc"
33424 ac_res=`eval 'as_val=${'$as_ac_Header'}
33425 $as_echo "$as_val"'`
33426 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33427 $as_echo "$ac_res" >&6; }
33430 as_val=`eval 'as_val=${'$as_ac_Header'}
33431 $as_echo "$as_val"'`
33432 if test "x$as_val" = x""yes; then
33434 if test "1" = "3" -o "1" = "4"; then
33435 # We generate a separate cache variable for each prefix and libname
33436 # we search under. That way, we avoid caching information that
33437 # changes if the user runs `configure' with a different set of
33440 cache_id="`echo apu_cv_check_berkeley_db_1_-1_-1_${bdb_header}_${bdb_libname}_in_${bdb_place} \
33441 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
33444 { $as_echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
33445 $as_echo_n "checking for -l$bdb_libname... " >&6; }
33446 if { as_var=$cache_id; eval "test \"\${$as_var+set}\" = set"; }; then
33447 $as_echo_n "(cached) " >&6
33451 apu_try_berkeley_db_save_libs="$LIBS"
33453 apu_check_berkeley_db_major=1
33454 apu_check_berkeley_db_minor=-1
33455 apu_check_berkeley_db_patch=-1
33456 apu_try_berkeley_db_header=$bdb_header
33457 apu_try_berkeley_db_libname=$bdb_libname
33459 LIBS="$LIBS -l$apu_try_berkeley_db_libname"
33460 if test "$cross_compiling" = yes; then
33461 apu_try_berkeley_db=yes
33464 cat >conftest.$ac_ext <<_ACEOF
33467 cat confdefs.h >>conftest.$ac_ext
33468 cat >>conftest.$ac_ext <<_ACEOF
33469 /* end confdefs.h. */
33471 #include <stdlib.h>
33473 #include <$apu_try_berkeley_db_header>
33476 int major, minor, patch;
33478 db_version(&major, &minor, &patch);
33480 /* Sanity check: ensure that db.h constants actually match the db library */
33481 if (major != DB_VERSION_MAJOR
33482 || minor != DB_VERSION_MINOR
33483 || patch != DB_VERSION_PATCH)
33486 /* Run-time check: ensure the library claims to be the correct version. */
33488 if ($apu_check_berkeley_db_major != -1) {
33489 if (major < $apu_check_berkeley_db_major)
33491 if (major > $apu_check_berkeley_db_major)
33495 if ($apu_check_berkeley_db_minor != -1) {
33496 if (minor < $apu_check_berkeley_db_minor)
33498 if (minor > $apu_check_berkeley_db_minor)
33502 if ($apu_check_berkeley_db_patch == -1
33503 || patch >= $apu_check_berkeley_db_patch)
33510 rm -f conftest$ac_exeext
33511 if { (ac_try="$ac_link"
33512 case "(($ac_try" in
33513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33514 *) ac_try_echo=$ac_try;;
33516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33517 $as_echo "$ac_try_echo") >&5
33518 (eval "$ac_link") 2>&5
33520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33521 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33522 { (case "(($ac_try" in
33523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33524 *) ac_try_echo=$ac_try;;
33526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33527 $as_echo "$ac_try_echo") >&5
33528 (eval "$ac_try") 2>&5
33530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33531 (exit $ac_status); }; }; then
33532 apu_try_berkeley_db=yes
33534 $as_echo "$as_me: program exited with status $ac_status" >&5
33535 $as_echo "$as_me: failed program was:" >&5
33536 sed 's/^/| /' conftest.$ac_ext >&5
33538 ( exit $ac_status )
33539 apu_try_berkeley_db=no
33541 rm -rf conftest.dSYM
33542 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33547 LIBS="$apu_try_berkeley_db_save_libs"
33550 eval "$cache_id=$apu_try_berkeley_db"
33554 result="`eval echo '$'$cache_id`"
33555 { $as_echo "$as_me:$LINENO: result: $result" >&5
33556 $as_echo "$result" >&6; }
33557 elif test "1" = "1"; then
33558 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
33559 { $as_echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
33560 $as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; }
33561 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
33562 $as_echo_n "(cached) " >&6
33564 ac_check_lib_save_LIBS=$LIBS
33565 LIBS="-l$bdb_libname $LIBS"
33566 cat >conftest.$ac_ext <<_ACEOF
33569 cat confdefs.h >>conftest.$ac_ext
33570 cat >>conftest.$ac_ext <<_ACEOF
33571 /* end confdefs.h. */
33573 /* Override any GCC internal prototype to avoid an error.
33574 Use char because int might match the return type of a GCC
33575 builtin and then its argument prototype would still apply. */
33588 rm -f conftest.$ac_objext conftest$ac_exeext
33589 if { (ac_try="$ac_link"
33590 case "(($ac_try" in
33591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33592 *) ac_try_echo=$ac_try;;
33594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33595 $as_echo "$ac_try_echo") >&5
33596 (eval "$ac_link") 2>conftest.er1
33598 grep -v '^ *+' conftest.er1 >conftest.err
33600 cat conftest.err >&5
33601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33602 (exit $ac_status); } && {
33603 test -z "$ac_c_werror_flag" ||
33604 test ! -s conftest.err
33605 } && test -s conftest$ac_exeext && {
33606 test "$cross_compiling" = yes ||
33607 $as_test_x conftest$ac_exeext
33609 eval "$as_ac_Lib=yes"
33611 $as_echo "$as_me: failed program was:" >&5
33612 sed 's/^/| /' conftest.$ac_ext >&5
33614 eval "$as_ac_Lib=no"
33617 rm -rf conftest.dSYM
33618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33619 conftest$ac_exeext conftest.$ac_ext
33620 LIBS=$ac_check_lib_save_LIBS
33622 ac_res=`eval 'as_val=${'$as_ac_Lib'}
33623 $as_echo "$as_val"'`
33624 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33625 $as_echo "$ac_res" >&6; }
33626 as_val=`eval 'as_val=${'$as_ac_Lib'}
33627 $as_echo "$as_val"'`
33628 if test "x$as_val" = x""yes; then
33635 elif test "1" = "2"; then
33636 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
33637 { $as_echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
33638 $as_echo_n "checking for db_open in -l$bdb_libname... " >&6; }
33639 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
33640 $as_echo_n "(cached) " >&6
33642 ac_check_lib_save_LIBS=$LIBS
33643 LIBS="-l$bdb_libname $LIBS"
33644 cat >conftest.$ac_ext <<_ACEOF
33647 cat confdefs.h >>conftest.$ac_ext
33648 cat >>conftest.$ac_ext <<_ACEOF
33649 /* end confdefs.h. */
33651 /* Override any GCC internal prototype to avoid an error.
33652 Use char because int might match the return type of a GCC
33653 builtin and then its argument prototype would still apply. */
33666 rm -f conftest.$ac_objext conftest$ac_exeext
33667 if { (ac_try="$ac_link"
33668 case "(($ac_try" in
33669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33670 *) ac_try_echo=$ac_try;;
33672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33673 $as_echo "$ac_try_echo") >&5
33674 (eval "$ac_link") 2>conftest.er1
33676 grep -v '^ *+' conftest.er1 >conftest.err
33678 cat conftest.err >&5
33679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33680 (exit $ac_status); } && {
33681 test -z "$ac_c_werror_flag" ||
33682 test ! -s conftest.err
33683 } && test -s conftest$ac_exeext && {
33684 test "$cross_compiling" = yes ||
33685 $as_test_x conftest$ac_exeext
33687 eval "$as_ac_Lib=yes"
33689 $as_echo "$as_me: failed program was:" >&5
33690 sed 's/^/| /' conftest.$ac_ext >&5
33692 eval "$as_ac_Lib=no"
33695 rm -rf conftest.dSYM
33696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33697 conftest$ac_exeext conftest.$ac_ext
33698 LIBS=$ac_check_lib_save_LIBS
33700 ac_res=`eval 'as_val=${'$as_ac_Lib'}
33701 $as_echo "$as_val"'`
33702 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33703 $as_echo "$ac_res" >&6; }
33704 as_val=`eval 'as_val=${'$as_ac_Lib'}
33705 $as_echo "$as_val"'`
33706 if test "x$as_val" = x""yes; then
33721 # If we found it, no need to search any more.
33722 if test "$result" = "yes"; then
33727 test "$found" != "not" && break
33729 test "$found" != "not" && break
33732 # Restore the original values of the flags we tweak.
33733 LDFLAGS="$apu_check_lib_save_ldflags"
33734 CPPFLAGS="$apu_check_lib_save_cppflags"
33741 apu_db_header=$bdb_header
33742 apu_db_lib=$bdb_libname
33746 header="`echo $found | sed -e 's/:.*$//'`"
33747 lib="`echo $found | sed -e 's/^.*://'`"
33750 if test "x$APRUTIL_INCLUDES" = "x"; then
33751 echo " setting APRUTIL_INCLUDES to \"-I$header\""
33752 APRUTIL_INCLUDES="-I$header"
33754 apr_addto_bugger="-I$header"
33755 for i in $apr_addto_bugger; do
33756 apr_addto_duplicate="0"
33757 for j in $APRUTIL_INCLUDES; do
33758 if test "x$i" = "x$j"; then
33759 apr_addto_duplicate="1"
33763 if test $apr_addto_duplicate = "0"; then
33764 echo " adding \"$i\" to APRUTIL_INCLUDES"
33765 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
33771 if test "x$APRUTIL_LDFLAGS" = "x"; then
33772 echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
33773 APRUTIL_LDFLAGS="-L$lib"
33775 apr_addto_bugger="-L$lib"
33776 for i in $apr_addto_bugger; do
33777 apr_addto_duplicate="0"
33778 for j in $APRUTIL_LDFLAGS; do
33779 if test "x$i" = "x$j"; then
33780 apr_addto_duplicate="1"
33784 if test $apr_addto_duplicate = "0"; then
33785 echo " adding \"$i\" to APRUTIL_LDFLAGS"
33786 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
33791 apu_db_header=$bdb_header
33792 apu_db_lib=$bdb_libname
33797 if test "x$APRUTIL_INCLUDES" = "x"; then
33798 echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
33799 APRUTIL_INCLUDES="-I$found/include"
33801 apr_addto_bugger="-I$found/include"
33802 for i in $apr_addto_bugger; do
33803 apr_addto_duplicate="0"
33804 for j in $APRUTIL_INCLUDES; do
33805 if test "x$i" = "x$j"; then
33806 apr_addto_duplicate="1"
33810 if test $apr_addto_duplicate = "0"; then
33811 echo " adding \"$i\" to APRUTIL_INCLUDES"
33812 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
33818 if test "x$APRUTIL_LDFLAGS" = "x"; then
33819 echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
33820 APRUTIL_LDFLAGS="-L$found/lib"
33822 apr_addto_bugger="-L$found/lib"
33823 for i in $apr_addto_bugger; do
33824 apr_addto_duplicate="0"
33825 for j in $APRUTIL_LDFLAGS; do
33826 if test "x$i" = "x$j"; then
33827 apr_addto_duplicate="1"
33831 if test $apr_addto_duplicate = "0"; then
33832 echo " adding \"$i\" to APRUTIL_LDFLAGS"
33833 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
33838 apu_db_header=$bdb_header
33839 apu_db_lib=$bdb_libname
33844 if test "$apu_have_db" = "1"; then
33860 { $as_echo "$as_me:$LINENO: checking for Berkeley DB" >&5
33861 $as_echo_n "checking for Berkeley DB... " >&6; }
33862 if test "$apu_have_db" = "1"; then
33863 { $as_echo "$as_me:$LINENO: result: found db$apu_db_version" >&5
33864 $as_echo "found db$apu_db_version" >&6; }
33866 { $as_echo "$as_me:$LINENO: result: not found" >&5
33867 $as_echo "not found" >&6; }
33873 if test "$apu_have_db" = "0"; then
33874 { { $as_echo "$as_me:$LINENO: error: Berkeley DB not found." >&5
33875 $as_echo "$as_me: error: Berkeley DB not found." >&2;}
33876 { (exit 1); exit 1; }; }
33883 if test -n "$apu_db_xtra_libs"; then
33884 LIBS="$saveddbxtralibs"
33887 case "$requested" in
33890 apu_default_dbm=sdbm
33894 apu_default_dbm=gdbm
33898 apu_default_dbm=ndbm
33906 apu_default_dbm=db1
33910 apu_default_dbm=db185
33914 apu_default_dbm=db2
33918 apu_default_dbm=db3
33922 apu_default_dbm=db4
33926 apu_default_dbm=db4
33930 apu_default_dbm=db4
33934 apu_default_dbm=db4
33938 apu_default_dbm=db4
33942 apu_default_dbm=db4
33946 apu_default_dbm=db4
33950 apu_default_dbm=db4
33954 apu_default_dbm=db4
33957 apu_default_dbm="sdbm (default)"
33961 { { $as_echo "$as_me:$LINENO: error: --with-dbm=$look_for is an unknown DBM type.
33962 Use one of: sdbm, gdbm, ndbm, db, db1, db185, db2, db3, db4, db41, db42, db43, db44, db45, db46, db47, db48" >&5
33963 $as_echo "$as_me: error: --with-dbm=$look_for is an unknown DBM type.
33964 Use one of: sdbm, gdbm, ndbm, db, db1, db185, db2, db3, db4, db41, db42, db43, db44, db45, db46, db47, db48" >&2;}
33965 { (exit 1); exit 1; }; }
33969 { $as_echo "$as_me:$LINENO: checking for default DBM" >&5
33970 $as_echo_n "checking for default DBM... " >&6; }
33971 { $as_echo "$as_me:$LINENO: result: $apu_default_dbm" >&5
33972 $as_echo "$apu_default_dbm" >&6; }
33986 if test "$apu_have_gdbm" = "1"; then
33988 if test "x$APRUTIL_EXPORT_LIBS" = "x"; then
33989 echo " setting APRUTIL_EXPORT_LIBS to \"-lgdbm\""
33990 APRUTIL_EXPORT_LIBS="-lgdbm"
33992 apr_addto_bugger="-lgdbm"
33993 for i in $apr_addto_bugger; do
33994 apr_addto_duplicate="0"
33995 for j in $APRUTIL_EXPORT_LIBS; do
33996 if test "x$i" = "x$j"; then
33997 apr_addto_duplicate="1"
34001 if test $apr_addto_duplicate = "0"; then
34002 echo " adding \"$i\" to APRUTIL_EXPORT_LIBS"
34003 APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $i"
34009 if test "x$APRUTIL_LIBS" = "x"; then
34010 echo " setting APRUTIL_LIBS to \"-lgdbm\""
34011 APRUTIL_LIBS="-lgdbm"
34013 apr_addto_bugger="-lgdbm"
34014 for i in $apr_addto_bugger; do
34015 apr_addto_duplicate="0"
34016 for j in $APRUTIL_LIBS; do
34017 if test "x$i" = "x$j"; then
34018 apr_addto_duplicate="1"
34022 if test $apr_addto_duplicate = "0"; then
34023 echo " adding \"$i\" to APRUTIL_LIBS"
34024 APRUTIL_LIBS="$APRUTIL_LIBS $i"
34031 if test "$apu_have_ndbm" = "1"; then
34033 if test "x$APRUTIL_EXPORT_LIBS" = "x"; then
34034 echo " setting APRUTIL_EXPORT_LIBS to \"-l$apu_ndbm_lib\""
34035 APRUTIL_EXPORT_LIBS="-l$apu_ndbm_lib"
34037 apr_addto_bugger="-l$apu_ndbm_lib"
34038 for i in $apr_addto_bugger; do
34039 apr_addto_duplicate="0"
34040 for j in $APRUTIL_EXPORT_LIBS; do
34041 if test "x$i" = "x$j"; then
34042 apr_addto_duplicate="1"
34046 if test $apr_addto_duplicate = "0"; then
34047 echo " adding \"$i\" to APRUTIL_EXPORT_LIBS"
34048 APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $i"
34054 if test "x$APRUTIL_LIBS" = "x"; then
34055 echo " setting APRUTIL_LIBS to \"-l$apu_ndbm_lib\""
34056 APRUTIL_LIBS="-l$apu_ndbm_lib"
34058 apr_addto_bugger="-l$apu_ndbm_lib"
34059 for i in $apr_addto_bugger; do
34060 apr_addto_duplicate="0"
34061 for j in $APRUTIL_LIBS; do
34062 if test "x$i" = "x$j"; then
34063 apr_addto_duplicate="1"
34067 if test $apr_addto_duplicate = "0"; then
34068 echo " adding \"$i\" to APRUTIL_LIBS"
34069 APRUTIL_LIBS="$APRUTIL_LIBS $i"
34076 if test "$apu_have_db" = "1"; then
34078 if test "x$APRUTIL_EXPORT_LIBS" = "x"; then
34079 echo " setting APRUTIL_EXPORT_LIBS to \"-l$apu_db_lib\""
34080 APRUTIL_EXPORT_LIBS="-l$apu_db_lib"
34082 apr_addto_bugger="-l$apu_db_lib"
34083 for i in $apr_addto_bugger; do
34084 apr_addto_duplicate="0"
34085 for j in $APRUTIL_EXPORT_LIBS; do
34086 if test "x$i" = "x$j"; then
34087 apr_addto_duplicate="1"
34091 if test $apr_addto_duplicate = "0"; then
34092 echo " adding \"$i\" to APRUTIL_EXPORT_LIBS"
34093 APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $i"
34099 if test "x$APRUTIL_LIBS" = "x"; then
34100 echo " setting APRUTIL_LIBS to \"-l$apu_db_lib\""
34101 APRUTIL_LIBS="-l$apu_db_lib"
34103 apr_addto_bugger="-l$apu_db_lib"
34104 for i in $apr_addto_bugger; do
34105 apr_addto_duplicate="0"
34106 for j in $APRUTIL_LIBS; do
34107 if test "x$i" = "x$j"; then
34108 apr_addto_duplicate="1"
34112 if test $apr_addto_duplicate = "0"; then
34113 echo " adding \"$i\" to APRUTIL_LIBS"
34114 APRUTIL_LIBS="$APRUTIL_LIBS $i"
34119 if test -n "apu_db_xtra_libs"; then
34121 if test "x$APRUTIL_EXPORT_LIBS" = "x"; then
34122 echo " setting APRUTIL_EXPORT_LIBS to \"$apu_db_xtra_libs\""
34123 APRUTIL_EXPORT_LIBS="$apu_db_xtra_libs"
34125 apr_addto_bugger="$apu_db_xtra_libs"
34126 for i in $apr_addto_bugger; do
34127 apr_addto_duplicate="0"
34128 for j in $APRUTIL_EXPORT_LIBS; do
34129 if test "x$i" = "x$j"; then
34130 apr_addto_duplicate="1"
34134 if test $apr_addto_duplicate = "0"; then
34135 echo " adding \"$i\" to APRUTIL_EXPORT_LIBS"
34136 APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $i"
34142 if test "x$APRUTIL_LIBS" = "x"; then
34143 echo " setting APRUTIL_LIBS to \"$apu_db_xtra_libs\""
34144 APRUTIL_LIBS="$apu_db_xtra_libs"
34146 apr_addto_bugger="$apu_db_xtra_libs"
34147 for i in $apr_addto_bugger; do
34148 apr_addto_duplicate="0"
34149 for j in $APRUTIL_LIBS; do
34150 if test "x$i" = "x$j"; then
34151 apr_addto_duplicate="1"
34155 if test $apr_addto_duplicate = "0"; then
34156 echo " adding \"$i\" to APRUTIL_LIBS"
34157 APRUTIL_LIBS="$APRUTIL_LIBS $i"
34168 # Check whether --with-expat was given.
34169 if test "${with_expat+set}" = set; then
34170 withval=$with_expat;
34171 if test "$withval" = "yes"; then
34172 { { $as_echo "$as_me:$LINENO: error: a directory must be specified for --with-expat" >&5
34173 $as_echo "$as_me: error: a directory must be specified for --with-expat" >&2;}
34174 { (exit 1); exit 1; }; }
34175 elif test "$withval" = "no"; then
34176 { { $as_echo "$as_me:$LINENO: error: Expat cannot be disabled (at this time)" >&5
34177 $as_echo "$as_me: error: Expat cannot be disabled (at this time)" >&2;}
34178 { (exit 1); exit 1; }; }
34179 elif test "$withval" = "builtin"; then
34180 abs_expatdir="`cd $srcdir/xml/expat && pwd`"
34181 if test -d $abs_expatdir/. -a ! -d xml/expat/.; then
34185 { $as_echo "$as_me:$LINENO: checking for Expat in xml/expat" >&5
34186 $as_echo_n "checking for Expat in xml/expat... " >&6; }
34190 if test -r "$abs_expatdir/lib/expat.h"; then
34191 expat_include_dir="$abs_expatdir/lib"
34192 expat_ldflags="-L$abs_expatdir"
34193 expat_libs="-lexpat"
34194 expat_libtool="$abs_expatdir/libexpat.la"
34195 elif test -r "$abs_expatdir/include/expat.h" -a \
34196 -r "$abs_expatdir/lib/libexpat.la"; then
34197 expat_include_dir="$abs_expatdir/include"
34198 expat_ldflags="-L$abs_expatdir/lib"
34199 expat_libs="-lexpat"
34200 expat_libtool="$abs_expatdir/lib/libexpat.la"
34201 elif test -r "$abs_expatdir/include/expat.h" -a \
34202 -r "$abs_expatdir/lib64/libexpat.la"; then
34203 expat_include_dir="$abs_expatdir/include"
34204 expat_ldflags="-L$abs_expatdir/lib64"
34205 expat_libs="-lexpat"
34206 expat_libtool="$abs_expatdir/lib64/libexpat.la"
34207 elif test -r "$abs_expatdir/include/expat.h" -a \
34208 -r "$abs_expatdir/lib/libexpat.a"; then
34209 expat_include_dir="$abs_expatdir/include"
34210 expat_ldflags="-L$abs_expatdir/lib"
34211 expat_libs="-lexpat"
34212 elif test -r "$abs_expatdir/xmlparse.h"; then
34213 expat_include_dir="$abs_expatdir"
34214 expat_ldflags="-L$abs_expatdir"
34215 expat_libs="-lexpat"
34216 expat_libtool="$abs_expatdir/libexpat.la"
34218 elif test -r "$abs_expatdir/include/xmlparse.h" -a \
34219 -r "$abs_expatdir/lib/libexpat.a"; then
34220 expat_include_dir="$abs_expatdir/include"
34221 expat_ldflags="-L$abs_expatdir/lib"
34222 expat_libs="-lexpat"
34224 elif test -r "$abs_expatdir/include/xml/xmlparse.h" -a \
34225 -r "$abs_expatdir/lib/xml/libexpat.a"; then
34226 expat_include_dir="$abs_expatdir/include/xml"
34227 expat_ldflags="-L$abs_expatdir/lib"
34228 expat_libs="-lexpat"
34230 elif test -r "$abs_expatdir/include/xmltok/xmlparse.h"; then
34231 expat_include_dir="$abs_expatdir/include/xmltok"
34232 expat_ldflags="-L$abs_expatdir/lib"
34233 expat_libs="-lxmlparse -lxmltok"
34235 elif test -r "$abs_expatdir/include/xml/xmlparse.h" -a \
34236 -r "$abs_expatdir/lib/libexpat.a"; then
34237 expat_include_dir="$abs_expatdir/include/xml"
34238 expat_ldflags="-L$abs_expatdir/lib"
34239 expat_libs="-lexpat"
34241 elif test -r "$abs_expatdir/xmlparse/xmlparse.h"; then
34242 expat_include_dir="$abs_expatdir/xmlparse"
34243 expat_ldflags="-L$abs_expatdir"
34244 expat_libs="-lexpat"
34248 if test -n "$expat_include_dir"; then
34249 { $as_echo "$as_me:$LINENO: result: yes" >&5
34250 $as_echo "yes" >&6; }
34252 { $as_echo "$as_me:$LINENO: result: no" >&5
34253 $as_echo "no" >&6; }
34257 abs_expatdir="`cd $withval && pwd`"
34259 { $as_echo "$as_me:$LINENO: checking for Expat in $withval" >&5
34260 $as_echo_n "checking for Expat in $withval... " >&6; }
34264 if test -r "$abs_expatdir/lib/expat.h"; then
34265 expat_include_dir="$abs_expatdir/lib"
34266 expat_ldflags="-L$abs_expatdir"
34267 expat_libs="-lexpat"
34268 expat_libtool="$abs_expatdir/libexpat.la"
34269 elif test -r "$abs_expatdir/include/expat.h" -a \
34270 -r "$abs_expatdir/lib/libexpat.la"; then
34271 expat_include_dir="$abs_expatdir/include"
34272 expat_ldflags="-L$abs_expatdir/lib"
34273 expat_libs="-lexpat"
34274 expat_libtool="$abs_expatdir/lib/libexpat.la"
34275 elif test -r "$abs_expatdir/include/expat.h" -a \
34276 -r "$abs_expatdir/lib64/libexpat.la"; then
34277 expat_include_dir="$abs_expatdir/include"
34278 expat_ldflags="-L$abs_expatdir/lib64"
34279 expat_libs="-lexpat"
34280 expat_libtool="$abs_expatdir/lib64/libexpat.la"
34281 elif test -r "$abs_expatdir/include/expat.h" -a \
34282 -r "$abs_expatdir/lib/libexpat.a"; then
34283 expat_include_dir="$abs_expatdir/include"
34284 expat_ldflags="-L$abs_expatdir/lib"
34285 expat_libs="-lexpat"
34286 elif test -r "$abs_expatdir/xmlparse.h"; then
34287 expat_include_dir="$abs_expatdir"
34288 expat_ldflags="-L$abs_expatdir"
34289 expat_libs="-lexpat"
34290 expat_libtool="$abs_expatdir/libexpat.la"
34292 elif test -r "$abs_expatdir/include/xmlparse.h" -a \
34293 -r "$abs_expatdir/lib/libexpat.a"; then
34294 expat_include_dir="$abs_expatdir/include"
34295 expat_ldflags="-L$abs_expatdir/lib"
34296 expat_libs="-lexpat"
34298 elif test -r "$abs_expatdir/include/xml/xmlparse.h" -a \
34299 -r "$abs_expatdir/lib/xml/libexpat.a"; then
34300 expat_include_dir="$abs_expatdir/include/xml"
34301 expat_ldflags="-L$abs_expatdir/lib"
34302 expat_libs="-lexpat"
34304 elif test -r "$abs_expatdir/include/xmltok/xmlparse.h"; then
34305 expat_include_dir="$abs_expatdir/include/xmltok"
34306 expat_ldflags="-L$abs_expatdir/lib"
34307 expat_libs="-lxmlparse -lxmltok"
34309 elif test -r "$abs_expatdir/include/xml/xmlparse.h" -a \
34310 -r "$abs_expatdir/lib/libexpat.a"; then
34311 expat_include_dir="$abs_expatdir/include/xml"
34312 expat_ldflags="-L$abs_expatdir/lib"
34313 expat_libs="-lexpat"
34315 elif test -r "$abs_expatdir/xmlparse/xmlparse.h"; then
34316 expat_include_dir="$abs_expatdir/xmlparse"
34317 expat_ldflags="-L$abs_expatdir"
34318 expat_libs="-lexpat"
34322 if test -n "$expat_include_dir"; then
34323 { $as_echo "$as_me:$LINENO: result: yes" >&5
34324 $as_echo "yes" >&6; }
34326 { $as_echo "$as_me:$LINENO: result: no" >&5
34327 $as_echo "no" >&6; }
34330 if test -z "$expat_include_dir"; then
34331 { { $as_echo "$as_me:$LINENO: error: Expat was not found (or recognized) in \"$withval\"" >&5
34332 $as_echo "$as_me: error: Expat was not found (or recognized) in \"$withval\"" >&2;}
34333 { (exit 1); exit 1; }; }
34340 if test -z "$expat_include_dir"; then
34341 for d in /usr /usr/local xml/expat-cvs xml/expat $srcdir/xml/expat ; do
34343 { $as_echo "$as_me:$LINENO: checking for Expat in $d" >&5
34344 $as_echo_n "checking for Expat in $d... " >&6; }
34348 if test -r "$d/lib/expat.h"; then
34349 expat_include_dir="$d/lib"
34350 expat_ldflags="-L$d"
34351 expat_libs="-lexpat"
34352 expat_libtool="$d/libexpat.la"
34353 elif test -r "$d/include/expat.h" -a \
34354 -r "$d/lib/libexpat.la"; then
34355 expat_include_dir="$d/include"
34356 expat_ldflags="-L$d/lib"
34357 expat_libs="-lexpat"
34358 expat_libtool="$d/lib/libexpat.la"
34359 elif test -r "$d/include/expat.h" -a \
34360 -r "$d/lib64/libexpat.la"; then
34361 expat_include_dir="$d/include"
34362 expat_ldflags="-L$d/lib64"
34363 expat_libs="-lexpat"
34364 expat_libtool="$d/lib64/libexpat.la"
34365 elif test -r "$d/include/expat.h" -a \
34366 -r "$d/lib/libexpat.a"; then
34367 expat_include_dir="$d/include"
34368 expat_ldflags="-L$d/lib"
34369 expat_libs="-lexpat"
34370 elif test -r "$d/xmlparse.h"; then
34371 expat_include_dir="$d"
34372 expat_ldflags="-L$d"
34373 expat_libs="-lexpat"
34374 expat_libtool="$d/libexpat.la"
34376 elif test -r "$d/include/xmlparse.h" -a \
34377 -r "$d/lib/libexpat.a"; then
34378 expat_include_dir="$d/include"
34379 expat_ldflags="-L$d/lib"
34380 expat_libs="-lexpat"
34382 elif test -r "$d/include/xml/xmlparse.h" -a \
34383 -r "$d/lib/xml/libexpat.a"; then
34384 expat_include_dir="$d/include/xml"
34385 expat_ldflags="-L$d/lib"
34386 expat_libs="-lexpat"
34388 elif test -r "$d/include/xmltok/xmlparse.h"; then
34389 expat_include_dir="$d/include/xmltok"
34390 expat_ldflags="-L$d/lib"
34391 expat_libs="-lxmlparse -lxmltok"
34393 elif test -r "$d/include/xml/xmlparse.h" -a \
34394 -r "$d/lib/libexpat.a"; then
34395 expat_include_dir="$d/include/xml"
34396 expat_ldflags="-L$d/lib"
34397 expat_libs="-lexpat"
34399 elif test -r "$d/xmlparse/xmlparse.h"; then
34400 expat_include_dir="$d/xmlparse"
34401 expat_ldflags="-L$d"
34402 expat_libs="-lexpat"
34406 if test -n "$expat_include_dir"; then
34407 { $as_echo "$as_me:$LINENO: result: yes" >&5
34408 $as_echo "yes" >&6; }
34410 { $as_echo "$as_me:$LINENO: result: no" >&5
34411 $as_echo "no" >&6; }
34414 if test -n "$expat_include_dir"; then
34415 if test "$d" = "/usr"; then
34422 if test -z "$expat_include_dir"; then
34423 { { $as_echo "$as_me:$LINENO: error: could not locate Expat. use --with-expat" >&5
34424 $as_echo "$as_me: error: could not locate Expat. use --with-expat" >&2;}
34425 { (exit 1); exit 1; }; }
34428 if test -z "$expat_libtool"; then
34429 expat_libtool="$expat_ldflags $expat_libs"
34432 if test -n "$expat_old"; then
34434 cat >>confdefs.h <<\_ACEOF
34435 #define APR_HAVE_OLD_EXPAT 1
34440 if test "$expat_include_dir" = "xml/expat/lib" -o "$expat_include_dir" = "xml/expat-cvs/lib"; then
34441 bundled_subdir="`echo $expat_include_dir | sed -e 's%/lib%%'`"
34443 # save our work to this point; this allows the sub-package to use it
34444 cat >confcache <<\_ACEOF
34445 # This file is a shell script that caches the results of configure
34446 # tests run on this system so they can be shared between configure
34447 # scripts and configure runs, see configure's option --config-cache.
34448 # It is not useful on other systems. If it contains results you don't
34449 # want to keep, you may remove or edit it.
34451 # config.status only pays attention to the cache file if you give it
34452 # the --recheck option to rerun configure.
34454 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34455 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34456 # following values.
34460 # The following way of writing the cache mishandles newlines in values,
34461 # but we know of no workaround that is simple, portable, and efficient.
34462 # So, we kill variables containing newlines.
34463 # Ultrix sh set writes to stderr and can't be redirected directly,
34464 # and sets the high bit in the cache file unless we assign to the vars.
34466 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34467 eval ac_val=\$$ac_var
34471 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
34472 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
34475 _ | IFS | as_nl) ;; #(
34476 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
34477 *) $as_unset $ac_var ;;
34483 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34484 *${as_nl}ac_space=\ *)
34485 # `set' does not quote correctly, so add quotes (double-quote
34486 # substitution turns \\\\ into \\, and sed turns \\ into \).
34489 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34492 # `set' quotes correctly as required by POSIX, so do not add quotes.
34493 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34502 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34504 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34506 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34507 if test -w "$cache_file"; then
34508 test "x$cache_file" != "x/dev/null" &&
34509 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
34510 $as_echo "$as_me: updating cache $cache_file" >&6;}
34511 cat confcache >$cache_file
34513 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34514 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34519 echo "configuring package in $bundled_subdir now"
34521 apr_config_subdirs="$bundled_subdir"
34522 test -d $bundled_subdir || $mkdir_p $bundled_subdir
34523 ac_abs_srcdir=`(cd $srcdir/$bundled_subdir && pwd)`
34526 # A "../" for each directory in /$config_subdirs.
34527 ac_dots=`echo $apr_config_subdirs|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
34529 # Make the cache file pathname absolute for the subdirs
34530 # required to correctly handle subdirs that might actually
34532 case "$cache_file" in
34533 /*) # already absolute
34534 ac_sub_cache_file=$cache_file ;;
34535 *) # Was relative path.
34536 ac_sub_cache_file="$ac_popdir/$cache_file" ;;
34539 apr_configure_args=$ac_configure_args
34541 test "x$silent" = "xyes" && apr_configure_args="$apr_configure_args --silent"
34543 apr_configure_args="--disable-option-checking $apr_configure_args"
34545 if eval $SHELL $ac_abs_srcdir/configure $apr_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_abs_srcdir --prefix=$prefix --exec-prefix=$exec_prefix --libdir=$libdir --includedir=$includedir --bindir=$bindir
34547 echo "$bundled_subdir configured properly"
34549 echo "configure failed for $bundled_subdir"
34555 # grab any updates from the sub-package
34556 if test -r "$cache_file"; then
34557 # Some versions of bash will fail to source /dev/null (special
34558 # files actually), so we avoid doing that.
34559 if test -f "$cache_file"; then
34560 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
34561 $as_echo "$as_me: loading cache $cache_file" >&6;}
34562 case $cache_file in
34563 [\\/]* | ?:[\\/]* ) . "$cache_file";;
34564 *) . "./$cache_file";;
34568 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
34569 $as_echo "$as_me: creating cache $cache_file" >&6;}
34574 expat_include_dir=$top_builddir/$bundled_subdir/lib
34575 expat_ldflags="-L$top_builddir/$bundled_subdir/lib"
34576 expat_libs="-lexpat"
34577 expat_libtool=$top_builddir/$bundled_subdir/libexpat.la
34578 APR_XML_SUBDIRS="`echo $bundled_subdir | sed -e 's%xml/%%'`"
34580 if test "x$APRUTIL_EXPORT_LIBS" = "x"; then
34581 echo " setting APRUTIL_EXPORT_LIBS to \"$expat_libtool\""
34582 APRUTIL_EXPORT_LIBS="$expat_libtool"
34584 apr_addto_bugger="$expat_libtool"
34585 for i in $apr_addto_bugger; do
34586 apr_addto_duplicate="0"
34587 for j in $APRUTIL_EXPORT_LIBS; do
34588 if test "x$i" = "x$j"; then
34589 apr_addto_duplicate="1"
34593 if test $apr_addto_duplicate = "0"; then
34594 echo " adding \"$i\" to APRUTIL_EXPORT_LIBS"
34595 APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $i"
34601 if test "$expat_include_dir" = "$abs_srcdir/xml/expat/include" -o "$expat_include_dir" = "$abs_srcdir/xml/expat/lib"; then
34602 bundled_subdir="xml/expat"
34604 # save our work to this point; this allows the sub-package to use it
34605 cat >confcache <<\_ACEOF
34606 # This file is a shell script that caches the results of configure
34607 # tests run on this system so they can be shared between configure
34608 # scripts and configure runs, see configure's option --config-cache.
34609 # It is not useful on other systems. If it contains results you don't
34610 # want to keep, you may remove or edit it.
34612 # config.status only pays attention to the cache file if you give it
34613 # the --recheck option to rerun configure.
34615 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34616 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34617 # following values.
34621 # The following way of writing the cache mishandles newlines in values,
34622 # but we know of no workaround that is simple, portable, and efficient.
34623 # So, we kill variables containing newlines.
34624 # Ultrix sh set writes to stderr and can't be redirected directly,
34625 # and sets the high bit in the cache file unless we assign to the vars.
34627 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34628 eval ac_val=\$$ac_var
34632 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
34633 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
34636 _ | IFS | as_nl) ;; #(
34637 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
34638 *) $as_unset $ac_var ;;
34644 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34645 *${as_nl}ac_space=\ *)
34646 # `set' does not quote correctly, so add quotes (double-quote
34647 # substitution turns \\\\ into \\, and sed turns \\ into \).
34650 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34653 # `set' quotes correctly as required by POSIX, so do not add quotes.
34654 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34663 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34665 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34667 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34668 if test -w "$cache_file"; then
34669 test "x$cache_file" != "x/dev/null" &&
34670 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
34671 $as_echo "$as_me: updating cache $cache_file" >&6;}
34672 cat confcache >$cache_file
34674 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34675 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34680 echo "configuring package in $bundled_subdir now"
34682 apr_config_subdirs="$bundled_subdir"
34683 test -d $bundled_subdir || $mkdir_p $bundled_subdir
34684 ac_abs_srcdir=`(cd $srcdir/$bundled_subdir && pwd)`
34687 # A "../" for each directory in /$config_subdirs.
34688 ac_dots=`echo $apr_config_subdirs|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
34690 # Make the cache file pathname absolute for the subdirs
34691 # required to correctly handle subdirs that might actually
34693 case "$cache_file" in
34694 /*) # already absolute
34695 ac_sub_cache_file=$cache_file ;;
34696 *) # Was relative path.
34697 ac_sub_cache_file="$ac_popdir/$cache_file" ;;
34700 apr_configure_args=$ac_configure_args
34702 test "x$silent" = "xyes" && apr_configure_args="$apr_configure_args --silent"
34704 apr_configure_args="--disable-option-checking $apr_configure_args"
34706 if eval $SHELL $ac_abs_srcdir/configure $apr_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_abs_srcdir --prefix=$prefix --exec-prefix=$exec_prefix --libdir=$libdir --includedir=$includedir --bindir=$bindir
34708 echo "$bundled_subdir configured properly"
34710 echo "configure failed for $bundled_subdir"
34716 # grab any updates from the sub-package
34717 if test -r "$cache_file"; then
34718 # Some versions of bash will fail to source /dev/null (special
34719 # files actually), so we avoid doing that.
34720 if test -f "$cache_file"; then
34721 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
34722 $as_echo "$as_me: loading cache $cache_file" >&6;}
34723 case $cache_file in
34724 [\\/]* | ?:[\\/]* ) . "$cache_file";;
34725 *) . "./$cache_file";;
34729 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
34730 $as_echo "$as_me: creating cache $cache_file" >&6;}
34735 expat_include_dir=$abs_srcdir/$bundled_subdir/lib
34736 expat_ldflags="-L$top_builddir/$bundled_subdir/lib"
34737 expat_libs="-lexpat"
34738 expat_libtool=$top_builddir/$bundled_subdir/libexpat.la
34739 APR_XML_SUBDIRS="`echo $bundled_subdir | sed -e 's%xml/%%'`"
34741 if test "x$APRUTIL_EXPORT_LIBS" = "x"; then
34742 echo " setting APRUTIL_EXPORT_LIBS to \"$expat_libtool\""
34743 APRUTIL_EXPORT_LIBS="$expat_libtool"
34745 apr_addto_bugger="$expat_libtool"
34746 for i in $apr_addto_bugger; do
34747 apr_addto_duplicate="0"
34748 for j in $APRUTIL_EXPORT_LIBS; do
34749 if test "x$i" = "x$j"; then
34750 apr_addto_duplicate="1"
34754 if test $apr_addto_duplicate = "0"; then
34755 echo " adding \"$i\" to APRUTIL_EXPORT_LIBS"
34756 APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $i"
34763 if test "x$APRUTIL_EXPORT_LIBS" = "x"; then
34764 echo " setting APRUTIL_EXPORT_LIBS to \"$expat_libs\""
34765 APRUTIL_EXPORT_LIBS="$expat_libs"
34767 apr_addto_bugger="$expat_libs"
34768 for i in $apr_addto_bugger; do
34769 apr_addto_duplicate="0"
34770 for j in $APRUTIL_EXPORT_LIBS; do
34771 if test "x$i" = "x$j"; then
34772 apr_addto_duplicate="1"
34776 if test $apr_addto_duplicate = "0"; then
34777 echo " adding \"$i\" to APRUTIL_EXPORT_LIBS"
34778 APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $i"
34785 APR_XML_DIR=$bundled_subdir
34786 APR_XML_EXPAT_OLD=$expat_old
34791 if test "$expat_include_dir" != "/usr/include"; then
34793 if test "x$APRUTIL_INCLUDES" = "x"; then
34794 echo " setting APRUTIL_INCLUDES to \"-I$expat_include_dir\""
34795 APRUTIL_INCLUDES="-I$expat_include_dir"
34797 apr_addto_bugger="-I$expat_include_dir"
34798 for i in $apr_addto_bugger; do
34799 apr_addto_duplicate="0"
34800 for j in $APRUTIL_INCLUDES; do
34801 if test "x$i" = "x$j"; then
34802 apr_addto_duplicate="1"
34806 if test $apr_addto_duplicate = "0"; then
34807 echo " adding \"$i\" to APRUTIL_INCLUDES"
34808 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
34815 if test "x$APRUTIL_LDFLAGS" = "x"; then
34816 echo " setting APRUTIL_LDFLAGS to \"$expat_ldflags\""
34817 APRUTIL_LDFLAGS="$expat_ldflags"
34819 apr_addto_bugger="$expat_ldflags"
34820 for i in $apr_addto_bugger; do
34821 apr_addto_duplicate="0"
34822 for j in $APRUTIL_LDFLAGS; do
34823 if test "x$i" = "x$j"; then
34824 apr_addto_duplicate="1"
34828 if test $apr_addto_duplicate = "0"; then
34829 echo " adding \"$i\" to APRUTIL_LDFLAGS"
34830 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
34836 if test "x$APRUTIL_LIBS" = "x"; then
34837 echo " setting APRUTIL_LIBS to \"$expat_libtool\""
34838 APRUTIL_LIBS="$expat_libtool"
34840 apr_addto_bugger="$expat_libtool"
34841 for i in $apr_addto_bugger; do
34842 apr_addto_duplicate="0"
34843 for j in $APRUTIL_LIBS; do
34844 if test "x$i" = "x$j"; then
34845 apr_addto_duplicate="1"
34849 if test $apr_addto_duplicate = "0"; then
34850 echo " adding \"$i\" to APRUTIL_LIBS"
34851 APRUTIL_LIBS="$APRUTIL_LIBS $i"
34859 apu_iconv_dir="unknown"
34861 # Check whether --with-iconv was given.
34862 if test "${with_iconv+set}" = set; then
34863 withval=$with_iconv; apu_iconv_dir="$withval"
34864 if test "$apu_iconv_dir" != "yes"; then
34866 if test "x$CPPFLAGS" = "x"; then
34867 echo " setting CPPFLAGS to \"-I$apu_iconv_dir/include\""
34868 CPPFLAGS="-I$apu_iconv_dir/include"
34870 apr_addto_bugger="-I$apu_iconv_dir/include"
34871 for i in $apr_addto_bugger; do
34872 apr_addto_duplicate="0"
34873 for j in $CPPFLAGS; do
34874 if test "x$i" = "x$j"; then
34875 apr_addto_duplicate="1"
34879 if test $apr_addto_duplicate = "0"; then
34880 echo " adding \"$i\" to CPPFLAGS"
34881 CPPFLAGS="$CPPFLAGS $i"
34887 if test "x$LDFLAGS" = "x"; then
34888 echo " setting LDFLAGS to \"-L$apu_iconv_dir/lib\""
34889 LDFLAGS="-L$apu_iconv_dir/lib"
34891 apr_addto_bugger="-L$apu_iconv_dir/lib"
34892 for i in $apr_addto_bugger; do
34893 apr_addto_duplicate="0"
34894 for j in $LDFLAGS; do
34895 if test "x$i" = "x$j"; then
34896 apr_addto_duplicate="1"
34900 if test $apr_addto_duplicate = "0"; then
34901 echo " adding \"$i\" to LDFLAGS"
34902 LDFLAGS="$LDFLAGS $i"
34912 if test "${ac_cv_header_iconv_h+set}" = set; then
34913 { $as_echo "$as_me:$LINENO: checking for iconv.h" >&5
34914 $as_echo_n "checking for iconv.h... " >&6; }
34915 if test "${ac_cv_header_iconv_h+set}" = set; then
34916 $as_echo_n "(cached) " >&6
34918 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
34919 $as_echo "$ac_cv_header_iconv_h" >&6; }
34921 # Is the header compilable?
34922 { $as_echo "$as_me:$LINENO: checking iconv.h usability" >&5
34923 $as_echo_n "checking iconv.h usability... " >&6; }
34924 cat >conftest.$ac_ext <<_ACEOF
34927 cat confdefs.h >>conftest.$ac_ext
34928 cat >>conftest.$ac_ext <<_ACEOF
34929 /* end confdefs.h. */
34930 $ac_includes_default
34933 rm -f conftest.$ac_objext
34934 if { (ac_try="$ac_compile"
34935 case "(($ac_try" in
34936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34937 *) ac_try_echo=$ac_try;;
34939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34940 $as_echo "$ac_try_echo") >&5
34941 (eval "$ac_compile") 2>conftest.er1
34943 grep -v '^ *+' conftest.er1 >conftest.err
34945 cat conftest.err >&5
34946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34947 (exit $ac_status); } && {
34948 test -z "$ac_c_werror_flag" ||
34949 test ! -s conftest.err
34950 } && test -s conftest.$ac_objext; then
34951 ac_header_compiler=yes
34953 $as_echo "$as_me: failed program was:" >&5
34954 sed 's/^/| /' conftest.$ac_ext >&5
34956 ac_header_compiler=no
34959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34960 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34961 $as_echo "$ac_header_compiler" >&6; }
34963 # Is the header present?
34964 { $as_echo "$as_me:$LINENO: checking iconv.h presence" >&5
34965 $as_echo_n "checking iconv.h presence... " >&6; }
34966 cat >conftest.$ac_ext <<_ACEOF
34969 cat confdefs.h >>conftest.$ac_ext
34970 cat >>conftest.$ac_ext <<_ACEOF
34971 /* end confdefs.h. */
34974 if { (ac_try="$ac_cpp conftest.$ac_ext"
34975 case "(($ac_try" in
34976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34977 *) ac_try_echo=$ac_try;;
34979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34980 $as_echo "$ac_try_echo") >&5
34981 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34983 grep -v '^ *+' conftest.er1 >conftest.err
34985 cat conftest.err >&5
34986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34987 (exit $ac_status); } >/dev/null && {
34988 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34989 test ! -s conftest.err
34991 ac_header_preproc=yes
34993 $as_echo "$as_me: failed program was:" >&5
34994 sed 's/^/| /' conftest.$ac_ext >&5
34996 ac_header_preproc=no
34999 rm -f conftest.err conftest.$ac_ext
35000 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35001 $as_echo "$ac_header_preproc" >&6; }
35003 # So? What about this header?
35004 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35006 { $as_echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
35007 $as_echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35008 { $as_echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
35009 $as_echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
35010 ac_header_preproc=yes
35013 { $as_echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
35014 $as_echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
35015 { $as_echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
35016 $as_echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
35017 { $as_echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
35018 $as_echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
35019 { $as_echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
35020 $as_echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
35021 { $as_echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
35022 $as_echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
35023 { $as_echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
35024 $as_echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
35028 { $as_echo "$as_me:$LINENO: checking for iconv.h" >&5
35029 $as_echo_n "checking for iconv.h... " >&6; }
35030 if test "${ac_cv_header_iconv_h+set}" = set; then
35031 $as_echo_n "(cached) " >&6
35033 ac_cv_header_iconv_h=$ac_header_preproc
35035 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
35036 $as_echo "$ac_cv_header_iconv_h" >&6; }
35039 if test "x$ac_cv_header_iconv_h" = x""yes; then
35042 cat >conftest.$ac_ext <<_ACEOF
35045 cat confdefs.h >>conftest.$ac_ext
35046 cat >>conftest.$ac_ext <<_ACEOF
35047 /* end confdefs.h. */
35049 #include <stdlib.h>
35056 iconv_t cd = iconv_open("", "");
35057 iconv(cd, NULL, NULL, NULL, NULL);
35063 rm -f conftest.$ac_objext conftest$ac_exeext
35064 if { (ac_try="$ac_link"
35065 case "(($ac_try" in
35066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35067 *) ac_try_echo=$ac_try;;
35069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35070 $as_echo "$ac_try_echo") >&5
35071 (eval "$ac_link") 2>conftest.er1
35073 grep -v '^ *+' conftest.er1 >conftest.err
35075 cat conftest.err >&5
35076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35077 (exit $ac_status); } && {
35078 test -z "$ac_c_werror_flag" ||
35079 test ! -s conftest.err
35080 } && test -s conftest$ac_exeext && {
35081 test "$cross_compiling" = yes ||
35082 $as_test_x conftest$ac_exeext
35086 $as_echo "$as_me: failed program was:" >&5
35087 sed 's/^/| /' conftest.$ac_ext >&5
35092 if test "x$LIBS" = "x"; then
35093 echo " setting LIBS to \"-liconv\""
35096 apr_addto_bugger="-liconv"
35097 for i in $apr_addto_bugger; do
35098 apr_addto_duplicate="0"
35100 if test "x$i" = "x$j"; then
35101 apr_addto_duplicate="1"
35105 if test $apr_addto_duplicate = "0"; then
35106 echo " adding \"$i\" to LIBS"
35114 cat >conftest.$ac_ext <<_ACEOF
35117 cat confdefs.h >>conftest.$ac_ext
35118 cat >>conftest.$ac_ext <<_ACEOF
35119 /* end confdefs.h. */
35121 #include <stdlib.h>
35128 iconv_t cd = iconv_open("", "");
35129 iconv(cd, NULL, NULL, NULL, NULL);
35135 rm -f conftest.$ac_objext conftest$ac_exeext
35136 if { (ac_try="$ac_link"
35137 case "(($ac_try" in
35138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35139 *) ac_try_echo=$ac_try;;
35141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35142 $as_echo "$ac_try_echo") >&5
35143 (eval "$ac_link") 2>conftest.er1
35145 grep -v '^ *+' conftest.er1 >conftest.err
35147 cat conftest.err >&5
35148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35149 (exit $ac_status); } && {
35150 test -z "$ac_c_werror_flag" ||
35151 test ! -s conftest.err
35152 } && test -s conftest$ac_exeext && {
35153 test "$cross_compiling" = yes ||
35154 $as_test_x conftest$ac_exeext
35158 if test "x$APRUTIL_LIBS" = "x"; then
35159 echo " setting APRUTIL_LIBS to \"-liconv\""
35160 APRUTIL_LIBS="-liconv"
35162 apr_addto_bugger="-liconv"
35163 for i in $apr_addto_bugger; do
35164 apr_addto_duplicate="0"
35165 for j in $APRUTIL_LIBS; do
35166 if test "x$i" = "x$j"; then
35167 apr_addto_duplicate="1"
35171 if test $apr_addto_duplicate = "0"; then
35172 echo " adding \"$i\" to APRUTIL_LIBS"
35173 APRUTIL_LIBS="$APRUTIL_LIBS $i"
35179 if test "x$APRUTIL_EXPORT_LIBS" = "x"; then
35180 echo " setting APRUTIL_EXPORT_LIBS to \"-liconv\""
35181 APRUTIL_EXPORT_LIBS="-liconv"
35183 apr_addto_bugger="-liconv"
35184 for i in $apr_addto_bugger; do
35185 apr_addto_duplicate="0"
35186 for j in $APRUTIL_EXPORT_LIBS; do
35187 if test "x$i" = "x$j"; then
35188 apr_addto_duplicate="1"
35192 if test $apr_addto_duplicate = "0"; then
35193 echo " adding \"$i\" to APRUTIL_EXPORT_LIBS"
35194 APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $i"
35201 $as_echo "$as_me: failed program was:" >&5
35202 sed 's/^/| /' conftest.$ac_ext >&5
35207 rm -rf conftest.dSYM
35208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35209 conftest$ac_exeext conftest.$ac_ext
35213 if test "x$LIBS" = "x-liconv"; then
35214 echo " nulling LIBS"
35220 if test "x$i" != "x-liconv"; then
35221 apr_new_bugger="$apr_new_bugger $i"
35226 if test $apr_removed = "1"; then
35227 echo " removed \"-liconv\" from LIBS"
35228 LIBS=$apr_new_bugger
35236 rm -rf conftest.dSYM
35237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35238 conftest$ac_exeext conftest.$ac_ext
35247 if test "$apu_iconv_dir" != "unknown"; then
35248 if test "$have_iconv" != "1"; then
35249 { { $as_echo "$as_me:$LINENO: error: iconv support requested, but not found" >&5
35250 $as_echo "$as_me: error: iconv support requested, but not found" >&2;}
35251 { (exit 1); exit 1; }; }
35254 if test "x$CPPFLAGS" = "x-I$apu_iconv_dir/include"; then
35255 echo " nulling CPPFLAGS"
35260 for i in $CPPFLAGS; do
35261 if test "x$i" != "x-I$apu_iconv_dir/include"; then
35262 apr_new_bugger="$apr_new_bugger $i"
35267 if test $apr_removed = "1"; then
35268 echo " removed \"-I$apu_iconv_dir/include\" from CPPFLAGS"
35269 CPPFLAGS=$apr_new_bugger
35274 if test "x$LDFLAGS" = "x-L$apu_iconv_dir/lib"; then
35275 echo " nulling LDFLAGS"
35280 for i in $LDFLAGS; do
35281 if test "x$i" != "x-L$apu_iconv_dir/lib"; then
35282 apr_new_bugger="$apr_new_bugger $i"
35287 if test $apr_removed = "1"; then
35288 echo " removed \"-L$apu_iconv_dir/lib\" from LDFLAGS"
35289 LDFLAGS=$apr_new_bugger
35294 if test "x$APRUTIL_INCLUDES" = "x"; then
35295 echo " setting APRUTIL_INCLUDES to \"-I$apu_iconv_dir/include\""
35296 APRUTIL_INCLUDES="-I$apu_iconv_dir/include"
35298 apr_addto_bugger="-I$apu_iconv_dir/include"
35299 for i in $apr_addto_bugger; do
35300 apr_addto_duplicate="0"
35301 for j in $APRUTIL_INCLUDES; do
35302 if test "x$i" = "x$j"; then
35303 apr_addto_duplicate="1"
35307 if test $apr_addto_duplicate = "0"; then
35308 echo " adding \"$i\" to APRUTIL_INCLUDES"
35309 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
35315 if test "x$APRUTIL_LDFLAGS" = "x"; then
35316 echo " setting APRUTIL_LDFLAGS to \"-L$apu_iconv_dir/lib\""
35317 APRUTIL_LDFLAGS="-L$apu_iconv_dir/lib"
35319 apr_addto_bugger="-L$apu_iconv_dir/lib"
35320 for i in $apr_addto_bugger; do
35321 apr_addto_duplicate="0"
35322 for j in $APRUTIL_LDFLAGS; do
35323 if test "x$i" = "x$j"; then
35324 apr_addto_duplicate="1"
35328 if test $apr_addto_duplicate = "0"; then
35329 echo " adding \"$i\" to APRUTIL_LDFLAGS"
35330 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
35337 if test "$have_iconv" = "1"; then
35339 { $as_echo "$as_me:$LINENO: checking for type of inbuf parameter to iconv" >&5
35340 $as_echo_n "checking for type of inbuf parameter to iconv... " >&6; }
35341 if test "x$apu_iconv_inbuf_const" = "x"; then
35342 if test "x$CFLAGS_WARN" = "x"; then
35345 apr_tcnw_flags=$CFLAGS_WARN
35347 if test "$ac_cv_c_compiler_gnu" = "yes"; then
35348 apr_tcnw_flags="$apr_tcnw_flags -Werror"
35351 cat > conftest.$ac_ext <<EOTEST
35352 #include "confdefs.h"
35354 #include <stddef.h>
35357 int main(int argc, const char * const *argv) {
35359 iconv(0,(char **)0,(size_t *)0,(char **)0,(size_t *)0);
35364 if ${CC-cc} -c $CFLAGS $CPPFLAGS $apr_tcnw_flags conftest.$ac_ext 2>&5 ; then
35366 apu_iconv_inbuf_const="0"
35368 echo "configure: failed or warning program:" >&5
35369 cat conftest.$ac_ext >&5
35371 apu_iconv_inbuf_const="1"
35376 if test "$apu_iconv_inbuf_const" = "1"; then
35378 cat >>confdefs.h <<\_ACEOF
35379 #define APU_ICONV_INBUF_CONST 1
35382 msg="const char **"
35386 { $as_echo "$as_me:$LINENO: result: $msg" >&5
35387 $as_echo "$msg" >&6; }
35394 for ac_header in iconv.h langinfo.h
35396 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
35397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35398 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
35399 $as_echo_n "checking for $ac_header... " >&6; }
35400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35401 $as_echo_n "(cached) " >&6
35403 ac_res=`eval 'as_val=${'$as_ac_Header'}
35404 $as_echo "$as_val"'`
35405 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
35406 $as_echo "$ac_res" >&6; }
35408 # Is the header compilable?
35409 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
35410 $as_echo_n "checking $ac_header usability... " >&6; }
35411 cat >conftest.$ac_ext <<_ACEOF
35414 cat confdefs.h >>conftest.$ac_ext
35415 cat >>conftest.$ac_ext <<_ACEOF
35416 /* end confdefs.h. */
35417 $ac_includes_default
35418 #include <$ac_header>
35420 rm -f conftest.$ac_objext
35421 if { (ac_try="$ac_compile"
35422 case "(($ac_try" in
35423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35424 *) ac_try_echo=$ac_try;;
35426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35427 $as_echo "$ac_try_echo") >&5
35428 (eval "$ac_compile") 2>conftest.er1
35430 grep -v '^ *+' conftest.er1 >conftest.err
35432 cat conftest.err >&5
35433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35434 (exit $ac_status); } && {
35435 test -z "$ac_c_werror_flag" ||
35436 test ! -s conftest.err
35437 } && test -s conftest.$ac_objext; then
35438 ac_header_compiler=yes
35440 $as_echo "$as_me: failed program was:" >&5
35441 sed 's/^/| /' conftest.$ac_ext >&5
35443 ac_header_compiler=no
35446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35447 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35448 $as_echo "$ac_header_compiler" >&6; }
35450 # Is the header present?
35451 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
35452 $as_echo_n "checking $ac_header presence... " >&6; }
35453 cat >conftest.$ac_ext <<_ACEOF
35456 cat confdefs.h >>conftest.$ac_ext
35457 cat >>conftest.$ac_ext <<_ACEOF
35458 /* end confdefs.h. */
35459 #include <$ac_header>
35461 if { (ac_try="$ac_cpp conftest.$ac_ext"
35462 case "(($ac_try" in
35463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35464 *) ac_try_echo=$ac_try;;
35466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35467 $as_echo "$ac_try_echo") >&5
35468 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35470 grep -v '^ *+' conftest.er1 >conftest.err
35472 cat conftest.err >&5
35473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35474 (exit $ac_status); } >/dev/null && {
35475 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35476 test ! -s conftest.err
35478 ac_header_preproc=yes
35480 $as_echo "$as_me: failed program was:" >&5
35481 sed 's/^/| /' conftest.$ac_ext >&5
35483 ac_header_preproc=no
35486 rm -f conftest.err conftest.$ac_ext
35487 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35488 $as_echo "$ac_header_preproc" >&6; }
35490 # So? What about this header?
35491 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35493 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35494 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35495 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35496 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35497 ac_header_preproc=yes
35500 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35501 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35502 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35503 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35504 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35505 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35506 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35507 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35508 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35509 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35510 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35511 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35515 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
35516 $as_echo_n "checking for $ac_header... " >&6; }
35517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35518 $as_echo_n "(cached) " >&6
35520 eval "$as_ac_Header=\$ac_header_preproc"
35522 ac_res=`eval 'as_val=${'$as_ac_Header'}
35523 $as_echo "$as_val"'`
35524 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
35525 $as_echo "$ac_res" >&6; }
35528 as_val=`eval 'as_val=${'$as_ac_Header'}
35529 $as_echo "$as_val"'`
35530 if test "x$as_val" = x""yes; then
35531 cat >>confdefs.h <<_ACEOF
35532 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
35539 for aprt_i in iconv.h langinfo.h
35541 ac_safe=`echo "$aprt_i" | sed 'y%./+-%__p_%'`
35542 aprt_2=`echo "$aprt_i" | sed -e 's%/%_%g' -e 's/\.//g' -e 's/-//g'`
35543 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
35552 for ac_func in nl_langinfo
35554 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
35555 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
35556 $as_echo_n "checking for $ac_func... " >&6; }
35557 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35558 $as_echo_n "(cached) " >&6
35560 cat >conftest.$ac_ext <<_ACEOF
35563 cat confdefs.h >>conftest.$ac_ext
35564 cat >>conftest.$ac_ext <<_ACEOF
35565 /* end confdefs.h. */
35566 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35567 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35568 #define $ac_func innocuous_$ac_func
35570 /* System header to define __stub macros and hopefully few prototypes,
35571 which can conflict with char $ac_func (); below.
35572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35573 <limits.h> exists even on freestanding compilers. */
35576 # include <limits.h>
35578 # include <assert.h>
35583 /* Override any GCC internal prototype to avoid an error.
35584 Use char because int might match the return type of a GCC
35585 builtin and then its argument prototype would still apply. */
35590 /* The GNU C library defines this for functions which it implements
35591 to always fail with ENOSYS. Some functions are actually named
35592 something starting with __ and the normal name is an alias. */
35593 #if defined __stub_$ac_func || defined __stub___$ac_func
35600 return $ac_func ();
35605 rm -f conftest.$ac_objext conftest$ac_exeext
35606 if { (ac_try="$ac_link"
35607 case "(($ac_try" in
35608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35609 *) ac_try_echo=$ac_try;;
35611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35612 $as_echo "$ac_try_echo") >&5
35613 (eval "$ac_link") 2>conftest.er1
35615 grep -v '^ *+' conftest.er1 >conftest.err
35617 cat conftest.err >&5
35618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35619 (exit $ac_status); } && {
35620 test -z "$ac_c_werror_flag" ||
35621 test ! -s conftest.err
35622 } && test -s conftest$ac_exeext && {
35623 test "$cross_compiling" = yes ||
35624 $as_test_x conftest$ac_exeext
35626 eval "$as_ac_var=yes"
35628 $as_echo "$as_me: failed program was:" >&5
35629 sed 's/^/| /' conftest.$ac_ext >&5
35631 eval "$as_ac_var=no"
35634 rm -rf conftest.dSYM
35635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35636 conftest$ac_exeext conftest.$ac_ext
35638 ac_res=`eval 'as_val=${'$as_ac_var'}
35639 $as_echo "$as_val"'`
35640 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
35641 $as_echo "$ac_res" >&6; }
35642 as_val=`eval 'as_val=${'$as_ac_var'}
35643 $as_echo "$as_val"'`
35644 if test "x$as_val" = x""yes; then
35645 cat >>confdefs.h <<_ACEOF
35646 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
35652 for aprt_j in nl_langinfo
35654 aprt_3="have_$aprt_j"
35655 if eval "test \"`echo '$ac_cv_func_'$aprt_j`\" = yes"; then
35663 { $as_echo "$as_me:$LINENO: checking for CODESET in langinfo.h" >&5
35664 $as_echo_n "checking for CODESET in langinfo.h... " >&6; }
35665 if test "${ac_cv_define_CODESET+set}" = set; then
35666 $as_echo_n "(cached) " >&6
35669 cat >conftest.$ac_ext <<_ACEOF
35672 cat confdefs.h >>conftest.$ac_ext
35673 cat >>conftest.$ac_ext <<_ACEOF
35674 /* end confdefs.h. */
35676 #include <langinfo.h>
35682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35683 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then
35684 ac_cv_define_CODESET=yes
35686 ac_cv_define_CODESET=no
35692 { $as_echo "$as_me:$LINENO: result: $ac_cv_define_CODESET" >&5
35693 $as_echo "$ac_cv_define_CODESET" >&6; }
35694 if test "$ac_cv_define_CODESET" = "yes"; then
35696 cat >>confdefs.h <<\_ACEOF
35697 #define HAVE_CODESET 1
35706 { $as_echo "$as_me:$LINENO: checking for library containing crypt" >&5
35707 $as_echo_n "checking for library containing crypt... " >&6; }
35708 if test "${ac_cv_search_crypt+set}" = set; then
35709 $as_echo_n "(cached) " >&6
35711 ac_func_search_save_LIBS=$LIBS
35712 cat >conftest.$ac_ext <<_ACEOF
35715 cat confdefs.h >>conftest.$ac_ext
35716 cat >>conftest.$ac_ext <<_ACEOF
35717 /* end confdefs.h. */
35719 /* Override any GCC internal prototype to avoid an error.
35720 Use char because int might match the return type of a GCC
35721 builtin and then its argument prototype would still apply. */
35734 for ac_lib in '' crypt ufc; do
35735 if test -z "$ac_lib"; then
35736 ac_res="none required"
35739 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
35741 rm -f conftest.$ac_objext conftest$ac_exeext
35742 if { (ac_try="$ac_link"
35743 case "(($ac_try" in
35744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35745 *) ac_try_echo=$ac_try;;
35747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35748 $as_echo "$ac_try_echo") >&5
35749 (eval "$ac_link") 2>conftest.er1
35751 grep -v '^ *+' conftest.er1 >conftest.err
35753 cat conftest.err >&5
35754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35755 (exit $ac_status); } && {
35756 test -z "$ac_c_werror_flag" ||
35757 test ! -s conftest.err
35758 } && test -s conftest$ac_exeext && {
35759 test "$cross_compiling" = yes ||
35760 $as_test_x conftest$ac_exeext
35762 ac_cv_search_crypt=$ac_res
35764 $as_echo "$as_me: failed program was:" >&5
35765 sed 's/^/| /' conftest.$ac_ext >&5
35770 rm -rf conftest.dSYM
35771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35773 if test "${ac_cv_search_crypt+set}" = set; then
35777 if test "${ac_cv_search_crypt+set}" = set; then
35780 ac_cv_search_crypt=no
35782 rm conftest.$ac_ext
35783 LIBS=$ac_func_search_save_LIBS
35785 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
35786 $as_echo "$ac_cv_search_crypt" >&6; }
35787 ac_res=$ac_cv_search_crypt
35788 if test "$ac_res" != no; then
35789 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
35793 { $as_echo "$as_me:$LINENO: checking if system crypt() function is threadsafe" >&5
35794 $as_echo_n "checking if system crypt() function is threadsafe... " >&6; }
35795 if test "x$apu_crypt_threadsafe" = "x1"; then
35797 cat >>confdefs.h <<\_ACEOF
35798 #define APU_CRYPT_THREADSAFE 1
35805 { $as_echo "$as_me:$LINENO: result: $msg" >&5
35806 $as_echo "$msg" >&6; }
35809 for ac_func in crypt_r
35811 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
35812 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
35813 $as_echo_n "checking for $ac_func... " >&6; }
35814 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35815 $as_echo_n "(cached) " >&6
35817 cat >conftest.$ac_ext <<_ACEOF
35820 cat confdefs.h >>conftest.$ac_ext
35821 cat >>conftest.$ac_ext <<_ACEOF
35822 /* end confdefs.h. */
35823 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35824 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35825 #define $ac_func innocuous_$ac_func
35827 /* System header to define __stub macros and hopefully few prototypes,
35828 which can conflict with char $ac_func (); below.
35829 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35830 <limits.h> exists even on freestanding compilers. */
35833 # include <limits.h>
35835 # include <assert.h>
35840 /* Override any GCC internal prototype to avoid an error.
35841 Use char because int might match the return type of a GCC
35842 builtin and then its argument prototype would still apply. */
35847 /* The GNU C library defines this for functions which it implements
35848 to always fail with ENOSYS. Some functions are actually named
35849 something starting with __ and the normal name is an alias. */
35850 #if defined __stub_$ac_func || defined __stub___$ac_func
35857 return $ac_func ();
35862 rm -f conftest.$ac_objext conftest$ac_exeext
35863 if { (ac_try="$ac_link"
35864 case "(($ac_try" in
35865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35866 *) ac_try_echo=$ac_try;;
35868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35869 $as_echo "$ac_try_echo") >&5
35870 (eval "$ac_link") 2>conftest.er1
35872 grep -v '^ *+' conftest.er1 >conftest.err
35874 cat conftest.err >&5
35875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35876 (exit $ac_status); } && {
35877 test -z "$ac_c_werror_flag" ||
35878 test ! -s conftest.err
35879 } && test -s conftest$ac_exeext && {
35880 test "$cross_compiling" = yes ||
35881 $as_test_x conftest$ac_exeext
35883 eval "$as_ac_var=yes"
35885 $as_echo "$as_me: failed program was:" >&5
35886 sed 's/^/| /' conftest.$ac_ext >&5
35888 eval "$as_ac_var=no"
35891 rm -rf conftest.dSYM
35892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35893 conftest$ac_exeext conftest.$ac_ext
35895 ac_res=`eval 'as_val=${'$as_ac_var'}
35896 $as_echo "$as_val"'`
35897 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
35898 $as_echo "$ac_res" >&6; }
35899 as_val=`eval 'as_val=${'$as_ac_var'}
35900 $as_echo "$as_val"'`
35901 if test "x$as_val" = x""yes; then
35902 cat >>confdefs.h <<_ACEOF
35903 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
35911 if test "$crypt_r" = "1"; then
35913 { $as_echo "$as_me:$LINENO: checking style of crypt_r" >&5
35914 $as_echo_n "checking style of crypt_r... " >&6; }
35915 if test "${ac_cv_crypt_r_style+set}" = set; then
35916 $as_echo_n "(cached) " >&6
35919 ac_cv_crypt_r_style=none
35920 cat >conftest.$ac_ext <<_ACEOF
35923 cat confdefs.h >>conftest.$ac_ext
35924 cat >>conftest.$ac_ext <<_ACEOF
35925 /* end confdefs.h. */
35934 crypt_r("passwd", "hash", &buffer);
35940 rm -f conftest.$ac_objext
35941 if { (ac_try="$ac_compile"
35942 case "(($ac_try" in
35943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35944 *) ac_try_echo=$ac_try;;
35946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35947 $as_echo "$ac_try_echo") >&5
35948 (eval "$ac_compile") 2>conftest.er1
35950 grep -v '^ *+' conftest.er1 >conftest.err
35952 cat conftest.err >&5
35953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35954 (exit $ac_status); } && {
35955 test -z "$ac_c_werror_flag" ||
35956 test ! -s conftest.err
35957 } && test -s conftest.$ac_objext; then
35958 ac_cv_crypt_r_style=cryptd
35960 $as_echo "$as_me: failed program was:" >&5
35961 sed 's/^/| /' conftest.$ac_ext >&5
35966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35967 if test "$ac_cv_crypt_r_style" = "none"; then
35968 cat >conftest.$ac_ext <<_ACEOF
35971 cat confdefs.h >>conftest.$ac_ext
35972 cat >>conftest.$ac_ext <<_ACEOF
35973 /* end confdefs.h. */
35981 struct crypt_data buffer;
35982 crypt_r("passwd", "hash", &buffer);
35988 rm -f conftest.$ac_objext
35989 if { (ac_try="$ac_compile"
35990 case "(($ac_try" in
35991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35992 *) ac_try_echo=$ac_try;;
35994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35995 $as_echo "$ac_try_echo") >&5
35996 (eval "$ac_compile") 2>conftest.er1
35998 grep -v '^ *+' conftest.er1 >conftest.err
36000 cat conftest.err >&5
36001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36002 (exit $ac_status); } && {
36003 test -z "$ac_c_werror_flag" ||
36004 test ! -s conftest.err
36005 } && test -s conftest.$ac_objext; then
36006 ac_cv_crypt_r_style=struct_crypt_data
36008 $as_echo "$as_me: failed program was:" >&5
36009 sed 's/^/| /' conftest.$ac_ext >&5
36014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36018 { $as_echo "$as_me:$LINENO: result: $ac_cv_crypt_r_style" >&5
36019 $as_echo "$ac_cv_crypt_r_style" >&6; }
36020 if test "$ac_cv_crypt_r_style" = "cryptd"; then
36022 cat >>confdefs.h <<\_ACEOF
36023 #define CRYPT_R_CRYPTD 1
36027 # if we don't combine these conditions, CRYPT_R_STRUCT_CRYPT_DATA
36028 # will end up defined twice
36029 if test "$ac_cv_crypt_r_style" = "struct_crypt_data"; then
36031 cat >>confdefs.h <<\_ACEOF
36032 #define CRYPT_R_STRUCT_CRYPT_DATA 1
36040 lib_target=$APR_LIB_TARGET
36044 APRUTIL_LIBNAME="aprutil${libsuffix}"
36047 # Use -no-install to link the test programs on all platforms
36048 # but Darwin, where it would cause the programs to be linked
36049 # against installed versions of libapr instead of those just
36052 *-apple-darwin*) LT_NO_INSTALL="" ;;
36053 *) LT_NO_INSTALL="-no-install" ;;
36058 host_alias=`uname -s`
36059 case "$host_alias" in
36060 *AIX*|*Darwin*|*BeOS*|CYGWIN*)
36061 EXTRA_OS_LINK='$(APRUTIL_LDFLAGS) $(APRUTIL_LIBS)'
36070 if test "x$APRUTIL_LIBS" = "x"; then
36071 echo " setting APRUTIL_LIBS to \"$APR_LIBS\""
36072 APRUTIL_LIBS="$APR_LIBS"
36074 apr_addto_bugger="$APR_LIBS"
36075 for i in $apr_addto_bugger; do
36076 apr_addto_duplicate="0"
36077 for j in $APRUTIL_LIBS; do
36078 if test "x$i" = "x$j"; then
36079 apr_addto_duplicate="1"
36083 if test $apr_addto_duplicate = "0"; then
36084 echo " adding \"$i\" to APRUTIL_LIBS"
36085 APRUTIL_LIBS="$APRUTIL_LIBS $i"
36098 if test ! -d ./build; then
36101 cp $APR_BUILD_DIR/apr_rules.mk $abs_builddir/build/rules.mk
36103 case "$host_alias" in
36105 # Check whether they've installed GNU make
36106 if make --version > /dev/null 2>&1; then
36107 INCLUDE_RULES="include $abs_builddir/build/rules.mk"
36109 INCLUDE_RULES=".include \"$abs_builddir/build/rules.mk\""
36113 INCLUDE_RULES="include $abs_builddir/build/rules.mk"
36118 if test -f $abs_srcdir/test/Makefile.in; then
36119 test_Makefile="test/Makefile"
36122 if test ! -d "$top_builddir/include/private"; then
36123 $mkdir_p $top_builddir/include/private
36126 MAKEFILES="Makefile buckets/Makefile crypto/Makefile dbm/Makefile dbm/sdbm/Makefile encoding/Makefile hooks/Makefile ldap/Makefile uri/Makefile xml/Makefile misc/Makefile strmatch/Makefile xlate/Makefile $test_Makefile"
36127 ac_config_files="$ac_config_files export_vars.sh apu-config build/pkg/pkginfo include/private/apu_select_dbm.h include/apr_ldap.h include/apu.h include/apu_want.h $MAKEFILES"
36129 ac_config_commands="$ac_config_commands default"
36131 cat >confcache <<\_ACEOF
36132 # This file is a shell script that caches the results of configure
36133 # tests run on this system so they can be shared between configure
36134 # scripts and configure runs, see configure's option --config-cache.
36135 # It is not useful on other systems. If it contains results you don't
36136 # want to keep, you may remove or edit it.
36138 # config.status only pays attention to the cache file if you give it
36139 # the --recheck option to rerun configure.
36141 # `ac_cv_env_foo' variables (set or unset) will be overridden when
36142 # loading this file, other *unset* `ac_cv_foo' will be assigned the
36143 # following values.
36147 # The following way of writing the cache mishandles newlines in values,
36148 # but we know of no workaround that is simple, portable, and efficient.
36149 # So, we kill variables containing newlines.
36150 # Ultrix sh set writes to stderr and can't be redirected directly,
36151 # and sets the high bit in the cache file unless we assign to the vars.
36153 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
36154 eval ac_val=\$$ac_var
36158 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
36159 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
36162 _ | IFS | as_nl) ;; #(
36163 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
36164 *) $as_unset $ac_var ;;
36170 case $as_nl`(ac_space=' '; set) 2>&1` in #(
36171 *${as_nl}ac_space=\ *)
36172 # `set' does not quote correctly, so add quotes (double-quote
36173 # substitution turns \\\\ into \\, and sed turns \\ into \).
36176 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
36179 # `set' quotes correctly as required by POSIX, so do not add quotes.
36180 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
36189 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
36191 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
36193 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
36194 if test -w "$cache_file"; then
36195 test "x$cache_file" != "x/dev/null" &&
36196 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
36197 $as_echo "$as_me: updating cache $cache_file" >&6;}
36198 cat confcache >$cache_file
36200 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
36201 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
36206 test "x$prefix" = xNONE && prefix=$ac_default_prefix
36207 # Let make expand exec_prefix.
36208 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
36210 DEFS=-DHAVE_CONFIG_H
36214 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
36215 # 1. Remove the extension, and $U if already installed.
36216 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
36217 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
36218 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
36219 # will be set to the directory where LIBOBJS objects are built.
36220 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
36221 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
36223 LIBOBJS=$ac_libobjs
36225 LTLIBOBJS=$ac_ltlibobjs
36229 : ${CONFIG_STATUS=./config.status}
36231 ac_clean_files_save=$ac_clean_files
36232 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
36233 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
36234 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
36235 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36237 # Generated by $as_me.
36238 # Run this file to recreate the current configuration.
36239 # Compiler output produced by configure, useful for debugging
36240 # configure, is in config.log if it exists.
36243 ac_cs_recheck=false
36245 SHELL=\${CONFIG_SHELL-$SHELL}
36248 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36249 ## --------------------- ##
36250 ## M4sh Initialization. ##
36251 ## --------------------- ##
36253 # Be more Bourne compatible
36254 DUALCASE=1; export DUALCASE # for MKS sh
36255 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
36258 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36259 # is contrary to our usage. Disable this feature.
36260 alias -g '${1+"$@"}'='"$@"'
36261 setopt NO_GLOB_SUBST
36263 case `(set -o) 2>/dev/null` in
36264 *posix*) set -o posix ;;
36273 # Avoid depending upon Character Ranges.
36274 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36275 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36276 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36277 as_cr_digits='0123456789'
36278 as_cr_alnum=$as_cr_Letters$as_cr_digits
36283 # Printing a long string crashes Solaris 7 /usr/bin/printf.
36284 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36285 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36286 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
36287 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
36288 as_echo='printf %s\n'
36289 as_echo_n='printf %s'
36291 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
36292 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
36293 as_echo_n='/usr/ucb/echo -n'
36295 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
36296 as_echo_n_body='eval
36300 expr "X$arg" : "X\\(.*\\)$as_nl";
36301 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
36303 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
36305 export as_echo_n_body
36306 as_echo_n='sh -c $as_echo_n_body as_echo'
36308 export as_echo_body
36309 as_echo='sh -c $as_echo_body as_echo'
36312 # The user is always right.
36313 if test "${PATH_SEPARATOR+set}" != set; then
36315 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36316 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36321 # Support unset when possible.
36322 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
36330 # We need space, tab and new line, in precisely that order. Quoting is
36331 # there to prevent editors from complaining about space-tab.
36332 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
36333 # splitting by setting IFS to empty value.)
36336 # Find who we are. Look in the path if we contain no directory separator.
36338 *[\\/]* ) as_myself=$0 ;;
36339 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36340 for as_dir in $PATH
36343 test -z "$as_dir" && as_dir=.
36344 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36350 # We did not find ourselves, most probably we were run as `sh COMMAND'
36351 # in which case we are not to be found in the path.
36352 if test "x$as_myself" = x; then
36355 if test ! -f "$as_myself"; then
36356 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
36357 { (exit 1); exit 1; }
36360 # Work around bugs in pre-3.0 UWIN ksh.
36361 for as_var in ENV MAIL MAILPATH
36362 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
36374 # Required to use basename.
36375 if expr a : '\(a\)' >/dev/null 2>&1 &&
36376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
36382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36383 as_basename=basename
36389 # Name of the executable.
36390 as_me=`$as_basename -- "$0" ||
36391 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36392 X"$0" : 'X\(//\)$' \| \
36393 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36395 sed '/^.*\/\([^/][^/]*\)\/*$/{
36414 as_lineno_1=$LINENO
36415 as_lineno_2=$LINENO
36416 test "x$as_lineno_1" != "x$as_lineno_2" &&
36417 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
36419 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
36420 # uniformly replaced by the line number. The first 'sed' inserts a
36421 # line-number line after each line using $LINENO; the second 'sed'
36422 # does the real work. The second script uses 'N' to pair each
36423 # line-number line with the line containing $LINENO, and appends
36424 # trailing '-' during substitution so that $LINENO is not a special
36425 # case at line end.
36426 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
36427 # scripts with optimization help from Paolo Bonzini. Blame Lee
36428 # E. McMahon (1931-1989) for sed's syntax. :-)
36440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
36443 ' >$as_me.lineno &&
36444 chmod +x "$as_me.lineno" ||
36445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
36446 { (exit 1); exit 1; }; }
36448 # Don't try to exec as it changes $[0], causing all sort of problems
36449 # (the dirname of $[0] is not the place where we might find the
36450 # original and so on. Autoconf is especially sensitive to this).
36451 . "./$as_me.lineno"
36452 # Exit status is that of the last command.
36457 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36463 ECHO_C= ECHO_N= ECHO_T=
36464 case `echo -n x` in
36466 case `echo 'x\c'` in
36467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
36473 if expr a : '\(a\)' >/dev/null 2>&1 &&
36474 test "X`expr 00001 : '.*\(...\)'`" = X001; then
36480 rm -f conf$$ conf$$.exe conf$$.file
36481 if test -d conf$$.dir; then
36482 rm -f conf$$.dir/conf$$.file
36485 mkdir conf$$.dir 2>/dev/null
36487 if (echo >conf$$.file) 2>/dev/null; then
36488 if ln -s conf$$.file conf$$ 2>/dev/null; then
36490 # ... but there are two gotchas:
36491 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36492 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
36493 # In both cases, we have to default to `cp -p'.
36494 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
36496 elif ln conf$$.file conf$$ 2>/dev/null; then
36504 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36505 rmdir conf$$.dir 2>/dev/null
36507 if mkdir -p . 2>/dev/null; then
36510 test -d ./-p && rmdir ./-p
36514 if test -x / >/dev/null 2>&1; then
36515 as_test_x='test -x'
36517 if ls -dL / >/dev/null 2>&1; then
36524 if test -d "$1"; then
36530 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
36531 ???[sx]*):;;*)false;;esac;fi
36535 as_executable_p=$as_test_x
36537 # Sed expression to map a string onto a valid CPP name.
36538 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36540 # Sed expression to map a string onto a valid variable name.
36541 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36546 # Save the log message, to keep $[0] and so on meaningful, and to
36547 # report actual input values of CONFIG_FILES etc. instead of their
36548 # values after options handling.
36550 This file was extended by $as_me, which was
36551 generated by GNU Autoconf 2.63. Invocation command line was
36553 CONFIG_FILES = $CONFIG_FILES
36554 CONFIG_HEADERS = $CONFIG_HEADERS
36555 CONFIG_LINKS = $CONFIG_LINKS
36556 CONFIG_COMMANDS = $CONFIG_COMMANDS
36559 on `(hostname || uname -n) 2>/dev/null | sed 1q`
36564 case $ac_config_files in *"
36565 "*) set x $ac_config_files; shift; ac_config_files=$*;;
36568 case $ac_config_headers in *"
36569 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36573 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36574 # Files that config.status was made for.
36575 config_files="$ac_config_files"
36576 config_headers="$ac_config_headers"
36577 config_commands="$ac_config_commands"
36581 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36583 \`$as_me' instantiates files from templates according to the
36584 current configuration.
36586 Usage: $0 [OPTION]... [FILE]...
36588 -h, --help print this help, then exit
36589 -V, --version print version number and configuration settings, then exit
36590 -q, --quiet, --silent
36591 do not print progress messages
36592 -d, --debug don't remove temporary files
36593 --recheck update $as_me by reconfiguring in the same conditions
36594 --file=FILE[:TEMPLATE]
36595 instantiate the configuration file FILE
36596 --header=FILE[:TEMPLATE]
36597 instantiate the configuration header FILE
36599 Configuration files:
36602 Configuration headers:
36605 Configuration commands:
36608 Report bugs to <bug-autoconf@gnu.org>."
36611 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36614 configured by $0, generated by GNU Autoconf 2.63,
36615 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
36617 Copyright (C) 2008 Free Software Foundation, Inc.
36618 This config.status script is free software; the Free Software Foundation
36619 gives unlimited permission to copy, distribute and modify it."
36623 test -n "\$AWK" || AWK=awk
36626 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36627 # The default lists apply if the user does not specify any file.
36633 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36634 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36645 # Handling of the options.
36646 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36648 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36649 $as_echo "$ac_cs_version"; exit ;;
36650 --debug | --debu | --deb | --de | --d | -d )
36652 --file | --fil | --fi | --f )
36655 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36657 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
36658 ac_need_defaults=false;;
36659 --header | --heade | --head | --hea )
36662 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36664 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
36665 ac_need_defaults=false;;
36667 # Conflict between --help and --header
36668 { $as_echo "$as_me: error: ambiguous option: $1
36669 Try \`$0 --help' for more information." >&2
36670 { (exit 1); exit 1; }; };;
36671 --help | --hel | -h )
36672 $as_echo "$ac_cs_usage"; exit ;;
36673 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36674 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36677 # This is an error.
36678 -*) { $as_echo "$as_me: error: unrecognized option: $1
36679 Try \`$0 --help' for more information." >&2
36680 { (exit 1); exit 1; }; } ;;
36682 *) ac_config_targets="$ac_config_targets $1"
36683 ac_need_defaults=false ;;
36689 ac_configure_extra_args=
36691 if $ac_cs_silent; then
36693 ac_configure_extra_args="$ac_configure_extra_args --silent"
36697 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36698 if \$ac_cs_recheck; then
36699 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
36701 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36702 CONFIG_SHELL='$SHELL'
36703 export CONFIG_SHELL
36708 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36712 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36713 ## Running $as_me. ##
36719 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36722 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36724 # Handling of arguments.
36725 for ac_config_target in $ac_config_targets
36727 case $ac_config_target in
36728 "include/private/apu_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/private/apu_config.h" ;;
36729 "export_vars.sh") CONFIG_FILES="$CONFIG_FILES export_vars.sh" ;;
36730 "apu-config") CONFIG_FILES="$CONFIG_FILES apu-config" ;;
36731 "build/pkg/pkginfo") CONFIG_FILES="$CONFIG_FILES build/pkg/pkginfo" ;;
36732 "include/private/apu_select_dbm.h") CONFIG_FILES="$CONFIG_FILES include/private/apu_select_dbm.h" ;;
36733 "include/apr_ldap.h") CONFIG_FILES="$CONFIG_FILES include/apr_ldap.h" ;;
36734 "include/apu.h") CONFIG_FILES="$CONFIG_FILES include/apu.h" ;;
36735 "include/apu_want.h") CONFIG_FILES="$CONFIG_FILES include/apu_want.h" ;;
36736 "$MAKEFILES") CONFIG_FILES="$CONFIG_FILES $MAKEFILES" ;;
36737 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
36739 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
36740 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
36741 { (exit 1); exit 1; }; };;
36746 # If the user did not use the arguments to specify the items to instantiate,
36747 # then the envvar interface is used. Set only those that are not.
36748 # We use the long form for the default assignment because of an extremely
36749 # bizarre bug on SunOS 4.1.3.
36750 if $ac_need_defaults; then
36751 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36752 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36753 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36756 # Have a temporary directory for convenience. Make it in the build tree
36757 # simply because there is no reason against having it here, and in addition,
36758 # creating and moving files from /tmp can sometimes cause problems.
36759 # Hook for its removal unless debugging.
36760 # Note that there is a small window in which the directory will not be cleaned:
36761 # after its creation but before its name has been assigned to `$tmp'.
36765 trap 'exit_status=$?
36766 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
36768 trap '{ (exit 1); exit 1; }' 1 2 13 15
36770 # Create a (secure) tmp directory for tmp files.
36773 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
36774 test -n "$tmp" && test -d "$tmp"
36777 tmp=./conf$$-$RANDOM
36778 (umask 077 && mkdir "$tmp")
36781 $as_echo "$as_me: cannot create a temporary directory in ." >&2
36782 { (exit 1); exit 1; }
36785 # Set up the scripts for CONFIG_FILES section.
36786 # No need to generate them if there are no CONFIG_FILES.
36787 # This happens for instance with `./config.status config.h'.
36788 if test -n "$CONFIG_FILES"; then
36792 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
36793 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
36796 ac_cs_awk_cr=$ac_cr
36799 echo 'BEGIN {' >"$tmp/subs1.awk" &&
36804 echo "cat >conf$$subs.awk <<_ACEOF" &&
36805 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
36807 } >conf$$subs.sh ||
36808 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36809 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36810 { (exit 1); exit 1; }; }
36811 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
36813 for ac_last_try in false false false false false :; do
36814 . ./conf$$subs.sh ||
36815 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36816 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36817 { (exit 1); exit 1; }; }
36819 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
36820 if test $ac_delim_n = $ac_delim_num; then
36822 elif $ac_last_try; then
36823 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36824 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36825 { (exit 1); exit 1; }; }
36827 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36830 rm -f conf$$subs.sh
36832 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36833 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
36837 s/^/S["/; s/!.*/"]=/
36847 s/\(.\{148\}\).*/\1/
36849 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
36854 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36861 s/\(.\{148\}\).*/\1/
36863 s/["\\]/\\&/g; s/^/"/; s/$/"/
36867 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36872 ' <conf$$subs.awk | sed '
36877 ' >>$CONFIG_STATUS || ac_write_fail=1
36878 rm -f conf$$subs.awk
36879 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36881 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
36882 for (key in S) S_is_set[key] = 1
36888 nfields = split(line, field, "@")
36890 len = length(field[1])
36891 for (i = 2; i < nfields; i++) {
36893 keylen = length(key)
36894 if (S_is_set[key]) {
36896 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
36897 len += length(value) + length(field[++i])
36908 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36909 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
36910 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
36913 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
36914 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
36915 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
36916 { (exit 1); exit 1; }; }
36919 # VPATH may cause trouble with some makes, so we remove $(srcdir),
36920 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36921 # trailing colons and then remove the whole line if VPATH becomes empty
36922 # (actually we leave an empty line to preserve line numbers).
36923 if test "x$srcdir" = x.; then
36924 ac_vpsub='/^[ ]*VPATH[ ]*=/{
36925 s/:*\$(srcdir):*/:/
36926 s/:*\${srcdir}:*/:/
36928 s/^\([^=]*=[ ]*\):*/\1/
36934 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36935 fi # test -n "$CONFIG_FILES"
36937 # Set up the scripts for CONFIG_HEADERS section.
36938 # No need to generate them if there are no CONFIG_HEADERS.
36939 # This happens for instance with `./config.status Makefile'.
36940 if test -n "$CONFIG_HEADERS"; then
36941 cat >"$tmp/defines.awk" <<\_ACAWK ||
36945 # Transform confdefs.h into an awk script `defines.awk', embedded as
36946 # here-document in config.status, that substitutes the proper values into
36947 # config.h.in to produce config.h.
36949 # Create a delimiter string that does not exist in confdefs.h, to ease
36950 # handling of long lines.
36952 for ac_last_try in false false :; do
36953 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
36954 if test -z "$ac_t"; then
36956 elif $ac_last_try; then
36957 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
36958 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
36959 { (exit 1); exit 1; }; }
36961 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36965 # For the awk script, D is an array of macro values keyed by name,
36966 # likewise P contains macro parameters if any. Preserve backslash
36967 # newline sequences.
36969 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36971 s/.\{148\}/&'"$ac_delim"'/g
36974 s/^[ ]*#[ ]*define[ ][ ]*/ /
36981 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36983 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
36987 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36988 D["\1"]=" \3\\\\\\n"\\/p
36990 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
36995 s/.\{148\}/&'"$ac_delim"'/g
37000 s/["\\]/\\&/g; s/^/"/; s/$/"/p
37003 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
37005 ' <confdefs.h | sed '
37006 s/'"$ac_delim"'/"\\\
37007 "/g' >>$CONFIG_STATUS || ac_write_fail=1
37009 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37010 for (key in D) D_is_set[key] = 1
37013 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37015 split(line, arg, " ")
37016 if (arg[1] == "#") {
37020 defundef = substr(arg[1], 2)
37023 split(mac1, mac2, "(") #)
37025 prefix = substr(line, 1, index(line, defundef) - 1)
37026 if (D_is_set[macro]) {
37027 # Preserve the white space surrounding the "#".
37028 print prefix "define", macro P[macro] D[macro]
37031 # Replace #undef with comments. This is necessary, for example,
37032 # in the case of _POSIX_SOURCE, which is predefined and required
37033 # on some systems where configure will not decide to define it.
37034 if (defundef == "undef") {
37035 print "/*", prefix defundef, macro, "*/"
37043 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37044 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
37045 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
37046 { (exit 1); exit 1; }; }
37047 fi # test -n "$CONFIG_HEADERS"
37050 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
37055 :[FHLC]) ac_mode=$ac_tag; continue;;
37057 case $ac_mode$ac_tag in
37059 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
37060 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
37061 { (exit 1); exit 1; }; };;
37062 :[FH]-) ac_tag=-:-;;
37063 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37080 -) ac_f="$tmp/stdin";;
37081 *) # Look for the file first in the build tree, then in the source tree
37082 # (if the path is not absolute). The absolute path cannot be DOS-style,
37083 # because $ac_f cannot contain `:'.
37087 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37089 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
37090 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
37091 { (exit 1); exit 1; }; };;
37093 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
37094 ac_file_inputs="$ac_file_inputs '$ac_f'"
37097 # Let's still pretend it is `configure' which instantiates (i.e., don't
37098 # use $as_me), people would be surprised to read:
37099 # /* config.h. Generated by config.status. */
37100 configure_input='Generated from '`
37101 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37103 if test x"$ac_file" != x-; then
37104 configure_input="$ac_file. $configure_input"
37105 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
37106 $as_echo "$as_me: creating $ac_file" >&6;}
37108 # Neutralize special characters interpreted by sed in replacement strings.
37109 case $configure_input in #(
37110 *\&* | *\|* | *\\* )
37111 ac_sed_conf_input=`$as_echo "$configure_input" |
37112 sed 's/[\\\\&|]/\\\\&/g'`;; #(
37113 *) ac_sed_conf_input=$configure_input;;
37117 *:-:* | *:-) cat >"$tmp/stdin" \
37118 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
37119 $as_echo "$as_me: error: could not create $ac_file" >&2;}
37120 { (exit 1); exit 1; }; } ;;
37125 ac_dir=`$as_dirname -- "$ac_file" ||
37126 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37127 X"$ac_file" : 'X\(//\)[^/]' \| \
37128 X"$ac_file" : 'X\(//\)$' \| \
37129 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37130 $as_echo X"$ac_file" |
37131 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37135 /^X\(\/\/\)[^/].*/{
37150 -*) as_dir=./$as_dir;;
37152 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
37156 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
37157 *) as_qdir=$as_dir;;
37159 as_dirs="'$as_qdir' $as_dirs"
37160 as_dir=`$as_dirname -- "$as_dir" ||
37161 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37162 X"$as_dir" : 'X\(//\)[^/]' \| \
37163 X"$as_dir" : 'X\(//\)$' \| \
37164 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
37165 $as_echo X"$as_dir" |
37166 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37170 /^X\(\/\/\)[^/].*/{
37183 test -d "$as_dir" && break
37185 test -z "$as_dirs" || eval "mkdir $as_dirs"
37186 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
37187 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
37188 { (exit 1); exit 1; }; }; }
37192 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37194 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37195 # A ".." for each directory in $ac_dir_suffix.
37196 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37197 case $ac_top_builddir_sub in
37198 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37199 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37202 ac_abs_top_builddir=$ac_pwd
37203 ac_abs_builddir=$ac_pwd$ac_dir_suffix
37204 # for backward compatibility:
37205 ac_top_builddir=$ac_top_build_prefix
37208 .) # We are building in place.
37210 ac_top_srcdir=$ac_top_builddir_sub
37211 ac_abs_top_srcdir=$ac_pwd ;;
37212 [\\/]* | ?:[\\/]* ) # Absolute name.
37213 ac_srcdir=$srcdir$ac_dir_suffix;
37214 ac_top_srcdir=$srcdir
37215 ac_abs_top_srcdir=$srcdir ;;
37216 *) # Relative name.
37217 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37218 ac_top_srcdir=$ac_top_build_prefix$srcdir
37219 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37221 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37232 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37233 # If the template does not know about datarootdir, expand it.
37234 # FIXME: This hack should be removed a few years after 2.60.
37235 ac_datarootdir_hack=; ac_datarootdir_seen=
37248 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37249 *datarootdir*) ac_datarootdir_seen=yes;;
37250 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
37251 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
37252 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37254 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37255 ac_datarootdir_hack='
37256 s&@datadir@&$datadir&g
37257 s&@docdir@&$docdir&g
37258 s&@infodir@&$infodir&g
37259 s&@localedir@&$localedir&g
37260 s&@mandir@&$mandir&g
37261 s&\\\${datarootdir}&$datarootdir&g' ;;
37265 # Neutralize VPATH when `$srcdir' = `.'.
37266 # Shell code in configure.ac might set extrasub.
37267 # FIXME: do we really want to maintain this feature?
37268 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37269 ac_sed_extra="$ac_vpsub
37272 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37274 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37275 s|@configure_input@|$ac_sed_conf_input|;t t
37276 s&@top_builddir@&$ac_top_builddir_sub&;t t
37277 s&@top_build_prefix@&$ac_top_build_prefix&;t t
37278 s&@srcdir@&$ac_srcdir&;t t
37279 s&@abs_srcdir@&$ac_abs_srcdir&;t t
37280 s&@top_srcdir@&$ac_top_srcdir&;t t
37281 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37282 s&@builddir@&$ac_builddir&;t t
37283 s&@abs_builddir@&$ac_abs_builddir&;t t
37284 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37285 $ac_datarootdir_hack
37287 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
37288 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
37289 $as_echo "$as_me: error: could not create $ac_file" >&2;}
37290 { (exit 1); exit 1; }; }
37292 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
37293 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
37294 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
37295 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
37296 which seems to be undefined. Please make sure it is defined." >&5
37297 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
37298 which seems to be undefined. Please make sure it is defined." >&2;}
37302 -) cat "$tmp/out" && rm -f "$tmp/out";;
37303 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
37305 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
37306 $as_echo "$as_me: error: could not create $ac_file" >&2;}
37307 { (exit 1); exit 1; }; }
37313 if test x"$ac_file" != x-; then
37315 $as_echo "/* $configure_input */" \
37316 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
37317 } >"$tmp/config.h" \
37318 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
37319 $as_echo "$as_me: error: could not create $ac_file" >&2;}
37320 { (exit 1); exit 1; }; }
37321 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
37322 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
37323 $as_echo "$as_me: $ac_file is unchanged" >&6;}
37326 mv "$tmp/config.h" "$ac_file" \
37327 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
37328 $as_echo "$as_me: error: could not create $ac_file" >&2;}
37329 { (exit 1); exit 1; }; }
37332 $as_echo "/* $configure_input */" \
37333 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
37334 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
37335 $as_echo "$as_me: error: could not create -" >&2;}
37336 { (exit 1); exit 1; }; }
37340 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
37341 $as_echo "$as_me: executing $ac_file commands" >&6;}
37346 case $ac_file$ac_mode in
37348 chmod +x apu-config
37355 { (exit 0); exit 0; }
37357 chmod +x $CONFIG_STATUS
37358 ac_clean_files=$ac_clean_files_save
37360 test $ac_write_fail = 0 ||
37361 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
37362 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
37363 { (exit 1); exit 1; }; }
37366 # configure is writing to config.log, and then calls config.status.
37367 # config.status does its own redirection, appending to config.log.
37368 # Unfortunately, on DOS this fails, as config.log is still kept open
37369 # by configure, so config.status won't be able to write to it; its
37370 # output is simply discarded. So we exec the FD to /dev/null,
37371 # effectively closing config.log, so it can be properly (re)opened and
37372 # appended to by config.status. When coming back to configure, we
37373 # need to make the FD available again.
37374 if test "$no_create" != yes; then
37376 ac_config_status_args=
37377 test "$silent" = yes &&
37378 ac_config_status_args="$ac_config_status_args --quiet"
37380 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
37382 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
37383 # would make configure fail if this is the last instruction.
37384 $ac_cs_success || { (exit 1); exit 1; }
37386 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
37387 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
37388 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}